Skip to content

Commit b151692

Browse files
chore: update network policy create params descriptions (#7069)
1 parent 9b31116 commit b151692

3 files changed

Lines changed: 23 additions & 15 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 108
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-e583f34fdcdc18499c8692e8eb8021f6163201f0f77206934c712c319a674d43.yml
3-
openapi_spec_hash: f2fb3f7f5c1f62d3dc397cd02cd1007a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-5359067a857aa94f69bae0d3311856be3e637da067fdc9dbf8bd26fe476efbd8.yml
3+
openapi_spec_hash: 5227ef7c306d5226c3aee8932b2e8c6a
44
config_hash: 42959fa2708796cc2f83937278dde733

src/runloop_api_client/resources/network_policies.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ def create(
6969
name: The human-readable name for the NetworkPolicy. Must be unique within the
7070
account.
7171
72-
allow_all: If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults to false.
73-
74-
allow_devbox_to_devbox: If true, allows traffic between the account's own devboxes via tunnels. Defaults
72+
allow_all: (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults
7573
to false.
7674
77-
allowed_hostnames: DNS-based allow list with wildcard support. Examples: ['github.com',
75+
allow_devbox_to_devbox: (Optional) If true, allows traffic between the account's own devboxes via
76+
tunnels. Defaults to false. If allow_all is true, this is automatically set to
77+
true.
78+
79+
allowed_hostnames: (Optional) DNS-based allow list with wildcard support. Examples: ['github.com',
7880
'*.npmjs.org'].
7981
8082
description: Optional description for the NetworkPolicy.
@@ -353,12 +355,14 @@ async def create(
353355
name: The human-readable name for the NetworkPolicy. Must be unique within the
354356
account.
355357
356-
allow_all: If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults to false.
357-
358-
allow_devbox_to_devbox: If true, allows traffic between the account's own devboxes via tunnels. Defaults
358+
allow_all: (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults
359359
to false.
360360
361-
allowed_hostnames: DNS-based allow list with wildcard support. Examples: ['github.com',
361+
allow_devbox_to_devbox: (Optional) If true, allows traffic between the account's own devboxes via
362+
tunnels. Defaults to false. If allow_all is true, this is automatically set to
363+
true.
364+
365+
allowed_hostnames: (Optional) DNS-based allow list with wildcard support. Examples: ['github.com',
362366
'*.npmjs.org'].
363367
364368
description: Optional description for the NetworkPolicy.

src/runloop_api_client/types/network_policy_create_params.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ class NetworkPolicyCreateParams(TypedDict, total=False):
1818
"""
1919

2020
allow_all: Optional[bool]
21-
"""If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults to false."""
22-
23-
allow_devbox_to_devbox: Optional[bool]
24-
"""If true, allows traffic between the account's own devboxes via tunnels.
21+
"""(Optional) If true, all egress traffic is allowed (ALLOW_ALL policy).
2522
2623
Defaults to false.
2724
"""
2825

26+
allow_devbox_to_devbox: Optional[bool]
27+
"""
28+
(Optional) If true, allows traffic between the account's own devboxes via
29+
tunnels. Defaults to false. If allow_all is true, this is automatically set to
30+
true.
31+
"""
32+
2933
allowed_hostnames: Optional[SequenceNotStr[str]]
30-
"""DNS-based allow list with wildcard support.
34+
"""(Optional) DNS-based allow list with wildcard support.
3135
3236
Examples: ['github.com', '*.npmjs.org'].
3337
"""

0 commit comments

Comments
 (0)