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
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from ...._models import BaseModel
|
|
4
|
-
from ..aws_iam_data import AwsIamData
|
|
5
4
|
|
|
6
|
-
__all__ = ["InferenceSecret"]
|
|
5
|
+
__all__ = ["InferenceSecret", "Data"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Data(BaseModel):
|
|
9
|
+
aws_access_key_id: str
|
|
10
|
+
"""AWS IAM key ID."""
|
|
11
|
+
|
|
12
|
+
aws_secret_access_key: str
|
|
13
|
+
"""AWS IAM secret key."""
|
|
7
14
|
|
|
8
15
|
|
|
9
16
|
class InferenceSecret(BaseModel):
|
|
10
|
-
data:
|
|
17
|
+
data: Data
|
|
11
18
|
"""Secret data."""
|
|
12
19
|
|
|
13
20
|
name: str
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
from .mlcatalog_order_by_choices import MlcatalogOrderByChoices
|
|
5
|
+
from typing_extensions import Literal, TypedDict
|
|
8
6
|
|
|
9
7
|
__all__ = ["ModelListParams"]
|
|
10
8
|
|
|
@@ -19,5 +17,5 @@ class ModelListParams(TypedDict, total=False):
|
|
|
19
17
|
Offset value is used to exclude the first set of records from the result
|
|
20
18
|
"""
|
|
21
19
|
|
|
22
|
-
order_by:
|
|
20
|
+
order_by: Literal["name.asc", "name.desc"]
|
|
23
21
|
"""Order instances by transmitted fields and directions"""
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from .
|
|
7
|
-
from .
|
|
8
|
-
from .
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
from .probe_exec import ProbeExec
|
|
7
|
+
from .probe_http_get import ProbeHTTPGet
|
|
8
|
+
from .probe_tcp_socket import ProbeTcpSocket
|
|
9
9
|
|
|
10
|
-
__all__ = ["
|
|
10
|
+
__all__ = ["Probe"]
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
14
|
-
exec: Optional[
|
|
13
|
+
class Probe(BaseModel):
|
|
14
|
+
exec: Optional[ProbeExec] = None
|
|
15
15
|
"""Exec probe configuration"""
|
|
16
16
|
|
|
17
17
|
failure_threshold: int
|
|
18
18
|
"""The number of consecutive probe failures that mark the container as unhealthy."""
|
|
19
19
|
|
|
20
|
-
http_get: Optional[
|
|
20
|
+
http_get: Optional[ProbeHTTPGet] = None
|
|
21
21
|
"""HTTP GET probe configuration"""
|
|
22
22
|
|
|
23
23
|
initial_delay_seconds: int
|
|
@@ -29,7 +29,7 @@ class ContainerProbe(BaseModel):
|
|
|
29
29
|
success_threshold: int
|
|
30
30
|
"""The number of consecutive successful probes that mark the container as healthy."""
|
|
31
31
|
|
|
32
|
-
tcp_socket: Optional[
|
|
32
|
+
tcp_socket: Optional[ProbeTcpSocket] = None
|
|
33
33
|
"""TCP socket probe configuration"""
|
|
34
34
|
|
|
35
35
|
timeout_seconds: int
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
5
|
+
from .probe import Probe
|
|
6
|
+
from ...._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["ProbeConfig"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class ProbeConfig(BaseModel):
|
|
12
12
|
enabled: bool
|
|
13
13
|
"""Whether the probe is enabled or not."""
|
|
14
14
|
|
|
15
|
-
probe: Optional[
|
|
15
|
+
probe: Optional[Probe] = None
|
|
16
16
|
"""Probe configuration (exec, `http_get` or `tcp_socket`)"""
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import List
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from ...._models import BaseModel
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["ProbeExec"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class ProbeExec(BaseModel):
|
|
11
11
|
command: List[str]
|
|
12
12
|
"""Command to be executed inside the running container."""
|
|
@@ -4,12 +4,12 @@ from typing import Dict, Optional
|
|
|
4
4
|
|
|
5
5
|
from pydantic import Field as FieldInfo
|
|
6
6
|
|
|
7
|
-
from
|
|
7
|
+
from ...._models import BaseModel
|
|
8
8
|
|
|
9
|
-
__all__ = ["
|
|
9
|
+
__all__ = ["ProbeHTTPGet"]
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class ProbeHTTPGet(BaseModel):
|
|
13
13
|
headers: Dict[str, str]
|
|
14
14
|
"""HTTP headers to be sent with the request."""
|
|
15
15
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from ...._models import BaseModel
|
|
4
4
|
|
|
5
|
-
__all__ = ["
|
|
5
|
+
__all__ = ["ProbeTcpSocket"]
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class ProbeTcpSocket(BaseModel):
|
|
9
9
|
port: int
|
|
10
10
|
"""Port number to check if it's open."""
|
|
@@ -4,16 +4,14 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import Required, TypedDict
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
__all__ = ["SecretCreateParams"]
|
|
7
|
+
__all__ = ["SecretCreateParams", "Data"]
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
class SecretCreateParams(TypedDict, total=False):
|
|
13
11
|
project_id: int
|
|
14
12
|
"""Project ID"""
|
|
15
13
|
|
|
16
|
-
data: Required[
|
|
14
|
+
data: Required[Data]
|
|
17
15
|
"""Secret data."""
|
|
18
16
|
|
|
19
17
|
name: Required[str]
|
|
@@ -21,3 +19,11 @@ class SecretCreateParams(TypedDict, total=False):
|
|
|
21
19
|
|
|
22
20
|
type: Required[str]
|
|
23
21
|
"""Secret type. Currently only `aws-iam` is supported."""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Data(TypedDict, total=False):
|
|
25
|
+
aws_access_key_id: Required[str]
|
|
26
|
+
"""AWS IAM key ID."""
|
|
27
|
+
|
|
28
|
+
aws_secret_access_key: Required[str]
|
|
29
|
+
"""AWS IAM secret key."""
|
|
@@ -4,17 +4,23 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import Required, TypedDict
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
__all__ = ["SecretReplaceParams"]
|
|
7
|
+
__all__ = ["SecretReplaceParams", "Data"]
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
class SecretReplaceParams(TypedDict, total=False):
|
|
13
11
|
project_id: int
|
|
14
12
|
"""Project ID"""
|
|
15
13
|
|
|
16
|
-
data: Required[
|
|
14
|
+
data: Required[Data]
|
|
17
15
|
"""Secret data."""
|
|
18
16
|
|
|
19
17
|
type: Required[str]
|
|
20
18
|
"""Secret type."""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Data(TypedDict, total=False):
|
|
22
|
+
aws_access_key_id: Required[str]
|
|
23
|
+
"""AWS IAM key ID."""
|
|
24
|
+
|
|
25
|
+
aws_secret_access_key: Required[str]
|
|
26
|
+
"""AWS IAM secret key."""
|
|
@@ -2,13 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import List
|
|
4
4
|
|
|
5
|
-
from .capacity import Capacity
|
|
6
5
|
from ..._models import BaseModel
|
|
7
6
|
|
|
8
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["InferenceRegionCapacity", "Capacity"]
|
|
9
8
|
|
|
10
9
|
|
|
11
|
-
class
|
|
10
|
+
class Capacity(BaseModel):
|
|
11
|
+
capacity: int
|
|
12
|
+
"""Available capacity."""
|
|
13
|
+
|
|
14
|
+
flavor_name: str
|
|
15
|
+
"""Flavor name."""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class InferenceRegionCapacity(BaseModel):
|
|
12
19
|
capacity: List[Capacity]
|
|
13
20
|
"""List of capacities by flavor."""
|
|
14
21
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
from typing import List
|
|
4
4
|
|
|
5
5
|
from ..._models import BaseModel
|
|
6
|
-
from .
|
|
6
|
+
from .inference_region_capacity import InferenceRegionCapacity
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["InferenceRegionCapacityList"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class InferenceRegionCapacityList(BaseModel):
|
|
12
12
|
count: int
|
|
13
13
|
"""Number of objects"""
|
|
14
14
|
|
|
15
|
-
results: List[
|
|
15
|
+
results: List[InferenceRegionCapacity]
|
|
16
16
|
"""Objects"""
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Union, Iterable, Optional
|
|
5
|
+
from typing import Dict, Union, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
8
|
from .interface_ip_family import InterfaceIPFamily
|
|
9
|
-
from .tag_update_map_param import TagUpdateMapParam
|
|
10
9
|
|
|
11
10
|
__all__ = [
|
|
12
11
|
"InstanceCreateParams",
|
|
@@ -110,10 +109,10 @@ class InstanceCreateParams(TypedDict, total=False):
|
|
|
110
109
|
ssh_key_name: Optional[str]
|
|
111
110
|
"""
|
|
112
111
|
Specifies the name of the SSH keypair, created via the
|
|
113
|
-
[/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
|
|
112
|
+
[/v1/`ssh_keys` endpoint](/docs/api-reference/cloud/ssh-keys/add-or-generate-ssh-key).
|
|
114
113
|
"""
|
|
115
114
|
|
|
116
|
-
tags:
|
|
115
|
+
tags: Dict[str, str]
|
|
117
116
|
"""Key-value tags to associate with the resource.
|
|
118
117
|
|
|
119
118
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -389,7 +388,7 @@ class VolumeCreateInstanceCreateNewVolumeSerializer(TypedDict, total=False):
|
|
|
389
388
|
If not specified, a name will be generated automatically.
|
|
390
389
|
"""
|
|
391
390
|
|
|
392
|
-
tags:
|
|
391
|
+
tags: Dict[str, str]
|
|
393
392
|
"""Key-value tags to associate with the resource.
|
|
394
393
|
|
|
395
394
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -450,7 +449,7 @@ class VolumeCreateInstanceCreateVolumeFromImageSerializer(TypedDict, total=False
|
|
|
450
449
|
- For basic VMs: the size is set automatically based on the flavor.
|
|
451
450
|
"""
|
|
452
451
|
|
|
453
|
-
tags:
|
|
452
|
+
tags: Dict[str, str]
|
|
454
453
|
"""Key-value tags to associate with the resource.
|
|
455
454
|
|
|
456
455
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -504,7 +503,7 @@ class VolumeCreateInstanceCreateVolumeFromSnapshotSerializer(TypedDict, total=Fa
|
|
|
504
503
|
If not specified, a name will be generated automatically.
|
|
505
504
|
"""
|
|
506
505
|
|
|
507
|
-
tags:
|
|
506
|
+
tags: Dict[str, str]
|
|
508
507
|
"""Key-value tags to associate with the resource.
|
|
509
508
|
|
|
510
509
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -550,7 +549,7 @@ class VolumeCreateInstanceCreateVolumeFromApptemplateSerializer(TypedDict, total
|
|
|
550
549
|
size: int
|
|
551
550
|
"""Volume size in GiB."""
|
|
552
551
|
|
|
553
|
-
tags:
|
|
552
|
+
tags: Dict[str, str]
|
|
554
553
|
"""Key-value tags to associate with the resource.
|
|
555
554
|
|
|
556
555
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -595,7 +594,7 @@ class VolumeCreateInstanceExistingVolumeSerializer(TypedDict, total=False):
|
|
|
595
594
|
delete_on_termination: bool
|
|
596
595
|
"""Set to `true` to automatically delete the volume when the instance is deleted."""
|
|
597
596
|
|
|
598
|
-
tags:
|
|
597
|
+
tags: Dict[str, str]
|
|
599
598
|
"""Key-value tags to associate with the resource.
|
|
600
599
|
|
|
601
600
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -118,11 +118,7 @@ class InstanceListParams(TypedDict, total=False):
|
|
|
118
118
|
"""Filters instances by status."""
|
|
119
119
|
|
|
120
120
|
tag_key_value: str
|
|
121
|
-
"""Optional.
|
|
122
|
-
|
|
123
|
-
Filter by tag key-value pairs. curl -G --data-urlencode "`tag_key_value`={"key":
|
|
124
|
-
"value"}" --url "https://example.com/cloud/v1/resource/1/1"
|
|
125
|
-
"""
|
|
121
|
+
"""Optional. Filter by tag key-value pairs."""
|
|
126
122
|
|
|
127
123
|
tag_value: List[str]
|
|
128
124
|
"""Optional. Filter by tag values. ?`tag_value`=value1&`tag_value`=value2"""
|
|
@@ -14,6 +14,4 @@ from .image_upload_params import ImageUploadParams as ImageUploadParams
|
|
|
14
14
|
from .instance_flavor_list import InstanceFlavorList as InstanceFlavorList
|
|
15
15
|
from .interface_attach_params import InterfaceAttachParams as InterfaceAttachParams
|
|
16
16
|
from .interface_detach_params import InterfaceDetachParams as InterfaceDetachParams
|
|
17
|
-
from .flavor_list_suitable_params import FlavorListSuitableParams as FlavorListSuitableParams
|
|
18
|
-
from .flavor_list_for_resize_params import FlavorListForResizeParams as FlavorListForResizeParams
|
|
19
17
|
from .image_create_from_volume_params import ImageCreateFromVolumeParams as ImageCreateFromVolumeParams
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Dict, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
-
from ..tag_update_map_param import TagUpdateMapParam
|
|
9
|
-
|
|
10
8
|
__all__ = ["ImageCreateFromVolumeParams"]
|
|
11
9
|
|
|
12
10
|
|
|
@@ -42,7 +40,7 @@ class ImageCreateFromVolumeParams(TypedDict, total=False):
|
|
|
42
40
|
ssh_key: Literal["allow", "deny", "required"]
|
|
43
41
|
"""Whether the image supports SSH key or not"""
|
|
44
42
|
|
|
45
|
-
tags:
|
|
43
|
+
tags: Dict[str, str]
|
|
46
44
|
"""Key-value tags to associate with the resource.
|
|
47
45
|
|
|
48
46
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -23,11 +23,7 @@ class ImageListParams(TypedDict, total=False):
|
|
|
23
23
|
"""Filter by tag keys."""
|
|
24
24
|
|
|
25
25
|
tag_key_value: str
|
|
26
|
-
"""Filter by tag key-value pairs.
|
|
27
|
-
|
|
28
|
-
Must be a valid JSON string. 'curl -G --data-urlencode '`tag_key_value`={"key":
|
|
29
|
-
"value"}' --url 'http://localhost:1111/v1/images/1/1'"
|
|
30
|
-
"""
|
|
26
|
+
"""Filter by tag key-value pairs. Must be a valid JSON string."""
|
|
31
27
|
|
|
32
28
|
visibility: Literal["private", "public", "shared"]
|
|
33
29
|
"""Image visibility. Globally visible images are public"""
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Dict, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
-
from ..tag_update_map_param import TagUpdateMapParam
|
|
9
|
-
|
|
10
8
|
__all__ = ["ImageUploadParams"]
|
|
11
9
|
|
|
12
10
|
|
|
@@ -51,7 +49,7 @@ class ImageUploadParams(TypedDict, total=False):
|
|
|
51
49
|
ssh_key: Literal["allow", "deny", "required"]
|
|
52
50
|
"""Whether the image supports SSH key or not"""
|
|
53
51
|
|
|
54
|
-
tags:
|
|
52
|
+
tags: Dict[str, str]
|
|
55
53
|
"""Key-value tags to associate with the resource.
|
|
56
54
|
|
|
57
55
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List, Union, Iterable, Optional
|
|
5
|
+
from typing import Dict, List, Union, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
8
|
from .http_method import HTTPMethod
|
|
@@ -10,7 +10,6 @@ from .lb_algorithm import LbAlgorithm
|
|
|
10
10
|
from .lb_pool_protocol import LbPoolProtocol
|
|
11
11
|
from .interface_ip_family import InterfaceIPFamily
|
|
12
12
|
from .lb_listener_protocol import LbListenerProtocol
|
|
13
|
-
from .tag_update_map_param import TagUpdateMapParam
|
|
14
13
|
from .lb_health_monitor_type import LbHealthMonitorType
|
|
15
14
|
from .lb_session_persistence_type import LbSessionPersistenceType
|
|
16
15
|
from .laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
|
|
@@ -66,7 +65,7 @@ class LoadBalancerCreateParams(TypedDict, total=False):
|
|
|
66
65
|
specification.
|
|
67
66
|
"""
|
|
68
67
|
|
|
69
|
-
tags:
|
|
68
|
+
tags: Dict[str, str]
|
|
70
69
|
"""Key-value tags to associate with the resource.
|
|
71
70
|
|
|
72
71
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -175,7 +174,12 @@ class ListenerPoolMember(TypedDict, total=False):
|
|
|
175
174
|
"""Member IP port"""
|
|
176
175
|
|
|
177
176
|
admin_state_up: Optional[bool]
|
|
178
|
-
"""
|
|
177
|
+
"""Administrative state of the resource.
|
|
178
|
+
|
|
179
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
180
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
181
|
+
value is skipped and defaults to true.
|
|
182
|
+
"""
|
|
179
183
|
|
|
180
184
|
instance_id: Optional[str]
|
|
181
185
|
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
@@ -43,11 +43,7 @@ class LoadBalancerListParams(TypedDict, total=False):
|
|
|
43
43
|
"""Filter by tag keys."""
|
|
44
44
|
|
|
45
45
|
tag_key_value: str
|
|
46
|
-
"""Filter by tag key-value pairs.
|
|
47
|
-
|
|
48
|
-
Must be a valid JSON string. curl -G --data-urlencode "`tag_key_value`={"key":
|
|
49
|
-
"value"}" --url "http://localhost:1111/v1/loadbalancers/1/1"
|
|
50
|
-
"""
|
|
46
|
+
"""Filter by tag key-value pairs. Must be a valid JSON string."""
|
|
51
47
|
|
|
52
48
|
with_ddos: bool
|
|
53
49
|
"""Show Advanced DDoS protection profile, if exists"""
|
|
@@ -5,6 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Optional
|
|
6
6
|
from typing_extensions import TypedDict
|
|
7
7
|
|
|
8
|
+
from .tag_update_map_param import TagUpdateMapParam
|
|
8
9
|
from .laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
|
|
9
10
|
from .load_balancer_member_connectivity import LoadBalancerMemberConnectivity
|
|
10
11
|
|
|
@@ -28,6 +29,29 @@ class LoadBalancerUpdateParams(TypedDict, total=False):
|
|
|
28
29
|
members
|
|
29
30
|
"""
|
|
30
31
|
|
|
32
|
+
tags: Optional[TagUpdateMapParam]
|
|
33
|
+
"""Update key-value tags using JSON Merge Patch semantics (RFC 7386).
|
|
34
|
+
|
|
35
|
+
Provide key-value pairs to add or update tags. Set tag values to `null` to
|
|
36
|
+
remove tags. Unspecified tags remain unchanged. Read-only tags are always
|
|
37
|
+
preserved and cannot be modified. **Examples:**
|
|
38
|
+
|
|
39
|
+
- **Add/update tags:**
|
|
40
|
+
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
|
|
41
|
+
updates existing ones.
|
|
42
|
+
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
|
|
43
|
+
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
|
|
44
|
+
tags are preserved).
|
|
45
|
+
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
|
|
46
|
+
specified tags.
|
|
47
|
+
- **Mixed operations:**
|
|
48
|
+
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
|
|
49
|
+
adds/updates 'environment' and '`cost_center`' while removing
|
|
50
|
+
'`deprecated_tag`', preserving other existing tags.
|
|
51
|
+
- **Replace all:** first delete existing tags with null values, then add new
|
|
52
|
+
ones in the same request.
|
|
53
|
+
"""
|
|
54
|
+
|
|
31
55
|
|
|
32
56
|
class Logging(TypedDict, total=False):
|
|
33
57
|
destination_region_id: Optional[int]
|
|
@@ -105,7 +105,12 @@ class Member(TypedDict, total=False):
|
|
|
105
105
|
"""Member IP port"""
|
|
106
106
|
|
|
107
107
|
admin_state_up: Optional[bool]
|
|
108
|
-
"""
|
|
108
|
+
"""Administrative state of the resource.
|
|
109
|
+
|
|
110
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
111
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
112
|
+
value is skipped and defaults to true.
|
|
113
|
+
"""
|
|
109
114
|
|
|
110
115
|
instance_id: Optional[str]
|
|
111
116
|
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
@@ -103,7 +103,12 @@ class Member(TypedDict, total=False):
|
|
|
103
103
|
"""Member IP port"""
|
|
104
104
|
|
|
105
105
|
admin_state_up: Optional[bool]
|
|
106
|
-
"""
|
|
106
|
+
"""Administrative state of the resource.
|
|
107
|
+
|
|
108
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
109
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
110
|
+
value is skipped and defaults to true.
|
|
111
|
+
"""
|
|
107
112
|
|
|
108
113
|
instance_id: Optional[str]
|
|
109
114
|
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
@@ -22,7 +22,12 @@ class MemberAddParams(TypedDict, total=False):
|
|
|
22
22
|
"""Member IP port"""
|
|
23
23
|
|
|
24
24
|
admin_state_up: Optional[bool]
|
|
25
|
-
"""
|
|
25
|
+
"""Administrative state of the resource.
|
|
26
|
+
|
|
27
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
28
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
29
|
+
value is skipped and defaults to true.
|
|
30
|
+
"""
|
|
26
31
|
|
|
27
32
|
instance_id: Optional[str]
|
|
28
33
|
"""Either `subnet_id` or `instance_id` should be provided"""
|
gcore/types/cloud/member.py
CHANGED
|
@@ -17,7 +17,12 @@ class Member(BaseModel):
|
|
|
17
17
|
"""Member IP address"""
|
|
18
18
|
|
|
19
19
|
admin_state_up: bool
|
|
20
|
-
"""
|
|
20
|
+
"""Administrative state of the resource.
|
|
21
|
+
|
|
22
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
23
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
24
|
+
value is skipped and defaults to true.
|
|
25
|
+
"""
|
|
21
26
|
|
|
22
27
|
operating_status: LoadBalancerOperatingStatus
|
|
23
28
|
"""Member operating status of the entity"""
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Dict
|
|
5
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
6
7
|
|
|
7
|
-
from .tag_update_map_param import TagUpdateMapParam
|
|
8
|
-
|
|
9
8
|
__all__ = ["NetworkCreateParams"]
|
|
10
9
|
|
|
11
10
|
|
|
@@ -22,7 +21,7 @@ class NetworkCreateParams(TypedDict, total=False):
|
|
|
22
21
|
create_router: bool
|
|
23
22
|
"""Defaults to True"""
|
|
24
23
|
|
|
25
|
-
tags:
|
|
24
|
+
tags: Dict[str, str]
|
|
26
25
|
"""Key-value tags to associate with the resource.
|
|
27
26
|
|
|
28
27
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -18,6 +18,9 @@ class NetworkListParams(TypedDict, total=False):
|
|
|
18
18
|
limit: int
|
|
19
19
|
"""Optional. Limit the number of returned items"""
|
|
20
20
|
|
|
21
|
+
name: str
|
|
22
|
+
"""Filter networks by name"""
|
|
23
|
+
|
|
21
24
|
offset: int
|
|
22
25
|
"""Optional.
|
|
23
26
|
|
|
@@ -34,8 +37,4 @@ class NetworkListParams(TypedDict, total=False):
|
|
|
34
37
|
"""Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2"""
|
|
35
38
|
|
|
36
39
|
tag_key_value: str
|
|
37
|
-
"""Optional.
|
|
38
|
-
|
|
39
|
-
Filter by tag key-value pairs. curl -G --data-urlencode "`tag_key_value`={"key":
|
|
40
|
-
"value"}" --url "https://example.com/cloud/v1/resource/1/1"
|
|
41
|
-
"""
|
|
40
|
+
"""Optional. Filter by tag key-value pairs."""
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
from .tag_update_map_param import TagUpdateMapParam
|
|
6
9
|
|
|
7
10
|
__all__ = ["NetworkUpdateParams"]
|
|
8
11
|
|
|
@@ -14,5 +17,28 @@ class NetworkUpdateParams(TypedDict, total=False):
|
|
|
14
17
|
region_id: int
|
|
15
18
|
"""Region ID"""
|
|
16
19
|
|
|
17
|
-
name:
|
|
20
|
+
name: str
|
|
18
21
|
"""Name."""
|
|
22
|
+
|
|
23
|
+
tags: Optional[TagUpdateMapParam]
|
|
24
|
+
"""Update key-value tags using JSON Merge Patch semantics (RFC 7386).
|
|
25
|
+
|
|
26
|
+
Provide key-value pairs to add or update tags. Set tag values to `null` to
|
|
27
|
+
remove tags. Unspecified tags remain unchanged. Read-only tags are always
|
|
28
|
+
preserved and cannot be modified. **Examples:**
|
|
29
|
+
|
|
30
|
+
- **Add/update tags:**
|
|
31
|
+
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
|
|
32
|
+
updates existing ones.
|
|
33
|
+
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
|
|
34
|
+
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
|
|
35
|
+
tags are preserved).
|
|
36
|
+
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
|
|
37
|
+
specified tags.
|
|
38
|
+
- **Mixed operations:**
|
|
39
|
+
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
|
|
40
|
+
adds/updates 'environment' and '`cost_center`' while removing
|
|
41
|
+
'`deprecated_tag`', preserving other existing tags.
|
|
42
|
+
- **Replace all:** first delete existing tags with null values, then add new
|
|
43
|
+
ones in the same request.
|
|
44
|
+
"""
|
|
@@ -13,7 +13,7 @@ class RouterListParams(TypedDict, total=False):
|
|
|
13
13
|
region_id: int
|
|
14
14
|
|
|
15
15
|
limit: int
|
|
16
|
-
"""Limit the number of returned
|
|
16
|
+
"""Limit the number of returned routers"""
|
|
17
17
|
|
|
18
18
|
offset: int
|
|
19
|
-
"""Offset value is used to exclude the first set of records from the result
|
|
19
|
+
"""Offset value is used to exclude the first set of records from the result"""
|