gcore 0.16.0__py3-none-any.whl → 0.23.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/_models.py +37 -15
- gcore/_streaming.py +12 -12
- gcore/_utils/_sync.py +3 -31
- gcore/_utils/_utils.py +1 -1
- gcore/_version.py +1 -1
- gcore/resources/cdn/audit_log.py +4 -4
- gcore/resources/cdn/cdn.py +120 -21
- gcore/resources/cdn/ip_ranges.py +97 -5
- gcore/resources/cdn/{logs/logs.py → logs.py} +9 -9
- gcore/resources/cdn/resources/resources.py +20 -20
- gcore/resources/cdn/statistics.py +56 -58
- gcore/resources/cloud/__init__.py +40 -12
- gcore/resources/cloud/audit_logs.py +20 -0
- gcore/resources/cloud/baremetal/servers.py +48 -14
- gcore/resources/cloud/billing_reservations.py +2 -2
- gcore/resources/cloud/cloud.py +100 -18
- gcore/resources/cloud/databases/__init__.py +33 -0
- gcore/resources/cloud/databases/databases.py +102 -0
- gcore/resources/cloud/databases/postgres/__init__.py +61 -0
- gcore/resources/cloud/databases/postgres/clusters/__init__.py +33 -0
- gcore/resources/cloud/databases/postgres/clusters/clusters.py +716 -0
- gcore/resources/cloud/databases/postgres/clusters/user_credentials.py +281 -0
- gcore/resources/cloud/databases/postgres/configurations.py +169 -0
- gcore/resources/cloud/databases/postgres/custom_configurations.py +197 -0
- gcore/resources/cloud/databases/postgres/postgres.py +166 -0
- gcore/resources/cloud/file_shares/file_shares.py +154 -49
- gcore/resources/cloud/floating_ips.py +42 -10
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +70 -10
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +40 -6
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +16 -0
- gcore/resources/cloud/gpu_virtual_clusters/__init__.py +89 -0
- gcore/resources/cloud/gpu_virtual_clusters/flavors.py +211 -0
- gcore/resources/cloud/gpu_virtual_clusters/gpu_virtual_clusters.py +1551 -0
- gcore/resources/cloud/gpu_virtual_clusters/images.py +582 -0
- gcore/resources/cloud/gpu_virtual_clusters/interfaces.py +187 -0
- gcore/resources/cloud/gpu_virtual_clusters/servers.py +506 -0
- gcore/resources/cloud/gpu_virtual_clusters/volumes.py +187 -0
- gcore/resources/cloud/inference/deployments/deployments.py +52 -4
- gcore/resources/cloud/instances/images.py +72 -18
- gcore/resources/cloud/instances/instances.py +110 -18
- gcore/resources/cloud/instances/interfaces.py +12 -0
- gcore/resources/cloud/k8s/__init__.py +12 -12
- gcore/resources/cloud/k8s/clusters/clusters.py +25 -25
- gcore/resources/cloud/k8s/clusters/pools/pools.py +14 -14
- gcore/resources/cloud/k8s/k8s.py +24 -24
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +1420 -218
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +134 -22
- gcore/resources/cloud/load_balancers/listeners.py +77 -6
- gcore/resources/cloud/load_balancers/load_balancers.py +92 -14
- gcore/resources/cloud/load_balancers/pools/pools.py +52 -4
- gcore/resources/cloud/networks/networks.py +30 -10
- gcore/resources/cloud/networks/subnets.py +26 -10
- gcore/resources/cloud/placement_groups.py +8 -0
- gcore/resources/cloud/projects.py +99 -119
- gcore/resources/cloud/quotas/requests.py +0 -8
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +18 -0
- gcore/resources/cloud/secrets.py +16 -0
- gcore/resources/cloud/security_groups/security_groups.py +38 -12
- gcore/resources/cloud/ssh_keys.py +10 -0
- gcore/resources/cloud/tasks.py +22 -7
- gcore/resources/cloud/volumes.py +65 -23
- gcore/resources/dns/zones/rrsets.py +10 -10
- gcore/resources/dns/zones/zones.py +2 -2
- gcore/resources/security/bgp_announces.py +0 -4
- gcore/resources/security/profiles.py +31 -7
- gcore/resources/storage/credentials.py +0 -28
- gcore/resources/storage/storage.py +2 -2
- gcore/types/cdn/__init__.py +5 -0
- gcore/types/cdn/alibaba_regions.py +22 -0
- gcore/types/cdn/audit_log_list_params.py +2 -2
- 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 +17 -12
- gcore/types/cdn/ip_range_list_ips_params.py +19 -0
- gcore/types/cdn/ip_range_list_params.py +19 -0
- gcore/types/cdn/resource_create_params.py +17 -12
- gcore/types/cdn/resource_purge_params.py +4 -4
- gcore/types/cdn/resource_replace_params.py +17 -12
- gcore/types/cdn/resource_update_params.py +17 -12
- gcore/types/cdn/resource_usage_stats.py +16 -15
- gcore/types/cdn/resources/cdn_resource_rule.py +15 -10
- gcore/types/cdn/resources/rule_create_params.py +15 -10
- gcore/types/cdn/resources/rule_replace_params.py +15 -10
- gcore/types/cdn/resources/rule_update_params.py +15 -10
- gcore/types/cdn/rule_template.py +15 -10
- gcore/types/cdn/rule_template_create_params.py +15 -10
- gcore/types/cdn/rule_template_replace_params.py +15 -10
- gcore/types/cdn/rule_template_update_params.py +15 -10
- gcore/types/cdn/statistic_get_logs_usage_aggregated_params.py +4 -1
- gcore/types/cdn/statistic_get_logs_usage_series_params.py +5 -12
- gcore/types/cdn/statistic_get_resource_usage_aggregated_params.py +10 -21
- gcore/types/cdn/statistic_get_resource_usage_series_params.py +6 -1
- gcore/types/cdn/statistic_get_shield_usage_aggregated_params.py +5 -2
- gcore/types/cdn/statistic_get_shield_usage_series_params.py +3 -0
- gcore/types/cloud/__init__.py +9 -3
- gcore/types/cloud/audit_log_entry.py +9 -3
- gcore/types/cloud/audit_log_list_params.py +12 -0
- gcore/types/cloud/baremetal/server_create_params.py +7 -7
- gcore/types/cloud/baremetal_flavor.py +0 -6
- gcore/types/cloud/billing_reservation_list_params.py +1 -1
- gcore/types/cloud/blackhole_port.py +4 -1
- gcore/types/cloud/databases/postgres/__init__.py +12 -0
- gcore/types/cloud/databases/postgres/cluster_create_params.py +108 -0
- gcore/types/cloud/databases/postgres/cluster_list_params.py +19 -0
- gcore/types/cloud/databases/postgres/cluster_update_params.py +102 -0
- gcore/types/cloud/databases/postgres/clusters/__init__.py +5 -0
- gcore/types/cloud/databases/postgres/clusters/postgres_user_credentials.py +13 -0
- gcore/types/cloud/databases/postgres/custom_configuration_validate_params.py +19 -0
- gcore/types/cloud/databases/postgres/pg_conf_validation.py +15 -0
- gcore/types/cloud/databases/postgres/postgres_cluster.py +118 -0
- gcore/types/cloud/databases/postgres/postgres_cluster_short.py +22 -0
- gcore/types/cloud/databases/postgres/postgres_configuration.py +31 -0
- gcore/types/cloud/file_share_create_params.py +8 -8
- gcore/types/cloud/file_share_update_params.py +7 -2
- gcore/types/cloud/floating_ip.py +5 -1
- gcore/types/cloud/floating_ip_create_params.py +4 -4
- gcore/types/cloud/floating_ip_detailed.py +5 -1
- gcore/types/cloud/floating_ip_list_params.py +8 -0
- gcore/types/cloud/floating_ip_update_params.py +7 -2
- gcore/types/cloud/gpu_baremetal_cluster.py +18 -3
- gcore/types/cloud/gpu_baremetal_cluster_action_params.py +7 -2
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +16 -4
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server.py +5 -2
- gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +4 -4
- gcore/types/cloud/gpu_image.py +9 -0
- gcore/types/cloud/gpu_virtual_cluster.py +189 -0
- gcore/types/cloud/gpu_virtual_cluster_action_params.py +127 -0
- gcore/types/cloud/gpu_virtual_cluster_create_params.py +213 -0
- gcore/types/cloud/gpu_virtual_cluster_delete_params.py +41 -0
- gcore/types/cloud/gpu_virtual_cluster_list_params.py +21 -0
- gcore/types/cloud/gpu_virtual_cluster_update_params.py +18 -0
- gcore/types/cloud/gpu_virtual_clusters/__init__.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/flavor_list_params.py +21 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_server.py +77 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_server_list.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_volume.py +64 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_volume_list.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_flavor.py +155 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_flavor_list.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_interface.py +190 -0
- gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_interface_list.py +16 -0
- gcore/types/cloud/gpu_virtual_clusters/image_upload_params.py +56 -0
- gcore/types/cloud/gpu_virtual_clusters/server_delete_params.py +44 -0
- gcore/types/cloud/gpu_virtual_clusters/server_list_params.py +75 -0
- gcore/types/cloud/image.py +9 -0
- gcore/types/cloud/inference/deployment_create_params.py +1 -1
- gcore/types/cloud/inference/deployment_update_params.py +1 -1
- gcore/types/cloud/inference/inference_deployment.py +1 -1
- gcore/types/cloud/instance_create_params.py +27 -27
- gcore/types/cloud/instance_update_params.py +7 -2
- gcore/types/cloud/instances/image_create_from_volume_params.py +4 -4
- gcore/types/cloud/instances/image_update_params.py +4 -4
- gcore/types/cloud/instances/image_upload_params.py +4 -4
- gcore/types/cloud/k8s/__init__.py +4 -4
- gcore/types/cloud/k8s/cluster_update_params.py +5 -5
- gcore/types/cloud/k8s/clusters/__init__.py +2 -2
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool.py +2 -2
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool_list.py +4 -4
- gcore/types/cloud/k8s/k8s_cluster.py +4 -4
- gcore/types/cloud/k8s/k8s_cluster_certificate.py +2 -2
- gcore/types/cloud/k8s/k8s_cluster_kubeconfig.py +14 -2
- gcore/types/cloud/k8s/k8s_cluster_list.py +4 -4
- gcore/types/cloud/k8s_cluster_version.py +2 -2
- gcore/types/cloud/k8s_cluster_version_list.py +4 -4
- gcore/types/cloud/load_balancer_create_params.py +14 -8
- gcore/types/cloud/load_balancer_flavor_detail.py +2 -2
- gcore/types/cloud/load_balancer_l7_policy.py +29 -16
- gcore/types/cloud/load_balancer_l7_policy_list.py +3 -3
- gcore/types/cloud/load_balancer_l7_rule.py +14 -23
- gcore/types/cloud/load_balancer_l7_rule_list.py +3 -3
- gcore/types/cloud/load_balancer_listener_detail.py +2 -2
- gcore/types/cloud/load_balancer_update_params.py +7 -2
- gcore/types/cloud/load_balancers/__init__.py +1 -0
- gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +5 -10
- gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +7 -11
- gcore/types/cloud/load_balancers/l7_policy_create_params.py +102 -18
- gcore/types/cloud/load_balancers/l7_policy_replace_params.py +94 -16
- gcore/types/cloud/load_balancers/listener_create_params.py +4 -1
- gcore/types/cloud/load_balancers/listener_delete_params.py +18 -0
- gcore/types/cloud/load_balancers/listener_update_params.py +4 -1
- gcore/types/cloud/load_balancers/pool_create_params.py +1 -1
- gcore/types/cloud/network_create_params.py +4 -4
- gcore/types/cloud/network_update_params.py +7 -2
- gcore/types/cloud/networks/subnet_create_params.py +4 -4
- gcore/types/cloud/networks/subnet_update_params.py +7 -2
- gcore/types/cloud/project_create_params.py +0 -6
- gcore/types/cloud/{project_replace_params.py → project_update_params.py} +2 -2
- gcore/types/cloud/quotas/request_create_params.py +0 -3
- gcore/types/cloud/region.py +3 -3
- gcore/types/cloud/security_group.py +8 -1
- gcore/types/cloud/security_group_create_params.py +7 -5
- gcore/types/cloud/security_group_list_params.py +6 -4
- gcore/types/cloud/security_group_update_params.py +7 -2
- gcore/types/cloud/ssh_key_list_params.py +7 -0
- gcore/types/cloud/tag.py +2 -2
- gcore/types/cloud/task_id_list.py +3 -3
- gcore/types/cloud/volume_create_params.py +12 -12
- gcore/types/cloud/volume_update_params.py +7 -2
- gcore/types/dns/zone_list_params.py +1 -1
- gcore/types/iam/api_token_create.py +70 -1
- gcore/types/security/bgp_announce_list_params.py +0 -2
- gcore/types/security/client_profile.py +1 -0
- gcore/types/security/profile_create_params.py +4 -2
- gcore/types/security/profile_recreate_params.py +4 -2
- gcore/types/security/profile_replace_params.py +4 -2
- gcore/types/storage/credential_recreate_params.py +0 -17
- gcore/types/storage/storage.py +1 -1
- gcore/types/storage/storage_create_params.py +1 -1
- gcore/types/streaming/stream.py +3 -2
- gcore/types/streaming/video.py +1 -1
- gcore/types/waap/domains/custom_rule_create_params.py +1 -1
- gcore/types/waap/domains/custom_rule_update_params.py +1 -1
- gcore/types/waap/domains/waap_custom_rule.py +1 -1
- {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/METADATA +14 -14
- {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/RECORD +219 -168
- gcore/resources/cdn/logs/__init__.py +0 -19
- /gcore/types/{cdn/logs → cloud/databases}/__init__.py +0 -0
- {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/WHEEL +0 -0
- {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/licenses/LICENSE +0 -0
gcore/resources/cloud/volumes.py
CHANGED
|
@@ -107,9 +107,10 @@ class VolumesResource(SyncAPIResource):
|
|
|
107
107
|
|
|
108
108
|
tags: Key-value tags to associate with the resource. A tag is a key-value pair that
|
|
109
109
|
can be associated with a resource, enabling efficient filtering and grouping for
|
|
110
|
-
better organization and management.
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
better organization and management. Both tag keys and values have a maximum
|
|
111
|
+
length of 255 characters. Some tags are read-only and cannot be modified by the
|
|
112
|
+
user. Tags are also integrated with cost reports, allowing cost data to be
|
|
113
|
+
filtered based on tag keys or values.
|
|
113
114
|
|
|
114
115
|
type_name: Volume type. Defaults to `standard`. If not specified for source `snapshot`,
|
|
115
116
|
volume type will be derived from the snapshot volume.
|
|
@@ -176,9 +177,10 @@ class VolumesResource(SyncAPIResource):
|
|
|
176
177
|
|
|
177
178
|
tags: Key-value tags to associate with the resource. A tag is a key-value pair that
|
|
178
179
|
can be associated with a resource, enabling efficient filtering and grouping for
|
|
179
|
-
better organization and management.
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
better organization and management. Both tag keys and values have a maximum
|
|
181
|
+
length of 255 characters. Some tags are read-only and cannot be modified by the
|
|
182
|
+
user. Tags are also integrated with cost reports, allowing cost data to be
|
|
183
|
+
filtered based on tag keys or values.
|
|
182
184
|
|
|
183
185
|
type_name: Volume type. Defaults to `standard`. If not specified for source `snapshot`,
|
|
184
186
|
volume type will be derived from the snapshot volume.
|
|
@@ -241,9 +243,10 @@ class VolumesResource(SyncAPIResource):
|
|
|
241
243
|
|
|
242
244
|
tags: Key-value tags to associate with the resource. A tag is a key-value pair that
|
|
243
245
|
can be associated with a resource, enabling efficient filtering and grouping for
|
|
244
|
-
better organization and management.
|
|
245
|
-
|
|
246
|
-
|
|
246
|
+
better organization and management. Both tag keys and values have a maximum
|
|
247
|
+
length of 255 characters. Some tags are read-only and cannot be modified by the
|
|
248
|
+
user. Tags are also integrated with cost reports, allowing cost data to be
|
|
249
|
+
filtered based on tag keys or values.
|
|
247
250
|
|
|
248
251
|
type_name: Volume type. Defaults to `standard`. If not specified for source `snapshot`,
|
|
249
252
|
volume type will be derived from the snapshot volume.
|
|
@@ -347,15 +350,20 @@ class VolumesResource(SyncAPIResource):
|
|
|
347
350
|
- **Add/update tags:**
|
|
348
351
|
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
|
|
349
352
|
updates existing ones.
|
|
350
|
-
|
|
353
|
+
|
|
354
|
+
- **Delete tags:** `{'tags': {'old_tag': null}}` removes specific tags.
|
|
355
|
+
|
|
351
356
|
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
|
|
352
357
|
tags are preserved).
|
|
358
|
+
|
|
353
359
|
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
|
|
354
360
|
specified tags.
|
|
361
|
+
|
|
355
362
|
- **Mixed operations:**
|
|
356
|
-
`{'tags': {'environment': 'production', '
|
|
363
|
+
`{'tags': {'environment': 'production', 'cost_center': 'engineering', 'deprecated_tag': null}}`
|
|
357
364
|
adds/updates 'environment' and '`cost_center`' while removing
|
|
358
365
|
'`deprecated_tag`', preserving other existing tags.
|
|
366
|
+
|
|
359
367
|
- **Replace all:** first delete existing tags with null values, then add new
|
|
360
368
|
ones in the same request.
|
|
361
369
|
|
|
@@ -859,6 +867,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
859
867
|
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"]
|
|
860
868
|
| Omit = omit,
|
|
861
869
|
polling_interval_seconds: int | Omit = omit,
|
|
870
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
862
871
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
863
872
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
864
873
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -929,6 +938,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
929
938
|
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"]
|
|
930
939
|
| Omit = omit,
|
|
931
940
|
polling_interval_seconds: int | Omit = omit,
|
|
941
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
932
942
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
933
943
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
934
944
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -999,6 +1009,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
999
1009
|
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"]
|
|
1000
1010
|
| Omit = omit,
|
|
1001
1011
|
polling_interval_seconds: int | Omit = omit,
|
|
1012
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1002
1013
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1003
1014
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1004
1015
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1070,6 +1081,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1070
1081
|
| Omit = omit,
|
|
1071
1082
|
snapshot_id: str | Omit = omit,
|
|
1072
1083
|
polling_interval_seconds: int | Omit = omit,
|
|
1084
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1073
1085
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1074
1086
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1075
1087
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1102,6 +1114,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1102
1114
|
task_id=response.tasks[0], # type: ignore
|
|
1103
1115
|
extra_headers=extra_headers,
|
|
1104
1116
|
polling_interval_seconds=polling_interval_seconds,
|
|
1117
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1105
1118
|
)
|
|
1106
1119
|
if task.created_resources is None or task.created_resources.volumes is None or len(task.created_resources.volumes) != 1:
|
|
1107
1120
|
raise ValueError("Task completed but created_resources or volumes is missing or invalid")
|
|
@@ -1124,6 +1137,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1124
1137
|
region_id: int | None = None,
|
|
1125
1138
|
snapshots: str | Omit = omit,
|
|
1126
1139
|
polling_interval_seconds: int | Omit = omit,
|
|
1140
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1127
1141
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1128
1142
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1129
1143
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1148,6 +1162,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1148
1162
|
task_id=response.tasks[0],
|
|
1149
1163
|
extra_headers=extra_headers,
|
|
1150
1164
|
polling_interval_seconds=polling_interval_seconds,
|
|
1165
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1151
1166
|
)
|
|
1152
1167
|
|
|
1153
1168
|
def attach_to_instance_and_poll(
|
|
@@ -1159,6 +1174,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1159
1174
|
instance_id: str,
|
|
1160
1175
|
attachment_tag: str | Omit = omit,
|
|
1161
1176
|
polling_interval_seconds: int | Omit = omit,
|
|
1177
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1162
1178
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1163
1179
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1164
1180
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1184,6 +1200,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1184
1200
|
task_id=response.tasks[0],
|
|
1185
1201
|
extra_headers=extra_headers,
|
|
1186
1202
|
polling_interval_seconds=polling_interval_seconds,
|
|
1203
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1187
1204
|
)
|
|
1188
1205
|
|
|
1189
1206
|
def detach_from_instance_and_poll(
|
|
@@ -1194,6 +1211,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1194
1211
|
region_id: int | None = None,
|
|
1195
1212
|
instance_id: str,
|
|
1196
1213
|
polling_interval_seconds: int | Omit = omit,
|
|
1214
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1197
1215
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1198
1216
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1199
1217
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1218,6 +1236,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1218
1236
|
task_id=response.tasks[0],
|
|
1219
1237
|
extra_headers=extra_headers,
|
|
1220
1238
|
polling_interval_seconds=polling_interval_seconds,
|
|
1239
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1221
1240
|
)
|
|
1222
1241
|
|
|
1223
1242
|
def resize_and_poll(
|
|
@@ -1228,6 +1247,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1228
1247
|
region_id: int | None = None,
|
|
1229
1248
|
size: int,
|
|
1230
1249
|
polling_interval_seconds: int | Omit = omit,
|
|
1250
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
1231
1251
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1232
1252
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1233
1253
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1252,6 +1272,7 @@ class VolumesResource(SyncAPIResource):
|
|
|
1252
1272
|
task_id=response.tasks[0],
|
|
1253
1273
|
extra_headers=extra_headers,
|
|
1254
1274
|
polling_interval_seconds=polling_interval_seconds,
|
|
1275
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
1255
1276
|
)
|
|
1256
1277
|
return self.get(
|
|
1257
1278
|
volume_id=volume_id,
|
|
@@ -1335,9 +1356,10 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
1335
1356
|
|
|
1336
1357
|
tags: Key-value tags to associate with the resource. A tag is a key-value pair that
|
|
1337
1358
|
can be associated with a resource, enabling efficient filtering and grouping for
|
|
1338
|
-
better organization and management.
|
|
1339
|
-
|
|
1340
|
-
|
|
1359
|
+
better organization and management. Both tag keys and values have a maximum
|
|
1360
|
+
length of 255 characters. Some tags are read-only and cannot be modified by the
|
|
1361
|
+
user. Tags are also integrated with cost reports, allowing cost data to be
|
|
1362
|
+
filtered based on tag keys or values.
|
|
1341
1363
|
|
|
1342
1364
|
type_name: Volume type. Defaults to `standard`. If not specified for source `snapshot`,
|
|
1343
1365
|
volume type will be derived from the snapshot volume.
|
|
@@ -1404,9 +1426,10 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
1404
1426
|
|
|
1405
1427
|
tags: Key-value tags to associate with the resource. A tag is a key-value pair that
|
|
1406
1428
|
can be associated with a resource, enabling efficient filtering and grouping for
|
|
1407
|
-
better organization and management.
|
|
1408
|
-
|
|
1409
|
-
|
|
1429
|
+
better organization and management. Both tag keys and values have a maximum
|
|
1430
|
+
length of 255 characters. Some tags are read-only and cannot be modified by the
|
|
1431
|
+
user. Tags are also integrated with cost reports, allowing cost data to be
|
|
1432
|
+
filtered based on tag keys or values.
|
|
1410
1433
|
|
|
1411
1434
|
type_name: Volume type. Defaults to `standard`. If not specified for source `snapshot`,
|
|
1412
1435
|
volume type will be derived from the snapshot volume.
|
|
@@ -1469,9 +1492,10 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
1469
1492
|
|
|
1470
1493
|
tags: Key-value tags to associate with the resource. A tag is a key-value pair that
|
|
1471
1494
|
can be associated with a resource, enabling efficient filtering and grouping for
|
|
1472
|
-
better organization and management.
|
|
1473
|
-
|
|
1474
|
-
|
|
1495
|
+
better organization and management. Both tag keys and values have a maximum
|
|
1496
|
+
length of 255 characters. Some tags are read-only and cannot be modified by the
|
|
1497
|
+
user. Tags are also integrated with cost reports, allowing cost data to be
|
|
1498
|
+
filtered based on tag keys or values.
|
|
1475
1499
|
|
|
1476
1500
|
type_name: Volume type. Defaults to `standard`. If not specified for source `snapshot`,
|
|
1477
1501
|
volume type will be derived from the snapshot volume.
|
|
@@ -1575,15 +1599,20 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
1575
1599
|
- **Add/update tags:**
|
|
1576
1600
|
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
|
|
1577
1601
|
updates existing ones.
|
|
1578
|
-
|
|
1602
|
+
|
|
1603
|
+
- **Delete tags:** `{'tags': {'old_tag': null}}` removes specific tags.
|
|
1604
|
+
|
|
1579
1605
|
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
|
|
1580
1606
|
tags are preserved).
|
|
1607
|
+
|
|
1581
1608
|
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
|
|
1582
1609
|
specified tags.
|
|
1610
|
+
|
|
1583
1611
|
- **Mixed operations:**
|
|
1584
|
-
`{'tags': {'environment': 'production', '
|
|
1612
|
+
`{'tags': {'environment': 'production', 'cost_center': 'engineering', 'deprecated_tag': null}}`
|
|
1585
1613
|
adds/updates 'environment' and '`cost_center`' while removing
|
|
1586
1614
|
'`deprecated_tag`', preserving other existing tags.
|
|
1615
|
+
|
|
1587
1616
|
- **Replace all:** first delete existing tags with null values, then add new
|
|
1588
1617
|
ones in the same request.
|
|
1589
1618
|
|
|
@@ -2089,6 +2118,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2089
2118
|
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"]
|
|
2090
2119
|
| Omit = omit,
|
|
2091
2120
|
polling_interval_seconds: int | Omit = omit,
|
|
2121
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2092
2122
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
2093
2123
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2094
2124
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2159,6 +2189,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2159
2189
|
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"]
|
|
2160
2190
|
| Omit = omit,
|
|
2161
2191
|
polling_interval_seconds: int | Omit = omit,
|
|
2192
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2162
2193
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
2163
2194
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2164
2195
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2229,6 +2260,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2229
2260
|
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"]
|
|
2230
2261
|
| Omit = omit,
|
|
2231
2262
|
polling_interval_seconds: int | Omit = omit,
|
|
2263
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2232
2264
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
2233
2265
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2234
2266
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2300,6 +2332,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2300
2332
|
| Omit = omit,
|
|
2301
2333
|
snapshot_id: str | Omit = omit,
|
|
2302
2334
|
polling_interval_seconds: int | Omit = omit,
|
|
2335
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2303
2336
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
2304
2337
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2305
2338
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2328,10 +2361,11 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2328
2361
|
)
|
|
2329
2362
|
if not response.tasks: # type: ignore
|
|
2330
2363
|
raise ValueError("Expected at least one task to be created")
|
|
2331
|
-
task =
|
|
2364
|
+
task = await self._client.cloud.tasks.poll(
|
|
2332
2365
|
task_id=response.tasks[0], # type: ignore
|
|
2333
2366
|
extra_headers=extra_headers,
|
|
2334
2367
|
polling_interval_seconds=polling_interval_seconds,
|
|
2368
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
2335
2369
|
)
|
|
2336
2370
|
if task.created_resources is None or task.created_resources.volumes is None or len(task.created_resources.volumes) != 1:
|
|
2337
2371
|
raise ValueError("Task completed but created_resources or volumes is missing or invalid")
|
|
@@ -2354,6 +2388,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2354
2388
|
region_id: int | None = None,
|
|
2355
2389
|
snapshots: str | Omit = omit,
|
|
2356
2390
|
polling_interval_seconds: int | Omit = omit,
|
|
2391
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2357
2392
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
2358
2393
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2359
2394
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2378,6 +2413,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2378
2413
|
task_id=response.tasks[0],
|
|
2379
2414
|
extra_headers=extra_headers,
|
|
2380
2415
|
polling_interval_seconds=polling_interval_seconds,
|
|
2416
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
2381
2417
|
)
|
|
2382
2418
|
|
|
2383
2419
|
async def attach_to_instance_and_poll(
|
|
@@ -2389,6 +2425,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2389
2425
|
instance_id: str,
|
|
2390
2426
|
attachment_tag: str | Omit = omit,
|
|
2391
2427
|
polling_interval_seconds: int | Omit = omit,
|
|
2428
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2392
2429
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
2393
2430
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2394
2431
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2414,6 +2451,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2414
2451
|
task_id=response.tasks[0],
|
|
2415
2452
|
extra_headers=extra_headers,
|
|
2416
2453
|
polling_interval_seconds=polling_interval_seconds,
|
|
2454
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
2417
2455
|
)
|
|
2418
2456
|
|
|
2419
2457
|
async def detach_from_instance_and_poll(
|
|
@@ -2424,6 +2462,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2424
2462
|
region_id: int | None = None,
|
|
2425
2463
|
instance_id: str,
|
|
2426
2464
|
polling_interval_seconds: int | Omit = omit,
|
|
2465
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2427
2466
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
2428
2467
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2429
2468
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2448,6 +2487,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2448
2487
|
task_id=response.tasks[0],
|
|
2449
2488
|
extra_headers=extra_headers,
|
|
2450
2489
|
polling_interval_seconds=polling_interval_seconds,
|
|
2490
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
2451
2491
|
)
|
|
2452
2492
|
|
|
2453
2493
|
async def resize_and_poll(
|
|
@@ -2458,6 +2498,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2458
2498
|
region_id: int | None = None,
|
|
2459
2499
|
size: int,
|
|
2460
2500
|
polling_interval_seconds: int | Omit = omit,
|
|
2501
|
+
polling_timeout_seconds: int | Omit = omit,
|
|
2461
2502
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
2462
2503
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2463
2504
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2482,6 +2523,7 @@ class AsyncVolumesResource(AsyncAPIResource):
|
|
|
2482
2523
|
task_id=response.tasks[0],
|
|
2483
2524
|
extra_headers=extra_headers,
|
|
2484
2525
|
polling_interval_seconds=polling_interval_seconds,
|
|
2526
|
+
polling_timeout_seconds=polling_timeout_seconds,
|
|
2485
2527
|
)
|
|
2486
2528
|
return await self.get(
|
|
2487
2529
|
volume_id=volume_id,
|
|
@@ -91,7 +91,7 @@ class RrsetsResource(SyncAPIResource):
|
|
|
91
91
|
For example, sort records by proximity to user, shuffle based on weights and
|
|
92
92
|
return not more than 3:
|
|
93
93
|
|
|
94
|
-
`"pickers": [ { "type": "geodistance" }, { "type": "
|
|
94
|
+
`"pickers": [ { "type": "geodistance" }, { "type": "weighted_shuffle" }, { "type": "first_n", "limit": 3 } ]`
|
|
95
95
|
|
|
96
96
|
#### geodns filter
|
|
97
97
|
|
|
@@ -168,7 +168,7 @@ class RrsetsResource(SyncAPIResource):
|
|
|
168
168
|
`"meta": {"default": true}`.
|
|
169
169
|
|
|
170
170
|
Example:
|
|
171
|
-
`"pickers": [ { "type": "geodns", "strict": false }, { "type": "default" }, { "type": "
|
|
171
|
+
`"pickers": [ { "type": "geodns", "strict": false }, { "type": "default" }, { "type": "first_n", "limit": 2 } ]`
|
|
172
172
|
|
|
173
173
|
#### geodistance mutator
|
|
174
174
|
|
|
@@ -179,20 +179,20 @@ class RrsetsResource(SyncAPIResource):
|
|
|
179
179
|
`[52.520008, 13.404954]`.;
|
|
180
180
|
|
|
181
181
|
In this configuration the only "nearest" to the requestor record to be returned:
|
|
182
|
-
`"pickers": [ { "type": "geodistance" }, { "type": "
|
|
182
|
+
`"pickers": [ { "type": "geodistance" }, { "type": "first_n", "limit": 1 } ]`
|
|
183
183
|
|
|
184
184
|
#### `weighted_shuffle` mutator
|
|
185
185
|
|
|
186
186
|
The resource records are rearranged in random order based on the `weight`
|
|
187
187
|
metadata. Default weight (if not specified) is 50.
|
|
188
188
|
|
|
189
|
-
Example: `"pickers": [ { "type": "
|
|
189
|
+
Example: `"pickers": [ { "type": "weighted_shuffle" } ]`
|
|
190
190
|
|
|
191
191
|
#### `first_n` filter
|
|
192
192
|
|
|
193
193
|
Slices first N (N specified as a limit parameter value) resource records.
|
|
194
194
|
|
|
195
|
-
Example: `"pickers": [ { "type": "
|
|
195
|
+
Example: `"pickers": [ { "type": "first_n", "limit": 1 } ]` returns only the
|
|
196
196
|
first resource record.
|
|
197
197
|
|
|
198
198
|
##### limit parameter
|
|
@@ -547,7 +547,7 @@ class AsyncRrsetsResource(AsyncAPIResource):
|
|
|
547
547
|
For example, sort records by proximity to user, shuffle based on weights and
|
|
548
548
|
return not more than 3:
|
|
549
549
|
|
|
550
|
-
`"pickers": [ { "type": "geodistance" }, { "type": "
|
|
550
|
+
`"pickers": [ { "type": "geodistance" }, { "type": "weighted_shuffle" }, { "type": "first_n", "limit": 3 } ]`
|
|
551
551
|
|
|
552
552
|
#### geodns filter
|
|
553
553
|
|
|
@@ -624,7 +624,7 @@ class AsyncRrsetsResource(AsyncAPIResource):
|
|
|
624
624
|
`"meta": {"default": true}`.
|
|
625
625
|
|
|
626
626
|
Example:
|
|
627
|
-
`"pickers": [ { "type": "geodns", "strict": false }, { "type": "default" }, { "type": "
|
|
627
|
+
`"pickers": [ { "type": "geodns", "strict": false }, { "type": "default" }, { "type": "first_n", "limit": 2 } ]`
|
|
628
628
|
|
|
629
629
|
#### geodistance mutator
|
|
630
630
|
|
|
@@ -635,20 +635,20 @@ class AsyncRrsetsResource(AsyncAPIResource):
|
|
|
635
635
|
`[52.520008, 13.404954]`.;
|
|
636
636
|
|
|
637
637
|
In this configuration the only "nearest" to the requestor record to be returned:
|
|
638
|
-
`"pickers": [ { "type": "geodistance" }, { "type": "
|
|
638
|
+
`"pickers": [ { "type": "geodistance" }, { "type": "first_n", "limit": 1 } ]`
|
|
639
639
|
|
|
640
640
|
#### `weighted_shuffle` mutator
|
|
641
641
|
|
|
642
642
|
The resource records are rearranged in random order based on the `weight`
|
|
643
643
|
metadata. Default weight (if not specified) is 50.
|
|
644
644
|
|
|
645
|
-
Example: `"pickers": [ { "type": "
|
|
645
|
+
Example: `"pickers": [ { "type": "weighted_shuffle" } ]`
|
|
646
646
|
|
|
647
647
|
#### `first_n` filter
|
|
648
648
|
|
|
649
649
|
Slices first N (N specified as a limit parameter value) resource records.
|
|
650
650
|
|
|
651
|
-
Example: `"pickers": [ { "type": "
|
|
651
|
+
Example: `"pickers": [ { "type": "first_n", "limit": 1 } ]` returns only the
|
|
652
652
|
first resource record.
|
|
653
653
|
|
|
654
654
|
##### limit parameter
|
|
@@ -200,7 +200,7 @@ class ZonesResource(SyncAPIResource):
|
|
|
200
200
|
Args:
|
|
201
201
|
id: to pass several ids `id=1&id=3&id=5...`
|
|
202
202
|
|
|
203
|
-
client_id: to pass several `client_ids` `client_id=1
|
|
203
|
+
client_id: to pass several `client_ids` `client_id=1&client_id=3&client_id=5...`
|
|
204
204
|
|
|
205
205
|
dynamic: Zones with dynamic RRsets
|
|
206
206
|
|
|
@@ -837,7 +837,7 @@ class AsyncZonesResource(AsyncAPIResource):
|
|
|
837
837
|
Args:
|
|
838
838
|
id: to pass several ids `id=1&id=3&id=5...`
|
|
839
839
|
|
|
840
|
-
client_id: to pass several `client_ids` `client_id=1
|
|
840
|
+
client_id: to pass several `client_ids` `client_id=1&client_id=3&client_id=5...`
|
|
841
841
|
|
|
842
842
|
dynamic: Zones with dynamic RRsets
|
|
843
843
|
|
|
@@ -48,7 +48,6 @@ class BgpAnnouncesResource(SyncAPIResource):
|
|
|
48
48
|
self,
|
|
49
49
|
*,
|
|
50
50
|
announced: Optional[bool] | Omit = omit,
|
|
51
|
-
client_id: Optional[int] | Omit = omit,
|
|
52
51
|
origin: Optional[Literal["STATIC", "DYNAMIC"]] | Omit = omit,
|
|
53
52
|
site: Optional[str] | Omit = omit,
|
|
54
53
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -83,7 +82,6 @@ class BgpAnnouncesResource(SyncAPIResource):
|
|
|
83
82
|
query=maybe_transform(
|
|
84
83
|
{
|
|
85
84
|
"announced": announced,
|
|
86
|
-
"client_id": client_id,
|
|
87
85
|
"origin": origin,
|
|
88
86
|
"site": site,
|
|
89
87
|
},
|
|
@@ -165,7 +163,6 @@ class AsyncBgpAnnouncesResource(AsyncAPIResource):
|
|
|
165
163
|
self,
|
|
166
164
|
*,
|
|
167
165
|
announced: Optional[bool] | Omit = omit,
|
|
168
|
-
client_id: Optional[int] | Omit = omit,
|
|
169
166
|
origin: Optional[Literal["STATIC", "DYNAMIC"]] | Omit = omit,
|
|
170
167
|
site: Optional[str] | Omit = omit,
|
|
171
168
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -200,7 +197,6 @@ class AsyncBgpAnnouncesResource(AsyncAPIResource):
|
|
|
200
197
|
query=await async_maybe_transform(
|
|
201
198
|
{
|
|
202
199
|
"announced": announced,
|
|
203
|
-
"client_id": client_id,
|
|
204
200
|
"origin": origin,
|
|
205
201
|
"site": site,
|
|
206
202
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Iterable
|
|
5
|
+
from typing import Iterable
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
@@ -55,7 +55,7 @@ class ProfilesResource(SyncAPIResource):
|
|
|
55
55
|
fields: Iterable[profile_create_params.Field],
|
|
56
56
|
profile_template: int,
|
|
57
57
|
site: str,
|
|
58
|
-
ip_address:
|
|
58
|
+
ip_address: str | Omit = omit,
|
|
59
59
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
60
60
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
61
61
|
extra_headers: Headers | None = None,
|
|
@@ -69,6 +69,10 @@ class ProfilesResource(SyncAPIResource):
|
|
|
69
69
|
created
|
|
70
70
|
|
|
71
71
|
Args:
|
|
72
|
+
site: Region where the protection profiles will be deployed
|
|
73
|
+
|
|
74
|
+
ip_address: Required for Universal template only. Optional for all others.
|
|
75
|
+
|
|
72
76
|
extra_headers: Send extra headers
|
|
73
77
|
|
|
74
78
|
extra_query: Add additional query parameters to the request
|
|
@@ -212,7 +216,7 @@ class ProfilesResource(SyncAPIResource):
|
|
|
212
216
|
*,
|
|
213
217
|
fields: Iterable[profile_recreate_params.Field],
|
|
214
218
|
profile_template: int,
|
|
215
|
-
ip_address:
|
|
219
|
+
ip_address: str | Omit = omit,
|
|
216
220
|
site: str | Omit = omit,
|
|
217
221
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
218
222
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -225,6 +229,10 @@ class ProfilesResource(SyncAPIResource):
|
|
|
225
229
|
Recreate profile with another profile template (for other cases use detail API)
|
|
226
230
|
|
|
227
231
|
Args:
|
|
232
|
+
ip_address: Required for Universal template only. Optional for all others.
|
|
233
|
+
|
|
234
|
+
site: Region where the protection profiles will be deployed
|
|
235
|
+
|
|
228
236
|
extra_headers: Send extra headers
|
|
229
237
|
|
|
230
238
|
extra_query: Add additional query parameters to the request
|
|
@@ -256,7 +264,7 @@ class ProfilesResource(SyncAPIResource):
|
|
|
256
264
|
*,
|
|
257
265
|
fields: Iterable[profile_replace_params.Field],
|
|
258
266
|
profile_template: int,
|
|
259
|
-
ip_address:
|
|
267
|
+
ip_address: str | Omit = omit,
|
|
260
268
|
site: str | Omit = omit,
|
|
261
269
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
262
270
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -271,6 +279,10 @@ class ProfilesResource(SyncAPIResource):
|
|
|
271
279
|
updated
|
|
272
280
|
|
|
273
281
|
Args:
|
|
282
|
+
ip_address: Required for Universal template only. Optional for all others.
|
|
283
|
+
|
|
284
|
+
site: Region where the protection profiles will be deployed
|
|
285
|
+
|
|
274
286
|
extra_headers: Send extra headers
|
|
275
287
|
|
|
276
288
|
extra_query: Add additional query parameters to the request
|
|
@@ -323,7 +335,7 @@ class AsyncProfilesResource(AsyncAPIResource):
|
|
|
323
335
|
fields: Iterable[profile_create_params.Field],
|
|
324
336
|
profile_template: int,
|
|
325
337
|
site: str,
|
|
326
|
-
ip_address:
|
|
338
|
+
ip_address: str | Omit = omit,
|
|
327
339
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
328
340
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
329
341
|
extra_headers: Headers | None = None,
|
|
@@ -337,6 +349,10 @@ class AsyncProfilesResource(AsyncAPIResource):
|
|
|
337
349
|
created
|
|
338
350
|
|
|
339
351
|
Args:
|
|
352
|
+
site: Region where the protection profiles will be deployed
|
|
353
|
+
|
|
354
|
+
ip_address: Required for Universal template only. Optional for all others.
|
|
355
|
+
|
|
340
356
|
extra_headers: Send extra headers
|
|
341
357
|
|
|
342
358
|
extra_query: Add additional query parameters to the request
|
|
@@ -480,7 +496,7 @@ class AsyncProfilesResource(AsyncAPIResource):
|
|
|
480
496
|
*,
|
|
481
497
|
fields: Iterable[profile_recreate_params.Field],
|
|
482
498
|
profile_template: int,
|
|
483
|
-
ip_address:
|
|
499
|
+
ip_address: str | Omit = omit,
|
|
484
500
|
site: str | Omit = omit,
|
|
485
501
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
486
502
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -493,6 +509,10 @@ class AsyncProfilesResource(AsyncAPIResource):
|
|
|
493
509
|
Recreate profile with another profile template (for other cases use detail API)
|
|
494
510
|
|
|
495
511
|
Args:
|
|
512
|
+
ip_address: Required for Universal template only. Optional for all others.
|
|
513
|
+
|
|
514
|
+
site: Region where the protection profiles will be deployed
|
|
515
|
+
|
|
496
516
|
extra_headers: Send extra headers
|
|
497
517
|
|
|
498
518
|
extra_query: Add additional query parameters to the request
|
|
@@ -524,7 +544,7 @@ class AsyncProfilesResource(AsyncAPIResource):
|
|
|
524
544
|
*,
|
|
525
545
|
fields: Iterable[profile_replace_params.Field],
|
|
526
546
|
profile_template: int,
|
|
527
|
-
ip_address:
|
|
547
|
+
ip_address: str | Omit = omit,
|
|
528
548
|
site: str | Omit = omit,
|
|
529
549
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
530
550
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -539,6 +559,10 @@ class AsyncProfilesResource(AsyncAPIResource):
|
|
|
539
559
|
updated
|
|
540
560
|
|
|
541
561
|
Args:
|
|
562
|
+
ip_address: Required for Universal template only. Optional for all others.
|
|
563
|
+
|
|
564
|
+
site: Region where the protection profiles will be deployed
|
|
565
|
+
|
|
542
566
|
extra_headers: Send extra headers
|
|
543
567
|
|
|
544
568
|
extra_query: Add additional query parameters to the request
|
|
@@ -62,20 +62,6 @@ class CredentialsResource(SyncAPIResource):
|
|
|
62
62
|
password for SFTP storage).
|
|
63
63
|
|
|
64
64
|
Args:
|
|
65
|
-
delete_sftp_password: Remove the SFTP password, disabling password authentication. Only applicable to
|
|
66
|
-
SFTP storage type.
|
|
67
|
-
|
|
68
|
-
generate_s3_keys: Generate new S3 access and secret keys for S3 storage. Only applicable to S3
|
|
69
|
-
storage type.
|
|
70
|
-
|
|
71
|
-
generate_sftp_password: Generate a new random password for SFTP access. Only applicable to SFTP storage
|
|
72
|
-
type.
|
|
73
|
-
|
|
74
|
-
reset_sftp_keys: Reset/remove all SSH keys associated with the SFTP storage. Only applicable to
|
|
75
|
-
SFTP storage type.
|
|
76
|
-
|
|
77
|
-
sftp_password: Set a custom password for SFTP access. Only applicable to SFTP storage type.
|
|
78
|
-
|
|
79
65
|
extra_headers: Send extra headers
|
|
80
66
|
|
|
81
67
|
extra_query: Add additional query parameters to the request
|
|
@@ -144,20 +130,6 @@ class AsyncCredentialsResource(AsyncAPIResource):
|
|
|
144
130
|
password for SFTP storage).
|
|
145
131
|
|
|
146
132
|
Args:
|
|
147
|
-
delete_sftp_password: Remove the SFTP password, disabling password authentication. Only applicable to
|
|
148
|
-
SFTP storage type.
|
|
149
|
-
|
|
150
|
-
generate_s3_keys: Generate new S3 access and secret keys for S3 storage. Only applicable to S3
|
|
151
|
-
storage type.
|
|
152
|
-
|
|
153
|
-
generate_sftp_password: Generate a new random password for SFTP access. Only applicable to SFTP storage
|
|
154
|
-
type.
|
|
155
|
-
|
|
156
|
-
reset_sftp_keys: Reset/remove all SSH keys associated with the SFTP storage. Only applicable to
|
|
157
|
-
SFTP storage type.
|
|
158
|
-
|
|
159
|
-
sftp_password: Set a custom password for SFTP access. Only applicable to SFTP storage type.
|
|
160
|
-
|
|
161
133
|
extra_headers: Send extra headers
|
|
162
134
|
|
|
163
135
|
extra_query: Add additional query parameters to the request
|