Skip to content

Commit 7eafcc8

Browse files
feat(api): aggregated API specs update
1 parent fd7eab5 commit 7eafcc8

4 files changed

Lines changed: 15 additions & 2 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: 658
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-f2dd58311f2853d2c5d6189f17c500dd4497e5042ddcf92b574c2f8d80fa26d3.yml
3-
openapi_spec_hash: efffe224678d05d228e497f3e95cdd9f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-434ab5235704e2eb7332e76790a3457b5ab5f77b8e58dbac959f42c2d7b6cd17.yml
3+
openapi_spec_hash: a89fe96d63c7671eef3c9c9fd6c46094
44
config_hash: 1eeaf5413c25f32913ceebe18d37cc3e

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def list(
274274
region_id: int | None = None,
275275
limit: int | Omit = omit,
276276
load_balancer_id: str | Omit = omit,
277+
name: str | Omit = omit,
277278
offset: int | Omit = omit,
278279
show_stats: bool | Omit = omit,
279280
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -295,6 +296,8 @@ def list(
295296
296297
load_balancer_id: Load Balancer ID
297298
299+
name: Filter by name
300+
298301
offset: Optional. Offset value is used to exclude the first set of records from the
299302
result
300303
@@ -323,6 +326,7 @@ def list(
323326
{
324327
"limit": limit,
325328
"load_balancer_id": load_balancer_id,
329+
"name": name,
326330
"offset": offset,
327331
"show_stats": show_stats,
328332
},
@@ -856,6 +860,7 @@ async def list(
856860
region_id: int | None = None,
857861
limit: int | Omit = omit,
858862
load_balancer_id: str | Omit = omit,
863+
name: str | Omit = omit,
859864
offset: int | Omit = omit,
860865
show_stats: bool | Omit = omit,
861866
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -877,6 +882,8 @@ async def list(
877882
878883
load_balancer_id: Load Balancer ID
879884
885+
name: Filter by name
886+
880887
offset: Optional. Offset value is used to exclude the first set of records from the
881888
result
882889
@@ -905,6 +912,7 @@ async def list(
905912
{
906913
"limit": limit,
907914
"load_balancer_id": load_balancer_id,
915+
"name": name,
908916
"offset": offset,
909917
"show_stats": show_stats,
910918
},

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class ListenerListParams(TypedDict, total=False):
2020
load_balancer_id: str
2121
"""Load Balancer ID"""
2222

23+
name: str
24+
"""Filter by name"""
25+
2326
offset: int
2427
"""Optional.
2528

tests/api_resources/cloud/load_balancers/test_listeners.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def test_method_list_with_all_params(self, client: Gcore) -> None:
175175
region_id=1,
176176
limit=1000,
177177
load_balancer_id="00000000-0000-4000-8000-000000000000",
178+
name="listener-name",
178179
offset=0,
179180
show_stats=True,
180181
)
@@ -482,6 +483,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGcore) -> No
482483
region_id=1,
483484
limit=1000,
484485
load_balancer_id="00000000-0000-4000-8000-000000000000",
486+
name="listener-name",
485487
offset=0,
486488
show_stats=True,
487489
)

0 commit comments

Comments
 (0)