Skip to content

Commit cfc97ef

Browse files
fix(mux): field-level merge on network policy egress updates (#10338)
1 parent 6b9e1dc commit cfc97ef

2 files changed

Lines changed: 6 additions & 4 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: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-0b7cd0c2fc193b18189cd7f44cf45ece7726b5d485fb72577f7d235266432ea0.yml
3-
openapi_spec_hash: 78c340dbfb9d3d58b24ef318fc2a657b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-d0efdaa19d8a5685def3947450df7f9bdaf9bad3243317d514add5d22129fc5f.yml
3+
openapi_spec_hash: 7e484ea9f60294503bf4691fe3efef3a
44
config_hash: 218b8d25038e627faab98532392ee9a0

src/runloop_api_client/resources/network_policies.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ def update(
191191
) -> NetworkPolicyView:
192192
"""Update an existing NetworkPolicy.
193193
194-
All fields are optional.
194+
All fields are optional - null fields preserve
195+
existing values, provided fields replace entirely.
195196
196197
Args:
197198
allow_agent_gateway: If true, allows devbox egress to the agent gateway.
@@ -525,7 +526,8 @@ async def update(
525526
) -> NetworkPolicyView:
526527
"""Update an existing NetworkPolicy.
527528
528-
All fields are optional.
529+
All fields are optional - null fields preserve
530+
existing values, provided fields replace entirely.
529531
530532
Args:
531533
allow_agent_gateway: If true, allows devbox egress to the agent gateway.

0 commit comments

Comments
 (0)