yandexcloud 0.337.0__py3-none-any.whl → 0.339.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 yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/assistants/v1/common_pb2.py +32 -27
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +29 -2
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +32 -32
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +7 -1
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +39 -3
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +220 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.py +172 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.pyi +68 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.py +3 -3
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.pyi +2 -0
- yandex/cloud/apploadbalancer/v1/load_balancer_pb2.py +50 -50
- yandex/cloud/apploadbalancer/v1/load_balancer_pb2.pyi +10 -2
- yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2.py +86 -66
- yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2.pyi +98 -2
- yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2_grpc.py +88 -0
- yandex/cloud/apploadbalancer/v1/load_balancer_service_pb2_grpc.pyi +40 -0
- yandex/cloud/backup/v1/backup_service_pb2.py +44 -40
- yandex/cloud/backup/v1/backup_service_pb2.pyi +14 -2
- yandex/cloud/backup/v1/policy_pb2.py +56 -52
- yandex/cloud/backup/v1/policy_pb2.pyi +36 -5
- yandex/cloud/backup/v1/resource_pb2.py +21 -19
- yandex/cloud/backup/v1/resource_pb2.pyi +32 -2
- yandex/cloud/backup/v1/resource_service_pb2.py +30 -30
- yandex/cloud/backup/v1/resource_service_pb2.pyi +5 -1
- yandex/cloud/baremetal/__init__.py +0 -0
- yandex/cloud/baremetal/v1alpha/__init__.py +0 -0
- yandex/cloud/baremetal/v1alpha/configuration_pb2.py +42 -0
- yandex/cloud/baremetal/v1alpha/configuration_pb2.pyi +109 -0
- yandex/cloud/baremetal/v1alpha/configuration_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/configuration_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2.py +49 -0
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2.pyi +111 -0
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2_grpc.py +148 -0
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2_grpc.pyi +80 -0
- yandex/cloud/baremetal/v1alpha/dhcp_pb2.py +37 -0
- yandex/cloud/baremetal/v1alpha/dhcp_pb2.pyi +33 -0
- yandex/cloud/baremetal/v1alpha/dhcp_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/dhcp_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/disk_pb2.py +39 -0
- yandex/cloud/baremetal/v1alpha/disk_pb2.pyi +68 -0
- yandex/cloud/baremetal/v1alpha/disk_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/disk_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/hardware_pool_pb2.py +37 -0
- yandex/cloud/baremetal/v1alpha/hardware_pool_pb2.pyi +36 -0
- yandex/cloud/baremetal/v1alpha/hardware_pool_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/hardware_pool_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2.py +49 -0
- yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2.pyi +87 -0
- yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2_grpc.py +148 -0
- yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2_grpc.pyi +80 -0
- yandex/cloud/baremetal/v1alpha/image_pb2.py +44 -0
- yandex/cloud/baremetal/v1alpha/image_pb2.pyi +125 -0
- yandex/cloud/baremetal/v1alpha/image_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/image_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/image_service_pb2.py +108 -0
- yandex/cloud/baremetal/v1alpha/image_service_pb2.pyi +364 -0
- yandex/cloud/baremetal/v1alpha/image_service_pb2_grpc.py +327 -0
- yandex/cloud/baremetal/v1alpha/image_service_pb2_grpc.pyi +170 -0
- yandex/cloud/baremetal/v1alpha/private_subnet_pb2.py +47 -0
- yandex/cloud/baremetal/v1alpha/private_subnet_pb2.pyi +174 -0
- yandex/cloud/baremetal/v1alpha/private_subnet_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/private_subnet_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.py +112 -0
- yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.pyi +443 -0
- yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2_grpc.py +327 -0
- yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2_grpc.pyi +170 -0
- yandex/cloud/baremetal/v1alpha/public_subnet_pb2.py +45 -0
- yandex/cloud/baremetal/v1alpha/public_subnet_pb2.pyi +143 -0
- yandex/cloud/baremetal/v1alpha/public_subnet_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/public_subnet_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.py +106 -0
- yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.pyi +382 -0
- yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2_grpc.py +327 -0
- yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2_grpc.pyi +170 -0
- yandex/cloud/baremetal/v1alpha/server_pb2.py +54 -0
- yandex/cloud/baremetal/v1alpha/server_pb2.pyi +282 -0
- yandex/cloud/baremetal/v1alpha/server_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/server_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/server_service_pb2.py +217 -0
- yandex/cloud/baremetal/v1alpha/server_service_pb2.pyi +850 -0
- yandex/cloud/baremetal/v1alpha/server_service_pb2_grpc.py +589 -0
- yandex/cloud/baremetal/v1alpha/server_service_pb2_grpc.pyi +281 -0
- yandex/cloud/baremetal/v1alpha/storage_pb2.py +46 -0
- yandex/cloud/baremetal/v1alpha/storage_pb2.pyi +165 -0
- yandex/cloud/baremetal/v1alpha/storage_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/storage_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/storage_service_pb2.py +51 -0
- yandex/cloud/baremetal/v1alpha/storage_service_pb2.pyi +91 -0
- yandex/cloud/baremetal/v1alpha/storage_service_pb2_grpc.py +145 -0
- yandex/cloud/baremetal/v1alpha/storage_service_pb2_grpc.pyi +70 -0
- yandex/cloud/baremetal/v1alpha/vrf_pb2.py +42 -0
- yandex/cloud/baremetal/v1alpha/vrf_pb2.pyi +77 -0
- yandex/cloud/baremetal/v1alpha/vrf_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/vrf_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/vrf_service_pb2.py +106 -0
- yandex/cloud/baremetal/v1alpha/vrf_service_pb2.pyi +357 -0
- yandex/cloud/baremetal/v1alpha/vrf_service_pb2_grpc.py +327 -0
- yandex/cloud/baremetal/v1alpha/vrf_service_pb2_grpc.pyi +170 -0
- yandex/cloud/baremetal/v1alpha/zone_pb2.py +37 -0
- yandex/cloud/baremetal/v1alpha/zone_pb2.pyi +29 -0
- yandex/cloud/baremetal/v1alpha/zone_pb2_grpc.py +24 -0
- yandex/cloud/baremetal/v1alpha/zone_pb2_grpc.pyi +17 -0
- yandex/cloud/baremetal/v1alpha/zone_service_pb2.py +49 -0
- yandex/cloud/baremetal/v1alpha/zone_service_pb2.pyi +87 -0
- yandex/cloud/baremetal/v1alpha/zone_service_pb2_grpc.py +148 -0
- yandex/cloud/baremetal/v1alpha/zone_service_pb2_grpc.pyi +80 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2.py +40 -40
- yandex/cloud/dataproc/manager/v1/job_pb2.pyi +26 -26
- yandex/cloud/dataproc/manager/v1/job_service_pb2.pyi +7 -7
- yandex/cloud/dataproc/manager/v1/job_service_pb2_grpc.py +2 -2
- yandex/cloud/dataproc/manager/v1/job_service_pb2_grpc.pyi +6 -6
- yandex/cloud/dataproc/manager/v1/manager_service_pb2.pyi +2 -2
- yandex/cloud/dataproc/manager/v1/manager_service_pb2_grpc.py +3 -3
- yandex/cloud/dataproc/manager/v1/manager_service_pb2_grpc.pyi +3 -3
- yandex/cloud/dataproc/v1/cluster_pb2.pyi +5 -5
- yandex/cloud/dataproc/v1/cluster_service_pb2.pyi +13 -13
- yandex/cloud/dataproc/v1/cluster_service_pb2_grpc.py +4 -4
- yandex/cloud/dataproc/v1/cluster_service_pb2_grpc.pyi +6 -6
- yandex/cloud/dataproc/v1/job_pb2.pyi +15 -15
- yandex/cloud/dataproc/v1/job_service_pb2.pyi +3 -3
- yandex/cloud/dataproc/v1/job_service_pb2_grpc.py +4 -4
- yandex/cloud/dataproc/v1/job_service_pb2_grpc.pyi +6 -6
- yandex/cloud/dataproc/v1/resource_preset_pb2.pyi +2 -2
- yandex/cloud/dataproc/v1/subcluster_pb2.pyi +11 -11
- yandex/cloud/dataproc/v1/subcluster_service_pb2.pyi +3 -3
- yandex/cloud/dataproc/v1/subcluster_service_pb2_grpc.py +3 -3
- yandex/cloud/dataproc/v1/subcluster_service_pb2_grpc.pyi +3 -3
- yandex/cloud/iam/v1/api_key_pb2.pyi +3 -1
- yandex/cloud/iam/v1/api_key_service_pb2.pyi +3 -1
- yandex/cloud/iam/v1/key_service_pb2.pyi +0 -2
- yandex/cloud/iam/v1/workload/oidc/federation_service_pb2.py +32 -25
- yandex/cloud/iam/v1/workload/oidc/federation_service_pb2_grpc.py +133 -0
- yandex/cloud/iam/v1/workload/oidc/federation_service_pb2_grpc.pyi +61 -0
- yandex/cloud/k8s/v1/cluster_pb2.py +40 -30
- yandex/cloud/k8s/v1/cluster_pb2.pyi +94 -2
- yandex/cloud/k8s/v1/cluster_service_pb2.py +54 -42
- yandex/cloud/k8s/v1/cluster_service_pb2.pyi +70 -4
- yandex/cloud/k8s/v1/resource_preset_pb2.py +37 -0
- yandex/cloud/k8s/v1/resource_preset_pb2.pyi +43 -0
- yandex/cloud/k8s/v1/resource_preset_pb2_grpc.py +24 -0
- yandex/cloud/k8s/v1/resource_preset_pb2_grpc.pyi +17 -0
- yandex/cloud/k8s/v1/resource_preset_service_pb2.py +53 -0
- yandex/cloud/k8s/v1/resource_preset_service_pb2.pyi +81 -0
- yandex/cloud/k8s/v1/resource_preset_service_pb2_grpc.py +146 -0
- yandex/cloud/k8s/v1/resource_preset_service_pb2_grpc.pyi +71 -0
- yandex/cloud/mdb/mysql/v1/backup_pb2.py +6 -6
- yandex/cloud/mdb/mysql/v1/backup_pb2.pyi +5 -1
- yandex/cloud/mdb/mysql/v1/config/mysql5_7_pb2.py +26 -20
- yandex/cloud/mdb/mysql/v1/config/mysql5_7_pb2.pyi +73 -2
- yandex/cloud/mdb/mysql/v1/config/mysql8_0_pb2.py +26 -20
- yandex/cloud/mdb/mysql/v1/config/mysql8_0_pb2.pyi +100 -2
- yandex/cloud/mdb/opensearch/v1/backup_pb2.py +30 -3
- yandex/cloud/mdb/opensearch/v1/backup_pb2.pyi +162 -0
- yandex/cloud/mdb/opensearch/v1/cluster_pb2.py +46 -45
- yandex/cloud/mdb/opensearch/v1/cluster_pb2.pyi +9 -2
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.py +88 -70
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi +102 -4
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2_grpc.py +89 -0
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2_grpc.pyi +49 -3
- yandex/cloud/mdb/postgresql/v1/config/host10_1c_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host10_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host11_1c_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host11_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host12_1c_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host12_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host13_1c_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host13_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host14_1c_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host14_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host15_1c_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host15_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/host16_1c_pb2.py +25 -25
- yandex/cloud/mdb/postgresql/v1/config/host16_pb2.py +25 -25
- yandex/cloud/mdb/postgresql/v1/config/host9_6_pb2.py +23 -23
- yandex/cloud/mdb/postgresql/v1/config/postgresql10_1c_pb2.py +35 -35
- yandex/cloud/mdb/postgresql/v1/config/postgresql10_pb2.py +35 -35
- yandex/cloud/mdb/postgresql/v1/config/postgresql11_1c_pb2.py +35 -35
- yandex/cloud/mdb/postgresql/v1/config/postgresql11_pb2.py +35 -35
- yandex/cloud/mdb/postgresql/v1/config/postgresql12_1c_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql12_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql13_1c_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql13_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql14_1c_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql14_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.py +37 -37
- yandex/cloud/mdb/postgresql/v1/config/postgresql9_6_pb2.py +29 -29
- yandex/cloud/monitoring/v3/unit_format_pb2.py +2 -2
- yandex/cloud/monitoring/v3/unit_format_pb2.pyi +16 -0
- yandex/cloud/searchapi/v2/gen_search_service_pb2.py +28 -22
- yandex/cloud/searchapi/v2/search_query_pb2.py +8 -8
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +8 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2.py +11 -3
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2.pyi +24 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.py +44 -0
- yandex/cloud/serverless/eventrouter/v1/event_service_pb2_grpc.pyi +20 -0
- yandex/cloud/spark/__init__.py +0 -0
- yandex/cloud/spark/v1/__init__.py +0 -0
- yandex/cloud/spark/v1/cluster_pb2.py +100 -0
- yandex/cloud/spark/v1/cluster_pb2.pyi +444 -0
- yandex/cloud/spark/v1/cluster_pb2_grpc.py +24 -0
- yandex/cloud/spark/v1/cluster_pb2_grpc.pyi +17 -0
- yandex/cloud/spark/v1/cluster_service_pb2.py +124 -0
- yandex/cloud/spark/v1/cluster_service_pb2.pyi +333 -0
- yandex/cloud/spark/v1/cluster_service_pb2_grpc.py +366 -0
- yandex/cloud/spark/v1/cluster_service_pb2_grpc.pyi +169 -0
- yandex/cloud/spark/v1/job_pb2.py +56 -0
- yandex/cloud/spark/v1/job_pb2.pyi +346 -0
- yandex/cloud/spark/v1/job_pb2_grpc.py +24 -0
- yandex/cloud/spark/v1/job_pb2_grpc.pyi +17 -0
- yandex/cloud/spark/v1/job_service_pb2.py +97 -0
- yandex/cloud/spark/v1/job_service_pb2.pyi +224 -0
- yandex/cloud/spark/v1/job_service_pb2_grpc.py +279 -0
- yandex/cloud/spark/v1/job_service_pb2_grpc.pyi +132 -0
- yandex/cloud/spark/v1/maintenance_pb2.py +53 -0
- yandex/cloud/spark/v1/maintenance_pb2.pyi +123 -0
- yandex/cloud/spark/v1/maintenance_pb2_grpc.py +24 -0
- yandex/cloud/spark/v1/maintenance_pb2_grpc.pyi +17 -0
- yandexcloud/__init__.py +2 -2
- yandexcloud/_operation_waiter.py +17 -19
- yandexcloud/_retry_policy.py +17 -3
- yandexcloud/_wrappers/dataproc/__init__.py +39 -0
- {yandexcloud-0.337.0.dist-info → yandexcloud-0.339.0.dist-info}/METADATA +9 -9
- {yandexcloud-0.337.0.dist-info → yandexcloud-0.339.0.dist-info}/RECORD +230 -118
- {yandexcloud-0.337.0.dist-info → yandexcloud-0.339.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.337.0.dist-info → yandexcloud-0.339.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.337.0.dist-info → yandexcloud-0.339.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.337.0.dist-info → yandexcloud-0.339.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class HardwarePool(google.protobuf.message.Message):
|
|
15
|
+
"""A HardwarePool resource."""
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18
|
+
|
|
19
|
+
ID_FIELD_NUMBER: builtins.int
|
|
20
|
+
ZONE_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
id: builtins.str
|
|
22
|
+
"""ID of the hardware pool."""
|
|
23
|
+
zone_id: builtins.str
|
|
24
|
+
"""ID of the zone where the hardware pool is located.
|
|
25
|
+
|
|
26
|
+
To get the zone ID use a [ZoneService.List] request.
|
|
27
|
+
"""
|
|
28
|
+
def __init__(
|
|
29
|
+
self,
|
|
30
|
+
*,
|
|
31
|
+
id: builtins.str = ...,
|
|
32
|
+
zone_id: builtins.str = ...,
|
|
33
|
+
) -> None: ...
|
|
34
|
+
def ClearField(self, field_name: typing.Literal["id", b"id", "zone_id", b"zone_id"]) -> None: ...
|
|
35
|
+
|
|
36
|
+
global___HardwarePool = HardwarePool
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ f' but the generated code in yandex/cloud/baremetal/v1alpha/hardware_pool_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/baremetal/v1alpha/hardware_pool_service.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/baremetal/v1alpha/hardware_pool_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from yandex.cloud.baremetal.v1alpha import hardware_pool_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__pb2
|
|
26
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n:yandex/cloud/baremetal/v1alpha/hardware_pool_service.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a\x32yandex/cloud/baremetal/v1alpha/hardware_pool.proto\x1a\x1dyandex/cloud/validation.proto\"<\n\x16GetHardwarePoolRequest\x12\"\n\x10hardware_pool_id\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=20\"R\n\x18ListHardwarePoolsRequest\x12\x1c\n\tpage_size\x18\x64 \x01(\x03\x42\t\xfa\xc7\x31\x05<=100\x12\x12\n\npage_token\x18\x65 \x01(\tJ\x04\x08\x01\x10\x64\"\x80\x01\n\x19ListHardwarePoolsResponse\x12\x44\n\x0ehardware_pools\x18\x01 \x03(\x0b\x32,.yandex.cloud.baremetal.v1alpha.HardwarePool\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\x32\x83\x02\n\x13HardwarePoolService\x12m\n\x03Get\x12\x36.yandex.cloud.baremetal.v1alpha.GetHardwarePoolRequest\x1a,.yandex.cloud.baremetal.v1alpha.HardwarePool\"\x00\x12}\n\x04List\x12\x38.yandex.cloud.baremetal.v1alpha.ListHardwarePoolsRequest\x1a\x39.yandex.cloud.baremetal.v1alpha.ListHardwarePoolsResponse\"\x00\x42r\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetal'
|
|
37
|
+
_globals['_GETHARDWAREPOOLREQUEST'].fields_by_name['hardware_pool_id']._loaded_options = None
|
|
38
|
+
_globals['_GETHARDWAREPOOLREQUEST'].fields_by_name['hardware_pool_id']._serialized_options = b'\212\3101\004<=20'
|
|
39
|
+
_globals['_LISTHARDWAREPOOLSREQUEST'].fields_by_name['page_size']._loaded_options = None
|
|
40
|
+
_globals['_LISTHARDWAREPOOLSREQUEST'].fields_by_name['page_size']._serialized_options = b'\372\3071\005<=100'
|
|
41
|
+
_globals['_GETHARDWAREPOOLREQUEST']._serialized_start=177
|
|
42
|
+
_globals['_GETHARDWAREPOOLREQUEST']._serialized_end=237
|
|
43
|
+
_globals['_LISTHARDWAREPOOLSREQUEST']._serialized_start=239
|
|
44
|
+
_globals['_LISTHARDWAREPOOLSREQUEST']._serialized_end=321
|
|
45
|
+
_globals['_LISTHARDWAREPOOLSRESPONSE']._serialized_start=324
|
|
46
|
+
_globals['_LISTHARDWAREPOOLSRESPONSE']._serialized_end=452
|
|
47
|
+
_globals['_HARDWAREPOOLSERVICE']._serialized_start=455
|
|
48
|
+
_globals['_HARDWAREPOOLSERVICE']._serialized_end=714
|
|
49
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
import yandex.cloud.baremetal.v1alpha.hardware_pool_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class GetHardwarePoolRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
HARDWARE_POOL_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
hardware_pool_id: builtins.str
|
|
22
|
+
"""ID of the HardwarePool resource to return.
|
|
23
|
+
|
|
24
|
+
To get the hardware pool ID, use a [HardwarePoolService.List] request.
|
|
25
|
+
"""
|
|
26
|
+
def __init__(
|
|
27
|
+
self,
|
|
28
|
+
*,
|
|
29
|
+
hardware_pool_id: builtins.str = ...,
|
|
30
|
+
) -> None: ...
|
|
31
|
+
def ClearField(self, field_name: typing.Literal["hardware_pool_id", b"hardware_pool_id"]) -> None: ...
|
|
32
|
+
|
|
33
|
+
global___GetHardwarePoolRequest = GetHardwarePoolRequest
|
|
34
|
+
|
|
35
|
+
@typing.final
|
|
36
|
+
class ListHardwarePoolsRequest(google.protobuf.message.Message):
|
|
37
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
38
|
+
|
|
39
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
40
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
41
|
+
page_size: builtins.int
|
|
42
|
+
"""The maximum number of results per page to return. If the number of available
|
|
43
|
+
results is greater than `page_size`,
|
|
44
|
+
the service returns a [ListHardwarePoolsResponse.next_page_token]
|
|
45
|
+
that can be used to get the next page of results in subsequent list requests.
|
|
46
|
+
Default value is 20.
|
|
47
|
+
"""
|
|
48
|
+
page_token: builtins.str
|
|
49
|
+
"""Page token. To get the next page of results, set `page_token` to the
|
|
50
|
+
[ListHardwarePoolsResponse.next_page_token] returned by a previous list request.
|
|
51
|
+
"""
|
|
52
|
+
def __init__(
|
|
53
|
+
self,
|
|
54
|
+
*,
|
|
55
|
+
page_size: builtins.int = ...,
|
|
56
|
+
page_token: builtins.str = ...,
|
|
57
|
+
) -> None: ...
|
|
58
|
+
def ClearField(self, field_name: typing.Literal["page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
59
|
+
|
|
60
|
+
global___ListHardwarePoolsRequest = ListHardwarePoolsRequest
|
|
61
|
+
|
|
62
|
+
@typing.final
|
|
63
|
+
class ListHardwarePoolsResponse(google.protobuf.message.Message):
|
|
64
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
65
|
+
|
|
66
|
+
HARDWARE_POOLS_FIELD_NUMBER: builtins.int
|
|
67
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
68
|
+
next_page_token: builtins.str
|
|
69
|
+
"""Token for getting the next page of the list. If the number of results is greater than
|
|
70
|
+
[ListHardwarePoolsResponse.page_size], use `next_page_token` as the value
|
|
71
|
+
for the [ListHardwarePoolsResponse.page_token] parameter in the next list request.
|
|
72
|
+
|
|
73
|
+
Each subsequent page will have its own `next_page_token` to continue paging through the results.
|
|
74
|
+
"""
|
|
75
|
+
@property
|
|
76
|
+
def hardware_pools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.baremetal.v1alpha.hardware_pool_pb2.HardwarePool]:
|
|
77
|
+
"""List of HardwarePool resources."""
|
|
78
|
+
|
|
79
|
+
def __init__(
|
|
80
|
+
self,
|
|
81
|
+
*,
|
|
82
|
+
hardware_pools: collections.abc.Iterable[yandex.cloud.baremetal.v1alpha.hardware_pool_pb2.HardwarePool] | None = ...,
|
|
83
|
+
next_page_token: builtins.str = ...,
|
|
84
|
+
) -> None: ...
|
|
85
|
+
def ClearField(self, field_name: typing.Literal["hardware_pools", b"hardware_pools", "next_page_token", b"next_page_token"]) -> None: ...
|
|
86
|
+
|
|
87
|
+
global___ListHardwarePoolsResponse = ListHardwarePoolsResponse
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from yandex.cloud.baremetal.v1alpha import hardware_pool_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__pb2
|
|
7
|
+
from yandex.cloud.baremetal.v1alpha import hardware_pool_service_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2
|
|
8
|
+
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
10
|
+
GRPC_VERSION = grpc.__version__
|
|
11
|
+
_version_not_supported = False
|
|
12
|
+
|
|
13
|
+
try:
|
|
14
|
+
from grpc._utilities import first_version_is_lower
|
|
15
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
16
|
+
except ImportError:
|
|
17
|
+
_version_not_supported = True
|
|
18
|
+
|
|
19
|
+
if _version_not_supported:
|
|
20
|
+
raise RuntimeError(
|
|
21
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
22
|
+
+ f' but the generated code in yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2_grpc.py depends on'
|
|
23
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
24
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
25
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class HardwarePoolServiceStub(object):
|
|
30
|
+
"""A set of methods to retrieve information about HardwarePool resources.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, channel):
|
|
34
|
+
"""Constructor.
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
channel: A grpc.Channel.
|
|
38
|
+
"""
|
|
39
|
+
self.Get = channel.unary_unary(
|
|
40
|
+
'/yandex.cloud.baremetal.v1alpha.HardwarePoolService/Get',
|
|
41
|
+
request_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2.GetHardwarePoolRequest.SerializeToString,
|
|
42
|
+
response_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__pb2.HardwarePool.FromString,
|
|
43
|
+
_registered_method=True)
|
|
44
|
+
self.List = channel.unary_unary(
|
|
45
|
+
'/yandex.cloud.baremetal.v1alpha.HardwarePoolService/List',
|
|
46
|
+
request_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2.ListHardwarePoolsRequest.SerializeToString,
|
|
47
|
+
response_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2.ListHardwarePoolsResponse.FromString,
|
|
48
|
+
_registered_method=True)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class HardwarePoolServiceServicer(object):
|
|
52
|
+
"""A set of methods to retrieve information about HardwarePool resources.
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
def Get(self, request, context):
|
|
56
|
+
"""Returns the specific HardwarePool resource.
|
|
57
|
+
|
|
58
|
+
To get the list of available HardwarePool resource, make a [List] request.
|
|
59
|
+
"""
|
|
60
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
61
|
+
context.set_details('Method not implemented!')
|
|
62
|
+
raise NotImplementedError('Method not implemented!')
|
|
63
|
+
|
|
64
|
+
def List(self, request, context):
|
|
65
|
+
"""Retrieves the list of HardwarePool resources.
|
|
66
|
+
"""
|
|
67
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
|
+
context.set_details('Method not implemented!')
|
|
69
|
+
raise NotImplementedError('Method not implemented!')
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def add_HardwarePoolServiceServicer_to_server(servicer, server):
|
|
73
|
+
rpc_method_handlers = {
|
|
74
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
75
|
+
servicer.Get,
|
|
76
|
+
request_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2.GetHardwarePoolRequest.FromString,
|
|
77
|
+
response_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__pb2.HardwarePool.SerializeToString,
|
|
78
|
+
),
|
|
79
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
80
|
+
servicer.List,
|
|
81
|
+
request_deserializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2.ListHardwarePoolsRequest.FromString,
|
|
82
|
+
response_serializer=yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2.ListHardwarePoolsResponse.SerializeToString,
|
|
83
|
+
),
|
|
84
|
+
}
|
|
85
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
86
|
+
'yandex.cloud.baremetal.v1alpha.HardwarePoolService', rpc_method_handlers)
|
|
87
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
88
|
+
server.add_registered_method_handlers('yandex.cloud.baremetal.v1alpha.HardwarePoolService', rpc_method_handlers)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
# This class is part of an EXPERIMENTAL API.
|
|
92
|
+
class HardwarePoolService(object):
|
|
93
|
+
"""A set of methods to retrieve information about HardwarePool resources.
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
@staticmethod
|
|
97
|
+
def Get(request,
|
|
98
|
+
target,
|
|
99
|
+
options=(),
|
|
100
|
+
channel_credentials=None,
|
|
101
|
+
call_credentials=None,
|
|
102
|
+
insecure=False,
|
|
103
|
+
compression=None,
|
|
104
|
+
wait_for_ready=None,
|
|
105
|
+
timeout=None,
|
|
106
|
+
metadata=None):
|
|
107
|
+
return grpc.experimental.unary_unary(
|
|
108
|
+
request,
|
|
109
|
+
target,
|
|
110
|
+
'/yandex.cloud.baremetal.v1alpha.HardwarePoolService/Get',
|
|
111
|
+
yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2.GetHardwarePoolRequest.SerializeToString,
|
|
112
|
+
yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__pb2.HardwarePool.FromString,
|
|
113
|
+
options,
|
|
114
|
+
channel_credentials,
|
|
115
|
+
insecure,
|
|
116
|
+
call_credentials,
|
|
117
|
+
compression,
|
|
118
|
+
wait_for_ready,
|
|
119
|
+
timeout,
|
|
120
|
+
metadata,
|
|
121
|
+
_registered_method=True)
|
|
122
|
+
|
|
123
|
+
@staticmethod
|
|
124
|
+
def List(request,
|
|
125
|
+
target,
|
|
126
|
+
options=(),
|
|
127
|
+
channel_credentials=None,
|
|
128
|
+
call_credentials=None,
|
|
129
|
+
insecure=False,
|
|
130
|
+
compression=None,
|
|
131
|
+
wait_for_ready=None,
|
|
132
|
+
timeout=None,
|
|
133
|
+
metadata=None):
|
|
134
|
+
return grpc.experimental.unary_unary(
|
|
135
|
+
request,
|
|
136
|
+
target,
|
|
137
|
+
'/yandex.cloud.baremetal.v1alpha.HardwarePoolService/List',
|
|
138
|
+
yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2.ListHardwarePoolsRequest.SerializeToString,
|
|
139
|
+
yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_hardware__pool__service__pb2.ListHardwarePoolsResponse.FromString,
|
|
140
|
+
options,
|
|
141
|
+
channel_credentials,
|
|
142
|
+
insecure,
|
|
143
|
+
call_credentials,
|
|
144
|
+
compression,
|
|
145
|
+
wait_for_ready,
|
|
146
|
+
timeout,
|
|
147
|
+
metadata,
|
|
148
|
+
_registered_method=True)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
import yandex.cloud.baremetal.v1alpha.hardware_pool_pb2
|
|
12
|
+
import yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2
|
|
13
|
+
|
|
14
|
+
_T = typing.TypeVar("_T")
|
|
15
|
+
|
|
16
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
17
|
+
|
|
18
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
class HardwarePoolServiceStub:
|
|
22
|
+
"""A set of methods to retrieve information about HardwarePool resources."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
25
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
26
|
+
yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.GetHardwarePoolRequest,
|
|
27
|
+
yandex.cloud.baremetal.v1alpha.hardware_pool_pb2.HardwarePool,
|
|
28
|
+
]
|
|
29
|
+
"""Returns the specific HardwarePool resource.
|
|
30
|
+
|
|
31
|
+
To get the list of available HardwarePool resource, make a [List] request.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
35
|
+
yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.ListHardwarePoolsRequest,
|
|
36
|
+
yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.ListHardwarePoolsResponse,
|
|
37
|
+
]
|
|
38
|
+
"""Retrieves the list of HardwarePool resources."""
|
|
39
|
+
|
|
40
|
+
class HardwarePoolServiceAsyncStub:
|
|
41
|
+
"""A set of methods to retrieve information about HardwarePool resources."""
|
|
42
|
+
|
|
43
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.GetHardwarePoolRequest,
|
|
45
|
+
yandex.cloud.baremetal.v1alpha.hardware_pool_pb2.HardwarePool,
|
|
46
|
+
]
|
|
47
|
+
"""Returns the specific HardwarePool resource.
|
|
48
|
+
|
|
49
|
+
To get the list of available HardwarePool resource, make a [List] request.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
53
|
+
yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.ListHardwarePoolsRequest,
|
|
54
|
+
yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.ListHardwarePoolsResponse,
|
|
55
|
+
]
|
|
56
|
+
"""Retrieves the list of HardwarePool resources."""
|
|
57
|
+
|
|
58
|
+
class HardwarePoolServiceServicer(metaclass=abc.ABCMeta):
|
|
59
|
+
"""A set of methods to retrieve information about HardwarePool resources."""
|
|
60
|
+
|
|
61
|
+
@abc.abstractmethod
|
|
62
|
+
def Get(
|
|
63
|
+
self,
|
|
64
|
+
request: yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.GetHardwarePoolRequest,
|
|
65
|
+
context: _ServicerContext,
|
|
66
|
+
) -> typing.Union[yandex.cloud.baremetal.v1alpha.hardware_pool_pb2.HardwarePool, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.hardware_pool_pb2.HardwarePool]]:
|
|
67
|
+
"""Returns the specific HardwarePool resource.
|
|
68
|
+
|
|
69
|
+
To get the list of available HardwarePool resource, make a [List] request.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
@abc.abstractmethod
|
|
73
|
+
def List(
|
|
74
|
+
self,
|
|
75
|
+
request: yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.ListHardwarePoolsRequest,
|
|
76
|
+
context: _ServicerContext,
|
|
77
|
+
) -> typing.Union[yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.ListHardwarePoolsResponse, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.hardware_pool_service_pb2.ListHardwarePoolsResponse]]:
|
|
78
|
+
"""Retrieves the list of HardwarePool resources."""
|
|
79
|
+
|
|
80
|
+
def add_HardwarePoolServiceServicer_to_server(servicer: HardwarePoolServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/baremetal/v1alpha/image.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/baremetal/v1alpha/image.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/baremetal/v1alpha/image.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x03\n\x05Image\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x10\n\x08\x63hecksum\x18\x06 \x01(\t\x12<\n\x06status\x18\x07 \x01(\x0e\x32,.yandex.cloud.baremetal.v1alpha.Image.Status\x12.\n\ncreated_at\x18\x64 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06labels\x18\xc8\x01 \x03(\x0b\x32\x31.yandex.cloud.baremetal.v1alpha.Image.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05J\x04\x08\x03\x10\x04J\x04\x08\x08\x10\x64J\x05\x08\x65\x10\xc8\x01\x42r\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.baremetal.v1alpha.image_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetal'
|
|
36
|
+
_globals['_IMAGE_LABELSENTRY']._loaded_options = None
|
|
37
|
+
_globals['_IMAGE_LABELSENTRY']._serialized_options = b'8\001'
|
|
38
|
+
_globals['_IMAGE']._serialized_start=112
|
|
39
|
+
_globals['_IMAGE']._serialized_end=545
|
|
40
|
+
_globals['_IMAGE_LABELSENTRY']._serialized_start=383
|
|
41
|
+
_globals['_IMAGE_LABELSENTRY']._serialized_end=428
|
|
42
|
+
_globals['_IMAGE_STATUS']._serialized_start=430
|
|
43
|
+
_globals['_IMAGE_STATUS']._serialized_end=526
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import google.protobuf.timestamp_pb2
|
|
13
|
+
import sys
|
|
14
|
+
import typing
|
|
15
|
+
|
|
16
|
+
if sys.version_info >= (3, 10):
|
|
17
|
+
import typing as typing_extensions
|
|
18
|
+
else:
|
|
19
|
+
import typing_extensions
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
22
|
+
|
|
23
|
+
@typing.final
|
|
24
|
+
class Image(google.protobuf.message.Message):
|
|
25
|
+
"""An Image resource."""
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
28
|
+
|
|
29
|
+
class _Status:
|
|
30
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
31
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
32
|
+
|
|
33
|
+
class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Image._Status.ValueType], builtins.type):
|
|
34
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
35
|
+
STATUS_UNSPECIFIED: Image._Status.ValueType # 0
|
|
36
|
+
"""Unspecified image status."""
|
|
37
|
+
CREATING: Image._Status.ValueType # 1
|
|
38
|
+
"""Image is being created."""
|
|
39
|
+
READY: Image._Status.ValueType # 2
|
|
40
|
+
"""Image is ready to use."""
|
|
41
|
+
ERROR: Image._Status.ValueType # 3
|
|
42
|
+
"""Image encountered an error."""
|
|
43
|
+
DELETING: Image._Status.ValueType # 4
|
|
44
|
+
"""Image is being deleted."""
|
|
45
|
+
UPDATING: Image._Status.ValueType # 5
|
|
46
|
+
"""Image is being updated."""
|
|
47
|
+
|
|
48
|
+
class Status(_Status, metaclass=_StatusEnumTypeWrapper):
|
|
49
|
+
"""Image status."""
|
|
50
|
+
|
|
51
|
+
STATUS_UNSPECIFIED: Image.Status.ValueType # 0
|
|
52
|
+
"""Unspecified image status."""
|
|
53
|
+
CREATING: Image.Status.ValueType # 1
|
|
54
|
+
"""Image is being created."""
|
|
55
|
+
READY: Image.Status.ValueType # 2
|
|
56
|
+
"""Image is ready to use."""
|
|
57
|
+
ERROR: Image.Status.ValueType # 3
|
|
58
|
+
"""Image encountered an error."""
|
|
59
|
+
DELETING: Image.Status.ValueType # 4
|
|
60
|
+
"""Image is being deleted."""
|
|
61
|
+
UPDATING: Image.Status.ValueType # 5
|
|
62
|
+
"""Image is being updated."""
|
|
63
|
+
|
|
64
|
+
@typing.final
|
|
65
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
66
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
67
|
+
|
|
68
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
69
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
70
|
+
key: builtins.str
|
|
71
|
+
value: builtins.str
|
|
72
|
+
def __init__(
|
|
73
|
+
self,
|
|
74
|
+
*,
|
|
75
|
+
key: builtins.str = ...,
|
|
76
|
+
value: builtins.str = ...,
|
|
77
|
+
) -> None: ...
|
|
78
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
79
|
+
|
|
80
|
+
ID_FIELD_NUMBER: builtins.int
|
|
81
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
82
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
83
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
84
|
+
CHECKSUM_FIELD_NUMBER: builtins.int
|
|
85
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
86
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
87
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
88
|
+
id: builtins.str
|
|
89
|
+
"""ID of the image."""
|
|
90
|
+
folder_id: builtins.str
|
|
91
|
+
"""ID of the folder that the image belongs to."""
|
|
92
|
+
name: builtins.str
|
|
93
|
+
"""Name of the image.
|
|
94
|
+
The name is unique within the folder.
|
|
95
|
+
"""
|
|
96
|
+
description: builtins.str
|
|
97
|
+
"""Description of the image."""
|
|
98
|
+
checksum: builtins.str
|
|
99
|
+
"""MD5 checksum of the image."""
|
|
100
|
+
status: global___Image.Status.ValueType
|
|
101
|
+
"""Status of the image."""
|
|
102
|
+
@property
|
|
103
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
104
|
+
"""Creation timestamp."""
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
108
|
+
"""Resource labels as `key:value` pairs."""
|
|
109
|
+
|
|
110
|
+
def __init__(
|
|
111
|
+
self,
|
|
112
|
+
*,
|
|
113
|
+
id: builtins.str = ...,
|
|
114
|
+
folder_id: builtins.str = ...,
|
|
115
|
+
name: builtins.str = ...,
|
|
116
|
+
description: builtins.str = ...,
|
|
117
|
+
checksum: builtins.str = ...,
|
|
118
|
+
status: global___Image.Status.ValueType = ...,
|
|
119
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
120
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
121
|
+
) -> None: ...
|
|
122
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at"]) -> builtins.bool: ...
|
|
123
|
+
def ClearField(self, field_name: typing.Literal["checksum", b"checksum", "created_at", b"created_at", "description", b"description", "folder_id", b"folder_id", "id", b"id", "labels", b"labels", "name", b"name", "status", b"status"]) -> None: ...
|
|
124
|
+
|
|
125
|
+
global___Image = Image
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ f' but the generated code in yandex/cloud/baremetal/v1alpha/image_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|