gcore 0.16.0__py3-none-any.whl → 0.17.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/_client.py +16 -0
- gcore/_version.py +1 -1
- gcore/resources/cdn/cdn.py +120 -21
- gcore/resources/cdn/{logs/logs.py → logs.py} +9 -9
- gcore/resources/cloud/baremetal/servers.py +8 -0
- gcore/resources/cloud/cloud.py +18 -0
- gcore/resources/cloud/file_shares/file_shares.py +124 -33
- gcore/resources/cloud/floating_ips.py +8 -0
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +12 -0
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +8 -0
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +4 -0
- gcore/resources/cloud/inference/deployments/deployments.py +12 -0
- gcore/resources/cloud/instances/images.py +12 -0
- gcore/resources/cloud/instances/instances.py +20 -0
- gcore/resources/cloud/instances/interfaces.py +12 -0
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +12 -0
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +12 -0
- gcore/resources/cloud/load_balancers/listeners.py +12 -0
- gcore/resources/cloud/load_balancers/load_balancers.py +16 -0
- gcore/resources/cloud/load_balancers/pools/pools.py +12 -0
- gcore/resources/cloud/networks/networks.py +8 -0
- gcore/resources/cloud/networks/subnets.py +4 -0
- gcore/resources/cloud/placement_groups.py +8 -0
- gcore/resources/cloud/projects.py +109 -109
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +18 -0
- gcore/resources/cloud/secrets.py +4 -0
- gcore/resources/cloud/tasks.py +22 -7
- gcore/resources/cloud/volumes.py +27 -1
- gcore/types/cdn/__init__.py +3 -0
- gcore/types/cdn/alibaba_regions.py +22 -0
- gcore/types/cdn/aws_regions.py +22 -0
- gcore/types/cdn/cdn_list_purge_statuses_response.py +10 -0
- gcore/types/cdn/cdn_resource.py +1 -1
- gcore/types/cdn/resource_create_params.py +1 -1
- gcore/types/cdn/resource_replace_params.py +1 -1
- gcore/types/cdn/resource_update_params.py +1 -1
- gcore/types/cdn/resources/cdn_resource_rule.py +1 -1
- gcore/types/cdn/resources/rule_create_params.py +1 -1
- gcore/types/cdn/resources/rule_replace_params.py +1 -1
- gcore/types/cdn/resources/rule_update_params.py +1 -1
- gcore/types/cdn/rule_template.py +1 -1
- gcore/types/cdn/rule_template_create_params.py +1 -1
- gcore/types/cdn/rule_template_replace_params.py +1 -1
- gcore/types/cdn/rule_template_update_params.py +1 -1
- gcore/types/cloud/__init__.py +1 -1
- gcore/types/cloud/{project_replace_params.py → project_update_params.py} +2 -2
- {gcore-0.16.0.dist-info → gcore-0.17.0.dist-info}/METADATA +2 -2
- {gcore-0.16.0.dist-info → gcore-0.17.0.dist-info}/RECORD +50 -49
- gcore/resources/cdn/logs/__init__.py +0 -19
- gcore/types/cdn/logs/__init__.py +0 -3
- {gcore-0.16.0.dist-info → gcore-0.17.0.dist-info}/WHEEL +0 -0
- {gcore-0.16.0.dist-info → gcore-0.17.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -244,6 +244,7 @@ class ImagesResource(SyncAPIResource):
|
|
|
244
244
|
project_id: int | None = None,
|
|
245
245
|
region_id: int | None = None,
|
|
246
246
|
polling_interval_seconds: int | Omit = omit,
|
|
247
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
247
248
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
248
249
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
249
250
|
extra_headers: Headers | None = None,
|
|
@@ -269,6 +270,7 @@ class ImagesResource(SyncAPIResource):
|
|
|
269
270
|
task_id=response.tasks[0],
|
|
270
271
|
extra_headers=extra_headers,
|
|
271
272
|
polling_interval_seconds=polling_interval_seconds,
|
|
273
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
272
274
|
)
|
|
273
275
|
|
|
274
276
|
def create_from_volume(
|
|
@@ -374,6 +376,7 @@ class ImagesResource(SyncAPIResource):
|
|
|
374
376
|
ssh_key: Literal["allow", "deny", "required"] | Omit = omit,
|
|
375
377
|
tags: Dict[str, str] | Omit = omit,
|
|
376
378
|
polling_interval_seconds: int | Omit = omit,
|
|
379
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
377
380
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
378
381
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
379
382
|
extra_headers: Headers | None = None,
|
|
@@ -408,6 +411,7 @@ class ImagesResource(SyncAPIResource):
|
|
|
408
411
|
task_id=response.tasks[0],
|
|
409
412
|
extra_headers=extra_headers,
|
|
410
413
|
polling_interval_seconds=polling_interval_seconds,
|
|
414
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
411
415
|
)
|
|
412
416
|
if not task.created_resources or not task.created_resources.images or len(task.created_resources.images) != 1:
|
|
413
417
|
raise ValueError(f"Expected exactly one resource to be created in a task")
|
|
@@ -578,6 +582,7 @@ class ImagesResource(SyncAPIResource):
|
|
|
578
582
|
ssh_key: Literal["allow", "deny", "required"] | Omit = omit,
|
|
579
583
|
tags: Dict[str, str] | Omit = omit,
|
|
580
584
|
polling_interval_seconds: int | Omit = omit,
|
|
585
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
581
586
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
582
587
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
583
588
|
extra_headers: Headers | None = None,
|
|
@@ -614,6 +619,7 @@ class ImagesResource(SyncAPIResource):
|
|
|
614
619
|
task_id=response.tasks[0],
|
|
615
620
|
extra_headers=extra_headers,
|
|
616
621
|
polling_interval_seconds=polling_interval_seconds,
|
|
622
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
617
623
|
)
|
|
618
624
|
if not task.created_resources or not task.created_resources.images or len(task.created_resources.images) != 1:
|
|
619
625
|
raise ValueError(f"Expected exactly one resource to be created in a task")
|
|
@@ -836,6 +842,7 @@ class AsyncImagesResource(AsyncAPIResource):
|
|
|
836
842
|
project_id: int | None = None,
|
|
837
843
|
region_id: int | None = None,
|
|
838
844
|
polling_interval_seconds: int | Omit = omit,
|
|
845
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
839
846
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
840
847
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
841
848
|
extra_headers: Headers | None = None,
|
|
@@ -861,6 +868,7 @@ class AsyncImagesResource(AsyncAPIResource):
|
|
|
861
868
|
task_id=response.tasks[0],
|
|
862
869
|
extra_headers=extra_headers,
|
|
863
870
|
polling_interval_seconds=polling_interval_seconds,
|
|
871
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
864
872
|
)
|
|
865
873
|
|
|
866
874
|
async def create_from_volume(
|
|
@@ -966,6 +974,7 @@ class AsyncImagesResource(AsyncAPIResource):
|
|
|
966
974
|
ssh_key: Literal["allow", "deny", "required"] | Omit = omit,
|
|
967
975
|
tags: Dict[str, str] | Omit = omit,
|
|
968
976
|
polling_interval_seconds: int | Omit = omit,
|
|
977
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
969
978
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
970
979
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
971
980
|
extra_headers: Headers | None = None,
|
|
@@ -1000,6 +1009,7 @@ class AsyncImagesResource(AsyncAPIResource):
|
|
|
1000
1009
|
task_id=response.tasks[0],
|
|
1001
1010
|
extra_headers=extra_headers,
|
|
1002
1011
|
polling_interval_seconds=polling_interval_seconds,
|
|
1012
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1003
1013
|
)
|
|
1004
1014
|
if not task.created_resources or not task.created_resources.images or len(task.created_resources.images) != 1:
|
|
1005
1015
|
raise ValueError(f"Expected exactly one resource to be created in a task")
|
|
@@ -1170,6 +1180,7 @@ class AsyncImagesResource(AsyncAPIResource):
|
|
|
1170
1180
|
ssh_key: Literal["allow", "deny", "required"] | Omit = omit,
|
|
1171
1181
|
tags: Dict[str, str] | Omit = omit,
|
|
1172
1182
|
polling_interval_seconds: int | Omit = omit,
|
|
1183
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1173
1184
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1174
1185
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1175
1186
|
extra_headers: Headers | None = None,
|
|
@@ -1206,6 +1217,7 @@ class AsyncImagesResource(AsyncAPIResource):
|
|
|
1206
1217
|
task_id=response.tasks[0],
|
|
1207
1218
|
extra_headers=extra_headers,
|
|
1208
1219
|
polling_interval_seconds=polling_interval_seconds,
|
|
1220
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1209
1221
|
)
|
|
1210
1222
|
if not task.created_resources or not task.created_resources.images or len(task.created_resources.images) != 1:
|
|
1211
1223
|
raise ValueError(f"Expected exactly one resource to be created in a task")
|
|
@@ -282,6 +282,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
282
282
|
user_data: str | Omit = omit,
|
|
283
283
|
username: str | Omit = omit,
|
|
284
284
|
polling_interval_seconds: int | Omit = omit,
|
|
285
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
285
286
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
286
287
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
287
288
|
extra_headers: Headers | None = None,
|
|
@@ -318,6 +319,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
318
319
|
task_id=response.tasks[0],
|
|
319
320
|
extra_headers=extra_headers,
|
|
320
321
|
polling_interval_seconds=polling_interval_seconds,
|
|
322
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
321
323
|
)
|
|
322
324
|
if (
|
|
323
325
|
not task.created_resources
|
|
@@ -676,6 +678,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
676
678
|
reserved_fixed_ips: str | Omit = omit,
|
|
677
679
|
volumes: str | Omit = omit,
|
|
678
680
|
polling_interval_seconds: int | Omit = omit,
|
|
681
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
679
682
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
680
683
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
681
684
|
extra_headers: Headers | None = None,
|
|
@@ -705,6 +708,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
705
708
|
task_id=response.tasks[0],
|
|
706
709
|
extra_headers=extra_headers,
|
|
707
710
|
polling_interval_seconds=polling_interval_seconds,
|
|
711
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
708
712
|
)
|
|
709
713
|
|
|
710
714
|
@overload
|
|
@@ -986,6 +990,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
986
990
|
region_id: int | None = None,
|
|
987
991
|
servergroup_id: str,
|
|
988
992
|
polling_interval_seconds: int | Omit = omit,
|
|
993
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
989
994
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
990
995
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
991
996
|
extra_headers: Headers | None = None,
|
|
@@ -1012,6 +1017,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
1012
1017
|
task_id=response.tasks[0],
|
|
1013
1018
|
extra_headers=extra_headers,
|
|
1014
1019
|
polling_interval_seconds=polling_interval_seconds,
|
|
1020
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1015
1021
|
)
|
|
1016
1022
|
return self.get(
|
|
1017
1023
|
instance_id=instance_id,
|
|
@@ -1306,6 +1312,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
1306
1312
|
project_id: int | None = None,
|
|
1307
1313
|
region_id: int | None = None,
|
|
1308
1314
|
polling_interval_seconds: int | Omit = omit,
|
|
1315
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1309
1316
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1310
1317
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1311
1318
|
extra_headers: Headers | None = None,
|
|
@@ -1331,6 +1338,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
1331
1338
|
task_id=response.tasks[0],
|
|
1332
1339
|
extra_headers=extra_headers,
|
|
1333
1340
|
polling_interval_seconds=polling_interval_seconds,
|
|
1341
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1334
1342
|
)
|
|
1335
1343
|
return self.get(
|
|
1336
1344
|
instance_id=instance_id,
|
|
@@ -1390,6 +1398,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
1390
1398
|
region_id: int | None = None,
|
|
1391
1399
|
flavor_id: str,
|
|
1392
1400
|
polling_interval_seconds: int | Omit = omit,
|
|
1401
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1393
1402
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1394
1403
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1395
1404
|
extra_headers: Headers | None = None,
|
|
@@ -1416,6 +1425,7 @@ class InstancesResource(SyncAPIResource):
|
|
|
1416
1425
|
task_id=response.tasks[0],
|
|
1417
1426
|
extra_headers=extra_headers,
|
|
1418
1427
|
polling_interval_seconds=polling_interval_seconds,
|
|
1428
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1419
1429
|
)
|
|
1420
1430
|
return self.get(
|
|
1421
1431
|
instance_id=instance_id,
|
|
@@ -1690,6 +1700,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
1690
1700
|
user_data: str | Omit = omit,
|
|
1691
1701
|
username: str | Omit = omit,
|
|
1692
1702
|
polling_interval_seconds: int | Omit = omit,
|
|
1703
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1693
1704
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1694
1705
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1695
1706
|
extra_headers: Headers | None = None,
|
|
@@ -1726,6 +1737,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
1726
1737
|
task_id=response.tasks[0],
|
|
1727
1738
|
extra_headers=extra_headers,
|
|
1728
1739
|
polling_interval_seconds=polling_interval_seconds,
|
|
1740
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1729
1741
|
)
|
|
1730
1742
|
if (
|
|
1731
1743
|
not task.created_resources
|
|
@@ -2084,6 +2096,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
2084
2096
|
reserved_fixed_ips: str | Omit = omit,
|
|
2085
2097
|
volumes: str | Omit = omit,
|
|
2086
2098
|
polling_interval_seconds: int | Omit = omit,
|
|
2099
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2087
2100
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2088
2101
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2089
2102
|
extra_headers: Headers | None = None,
|
|
@@ -2113,6 +2126,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
2113
2126
|
task_id=response.tasks[0],
|
|
2114
2127
|
extra_headers=extra_headers,
|
|
2115
2128
|
polling_interval_seconds=polling_interval_seconds,
|
|
2129
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
2116
2130
|
)
|
|
2117
2131
|
|
|
2118
2132
|
@overload
|
|
@@ -2394,6 +2408,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
2394
2408
|
region_id: int | None = None,
|
|
2395
2409
|
servergroup_id: str,
|
|
2396
2410
|
polling_interval_seconds: int | Omit = omit,
|
|
2411
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2397
2412
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2398
2413
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2399
2414
|
extra_headers: Headers | None = None,
|
|
@@ -2420,6 +2435,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
2420
2435
|
task_id=response.tasks[0],
|
|
2421
2436
|
extra_headers=extra_headers,
|
|
2422
2437
|
polling_interval_seconds=polling_interval_seconds,
|
|
2438
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
2423
2439
|
)
|
|
2424
2440
|
return await self.get(
|
|
2425
2441
|
instance_id=instance_id,
|
|
@@ -2714,6 +2730,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
2714
2730
|
project_id: int | None = None,
|
|
2715
2731
|
region_id: int | None = None,
|
|
2716
2732
|
polling_interval_seconds: int | Omit = omit,
|
|
2733
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2717
2734
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2718
2735
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2719
2736
|
extra_headers: Headers | None = None,
|
|
@@ -2739,6 +2756,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
2739
2756
|
task_id=response.tasks[0],
|
|
2740
2757
|
extra_headers=extra_headers,
|
|
2741
2758
|
polling_interval_seconds=polling_interval_seconds,
|
|
2759
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
2742
2760
|
)
|
|
2743
2761
|
return await self.get(
|
|
2744
2762
|
instance_id=instance_id,
|
|
@@ -2798,6 +2816,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
2798
2816
|
region_id: int | None = None,
|
|
2799
2817
|
flavor_id: str,
|
|
2800
2818
|
polling_interval_seconds: int | Omit = omit,
|
|
2819
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2801
2820
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2802
2821
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2803
2822
|
extra_headers: Headers | None = None,
|
|
@@ -2824,6 +2843,7 @@ class AsyncInstancesResource(AsyncAPIResource):
|
|
|
2824
2843
|
task_id=response.tasks[0],
|
|
2825
2844
|
extra_headers=extra_headers,
|
|
2826
2845
|
polling_interval_seconds=polling_interval_seconds,
|
|
2846
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
2827
2847
|
)
|
|
2828
2848
|
return await self.get(
|
|
2829
2849
|
instance_id=instance_id,
|
|
@@ -540,6 +540,7 @@ class InterfacesResource(SyncAPIResource):
|
|
|
540
540
|
network_id: str | Omit = omit,
|
|
541
541
|
port_id: str | Omit = omit,
|
|
542
542
|
polling_interval_seconds: int | Omit = omit,
|
|
543
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
543
544
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
544
545
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
545
546
|
extra_headers: Headers | None = None,
|
|
@@ -580,6 +581,7 @@ class InterfacesResource(SyncAPIResource):
|
|
|
580
581
|
task_id=response.tasks[0],
|
|
581
582
|
extra_headers=extra_headers,
|
|
582
583
|
polling_interval_seconds=polling_interval_seconds,
|
|
584
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
583
585
|
)
|
|
584
586
|
return self.list(instance_id, project_id=project_id, region_id=region_id, extra_headers=extra_headers)
|
|
585
587
|
|
|
@@ -592,6 +594,7 @@ class InterfacesResource(SyncAPIResource):
|
|
|
592
594
|
ip_address: str,
|
|
593
595
|
port_id: str,
|
|
594
596
|
polling_interval_seconds: int | Omit = omit,
|
|
597
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
595
598
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
596
599
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
597
600
|
extra_headers: Headers | None = None,
|
|
@@ -620,6 +623,7 @@ class InterfacesResource(SyncAPIResource):
|
|
|
620
623
|
task_id=response.tasks[0],
|
|
621
624
|
extra_headers=extra_headers,
|
|
622
625
|
polling_interval_seconds=polling_interval_seconds,
|
|
626
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
623
627
|
)
|
|
624
628
|
return self.list(instance_id, project_id=project_id, region_id=region_id, extra_headers=extra_headers)
|
|
625
629
|
|
|
@@ -997,6 +1001,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
|
|
|
997
1001
|
| Omit = omit,
|
|
998
1002
|
type: str | Omit = omit,
|
|
999
1003
|
polling_interval_seconds: int | Omit = omit,
|
|
1004
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1000
1005
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1001
1006
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1002
1007
|
extra_headers: Headers | None = None,
|
|
@@ -1025,6 +1030,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
|
|
|
1025
1030
|
| Omit = omit,
|
|
1026
1031
|
type: str | Omit = omit,
|
|
1027
1032
|
polling_interval_seconds: int | Omit = omit,
|
|
1033
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1028
1034
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1029
1035
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1030
1036
|
extra_headers: Headers | None = None,
|
|
@@ -1054,6 +1060,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
|
|
|
1054
1060
|
| Omit = omit,
|
|
1055
1061
|
type: str | Omit = omit,
|
|
1056
1062
|
polling_interval_seconds: int | Omit = omit,
|
|
1063
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1057
1064
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1058
1065
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1059
1066
|
extra_headers: Headers | None = None,
|
|
@@ -1082,6 +1089,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
|
|
|
1082
1089
|
| Omit = omit,
|
|
1083
1090
|
type: str | Omit = omit,
|
|
1084
1091
|
polling_interval_seconds: int | Omit = omit,
|
|
1092
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1085
1093
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1086
1094
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1087
1095
|
extra_headers: Headers | None = None,
|
|
@@ -1113,6 +1121,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
|
|
|
1113
1121
|
network_id: str | Omit = omit,
|
|
1114
1122
|
port_id: str | Omit = omit,
|
|
1115
1123
|
polling_interval_seconds: int | Omit = omit,
|
|
1124
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1116
1125
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1117
1126
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1118
1127
|
extra_headers: Headers | None = None,
|
|
@@ -1153,6 +1162,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
|
|
|
1153
1162
|
task_id=response.tasks[0],
|
|
1154
1163
|
extra_headers=extra_headers,
|
|
1155
1164
|
polling_interval_seconds=polling_interval_seconds,
|
|
1165
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1156
1166
|
)
|
|
1157
1167
|
return await self.list(instance_id, project_id=project_id, region_id=region_id, extra_headers=extra_headers)
|
|
1158
1168
|
|
|
@@ -1165,6 +1175,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
|
|
|
1165
1175
|
ip_address: str,
|
|
1166
1176
|
port_id: str,
|
|
1167
1177
|
polling_interval_seconds: int | Omit = omit,
|
|
1178
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1168
1179
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1169
1180
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1170
1181
|
extra_headers: Headers | None = None,
|
|
@@ -1193,6 +1204,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
|
|
|
1193
1204
|
task_id=response.tasks[0],
|
|
1194
1205
|
extra_headers=extra_headers,
|
|
1195
1206
|
polling_interval_seconds=polling_interval_seconds,
|
|
1207
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1196
1208
|
)
|
|
1197
1209
|
return await self.list(instance_id, project_id=project_id, region_id=region_id, extra_headers=extra_headers)
|
|
1198
1210
|
|
|
@@ -349,6 +349,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
349
349
|
redirect_url: str | Omit = omit,
|
|
350
350
|
tags: SequenceNotStr[str] | Omit = omit,
|
|
351
351
|
polling_interval_seconds: int | Omit = omit,
|
|
352
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
352
353
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
353
354
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
354
355
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -379,6 +380,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
379
380
|
task_id=response.tasks[0],
|
|
380
381
|
extra_headers=extra_headers,
|
|
381
382
|
polling_interval_seconds=polling_interval_seconds,
|
|
383
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
382
384
|
)
|
|
383
385
|
if (
|
|
384
386
|
not task.created_resources
|
|
@@ -401,6 +403,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
401
403
|
project_id: int | None = None,
|
|
402
404
|
region_id: int | None = None,
|
|
403
405
|
polling_interval_seconds: int | Omit = omit,
|
|
406
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
404
407
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
405
408
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
406
409
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -423,6 +426,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
423
426
|
task_id=response.tasks[0],
|
|
424
427
|
extra_headers=extra_headers,
|
|
425
428
|
polling_interval_seconds=polling_interval_seconds,
|
|
429
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
426
430
|
)
|
|
427
431
|
|
|
428
432
|
def replace_and_poll(
|
|
@@ -440,6 +444,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
440
444
|
redirect_url: str | Omit = omit,
|
|
441
445
|
tags: SequenceNotStr[str] | Omit = omit,
|
|
442
446
|
polling_interval_seconds: int | Omit = omit,
|
|
447
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
443
448
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
444
449
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
445
450
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -470,6 +475,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
470
475
|
task_id=response.tasks[0],
|
|
471
476
|
extra_headers=extra_headers,
|
|
472
477
|
polling_interval_seconds=polling_interval_seconds,
|
|
478
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
473
479
|
)
|
|
474
480
|
return self.get(
|
|
475
481
|
l7policy_id=l7policy_id,
|
|
@@ -796,6 +802,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
796
802
|
redirect_url: str | Omit = omit,
|
|
797
803
|
tags: SequenceNotStr[str] | Omit = omit,
|
|
798
804
|
polling_interval_seconds: int | Omit = omit,
|
|
805
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
799
806
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
800
807
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
801
808
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -826,6 +833,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
826
833
|
task_id=response.tasks[0],
|
|
827
834
|
extra_headers=extra_headers,
|
|
828
835
|
polling_interval_seconds=polling_interval_seconds,
|
|
836
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
829
837
|
)
|
|
830
838
|
if (
|
|
831
839
|
not task.created_resources
|
|
@@ -848,6 +856,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
848
856
|
project_id: int | None = None,
|
|
849
857
|
region_id: int | None = None,
|
|
850
858
|
polling_interval_seconds: int | Omit = omit,
|
|
859
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
851
860
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
852
861
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
853
862
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -870,6 +879,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
870
879
|
task_id=response.tasks[0],
|
|
871
880
|
extra_headers=extra_headers,
|
|
872
881
|
polling_interval_seconds=polling_interval_seconds,
|
|
882
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
873
883
|
)
|
|
874
884
|
|
|
875
885
|
async def replace_and_poll(
|
|
@@ -887,6 +897,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
887
897
|
redirect_url: str | Omit = omit,
|
|
888
898
|
tags: SequenceNotStr[str] | Omit = omit,
|
|
889
899
|
polling_interval_seconds: int | Omit = omit,
|
|
900
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
890
901
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
891
902
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
892
903
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -917,6 +928,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
917
928
|
task_id=response.tasks[0],
|
|
918
929
|
extra_headers=extra_headers,
|
|
919
930
|
polling_interval_seconds=polling_interval_seconds,
|
|
931
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
920
932
|
)
|
|
921
933
|
return await self.get(
|
|
922
934
|
l7policy_id=l7policy_id,
|
|
@@ -352,6 +352,7 @@ class RulesResource(SyncAPIResource):
|
|
|
352
352
|
key: str | Omit = omit,
|
|
353
353
|
tags: SequenceNotStr[str] | Omit = omit,
|
|
354
354
|
polling_interval_seconds: int | Omit = omit,
|
|
355
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
355
356
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
356
357
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
357
358
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -380,6 +381,7 @@ class RulesResource(SyncAPIResource):
|
|
|
380
381
|
task_id=response.tasks[0],
|
|
381
382
|
extra_headers=extra_headers,
|
|
382
383
|
polling_interval_seconds=polling_interval_seconds,
|
|
384
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
383
385
|
)
|
|
384
386
|
if not task.created_resources or not task.created_resources.l7rules or len(task.created_resources.l7rules) != 1:
|
|
385
387
|
raise ValueError(f"Expected exactly one resource to be created in a task")
|
|
@@ -400,6 +402,7 @@ class RulesResource(SyncAPIResource):
|
|
|
400
402
|
region_id: int | None = None,
|
|
401
403
|
l7policy_id: str,
|
|
402
404
|
polling_interval_seconds: int | Omit = omit,
|
|
405
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
403
406
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
404
407
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
405
408
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -426,6 +429,7 @@ class RulesResource(SyncAPIResource):
|
|
|
426
429
|
task_id=response.tasks[0],
|
|
427
430
|
extra_headers=extra_headers,
|
|
428
431
|
polling_interval_seconds=polling_interval_seconds,
|
|
432
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
429
433
|
)
|
|
430
434
|
|
|
431
435
|
def replace_and_poll(
|
|
@@ -451,6 +455,7 @@ class RulesResource(SyncAPIResource):
|
|
|
451
455
|
key: str | Omit = omit,
|
|
452
456
|
tags: SequenceNotStr[str] | Omit = omit,
|
|
453
457
|
polling_interval_seconds: int | Omit = omit,
|
|
458
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
454
459
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
455
460
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
456
461
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -483,6 +488,7 @@ class RulesResource(SyncAPIResource):
|
|
|
483
488
|
task_id=response.tasks[0],
|
|
484
489
|
extra_headers=extra_headers,
|
|
485
490
|
polling_interval_seconds=polling_interval_seconds,
|
|
491
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
486
492
|
)
|
|
487
493
|
return self.get(
|
|
488
494
|
l7rule_id=l7rule_id,
|
|
@@ -821,6 +827,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
821
827
|
key: str | Omit = omit,
|
|
822
828
|
tags: SequenceNotStr[str] | Omit = omit,
|
|
823
829
|
polling_interval_seconds: int | Omit = omit,
|
|
830
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
824
831
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
825
832
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
826
833
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -849,6 +856,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
849
856
|
task_id=response.tasks[0],
|
|
850
857
|
extra_headers=extra_headers,
|
|
851
858
|
polling_interval_seconds=polling_interval_seconds,
|
|
859
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
852
860
|
)
|
|
853
861
|
if not task.created_resources or not task.created_resources.l7rules or len(task.created_resources.l7rules) != 1:
|
|
854
862
|
raise ValueError(f"Expected exactly one resource to be created in a task")
|
|
@@ -869,6 +877,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
869
877
|
region_id: int | None = None,
|
|
870
878
|
l7policy_id: str,
|
|
871
879
|
polling_interval_seconds: int | Omit = omit,
|
|
880
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
872
881
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
873
882
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
874
883
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -895,6 +904,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
895
904
|
task_id=response.tasks[0],
|
|
896
905
|
extra_headers=extra_headers,
|
|
897
906
|
polling_interval_seconds=polling_interval_seconds,
|
|
907
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
898
908
|
)
|
|
899
909
|
|
|
900
910
|
async def replace_and_poll(
|
|
@@ -920,6 +930,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
920
930
|
key: str | Omit = omit,
|
|
921
931
|
tags: SequenceNotStr[str] | Omit = omit,
|
|
922
932
|
polling_interval_seconds: int | Omit = omit,
|
|
933
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
923
934
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
924
935
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
925
936
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -952,6 +963,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
952
963
|
task_id=response.tasks[0],
|
|
953
964
|
extra_headers=extra_headers,
|
|
954
965
|
polling_interval_seconds=polling_interval_seconds,
|
|
966
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
955
967
|
)
|
|
956
968
|
return await self.get(
|
|
957
969
|
l7rule_id=l7rule_id,
|
|
@@ -412,6 +412,7 @@ class ListenersResource(SyncAPIResource):
|
|
|
412
412
|
timeout_member_data: Optional[int] | Omit = omit,
|
|
413
413
|
user_list: Iterable[listener_create_params.UserList] | Omit = omit,
|
|
414
414
|
polling_interval_seconds: int | Omit = omit,
|
|
415
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
415
416
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
416
417
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
417
418
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -446,6 +447,7 @@ class ListenersResource(SyncAPIResource):
|
|
|
446
447
|
task_id=response.tasks[0],
|
|
447
448
|
extra_headers=extra_headers,
|
|
448
449
|
polling_interval_seconds=polling_interval_seconds,
|
|
450
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
449
451
|
)
|
|
450
452
|
if (
|
|
451
453
|
not task.created_resources
|
|
@@ -468,6 +470,7 @@ class ListenersResource(SyncAPIResource):
|
|
|
468
470
|
project_id: int | None = None,
|
|
469
471
|
region_id: int | None = None,
|
|
470
472
|
polling_interval_seconds: int | Omit = omit,
|
|
473
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
471
474
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
472
475
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
473
476
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -493,6 +496,7 @@ class ListenersResource(SyncAPIResource):
|
|
|
493
496
|
task_id=response.tasks[0],
|
|
494
497
|
extra_headers=extra_headers,
|
|
495
498
|
polling_interval_seconds=polling_interval_seconds,
|
|
499
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
496
500
|
)
|
|
497
501
|
|
|
498
502
|
def update_and_poll(
|
|
@@ -511,6 +515,7 @@ class ListenersResource(SyncAPIResource):
|
|
|
511
515
|
timeout_member_data: Optional[int] | Omit = omit,
|
|
512
516
|
user_list: Optional[Iterable[listener_update_params.UserList]] | Omit = omit,
|
|
513
517
|
polling_interval_seconds: int | Omit = omit,
|
|
518
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
514
519
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
515
520
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
516
521
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -545,6 +550,7 @@ class ListenersResource(SyncAPIResource):
|
|
|
545
550
|
task_id=response.tasks[0],
|
|
546
551
|
extra_headers=extra_headers,
|
|
547
552
|
polling_interval_seconds=polling_interval_seconds,
|
|
553
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
548
554
|
)
|
|
549
555
|
return self.get(
|
|
550
556
|
listener_id=listener_id,
|
|
@@ -935,6 +941,7 @@ class AsyncListenersResource(AsyncAPIResource):
|
|
|
935
941
|
timeout_member_data: Optional[int] | Omit = omit,
|
|
936
942
|
user_list: Iterable[listener_create_params.UserList] | Omit = omit,
|
|
937
943
|
polling_interval_seconds: int | Omit = omit,
|
|
944
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
938
945
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
939
946
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
940
947
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -969,6 +976,7 @@ class AsyncListenersResource(AsyncAPIResource):
|
|
|
969
976
|
task_id=response.tasks[0],
|
|
970
977
|
extra_headers=extra_headers,
|
|
971
978
|
polling_interval_seconds=polling_interval_seconds,
|
|
979
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
972
980
|
)
|
|
973
981
|
if (
|
|
974
982
|
not task.created_resources
|
|
@@ -991,6 +999,7 @@ class AsyncListenersResource(AsyncAPIResource):
|
|
|
991
999
|
project_id: int | None = None,
|
|
992
1000
|
region_id: int | None = None,
|
|
993
1001
|
polling_interval_seconds: int | Omit = omit,
|
|
1002
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
994
1003
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
995
1004
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
996
1005
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1016,6 +1025,7 @@ class AsyncListenersResource(AsyncAPIResource):
|
|
|
1016
1025
|
task_id=response.tasks[0],
|
|
1017
1026
|
extra_headers=extra_headers,
|
|
1018
1027
|
polling_interval_seconds=polling_interval_seconds,
|
|
1028
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1019
1029
|
)
|
|
1020
1030
|
|
|
1021
1031
|
async def update_and_poll(
|
|
@@ -1034,6 +1044,7 @@ class AsyncListenersResource(AsyncAPIResource):
|
|
|
1034
1044
|
timeout_member_data: Optional[int] | Omit = omit,
|
|
1035
1045
|
user_list: Optional[Iterable[listener_update_params.UserList]] | Omit = omit,
|
|
1036
1046
|
polling_interval_seconds: int | Omit = omit,
|
|
1047
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1037
1048
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1038
1049
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1039
1050
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1068,6 +1079,7 @@ class AsyncListenersResource(AsyncAPIResource):
|
|
|
1068
1079
|
task_id=response.tasks[0],
|
|
1069
1080
|
extra_headers=extra_headers,
|
|
1070
1081
|
polling_interval_seconds=polling_interval_seconds,
|
|
1082
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1071
1083
|
)
|
|
1072
1084
|
return await self.get(
|
|
1073
1085
|
listener_id=listener_id,
|