yandexcloud 0.355.0__py3-none-any.whl → 0.357.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 +29 -3
- yandex/cloud/mdb/redis/v1/cluster_service_pb2.py +76 -78
- yandex/cloud/mdb/redis/v1/cluster_service_pb2.pyi +5 -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/metastore/v1/cluster_service_pb2.py +45 -45
- yandex/cloud/metastore/v1/maintenance_pb2.pyi +34 -6
- 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/apigateway/v1/apigateway_service_pb2.py +42 -42
- yandex/cloud/serverless/containers/v1/container_pb2.py +46 -44
- yandex/cloud/serverless/containers/v1/container_pb2.pyi +25 -3
- yandex/cloud/serverless/containers/v1/container_service_pb2.py +18 -18
- yandex/cloud/serverless/containers/v1/container_service_pb2.pyi +9 -3
- yandex/cloud/serverless/workflows/v1/workflow_pb2.py +20 -14
- yandex/cloud/serverless/workflows/v1/workflow_pb2.pyi +28 -2
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2.py +30 -30
- yandex/cloud/serverless/workflows/v1/workflow_service_pb2.pyi +16 -4
- 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.357.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.357.0.dist-info}/RECORD +67 -59
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.357.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.357.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.357.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.355.0.dist-info → yandexcloud-0.357.0.dist-info}/top_level.txt +0 -0
|
@@ -27,7 +27,7 @@ from yandex.cloud.logging.v1 import log_entry_pb2 as yandex_dot_cloud_dot_loggin
|
|
|
27
27
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3yandex/cloud/serverless/workflows/v1/workflow.proto\x12$yandex.cloud.serverless.workflows.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\'yandex/cloud/logging/v1/log_entry.proto\x1a\x1dyandex/cloud/validation.proto\"\
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3yandex/cloud/serverless/workflows/v1/workflow.proto\x12$yandex.cloud.serverless.workflows.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\'yandex/cloud/logging/v1/log_entry.proto\x1a\x1dyandex/cloud/validation.proto\"\xc7\x05\n\x08Workflow\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12R\n\rspecification\x18\x03 \x01(\x0b\x32;.yandex.cloud.serverless.workflows.v1.WorkflowSpecification\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12J\n\x06labels\x18\x07 \x03(\x0b\x32:.yandex.cloud.serverless.workflows.v1.Workflow.LabelsEntry\x12\x45\n\x06status\x18\x08 \x01(\x0e\x32\x35.yandex.cloud.serverless.workflows.v1.Workflow.Status\x12\x45\n\x0blog_options\x18\t \x01(\x0b\x32\x30.yandex.cloud.serverless.workflows.v1.LogOptions\x12\x12\n\nnetwork_id\x18\n \x01(\t\x12\x1a\n\x12service_account_id\x18\x0b \x01(\t\x12\x0f\n\x07\x65xpress\x18\x0c \x01(\x08\x12H\n\x08schedule\x18\r \x01(\x0b\x32\x36.yandex.cloud.serverless.workflows.v1.WorkflowSchedule\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"a\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\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\t\n\x05\x45RROR\x10\x05\"\xd4\x03\n\x0fWorkflowPreview\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\x12Q\n\x06labels\x18\x06 \x03(\x0b\x32\x41.yandex.cloud.serverless.workflows.v1.WorkflowPreview.LabelsEntry\x12\x45\n\x06status\x18\x07 \x01(\x0e\x32\x35.yandex.cloud.serverless.workflows.v1.Workflow.Status\x12\x45\n\x0blog_options\x18\x08 \x01(\x0b\x32\x30.yandex.cloud.serverless.workflows.v1.LogOptions\x12\x12\n\nnetwork_id\x18\t \x01(\t\x12\x1a\n\x12service_account_id\x18\n \x01(\t\x12\x0f\n\x07\x65xpress\x18\x0b \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\":\n\x15WorkflowSpecification\x12\x13\n\tspec_yaml\x18\x01 \x01(\tH\x00\x42\x0c\n\x04spec\x12\x04\xc0\xc1\x31\x01\"\x96\x01\n\nLogOptions\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\x12\x16\n\x0clog_group_id\x18\x02 \x01(\tH\x00\x12\x13\n\tfolder_id\x18\x03 \x01(\tH\x00\x12:\n\tmin_level\x18\x04 \x01(\x0e\x32\'.yandex.cloud.logging.v1.LogLevel.LevelB\r\n\x0b\x64\x65stination\"R\n\x10WorkflowSchedule\x12&\n\x0f\x63ron_expression\x18\x01 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05<=100\x12\x16\n\x08timezone\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x42~\n(yandex.cloud.api.serverless.workflows.v1ZRgithub.com/yandex-cloud/go-genproto/yandex/cloud/serverless/workflows/v1;workflowsb\x06proto3')
|
|
31
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -41,18 +41,24 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
41
41
|
_globals['_WORKFLOWPREVIEW_LABELSENTRY']._serialized_options = b'8\001'
|
|
42
42
|
_globals['_WORKFLOWSPECIFICATION'].oneofs_by_name['spec']._loaded_options = None
|
|
43
43
|
_globals['_WORKFLOWSPECIFICATION'].oneofs_by_name['spec']._serialized_options = b'\300\3011\001'
|
|
44
|
+
_globals['_WORKFLOWSCHEDULE'].fields_by_name['cron_expression']._loaded_options = None
|
|
45
|
+
_globals['_WORKFLOWSCHEDULE'].fields_by_name['cron_expression']._serialized_options = b'\350\3071\001\212\3101\005<=100'
|
|
46
|
+
_globals['_WORKFLOWSCHEDULE'].fields_by_name['timezone']._loaded_options = None
|
|
47
|
+
_globals['_WORKFLOWSCHEDULE'].fields_by_name['timezone']._serialized_options = b'\350\3071\001'
|
|
44
48
|
_globals['_WORKFLOW']._serialized_start=199
|
|
45
|
-
_globals['_WORKFLOW']._serialized_end=
|
|
46
|
-
_globals['_WORKFLOW_LABELSENTRY']._serialized_start=
|
|
47
|
-
_globals['_WORKFLOW_LABELSENTRY']._serialized_end=
|
|
48
|
-
_globals['_WORKFLOW_STATUS']._serialized_start=
|
|
49
|
-
_globals['_WORKFLOW_STATUS']._serialized_end=
|
|
50
|
-
_globals['_WORKFLOWPREVIEW']._serialized_start=
|
|
51
|
-
_globals['_WORKFLOWPREVIEW']._serialized_end=
|
|
52
|
-
_globals['_WORKFLOWPREVIEW_LABELSENTRY']._serialized_start=
|
|
53
|
-
_globals['_WORKFLOWPREVIEW_LABELSENTRY']._serialized_end=
|
|
54
|
-
_globals['_WORKFLOWSPECIFICATION']._serialized_start=
|
|
55
|
-
_globals['_WORKFLOWSPECIFICATION']._serialized_end=
|
|
56
|
-
_globals['_LOGOPTIONS']._serialized_start=
|
|
57
|
-
_globals['_LOGOPTIONS']._serialized_end=
|
|
49
|
+
_globals['_WORKFLOW']._serialized_end=910
|
|
50
|
+
_globals['_WORKFLOW_LABELSENTRY']._serialized_start=766
|
|
51
|
+
_globals['_WORKFLOW_LABELSENTRY']._serialized_end=811
|
|
52
|
+
_globals['_WORKFLOW_STATUS']._serialized_start=813
|
|
53
|
+
_globals['_WORKFLOW_STATUS']._serialized_end=910
|
|
54
|
+
_globals['_WORKFLOWPREVIEW']._serialized_start=913
|
|
55
|
+
_globals['_WORKFLOWPREVIEW']._serialized_end=1381
|
|
56
|
+
_globals['_WORKFLOWPREVIEW_LABELSENTRY']._serialized_start=766
|
|
57
|
+
_globals['_WORKFLOWPREVIEW_LABELSENTRY']._serialized_end=811
|
|
58
|
+
_globals['_WORKFLOWSPECIFICATION']._serialized_start=1383
|
|
59
|
+
_globals['_WORKFLOWSPECIFICATION']._serialized_end=1441
|
|
60
|
+
_globals['_LOGOPTIONS']._serialized_start=1444
|
|
61
|
+
_globals['_LOGOPTIONS']._serialized_end=1594
|
|
62
|
+
_globals['_WORKFLOWSCHEDULE']._serialized_start=1596
|
|
63
|
+
_globals['_WORKFLOWSCHEDULE']._serialized_end=1678
|
|
58
64
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -84,6 +84,7 @@ class Workflow(google.protobuf.message.Message):
|
|
|
84
84
|
NETWORK_ID_FIELD_NUMBER: builtins.int
|
|
85
85
|
SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
|
86
86
|
EXPRESS_FIELD_NUMBER: builtins.int
|
|
87
|
+
SCHEDULE_FIELD_NUMBER: builtins.int
|
|
87
88
|
id: builtins.str
|
|
88
89
|
"""ID of the Workflow. Generated at creation time."""
|
|
89
90
|
folder_id: builtins.str
|
|
@@ -116,6 +117,10 @@ class Workflow(google.protobuf.message.Message):
|
|
|
116
117
|
def log_options(self) -> global___LogOptions:
|
|
117
118
|
"""Options for logging from the Workflow."""
|
|
118
119
|
|
|
120
|
+
@property
|
|
121
|
+
def schedule(self) -> global___WorkflowSchedule:
|
|
122
|
+
"""Workflow schedule settings."""
|
|
123
|
+
|
|
119
124
|
def __init__(
|
|
120
125
|
self,
|
|
121
126
|
*,
|
|
@@ -131,9 +136,10 @@ class Workflow(google.protobuf.message.Message):
|
|
|
131
136
|
network_id: builtins.str = ...,
|
|
132
137
|
service_account_id: builtins.str = ...,
|
|
133
138
|
express: builtins.bool = ...,
|
|
139
|
+
schedule: global___WorkflowSchedule | None = ...,
|
|
134
140
|
) -> None: ...
|
|
135
|
-
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "log_options", b"log_options", "specification", b"specification"]) -> builtins.bool: ...
|
|
136
|
-
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "description", b"description", "express", b"express", "folder_id", b"folder_id", "id", b"id", "labels", b"labels", "log_options", b"log_options", "name", b"name", "network_id", b"network_id", "service_account_id", b"service_account_id", "specification", b"specification", "status", b"status"]) -> None: ...
|
|
141
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "log_options", b"log_options", "schedule", b"schedule", "specification", b"specification"]) -> builtins.bool: ...
|
|
142
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "description", b"description", "express", b"express", "folder_id", b"folder_id", "id", b"id", "labels", b"labels", "log_options", b"log_options", "name", b"name", "network_id", b"network_id", "schedule", b"schedule", "service_account_id", b"service_account_id", "specification", b"specification", "status", b"status"]) -> None: ...
|
|
137
143
|
|
|
138
144
|
global___Workflow = Workflow
|
|
139
145
|
|
|
@@ -266,3 +272,23 @@ class LogOptions(google.protobuf.message.Message):
|
|
|
266
272
|
def WhichOneof(self, oneof_group: typing.Literal["destination", b"destination"]) -> typing.Literal["log_group_id", "folder_id"] | None: ...
|
|
267
273
|
|
|
268
274
|
global___LogOptions = LogOptions
|
|
275
|
+
|
|
276
|
+
@typing.final
|
|
277
|
+
class WorkflowSchedule(google.protobuf.message.Message):
|
|
278
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
279
|
+
|
|
280
|
+
CRON_EXPRESSION_FIELD_NUMBER: builtins.int
|
|
281
|
+
TIMEZONE_FIELD_NUMBER: builtins.int
|
|
282
|
+
cron_expression: builtins.str
|
|
283
|
+
"""Cron expression for the Workflow schedule."""
|
|
284
|
+
timezone: builtins.str
|
|
285
|
+
"""Timezone for the Workflow schedule."""
|
|
286
|
+
def __init__(
|
|
287
|
+
self,
|
|
288
|
+
*,
|
|
289
|
+
cron_expression: builtins.str = ...,
|
|
290
|
+
timezone: builtins.str = ...,
|
|
291
|
+
) -> None: ...
|
|
292
|
+
def ClearField(self, field_name: typing.Literal["cron_expression", b"cron_expression", "timezone", b"timezone"]) -> None: ...
|
|
293
|
+
|
|
294
|
+
global___WorkflowSchedule = WorkflowSchedule
|
|
@@ -30,7 +30,7 @@ from yandex.cloud.serverless.workflows.v1 import workflow_pb2 as yandex_dot_clou
|
|
|
30
30
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n;yandex/cloud/serverless/workflows/v1/workflow_service.proto\x12$yandex.cloud.serverless.workflows.v1\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x33yandex/cloud/serverless/workflows/v1/workflow.proto\x1a\x1dyandex/cloud/validation.proto\"\
|
|
33
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n;yandex/cloud/serverless/workflows/v1/workflow_service.proto\x12$yandex.cloud.serverless.workflows.v1\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x33yandex/cloud/serverless/workflows/v1/workflow.proto\x1a\x1dyandex/cloud/validation.proto\"\x82\x05\n\x15\x43reateWorkflowRequest\x12\x17\n\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x36\n\x04name\x18\x02 \x01(\tB(\xe8\xc7\x31\x01\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\x9c\x01\n\x06labels\x18\x04 \x03(\x0b\x32G.yandex.cloud.serverless.workflows.v1.CreateWorkflowRequest.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\x12X\n\rspecification\x18\x05 \x01(\x0b\x32;.yandex.cloud.serverless.workflows.v1.WorkflowSpecificationB\x04\xe8\xc7\x31\x01\x12\x45\n\x0blog_options\x18\x06 \x01(\x0b\x32\x30.yandex.cloud.serverless.workflows.v1.LogOptions\x12\x12\n\nnetwork_id\x18\x07 \x01(\t\x12\x1a\n\x12service_account_id\x18\x08 \x01(\t\x12\x0f\n\x07\x65xpress\x18\t \x01(\x08\x12H\n\x08schedule\x18\n \x01(\x0b\x32\x36.yandex.cloud.serverless.workflows.v1.WorkflowSchedule\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"3\n\x16\x43reateWorkflowMetadata\x12\x19\n\x0bworkflow_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"\xab\x05\n\x15UpdateWorkflowRequest\x12\x19\n\x0bworkflow_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\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\x9c\x01\n\x06labels\x18\x04 \x03(\x0b\x32G.yandex.cloud.serverless.workflows.v1.UpdateWorkflowRequest.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\x12R\n\rspecification\x18\x05 \x01(\x0b\x32;.yandex.cloud.serverless.workflows.v1.WorkflowSpecification\x12\x45\n\x0blog_options\x18\x06 \x01(\x0b\x32\x30.yandex.cloud.serverless.workflows.v1.LogOptions\x12\x12\n\nnetwork_id\x18\x07 \x01(\t\x12\x1a\n\x12service_account_id\x18\x08 \x01(\t\x12/\n\x0bupdate_mask\x18\t \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0f\n\x07\x65xpress\x18\n \x01(\x08\x12H\n\x08schedule\x18\x0b \x01(\x0b\x32\x36.yandex.cloud.serverless.workflows.v1.WorkflowSchedule\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"3\n\x16UpdateWorkflowMetadata\x12\x19\n\x0bworkflow_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"/\n\x12GetWorkflowRequest\x12\x19\n\x0bworkflow_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"W\n\x13GetWorkflowResponse\x12@\n\x08workflow\x18\x01 \x01(\x0b\x32..yandex.cloud.serverless.workflows.v1.Workflow\"2\n\x15\x44\x65leteWorkflowRequest\x12\x19\n\x0bworkflow_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\"-\n\x16\x44\x65leteWorkflowMetadata\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\"f\n\x14ListWorkflowsRequest\x12\x17\n\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x11\n\tpage_size\x18\x02 \x01(\x03\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"z\n\x15ListWorkflowsResponse\x12H\n\tworkflows\x18\x01 \x03(\x0b\x32\x35.yandex.cloud.serverless.workflows.v1.WorkflowPreview\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8c\x01\n\x15ListOperationsRequest\x12\x19\n\x0bworkflow_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-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\"h\n\x16ListOperationsResponse\x12\x35\n\noperations\x18\x01 \x03(\x0b\x32!.yandex.cloud.operation.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xe7\x08\n\x0fWorkflowService\x12\xb1\x01\n\x06\x43reate\x12;.yandex.cloud.serverless.workflows.v1.CreateWorkflowRequest\x1a!.yandex.cloud.operation.Operation\"G\xb2\xd2*\"\n\x16\x43reateWorkflowMetadata\x12\x08Workflow\x82\xd3\xe4\x93\x02\x1b\"\x16/workflows/v1/workflow:\x01*\x12\xbf\x01\n\x06Update\x12;.yandex.cloud.serverless.workflows.v1.UpdateWorkflowRequest\x1a!.yandex.cloud.operation.Operation\"U\xb2\xd2*\"\n\x16UpdateWorkflowMetadata\x12\x08Workflow\x82\xd3\xe4\x93\x02)2$/workflows/v1/workflow/{workflow_id}:\x01*\x12\xa8\x01\n\x03Get\x12\x38.yandex.cloud.serverless.workflows.v1.GetWorkflowRequest\x1a\x39.yandex.cloud.serverless.workflows.v1.GetWorkflowResponse\",\x82\xd3\xe4\x93\x02&\x12$/workflows/v1/workflow/{workflow_id}\x12\xc9\x01\n\x06\x44\x65lete\x12;.yandex.cloud.serverless.workflows.v1.DeleteWorkflowRequest\x1a!.yandex.cloud.operation.Operation\"_\xb2\xd2*/\n\x16\x44\x65leteWorkflowMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02&*$/workflows/v1/workflow/{workflow_id}\x12\x9f\x01\n\x04List\x12:.yandex.cloud.serverless.workflows.v1.ListWorkflowsRequest\x1a;.yandex.cloud.serverless.workflows.v1.ListWorkflowsResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/workflows/v1/workflow\x12\xc4\x01\n\x0eListOperations\x12;.yandex.cloud.serverless.workflows.v1.ListOperationsRequest\x1a<.yandex.cloud.serverless.workflows.v1.ListOperationsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//workflows/v1/workflow/{workflow_id}/operationsB~\n(yandex.cloud.api.serverless.workflows.v1ZRgithub.com/yandex-cloud/go-genproto/yandex/cloud/serverless/workflows/v1;workflowsb\x06proto3')
|
|
34
34
|
|
|
35
35
|
_globals = globals()
|
|
36
36
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -91,33 +91,33 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
91
91
|
_globals['_WORKFLOWSERVICE'].methods_by_name['ListOperations']._loaded_options = None
|
|
92
92
|
_globals['_WORKFLOWSERVICE'].methods_by_name['ListOperations']._serialized_options = b'\202\323\344\223\0021\022//workflows/v1/workflow/{workflow_id}/operations'
|
|
93
93
|
_globals['_CREATEWORKFLOWREQUEST']._serialized_start=324
|
|
94
|
-
_globals['_CREATEWORKFLOWREQUEST']._serialized_end=
|
|
95
|
-
_globals['_CREATEWORKFLOWREQUEST_LABELSENTRY']._serialized_start=
|
|
96
|
-
_globals['_CREATEWORKFLOWREQUEST_LABELSENTRY']._serialized_end=
|
|
97
|
-
_globals['_CREATEWORKFLOWMETADATA']._serialized_start=
|
|
98
|
-
_globals['_CREATEWORKFLOWMETADATA']._serialized_end=
|
|
99
|
-
_globals['_UPDATEWORKFLOWREQUEST']._serialized_start=
|
|
100
|
-
_globals['_UPDATEWORKFLOWREQUEST']._serialized_end=
|
|
101
|
-
_globals['_UPDATEWORKFLOWREQUEST_LABELSENTRY']._serialized_start=
|
|
102
|
-
_globals['_UPDATEWORKFLOWREQUEST_LABELSENTRY']._serialized_end=
|
|
103
|
-
_globals['_UPDATEWORKFLOWMETADATA']._serialized_start=
|
|
104
|
-
_globals['_UPDATEWORKFLOWMETADATA']._serialized_end=
|
|
105
|
-
_globals['_GETWORKFLOWREQUEST']._serialized_start=
|
|
106
|
-
_globals['_GETWORKFLOWREQUEST']._serialized_end=
|
|
107
|
-
_globals['_GETWORKFLOWRESPONSE']._serialized_start=
|
|
108
|
-
_globals['_GETWORKFLOWRESPONSE']._serialized_end=
|
|
109
|
-
_globals['_DELETEWORKFLOWREQUEST']._serialized_start=
|
|
110
|
-
_globals['_DELETEWORKFLOWREQUEST']._serialized_end=
|
|
111
|
-
_globals['_DELETEWORKFLOWMETADATA']._serialized_start=
|
|
112
|
-
_globals['_DELETEWORKFLOWMETADATA']._serialized_end=
|
|
113
|
-
_globals['_LISTWORKFLOWSREQUEST']._serialized_start=
|
|
114
|
-
_globals['_LISTWORKFLOWSREQUEST']._serialized_end=
|
|
115
|
-
_globals['_LISTWORKFLOWSRESPONSE']._serialized_start=
|
|
116
|
-
_globals['_LISTWORKFLOWSRESPONSE']._serialized_end=
|
|
117
|
-
_globals['_LISTOPERATIONSREQUEST']._serialized_start=
|
|
118
|
-
_globals['_LISTOPERATIONSREQUEST']._serialized_end=
|
|
119
|
-
_globals['_LISTOPERATIONSRESPONSE']._serialized_start=
|
|
120
|
-
_globals['_LISTOPERATIONSRESPONSE']._serialized_end=
|
|
121
|
-
_globals['_WORKFLOWSERVICE']._serialized_start=
|
|
122
|
-
_globals['_WORKFLOWSERVICE']._serialized_end=
|
|
94
|
+
_globals['_CREATEWORKFLOWREQUEST']._serialized_end=966
|
|
95
|
+
_globals['_CREATEWORKFLOWREQUEST_LABELSENTRY']._serialized_start=921
|
|
96
|
+
_globals['_CREATEWORKFLOWREQUEST_LABELSENTRY']._serialized_end=966
|
|
97
|
+
_globals['_CREATEWORKFLOWMETADATA']._serialized_start=968
|
|
98
|
+
_globals['_CREATEWORKFLOWMETADATA']._serialized_end=1019
|
|
99
|
+
_globals['_UPDATEWORKFLOWREQUEST']._serialized_start=1022
|
|
100
|
+
_globals['_UPDATEWORKFLOWREQUEST']._serialized_end=1705
|
|
101
|
+
_globals['_UPDATEWORKFLOWREQUEST_LABELSENTRY']._serialized_start=921
|
|
102
|
+
_globals['_UPDATEWORKFLOWREQUEST_LABELSENTRY']._serialized_end=966
|
|
103
|
+
_globals['_UPDATEWORKFLOWMETADATA']._serialized_start=1707
|
|
104
|
+
_globals['_UPDATEWORKFLOWMETADATA']._serialized_end=1758
|
|
105
|
+
_globals['_GETWORKFLOWREQUEST']._serialized_start=1760
|
|
106
|
+
_globals['_GETWORKFLOWREQUEST']._serialized_end=1807
|
|
107
|
+
_globals['_GETWORKFLOWRESPONSE']._serialized_start=1809
|
|
108
|
+
_globals['_GETWORKFLOWRESPONSE']._serialized_end=1896
|
|
109
|
+
_globals['_DELETEWORKFLOWREQUEST']._serialized_start=1898
|
|
110
|
+
_globals['_DELETEWORKFLOWREQUEST']._serialized_end=1948
|
|
111
|
+
_globals['_DELETEWORKFLOWMETADATA']._serialized_start=1950
|
|
112
|
+
_globals['_DELETEWORKFLOWMETADATA']._serialized_end=1995
|
|
113
|
+
_globals['_LISTWORKFLOWSREQUEST']._serialized_start=1997
|
|
114
|
+
_globals['_LISTWORKFLOWSREQUEST']._serialized_end=2099
|
|
115
|
+
_globals['_LISTWORKFLOWSRESPONSE']._serialized_start=2101
|
|
116
|
+
_globals['_LISTWORKFLOWSRESPONSE']._serialized_end=2223
|
|
117
|
+
_globals['_LISTOPERATIONSREQUEST']._serialized_start=2226
|
|
118
|
+
_globals['_LISTOPERATIONSREQUEST']._serialized_end=2366
|
|
119
|
+
_globals['_LISTOPERATIONSRESPONSE']._serialized_start=2368
|
|
120
|
+
_globals['_LISTOPERATIONSRESPONSE']._serialized_end=2472
|
|
121
|
+
_globals['_WORKFLOWSERVICE']._serialized_start=2475
|
|
122
|
+
_globals['_WORKFLOWSERVICE']._serialized_end=3602
|
|
123
123
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -44,6 +44,7 @@ class CreateWorkflowRequest(google.protobuf.message.Message):
|
|
|
44
44
|
NETWORK_ID_FIELD_NUMBER: builtins.int
|
|
45
45
|
SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
|
46
46
|
EXPRESS_FIELD_NUMBER: builtins.int
|
|
47
|
+
SCHEDULE_FIELD_NUMBER: builtins.int
|
|
47
48
|
folder_id: builtins.str
|
|
48
49
|
"""ID of the folder to create Workflow in."""
|
|
49
50
|
name: builtins.str
|
|
@@ -70,6 +71,10 @@ class CreateWorkflowRequest(google.protobuf.message.Message):
|
|
|
70
71
|
def log_options(self) -> yandex.cloud.serverless.workflows.v1.workflow_pb2.LogOptions:
|
|
71
72
|
"""Options for logging from Workflow."""
|
|
72
73
|
|
|
74
|
+
@property
|
|
75
|
+
def schedule(self) -> yandex.cloud.serverless.workflows.v1.workflow_pb2.WorkflowSchedule:
|
|
76
|
+
"""Workflow schedule settings."""
|
|
77
|
+
|
|
73
78
|
def __init__(
|
|
74
79
|
self,
|
|
75
80
|
*,
|
|
@@ -82,9 +87,10 @@ class CreateWorkflowRequest(google.protobuf.message.Message):
|
|
|
82
87
|
network_id: builtins.str = ...,
|
|
83
88
|
service_account_id: builtins.str = ...,
|
|
84
89
|
express: builtins.bool = ...,
|
|
90
|
+
schedule: yandex.cloud.serverless.workflows.v1.workflow_pb2.WorkflowSchedule | None = ...,
|
|
85
91
|
) -> None: ...
|
|
86
|
-
def HasField(self, field_name: typing.Literal["log_options", b"log_options", "specification", b"specification"]) -> builtins.bool: ...
|
|
87
|
-
def ClearField(self, field_name: typing.Literal["description", b"description", "express", b"express", "folder_id", b"folder_id", "labels", b"labels", "log_options", b"log_options", "name", b"name", "network_id", b"network_id", "service_account_id", b"service_account_id", "specification", b"specification"]) -> None: ...
|
|
92
|
+
def HasField(self, field_name: typing.Literal["log_options", b"log_options", "schedule", b"schedule", "specification", b"specification"]) -> builtins.bool: ...
|
|
93
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "express", b"express", "folder_id", b"folder_id", "labels", b"labels", "log_options", b"log_options", "name", b"name", "network_id", b"network_id", "schedule", b"schedule", "service_account_id", b"service_account_id", "specification", b"specification"]) -> None: ...
|
|
88
94
|
|
|
89
95
|
global___CreateWorkflowRequest = CreateWorkflowRequest
|
|
90
96
|
|
|
@@ -134,6 +140,7 @@ class UpdateWorkflowRequest(google.protobuf.message.Message):
|
|
|
134
140
|
SERVICE_ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
|
135
141
|
UPDATE_MASK_FIELD_NUMBER: builtins.int
|
|
136
142
|
EXPRESS_FIELD_NUMBER: builtins.int
|
|
143
|
+
SCHEDULE_FIELD_NUMBER: builtins.int
|
|
137
144
|
workflow_id: builtins.str
|
|
138
145
|
"""ID of the Workflow."""
|
|
139
146
|
name: builtins.str
|
|
@@ -162,6 +169,10 @@ class UpdateWorkflowRequest(google.protobuf.message.Message):
|
|
|
162
169
|
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
|
|
163
170
|
"""Field mask that specifies which fields of the Workflow should be updated."""
|
|
164
171
|
|
|
172
|
+
@property
|
|
173
|
+
def schedule(self) -> yandex.cloud.serverless.workflows.v1.workflow_pb2.WorkflowSchedule:
|
|
174
|
+
"""Workflow schedule settings."""
|
|
175
|
+
|
|
165
176
|
def __init__(
|
|
166
177
|
self,
|
|
167
178
|
*,
|
|
@@ -175,9 +186,10 @@ class UpdateWorkflowRequest(google.protobuf.message.Message):
|
|
|
175
186
|
service_account_id: builtins.str = ...,
|
|
176
187
|
update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ...,
|
|
177
188
|
express: builtins.bool = ...,
|
|
189
|
+
schedule: yandex.cloud.serverless.workflows.v1.workflow_pb2.WorkflowSchedule | None = ...,
|
|
178
190
|
) -> None: ...
|
|
179
|
-
def HasField(self, field_name: typing.Literal["log_options", b"log_options", "specification", b"specification", "update_mask", b"update_mask"]) -> builtins.bool: ...
|
|
180
|
-
def ClearField(self, field_name: typing.Literal["description", b"description", "express", b"express", "labels", b"labels", "log_options", b"log_options", "name", b"name", "network_id", b"network_id", "service_account_id", b"service_account_id", "specification", b"specification", "update_mask", b"update_mask", "workflow_id", b"workflow_id"]) -> None: ...
|
|
191
|
+
def HasField(self, field_name: typing.Literal["log_options", b"log_options", "schedule", b"schedule", "specification", b"specification", "update_mask", b"update_mask"]) -> builtins.bool: ...
|
|
192
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "express", b"express", "labels", b"labels", "log_options", b"log_options", "name", b"name", "network_id", b"network_id", "schedule", b"schedule", "service_account_id", b"service_account_id", "specification", b"specification", "update_mask", b"update_mask", "workflow_id", b"workflow_id"]) -> None: ...
|
|
181
193
|
|
|
182
194
|
global___UpdateWorkflowRequest = UpdateWorkflowRequest
|
|
183
195
|
|
|
@@ -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: ...
|