Skip to content

Commit 035ae70

Browse files
feat(api): api update
1 parent 3072619 commit 035ae70

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1706
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-155ec57ee61bb7a03ca776b1170a400a42ecdb370cca917e5a4e59d7a9e8a397.yml
3-
openapi_spec_hash: 460810762294670e3f3d0c134bae0883
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ea91d5f68bea72908a68b53c579b11f3741cdbab9ddb38d5b7bf41379a40d119.yml
3+
openapi_spec_hash: 3ed1fac167967e15693e7754d23cb316
44
config_hash: 67f412c990647f3cb598378fa22a9db5

src/cloudflare/types/load_balancers/origin.py

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ class Origin(BaseModel):
4040
name: Optional[str] = None
4141
"""A human-identifiable name for the origin."""
4242

43+
port: Optional[int] = None
44+
"""The port for upstream connections.
45+
46+
A value of 0 means the default port for the protocol will be used.
47+
"""
48+
4349
virtual_network_id: Optional[str] = None
4450
"""The virtual network subnet ID the origin belongs in.
4551

src/cloudflare/types/load_balancers/origin_param.py

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ class OriginParam(TypedDict, total=False):
3434
name: str
3535
"""A human-identifiable name for the origin."""
3636

37+
port: int
38+
"""The port for upstream connections.
39+
40+
A value of 0 means the default port for the protocol will be used.
41+
"""
42+
3743
virtual_network_id: str
3844
"""The virtual network subnet ID the origin belongs in.
3945

tests/api_resources/load_balancers/test_pools.py

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
4141
"enabled": True,
4242
"header": {"host": ["example.com"]},
4343
"name": "app-server-1",
44+
"port": 0,
4445
"virtual_network_id": "a5624d4e-044a-4ff0-b3e1-e2465353d4b4",
4546
"weight": 0.6,
4647
}
@@ -131,6 +132,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
131132
"enabled": True,
132133
"header": {"host": ["example.com"]},
133134
"name": "app-server-1",
135+
"port": 0,
134136
"virtual_network_id": "a5624d4e-044a-4ff0-b3e1-e2465353d4b4",
135137
"weight": 0.6,
136138
}
@@ -396,6 +398,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
396398
"enabled": True,
397399
"header": {"host": ["example.com"]},
398400
"name": "app-server-1",
401+
"port": 0,
399402
"virtual_network_id": "a5624d4e-044a-4ff0-b3e1-e2465353d4b4",
400403
"weight": 0.6,
401404
}
@@ -515,6 +518,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
515518
"enabled": True,
516519
"header": {"host": ["example.com"]},
517520
"name": "app-server-1",
521+
"port": 0,
518522
"virtual_network_id": "a5624d4e-044a-4ff0-b3e1-e2465353d4b4",
519523
"weight": 0.6,
520524
}
@@ -605,6 +609,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
605609
"enabled": True,
606610
"header": {"host": ["example.com"]},
607611
"name": "app-server-1",
612+
"port": 0,
608613
"virtual_network_id": "a5624d4e-044a-4ff0-b3e1-e2465353d4b4",
609614
"weight": 0.6,
610615
}
@@ -870,6 +875,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
870875
"enabled": True,
871876
"header": {"host": ["example.com"]},
872877
"name": "app-server-1",
878+
"port": 0,
873879
"virtual_network_id": "a5624d4e-044a-4ff0-b3e1-e2465353d4b4",
874880
"weight": 0.6,
875881
}

0 commit comments

Comments
 (0)