yandexcloud 0.355.0__py3-none-any.whl → 0.356.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/backup_service_pb2.py +46 -40
- yandex/cloud/backup/v1/backup_service_pb2.pyi +26 -4
- yandex/cloud/baremetal/v1alpha/configuration_service_pb2.py +14 -9
- yandex/cloud/baremetal/v1alpha/hardware_pool_service_pb2.py +14 -9
- yandex/cloud/baremetal/v1alpha/image_service_pb2.py +39 -32
- yandex/cloud/baremetal/v1alpha/private_cloud_connection_service_pb2.py +29 -24
- yandex/cloud/baremetal/v1alpha/private_subnet_service_pb2.py +43 -36
- yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.py +39 -32
- yandex/cloud/baremetal/v1alpha/public_subnet_service_pb2.pyi +3 -2
- yandex/cloud/baremetal/v1alpha/server_service_pb2.py +83 -76
- yandex/cloud/baremetal/v1alpha/storage_service_pb2.py +16 -11
- yandex/cloud/baremetal/v1alpha/vrf_service_pb2.py +39 -32
- yandex/cloud/baremetal/v1alpha/zone_service_pb2.py +14 -9
- yandex/cloud/datatransfer/v1/endpoint_service_pb2.pyi +4 -2
- yandex/cloud/datatransfer/v1/endpoint_service_pb2_grpc.py +6 -3
- yandex/cloud/datatransfer/v1/endpoint_service_pb2_grpc.pyi +9 -3
- yandex/cloud/datatransfer/v1/transfer_pb2.py +50 -48
- yandex/cloud/datatransfer/v1/transfer_pb2.pyi +23 -4
- yandex/cloud/datatransfer/v1/transfer_service_pb2.py +32 -32
- yandex/cloud/datatransfer/v1/transfer_service_pb2.pyi +16 -6
- yandex/cloud/datatransfer/v1/transfer_service_pb2_grpc.py +3 -6
- yandex/cloud/datatransfer/v1/transfer_service_pb2_grpc.pyi +0 -6
- yandex/cloud/iot/broker/v1/broker_service_pb2.py +49 -49
- yandex/cloud/iot/devices/v1/device_service_pb2.py +53 -53
- yandex/cloud/iot/devices/v1/registry_service_pb2.py +73 -73
- yandex/cloud/maintenance/v2/common_pb2.py +2 -2
- yandex/cloud/maintenance/v2/common_pb2.pyi +1 -1
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.py +82 -78
- yandex/cloud/mdb/clickhouse/v1/config/clickhouse_pb2.pyi +27 -1
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2.py +76 -76
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2.pyi +4 -0
- yandex/cloud/searchapi/v2/gen_search_service_pb2.py +22 -22
- yandex/cloud/searchapi/v2/gen_search_service_pb2.pyi +5 -1
- yandex/cloud/serverless/containers/v1/container_pb2.py +46 -44
- yandex/cloud/serverless/containers/v1/container_pb2.pyi +25 -3
- yandex/cloud/storage/v1/presign_service_pb2.py +47 -0
- yandex/cloud/storage/v1/presign_service_pb2.pyi +117 -0
- yandex/cloud/storage/v1/presign_service_pb2_grpc.py +101 -0
- yandex/cloud/storage/v1/presign_service_pb2_grpc.pyi +50 -0
- yandex/cloud/trino/v1/access_control_pb2.py +212 -0
- yandex/cloud/trino/v1/access_control_pb2.pyi +926 -0
- yandex/cloud/trino/v1/access_control_pb2_grpc.py +24 -0
- yandex/cloud/trino/v1/access_control_pb2_grpc.pyi +17 -0
- yandex/cloud/trino/v1/cluster_pb2.py +44 -43
- yandex/cloud/trino/v1/cluster_pb2.pyi +9 -2
- yandex/cloud/trino/v1/cluster_service_pb2.py +50 -49
- yandex/cloud/trino/v1/cluster_service_pb2.pyi +17 -4
- yandex/cloud/ytsaurus/v1/cluster_pb2.py +40 -37
- yandex/cloud/ytsaurus/v1/cluster_pb2.pyi +32 -18
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.356.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.356.0.dist-info}/RECORD +56 -48
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.356.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.356.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.356.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.356.0.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,7 @@ from yandex.cloud.logging.v1 import log_entry_pb2 as yandex_dot_cloud_dot_loggin
|
|
|
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'\n5yandex/cloud/serverless/containers/v1/container.proto\x12%yandex.cloud.serverless.containers.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\'yandex/cloud/logging/v1/log_entry.proto\x1a\x1dyandex/cloud/validation.proto\"\xab\x03\n\tContainer\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\x12L\n\x06labels\x18\x06 \x03(\x0b\x32<.yandex.cloud.serverless.containers.v1.Container.LabelsEntry\x12\x0b\n\x03url\x18\x08 \x01(\t\x12G\n\x06status\x18\t \x01(\x0e\x32\x37.yandex.cloud.serverless.containers.v1.Container.Status\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"S\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\t\n\x05\x45RROR\x10\x04J\x04\x08\x07\x10\x08\"\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5yandex/cloud/serverless/containers/v1/container.proto\x12%yandex.cloud.serverless.containers.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\'yandex/cloud/logging/v1/log_entry.proto\x1a\x1dyandex/cloud/validation.proto\"\xab\x03\n\tContainer\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\x12L\n\x06labels\x18\x06 \x03(\x0b\x32<.yandex.cloud.serverless.containers.v1.Container.LabelsEntry\x12\x0b\n\x03url\x18\x08 \x01(\t\x12G\n\x06status\x18\t \x01(\x0e\x32\x37.yandex.cloud.serverless.containers.v1.Container.Status\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"S\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\t\n\x05\x45RROR\x10\x04J\x04\x08\x07\x10\x08\"\xdc\t\n\x08Revision\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x63ontainer_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x05image\x18\x05 \x01(\x0b\x32,.yandex.cloud.serverless.containers.v1.Image\x12\x43\n\tresources\x18\x06 \x01(\x0b\x32\x30.yandex.cloud.serverless.containers.v1.Resources\x12\x34\n\x11\x65xecution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x63oncurrency\x18\x08 \x01(\x03\x12\x1a\n\x12service_account_id\x18\t \x01(\t\x12\x46\n\x06status\x18\n \x01(\x0e\x32\x36.yandex.cloud.serverless.containers.v1.Revision.Status\x12>\n\x07secrets\x18\x0b \x03(\x0b\x32-.yandex.cloud.serverless.containers.v1.Secret\x12I\n\x0c\x63onnectivity\x18\x0c \x01(\x0b\x32\x33.yandex.cloud.serverless.containers.v1.Connectivity\x12P\n\x10provision_policy\x18\r \x01(\x0b\x32\x36.yandex.cloud.serverless.containers.v1.ProvisionPolicy\x12L\n\x0escaling_policy\x18\x0e \x01(\x0b\x32\x34.yandex.cloud.serverless.containers.v1.ScalingPolicy\x12\x46\n\x0blog_options\x18\x0f \x01(\x0b\x32\x31.yandex.cloud.serverless.containers.v1.LogOptions\x12K\n\x0estorage_mounts\x18\x10 \x03(\x0b\x32\x33.yandex.cloud.serverless.containers.v1.StorageMount\x12<\n\x06mounts\x18\x11 \x03(\x0b\x32,.yandex.cloud.serverless.containers.v1.Mount\x12?\n\x07runtime\x18\x12 \x01(\x0b\x32..yandex.cloud.serverless.containers.v1.Runtime\x12P\n\x10metadata_options\x18\x13 \x01(\x0b\x32\x36.yandex.cloud.serverless.containers.v1.MetadataOptions\x12]\n\x17\x61sync_invocation_config\x18\x14 \x01(\x0b\x32<.yandex.cloud.serverless.containers.v1.AsyncInvocationConfig\"H\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08OBSOLETE\x10\x03\"\xf0\x02\n\x05Image\x12\x11\n\timage_url\x18\x01 \x01(\t\x12\x14\n\x0cimage_digest\x18\x02 \x01(\t\x12?\n\x07\x63ommand\x18\x03 \x01(\x0b\x32..yandex.cloud.serverless.containers.v1.Command\x12\x39\n\x04\x61rgs\x18\x04 \x01(\x0b\x32+.yandex.cloud.serverless.containers.v1.Args\x12y\n\x0b\x65nvironment\x18\x05 \x03(\x0b\x32=.yandex.cloud.serverless.containers.v1.Image.EnvironmentEntryB%\x8a\xc8\x31\x06<=4096\xb2\xc8\x31\x17\x12\x15[a-zA-Z][a-zA-Z0-9_]*\x12\x13\n\x0bworking_dir\x18\x06 \x01(\t\x1a\x32\n\x10\x45nvironmentEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1a\n\x07\x43ommand\x12\x0f\n\x07\x63ommand\x18\x01 \x03(\t\"\x14\n\x04\x41rgs\x12\x0c\n\x04\x61rgs\x18\x01 \x03(\t\"o\n\tResources\x12(\n\x06memory\x18\x01 \x01(\x03\x42\x18\xfa\xc7\x31\x14\x31\x33\x34\x32\x31\x37\x37\x32\x38-8589934592\x12\x16\n\x05\x63ores\x18\x02 \x01(\x03\x42\x07\xfa\xc7\x31\x03\x30-4\x12 \n\rcore_fraction\x18\x03 \x01(\x03\x42\t\xfa\xc7\x31\x05\x30-100\"(\n\x0fProvisionPolicy\x12\x15\n\rmin_instances\x18\x01 \x01(\x03\"b\n\x06Secret\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nversion_id\x18\x02 \x01(\t\x12\x0b\n\x03key\x18\x03 \x01(\t\x12\x1e\n\x14\x65nvironment_variable\x18\x04 \x01(\tH\x00\x42\x0b\n\treference\"B\n\x0c\x43onnectivity\x12\x12\n\nnetwork_id\x18\x01 \x01(\t\x12\x1e\n\nsubnet_ids\x18\x02 \x03(\tB\n\x8a\xc8\x31\x02>0\x90\xc8\x31\x01\"\xe0\x01\n\nLogOptions\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\x12;\n\x0clog_group_id\x18\x02 \x01(\tB#\xf2\xc7\x31\x1f([a-zA-Z][-a-zA-Z0-9_.]{0,63})?H\x00\x12\x38\n\tfolder_id\x18\x03 \x01(\tB#\xf2\xc7\x31\x1f([a-zA-Z][-a-zA-Z0-9_.]{0,63})?H\x00\x12:\n\tmin_level\x18\x04 \x01(\x0e\x32\'.yandex.cloud.logging.v1.LogLevel.LevelB\r\n\x0b\x64\x65stination\"J\n\rScalingPolicy\x12\x1c\n\x14zone_instances_limit\x18\x01 \x01(\x03\x12\x1b\n\x13zone_requests_limit\x18\x02 \x01(\x03\"\xaa\x01\n\x0cStorageMount\x12\x31\n\tbucket_id\x18\x01 \x01(\tB\x1e\xe8\xc7\x31\x01\xf2\xc7\x31\x0e[-.0-9a-zA-Z]*\x8a\xc8\x31\x04\x33-63\x12\x0e\n\x06prefix\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x04 \x01(\x08\x12:\n\x10mount_point_path\x18\x05 \x01(\tB \xe8\xc7\x31\x01\xf2\xc7\x31\x0f[-_0-9a-zA-Z/]*\x8a\xc8\x31\x05\x31-300:\x02\x18\x01J\x04\x08\x03\x10\x04\"\x93\x04\n\x05Mount\x12:\n\x10mount_point_path\x18\x02 \x01(\tB \xe8\xc7\x31\x01\xf2\xc7\x31\x0f[-_0-9a-zA-Z/]*\x8a\xc8\x31\x05\x31-300\x12?\n\x04mode\x18\x03 \x01(\x0e\x32\x31.yandex.cloud.serverless.containers.v1.Mount.Mode\x12T\n\x0eobject_storage\x18\n \x01(\x0b\x32:.yandex.cloud.serverless.containers.v1.Mount.ObjectStorageH\x00\x12T\n\x13\x65phemeral_disk_spec\x18\x0b \x01(\x0b\x32\x35.yandex.cloud.serverless.containers.v1.Mount.DiskSpecH\x00\x1aR\n\rObjectStorage\x12\x31\n\tbucket_id\x18\x01 \x01(\tB\x1e\xe8\xc7\x31\x01\xf2\xc7\x31\x0e[-.0-9a-zA-Z]*\x8a\xc8\x31\x04\x33-63\x12\x0e\n\x06prefix\x18\x02 \x01(\t\x1a\x34\n\x08\x44iskSpec\x12\x14\n\x04size\x18\x01 \x01(\x03\x42\x06\xfa\xc7\x31\x02>0\x12\x12\n\nblock_size\x18\x02 \x01(\x03\";\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\x42\x0e\n\x06target\x12\x04\xc0\xc1\x31\x01J\x04\x08\x04\x10\nJ\x04\x08\x01\x10\x02\"\xb1\x01\n\x07Runtime\x12\x43\n\x04http\x18\x01 \x01(\x0b\x32\x33.yandex.cloud.serverless.containers.v1.Runtime.HttpH\x00\x12\x43\n\x04task\x18\x02 \x01(\x0b\x32\x33.yandex.cloud.serverless.containers.v1.Runtime.TaskH\x00\x1a\x06\n\x04Http\x1a\x06\n\x04TaskB\x0c\n\x04type\x12\x04\xc0\xc1\x31\x01\"\xb8\x01\n\x0fMetadataOptions\x12P\n\x11gce_http_endpoint\x18\x01 \x01(\x0e\x32\x35.yandex.cloud.serverless.containers.v1.MetadataOption\x12S\n\x14\x61ws_v1_http_endpoint\x18\x02 \x01(\x0e\x32\x35.yandex.cloud.serverless.containers.v1.MetadataOption\"3\n\x15\x41syncInvocationConfig\x12\x1a\n\x12service_account_id\x18\x01 \x01(\t*L\n\x0eMetadataOption\x12\x1f\n\x1bMETADATA_OPTION_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x42\x81\x01\n)yandex.cloud.api.serverless.containers.v1ZTgithub.com/yandex-cloud/go-genproto/yandex/cloud/serverless/containers/v1;containersb\x06proto3')
|
|
32
32
|
|
|
33
33
|
_globals = globals()
|
|
34
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -70,8 +70,8 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
70
70
|
_globals['_MOUNT'].fields_by_name['mount_point_path']._serialized_options = b'\350\3071\001\362\3071\017[-_0-9a-zA-Z/]*\212\3101\0051-300'
|
|
71
71
|
_globals['_RUNTIME'].oneofs_by_name['type']._loaded_options = None
|
|
72
72
|
_globals['_RUNTIME'].oneofs_by_name['type']._serialized_options = b'\300\3011\001'
|
|
73
|
-
_globals['_METADATAOPTION']._serialized_start=
|
|
74
|
-
_globals['_METADATAOPTION']._serialized_end=
|
|
73
|
+
_globals['_METADATAOPTION']._serialized_start=4084
|
|
74
|
+
_globals['_METADATAOPTION']._serialized_end=4160
|
|
75
75
|
_globals['_CONTAINER']._serialized_start=234
|
|
76
76
|
_globals['_CONTAINER']._serialized_end=661
|
|
77
77
|
_globals['_CONTAINER_LABELSENTRY']._serialized_start=525
|
|
@@ -79,45 +79,47 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
79
79
|
_globals['_CONTAINER_STATUS']._serialized_start=572
|
|
80
80
|
_globals['_CONTAINER_STATUS']._serialized_end=655
|
|
81
81
|
_globals['_REVISION']._serialized_start=664
|
|
82
|
-
_globals['_REVISION']._serialized_end=
|
|
83
|
-
_globals['_REVISION_STATUS']._serialized_start=
|
|
84
|
-
_globals['_REVISION_STATUS']._serialized_end=
|
|
85
|
-
_globals['_IMAGE']._serialized_start=
|
|
86
|
-
_globals['_IMAGE']._serialized_end=
|
|
87
|
-
_globals['_IMAGE_ENVIRONMENTENTRY']._serialized_start=
|
|
88
|
-
_globals['_IMAGE_ENVIRONMENTENTRY']._serialized_end=
|
|
89
|
-
_globals['_COMMAND']._serialized_start=
|
|
90
|
-
_globals['_COMMAND']._serialized_end=
|
|
91
|
-
_globals['_ARGS']._serialized_start=
|
|
92
|
-
_globals['_ARGS']._serialized_end=
|
|
93
|
-
_globals['_RESOURCES']._serialized_start=
|
|
94
|
-
_globals['_RESOURCES']._serialized_end=
|
|
95
|
-
_globals['_PROVISIONPOLICY']._serialized_start=
|
|
96
|
-
_globals['_PROVISIONPOLICY']._serialized_end=
|
|
97
|
-
_globals['_SECRET']._serialized_start=
|
|
98
|
-
_globals['_SECRET']._serialized_end=
|
|
99
|
-
_globals['_CONNECTIVITY']._serialized_start=
|
|
100
|
-
_globals['_CONNECTIVITY']._serialized_end=
|
|
101
|
-
_globals['_LOGOPTIONS']._serialized_start=
|
|
102
|
-
_globals['_LOGOPTIONS']._serialized_end=
|
|
103
|
-
_globals['_SCALINGPOLICY']._serialized_start=
|
|
104
|
-
_globals['_SCALINGPOLICY']._serialized_end=
|
|
105
|
-
_globals['_STORAGEMOUNT']._serialized_start=
|
|
106
|
-
_globals['_STORAGEMOUNT']._serialized_end=
|
|
107
|
-
_globals['_MOUNT']._serialized_start=
|
|
108
|
-
_globals['_MOUNT']._serialized_end=
|
|
109
|
-
_globals['_MOUNT_OBJECTSTORAGE']._serialized_start=
|
|
110
|
-
_globals['_MOUNT_OBJECTSTORAGE']._serialized_end=
|
|
111
|
-
_globals['_MOUNT_DISKSPEC']._serialized_start=
|
|
112
|
-
_globals['_MOUNT_DISKSPEC']._serialized_end=
|
|
113
|
-
_globals['_MOUNT_MODE']._serialized_start=
|
|
114
|
-
_globals['_MOUNT_MODE']._serialized_end=
|
|
115
|
-
_globals['_RUNTIME']._serialized_start=
|
|
116
|
-
_globals['_RUNTIME']._serialized_end=
|
|
117
|
-
_globals['_RUNTIME_HTTP']._serialized_start=
|
|
118
|
-
_globals['_RUNTIME_HTTP']._serialized_end=
|
|
119
|
-
_globals['_RUNTIME_TASK']._serialized_start=
|
|
120
|
-
_globals['_RUNTIME_TASK']._serialized_end=
|
|
121
|
-
_globals['_METADATAOPTIONS']._serialized_start=
|
|
122
|
-
_globals['_METADATAOPTIONS']._serialized_end=
|
|
82
|
+
_globals['_REVISION']._serialized_end=1908
|
|
83
|
+
_globals['_REVISION_STATUS']._serialized_start=1836
|
|
84
|
+
_globals['_REVISION_STATUS']._serialized_end=1908
|
|
85
|
+
_globals['_IMAGE']._serialized_start=1911
|
|
86
|
+
_globals['_IMAGE']._serialized_end=2279
|
|
87
|
+
_globals['_IMAGE_ENVIRONMENTENTRY']._serialized_start=2229
|
|
88
|
+
_globals['_IMAGE_ENVIRONMENTENTRY']._serialized_end=2279
|
|
89
|
+
_globals['_COMMAND']._serialized_start=2281
|
|
90
|
+
_globals['_COMMAND']._serialized_end=2307
|
|
91
|
+
_globals['_ARGS']._serialized_start=2309
|
|
92
|
+
_globals['_ARGS']._serialized_end=2329
|
|
93
|
+
_globals['_RESOURCES']._serialized_start=2331
|
|
94
|
+
_globals['_RESOURCES']._serialized_end=2442
|
|
95
|
+
_globals['_PROVISIONPOLICY']._serialized_start=2444
|
|
96
|
+
_globals['_PROVISIONPOLICY']._serialized_end=2484
|
|
97
|
+
_globals['_SECRET']._serialized_start=2486
|
|
98
|
+
_globals['_SECRET']._serialized_end=2584
|
|
99
|
+
_globals['_CONNECTIVITY']._serialized_start=2586
|
|
100
|
+
_globals['_CONNECTIVITY']._serialized_end=2652
|
|
101
|
+
_globals['_LOGOPTIONS']._serialized_start=2655
|
|
102
|
+
_globals['_LOGOPTIONS']._serialized_end=2879
|
|
103
|
+
_globals['_SCALINGPOLICY']._serialized_start=2881
|
|
104
|
+
_globals['_SCALINGPOLICY']._serialized_end=2955
|
|
105
|
+
_globals['_STORAGEMOUNT']._serialized_start=2958
|
|
106
|
+
_globals['_STORAGEMOUNT']._serialized_end=3128
|
|
107
|
+
_globals['_MOUNT']._serialized_start=3131
|
|
108
|
+
_globals['_MOUNT']._serialized_end=3662
|
|
109
|
+
_globals['_MOUNT_OBJECTSTORAGE']._serialized_start=3437
|
|
110
|
+
_globals['_MOUNT_OBJECTSTORAGE']._serialized_end=3519
|
|
111
|
+
_globals['_MOUNT_DISKSPEC']._serialized_start=3521
|
|
112
|
+
_globals['_MOUNT_DISKSPEC']._serialized_end=3573
|
|
113
|
+
_globals['_MOUNT_MODE']._serialized_start=3575
|
|
114
|
+
_globals['_MOUNT_MODE']._serialized_end=3634
|
|
115
|
+
_globals['_RUNTIME']._serialized_start=3665
|
|
116
|
+
_globals['_RUNTIME']._serialized_end=3842
|
|
117
|
+
_globals['_RUNTIME_HTTP']._serialized_start=3814
|
|
118
|
+
_globals['_RUNTIME_HTTP']._serialized_end=3820
|
|
119
|
+
_globals['_RUNTIME_TASK']._serialized_start=3822
|
|
120
|
+
_globals['_RUNTIME_TASK']._serialized_end=3828
|
|
121
|
+
_globals['_METADATAOPTIONS']._serialized_start=3845
|
|
122
|
+
_globals['_METADATAOPTIONS']._serialized_end=4029
|
|
123
|
+
_globals['_ASYNCINVOCATIONCONFIG']._serialized_start=4031
|
|
124
|
+
_globals['_ASYNCINVOCATIONCONFIG']._serialized_end=4082
|
|
123
125
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -183,6 +183,7 @@ class Revision(google.protobuf.message.Message):
|
|
|
183
183
|
MOUNTS_FIELD_NUMBER: builtins.int
|
|
184
184
|
RUNTIME_FIELD_NUMBER: builtins.int
|
|
185
185
|
METADATA_OPTIONS_FIELD_NUMBER: builtins.int
|
|
186
|
+
ASYNC_INVOCATION_CONFIG_FIELD_NUMBER: builtins.int
|
|
186
187
|
id: builtins.str
|
|
187
188
|
"""ID of the revision."""
|
|
188
189
|
container_id: builtins.str
|
|
@@ -247,12 +248,16 @@ class Revision(google.protobuf.message.Message):
|
|
|
247
248
|
|
|
248
249
|
@property
|
|
249
250
|
def runtime(self) -> global___Runtime:
|
|
250
|
-
"""The container's execution mode"""
|
|
251
|
+
"""The container's execution mode."""
|
|
251
252
|
|
|
252
253
|
@property
|
|
253
254
|
def metadata_options(self) -> global___MetadataOptions:
|
|
254
255
|
"""Metadata options for the revision."""
|
|
255
256
|
|
|
257
|
+
@property
|
|
258
|
+
def async_invocation_config(self) -> global___AsyncInvocationConfig:
|
|
259
|
+
"""Config for asynchronous invocations of the revision."""
|
|
260
|
+
|
|
256
261
|
def __init__(
|
|
257
262
|
self,
|
|
258
263
|
*,
|
|
@@ -275,9 +280,10 @@ class Revision(google.protobuf.message.Message):
|
|
|
275
280
|
mounts: collections.abc.Iterable[global___Mount] | None = ...,
|
|
276
281
|
runtime: global___Runtime | None = ...,
|
|
277
282
|
metadata_options: global___MetadataOptions | None = ...,
|
|
283
|
+
async_invocation_config: global___AsyncInvocationConfig | None = ...,
|
|
278
284
|
) -> None: ...
|
|
279
|
-
def HasField(self, field_name: typing.Literal["connectivity", b"connectivity", "created_at", b"created_at", "execution_timeout", b"execution_timeout", "image", b"image", "log_options", b"log_options", "metadata_options", b"metadata_options", "provision_policy", b"provision_policy", "resources", b"resources", "runtime", b"runtime", "scaling_policy", b"scaling_policy"]) -> builtins.bool: ...
|
|
280
|
-
def ClearField(self, field_name: typing.Literal["concurrency", b"concurrency", "connectivity", b"connectivity", "container_id", b"container_id", "created_at", b"created_at", "description", b"description", "execution_timeout", b"execution_timeout", "id", b"id", "image", b"image", "log_options", b"log_options", "metadata_options", b"metadata_options", "mounts", b"mounts", "provision_policy", b"provision_policy", "resources", b"resources", "runtime", b"runtime", "scaling_policy", b"scaling_policy", "secrets", b"secrets", "service_account_id", b"service_account_id", "status", b"status", "storage_mounts", b"storage_mounts"]) -> None: ...
|
|
285
|
+
def HasField(self, field_name: typing.Literal["async_invocation_config", b"async_invocation_config", "connectivity", b"connectivity", "created_at", b"created_at", "execution_timeout", b"execution_timeout", "image", b"image", "log_options", b"log_options", "metadata_options", b"metadata_options", "provision_policy", b"provision_policy", "resources", b"resources", "runtime", b"runtime", "scaling_policy", b"scaling_policy"]) -> builtins.bool: ...
|
|
286
|
+
def ClearField(self, field_name: typing.Literal["async_invocation_config", b"async_invocation_config", "concurrency", b"concurrency", "connectivity", b"connectivity", "container_id", b"container_id", "created_at", b"created_at", "description", b"description", "execution_timeout", b"execution_timeout", "id", b"id", "image", b"image", "log_options", b"log_options", "metadata_options", b"metadata_options", "mounts", b"mounts", "provision_policy", b"provision_policy", "resources", b"resources", "runtime", b"runtime", "scaling_policy", b"scaling_policy", "secrets", b"secrets", "service_account_id", b"service_account_id", "status", b"status", "storage_mounts", b"storage_mounts"]) -> None: ...
|
|
281
287
|
|
|
282
288
|
global___Revision = Revision
|
|
283
289
|
|
|
@@ -732,3 +738,19 @@ class MetadataOptions(google.protobuf.message.Message):
|
|
|
732
738
|
def ClearField(self, field_name: typing.Literal["aws_v1_http_endpoint", b"aws_v1_http_endpoint", "gce_http_endpoint", b"gce_http_endpoint"]) -> None: ...
|
|
733
739
|
|
|
734
740
|
global___MetadataOptions = MetadataOptions
|
|
741
|
+
|
|
742
|
+
@typing.final
|
|
743
|
+
class AsyncInvocationConfig(google.protobuf.message.Message):
|
|
744
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
745
|
+
|
|
746
|
+
SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
|
747
|
+
service_account_id: builtins.str
|
|
748
|
+
"""Optional id of service account with permission to invoke container."""
|
|
749
|
+
def __init__(
|
|
750
|
+
self,
|
|
751
|
+
*,
|
|
752
|
+
service_account_id: builtins.str = ...,
|
|
753
|
+
) -> None: ...
|
|
754
|
+
def ClearField(self, field_name: typing.Literal["service_account_id", b"service_account_id"]) -> None: ...
|
|
755
|
+
|
|
756
|
+
global___AsyncInvocationConfig = AsyncInvocationConfig
|
|
@@ -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/storage/v1/presign_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/storage/v1/presign_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-yandex/cloud/storage/v1/presign_service.proto\x12\x17yandex.cloud.storage.v1\"\xed\x01\n\x14PresignObjectRequest\x12\x0f\n\x07\x65xpires\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06method\x18\x03 \x01(\t\x12K\n\x07headers\x18\x04 \x03(\x0b\x32:.yandex.cloud.storage.v1.PresignObjectRequest.HeadersEntry\x12\x12\n\nversion_id\x18\x05 \x01(\t\x12\x15\n\ras_attachment\x18\x06 \x01(\x08\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x7f\n\x12PresignURLsRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x14\n\x0cpresign_host\x18\x02 \x01(\t\x12>\n\x07objects\x18\x03 \x03(\x0b\x32-.yandex.cloud.storage.v1.PresignObjectRequest\"#\n\x13PresignURLsResponse\x12\x0c\n\x04urls\x18\x01 \x03(\t2u\n\x0ePresignService\x12\x63\n\x06\x43reate\x12+.yandex.cloud.storage.v1.PresignURLsRequest\x1a,.yandex.cloud.storage.v1.PresignURLsResponseBb\n\x1byandex.cloud.api.storage.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/storage/v1;storageb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.storage.v1.presign_service_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\033yandex.cloud.api.storage.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/storage/v1;storage'
|
|
35
|
+
_globals['_PRESIGNOBJECTREQUEST_HEADERSENTRY']._loaded_options = None
|
|
36
|
+
_globals['_PRESIGNOBJECTREQUEST_HEADERSENTRY']._serialized_options = b'8\001'
|
|
37
|
+
_globals['_PRESIGNOBJECTREQUEST']._serialized_start=75
|
|
38
|
+
_globals['_PRESIGNOBJECTREQUEST']._serialized_end=312
|
|
39
|
+
_globals['_PRESIGNOBJECTREQUEST_HEADERSENTRY']._serialized_start=266
|
|
40
|
+
_globals['_PRESIGNOBJECTREQUEST_HEADERSENTRY']._serialized_end=312
|
|
41
|
+
_globals['_PRESIGNURLSREQUEST']._serialized_start=314
|
|
42
|
+
_globals['_PRESIGNURLSREQUEST']._serialized_end=441
|
|
43
|
+
_globals['_PRESIGNURLSRESPONSE']._serialized_start=443
|
|
44
|
+
_globals['_PRESIGNURLSRESPONSE']._serialized_end=478
|
|
45
|
+
_globals['_PRESIGNSERVICE']._serialized_start=480
|
|
46
|
+
_globals['_PRESIGNSERVICE']._serialized_end=597
|
|
47
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
14
|
+
|
|
15
|
+
@typing.final
|
|
16
|
+
class PresignObjectRequest(google.protobuf.message.Message):
|
|
17
|
+
"""PresignObjectRequest represents a single object presign request"""
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class HeadersEntry(google.protobuf.message.Message):
|
|
23
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
|
+
|
|
25
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
26
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
27
|
+
key: builtins.str
|
|
28
|
+
value: builtins.str
|
|
29
|
+
def __init__(
|
|
30
|
+
self,
|
|
31
|
+
*,
|
|
32
|
+
key: builtins.str = ...,
|
|
33
|
+
value: builtins.str = ...,
|
|
34
|
+
) -> None: ...
|
|
35
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
36
|
+
|
|
37
|
+
EXPIRES_FIELD_NUMBER: builtins.int
|
|
38
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
39
|
+
METHOD_FIELD_NUMBER: builtins.int
|
|
40
|
+
HEADERS_FIELD_NUMBER: builtins.int
|
|
41
|
+
VERSION_ID_FIELD_NUMBER: builtins.int
|
|
42
|
+
AS_ATTACHMENT_FIELD_NUMBER: builtins.int
|
|
43
|
+
expires: builtins.int
|
|
44
|
+
"""Expiration time in seconds (1-604800, max 7 days)"""
|
|
45
|
+
name: builtins.str
|
|
46
|
+
"""Object name/key"""
|
|
47
|
+
method: builtins.str
|
|
48
|
+
"""HTTP method (GET, PUT, HEAD)"""
|
|
49
|
+
version_id: builtins.str
|
|
50
|
+
"""Object version ID (optional)"""
|
|
51
|
+
as_attachment: builtins.bool
|
|
52
|
+
"""Whether to force download as attachment"""
|
|
53
|
+
@property
|
|
54
|
+
def headers(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
55
|
+
"""Additional HTTP headers"""
|
|
56
|
+
|
|
57
|
+
def __init__(
|
|
58
|
+
self,
|
|
59
|
+
*,
|
|
60
|
+
expires: builtins.int = ...,
|
|
61
|
+
name: builtins.str = ...,
|
|
62
|
+
method: builtins.str = ...,
|
|
63
|
+
headers: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
64
|
+
version_id: builtins.str = ...,
|
|
65
|
+
as_attachment: builtins.bool = ...,
|
|
66
|
+
) -> None: ...
|
|
67
|
+
def ClearField(self, field_name: typing.Literal["as_attachment", b"as_attachment", "expires", b"expires", "headers", b"headers", "method", b"method", "name", b"name", "version_id", b"version_id"]) -> None: ...
|
|
68
|
+
|
|
69
|
+
global___PresignObjectRequest = PresignObjectRequest
|
|
70
|
+
|
|
71
|
+
@typing.final
|
|
72
|
+
class PresignURLsRequest(google.protobuf.message.Message):
|
|
73
|
+
"""PresignURLsRequest represents the request for presigning URLs"""
|
|
74
|
+
|
|
75
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
76
|
+
|
|
77
|
+
BUCKET_NAME_FIELD_NUMBER: builtins.int
|
|
78
|
+
PRESIGN_HOST_FIELD_NUMBER: builtins.int
|
|
79
|
+
OBJECTS_FIELD_NUMBER: builtins.int
|
|
80
|
+
bucket_name: builtins.str
|
|
81
|
+
"""Bucket name"""
|
|
82
|
+
presign_host: builtins.str
|
|
83
|
+
"""Custom presign host (optional)"""
|
|
84
|
+
@property
|
|
85
|
+
def objects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PresignObjectRequest]:
|
|
86
|
+
"""List of objects to presign"""
|
|
87
|
+
|
|
88
|
+
def __init__(
|
|
89
|
+
self,
|
|
90
|
+
*,
|
|
91
|
+
bucket_name: builtins.str = ...,
|
|
92
|
+
presign_host: builtins.str = ...,
|
|
93
|
+
objects: collections.abc.Iterable[global___PresignObjectRequest] | None = ...,
|
|
94
|
+
) -> None: ...
|
|
95
|
+
def ClearField(self, field_name: typing.Literal["bucket_name", b"bucket_name", "objects", b"objects", "presign_host", b"presign_host"]) -> None: ...
|
|
96
|
+
|
|
97
|
+
global___PresignURLsRequest = PresignURLsRequest
|
|
98
|
+
|
|
99
|
+
@typing.final
|
|
100
|
+
class PresignURLsResponse(google.protobuf.message.Message):
|
|
101
|
+
"""PresignURLsResponse represents the response with presigned URLs"""
|
|
102
|
+
|
|
103
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
104
|
+
|
|
105
|
+
URLS_FIELD_NUMBER: builtins.int
|
|
106
|
+
@property
|
|
107
|
+
def urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
108
|
+
"""List of presigned URLs corresponding to the requested objects"""
|
|
109
|
+
|
|
110
|
+
def __init__(
|
|
111
|
+
self,
|
|
112
|
+
*,
|
|
113
|
+
urls: collections.abc.Iterable[builtins.str] | None = ...,
|
|
114
|
+
) -> None: ...
|
|
115
|
+
def ClearField(self, field_name: typing.Literal["urls", b"urls"]) -> None: ...
|
|
116
|
+
|
|
117
|
+
global___PresignURLsResponse = PresignURLsResponse
|
|
@@ -0,0 +1,101 @@
|
|
|
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.storage.v1 import presign_service_pb2 as yandex_dot_cloud_dot_storage_dot_v1_dot_presign__service__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ f' but the generated code in yandex/cloud/storage/v1/presign_service_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class PresignServiceStub(object):
|
|
29
|
+
"""PresignService provides URL presigning functionality
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel):
|
|
33
|
+
"""Constructor.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
channel: A grpc.Channel.
|
|
37
|
+
"""
|
|
38
|
+
self.Create = channel.unary_unary(
|
|
39
|
+
'/yandex.cloud.storage.v1.PresignService/Create',
|
|
40
|
+
request_serializer=yandex_dot_cloud_dot_storage_dot_v1_dot_presign__service__pb2.PresignURLsRequest.SerializeToString,
|
|
41
|
+
response_deserializer=yandex_dot_cloud_dot_storage_dot_v1_dot_presign__service__pb2.PresignURLsResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class PresignServiceServicer(object):
|
|
46
|
+
"""PresignService provides URL presigning functionality
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def Create(self, request, context):
|
|
50
|
+
"""Create generates presigned URLs for the specified objects
|
|
51
|
+
"""
|
|
52
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
53
|
+
context.set_details('Method not implemented!')
|
|
54
|
+
raise NotImplementedError('Method not implemented!')
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def add_PresignServiceServicer_to_server(servicer, server):
|
|
58
|
+
rpc_method_handlers = {
|
|
59
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
60
|
+
servicer.Create,
|
|
61
|
+
request_deserializer=yandex_dot_cloud_dot_storage_dot_v1_dot_presign__service__pb2.PresignURLsRequest.FromString,
|
|
62
|
+
response_serializer=yandex_dot_cloud_dot_storage_dot_v1_dot_presign__service__pb2.PresignURLsResponse.SerializeToString,
|
|
63
|
+
),
|
|
64
|
+
}
|
|
65
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
|
+
'yandex.cloud.storage.v1.PresignService', rpc_method_handlers)
|
|
67
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
68
|
+
server.add_registered_method_handlers('yandex.cloud.storage.v1.PresignService', rpc_method_handlers)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# This class is part of an EXPERIMENTAL API.
|
|
72
|
+
class PresignService(object):
|
|
73
|
+
"""PresignService provides URL presigning functionality
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
@staticmethod
|
|
77
|
+
def Create(request,
|
|
78
|
+
target,
|
|
79
|
+
options=(),
|
|
80
|
+
channel_credentials=None,
|
|
81
|
+
call_credentials=None,
|
|
82
|
+
insecure=False,
|
|
83
|
+
compression=None,
|
|
84
|
+
wait_for_ready=None,
|
|
85
|
+
timeout=None,
|
|
86
|
+
metadata=None):
|
|
87
|
+
return grpc.experimental.unary_unary(
|
|
88
|
+
request,
|
|
89
|
+
target,
|
|
90
|
+
'/yandex.cloud.storage.v1.PresignService/Create',
|
|
91
|
+
yandex_dot_cloud_dot_storage_dot_v1_dot_presign__service__pb2.PresignURLsRequest.SerializeToString,
|
|
92
|
+
yandex_dot_cloud_dot_storage_dot_v1_dot_presign__service__pb2.PresignURLsResponse.FromString,
|
|
93
|
+
options,
|
|
94
|
+
channel_credentials,
|
|
95
|
+
insecure,
|
|
96
|
+
call_credentials,
|
|
97
|
+
compression,
|
|
98
|
+
wait_for_ready,
|
|
99
|
+
timeout,
|
|
100
|
+
metadata,
|
|
101
|
+
_registered_method=True)
|
|
@@ -0,0 +1,50 @@
|
|
|
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.storage.v1.presign_service_pb2
|
|
12
|
+
|
|
13
|
+
_T = typing.TypeVar("_T")
|
|
14
|
+
|
|
15
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
16
|
+
|
|
17
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
18
|
+
...
|
|
19
|
+
|
|
20
|
+
class PresignServiceStub:
|
|
21
|
+
"""PresignService provides URL presigning functionality"""
|
|
22
|
+
|
|
23
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
24
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
25
|
+
yandex.cloud.storage.v1.presign_service_pb2.PresignURLsRequest,
|
|
26
|
+
yandex.cloud.storage.v1.presign_service_pb2.PresignURLsResponse,
|
|
27
|
+
]
|
|
28
|
+
"""Create generates presigned URLs for the specified objects"""
|
|
29
|
+
|
|
30
|
+
class PresignServiceAsyncStub:
|
|
31
|
+
"""PresignService provides URL presigning functionality"""
|
|
32
|
+
|
|
33
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
34
|
+
yandex.cloud.storage.v1.presign_service_pb2.PresignURLsRequest,
|
|
35
|
+
yandex.cloud.storage.v1.presign_service_pb2.PresignURLsResponse,
|
|
36
|
+
]
|
|
37
|
+
"""Create generates presigned URLs for the specified objects"""
|
|
38
|
+
|
|
39
|
+
class PresignServiceServicer(metaclass=abc.ABCMeta):
|
|
40
|
+
"""PresignService provides URL presigning functionality"""
|
|
41
|
+
|
|
42
|
+
@abc.abstractmethod
|
|
43
|
+
def Create(
|
|
44
|
+
self,
|
|
45
|
+
request: yandex.cloud.storage.v1.presign_service_pb2.PresignURLsRequest,
|
|
46
|
+
context: _ServicerContext,
|
|
47
|
+
) -> typing.Union[yandex.cloud.storage.v1.presign_service_pb2.PresignURLsResponse, collections.abc.Awaitable[yandex.cloud.storage.v1.presign_service_pb2.PresignURLsResponse]]:
|
|
48
|
+
"""Create generates presigned URLs for the specified objects"""
|
|
49
|
+
|
|
50
|
+
def add_PresignServiceServicer_to_server(servicer: PresignServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|