Skip to content

Commit 3a272e8

Browse files
feat(api): aggregated API specs update
1 parent 88c4050 commit 3a272e8

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 641
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-26212428643e136f317e84302b933a8f4c65f88cc78c254ed40ad1c0793341f2.yml
3-
openapi_spec_hash: 6907d8b360bddcbc5adaef5054eab10e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-2c3abe1f1637f97f6bc750aff6eb77efc45ac2b527376541ac2af6b9626b35af.yml
3+
openapi_spec_hash: ff74a4ccd9ec5ddb1a65963d52e709ba
44
config_hash: c6c8ef25ca05ecd4082810d4afd564cf

src/gcore/resources/cloud/load_balancers/listeners.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def create(
6464
protocol_port: int,
6565
allowed_cidrs: Optional[SequenceNotStr[str]] | Omit = omit,
6666
connection_limit: int | Omit = omit,
67+
default_pool_id: str | Omit = omit,
6768
insert_x_forwarded: bool | Omit = omit,
6869
secret_id: str | Omit = omit,
6970
sni_secret_id: SequenceNotStr[str] | Omit = omit,
@@ -86,7 +87,7 @@ def create(
8687
8788
region_id: Region ID
8889
89-
load_balancer_id: Load balancer ID
90+
load_balancer_id: ID of already existent Load Balancer.
9091
9192
name: Load balancer listener name
9293
@@ -99,6 +100,8 @@ def create(
99100
connection_limit: Limit of the simultaneous connections. If -1 is provided, it is translated to
100101
the default value 100000.
101102
103+
default_pool_id: ID of already existent Load Balancer Pool to attach listener to.
104+
102105
insert_x_forwarded: Add headers X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto to requests.
103106
Only used with HTTP or `TERMINATED_HTTPS` protocols.
104107
@@ -138,6 +141,7 @@ def create(
138141
"protocol_port": protocol_port,
139142
"allowed_cidrs": allowed_cidrs,
140143
"connection_limit": connection_limit,
144+
"default_pool_id": default_pool_id,
141145
"insert_x_forwarded": insert_x_forwarded,
142146
"secret_id": secret_id,
143147
"sni_secret_id": sni_secret_id,
@@ -604,6 +608,7 @@ async def create(
604608
protocol_port: int,
605609
allowed_cidrs: Optional[SequenceNotStr[str]] | Omit = omit,
606610
connection_limit: int | Omit = omit,
611+
default_pool_id: str | Omit = omit,
607612
insert_x_forwarded: bool | Omit = omit,
608613
secret_id: str | Omit = omit,
609614
sni_secret_id: SequenceNotStr[str] | Omit = omit,
@@ -626,7 +631,7 @@ async def create(
626631
627632
region_id: Region ID
628633
629-
load_balancer_id: Load balancer ID
634+
load_balancer_id: ID of already existent Load Balancer.
630635
631636
name: Load balancer listener name
632637
@@ -639,6 +644,8 @@ async def create(
639644
connection_limit: Limit of the simultaneous connections. If -1 is provided, it is translated to
640645
the default value 100000.
641646
647+
default_pool_id: ID of already existent Load Balancer Pool to attach listener to.
648+
642649
insert_x_forwarded: Add headers X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto to requests.
643650
Only used with HTTP or `TERMINATED_HTTPS` protocols.
644651
@@ -678,6 +685,7 @@ async def create(
678685
"protocol_port": protocol_port,
679686
"allowed_cidrs": allowed_cidrs,
680687
"connection_limit": connection_limit,
688+
"default_pool_id": default_pool_id,
681689
"insert_x_forwarded": insert_x_forwarded,
682690
"secret_id": secret_id,
683691
"sni_secret_id": sni_secret_id,

src/gcore/types/cloud/gpu_baremetal_cluster.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ class GPUBaremetalCluster(BaseModel):
131131
flavor: str
132132
"""Cluster flavor name"""
133133

134+
image_id: str
135+
"""Image ID"""
136+
134137
managed_by: Literal["k8s", "user"]
135138
"""User type managing the resource"""
136139

src/gcore/types/cloud/load_balancers/listener_create_params.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ListenerCreateParams(TypedDict, total=False):
1919
"""Region ID"""
2020

2121
load_balancer_id: Required[str]
22-
"""Load balancer ID"""
22+
"""ID of already existent Load Balancer."""
2323

2424
name: Required[str]
2525
"""Load balancer listener name"""
@@ -39,6 +39,9 @@ class ListenerCreateParams(TypedDict, total=False):
3939
If -1 is provided, it is translated to the default value 100000.
4040
"""
4141

42+
default_pool_id: str
43+
"""ID of already existent Load Balancer Pool to attach listener to."""
44+
4245
insert_x_forwarded: bool
4346
"""Add headers X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto to requests.
4447

tests/api_resources/cloud/load_balancers/test_listeners.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def test_method_create_with_all_params(self, client: Gcore) -> None:
4040
protocol_port=80,
4141
allowed_cidrs=["10.0.0.0/8"],
4242
connection_limit=100000,
43+
default_pool_id="00000000-0000-4000-8000-000000000000",
4344
insert_x_forwarded=False,
4445
secret_id="f2e734d0-fa2b-42c2-ad33-4c6db5101e00",
4546
sni_secret_id=["f2e734d0-fa2b-42c2-ad33-4c6db5101e00", "eb121225-7ded-4ff3-ae1f-599e145dd7cb"],
@@ -343,6 +344,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGcore) ->
343344
protocol_port=80,
344345
allowed_cidrs=["10.0.0.0/8"],
345346
connection_limit=100000,
347+
default_pool_id="00000000-0000-4000-8000-000000000000",
346348
insert_x_forwarded=False,
347349
secret_id="f2e734d0-fa2b-42c2-ad33-4c6db5101e00",
348350
sni_secret_id=["f2e734d0-fa2b-42c2-ad33-4c6db5101e00", "eb121225-7ded-4ff3-ae1f-599e145dd7cb"],

0 commit comments

Comments
 (0)