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
gcore/resources/waap/clients.py
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import httpx
|
|
6
|
-
|
|
7
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
-
from ..._compat import cached_property
|
|
9
|
-
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
10
|
-
from ..._response import (
|
|
11
|
-
to_raw_response_wrapper,
|
|
12
|
-
to_streamed_response_wrapper,
|
|
13
|
-
async_to_raw_response_wrapper,
|
|
14
|
-
async_to_streamed_response_wrapper,
|
|
15
|
-
)
|
|
16
|
-
from ..._base_client import make_request_options
|
|
17
|
-
from ...types.waap.client_me_response import ClientMeResponse
|
|
18
|
-
|
|
19
|
-
__all__ = ["ClientsResource", "AsyncClientsResource"]
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class ClientsResource(SyncAPIResource):
|
|
23
|
-
@cached_property
|
|
24
|
-
def with_raw_response(self) -> ClientsResourceWithRawResponse:
|
|
25
|
-
"""
|
|
26
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
27
|
-
the raw response object instead of the parsed content.
|
|
28
|
-
|
|
29
|
-
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
30
|
-
"""
|
|
31
|
-
return ClientsResourceWithRawResponse(self)
|
|
32
|
-
|
|
33
|
-
@cached_property
|
|
34
|
-
def with_streaming_response(self) -> ClientsResourceWithStreamingResponse:
|
|
35
|
-
"""
|
|
36
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
37
|
-
|
|
38
|
-
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
39
|
-
"""
|
|
40
|
-
return ClientsResourceWithStreamingResponse(self)
|
|
41
|
-
|
|
42
|
-
def me(
|
|
43
|
-
self,
|
|
44
|
-
*,
|
|
45
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
46
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
47
|
-
extra_headers: Headers | None = None,
|
|
48
|
-
extra_query: Query | None = None,
|
|
49
|
-
extra_body: Body | None = None,
|
|
50
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
51
|
-
) -> ClientMeResponse:
|
|
52
|
-
"""Get information about WAAP service for the client"""
|
|
53
|
-
return self._get(
|
|
54
|
-
"/waap/v1/clients/me",
|
|
55
|
-
options=make_request_options(
|
|
56
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
57
|
-
),
|
|
58
|
-
cast_to=ClientMeResponse,
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
class AsyncClientsResource(AsyncAPIResource):
|
|
63
|
-
@cached_property
|
|
64
|
-
def with_raw_response(self) -> AsyncClientsResourceWithRawResponse:
|
|
65
|
-
"""
|
|
66
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
67
|
-
the raw response object instead of the parsed content.
|
|
68
|
-
|
|
69
|
-
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
70
|
-
"""
|
|
71
|
-
return AsyncClientsResourceWithRawResponse(self)
|
|
72
|
-
|
|
73
|
-
@cached_property
|
|
74
|
-
def with_streaming_response(self) -> AsyncClientsResourceWithStreamingResponse:
|
|
75
|
-
"""
|
|
76
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
77
|
-
|
|
78
|
-
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
79
|
-
"""
|
|
80
|
-
return AsyncClientsResourceWithStreamingResponse(self)
|
|
81
|
-
|
|
82
|
-
async def me(
|
|
83
|
-
self,
|
|
84
|
-
*,
|
|
85
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
86
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
87
|
-
extra_headers: Headers | None = None,
|
|
88
|
-
extra_query: Query | None = None,
|
|
89
|
-
extra_body: Body | None = None,
|
|
90
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
91
|
-
) -> ClientMeResponse:
|
|
92
|
-
"""Get information about WAAP service for the client"""
|
|
93
|
-
return await self._get(
|
|
94
|
-
"/waap/v1/clients/me",
|
|
95
|
-
options=make_request_options(
|
|
96
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
97
|
-
),
|
|
98
|
-
cast_to=ClientMeResponse,
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
class ClientsResourceWithRawResponse:
|
|
103
|
-
def __init__(self, clients: ClientsResource) -> None:
|
|
104
|
-
self._clients = clients
|
|
105
|
-
|
|
106
|
-
self.me = to_raw_response_wrapper(
|
|
107
|
-
clients.me,
|
|
108
|
-
)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
class AsyncClientsResourceWithRawResponse:
|
|
112
|
-
def __init__(self, clients: AsyncClientsResource) -> None:
|
|
113
|
-
self._clients = clients
|
|
114
|
-
|
|
115
|
-
self.me = async_to_raw_response_wrapper(
|
|
116
|
-
clients.me,
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
class ClientsResourceWithStreamingResponse:
|
|
121
|
-
def __init__(self, clients: ClientsResource) -> None:
|
|
122
|
-
self._clients = clients
|
|
123
|
-
|
|
124
|
-
self.me = to_streamed_response_wrapper(
|
|
125
|
-
clients.me,
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
class AsyncClientsResourceWithStreamingResponse:
|
|
130
|
-
def __init__(self, clients: AsyncClientsResource) -> None:
|
|
131
|
-
self._clients = clients
|
|
132
|
-
|
|
133
|
-
self.me = async_to_streamed_response_wrapper(
|
|
134
|
-
clients.me,
|
|
135
|
-
)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from ..._models import BaseModel
|
|
4
|
-
|
|
5
|
-
__all__ = ["AwsIamData"]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class AwsIamData(BaseModel):
|
|
9
|
-
aws_access_key_id: str
|
|
10
|
-
"""AWS IAM key ID."""
|
|
11
|
-
|
|
12
|
-
aws_secret_access_key: str
|
|
13
|
-
"""AWS IAM secret key."""
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Required, TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["AwsIamDataParam"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class AwsIamDataParam(TypedDict, total=False):
|
|
11
|
-
aws_access_key_id: Required[str]
|
|
12
|
-
"""AWS IAM key ID."""
|
|
13
|
-
|
|
14
|
-
aws_secret_access_key: Required[str]
|
|
15
|
-
"""AWS IAM secret key."""
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["FlavorListSuitableParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class FlavorListSuitableParams(TypedDict, total=False):
|
|
11
|
-
project_id: int
|
|
12
|
-
|
|
13
|
-
region_id: int
|
|
14
|
-
|
|
15
|
-
include_prices: bool
|
|
16
|
-
"""Set to true if flavor listing should include flavor prices"""
|
|
17
|
-
|
|
18
|
-
apptemplate_id: str
|
|
19
|
-
"""Apptemplate ID"""
|
|
20
|
-
|
|
21
|
-
image_id: str
|
|
22
|
-
"""Image ID"""
|
gcore/types/cloud/capacity.py
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from ..._models import BaseModel
|
|
4
|
-
|
|
5
|
-
__all__ = ["Capacity"]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class Capacity(BaseModel):
|
|
9
|
-
capacity: int
|
|
10
|
-
"""Available capacity."""
|
|
11
|
-
|
|
12
|
-
flavor_name: str
|
|
13
|
-
"""Flavor name."""
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Required, TypedDict
|
|
6
|
-
|
|
7
|
-
from .container_probe_create_param import ContainerProbeCreateParam
|
|
8
|
-
|
|
9
|
-
__all__ = ["ContainerProbeConfigCreateParam"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class ContainerProbeConfigCreateParam(TypedDict, total=False):
|
|
13
|
-
enabled: Required[bool]
|
|
14
|
-
"""Whether the probe is enabled or not."""
|
|
15
|
-
|
|
16
|
-
probe: ContainerProbeCreateParam
|
|
17
|
-
"""Probe configuration (exec, `http_get` or `tcp_socket`)"""
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Optional
|
|
6
|
-
from typing_extensions import TypedDict
|
|
7
|
-
|
|
8
|
-
from .container_probe_exec_create_param import ContainerProbeExecCreateParam
|
|
9
|
-
from .container_probe_http_get_create_param import ContainerProbeHTTPGetCreateParam
|
|
10
|
-
from .container_probe_tcp_socket_create_param import ContainerProbeTcpSocketCreateParam
|
|
11
|
-
|
|
12
|
-
__all__ = ["ContainerProbeCreateParam"]
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class ContainerProbeCreateParam(TypedDict, total=False):
|
|
16
|
-
exec: Optional[ContainerProbeExecCreateParam]
|
|
17
|
-
"""Exec probe configuration"""
|
|
18
|
-
|
|
19
|
-
failure_threshold: int
|
|
20
|
-
"""The number of consecutive probe failures that mark the container as unhealthy."""
|
|
21
|
-
|
|
22
|
-
http_get: Optional[ContainerProbeHTTPGetCreateParam]
|
|
23
|
-
"""HTTP GET probe configuration"""
|
|
24
|
-
|
|
25
|
-
initial_delay_seconds: int
|
|
26
|
-
"""The initial delay before starting the first probe."""
|
|
27
|
-
|
|
28
|
-
period_seconds: int
|
|
29
|
-
"""How often (in seconds) to perform the probe."""
|
|
30
|
-
|
|
31
|
-
success_threshold: int
|
|
32
|
-
"""The number of consecutive successful probes that mark the container as healthy."""
|
|
33
|
-
|
|
34
|
-
tcp_socket: Optional[ContainerProbeTcpSocketCreateParam]
|
|
35
|
-
"""TCP socket probe configuration"""
|
|
36
|
-
|
|
37
|
-
timeout_seconds: int
|
|
38
|
-
"""The timeout for each probe."""
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import List
|
|
6
|
-
from typing_extensions import Required, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["ContainerProbeExecCreateParam"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ContainerProbeExecCreateParam(TypedDict, total=False):
|
|
12
|
-
command: Required[List[str]]
|
|
13
|
-
"""Command to be executed inside the running container."""
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Dict, Optional
|
|
6
|
-
from typing_extensions import Required, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["ContainerProbeHTTPGetCreateParam"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ContainerProbeHTTPGetCreateParam(TypedDict, total=False):
|
|
12
|
-
port: Required[int]
|
|
13
|
-
"""Port number the probe should connect to."""
|
|
14
|
-
|
|
15
|
-
headers: Dict[str, str]
|
|
16
|
-
"""HTTP headers to be sent with the request."""
|
|
17
|
-
|
|
18
|
-
host: Optional[str]
|
|
19
|
-
"""Host name to send HTTP request to."""
|
|
20
|
-
|
|
21
|
-
path: str
|
|
22
|
-
"""The endpoint to send the HTTP request to."""
|
|
23
|
-
|
|
24
|
-
schema: str
|
|
25
|
-
"""Schema to use for the HTTP request."""
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Required, TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["ContainerProbeTcpSocketCreateParam"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class ContainerProbeTcpSocketCreateParam(TypedDict, total=False):
|
|
11
|
-
port: Required[int]
|
|
12
|
-
"""Port number to check if it's open."""
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
from ..._models import BaseModel
|
|
6
|
-
from .container_scale_triggers import ContainerScaleTriggers
|
|
7
|
-
|
|
8
|
-
__all__ = ["ContainerScale"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ContainerScale(BaseModel):
|
|
12
|
-
cooldown_period: Optional[int] = None
|
|
13
|
-
"""Cooldown period between scaling actions in seconds"""
|
|
14
|
-
|
|
15
|
-
max: int
|
|
16
|
-
"""Maximum scale for the container"""
|
|
17
|
-
|
|
18
|
-
min: int
|
|
19
|
-
"""Minimum scale for the container"""
|
|
20
|
-
|
|
21
|
-
polling_interval: Optional[int] = None
|
|
22
|
-
"""Polling interval for scaling triggers in seconds"""
|
|
23
|
-
|
|
24
|
-
triggers: ContainerScaleTriggers
|
|
25
|
-
"""Triggers for scaling actions"""
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from ..._models import BaseModel
|
|
4
|
-
|
|
5
|
-
__all__ = ["ContainerScaleTriggerRate"]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ContainerScaleTriggerRate(BaseModel):
|
|
9
|
-
rate: int
|
|
10
|
-
"""Request count per 'window' seconds for the http trigger"""
|
|
11
|
-
|
|
12
|
-
window: int
|
|
13
|
-
"""Time window for rate calculation in seconds"""
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
from ..._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["ContainerScaleTriggerSqs"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class ContainerScaleTriggerSqs(BaseModel):
|
|
11
|
-
activation_queue_length: int
|
|
12
|
-
"""Number of messages for activation"""
|
|
13
|
-
|
|
14
|
-
aws_endpoint: Optional[str] = None
|
|
15
|
-
"""Custom AWS endpoint"""
|
|
16
|
-
|
|
17
|
-
aws_region: str
|
|
18
|
-
"""AWS region"""
|
|
19
|
-
|
|
20
|
-
queue_length: int
|
|
21
|
-
"""Number of messages for one replica"""
|
|
22
|
-
|
|
23
|
-
queue_url: str
|
|
24
|
-
"""SQS queue URL"""
|
|
25
|
-
|
|
26
|
-
scale_on_delayed: bool
|
|
27
|
-
"""Scale on delayed messages"""
|
|
28
|
-
|
|
29
|
-
scale_on_flight: bool
|
|
30
|
-
"""Scale on in-flight messages"""
|
|
31
|
-
|
|
32
|
-
secret_name: str
|
|
33
|
-
"""Auth secret name"""
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from ..._models import BaseModel
|
|
4
|
-
|
|
5
|
-
__all__ = ["ContainerScaleTriggerThreshold"]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ContainerScaleTriggerThreshold(BaseModel):
|
|
9
|
-
threshold: int
|
|
10
|
-
"""Threshold value for the trigger in percentage"""
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
from ..._models import BaseModel
|
|
6
|
-
from .container_scale_trigger_sqs import ContainerScaleTriggerSqs
|
|
7
|
-
from .container_scale_trigger_rate import ContainerScaleTriggerRate
|
|
8
|
-
from .container_scale_trigger_threshold import ContainerScaleTriggerThreshold
|
|
9
|
-
|
|
10
|
-
__all__ = ["ContainerScaleTriggers"]
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ContainerScaleTriggers(BaseModel):
|
|
14
|
-
cpu: Optional[ContainerScaleTriggerThreshold] = None
|
|
15
|
-
"""CPU trigger configuration"""
|
|
16
|
-
|
|
17
|
-
gpu_memory: Optional[ContainerScaleTriggerThreshold] = None
|
|
18
|
-
"""GPU memory trigger configuration.
|
|
19
|
-
|
|
20
|
-
Calculated by `DCGM_FI_DEV_MEM_COPY_UTIL` metric
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
gpu_utilization: Optional[ContainerScaleTriggerThreshold] = None
|
|
24
|
-
"""GPU utilization trigger configuration.
|
|
25
|
-
|
|
26
|
-
Calculated by `DCGM_FI_DEV_GPU_UTIL` metric
|
|
27
|
-
"""
|
|
28
|
-
|
|
29
|
-
http: Optional[ContainerScaleTriggerRate] = None
|
|
30
|
-
"""HTTP trigger configuration"""
|
|
31
|
-
|
|
32
|
-
memory: Optional[ContainerScaleTriggerThreshold] = None
|
|
33
|
-
"""Memory trigger configuration"""
|
|
34
|
-
|
|
35
|
-
sqs: Optional[ContainerScaleTriggerSqs] = None
|
|
36
|
-
"""SQS trigger configuration"""
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from ..._models import BaseModel
|
|
4
|
-
|
|
5
|
-
__all__ = ["DeployStatus"]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class DeployStatus(BaseModel):
|
|
9
|
-
ready: int
|
|
10
|
-
"""Number of ready instances"""
|
|
11
|
-
|
|
12
|
-
total: int
|
|
13
|
-
"""Total number of instances"""
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
from ...._models import BaseModel
|
|
6
|
-
from ..deploy_status import DeployStatus
|
|
7
|
-
from ..container_scale import ContainerScale
|
|
8
|
-
|
|
9
|
-
__all__ = ["Container"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Container(BaseModel):
|
|
13
|
-
address: Optional[str] = None
|
|
14
|
-
"""Address of the inference instance"""
|
|
15
|
-
|
|
16
|
-
deploy_status: DeployStatus
|
|
17
|
-
"""Status of the containers deployment"""
|
|
18
|
-
|
|
19
|
-
error_message: Optional[str] = None
|
|
20
|
-
"""Error message if the container deployment failed"""
|
|
21
|
-
|
|
22
|
-
region_id: int
|
|
23
|
-
"""Region name for the container"""
|
|
24
|
-
|
|
25
|
-
scale: ContainerScale
|
|
26
|
-
"""Scale for the container"""
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Dict, List, Optional
|
|
4
|
-
from typing_extensions import Literal
|
|
5
|
-
|
|
6
|
-
from ..logging import Logging
|
|
7
|
-
from .container import Container
|
|
8
|
-
from ...._models import BaseModel
|
|
9
|
-
from ..inference_probes import InferenceProbes
|
|
10
|
-
from ..ingress_opts_out import IngressOptsOut
|
|
11
|
-
|
|
12
|
-
__all__ = ["Inference"]
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class Inference(BaseModel):
|
|
16
|
-
address: Optional[str] = None
|
|
17
|
-
"""Address of the inference instance"""
|
|
18
|
-
|
|
19
|
-
auth_enabled: bool
|
|
20
|
-
"""`true` if instance uses API key authentication.
|
|
21
|
-
|
|
22
|
-
`"Authorization": "Bearer ****\\**"` or `"X-Api-Key": "****\\**"` header is required
|
|
23
|
-
for the requests to the instance if enabled.
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
command: Optional[str] = None
|
|
27
|
-
"""Command to be executed when running a container from an image."""
|
|
28
|
-
|
|
29
|
-
containers: List[Container]
|
|
30
|
-
"""List of containers for the inference instance"""
|
|
31
|
-
|
|
32
|
-
created_at: Optional[str] = None
|
|
33
|
-
"""Inference instance creation date in ISO 8601 format."""
|
|
34
|
-
|
|
35
|
-
credentials_name: str
|
|
36
|
-
"""Registry credentials name"""
|
|
37
|
-
|
|
38
|
-
description: str
|
|
39
|
-
"""Inference instance description."""
|
|
40
|
-
|
|
41
|
-
envs: Optional[Dict[str, str]] = None
|
|
42
|
-
"""Environment variables for the inference instance"""
|
|
43
|
-
|
|
44
|
-
flavor_name: str
|
|
45
|
-
"""Flavor name for the inference instance"""
|
|
46
|
-
|
|
47
|
-
image: str
|
|
48
|
-
"""Docker image for the inference instance.
|
|
49
|
-
|
|
50
|
-
This field should contain the image name and tag in the format 'name:tag', e.g.,
|
|
51
|
-
'nginx:latest'. It defaults to Docker Hub as the image registry, but any
|
|
52
|
-
accessible Docker image URL can be specified.
|
|
53
|
-
"""
|
|
54
|
-
|
|
55
|
-
ingress_opts: Optional[IngressOptsOut] = None
|
|
56
|
-
"""Ingress options for the inference instance"""
|
|
57
|
-
|
|
58
|
-
listening_port: int
|
|
59
|
-
"""Listening port for the inference instance."""
|
|
60
|
-
|
|
61
|
-
logging: Optional[Logging] = None
|
|
62
|
-
"""Logging configuration for the inference instance"""
|
|
63
|
-
|
|
64
|
-
name: str
|
|
65
|
-
"""Inference instance name."""
|
|
66
|
-
|
|
67
|
-
probes: Optional[InferenceProbes] = None
|
|
68
|
-
"""Probes configured for all containers of the inference instance."""
|
|
69
|
-
|
|
70
|
-
project_id: int
|
|
71
|
-
"""Project ID. If not provided, your default project ID will be used."""
|
|
72
|
-
|
|
73
|
-
status: Literal["ACTIVE", "DELETING", "DEPLOYING", "DISABLED", "PARTIALLYDEPLOYED", "PENDING"]
|
|
74
|
-
"""Inference instance status. Value can be one of the following:
|
|
75
|
-
|
|
76
|
-
- `DEPLOYING` - The instance is being deployed. Containers are not yet created.
|
|
77
|
-
- `PARTIALLYDEPLOYED` - All containers have been created, but some may not be
|
|
78
|
-
ready yet. Instances stuck in this state typically indicate either image being
|
|
79
|
-
pulled, or a failure of some kind. In the latter case, the `error_message`
|
|
80
|
-
field of the respective container object in the `containers` collection
|
|
81
|
-
explains the failure reason.
|
|
82
|
-
- `ACTIVE` - The instance is running and ready to accept requests.
|
|
83
|
-
- `DISABLED` - The instance is disabled and not accepting any requests.
|
|
84
|
-
- `PENDING` - The instance is running but scaled to zero. It will be
|
|
85
|
-
automatically scaled up when a request is made.
|
|
86
|
-
- `DELETING` - The instance is being deleted.
|
|
87
|
-
"""
|
|
88
|
-
|
|
89
|
-
timeout: Optional[int] = None
|
|
90
|
-
"""
|
|
91
|
-
Specifies the duration in seconds without any requests after which the
|
|
92
|
-
containers will be downscaled to their minimum scale value as defined by
|
|
93
|
-
`scale.min`. If set, this helps in optimizing resource usage by reducing the
|
|
94
|
-
number of container instances during periods of inactivity.
|
|
95
|
-
"""
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
from ..._models import BaseModel
|
|
6
|
-
from .container_probe_config import ContainerProbeConfig
|
|
7
|
-
|
|
8
|
-
__all__ = ["InferenceProbes"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class InferenceProbes(BaseModel):
|
|
12
|
-
liveness_probe: Optional[ContainerProbeConfig] = None
|
|
13
|
-
"""Liveness probe configuration"""
|
|
14
|
-
|
|
15
|
-
readiness_probe: Optional[ContainerProbeConfig] = None
|
|
16
|
-
"""Readiness probe configuration"""
|
|
17
|
-
|
|
18
|
-
startup_probe: Optional[ContainerProbeConfig] = None
|
|
19
|
-
"""Startup probe configuration"""
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from ..._models import BaseModel
|
|
4
|
-
|
|
5
|
-
__all__ = ["IngressOptsOut"]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class IngressOptsOut(BaseModel):
|
|
9
|
-
disable_response_buffering: bool
|
|
10
|
-
"""Disable response buffering if true.
|
|
11
|
-
|
|
12
|
-
A client usually has a much slower connection and can not consume the response
|
|
13
|
-
data as fast as it is produced by an upstream application. Ingress tries to
|
|
14
|
-
buffer the whole response in order to release the upstream application as soon
|
|
15
|
-
as possible.By default, the response buffering is enabled.
|
|
16
|
-
"""
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["IngressOptsParam"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class IngressOptsParam(TypedDict, total=False):
|
|
11
|
-
disable_response_buffering: bool
|
|
12
|
-
"""Disable response buffering if true.
|
|
13
|
-
|
|
14
|
-
A client usually has a much slower connection and can not consume the response
|
|
15
|
-
data as fast as it is produced by an upstream application. Ingress tries to
|
|
16
|
-
buffer the whole response in order to release the upstream application as soon
|
|
17
|
-
as possible.By default, the response buffering is enabled.
|
|
18
|
-
"""
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["FlavorListForResizeParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class FlavorListForResizeParams(TypedDict, total=False):
|
|
11
|
-
project_id: int
|
|
12
|
-
|
|
13
|
-
region_id: int
|
|
14
|
-
|
|
15
|
-
include_prices: bool
|
|
16
|
-
"""Set to true if flavor listing should include flavor prices"""
|