gcore 0.3.0__py3-none-any.whl → 0.5.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/__init__.py +2 -1
- gcore/_base_client.py +31 -2
- gcore/_client.py +18 -0
- gcore/_constants.py +2 -2
- gcore/_models.py +8 -5
- gcore/_version.py +1 -1
- gcore/pagination.py +252 -1
- gcore/resources/__init__.py +28 -0
- gcore/resources/cloud/baremetal/flavors.py +11 -137
- gcore/resources/cloud/baremetal/images.py +10 -12
- gcore/resources/cloud/baremetal/servers.py +33 -30
- gcore/resources/cloud/billing_reservations.py +2 -2
- gcore/resources/cloud/file_shares/file_shares.py +7 -8
- gcore/resources/cloud/floating_ips.py +7 -12
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +33 -22
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +9 -10
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -2
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +8 -4
- gcore/resources/cloud/inference/deployments/deployments.py +76 -35
- gcore/resources/cloud/inference/deployments/logs.py +7 -7
- gcore/resources/cloud/inference/inference.py +5 -5
- gcore/resources/cloud/inference/models.py +16 -15
- gcore/resources/cloud/inference/registry_credentials.py +18 -18
- gcore/resources/cloud/inference/secrets.py +12 -13
- gcore/resources/cloud/instances/flavors.py +9 -233
- gcore/resources/cloud/instances/images.py +47 -37
- gcore/resources/cloud/instances/instances.py +49 -34
- gcore/resources/cloud/instances/interfaces.py +2 -2
- gcore/resources/cloud/ip_ranges.py +34 -2
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +10 -2
- gcore/resources/cloud/load_balancers/listeners.py +17 -8
- gcore/resources/cloud/load_balancers/load_balancers.py +73 -21
- gcore/resources/cloud/load_balancers/metrics.py +2 -2
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +2 -2
- gcore/resources/cloud/load_balancers/pools/members.py +6 -2
- gcore/resources/cloud/networks/networks.py +81 -17
- gcore/resources/cloud/networks/routers.py +18 -18
- gcore/resources/cloud/networks/subnets.py +51 -11
- gcore/resources/cloud/projects.py +38 -24
- gcore/resources/cloud/quotas/quotas.py +6 -6
- gcore/resources/cloud/quotas/requests.py +8 -8
- gcore/resources/cloud/registries/artifacts.py +4 -4
- gcore/resources/cloud/registries/registries.py +14 -16
- gcore/resources/cloud/registries/repositories.py +4 -4
- gcore/resources/cloud/registries/tags.py +2 -2
- gcore/resources/cloud/registries/users.py +21 -22
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +20 -20
- gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -10
- gcore/resources/cloud/secrets.py +14 -224
- gcore/resources/cloud/security_groups/rules.py +6 -6
- gcore/resources/cloud/security_groups/security_groups.py +70 -31
- gcore/resources/cloud/tasks.py +34 -32
- gcore/resources/cloud/users/role_assignments.py +12 -14
- gcore/resources/cloud/volumes.py +139 -49
- gcore/resources/fastedge/__init__.py +103 -0
- gcore/resources/fastedge/apps/__init__.py +33 -0
- gcore/resources/fastedge/apps/apps.py +932 -0
- gcore/resources/fastedge/apps/logs.py +248 -0
- gcore/resources/fastedge/binaries.py +286 -0
- gcore/resources/fastedge/fastedge.py +327 -0
- gcore/resources/fastedge/kv_stores.py +523 -0
- gcore/resources/fastedge/secrets.py +687 -0
- gcore/resources/fastedge/statistics.py +347 -0
- gcore/resources/fastedge/templates.py +652 -0
- gcore/resources/iam/__init__.py +47 -0
- gcore/resources/iam/api_tokens.py +521 -0
- gcore/resources/iam/iam.py +199 -0
- gcore/resources/iam/users.py +642 -0
- gcore/resources/waap/__init__.py +0 -14
- gcore/resources/waap/waap.py +0 -32
- gcore/types/cloud/__init__.py +2 -28
- gcore/types/cloud/baremetal/__init__.py +0 -1
- gcore/types/cloud/baremetal/image_list_params.py +1 -5
- gcore/types/cloud/baremetal/server_create_params.py +5 -9
- gcore/types/cloud/baremetal/server_list_params.py +1 -5
- gcore/types/cloud/ddos_profile.py +9 -3
- gcore/types/cloud/file_share_create_params.py +3 -5
- gcore/types/cloud/floating_ip_create_params.py +2 -4
- gcore/types/cloud/floating_ip_list_params.py +1 -5
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +3 -4
- gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +2 -4
- gcore/types/cloud/health_monitor.py +6 -1
- gcore/types/cloud/inference/__init__.py +12 -8
- gcore/types/cloud/inference/deployment_create_params.py +224 -7
- gcore/types/cloud/inference/deployment_update_params.py +24 -3
- gcore/types/cloud/inference/deployments/__init__.py +1 -0
- gcore/types/cloud/inference/{inference_log.py → deployments/inference_deployment_log.py} +3 -3
- gcore/types/cloud/inference/inference_deployment.py +266 -0
- gcore/types/cloud/inference/{inference_apikey_secret.py → inference_deployment_api_key.py} +2 -2
- gcore/types/cloud/inference/{mlcatalog_model_card.py → inference_model.py} +2 -2
- gcore/types/cloud/inference/{inference_registry_credential.py → inference_registry_credentials.py} +2 -2
- gcore/types/cloud/inference/{inference_registry_credential_full.py → inference_registry_credentials_create.py} +2 -2
- gcore/types/cloud/inference/inference_secret.py +10 -3
- gcore/types/cloud/inference/model_list_params.py +2 -4
- gcore/types/cloud/{container_probe.py → inference/probe.py} +9 -9
- gcore/types/cloud/{container_probe_config.py → inference/probe_config.py} +5 -5
- gcore/types/cloud/{container_probe_exec.py → inference/probe_exec.py} +3 -3
- gcore/types/cloud/{container_probe_http_get.py → inference/probe_http_get.py} +3 -3
- gcore/types/cloud/{container_probe_tcp_socket.py → inference/probe_tcp_socket.py} +3 -3
- gcore/types/cloud/inference/secret_create_params.py +10 -4
- gcore/types/cloud/inference/secret_replace_params.py +10 -4
- gcore/types/cloud/{region_capacity.py → inference_region_capacity.py} +10 -3
- gcore/types/cloud/{region_capacity_list.py → inference_region_capacity_list.py} +4 -4
- gcore/types/cloud/instance_create_params.py +8 -9
- gcore/types/cloud/instance_list_params.py +1 -5
- gcore/types/cloud/instances/__init__.py +0 -2
- gcore/types/cloud/instances/image_create_from_volume_params.py +2 -4
- gcore/types/cloud/instances/image_list_params.py +1 -5
- gcore/types/cloud/instances/image_upload_params.py +2 -4
- gcore/types/cloud/load_balancer_create_params.py +8 -4
- gcore/types/cloud/load_balancer_list_params.py +1 -5
- gcore/types/cloud/load_balancer_update_params.py +24 -0
- gcore/types/cloud/load_balancers/pool_create_params.py +6 -1
- gcore/types/cloud/load_balancers/pool_update_params.py +6 -1
- gcore/types/cloud/load_balancers/pools/member_add_params.py +6 -1
- gcore/types/cloud/member.py +6 -1
- gcore/types/cloud/network_create_params.py +2 -3
- gcore/types/cloud/network_list_params.py +4 -5
- gcore/types/cloud/network_update_params.py +28 -2
- gcore/types/cloud/networks/router_list_params.py +2 -2
- gcore/types/cloud/networks/subnet_create_params.py +2 -3
- gcore/types/cloud/networks/subnet_list_params.py +1 -5
- gcore/types/cloud/networks/subnet_update_params.py +25 -0
- gcore/types/cloud/registries/__init__.py +1 -0
- gcore/types/cloud/registries/user_refresh_secret_response.py +31 -0
- gcore/types/cloud/reserved_fixed_ip_list_params.py +2 -2
- gcore/types/cloud/security_group_list_params.py +3 -7
- gcore/types/cloud/security_group_update_params.py +25 -0
- gcore/types/cloud/tag_update_map_param.py +2 -2
- gcore/types/cloud/task_list_params.py +15 -14
- gcore/types/cloud/volume_list_params.py +1 -5
- gcore/types/cloud/volume_update_params.py +29 -3
- gcore/types/fastedge/__init__.py +48 -0
- gcore/types/fastedge/app.py +81 -0
- gcore/types/fastedge/app_create_params.py +56 -0
- gcore/types/fastedge/app_list_params.py +50 -0
- gcore/types/fastedge/app_param.py +56 -0
- gcore/types/fastedge/app_replace_params.py +17 -0
- gcore/types/fastedge/app_short.py +60 -0
- gcore/types/fastedge/app_update_params.py +56 -0
- gcore/types/fastedge/apps/__init__.py +6 -0
- gcore/types/fastedge/apps/log.py +28 -0
- gcore/types/fastedge/apps/log_list_params.py +37 -0
- gcore/types/fastedge/binary.py +40 -0
- gcore/types/fastedge/binary_list_response.py +12 -0
- gcore/types/fastedge/binary_short.py +32 -0
- gcore/types/fastedge/call_status.py +24 -0
- gcore/types/fastedge/client.py +57 -0
- gcore/types/fastedge/duration_stats.py +30 -0
- gcore/types/fastedge/kv_store.py +33 -0
- gcore/types/fastedge/kv_store_create_params.py +23 -0
- gcore/types/fastedge/kv_store_get_response.py +10 -0
- gcore/types/fastedge/kv_store_list_params.py +12 -0
- gcore/types/fastedge/kv_store_list_response.py +15 -0
- gcore/types/fastedge/kv_store_replace_params.py +23 -0
- gcore/types/fastedge/kv_store_short.py +19 -0
- gcore/types/fastedge/kv_store_stats.py +26 -0
- gcore/types/fastedge/secret.py +29 -0
- gcore/types/fastedge/secret_create_params.py +27 -0
- gcore/types/fastedge/secret_create_response.py +12 -0
- gcore/types/fastedge/secret_delete_params.py +12 -0
- gcore/types/fastedge/secret_list_params.py +15 -0
- gcore/types/{cloud → fastedge}/secret_list_response.py +2 -6
- gcore/types/fastedge/secret_replace_params.py +27 -0
- gcore/types/fastedge/secret_short.py +21 -0
- gcore/types/fastedge/secret_update_params.py +27 -0
- gcore/types/fastedge/statistic_get_call_series_params.py +28 -0
- gcore/types/fastedge/statistic_get_call_series_response.py +12 -0
- gcore/types/fastedge/statistic_get_duration_series_params.py +28 -0
- gcore/types/fastedge/statistic_get_duration_series_response.py +12 -0
- gcore/types/fastedge/template.py +31 -0
- gcore/types/fastedge/template_create_params.py +30 -0
- gcore/types/fastedge/template_delete_params.py +12 -0
- gcore/types/fastedge/template_list_params.py +25 -0
- gcore/types/fastedge/template_parameter.py +22 -0
- gcore/types/fastedge/template_parameter_param.py +21 -0
- gcore/types/fastedge/template_replace_params.py +30 -0
- gcore/types/fastedge/template_short.py +27 -0
- gcore/types/iam/__init__.py +17 -0
- gcore/types/iam/account_overview.py +488 -0
- gcore/types/iam/api_token.py +78 -0
- gcore/types/iam/api_token_create.py +15 -0
- gcore/types/iam/api_token_create_params.py +42 -0
- gcore/types/iam/api_token_list.py +81 -0
- gcore/types/iam/api_token_list_params.py +41 -0
- gcore/types/iam/user.py +86 -0
- gcore/types/iam/user_detailed.py +104 -0
- gcore/types/iam/user_invite.py +15 -0
- gcore/types/iam/user_invite_params.py +37 -0
- gcore/types/iam/user_list_params.py +15 -0
- gcore/types/iam/user_update.py +104 -0
- gcore/types/iam/user_update_params.py +52 -0
- gcore/types/waap/__init__.py +0 -1
- gcore/types/waap/domains/custom_rule_create_params.py +7 -3
- gcore/types/waap/domains/custom_rule_update_params.py +7 -3
- gcore/types/waap/waap_custom_rule.py +7 -3
- {gcore-0.3.0.dist-info → gcore-0.5.0.dist-info}/METADATA +44 -5
- {gcore-0.3.0.dist-info → gcore-0.5.0.dist-info}/RECORD +200 -151
- gcore/resources/waap/clients.py +0 -135
- gcore/types/cloud/aws_iam_data.py +0 -13
- gcore/types/cloud/aws_iam_data_param.py +0 -15
- gcore/types/cloud/baremetal/flavor_list_suitable_params.py +0 -22
- gcore/types/cloud/capacity.py +0 -13
- gcore/types/cloud/container_probe_config_create_param.py +0 -17
- gcore/types/cloud/container_probe_create_param.py +0 -38
- gcore/types/cloud/container_probe_exec_create_param.py +0 -13
- gcore/types/cloud/container_probe_http_get_create_param.py +0 -25
- gcore/types/cloud/container_probe_tcp_socket_create_param.py +0 -12
- gcore/types/cloud/container_scale.py +0 -25
- gcore/types/cloud/container_scale_trigger_rate.py +0 -13
- gcore/types/cloud/container_scale_trigger_sqs.py +0 -33
- gcore/types/cloud/container_scale_trigger_threshold.py +0 -10
- gcore/types/cloud/container_scale_triggers.py +0 -36
- gcore/types/cloud/deploy_status.py +0 -13
- gcore/types/cloud/inference/container.py +0 -26
- gcore/types/cloud/inference/inference.py +0 -95
- gcore/types/cloud/inference/mlcatalog_order_by_choices.py +0 -7
- gcore/types/cloud/inference_probes.py +0 -19
- gcore/types/cloud/ingress_opts_out.py +0 -16
- gcore/types/cloud/ingress_opts_param.py +0 -18
- gcore/types/cloud/instances/flavor_list_for_resize_params.py +0 -16
- gcore/types/cloud/instances/flavor_list_suitable_params.py +0 -59
- gcore/types/cloud/secret_create_params.py +0 -66
- gcore/types/waap/client_me_response.py +0 -34
- {gcore-0.3.0.dist-info → gcore-0.5.0.dist-info}/WHEEL +0 -0
- {gcore-0.3.0.dist-info → gcore-0.5.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -21,6 +21,7 @@ from ....types.cloud.registries import user_create_params, user_update_params, u
|
|
|
21
21
|
from ....types.cloud.registries.registry_user import RegistryUser
|
|
22
22
|
from ....types.cloud.registries.registry_user_list import RegistryUserList
|
|
23
23
|
from ....types.cloud.registries.registry_user_created import RegistryUserCreated
|
|
24
|
+
from ....types.cloud.registries.user_refresh_secret_response import UserRefreshSecretResponse
|
|
24
25
|
|
|
25
26
|
__all__ = ["UsersResource", "AsyncUsersResource"]
|
|
26
27
|
|
|
@@ -61,9 +62,9 @@ class UsersResource(SyncAPIResource):
|
|
|
61
62
|
extra_query: Query | None = None,
|
|
62
63
|
extra_body: Body | None = None,
|
|
63
64
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
64
|
-
) ->
|
|
65
|
+
) -> RegistryUserCreated:
|
|
65
66
|
"""
|
|
66
|
-
Create a user
|
|
67
|
+
Create a new user for accessing the container registry.
|
|
67
68
|
|
|
68
69
|
Args:
|
|
69
70
|
duration: User account operating time, days
|
|
@@ -101,7 +102,7 @@ class UsersResource(SyncAPIResource):
|
|
|
101
102
|
options=make_request_options(
|
|
102
103
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
103
104
|
),
|
|
104
|
-
cast_to=
|
|
105
|
+
cast_to=RegistryUserCreated,
|
|
105
106
|
)
|
|
106
107
|
|
|
107
108
|
def update(
|
|
@@ -121,7 +122,7 @@ class UsersResource(SyncAPIResource):
|
|
|
121
122
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
122
123
|
) -> RegistryUser:
|
|
123
124
|
"""
|
|
124
|
-
Update a user
|
|
125
|
+
Update the configuration of a specific registry user.
|
|
125
126
|
|
|
126
127
|
Args:
|
|
127
128
|
duration: User account operating time, days
|
|
@@ -169,7 +170,7 @@ class UsersResource(SyncAPIResource):
|
|
|
169
170
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
170
171
|
) -> RegistryUserList:
|
|
171
172
|
"""
|
|
172
|
-
|
|
173
|
+
List all users with access to the container registry.
|
|
173
174
|
|
|
174
175
|
Args:
|
|
175
176
|
extra_headers: Send extra headers
|
|
@@ -207,7 +208,7 @@ class UsersResource(SyncAPIResource):
|
|
|
207
208
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
208
209
|
) -> None:
|
|
209
210
|
"""
|
|
210
|
-
Delete a user
|
|
211
|
+
Delete a specific user from the container registry.
|
|
211
212
|
|
|
212
213
|
Args:
|
|
213
214
|
extra_headers: Send extra headers
|
|
@@ -246,7 +247,7 @@ class UsersResource(SyncAPIResource):
|
|
|
246
247
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
247
248
|
) -> RegistryUserCreated:
|
|
248
249
|
"""
|
|
249
|
-
|
|
250
|
+
Create multiple users for accessing the container registry in a single request.
|
|
250
251
|
|
|
251
252
|
Args:
|
|
252
253
|
users: Set of users
|
|
@@ -285,9 +286,9 @@ class UsersResource(SyncAPIResource):
|
|
|
285
286
|
extra_query: Query | None = None,
|
|
286
287
|
extra_body: Body | None = None,
|
|
287
288
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
288
|
-
) ->
|
|
289
|
+
) -> UserRefreshSecretResponse:
|
|
289
290
|
"""
|
|
290
|
-
|
|
291
|
+
Generate a new secret for a specific registry user.
|
|
291
292
|
|
|
292
293
|
Args:
|
|
293
294
|
extra_headers: Send extra headers
|
|
@@ -302,13 +303,12 @@ class UsersResource(SyncAPIResource):
|
|
|
302
303
|
project_id = self._client._get_cloud_project_id_path_param()
|
|
303
304
|
if region_id is None:
|
|
304
305
|
region_id = self._client._get_cloud_region_id_path_param()
|
|
305
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
306
306
|
return self._post(
|
|
307
307
|
f"/cloud/v1/registries/{project_id}/{region_id}/{registry_id}/users/{user_id}/refresh_secret",
|
|
308
308
|
options=make_request_options(
|
|
309
309
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
310
310
|
),
|
|
311
|
-
cast_to=
|
|
311
|
+
cast_to=UserRefreshSecretResponse,
|
|
312
312
|
)
|
|
313
313
|
|
|
314
314
|
|
|
@@ -348,9 +348,9 @@ class AsyncUsersResource(AsyncAPIResource):
|
|
|
348
348
|
extra_query: Query | None = None,
|
|
349
349
|
extra_body: Body | None = None,
|
|
350
350
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
351
|
-
) ->
|
|
351
|
+
) -> RegistryUserCreated:
|
|
352
352
|
"""
|
|
353
|
-
Create a user
|
|
353
|
+
Create a new user for accessing the container registry.
|
|
354
354
|
|
|
355
355
|
Args:
|
|
356
356
|
duration: User account operating time, days
|
|
@@ -388,7 +388,7 @@ class AsyncUsersResource(AsyncAPIResource):
|
|
|
388
388
|
options=make_request_options(
|
|
389
389
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
390
390
|
),
|
|
391
|
-
cast_to=
|
|
391
|
+
cast_to=RegistryUserCreated,
|
|
392
392
|
)
|
|
393
393
|
|
|
394
394
|
async def update(
|
|
@@ -408,7 +408,7 @@ class AsyncUsersResource(AsyncAPIResource):
|
|
|
408
408
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
409
409
|
) -> RegistryUser:
|
|
410
410
|
"""
|
|
411
|
-
Update a user
|
|
411
|
+
Update the configuration of a specific registry user.
|
|
412
412
|
|
|
413
413
|
Args:
|
|
414
414
|
duration: User account operating time, days
|
|
@@ -456,7 +456,7 @@ class AsyncUsersResource(AsyncAPIResource):
|
|
|
456
456
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
457
457
|
) -> RegistryUserList:
|
|
458
458
|
"""
|
|
459
|
-
|
|
459
|
+
List all users with access to the container registry.
|
|
460
460
|
|
|
461
461
|
Args:
|
|
462
462
|
extra_headers: Send extra headers
|
|
@@ -494,7 +494,7 @@ class AsyncUsersResource(AsyncAPIResource):
|
|
|
494
494
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
495
495
|
) -> None:
|
|
496
496
|
"""
|
|
497
|
-
Delete a user
|
|
497
|
+
Delete a specific user from the container registry.
|
|
498
498
|
|
|
499
499
|
Args:
|
|
500
500
|
extra_headers: Send extra headers
|
|
@@ -533,7 +533,7 @@ class AsyncUsersResource(AsyncAPIResource):
|
|
|
533
533
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
534
534
|
) -> RegistryUserCreated:
|
|
535
535
|
"""
|
|
536
|
-
|
|
536
|
+
Create multiple users for accessing the container registry in a single request.
|
|
537
537
|
|
|
538
538
|
Args:
|
|
539
539
|
users: Set of users
|
|
@@ -572,9 +572,9 @@ class AsyncUsersResource(AsyncAPIResource):
|
|
|
572
572
|
extra_query: Query | None = None,
|
|
573
573
|
extra_body: Body | None = None,
|
|
574
574
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
575
|
-
) ->
|
|
575
|
+
) -> UserRefreshSecretResponse:
|
|
576
576
|
"""
|
|
577
|
-
|
|
577
|
+
Generate a new secret for a specific registry user.
|
|
578
578
|
|
|
579
579
|
Args:
|
|
580
580
|
extra_headers: Send extra headers
|
|
@@ -589,13 +589,12 @@ class AsyncUsersResource(AsyncAPIResource):
|
|
|
589
589
|
project_id = self._client._get_cloud_project_id_path_param()
|
|
590
590
|
if region_id is None:
|
|
591
591
|
region_id = self._client._get_cloud_region_id_path_param()
|
|
592
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
593
592
|
return await self._post(
|
|
594
593
|
f"/cloud/v1/registries/{project_id}/{region_id}/{registry_id}/users/{user_id}/refresh_secret",
|
|
595
594
|
options=make_request_options(
|
|
596
595
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
597
596
|
),
|
|
598
|
-
cast_to=
|
|
597
|
+
cast_to=UserRefreshSecretResponse,
|
|
599
598
|
)
|
|
600
599
|
|
|
601
600
|
|
|
@@ -76,7 +76,7 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
76
76
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
77
77
|
) -> TaskIDList:
|
|
78
78
|
"""
|
|
79
|
-
Create reserved fixed IP
|
|
79
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
80
80
|
|
|
81
81
|
Args:
|
|
82
82
|
type: Must be 'external'
|
|
@@ -112,7 +112,7 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
112
112
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
113
113
|
) -> TaskIDList:
|
|
114
114
|
"""
|
|
115
|
-
Create reserved fixed IP
|
|
115
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
116
116
|
|
|
117
117
|
Args:
|
|
118
118
|
subnet_id: Reserved fixed IP will be allocated in this subnet
|
|
@@ -149,7 +149,7 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
149
149
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
150
150
|
) -> TaskIDList:
|
|
151
151
|
"""
|
|
152
|
-
Create reserved fixed IP
|
|
152
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
153
153
|
|
|
154
154
|
Args:
|
|
155
155
|
network_id: Reserved fixed IP will be allocated in a subnet of this network
|
|
@@ -188,7 +188,7 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
188
188
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
189
189
|
) -> TaskIDList:
|
|
190
190
|
"""
|
|
191
|
-
Create reserved fixed IP
|
|
191
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
192
192
|
|
|
193
193
|
Args:
|
|
194
194
|
ip_address: Reserved fixed IP will be allocated the given IP address
|
|
@@ -225,7 +225,7 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
225
225
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
226
226
|
) -> TaskIDList:
|
|
227
227
|
"""
|
|
228
|
-
Create reserved fixed IP
|
|
228
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
229
229
|
|
|
230
230
|
Args:
|
|
231
231
|
port_id: Port ID to make a reserved fixed IP (for example, `vip_port_id` of the Load
|
|
@@ -315,7 +315,7 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
315
315
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
316
316
|
) -> SyncOffsetPage[ReservedFixedIP]:
|
|
317
317
|
"""
|
|
318
|
-
List reserved fixed IPs
|
|
318
|
+
List all reserved fixed IPs in the specified project and region.
|
|
319
319
|
|
|
320
320
|
Args:
|
|
321
321
|
available_only: Set to true if the response should only list IP addresses that are not attached
|
|
@@ -334,8 +334,8 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
334
334
|
offset: Offset value is used to exclude the first set of records from the result
|
|
335
335
|
|
|
336
336
|
order_by: Ordering reserved fixed IP list result by name, status, `updated_at`,
|
|
337
|
-
`created_at` or `fixed_ip_address` fields
|
|
338
|
-
|
|
337
|
+
`created_at` or `fixed_ip_address` fields and directions (status.asc), default
|
|
338
|
+
is "`fixed_ip_address`.asc"
|
|
339
339
|
|
|
340
340
|
vip_only: Set to true if the response should only list VIPs
|
|
341
341
|
|
|
@@ -391,7 +391,7 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
391
391
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
392
392
|
) -> TaskIDList:
|
|
393
393
|
"""
|
|
394
|
-
Delete reserved fixed
|
|
394
|
+
Delete a specific reserved fixed IP and all its associated resources.
|
|
395
395
|
|
|
396
396
|
Args:
|
|
397
397
|
extra_headers: Send extra headers
|
|
@@ -430,7 +430,7 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
430
430
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
431
431
|
) -> ReservedFixedIP:
|
|
432
432
|
"""
|
|
433
|
-
Get reserved fixed IP
|
|
433
|
+
Get detailed information about a specific reserved fixed IP.
|
|
434
434
|
|
|
435
435
|
Args:
|
|
436
436
|
extra_headers: Send extra headers
|
|
@@ -497,7 +497,7 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
497
497
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
498
498
|
) -> TaskIDList:
|
|
499
499
|
"""
|
|
500
|
-
Create reserved fixed IP
|
|
500
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
501
501
|
|
|
502
502
|
Args:
|
|
503
503
|
type: Must be 'external'
|
|
@@ -533,7 +533,7 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
533
533
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
534
534
|
) -> TaskIDList:
|
|
535
535
|
"""
|
|
536
|
-
Create reserved fixed IP
|
|
536
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
537
537
|
|
|
538
538
|
Args:
|
|
539
539
|
subnet_id: Reserved fixed IP will be allocated in this subnet
|
|
@@ -570,7 +570,7 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
570
570
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
571
571
|
) -> TaskIDList:
|
|
572
572
|
"""
|
|
573
|
-
Create reserved fixed IP
|
|
573
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
574
574
|
|
|
575
575
|
Args:
|
|
576
576
|
network_id: Reserved fixed IP will be allocated in a subnet of this network
|
|
@@ -609,7 +609,7 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
609
609
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
610
610
|
) -> TaskIDList:
|
|
611
611
|
"""
|
|
612
|
-
Create reserved fixed IP
|
|
612
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
613
613
|
|
|
614
614
|
Args:
|
|
615
615
|
ip_address: Reserved fixed IP will be allocated the given IP address
|
|
@@ -646,7 +646,7 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
646
646
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
647
647
|
) -> TaskIDList:
|
|
648
648
|
"""
|
|
649
|
-
Create reserved fixed IP
|
|
649
|
+
Create a new reserved fixed IP with the specified configuration.
|
|
650
650
|
|
|
651
651
|
Args:
|
|
652
652
|
port_id: Port ID to make a reserved fixed IP (for example, `vip_port_id` of the Load
|
|
@@ -736,7 +736,7 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
736
736
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
737
737
|
) -> AsyncPaginator[ReservedFixedIP, AsyncOffsetPage[ReservedFixedIP]]:
|
|
738
738
|
"""
|
|
739
|
-
List reserved fixed IPs
|
|
739
|
+
List all reserved fixed IPs in the specified project and region.
|
|
740
740
|
|
|
741
741
|
Args:
|
|
742
742
|
available_only: Set to true if the response should only list IP addresses that are not attached
|
|
@@ -755,8 +755,8 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
755
755
|
offset: Offset value is used to exclude the first set of records from the result
|
|
756
756
|
|
|
757
757
|
order_by: Ordering reserved fixed IP list result by name, status, `updated_at`,
|
|
758
|
-
`created_at` or `fixed_ip_address` fields
|
|
759
|
-
|
|
758
|
+
`created_at` or `fixed_ip_address` fields and directions (status.asc), default
|
|
759
|
+
is "`fixed_ip_address`.asc"
|
|
760
760
|
|
|
761
761
|
vip_only: Set to true if the response should only list VIPs
|
|
762
762
|
|
|
@@ -812,7 +812,7 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
812
812
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
813
813
|
) -> TaskIDList:
|
|
814
814
|
"""
|
|
815
|
-
Delete reserved fixed
|
|
815
|
+
Delete a specific reserved fixed IP and all its associated resources.
|
|
816
816
|
|
|
817
817
|
Args:
|
|
818
818
|
extra_headers: Send extra headers
|
|
@@ -851,7 +851,7 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
851
851
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
852
852
|
) -> ReservedFixedIP:
|
|
853
853
|
"""
|
|
854
|
-
Get reserved fixed IP
|
|
854
|
+
Get detailed information about a specific reserved fixed IP.
|
|
855
855
|
|
|
856
856
|
Args:
|
|
857
857
|
extra_headers: Send extra headers
|
|
@@ -63,7 +63,7 @@ class VipResource(SyncAPIResource):
|
|
|
63
63
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
64
64
|
) -> CandidatePortList:
|
|
65
65
|
"""
|
|
66
|
-
List instance ports that are available for connecting to VIP
|
|
66
|
+
List all instance ports that are available for connecting to a VIP.
|
|
67
67
|
|
|
68
68
|
Args:
|
|
69
69
|
extra_headers: Send extra headers
|
|
@@ -102,7 +102,7 @@ class VipResource(SyncAPIResource):
|
|
|
102
102
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
103
103
|
) -> ConnectedPortList:
|
|
104
104
|
"""
|
|
105
|
-
List instance ports that share VIP
|
|
105
|
+
List all instance ports that share a VIP.
|
|
106
106
|
|
|
107
107
|
Args:
|
|
108
108
|
extra_headers: Send extra headers
|
|
@@ -142,7 +142,7 @@ class VipResource(SyncAPIResource):
|
|
|
142
142
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
143
143
|
) -> ConnectedPortList:
|
|
144
144
|
"""
|
|
145
|
-
Replace ports that share VIP
|
|
145
|
+
Replace the list of instance ports that share a VIP.
|
|
146
146
|
|
|
147
147
|
Args:
|
|
148
148
|
port_ids: List of port IDs that will share one VIP
|
|
@@ -187,7 +187,7 @@ class VipResource(SyncAPIResource):
|
|
|
187
187
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
188
188
|
) -> ReservedFixedIP:
|
|
189
189
|
"""
|
|
190
|
-
|
|
190
|
+
Update the VIP status of a reserved fixed IP.
|
|
191
191
|
|
|
192
192
|
Args:
|
|
193
193
|
is_vip: If reserved fixed IP should be a VIP
|
|
@@ -230,7 +230,7 @@ class VipResource(SyncAPIResource):
|
|
|
230
230
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
231
231
|
) -> ConnectedPortList:
|
|
232
232
|
"""
|
|
233
|
-
Add ports
|
|
233
|
+
Add instance ports to share a VIP.
|
|
234
234
|
|
|
235
235
|
Args:
|
|
236
236
|
port_ids: List of port IDs that will share one VIP
|
|
@@ -295,7 +295,7 @@ class AsyncVipResource(AsyncAPIResource):
|
|
|
295
295
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
296
296
|
) -> CandidatePortList:
|
|
297
297
|
"""
|
|
298
|
-
List instance ports that are available for connecting to VIP
|
|
298
|
+
List all instance ports that are available for connecting to a VIP.
|
|
299
299
|
|
|
300
300
|
Args:
|
|
301
301
|
extra_headers: Send extra headers
|
|
@@ -334,7 +334,7 @@ class AsyncVipResource(AsyncAPIResource):
|
|
|
334
334
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
335
335
|
) -> ConnectedPortList:
|
|
336
336
|
"""
|
|
337
|
-
List instance ports that share VIP
|
|
337
|
+
List all instance ports that share a VIP.
|
|
338
338
|
|
|
339
339
|
Args:
|
|
340
340
|
extra_headers: Send extra headers
|
|
@@ -374,7 +374,7 @@ class AsyncVipResource(AsyncAPIResource):
|
|
|
374
374
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
375
375
|
) -> ConnectedPortList:
|
|
376
376
|
"""
|
|
377
|
-
Replace ports that share VIP
|
|
377
|
+
Replace the list of instance ports that share a VIP.
|
|
378
378
|
|
|
379
379
|
Args:
|
|
380
380
|
port_ids: List of port IDs that will share one VIP
|
|
@@ -419,7 +419,7 @@ class AsyncVipResource(AsyncAPIResource):
|
|
|
419
419
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
420
420
|
) -> ReservedFixedIP:
|
|
421
421
|
"""
|
|
422
|
-
|
|
422
|
+
Update the VIP status of a reserved fixed IP.
|
|
423
423
|
|
|
424
424
|
Args:
|
|
425
425
|
is_vip: If reserved fixed IP should be a VIP
|
|
@@ -462,7 +462,7 @@ class AsyncVipResource(AsyncAPIResource):
|
|
|
462
462
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
463
463
|
) -> ConnectedPortList:
|
|
464
464
|
"""
|
|
465
|
-
Add ports
|
|
465
|
+
Add instance ports to share a VIP.
|
|
466
466
|
|
|
467
467
|
Args:
|
|
468
468
|
port_ids: List of port IDs that will share one VIP
|