yandexcloud 0.354.0__py3-none-any.whl → 0.355.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 +58 -30
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +178 -3
- yandex/cloud/airflow/v1/cluster_pb2.py +12 -8
- yandex/cloud/airflow/v1/cluster_pb2.pyi +4 -0
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.py +32 -32
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.pyi +5 -1
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.py +6 -6
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.pyi +5 -1
- yandex/cloud/backup/v1/resource_pb2.py +2 -2
- yandex/cloud/backup/v1/resource_pb2.pyi +8 -0
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2.py +12 -8
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2.pyi +16 -2
- yandex/cloud/compute/v1/maintenance_service_pb2.py +47 -0
- yandex/cloud/compute/v1/maintenance_service_pb2.pyi +8 -0
- yandex/cloud/compute/v1/maintenance_service_pb2_grpc.py +190 -0
- yandex/cloud/compute/v1/maintenance_service_pb2_grpc.pyi +91 -0
- yandex/cloud/compute/v1/reserved_instance_pool_pb2.py +8 -4
- yandex/cloud/compute/v1/reserved_instance_pool_pb2.pyi +69 -2
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.py +44 -20
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2.pyi +138 -2
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.py +88 -0
- yandex/cloud/compute/v1/reserved_instance_pool_service_pb2_grpc.pyi +40 -0
- yandex/cloud/datatransfer/v1/endpoint_service_pb2.pyi +2 -4
- yandex/cloud/datatransfer/v1/endpoint_service_pb2_grpc.py +3 -6
- yandex/cloud/datatransfer/v1/endpoint_service_pb2_grpc.pyi +3 -9
- yandex/cloud/datatransfer/v1/transfer_service_pb2.pyi +2 -4
- yandex/cloud/datatransfer/v1/transfer_service_pb2_grpc.py +6 -3
- yandex/cloud/datatransfer/v1/transfer_service_pb2_grpc.pyi +6 -0
- yandex/cloud/iam/v1/oauth_client_pb2.py +39 -0
- yandex/cloud/iam/v1/oauth_client_pb2.pyi +85 -0
- yandex/cloud/iam/v1/oauth_client_pb2_grpc.py +24 -0
- yandex/cloud/iam/v1/oauth_client_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2.py +38 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2.pyi +49 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2_grpc.py +24 -0
- yandex/cloud/iam/v1/oauth_client_secret_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2.py +80 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2.pyi +188 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2_grpc.py +237 -0
- yandex/cloud/iam/v1/oauth_client_secret_service_pb2_grpc.pyi +121 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2.py +99 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2.pyi +257 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2_grpc.py +281 -0
- yandex/cloud/iam/v1/oauth_client_service_pb2_grpc.pyi +141 -0
- yandex/cloud/iot/broker/v1/broker_service_pb2.py +50 -50
- yandex/cloud/iot/devices/v1/device_service_pb2.py +61 -61
- yandex/cloud/iot/devices/v1/registry_service_pb2.py +82 -82
- yandex/cloud/maintenance/__init__.py +0 -0
- yandex/cloud/maintenance/v2/__init__.py +0 -0
- yandex/cloud/maintenance/v2/common_pb2.py +73 -0
- yandex/cloud/maintenance/v2/common_pb2.pyi +324 -0
- yandex/cloud/maintenance/v2/common_pb2_grpc.py +24 -0
- yandex/cloud/maintenance/v2/common_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.py +190 -150
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.pyi +1712 -1025
- yandex/cloud/mdb/clickhouse/v1/user_pb2.py +98 -86
- yandex/cloud/mdb/clickhouse/v1/user_pb2.pyi +1248 -792
- yandex/cloud/mdb/opensearch/v1/backup_pb2.py +14 -14
- yandex/cloud/mdb/opensearch/v1/backup_pb2.pyi +13 -1
- yandex/cloud/metastore/v1/cluster_pb2.py +18 -16
- yandex/cloud/metastore/v1/cluster_pb2.pyi +31 -1
- yandex/cloud/searchapi/v2/gen_search_service_pb2.py +10 -10
- yandex/cloud/searchapi/v2/gen_search_service_pb2.pyi +7 -1
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.py +50 -18
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_pb2.pyi +241 -2
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.py +18 -18
- yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service_pb2.pyi +22 -2
- yandex/cloud/trino/v1/cluster_service_pb2.py +36 -36
- yandex/cloud/trino/v1/cluster_service_pb2.pyi +14 -2
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.355.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.355.0.dist-info}/RECORD +76 -50
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.355.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.355.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.355.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.354.0.dist-info → yandexcloud-0.355.0.dist-info}/top_level.txt +0 -0
|
@@ -441,6 +441,7 @@ class UpdateRouteRequest(google.protobuf.message.Message):
|
|
|
441
441
|
HTTP_FIELD_NUMBER: builtins.int
|
|
442
442
|
GRPC_FIELD_NUMBER: builtins.int
|
|
443
443
|
ROUTE_OPTIONS_FIELD_NUMBER: builtins.int
|
|
444
|
+
DISABLE_SECURITY_PROFILE_FIELD_NUMBER: builtins.int
|
|
444
445
|
http_router_id: builtins.str
|
|
445
446
|
"""ID of the HTTP router to update a route in.
|
|
446
447
|
|
|
@@ -456,6 +457,8 @@ class UpdateRouteRequest(google.protobuf.message.Message):
|
|
|
456
457
|
|
|
457
458
|
To get the route name, make a [VirtualHostService.Get] request.
|
|
458
459
|
"""
|
|
460
|
+
disable_security_profile: builtins.bool
|
|
461
|
+
"""Whether set to 'true' disable security profile for the route."""
|
|
459
462
|
@property
|
|
460
463
|
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
461
464
|
"""Field mask that specifies which attributes of the route should be updated."""
|
|
@@ -482,9 +485,10 @@ class UpdateRouteRequest(google.protobuf.message.Message):
|
|
|
482
485
|
http: yandex.cloud.apploadbalancer.v1.virtual_host_pb2.HttpRoute | None = ...,
|
|
483
486
|
grpc: yandex.cloud.apploadbalancer.v1.virtual_host_pb2.GrpcRoute | None = ...,
|
|
484
487
|
route_options: yandex.cloud.apploadbalancer.v1.virtual_host_pb2.RouteOptions | None = ...,
|
|
488
|
+
disable_security_profile: builtins.bool = ...,
|
|
485
489
|
) -> None: ...
|
|
486
490
|
def HasField(self, field_name: typing.Literal["grpc", b"grpc", "http", b"http", "route", b"route", "route_options", b"route_options", "update_mask", b"update_mask"]) -> builtins.bool: ...
|
|
487
|
-
def ClearField(self, field_name: typing.Literal["grpc", b"grpc", "http", b"http", "http_router_id", b"http_router_id", "route", b"route", "route_name", b"route_name", "route_options", b"route_options", "update_mask", b"update_mask", "virtual_host_name", b"virtual_host_name"]) -> None: ...
|
|
491
|
+
def ClearField(self, field_name: typing.Literal["disable_security_profile", b"disable_security_profile", "grpc", b"grpc", "http", b"http", "http_router_id", b"http_router_id", "route", b"route", "route_name", b"route_name", "route_options", b"route_options", "update_mask", b"update_mask", "virtual_host_name", b"virtual_host_name"]) -> None: ...
|
|
488
492
|
def WhichOneof(self, oneof_group: typing.Literal["route", b"route"]) -> typing.Literal["http", "grpc"] | None: ...
|
|
489
493
|
|
|
490
494
|
global___UpdateRouteRequest = UpdateRouteRequest
|
|
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%yandex/cloud/backup/v1/resource.proto\x12\x16yandex.cloud.backup.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"L\n\nTenantInfo\x12\x11\n\tfolder_id\x18\x01 \x01(\t\x12\x1a\n\x12personal_tenant_id\x18\x02 \x01(\t\x12\x0f\n\x07user_id\x18\x03 \x01(\t\"P\n\tAgentInfo\x12\x17\n\x0f\x63urrent_version\x18\x01 \x01(\t\x12\x16\n\x0elatest_version\x18\x02 \x01(\t\x12\x12\n\ncan_update\x18\x03 \x01(\x08\"\xf7\x06\n\x08Resource\x12\x1b\n\x13\x63ompute_instance_id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06online\x18\x04 \x01(\x08\x12\x0f\n\x07\x65nabled\x18\x05 \x01(\x08\x12\x37\n\x06status\x18\x06 \x01(\x0e\x32\'.yandex.cloud.backup.v1.Resource.Status\x12\x16\n\x0estatus_details\x18\x07 \x01(\t\x12\x17\n\x0fstatus_progress\x18\x08 \x01(\x03\x12\x34\n\x10last_backup_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10next_backup_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bresource_id\x18\x0b \x01(\t\x12\x11\n\tis_active\x18\x0c \x01(\x08\x12@\n\x0binit_status\x18\r \x01(\x0e\x32+.yandex.cloud.backup.v1.Resource.InitStatus\x12\x10\n\x08metadata\x18\x0e \x01(\t\x12\x32\n\x04type\x18\x0f \x01(\x0e\x32$.yandex.cloud.backup.v1.ResourceType\x12\x37\n\x0btenant_info\x18\x10 \x01(\x0b\x32\".yandex.cloud.backup.v1.TenantInfo\x12\x35\n\nagent_info\x18\x12 \x01(\x0b\x32!.yandex.cloud.backup.v1.AgentInfo\"`\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x08\n\x04IDLE\x10\x01\x12\r\n\tBACKUPING\x10\x02\x12\x0e\n\nRECOVERING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\t\n\x05OTHER\x10\x05\"o\n\nInitStatus\x12\x1b\n\x17INIT_STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bREGISTERING\x10\x01\x12\r\n\tREGISTRED\x10\x02\x12\x17\n\x13\x46\x41ILED_REGISTRATION\x10\x03\x12\x0b\n\x07\x44\x45LETED\x10\x04J\x04\x08\x11\x10\x12\"*\n\x08Progress\x12\x0f\n\x07\x63urrent\x18\x01 \x01(\x03\x12\r\n\x05total\x18\x02 \x01(\x03\"\xb7\x06\n\x04Task\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x13\n\x0b\x63\x61ncellable\x18\x02 \x01(\x08\x12\x11\n\tpolicy_id\x18\x03 \x01(\t\x12/\n\x04type\x18\x04 \x01(\x0e\x32!.yandex.cloud.backup.v1.Task.Type\x12\x32\n\x08progress\x18\x05 \x01(\x0b\x32 .yandex.cloud.backup.v1.Progress\x12\x33\n\x06status\x18\x06 \x01(\x0e\x32#.yandex.cloud.backup.v1.Task.Status\x12/\n\x0b\x65nqueued_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstarted_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0c\x63ompleted_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1b\n\x13\x63ompute_instance_id\x18\x0b \x01(\t\x12\x36\n\x0bresult_code\x18\x0c \x01(\x0e\x32!.yandex.cloud.backup.v1.Task.Code\x12\r\n\x05\x65rror\x18\r \x01(\t\"j\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x12\r\n\tRETENTION\x10\x02\x12\x0c\n\x08RECOVERY\x10\x03\x12\x10\n\x0c\x41PPLY_POLICY\x10\x04\x12\x11\n\rREVOKE_POLICY\x10\x05\"d\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NQUEUED\x10\x01\x12\x0c\n\x08\x41SSIGNED\x10\x02\x12\x0b\n\x07STARTED\x10\x03\x12\n\n\x06PAUSED\x10\x04\x12\r\n\tCOMPLETED\x10\x05\"h\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x06\n\x02OK\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\x0b\n\x07WARNING\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\r\n\tABANDONED\x10\x05\x12\x0c\n\x08TIMEDOUT\x10\x06*
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%yandex/cloud/backup/v1/resource.proto\x12\x16yandex.cloud.backup.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"L\n\nTenantInfo\x12\x11\n\tfolder_id\x18\x01 \x01(\t\x12\x1a\n\x12personal_tenant_id\x18\x02 \x01(\t\x12\x0f\n\x07user_id\x18\x03 \x01(\t\"P\n\tAgentInfo\x12\x17\n\x0f\x63urrent_version\x18\x01 \x01(\t\x12\x16\n\x0elatest_version\x18\x02 \x01(\t\x12\x12\n\ncan_update\x18\x03 \x01(\x08\"\xf7\x06\n\x08Resource\x12\x1b\n\x13\x63ompute_instance_id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06online\x18\x04 \x01(\x08\x12\x0f\n\x07\x65nabled\x18\x05 \x01(\x08\x12\x37\n\x06status\x18\x06 \x01(\x0e\x32\'.yandex.cloud.backup.v1.Resource.Status\x12\x16\n\x0estatus_details\x18\x07 \x01(\t\x12\x17\n\x0fstatus_progress\x18\x08 \x01(\x03\x12\x34\n\x10last_backup_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10next_backup_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bresource_id\x18\x0b \x01(\t\x12\x11\n\tis_active\x18\x0c \x01(\x08\x12@\n\x0binit_status\x18\r \x01(\x0e\x32+.yandex.cloud.backup.v1.Resource.InitStatus\x12\x10\n\x08metadata\x18\x0e \x01(\t\x12\x32\n\x04type\x18\x0f \x01(\x0e\x32$.yandex.cloud.backup.v1.ResourceType\x12\x37\n\x0btenant_info\x18\x10 \x01(\x0b\x32\".yandex.cloud.backup.v1.TenantInfo\x12\x35\n\nagent_info\x18\x12 \x01(\x0b\x32!.yandex.cloud.backup.v1.AgentInfo\"`\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x08\n\x04IDLE\x10\x01\x12\r\n\tBACKUPING\x10\x02\x12\x0e\n\nRECOVERING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\t\n\x05OTHER\x10\x05\"o\n\nInitStatus\x12\x1b\n\x17INIT_STATUS_UNSPECIFIED\x10\x00\x12\x0f\n\x0bREGISTERING\x10\x01\x12\r\n\tREGISTRED\x10\x02\x12\x17\n\x13\x46\x41ILED_REGISTRATION\x10\x03\x12\x0b\n\x07\x44\x45LETED\x10\x04J\x04\x08\x11\x10\x12\"*\n\x08Progress\x12\x0f\n\x07\x63urrent\x18\x01 \x01(\x03\x12\r\n\x05total\x18\x02 \x01(\x03\"\xb7\x06\n\x04Task\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x13\n\x0b\x63\x61ncellable\x18\x02 \x01(\x08\x12\x11\n\tpolicy_id\x18\x03 \x01(\t\x12/\n\x04type\x18\x04 \x01(\x0e\x32!.yandex.cloud.backup.v1.Task.Type\x12\x32\n\x08progress\x18\x05 \x01(\x0b\x32 .yandex.cloud.backup.v1.Progress\x12\x33\n\x06status\x18\x06 \x01(\x0e\x32#.yandex.cloud.backup.v1.Task.Status\x12/\n\x0b\x65nqueued_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstarted_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0c\x63ompleted_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1b\n\x13\x63ompute_instance_id\x18\x0b \x01(\t\x12\x36\n\x0bresult_code\x18\x0c \x01(\x0e\x32!.yandex.cloud.backup.v1.Task.Code\x12\r\n\x05\x65rror\x18\r \x01(\t\"j\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x12\r\n\tRETENTION\x10\x02\x12\x0c\n\x08RECOVERY\x10\x03\x12\x10\n\x0c\x41PPLY_POLICY\x10\x04\x12\x11\n\rREVOKE_POLICY\x10\x05\"d\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NQUEUED\x10\x01\x12\x0c\n\x08\x41SSIGNED\x10\x02\x12\x0b\n\x07STARTED\x10\x03\x12\n\n\x06PAUSED\x10\x04\x12\r\n\tCOMPLETED\x10\x05\"h\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x06\n\x02OK\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\x0b\n\x07WARNING\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\r\n\tABANDONED\x10\x05\x12\x0c\n\x08TIMEDOUT\x10\x06*i\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43OMPUTE\x10\x01\x12\x07\n\x03\x42MS\x10\x02\x12\x0f\n\x0b\x45XTERNAL_VM\x10\x03\x12\x13\n\x0f\x45XTERNAL_SERVER\x10\x04\x42_\n\x1ayandex.cloud.api.backup.v1ZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/backup/v1;backupb\x06proto3')
|
|
29
29
|
|
|
30
30
|
_globals = globals()
|
|
31
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -34,7 +34,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
34
34
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
35
|
_globals['DESCRIPTOR']._serialized_options = b'\n\032yandex.cloud.api.backup.v1ZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/backup/v1;backup'
|
|
36
36
|
_globals['_RESOURCETYPE']._serialized_start=2018
|
|
37
|
-
_globals['_RESOURCETYPE']._serialized_end=
|
|
37
|
+
_globals['_RESOURCETYPE']._serialized_end=2123
|
|
38
38
|
_globals['_TENANTINFO']._serialized_start=98
|
|
39
39
|
_globals['_TENANTINFO']._serialized_end=174
|
|
40
40
|
_globals['_AGENTINFO']._serialized_start=176
|
|
@@ -29,6 +29,10 @@ class _ResourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._E
|
|
|
29
29
|
"""Resource is Compute Cloud VM"""
|
|
30
30
|
BMS: _ResourceType.ValueType # 2
|
|
31
31
|
"""Resource is baremetal server"""
|
|
32
|
+
EXTERNAL_VM: _ResourceType.ValueType # 3
|
|
33
|
+
"""Resource is VM"""
|
|
34
|
+
EXTERNAL_SERVER: _ResourceType.ValueType # 4
|
|
35
|
+
"""Resource is server"""
|
|
32
36
|
|
|
33
37
|
class ResourceType(_ResourceType, metaclass=_ResourceTypeEnumTypeWrapper): ...
|
|
34
38
|
|
|
@@ -37,6 +41,10 @@ COMPUTE: ResourceType.ValueType # 1
|
|
|
37
41
|
"""Resource is Compute Cloud VM"""
|
|
38
42
|
BMS: ResourceType.ValueType # 2
|
|
39
43
|
"""Resource is baremetal server"""
|
|
44
|
+
EXTERNAL_VM: ResourceType.ValueType # 3
|
|
45
|
+
"""Resource is VM"""
|
|
46
|
+
EXTERNAL_SERVER: ResourceType.ValueType # 4
|
|
47
|
+
"""Resource is server"""
|
|
40
48
|
global___ResourceType = ResourceType
|
|
41
49
|
|
|
42
50
|
@typing.final
|
|
@@ -26,7 +26,7 @@ from yandex.cloud.baremetal.v1alpha import configuration_pb2 as yandex_dot_cloud
|
|
|
26
26
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n:yandex/cloud/baremetal/v1alpha/configuration_service.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a\x32yandex/cloud/baremetal/v1alpha/configuration.proto\x1a\x1dyandex/cloud/validation.proto\"
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n:yandex/cloud/baremetal/v1alpha/configuration_service.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a\x32yandex/cloud/baremetal/v1alpha/configuration.proto\x1a\x1dyandex/cloud/validation.proto\"~\n\x17GetConfigurationRequest\x12\x32\n\x10\x63onfiguration_id\x18\x01 \x01(\tB\x18\xf2\xc7\x31\x0e[a-z][a-z0-9]*\x8a\xc8\x31\x02\x32\x30\x12/\n\tfolder_id\x18\x02 \x01(\tB\x1c\xf2\xc7\x31\x10[a-z][a-z0-9.-]*\x8a\xc8\x31\x04<=50\"\xa6\x01\n\x19ListConfigurationsRequest\x12\x1c\n\tpage_size\x18\x64 \x01(\x03\x42\t\xfa\xc7\x31\x05<=100\x12\x12\n\npage_token\x18\x65 \x01(\t\x12\x10\n\x08order_by\x18\x66 \x01(\t\x12\x0e\n\x06\x66ilter\x18g \x01(\t\x12/\n\tfolder_id\x18h \x01(\tB\x1c\xf2\xc7\x31\x10[a-z][a-z0-9.-]*\x8a\xc8\x31\x04<=50J\x04\x08\x01\x10\x64\"\x82\x01\n\x1aListConfigurationsResponse\x12\x45\n\x0e\x63onfigurations\x18\x01 \x03(\x0b\x32-.yandex.cloud.baremetal.v1alpha.Configuration\x12\x17\n\x0fnext_page_token\x18\x64 \x01(\tJ\x04\x08\x02\x10\x64\x32\x88\x02\n\x14\x43onfigurationService\x12o\n\x03Get\x12\x37.yandex.cloud.baremetal.v1alpha.GetConfigurationRequest\x1a-.yandex.cloud.baremetal.v1alpha.Configuration\"\x00\x12\x7f\n\x04List\x12\x39.yandex.cloud.baremetal.v1alpha.ListConfigurationsRequest\x1a:.yandex.cloud.baremetal.v1alpha.ListConfigurationsResponse\"\x00\x42r\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3')
|
|
30
30
|
|
|
31
31
|
_globals = globals()
|
|
32
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -36,14 +36,18 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
36
36
|
_globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetal'
|
|
37
37
|
_globals['_GETCONFIGURATIONREQUEST'].fields_by_name['configuration_id']._loaded_options = None
|
|
38
38
|
_globals['_GETCONFIGURATIONREQUEST'].fields_by_name['configuration_id']._serialized_options = b'\362\3071\016[a-z][a-z0-9]*\212\3101\00220'
|
|
39
|
+
_globals['_GETCONFIGURATIONREQUEST'].fields_by_name['folder_id']._loaded_options = None
|
|
40
|
+
_globals['_GETCONFIGURATIONREQUEST'].fields_by_name['folder_id']._serialized_options = b'\362\3071\020[a-z][a-z0-9.-]*\212\3101\004<=50'
|
|
39
41
|
_globals['_LISTCONFIGURATIONSREQUEST'].fields_by_name['page_size']._loaded_options = None
|
|
40
42
|
_globals['_LISTCONFIGURATIONSREQUEST'].fields_by_name['page_size']._serialized_options = b'\372\3071\005<=100'
|
|
43
|
+
_globals['_LISTCONFIGURATIONSREQUEST'].fields_by_name['folder_id']._loaded_options = None
|
|
44
|
+
_globals['_LISTCONFIGURATIONSREQUEST'].fields_by_name['folder_id']._serialized_options = b'\362\3071\020[a-z][a-z0-9.-]*\212\3101\004<=50'
|
|
41
45
|
_globals['_GETCONFIGURATIONREQUEST']._serialized_start=177
|
|
42
|
-
_globals['_GETCONFIGURATIONREQUEST']._serialized_end=
|
|
43
|
-
_globals['_LISTCONFIGURATIONSREQUEST']._serialized_start=
|
|
44
|
-
_globals['_LISTCONFIGURATIONSREQUEST']._serialized_end=
|
|
45
|
-
_globals['_LISTCONFIGURATIONSRESPONSE']._serialized_start=
|
|
46
|
-
_globals['_LISTCONFIGURATIONSRESPONSE']._serialized_end=
|
|
47
|
-
_globals['_CONFIGURATIONSERVICE']._serialized_start=
|
|
48
|
-
_globals['_CONFIGURATIONSERVICE']._serialized_end=
|
|
46
|
+
_globals['_GETCONFIGURATIONREQUEST']._serialized_end=303
|
|
47
|
+
_globals['_LISTCONFIGURATIONSREQUEST']._serialized_start=306
|
|
48
|
+
_globals['_LISTCONFIGURATIONSREQUEST']._serialized_end=472
|
|
49
|
+
_globals['_LISTCONFIGURATIONSRESPONSE']._serialized_start=475
|
|
50
|
+
_globals['_LISTCONFIGURATIONSRESPONSE']._serialized_end=605
|
|
51
|
+
_globals['_CONFIGURATIONSERVICE']._serialized_start=608
|
|
52
|
+
_globals['_CONFIGURATIONSERVICE']._serialized_end=872
|
|
49
53
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -18,17 +18,24 @@ class GetConfigurationRequest(google.protobuf.message.Message):
|
|
|
18
18
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
19
|
|
|
20
20
|
CONFIGURATION_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
21
22
|
configuration_id: builtins.str
|
|
22
23
|
"""ID of the Configuration resource to return.
|
|
23
24
|
|
|
24
25
|
To get the configuration ID, use a [ConfigurationService.List] request.
|
|
25
26
|
"""
|
|
27
|
+
folder_id: builtins.str
|
|
28
|
+
"""ID of the folder to return a Configuration resource for.
|
|
29
|
+
|
|
30
|
+
To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
|
|
31
|
+
"""
|
|
26
32
|
def __init__(
|
|
27
33
|
self,
|
|
28
34
|
*,
|
|
29
35
|
configuration_id: builtins.str = ...,
|
|
36
|
+
folder_id: builtins.str = ...,
|
|
30
37
|
) -> None: ...
|
|
31
|
-
def ClearField(self, field_name: typing.Literal["configuration_id", b"configuration_id"]) -> None: ...
|
|
38
|
+
def ClearField(self, field_name: typing.Literal["configuration_id", b"configuration_id", "folder_id", b"folder_id"]) -> None: ...
|
|
32
39
|
|
|
33
40
|
global___GetConfigurationRequest = GetConfigurationRequest
|
|
34
41
|
|
|
@@ -40,6 +47,7 @@ class ListConfigurationsRequest(google.protobuf.message.Message):
|
|
|
40
47
|
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
41
48
|
ORDER_BY_FIELD_NUMBER: builtins.int
|
|
42
49
|
FILTER_FIELD_NUMBER: builtins.int
|
|
50
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
43
51
|
page_size: builtins.int
|
|
44
52
|
"""The maximum number of results per page to return. If the number of available
|
|
45
53
|
results is greater than `page_size`,
|
|
@@ -71,6 +79,11 @@ class ListConfigurationsRequest(google.protobuf.message.Message):
|
|
|
71
79
|
Supported fields: ["id", "name"].
|
|
72
80
|
Both snake_case and camelCase are supported for fields.
|
|
73
81
|
"""
|
|
82
|
+
folder_id: builtins.str
|
|
83
|
+
"""ID of the folder to return a Configuration resource for.
|
|
84
|
+
|
|
85
|
+
To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
|
|
86
|
+
"""
|
|
74
87
|
def __init__(
|
|
75
88
|
self,
|
|
76
89
|
*,
|
|
@@ -78,8 +91,9 @@ class ListConfigurationsRequest(google.protobuf.message.Message):
|
|
|
78
91
|
page_token: builtins.str = ...,
|
|
79
92
|
order_by: builtins.str = ...,
|
|
80
93
|
filter: builtins.str = ...,
|
|
94
|
+
folder_id: builtins.str = ...,
|
|
81
95
|
) -> None: ...
|
|
82
|
-
def ClearField(self, field_name: typing.Literal["filter", b"filter", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
96
|
+
def ClearField(self, field_name: typing.Literal["filter", b"filter", "folder_id", b"folder_id", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
83
97
|
|
|
84
98
|
global___ListConfigurationsRequest = ListConfigurationsRequest
|
|
85
99
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/compute/v1/maintenance_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/compute/v1/maintenance_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
26
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
27
|
+
from yandex.cloud.maintenance.v2 import common_pb2 as yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2
|
|
28
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1yandex/cloud/compute/v1/maintenance_service.proto\x12\x17yandex.cloud.compute.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a(yandex/cloud/maintenance/v2/common.proto\x1a&yandex/cloud/operation/operation.proto2\xa0\x04\n\x12MaintenanceService\x12\x95\x01\n\x04List\x12\x34.yandex.cloud.maintenance.v2.ListMaintenancesRequest\x1a\x35.yandex.cloud.maintenance.v2.ListMaintenancesResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/compute/v1/maintenances\x12\x96\x01\n\x03Get\x12\x32.yandex.cloud.maintenance.v2.GetMaintenanceRequest\x1a(.yandex.cloud.maintenance.v2.Maintenance\"1\x82\xd3\xe4\x93\x02+\x12)/compute/v1/maintenances/{maintenance_id}\x12\xd8\x01\n\nReschedule\x12\x39.yandex.cloud.maintenance.v2.RescheduleMaintenanceRequest\x1a!.yandex.cloud.operation.Operation\"l\xb2\xd2*)\x12\'yandex.cloud.maintenance.v2.Maintenance\x82\xd3\xe4\x93\x02\x39\"4/compute/v1/maintenances/{maintenance_id}:reschedule:\x01*B{\n\x1byandex.cloud.api.compute.v1B\x17MaintenanceServiceProtoZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3')
|
|
32
|
+
|
|
33
|
+
_globals = globals()
|
|
34
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.compute.v1.maintenance_service_pb2', _globals)
|
|
36
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\033yandex.cloud.api.compute.v1B\027MaintenanceServiceProtoZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;compute'
|
|
39
|
+
_globals['_MAINTENANCESERVICE'].methods_by_name['List']._loaded_options = None
|
|
40
|
+
_globals['_MAINTENANCESERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\032\022\030/compute/v1/maintenances'
|
|
41
|
+
_globals['_MAINTENANCESERVICE'].methods_by_name['Get']._loaded_options = None
|
|
42
|
+
_globals['_MAINTENANCESERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002+\022)/compute/v1/maintenances/{maintenance_id}'
|
|
43
|
+
_globals['_MAINTENANCESERVICE'].methods_by_name['Reschedule']._loaded_options = None
|
|
44
|
+
_globals['_MAINTENANCESERVICE'].methods_by_name['Reschedule']._serialized_options = b'\262\322*)\022\'yandex.cloud.maintenance.v2.Maintenance\202\323\344\223\0029\"4/compute/v1/maintenances/{maintenance_id}:reschedule:\001*'
|
|
45
|
+
_globals['_MAINTENANCESERVICE']._serialized_start=225
|
|
46
|
+
_globals['_MAINTENANCESERVICE']._serialized_end=769
|
|
47
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,190 @@
|
|
|
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.maintenance.v2 import common_pb2 as yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2
|
|
7
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__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/compute/v1/maintenance_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 MaintenanceServiceStub(object):
|
|
30
|
+
"""A set of methods for managing maintenances in a service.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, channel):
|
|
34
|
+
"""Constructor.
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
channel: A grpc.Channel.
|
|
38
|
+
"""
|
|
39
|
+
self.List = channel.unary_unary(
|
|
40
|
+
'/yandex.cloud.compute.v1.MaintenanceService/List',
|
|
41
|
+
request_serializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.ListMaintenancesRequest.SerializeToString,
|
|
42
|
+
response_deserializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.ListMaintenancesResponse.FromString,
|
|
43
|
+
_registered_method=True)
|
|
44
|
+
self.Get = channel.unary_unary(
|
|
45
|
+
'/yandex.cloud.compute.v1.MaintenanceService/Get',
|
|
46
|
+
request_serializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.GetMaintenanceRequest.SerializeToString,
|
|
47
|
+
response_deserializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.Maintenance.FromString,
|
|
48
|
+
_registered_method=True)
|
|
49
|
+
self.Reschedule = channel.unary_unary(
|
|
50
|
+
'/yandex.cloud.compute.v1.MaintenanceService/Reschedule',
|
|
51
|
+
request_serializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.RescheduleMaintenanceRequest.SerializeToString,
|
|
52
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
53
|
+
_registered_method=True)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class MaintenanceServiceServicer(object):
|
|
57
|
+
"""A set of methods for managing maintenances in a service.
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
def List(self, request, context):
|
|
61
|
+
"""Lists maintenances by conditions, specified in request.
|
|
62
|
+
"""
|
|
63
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
64
|
+
context.set_details('Method not implemented!')
|
|
65
|
+
raise NotImplementedError('Method not implemented!')
|
|
66
|
+
|
|
67
|
+
def Get(self, request, context):
|
|
68
|
+
"""Retrieves the specific Maintenance by ID.
|
|
69
|
+
"""
|
|
70
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
71
|
+
context.set_details('Method not implemented!')
|
|
72
|
+
raise NotImplementedError('Method not implemented!')
|
|
73
|
+
|
|
74
|
+
def Reschedule(self, request, context):
|
|
75
|
+
"""Allows user to reschedule Maintenance to another date and time.
|
|
76
|
+
"""
|
|
77
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
78
|
+
context.set_details('Method not implemented!')
|
|
79
|
+
raise NotImplementedError('Method not implemented!')
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def add_MaintenanceServiceServicer_to_server(servicer, server):
|
|
83
|
+
rpc_method_handlers = {
|
|
84
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
85
|
+
servicer.List,
|
|
86
|
+
request_deserializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.ListMaintenancesRequest.FromString,
|
|
87
|
+
response_serializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.ListMaintenancesResponse.SerializeToString,
|
|
88
|
+
),
|
|
89
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
90
|
+
servicer.Get,
|
|
91
|
+
request_deserializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.GetMaintenanceRequest.FromString,
|
|
92
|
+
response_serializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.Maintenance.SerializeToString,
|
|
93
|
+
),
|
|
94
|
+
'Reschedule': grpc.unary_unary_rpc_method_handler(
|
|
95
|
+
servicer.Reschedule,
|
|
96
|
+
request_deserializer=yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.RescheduleMaintenanceRequest.FromString,
|
|
97
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
98
|
+
),
|
|
99
|
+
}
|
|
100
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
101
|
+
'yandex.cloud.compute.v1.MaintenanceService', rpc_method_handlers)
|
|
102
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
103
|
+
server.add_registered_method_handlers('yandex.cloud.compute.v1.MaintenanceService', rpc_method_handlers)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
# This class is part of an EXPERIMENTAL API.
|
|
107
|
+
class MaintenanceService(object):
|
|
108
|
+
"""A set of methods for managing maintenances in a service.
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
@staticmethod
|
|
112
|
+
def List(request,
|
|
113
|
+
target,
|
|
114
|
+
options=(),
|
|
115
|
+
channel_credentials=None,
|
|
116
|
+
call_credentials=None,
|
|
117
|
+
insecure=False,
|
|
118
|
+
compression=None,
|
|
119
|
+
wait_for_ready=None,
|
|
120
|
+
timeout=None,
|
|
121
|
+
metadata=None):
|
|
122
|
+
return grpc.experimental.unary_unary(
|
|
123
|
+
request,
|
|
124
|
+
target,
|
|
125
|
+
'/yandex.cloud.compute.v1.MaintenanceService/List',
|
|
126
|
+
yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.ListMaintenancesRequest.SerializeToString,
|
|
127
|
+
yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.ListMaintenancesResponse.FromString,
|
|
128
|
+
options,
|
|
129
|
+
channel_credentials,
|
|
130
|
+
insecure,
|
|
131
|
+
call_credentials,
|
|
132
|
+
compression,
|
|
133
|
+
wait_for_ready,
|
|
134
|
+
timeout,
|
|
135
|
+
metadata,
|
|
136
|
+
_registered_method=True)
|
|
137
|
+
|
|
138
|
+
@staticmethod
|
|
139
|
+
def Get(request,
|
|
140
|
+
target,
|
|
141
|
+
options=(),
|
|
142
|
+
channel_credentials=None,
|
|
143
|
+
call_credentials=None,
|
|
144
|
+
insecure=False,
|
|
145
|
+
compression=None,
|
|
146
|
+
wait_for_ready=None,
|
|
147
|
+
timeout=None,
|
|
148
|
+
metadata=None):
|
|
149
|
+
return grpc.experimental.unary_unary(
|
|
150
|
+
request,
|
|
151
|
+
target,
|
|
152
|
+
'/yandex.cloud.compute.v1.MaintenanceService/Get',
|
|
153
|
+
yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.GetMaintenanceRequest.SerializeToString,
|
|
154
|
+
yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.Maintenance.FromString,
|
|
155
|
+
options,
|
|
156
|
+
channel_credentials,
|
|
157
|
+
insecure,
|
|
158
|
+
call_credentials,
|
|
159
|
+
compression,
|
|
160
|
+
wait_for_ready,
|
|
161
|
+
timeout,
|
|
162
|
+
metadata,
|
|
163
|
+
_registered_method=True)
|
|
164
|
+
|
|
165
|
+
@staticmethod
|
|
166
|
+
def Reschedule(request,
|
|
167
|
+
target,
|
|
168
|
+
options=(),
|
|
169
|
+
channel_credentials=None,
|
|
170
|
+
call_credentials=None,
|
|
171
|
+
insecure=False,
|
|
172
|
+
compression=None,
|
|
173
|
+
wait_for_ready=None,
|
|
174
|
+
timeout=None,
|
|
175
|
+
metadata=None):
|
|
176
|
+
return grpc.experimental.unary_unary(
|
|
177
|
+
request,
|
|
178
|
+
target,
|
|
179
|
+
'/yandex.cloud.compute.v1.MaintenanceService/Reschedule',
|
|
180
|
+
yandex_dot_cloud_dot_maintenance_dot_v2_dot_common__pb2.RescheduleMaintenanceRequest.SerializeToString,
|
|
181
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
182
|
+
options,
|
|
183
|
+
channel_credentials,
|
|
184
|
+
insecure,
|
|
185
|
+
call_credentials,
|
|
186
|
+
compression,
|
|
187
|
+
wait_for_ready,
|
|
188
|
+
timeout,
|
|
189
|
+
metadata,
|
|
190
|
+
_registered_method=True)
|
|
@@ -0,0 +1,91 @@
|
|
|
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.maintenance.v2.common_pb2
|
|
12
|
+
import yandex.cloud.operation.operation_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 MaintenanceServiceStub:
|
|
22
|
+
"""A set of methods for managing maintenances in a service."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
25
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
26
|
+
yandex.cloud.maintenance.v2.common_pb2.ListMaintenancesRequest,
|
|
27
|
+
yandex.cloud.maintenance.v2.common_pb2.ListMaintenancesResponse,
|
|
28
|
+
]
|
|
29
|
+
"""Lists maintenances by conditions, specified in request."""
|
|
30
|
+
|
|
31
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
32
|
+
yandex.cloud.maintenance.v2.common_pb2.GetMaintenanceRequest,
|
|
33
|
+
yandex.cloud.maintenance.v2.common_pb2.Maintenance,
|
|
34
|
+
]
|
|
35
|
+
"""Retrieves the specific Maintenance by ID."""
|
|
36
|
+
|
|
37
|
+
Reschedule: grpc.UnaryUnaryMultiCallable[
|
|
38
|
+
yandex.cloud.maintenance.v2.common_pb2.RescheduleMaintenanceRequest,
|
|
39
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
40
|
+
]
|
|
41
|
+
"""Allows user to reschedule Maintenance to another date and time."""
|
|
42
|
+
|
|
43
|
+
class MaintenanceServiceAsyncStub:
|
|
44
|
+
"""A set of methods for managing maintenances in a service."""
|
|
45
|
+
|
|
46
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
47
|
+
yandex.cloud.maintenance.v2.common_pb2.ListMaintenancesRequest,
|
|
48
|
+
yandex.cloud.maintenance.v2.common_pb2.ListMaintenancesResponse,
|
|
49
|
+
]
|
|
50
|
+
"""Lists maintenances by conditions, specified in request."""
|
|
51
|
+
|
|
52
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
53
|
+
yandex.cloud.maintenance.v2.common_pb2.GetMaintenanceRequest,
|
|
54
|
+
yandex.cloud.maintenance.v2.common_pb2.Maintenance,
|
|
55
|
+
]
|
|
56
|
+
"""Retrieves the specific Maintenance by ID."""
|
|
57
|
+
|
|
58
|
+
Reschedule: grpc.aio.UnaryUnaryMultiCallable[
|
|
59
|
+
yandex.cloud.maintenance.v2.common_pb2.RescheduleMaintenanceRequest,
|
|
60
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
61
|
+
]
|
|
62
|
+
"""Allows user to reschedule Maintenance to another date and time."""
|
|
63
|
+
|
|
64
|
+
class MaintenanceServiceServicer(metaclass=abc.ABCMeta):
|
|
65
|
+
"""A set of methods for managing maintenances in a service."""
|
|
66
|
+
|
|
67
|
+
@abc.abstractmethod
|
|
68
|
+
def List(
|
|
69
|
+
self,
|
|
70
|
+
request: yandex.cloud.maintenance.v2.common_pb2.ListMaintenancesRequest,
|
|
71
|
+
context: _ServicerContext,
|
|
72
|
+
) -> typing.Union[yandex.cloud.maintenance.v2.common_pb2.ListMaintenancesResponse, collections.abc.Awaitable[yandex.cloud.maintenance.v2.common_pb2.ListMaintenancesResponse]]:
|
|
73
|
+
"""Lists maintenances by conditions, specified in request."""
|
|
74
|
+
|
|
75
|
+
@abc.abstractmethod
|
|
76
|
+
def Get(
|
|
77
|
+
self,
|
|
78
|
+
request: yandex.cloud.maintenance.v2.common_pb2.GetMaintenanceRequest,
|
|
79
|
+
context: _ServicerContext,
|
|
80
|
+
) -> typing.Union[yandex.cloud.maintenance.v2.common_pb2.Maintenance, collections.abc.Awaitable[yandex.cloud.maintenance.v2.common_pb2.Maintenance]]:
|
|
81
|
+
"""Retrieves the specific Maintenance by ID."""
|
|
82
|
+
|
|
83
|
+
@abc.abstractmethod
|
|
84
|
+
def Reschedule(
|
|
85
|
+
self,
|
|
86
|
+
request: yandex.cloud.maintenance.v2.common_pb2.RescheduleMaintenanceRequest,
|
|
87
|
+
context: _ServicerContext,
|
|
88
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
|
|
89
|
+
"""Allows user to reschedule Maintenance to another date and time."""
|
|
90
|
+
|
|
91
|
+
def add_MaintenanceServiceServicer_to_server(servicer: MaintenanceServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -28,7 +28,7 @@ from yandex.cloud.compute.v1 import instance_service_pb2 as yandex_dot_cloud_dot
|
|
|
28
28
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4yandex/cloud/compute/v1/reserved_instance_pool.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&yandex/cloud/compute/v1/instance.proto\x1a.yandex/cloud/compute/v1/instance_service.proto\x1a\x1dyandex/cloud/validation.proto\"+\n\nProductIDs\x12\x1d\n\x0bproduct_ids\x18\x01 \x03(\tB\x08\x8a\xc8\x31\x04<=50\"\xbb\x01\n\x0c\x42ootDiskSpec\x12\x1b\n\x07\x64isk_id\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1c\n\x08image_id\x18\x02 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1f\n\x0bsnapshot_id\x18\x03 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12:\n\x0bproduct_ids\x18\x04 \x01(\x0b\x32#.yandex.cloud.compute.v1.ProductIDsH\x00\x42\x13\n\x0b\x62oot_source\x12\x04\xc0\xc1\x31\x01\"\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4yandex/cloud/compute/v1/reserved_instance_pool.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&yandex/cloud/compute/v1/instance.proto\x1a.yandex/cloud/compute/v1/instance_service.proto\x1a\x1dyandex/cloud/validation.proto\"+\n\nProductIDs\x12\x1d\n\x0bproduct_ids\x18\x01 \x03(\tB\x08\x8a\xc8\x31\x04<=50\"\xbb\x01\n\x0c\x42ootDiskSpec\x12\x1b\n\x07\x64isk_id\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1c\n\x08image_id\x18\x02 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1f\n\x0bsnapshot_id\x18\x03 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12:\n\x0bproduct_ids\x18\x04 \x01(\x0b\x32#.yandex.cloud.compute.v1.ProductIDsH\x00\x42\x13\n\x0b\x62oot_source\x12\x04\xc0\xc1\x31\x01\"\xfa\x06\n\x14ReservedInstancePool\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07zone_id\x18\x02 \x01(\t\x12\x10\n\x08\x63loud_id\x18\x03 \x01(\t\x12\x11\n\tfolder_id\x18\x04 \x01(\t\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12I\n\x06labels\x18\x07 \x03(\x0b\x32\x39.yandex.cloud.compute.v1.ReservedInstancePool.LabelsEntry\x12.\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bplatform_id\x18\t \x01(\t\x12>\n\x0eresources_spec\x18\n \x01(\x0b\x32&.yandex.cloud.compute.v1.ResourcesSpec\x12:\n\x0cgpu_settings\x18\x0b \x01(\x0b\x32$.yandex.cloud.compute.v1.GpuSettings\x12\x13\n\x0bproduct_ids\x18\x0c \x03(\t\x12\x42\n\x10network_settings\x18\r \x01(\x0b\x32(.yandex.cloud.compute.v1.NetworkSettings\x12\x0c\n\x04size\x18\x0e \x01(\x03\x12\x16\n\x0e\x63ommitted_size\x18\x0f \x01(\x03\x12\x1e\n\x16\x61llow_oversubscription\x18\x10 \x01(\x08\x12K\n\nslot_stats\x18\x11 \x01(\x0b\x32\x37.yandex.cloud.compute.v1.ReservedInstancePool.SlotStats\x12S\n\x0einstance_stats\x18\x12 \x01(\x0b\x32;.yandex.cloud.compute.v1.ReservedInstancePool.InstanceStats\x1a\x61\n\tSlotStats\x12\r\n\x05total\x18\x01 \x01(\x03\x12\x0c\n\x04used\x18\x02 \x01(\x03\x12\x11\n\tavailable\x18\x03 \x01(\x03\x12\x13\n\x0bunavailable\x18\x04 \x01(\x03\x12\x0f\n\x07pending\x18\x05 \x01(\x03\x1a\x1e\n\rInstanceStats\x12\r\n\x05total\x18\x01 \x01(\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x62\n\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3')
|
|
32
32
|
|
|
33
33
|
_globals = globals()
|
|
34
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -53,7 +53,11 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
53
53
|
_globals['_BOOTDISKSPEC']._serialized_start=279
|
|
54
54
|
_globals['_BOOTDISKSPEC']._serialized_end=466
|
|
55
55
|
_globals['_RESERVEDINSTANCEPOOL']._serialized_start=469
|
|
56
|
-
_globals['_RESERVEDINSTANCEPOOL']._serialized_end=
|
|
57
|
-
_globals['
|
|
58
|
-
_globals['
|
|
56
|
+
_globals['_RESERVEDINSTANCEPOOL']._serialized_end=1359
|
|
57
|
+
_globals['_RESERVEDINSTANCEPOOL_SLOTSTATS']._serialized_start=1183
|
|
58
|
+
_globals['_RESERVEDINSTANCEPOOL_SLOTSTATS']._serialized_end=1280
|
|
59
|
+
_globals['_RESERVEDINSTANCEPOOL_INSTANCESTATS']._serialized_start=1282
|
|
60
|
+
_globals['_RESERVEDINSTANCEPOOL_INSTANCESTATS']._serialized_end=1312
|
|
61
|
+
_globals['_RESERVEDINSTANCEPOOL_LABELSENTRY']._serialized_start=1314
|
|
62
|
+
_globals['_RESERVEDINSTANCEPOOL_LABELSENTRY']._serialized_end=1359
|
|
59
63
|
# @@protoc_insertion_point(module_scope)
|