yandexcloud 0.312.0__py3-none-any.whl → 0.313.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/backup/v1/resource_pb2.py +9 -9
- yandex/cloud/backup/v1/resource_pb2.pyi +4 -0
- yandex/cloud/compute/v1/disk_pb2.py +12 -11
- yandex/cloud/compute/v1/disk_pb2.pyi +11 -2
- yandex/cloud/compute/v1/disk_service_pb2.py +42 -41
- yandex/cloud/compute/v1/disk_service_pb2.pyi +11 -2
- yandex/cloud/compute/v1/hardware_generation_pb2.py +32 -0
- yandex/cloud/compute/v1/hardware_generation_pb2.pyi +96 -0
- yandex/cloud/compute/v1/hardware_generation_pb2_grpc.py +4 -0
- yandex/cloud/compute/v1/hardware_generation_pb2_grpc.pyi +17 -0
- yandex/cloud/compute/v1/image_pb2.py +12 -11
- yandex/cloud/compute/v1/image_pb2.pyi +11 -2
- yandex/cloud/compute/v1/image_service_pb2.py +32 -31
- yandex/cloud/compute/v1/image_service_pb2.pyi +11 -2
- yandex/cloud/compute/v1/instance_pb2.py +54 -53
- yandex/cloud/compute/v1/instance_pb2.pyi +9 -2
- yandex/cloud/compute/v1/snapshot_pb2.py +8 -7
- yandex/cloud/compute/v1/snapshot_pb2.pyi +11 -2
- yandex/cloud/compute/v1/snapshot_service_pb2.py +30 -29
- yandex/cloud/compute/v1/snapshot_service_pb2.pyi +11 -1
- yandex/cloud/iam/v1/service_account_pb2.py +4 -4
- yandex/cloud/iam/v1/service_account_pb2.pyi +8 -2
- yandex/cloud/serverless/containers/v1/container_pb2.py +44 -26
- yandex/cloud/serverless/containers/v1/container_pb2.pyi +99 -2
- yandex/cloud/serverless/containers/v1/container_service_pb2.py +18 -18
- yandex/cloud/serverless/containers/v1/container_service_pb2.pyi +8 -2
- yandex/cloud/serverless/functions/v1/function_pb2.py +46 -28
- yandex/cloud/serverless/functions/v1/function_pb2.pyi +98 -1
- yandex/cloud/serverless/functions/v1/function_service_pb2.py +36 -36
- yandex/cloud/serverless/functions/v1/function_service_pb2.pyi +7 -1
- {yandexcloud-0.312.0.dist-info → yandexcloud-0.313.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.312.0.dist-info → yandexcloud-0.313.0.dist-info}/RECORD +36 -32
- {yandexcloud-0.312.0.dist-info → yandexcloud-0.313.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.312.0.dist-info → yandexcloud-0.313.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.312.0.dist-info → yandexcloud-0.313.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.312.0.dist-info → yandexcloud-0.313.0.dist-info}/top_level.txt +0 -0
|
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
|
14
14
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%yandex/cloud/backup/v1/resource.proto\x12\x16yandex.cloud.backup.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x81\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\"`\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\x04\"*\n\x08Progress\x12\x0f\n\x07\x63urrent\x18\x01 \x01(\x03\x12\r\n\x05total\x18\x02 \x01(\x03\"\
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%yandex/cloud/backup/v1/resource.proto\x12\x16yandex.cloud.backup.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x81\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\"`\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\x04\"*\n\x08Progress\x12\x0f\n\x07\x63urrent\x18\x01 \x01(\x03\x12\r\n\x05total\x18\x02 \x01(\x03\"\xa8\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\"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*C\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43OMPUTE\x10\x01\x12\x07\n\x03\x42MS\x10\x02\x42_\n\x1ayandex.cloud.api.backup.v1ZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/backup/v1;backupb\x06proto3')
|
|
18
18
|
|
|
19
19
|
_globals = globals()
|
|
20
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -22,8 +22,8 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.backup.v1.reso
|
|
|
22
22
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
23
|
DESCRIPTOR._options = None
|
|
24
24
|
DESCRIPTOR._serialized_options = b'\n\032yandex.cloud.api.backup.v1ZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/backup/v1;backup'
|
|
25
|
-
_globals['_RESOURCETYPE']._serialized_start=
|
|
26
|
-
_globals['_RESOURCETYPE']._serialized_end=
|
|
25
|
+
_globals['_RESOURCETYPE']._serialized_start=1725
|
|
26
|
+
_globals['_RESOURCETYPE']._serialized_end=1792
|
|
27
27
|
_globals['_RESOURCE']._serialized_start=99
|
|
28
28
|
_globals['_RESOURCE']._serialized_end=868
|
|
29
29
|
_globals['_RESOURCE_STATUS']._serialized_start=659
|
|
@@ -33,11 +33,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
33
33
|
_globals['_PROGRESS']._serialized_start=870
|
|
34
34
|
_globals['_PROGRESS']._serialized_end=912
|
|
35
35
|
_globals['_TASK']._serialized_start=915
|
|
36
|
-
_globals['_TASK']._serialized_end=
|
|
36
|
+
_globals['_TASK']._serialized_end=1723
|
|
37
37
|
_globals['_TASK_TYPE']._serialized_start=1409
|
|
38
|
-
_globals['_TASK_TYPE']._serialized_end=
|
|
39
|
-
_globals['_TASK_STATUS']._serialized_start=
|
|
40
|
-
_globals['_TASK_STATUS']._serialized_end=
|
|
41
|
-
_globals['_TASK_CODE']._serialized_start=
|
|
42
|
-
_globals['_TASK_CODE']._serialized_end=
|
|
38
|
+
_globals['_TASK_TYPE']._serialized_end=1515
|
|
39
|
+
_globals['_TASK_STATUS']._serialized_start=1517
|
|
40
|
+
_globals['_TASK_STATUS']._serialized_end=1617
|
|
41
|
+
_globals['_TASK_CODE']._serialized_start=1619
|
|
42
|
+
_globals['_TASK_CODE']._serialized_end=1723
|
|
43
43
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -218,12 +218,16 @@ class Task(google.protobuf.message.Message):
|
|
|
218
218
|
BACKUP: Task._Type.ValueType # 1
|
|
219
219
|
RETENTION: Task._Type.ValueType # 2
|
|
220
220
|
RECOVERY: Task._Type.ValueType # 3
|
|
221
|
+
APPLY_POLICY: Task._Type.ValueType # 4
|
|
222
|
+
REVOKE_POLICY: Task._Type.ValueType # 5
|
|
221
223
|
|
|
222
224
|
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
|
|
223
225
|
TYPE_UNSPECIFIED: Task.Type.ValueType # 0
|
|
224
226
|
BACKUP: Task.Type.ValueType # 1
|
|
225
227
|
RETENTION: Task.Type.ValueType # 2
|
|
226
228
|
RECOVERY: Task.Type.ValueType # 3
|
|
229
|
+
APPLY_POLICY: Task.Type.ValueType # 4
|
|
230
|
+
REVOKE_POLICY: Task.Type.ValueType # 5
|
|
227
231
|
|
|
228
232
|
class _Status:
|
|
229
233
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
@@ -12,9 +12,10 @@ _sym_db = _symbol_database.Default()
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
|
+
from yandex.cloud.compute.v1 import hardware_generation_pb2 as yandex_dot_cloud_dot_compute_dot_v1_dot_hardware__generation__pb2
|
|
15
16
|
|
|
16
17
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"yandex/cloud/compute/v1/disk.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"yandex/cloud/compute/v1/disk.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x31yandex/cloud/compute/v1/hardware_generation.proto\"\xb5\x05\n\x04\x44isk\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x39\n\x06labels\x18\x06 \x03(\x0b\x32).yandex.cloud.compute.v1.Disk.LabelsEntry\x12\x0f\n\x07type_id\x18\x07 \x01(\t\x12\x0f\n\x07zone_id\x18\x08 \x01(\t\x12\x0c\n\x04size\x18\t \x01(\x03\x12\x12\n\nblock_size\x18\x0f \x01(\x03\x12\x13\n\x0bproduct_ids\x18\n \x03(\t\x12\x34\n\x06status\x18\x0b \x01(\x0e\x32$.yandex.cloud.compute.v1.Disk.Status\x12\x19\n\x0fsource_image_id\x18\x0c \x01(\tH\x00\x12\x1c\n\x12source_snapshot_id\x18\r \x01(\tH\x00\x12\x14\n\x0cinstance_ids\x18\x0e \x03(\t\x12K\n\x15\x64isk_placement_policy\x18\x10 \x01(\x0b\x32,.yandex.cloud.compute.v1.DiskPlacementPolicy\x12H\n\x13hardware_generation\x18\x11 \x01(\x0b\x32+.yandex.cloud.compute.v1.HardwareGeneration\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"R\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\x42\x08\n\x06source\"T\n\x13\x44iskPlacementPolicy\x12\x1a\n\x12placement_group_id\x18\x01 \x01(\t\x12!\n\x19placement_group_partition\x18\x02 \x01(\x03\"y\n\x19\x44iskPlacementPolicyChange\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\x12K\n\x15\x64isk_placement_policy\x18\x02 \x01(\x0b\x32,.yandex.cloud.compute.v1.DiskPlacementPolicyBb\n\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3')
|
|
18
19
|
|
|
19
20
|
_globals = globals()
|
|
20
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -24,14 +25,14 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
24
25
|
DESCRIPTOR._serialized_options = b'\n\033yandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;compute'
|
|
25
26
|
_DISK_LABELSENTRY._options = None
|
|
26
27
|
_DISK_LABELSENTRY._serialized_options = b'8\001'
|
|
27
|
-
_globals['_DISK']._serialized_start=
|
|
28
|
-
_globals['_DISK']._serialized_end=
|
|
29
|
-
_globals['_DISK_LABELSENTRY']._serialized_start=
|
|
30
|
-
_globals['_DISK_LABELSENTRY']._serialized_end=
|
|
31
|
-
_globals['_DISK_STATUS']._serialized_start=
|
|
32
|
-
_globals['_DISK_STATUS']._serialized_end=
|
|
33
|
-
_globals['_DISKPLACEMENTPOLICY']._serialized_start=
|
|
34
|
-
_globals['_DISKPLACEMENTPOLICY']._serialized_end=
|
|
35
|
-
_globals['_DISKPLACEMENTPOLICYCHANGE']._serialized_start=
|
|
36
|
-
_globals['_DISKPLACEMENTPOLICYCHANGE']._serialized_end=
|
|
28
|
+
_globals['_DISK']._serialized_start=148
|
|
29
|
+
_globals['_DISK']._serialized_end=841
|
|
30
|
+
_globals['_DISK_LABELSENTRY']._serialized_start=702
|
|
31
|
+
_globals['_DISK_LABELSENTRY']._serialized_end=747
|
|
32
|
+
_globals['_DISK_STATUS']._serialized_start=749
|
|
33
|
+
_globals['_DISK_STATUS']._serialized_end=831
|
|
34
|
+
_globals['_DISKPLACEMENTPOLICY']._serialized_start=843
|
|
35
|
+
_globals['_DISKPLACEMENTPOLICY']._serialized_end=927
|
|
36
|
+
_globals['_DISKPLACEMENTPOLICYCHANGE']._serialized_start=929
|
|
37
|
+
_globals['_DISKPLACEMENTPOLICYCHANGE']._serialized_end=1050
|
|
37
38
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -12,6 +12,7 @@ import google.protobuf.message
|
|
|
12
12
|
import google.protobuf.timestamp_pb2
|
|
13
13
|
import sys
|
|
14
14
|
import typing
|
|
15
|
+
import yandex.cloud.compute.v1.hardware_generation_pb2
|
|
15
16
|
|
|
16
17
|
if sys.version_info >= (3, 10):
|
|
17
18
|
import typing as typing_extensions
|
|
@@ -85,6 +86,7 @@ class Disk(google.protobuf.message.Message):
|
|
|
85
86
|
SOURCE_SNAPSHOT_ID_FIELD_NUMBER: builtins.int
|
|
86
87
|
INSTANCE_IDS_FIELD_NUMBER: builtins.int
|
|
87
88
|
DISK_PLACEMENT_POLICY_FIELD_NUMBER: builtins.int
|
|
89
|
+
HARDWARE_GENERATION_FIELD_NUMBER: builtins.int
|
|
88
90
|
id: builtins.str
|
|
89
91
|
"""ID of the disk."""
|
|
90
92
|
folder_id: builtins.str
|
|
@@ -133,6 +135,12 @@ class Disk(google.protobuf.message.Message):
|
|
|
133
135
|
def disk_placement_policy(self) -> global___DiskPlacementPolicy:
|
|
134
136
|
"""Placement policy configuration."""
|
|
135
137
|
|
|
138
|
+
@property
|
|
139
|
+
def hardware_generation(self) -> yandex.cloud.compute.v1.hardware_generation_pb2.HardwareGeneration:
|
|
140
|
+
"""If specified, forces the same HardwareGeneration features to be applied to the instance
|
|
141
|
+
created using this disk as a boot one. Otherwise the current default will be used.
|
|
142
|
+
"""
|
|
143
|
+
|
|
136
144
|
def __init__(
|
|
137
145
|
self,
|
|
138
146
|
*,
|
|
@@ -152,9 +160,10 @@ class Disk(google.protobuf.message.Message):
|
|
|
152
160
|
source_snapshot_id: builtins.str = ...,
|
|
153
161
|
instance_ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
154
162
|
disk_placement_policy: global___DiskPlacementPolicy | None = ...,
|
|
163
|
+
hardware_generation: yandex.cloud.compute.v1.hardware_generation_pb2.HardwareGeneration | None = ...,
|
|
155
164
|
) -> None: ...
|
|
156
|
-
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "disk_placement_policy", b"disk_placement_policy", "source", b"source", "source_image_id", b"source_image_id", "source_snapshot_id", b"source_snapshot_id"]) -> builtins.bool: ...
|
|
157
|
-
def ClearField(self, field_name: typing.Literal["block_size", b"block_size", "created_at", b"created_at", "description", b"description", "disk_placement_policy", b"disk_placement_policy", "folder_id", b"folder_id", "id", b"id", "instance_ids", b"instance_ids", "labels", b"labels", "name", b"name", "product_ids", b"product_ids", "size", b"size", "source", b"source", "source_image_id", b"source_image_id", "source_snapshot_id", b"source_snapshot_id", "status", b"status", "type_id", b"type_id", "zone_id", b"zone_id"]) -> None: ...
|
|
165
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "disk_placement_policy", b"disk_placement_policy", "hardware_generation", b"hardware_generation", "source", b"source", "source_image_id", b"source_image_id", "source_snapshot_id", b"source_snapshot_id"]) -> builtins.bool: ...
|
|
166
|
+
def ClearField(self, field_name: typing.Literal["block_size", b"block_size", "created_at", b"created_at", "description", b"description", "disk_placement_policy", b"disk_placement_policy", "folder_id", b"folder_id", "hardware_generation", b"hardware_generation", "id", b"id", "instance_ids", b"instance_ids", "labels", b"labels", "name", b"name", "product_ids", b"product_ids", "size", b"size", "source", b"source", "source_image_id", b"source_image_id", "source_snapshot_id", b"source_snapshot_id", "status", b"status", "type_id", b"type_id", "zone_id", b"zone_id"]) -> None: ...
|
|
158
167
|
def WhichOneof(self, oneof_group: typing.Literal["source", b"source"]) -> typing.Literal["source_image_id", "source_snapshot_id"] | None: ...
|
|
159
168
|
|
|
160
169
|
global___Disk = Disk
|
|
@@ -16,12 +16,13 @@ from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mas
|
|
|
16
16
|
from yandex.cloud.access import access_pb2 as yandex_dot_cloud_dot_access_dot_access__pb2
|
|
17
17
|
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
18
18
|
from yandex.cloud.compute.v1 import disk_pb2 as yandex_dot_cloud_dot_compute_dot_v1_dot_disk__pb2
|
|
19
|
+
from yandex.cloud.compute.v1 import hardware_generation_pb2 as yandex_dot_cloud_dot_compute_dot_v1_dot_hardware__generation__pb2
|
|
19
20
|
from yandex.cloud.compute.v1 import snapshot_schedule_pb2 as yandex_dot_cloud_dot_compute_dot_v1_dot_snapshot__schedule__pb2
|
|
20
21
|
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
21
22
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
22
23
|
|
|
23
24
|
|
|
24
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/compute/v1/disk_service.proto\x12\x17yandex.cloud.compute.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a yandex/cloud/access/access.proto\x1a yandex/cloud/api/operation.proto\x1a\"yandex/cloud/compute/v1/disk.proto\x1a/yandex/cloud/compute/v1/snapshot_schedule.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"/\n\x0eGetDiskRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\xaa\x01\n\x10ListDisksRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06<=1000\x12\x1d\n\npage_token\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=100\x12\x1a\n\x06\x66ilter\x18\x04 \x01(\tB\n\x8a\xc8\x31\x06<=1000\x12\x1b\n\x08order_by\x18\x05 \x01(\tB\t\x8a\xc8\x31\x05<=100\"Z\n\x11ListDisksResponse\x12,\n\x05\x64isks\x18\x01 \x03(\x0b\x32\x1d.yandex.cloud.compute.v1.Disk\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\
|
|
25
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*yandex/cloud/compute/v1/disk_service.proto\x12\x17yandex.cloud.compute.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a yandex/cloud/access/access.proto\x1a yandex/cloud/api/operation.proto\x1a\"yandex/cloud/compute/v1/disk.proto\x1a\x31yandex/cloud/compute/v1/hardware_generation.proto\x1a/yandex/cloud/compute/v1/snapshot_schedule.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"/\n\x0eGetDiskRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\xaa\x01\n\x10ListDisksRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06<=1000\x12\x1d\n\npage_token\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=100\x12\x1a\n\x06\x66ilter\x18\x04 \x01(\tB\n\x8a\xc8\x31\x06<=1000\x12\x1b\n\x08order_by\x18\x05 \x01(\tB\t\x8a\xc8\x31\x05<=100\"Z\n\x11ListDisksResponse\x12,\n\x05\x64isks\x18\x01 \x03(\x0b\x32\x1d.yandex.cloud.compute.v1.Disk\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc0\x05\n\x11\x43reateDiskRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x32\n\x04name\x18\x02 \x01(\tB$\xf2\xc7\x31 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?\x12\x1e\n\x0b\x64\x65scription\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=256\x12\x8b\x01\n\x06labels\x18\x04 \x03(\x0b\x32\x36.yandex.cloud.compute.v1.CreateDiskRequest.LabelsEntryBC\xf2\xc7\x31\x0f[-_./\\@0-9a-z]*\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xb2\xc8\x31\x1c\x12\x14[a-z][-_./\\@0-9a-z]*\x1a\x04\x31-63\x12\x19\n\x07type_id\x18\x05 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x1d\n\x07zone_id\x18\x06 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12,\n\x04size\x18\x07 \x01(\x03\x42\x1e\xe8\xc7\x31\x01\xfa\xc7\x31\x16\x34\x31\x39\x34\x33\x30\x34-28587302322176\x12\x1c\n\x08image_id\x18\x08 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1f\n\x0bsnapshot_id\x18\t \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x12\n\nblock_size\x18\n \x01(\x03\x12K\n\x15\x64isk_placement_policy\x18\x0b \x01(\x0b\x32,.yandex.cloud.compute.v1.DiskPlacementPolicy\x12\x1d\n\x15snapshot_schedule_ids\x18\x0c \x03(\t\x12H\n\x13hardware_generation\x18\r \x01(\x0b\x32+.yandex.cloud.compute.v1.HardwareGeneration\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"%\n\x12\x43reateDiskMetadata\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\"\xea\x03\n\x11UpdateDiskRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x32\n\x04name\x18\x03 \x01(\tB$\xf2\xc7\x31 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?\x12\x1e\n\x0b\x64\x65scription\x18\x04 \x01(\tB\t\x8a\xc8\x31\x05<=256\x12\x8b\x01\n\x06labels\x18\x05 \x03(\x0b\x32\x36.yandex.cloud.compute.v1.UpdateDiskRequest.LabelsEntryBC\xf2\xc7\x31\x0f[-_./\\@0-9a-z]*\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xb2\xc8\x31\x1c\x12\x14[a-z][-_./\\@0-9a-z]*\x1a\x04\x31-63\x12\'\n\x04size\x18\x06 \x01(\x03\x42\x19\xfa\xc7\x31\x15\x34\x31\x39\x34\x33\x30\x34-4398046511104\x12K\n\x15\x64isk_placement_policy\x18\x07 \x01(\x0b\x32,.yandex.cloud.compute.v1.DiskPlacementPolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"%\n\x12UpdateDiskMetadata\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\"2\n\x11\x44\x65leteDiskRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"%\n\x12\x44\x65leteDiskMetadata\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\"x\n\x19ListDiskOperationsRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06<=1000\x12\x1d\n\npage_token\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=100\"l\n\x1aListDiskOperationsResponse\x12\x35\n\noperations\x18\x01 \x03(\x0b\x32!.yandex.cloud.operation.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x0fMoveDiskRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12+\n\x15\x64\x65stination_folder_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\\\n\x10MoveDiskMetadata\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\x12\x18\n\x10source_folder_id\x18\x02 \x01(\t\x12\x1d\n\x15\x64\x65stination_folder_id\x18\x03 \x01(\t\"\xac\x01\n\x13RelocateDiskRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12)\n\x13\x64\x65stination_zone_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12K\n\x15\x64isk_placement_policy\x18\x03 \x01(\x0b\x32,.yandex.cloud.compute.v1.DiskPlacementPolicy\"\\\n\x14RelocateDiskMetadata\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\x12\x16\n\x0esource_zone_id\x18\x02 \x01(\t\x12\x1b\n\x13\x64\x65stination_zone_id\x18\x03 \x01(\t\"Z\n ListDiskSnapshotSchedulesRequest\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x03\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x83\x01\n!ListDiskSnapshotSchedulesResponse\x12\x45\n\x12snapshot_schedules\x18\x01 \x03(\x0b\x32).yandex.cloud.compute.v1.SnapshotSchedule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x90\x10\n\x0b\x44iskService\x12r\n\x03Get\x12\'.yandex.cloud.compute.v1.GetDiskRequest\x1a\x1d.yandex.cloud.compute.v1.Disk\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/compute/v1/disks/{disk_id}\x12x\n\x04List\x12).yandex.cloud.compute.v1.ListDisksRequest\x1a*.yandex.cloud.compute.v1.ListDisksResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/compute/v1/disks\x12\x93\x01\n\x06\x43reate\x12*.yandex.cloud.compute.v1.CreateDiskRequest\x1a!.yandex.cloud.operation.Operation\":\xb2\xd2*\x1a\n\x12\x43reateDiskMetadata\x12\x04\x44isk\x82\xd3\xe4\x93\x02\x16\"\x11/compute/v1/disks:\x01*\x12\x9d\x01\n\x06Update\x12*.yandex.cloud.compute.v1.UpdateDiskRequest\x1a!.yandex.cloud.operation.Operation\"D\xb2\xd2*\x1a\n\x12UpdateDiskMetadata\x12\x04\x44isk\x82\xd3\xe4\x93\x02 2\x1b/compute/v1/disks/{disk_id}:\x01*\x12\xab\x01\n\x06\x44\x65lete\x12*.yandex.cloud.compute.v1.DeleteDiskRequest\x1a!.yandex.cloud.operation.Operation\"R\xb2\xd2*+\n\x12\x44\x65leteDiskMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02\x1d*\x1b/compute/v1/disks/{disk_id}\x12\xa9\x01\n\x0eListOperations\x12\x32.yandex.cloud.compute.v1.ListDiskOperationsRequest\x1a\x33.yandex.cloud.compute.v1.ListDiskOperationsResponse\".\x82\xd3\xe4\x93\x02(\x12&/compute/v1/disks/{disk_id}/operations\x12\x9c\x01\n\x04Move\x12(.yandex.cloud.compute.v1.MoveDiskRequest\x1a!.yandex.cloud.operation.Operation\"G\xb2\xd2*\x18\n\x10MoveDiskMetadata\x12\x04\x44isk\x82\xd3\xe4\x93\x02%\" /compute/v1/disks/{disk_id}:move:\x01*\x12\xac\x01\n\x08Relocate\x12,.yandex.cloud.compute.v1.RelocateDiskRequest\x1a!.yandex.cloud.operation.Operation\"O\xb2\xd2*\x1c\n\x14RelocateDiskMetadata\x12\x04\x44isk\x82\xd3\xe4\x93\x02)\"$/compute/v1/disks/{disk_id}:relocate:\x01*\x12\x8e\x01\n\x15ListSnapshotSchedules\x12\x39.yandex.cloud.compute.v1.ListDiskSnapshotSchedulesRequest\x1a:.yandex.cloud.compute.v1.ListDiskSnapshotSchedulesResponse\x12\xb1\x01\n\x12ListAccessBindings\x12..yandex.cloud.access.ListAccessBindingsRequest\x1a/.yandex.cloud.access.ListAccessBindingsResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/compute/v1/disks/{resource_id}:listAccessBindings\x12\xf0\x01\n\x11SetAccessBindings\x12-.yandex.cloud.access.SetAccessBindingsRequest\x1a!.yandex.cloud.operation.Operation\"\x88\x01\xb2\xd2*H\n access.SetAccessBindingsMetadata\x12$access.AccessBindingsOperationResult\x82\xd3\xe4\x93\x02\x36\"1/compute/v1/disks/{resource_id}:setAccessBindings:\x01*\x12\xfc\x01\n\x14UpdateAccessBindings\x12\x30.yandex.cloud.access.UpdateAccessBindingsRequest\x1a!.yandex.cloud.operation.Operation\"\x8e\x01\xb2\xd2*K\n#access.UpdateAccessBindingsMetadata\x12$access.AccessBindingsOperationResult\x82\xd3\xe4\x93\x02\x39\"4/compute/v1/disks/{resource_id}:updateAccessBindings:\x01*Bb\n\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3')
|
|
25
26
|
|
|
26
27
|
_globals = globals()
|
|
27
28
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -111,44 +112,44 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
111
112
|
_DISKSERVICE.methods_by_name['SetAccessBindings']._serialized_options = b'\262\322*H\n access.SetAccessBindingsMetadata\022$access.AccessBindingsOperationResult\202\323\344\223\0026\"1/compute/v1/disks/{resource_id}:setAccessBindings:\001*'
|
|
112
113
|
_DISKSERVICE.methods_by_name['UpdateAccessBindings']._options = None
|
|
113
114
|
_DISKSERVICE.methods_by_name['UpdateAccessBindings']._serialized_options = b'\262\322*K\n#access.UpdateAccessBindingsMetadata\022$access.AccessBindingsOperationResult\202\323\344\223\0029\"4/compute/v1/disks/{resource_id}:updateAccessBindings:\001*'
|
|
114
|
-
_globals['_GETDISKREQUEST']._serialized_start=
|
|
115
|
-
_globals['_GETDISKREQUEST']._serialized_end=
|
|
116
|
-
_globals['_LISTDISKSREQUEST']._serialized_start=
|
|
117
|
-
_globals['_LISTDISKSREQUEST']._serialized_end=
|
|
118
|
-
_globals['_LISTDISKSRESPONSE']._serialized_start=
|
|
119
|
-
_globals['_LISTDISKSRESPONSE']._serialized_end=
|
|
120
|
-
_globals['_CREATEDISKREQUEST']._serialized_start=
|
|
121
|
-
_globals['_CREATEDISKREQUEST']._serialized_end=
|
|
122
|
-
_globals['_CREATEDISKREQUEST_LABELSENTRY']._serialized_start=
|
|
123
|
-
_globals['_CREATEDISKREQUEST_LABELSENTRY']._serialized_end=
|
|
124
|
-
_globals['_CREATEDISKMETADATA']._serialized_start=
|
|
125
|
-
_globals['_CREATEDISKMETADATA']._serialized_end=
|
|
126
|
-
_globals['_UPDATEDISKREQUEST']._serialized_start=
|
|
127
|
-
_globals['_UPDATEDISKREQUEST']._serialized_end=
|
|
128
|
-
_globals['_UPDATEDISKREQUEST_LABELSENTRY']._serialized_start=
|
|
129
|
-
_globals['_UPDATEDISKREQUEST_LABELSENTRY']._serialized_end=
|
|
130
|
-
_globals['_UPDATEDISKMETADATA']._serialized_start=
|
|
131
|
-
_globals['_UPDATEDISKMETADATA']._serialized_end=
|
|
132
|
-
_globals['_DELETEDISKREQUEST']._serialized_start=
|
|
133
|
-
_globals['_DELETEDISKREQUEST']._serialized_end=
|
|
134
|
-
_globals['_DELETEDISKMETADATA']._serialized_start=
|
|
135
|
-
_globals['_DELETEDISKMETADATA']._serialized_end=
|
|
136
|
-
_globals['_LISTDISKOPERATIONSREQUEST']._serialized_start=
|
|
137
|
-
_globals['_LISTDISKOPERATIONSREQUEST']._serialized_end=
|
|
138
|
-
_globals['_LISTDISKOPERATIONSRESPONSE']._serialized_start=
|
|
139
|
-
_globals['_LISTDISKOPERATIONSRESPONSE']._serialized_end=
|
|
140
|
-
_globals['_MOVEDISKREQUEST']._serialized_start=
|
|
141
|
-
_globals['_MOVEDISKREQUEST']._serialized_end=
|
|
142
|
-
_globals['_MOVEDISKMETADATA']._serialized_start=
|
|
143
|
-
_globals['_MOVEDISKMETADATA']._serialized_end=
|
|
144
|
-
_globals['_RELOCATEDISKREQUEST']._serialized_start=
|
|
145
|
-
_globals['_RELOCATEDISKREQUEST']._serialized_end=
|
|
146
|
-
_globals['_RELOCATEDISKMETADATA']._serialized_start=
|
|
147
|
-
_globals['_RELOCATEDISKMETADATA']._serialized_end=
|
|
148
|
-
_globals['_LISTDISKSNAPSHOTSCHEDULESREQUEST']._serialized_start=
|
|
149
|
-
_globals['_LISTDISKSNAPSHOTSCHEDULESREQUEST']._serialized_end=
|
|
150
|
-
_globals['_LISTDISKSNAPSHOTSCHEDULESRESPONSE']._serialized_start=
|
|
151
|
-
_globals['_LISTDISKSNAPSHOTSCHEDULESRESPONSE']._serialized_end=
|
|
152
|
-
_globals['_DISKSERVICE']._serialized_start=
|
|
153
|
-
_globals['_DISKSERVICE']._serialized_end=
|
|
115
|
+
_globals['_GETDISKREQUEST']._serialized_start=410
|
|
116
|
+
_globals['_GETDISKREQUEST']._serialized_end=457
|
|
117
|
+
_globals['_LISTDISKSREQUEST']._serialized_start=460
|
|
118
|
+
_globals['_LISTDISKSREQUEST']._serialized_end=630
|
|
119
|
+
_globals['_LISTDISKSRESPONSE']._serialized_start=632
|
|
120
|
+
_globals['_LISTDISKSRESPONSE']._serialized_end=722
|
|
121
|
+
_globals['_CREATEDISKREQUEST']._serialized_start=725
|
|
122
|
+
_globals['_CREATEDISKREQUEST']._serialized_end=1429
|
|
123
|
+
_globals['_CREATEDISKREQUEST_LABELSENTRY']._serialized_start=1374
|
|
124
|
+
_globals['_CREATEDISKREQUEST_LABELSENTRY']._serialized_end=1419
|
|
125
|
+
_globals['_CREATEDISKMETADATA']._serialized_start=1431
|
|
126
|
+
_globals['_CREATEDISKMETADATA']._serialized_end=1468
|
|
127
|
+
_globals['_UPDATEDISKREQUEST']._serialized_start=1471
|
|
128
|
+
_globals['_UPDATEDISKREQUEST']._serialized_end=1961
|
|
129
|
+
_globals['_UPDATEDISKREQUEST_LABELSENTRY']._serialized_start=1374
|
|
130
|
+
_globals['_UPDATEDISKREQUEST_LABELSENTRY']._serialized_end=1419
|
|
131
|
+
_globals['_UPDATEDISKMETADATA']._serialized_start=1963
|
|
132
|
+
_globals['_UPDATEDISKMETADATA']._serialized_end=2000
|
|
133
|
+
_globals['_DELETEDISKREQUEST']._serialized_start=2002
|
|
134
|
+
_globals['_DELETEDISKREQUEST']._serialized_end=2052
|
|
135
|
+
_globals['_DELETEDISKMETADATA']._serialized_start=2054
|
|
136
|
+
_globals['_DELETEDISKMETADATA']._serialized_end=2091
|
|
137
|
+
_globals['_LISTDISKOPERATIONSREQUEST']._serialized_start=2093
|
|
138
|
+
_globals['_LISTDISKOPERATIONSREQUEST']._serialized_end=2213
|
|
139
|
+
_globals['_LISTDISKOPERATIONSRESPONSE']._serialized_start=2215
|
|
140
|
+
_globals['_LISTDISKOPERATIONSRESPONSE']._serialized_end=2323
|
|
141
|
+
_globals['_MOVEDISKREQUEST']._serialized_start=2325
|
|
142
|
+
_globals['_MOVEDISKREQUEST']._serialized_end=2418
|
|
143
|
+
_globals['_MOVEDISKMETADATA']._serialized_start=2420
|
|
144
|
+
_globals['_MOVEDISKMETADATA']._serialized_end=2512
|
|
145
|
+
_globals['_RELOCATEDISKREQUEST']._serialized_start=2515
|
|
146
|
+
_globals['_RELOCATEDISKREQUEST']._serialized_end=2687
|
|
147
|
+
_globals['_RELOCATEDISKMETADATA']._serialized_start=2689
|
|
148
|
+
_globals['_RELOCATEDISKMETADATA']._serialized_end=2781
|
|
149
|
+
_globals['_LISTDISKSNAPSHOTSCHEDULESREQUEST']._serialized_start=2783
|
|
150
|
+
_globals['_LISTDISKSNAPSHOTSCHEDULESREQUEST']._serialized_end=2873
|
|
151
|
+
_globals['_LISTDISKSNAPSHOTSCHEDULESRESPONSE']._serialized_start=2876
|
|
152
|
+
_globals['_LISTDISKSNAPSHOTSCHEDULESRESPONSE']._serialized_end=3007
|
|
153
|
+
_globals['_DISKSERVICE']._serialized_start=3010
|
|
154
|
+
_globals['_DISKSERVICE']._serialized_end=5074
|
|
154
155
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -11,6 +11,7 @@ import google.protobuf.internal.containers
|
|
|
11
11
|
import google.protobuf.message
|
|
12
12
|
import typing
|
|
13
13
|
import yandex.cloud.compute.v1.disk_pb2
|
|
14
|
+
import yandex.cloud.compute.v1.hardware_generation_pb2
|
|
14
15
|
import yandex.cloud.compute.v1.snapshot_schedule_pb2
|
|
15
16
|
import yandex.cloud.operation.operation_pb2
|
|
16
17
|
|
|
@@ -145,6 +146,7 @@ class CreateDiskRequest(google.protobuf.message.Message):
|
|
|
145
146
|
BLOCK_SIZE_FIELD_NUMBER: builtins.int
|
|
146
147
|
DISK_PLACEMENT_POLICY_FIELD_NUMBER: builtins.int
|
|
147
148
|
SNAPSHOT_SCHEDULE_IDS_FIELD_NUMBER: builtins.int
|
|
149
|
+
HARDWARE_GENERATION_FIELD_NUMBER: builtins.int
|
|
148
150
|
folder_id: builtins.str
|
|
149
151
|
"""ID of the folder to create a disk in.
|
|
150
152
|
To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
|
|
@@ -184,6 +186,12 @@ class CreateDiskRequest(google.protobuf.message.Message):
|
|
|
184
186
|
def snapshot_schedule_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
185
187
|
"""List of IDs of the snapshot schedules to attach the disk to."""
|
|
186
188
|
|
|
189
|
+
@property
|
|
190
|
+
def hardware_generation(self) -> yandex.cloud.compute.v1.hardware_generation_pb2.HardwareGeneration:
|
|
191
|
+
"""Specify the overrides to hardware_generation of a source disk, image or snapshot,
|
|
192
|
+
or to the default values if the source does not define it.
|
|
193
|
+
"""
|
|
194
|
+
|
|
187
195
|
def __init__(
|
|
188
196
|
self,
|
|
189
197
|
*,
|
|
@@ -199,9 +207,10 @@ class CreateDiskRequest(google.protobuf.message.Message):
|
|
|
199
207
|
block_size: builtins.int = ...,
|
|
200
208
|
disk_placement_policy: yandex.cloud.compute.v1.disk_pb2.DiskPlacementPolicy | None = ...,
|
|
201
209
|
snapshot_schedule_ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
210
|
+
hardware_generation: yandex.cloud.compute.v1.hardware_generation_pb2.HardwareGeneration | None = ...,
|
|
202
211
|
) -> None: ...
|
|
203
|
-
def HasField(self, field_name: typing.Literal["disk_placement_policy", b"disk_placement_policy", "image_id", b"image_id", "snapshot_id", b"snapshot_id", "source", b"source"]) -> builtins.bool: ...
|
|
204
|
-
def ClearField(self, field_name: typing.Literal["block_size", b"block_size", "description", b"description", "disk_placement_policy", b"disk_placement_policy", "folder_id", b"folder_id", "image_id", b"image_id", "labels", b"labels", "name", b"name", "size", b"size", "snapshot_id", b"snapshot_id", "snapshot_schedule_ids", b"snapshot_schedule_ids", "source", b"source", "type_id", b"type_id", "zone_id", b"zone_id"]) -> None: ...
|
|
212
|
+
def HasField(self, field_name: typing.Literal["disk_placement_policy", b"disk_placement_policy", "hardware_generation", b"hardware_generation", "image_id", b"image_id", "snapshot_id", b"snapshot_id", "source", b"source"]) -> builtins.bool: ...
|
|
213
|
+
def ClearField(self, field_name: typing.Literal["block_size", b"block_size", "description", b"description", "disk_placement_policy", b"disk_placement_policy", "folder_id", b"folder_id", "hardware_generation", b"hardware_generation", "image_id", b"image_id", "labels", b"labels", "name", b"name", "size", b"size", "snapshot_id", b"snapshot_id", "snapshot_schedule_ids", b"snapshot_schedule_ids", "source", b"source", "type_id", b"type_id", "zone_id", b"zone_id"]) -> None: ...
|
|
205
214
|
def WhichOneof(self, oneof_group: typing.Literal["source", b"source"]) -> typing.Literal["image_id", "snapshot_id"] | None: ...
|
|
206
215
|
|
|
207
216
|
global___CreateDiskRequest = CreateDiskRequest
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/compute/v1/hardware_generation.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1yandex/cloud/compute/v1/hardware_generation.proto\x12\x17yandex.cloud.compute.v1\"\xc2\x01\n\x12HardwareGeneration\x12J\n\x0flegacy_features\x18\x01 \x01(\x0b\x32/.yandex.cloud.compute.v1.LegacyHardwareFeaturesH\x00\x12T\n\x14generation2_features\x18\x02 \x01(\x0b\x32\x34.yandex.cloud.compute.v1.Generation2HardwareFeaturesH\x00\x42\n\n\x08\x66\x65\x61tures\"T\n\x16LegacyHardwareFeatures\x12:\n\x0cpci_topology\x18\x01 \x01(\x0e\x32$.yandex.cloud.compute.v1.PCITopology\"\x1d\n\x1bGeneration2HardwareFeatures*U\n\x0bPCITopology\x12\x1c\n\x18PCI_TOPOLOGY_UNSPECIFIED\x10\x00\x12\x13\n\x0fPCI_TOPOLOGY_V1\x10\x01\x12\x13\n\x0fPCI_TOPOLOGY_V2\x10\x02\x42\x62\n\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3')
|
|
17
|
+
|
|
18
|
+
_globals = globals()
|
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.compute.v1.hardware_generation_pb2', _globals)
|
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
22
|
+
DESCRIPTOR._options = None
|
|
23
|
+
DESCRIPTOR._serialized_options = b'\n\033yandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;compute'
|
|
24
|
+
_globals['_PCITOPOLOGY']._serialized_start=392
|
|
25
|
+
_globals['_PCITOPOLOGY']._serialized_end=477
|
|
26
|
+
_globals['_HARDWAREGENERATION']._serialized_start=79
|
|
27
|
+
_globals['_HARDWAREGENERATION']._serialized_end=273
|
|
28
|
+
_globals['_LEGACYHARDWAREFEATURES']._serialized_start=275
|
|
29
|
+
_globals['_LEGACYHARDWAREFEATURES']._serialized_end=359
|
|
30
|
+
_globals['_GENERATION2HARDWAREFEATURES']._serialized_start=361
|
|
31
|
+
_globals['_GENERATION2HARDWAREFEATURES']._serialized_end=390
|
|
32
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,96 @@
|
|
|
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.internal.enum_type_wrapper
|
|
9
|
+
import google.protobuf.message
|
|
10
|
+
import sys
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
if sys.version_info >= (3, 10):
|
|
14
|
+
import typing as typing_extensions
|
|
15
|
+
else:
|
|
16
|
+
import typing_extensions
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
19
|
+
|
|
20
|
+
class _PCITopology:
|
|
21
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
22
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
23
|
+
|
|
24
|
+
class _PCITopologyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PCITopology.ValueType], builtins.type):
|
|
25
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
26
|
+
PCI_TOPOLOGY_UNSPECIFIED: _PCITopology.ValueType # 0
|
|
27
|
+
PCI_TOPOLOGY_V1: _PCITopology.ValueType # 1
|
|
28
|
+
PCI_TOPOLOGY_V2: _PCITopology.ValueType # 2
|
|
29
|
+
|
|
30
|
+
class PCITopology(_PCITopology, metaclass=_PCITopologyEnumTypeWrapper): ...
|
|
31
|
+
|
|
32
|
+
PCI_TOPOLOGY_UNSPECIFIED: PCITopology.ValueType # 0
|
|
33
|
+
PCI_TOPOLOGY_V1: PCITopology.ValueType # 1
|
|
34
|
+
PCI_TOPOLOGY_V2: PCITopology.ValueType # 2
|
|
35
|
+
global___PCITopology = PCITopology
|
|
36
|
+
|
|
37
|
+
@typing.final
|
|
38
|
+
class HardwareGeneration(google.protobuf.message.Message):
|
|
39
|
+
"""A set of features, specific to a particular Compute hardware generation.
|
|
40
|
+
They are not necessary supported by every host OS or distro, thus they are fixed to an image
|
|
41
|
+
and are applied to all instances created with it as their boot disk image.
|
|
42
|
+
These features significantly determine how the instance is created, thus cannot be changed after the fact.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
46
|
+
|
|
47
|
+
LEGACY_FEATURES_FIELD_NUMBER: builtins.int
|
|
48
|
+
GENERATION2_FEATURES_FIELD_NUMBER: builtins.int
|
|
49
|
+
@property
|
|
50
|
+
def legacy_features(self) -> global___LegacyHardwareFeatures: ...
|
|
51
|
+
@property
|
|
52
|
+
def generation2_features(self) -> global___Generation2HardwareFeatures: ...
|
|
53
|
+
def __init__(
|
|
54
|
+
self,
|
|
55
|
+
*,
|
|
56
|
+
legacy_features: global___LegacyHardwareFeatures | None = ...,
|
|
57
|
+
generation2_features: global___Generation2HardwareFeatures | None = ...,
|
|
58
|
+
) -> None: ...
|
|
59
|
+
def HasField(self, field_name: typing.Literal["features", b"features", "generation2_features", b"generation2_features", "legacy_features", b"legacy_features"]) -> builtins.bool: ...
|
|
60
|
+
def ClearField(self, field_name: typing.Literal["features", b"features", "generation2_features", b"generation2_features", "legacy_features", b"legacy_features"]) -> None: ...
|
|
61
|
+
def WhichOneof(self, oneof_group: typing.Literal["features", b"features"]) -> typing.Literal["legacy_features", "generation2_features"] | None: ...
|
|
62
|
+
|
|
63
|
+
global___HardwareGeneration = HardwareGeneration
|
|
64
|
+
|
|
65
|
+
@typing.final
|
|
66
|
+
class LegacyHardwareFeatures(google.protobuf.message.Message):
|
|
67
|
+
"""A first hardware generation, by default compatible with all legacy images.
|
|
68
|
+
Allows switching to PCI_TOPOLOGY_V2 and back.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
72
|
+
|
|
73
|
+
PCI_TOPOLOGY_FIELD_NUMBER: builtins.int
|
|
74
|
+
pci_topology: global___PCITopology.ValueType
|
|
75
|
+
def __init__(
|
|
76
|
+
self,
|
|
77
|
+
*,
|
|
78
|
+
pci_topology: global___PCITopology.ValueType = ...,
|
|
79
|
+
) -> None: ...
|
|
80
|
+
def ClearField(self, field_name: typing.Literal["pci_topology", b"pci_topology"]) -> None: ...
|
|
81
|
+
|
|
82
|
+
global___LegacyHardwareFeatures = LegacyHardwareFeatures
|
|
83
|
+
|
|
84
|
+
@typing.final
|
|
85
|
+
class Generation2HardwareFeatures(google.protobuf.message.Message):
|
|
86
|
+
"""A second hardware generation, which by default assumes PCI_TOPOLOGY_V2
|
|
87
|
+
and UEFI boot (with UEFI related features).
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
91
|
+
|
|
92
|
+
def __init__(
|
|
93
|
+
self,
|
|
94
|
+
) -> None: ...
|
|
95
|
+
|
|
96
|
+
global___Generation2HardwareFeatures = Generation2HardwareFeatures
|
|
@@ -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
|
+
...
|
|
@@ -12,9 +12,10 @@ _sym_db = _symbol_database.Default()
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
|
+
from yandex.cloud.compute.v1 import hardware_generation_pb2 as yandex_dot_cloud_dot_compute_dot_v1_dot_hardware__generation__pb2
|
|
15
16
|
|
|
16
17
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#yandex/cloud/compute/v1/image.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#yandex/cloud/compute/v1/image.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x31yandex/cloud/compute/v1/hardware_generation.proto\"\xc4\x04\n\x05Image\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12:\n\x06labels\x18\x06 \x03(\x0b\x32*.yandex.cloud.compute.v1.Image.LabelsEntry\x12\x0e\n\x06\x66\x61mily\x18\x07 \x01(\t\x12\x14\n\x0cstorage_size\x18\x08 \x01(\x03\x12\x15\n\rmin_disk_size\x18\t \x01(\x03\x12\x13\n\x0bproduct_ids\x18\n \x03(\t\x12\x35\n\x06status\x18\x0b \x01(\x0e\x32%.yandex.cloud.compute.v1.Image.Status\x12\'\n\x02os\x18\x0c \x01(\x0b\x32\x1b.yandex.cloud.compute.v1.Os\x12\x0e\n\x06pooled\x18\r \x01(\x08\x12H\n\x13hardware_generation\x18\x0e \x01(\x0b\x32+.yandex.cloud.compute.v1.HardwareGeneration\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"R\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\"j\n\x02Os\x12.\n\x04type\x18\x01 \x01(\x0e\x32 .yandex.cloud.compute.v1.Os.Type\"4\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05LINUX\x10\x01\x12\x0b\n\x07WINDOWS\x10\x02\x42\x62\n\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3')
|
|
18
19
|
|
|
19
20
|
_globals = globals()
|
|
20
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -24,14 +25,14 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
24
25
|
DESCRIPTOR._serialized_options = b'\n\033yandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;compute'
|
|
25
26
|
_IMAGE_LABELSENTRY._options = None
|
|
26
27
|
_IMAGE_LABELSENTRY._serialized_options = b'8\001'
|
|
27
|
-
_globals['_IMAGE']._serialized_start=
|
|
28
|
-
_globals['_IMAGE']._serialized_end=
|
|
29
|
-
_globals['_IMAGE_LABELSENTRY']._serialized_start=
|
|
30
|
-
_globals['_IMAGE_LABELSENTRY']._serialized_end=
|
|
31
|
-
_globals['_IMAGE_STATUS']._serialized_start=
|
|
32
|
-
_globals['_IMAGE_STATUS']._serialized_end=
|
|
33
|
-
_globals['_OS']._serialized_start=
|
|
34
|
-
_globals['_OS']._serialized_end=
|
|
35
|
-
_globals['_OS_TYPE']._serialized_start=
|
|
36
|
-
_globals['_OS_TYPE']._serialized_end=
|
|
28
|
+
_globals['_IMAGE']._serialized_start=149
|
|
29
|
+
_globals['_IMAGE']._serialized_end=729
|
|
30
|
+
_globals['_IMAGE_LABELSENTRY']._serialized_start=600
|
|
31
|
+
_globals['_IMAGE_LABELSENTRY']._serialized_end=645
|
|
32
|
+
_globals['_IMAGE_STATUS']._serialized_start=647
|
|
33
|
+
_globals['_IMAGE_STATUS']._serialized_end=729
|
|
34
|
+
_globals['_OS']._serialized_start=731
|
|
35
|
+
_globals['_OS']._serialized_end=837
|
|
36
|
+
_globals['_OS_TYPE']._serialized_start=785
|
|
37
|
+
_globals['_OS_TYPE']._serialized_end=837
|
|
37
38
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -12,6 +12,7 @@ import google.protobuf.message
|
|
|
12
12
|
import google.protobuf.timestamp_pb2
|
|
13
13
|
import sys
|
|
14
14
|
import typing
|
|
15
|
+
import yandex.cloud.compute.v1.hardware_generation_pb2
|
|
15
16
|
|
|
16
17
|
if sys.version_info >= (3, 10):
|
|
17
18
|
import typing as typing_extensions
|
|
@@ -82,6 +83,7 @@ class Image(google.protobuf.message.Message):
|
|
|
82
83
|
STATUS_FIELD_NUMBER: builtins.int
|
|
83
84
|
OS_FIELD_NUMBER: builtins.int
|
|
84
85
|
POOLED_FIELD_NUMBER: builtins.int
|
|
86
|
+
HARDWARE_GENERATION_FIELD_NUMBER: builtins.int
|
|
85
87
|
id: builtins.str
|
|
86
88
|
"""ID of the image."""
|
|
87
89
|
folder_id: builtins.str
|
|
@@ -127,6 +129,12 @@ class Image(google.protobuf.message.Message):
|
|
|
127
129
|
def os(self) -> global___Os:
|
|
128
130
|
"""Operating system that is contained in the image."""
|
|
129
131
|
|
|
132
|
+
@property
|
|
133
|
+
def hardware_generation(self) -> yandex.cloud.compute.v1.hardware_generation_pb2.HardwareGeneration:
|
|
134
|
+
"""If specified, forces the same HardwareGeneration features to be applied to the instance
|
|
135
|
+
created using this image as a source for the boot disk. Otherwise the current default will be used.
|
|
136
|
+
"""
|
|
137
|
+
|
|
130
138
|
def __init__(
|
|
131
139
|
self,
|
|
132
140
|
*,
|
|
@@ -143,9 +151,10 @@ class Image(google.protobuf.message.Message):
|
|
|
143
151
|
status: global___Image.Status.ValueType = ...,
|
|
144
152
|
os: global___Os | None = ...,
|
|
145
153
|
pooled: builtins.bool = ...,
|
|
154
|
+
hardware_generation: yandex.cloud.compute.v1.hardware_generation_pb2.HardwareGeneration | None = ...,
|
|
146
155
|
) -> None: ...
|
|
147
|
-
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "os", b"os"]) -> builtins.bool: ...
|
|
148
|
-
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "description", b"description", "family", b"family", "folder_id", b"folder_id", "id", b"id", "labels", b"labels", "min_disk_size", b"min_disk_size", "name", b"name", "os", b"os", "pooled", b"pooled", "product_ids", b"product_ids", "status", b"status", "storage_size", b"storage_size"]) -> None: ...
|
|
156
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "hardware_generation", b"hardware_generation", "os", b"os"]) -> builtins.bool: ...
|
|
157
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "description", b"description", "family", b"family", "folder_id", b"folder_id", "hardware_generation", b"hardware_generation", "id", b"id", "labels", b"labels", "min_disk_size", b"min_disk_size", "name", b"name", "os", b"os", "pooled", b"pooled", "product_ids", b"product_ids", "status", b"status", "storage_size", b"storage_size"]) -> None: ...
|
|
149
158
|
|
|
150
159
|
global___Image = Image
|
|
151
160
|
|