yandexcloud 0.323.0__py3-none-any.whl → 0.324.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.py +27 -27
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.pyi +15 -3
- yandex/cloud/backup/v1/backup_service_pb2.py +42 -41
- yandex/cloud/backup/v1/backup_service_pb2.pyi +6 -1
- yandex/cloud/billing/v1/customer_service_pb2.pyi +5 -4
- yandex/cloud/cloudregistry/__init__.py +0 -0
- yandex/cloud/cloudregistry/v1/__init__.py +0 -0
- yandex/cloud/cloudregistry/v1/artifact_pb2.py +31 -0
- yandex/cloud/cloudregistry/v1/artifact_pb2.pyi +110 -0
- yandex/cloud/cloudregistry/v1/artifact_pb2_grpc.py +4 -0
- yandex/cloud/cloudregistry/v1/artifact_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2.py +45 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2.pyi +59 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2_grpc.py +105 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2_grpc.pyi +75 -0
- yandex/cloud/cloudregistry/v1/ip_permission_pb2.py +37 -0
- yandex/cloud/cloudregistry/v1/ip_permission_pb2.pyi +95 -0
- yandex/cloud/cloudregistry/v1/ip_permission_pb2_grpc.py +4 -0
- yandex/cloud/cloudregistry/v1/ip_permission_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudregistry/v1/registry_pb2.py +41 -0
- yandex/cloud/cloudregistry/v1/registry_pb2.pyi +181 -0
- yandex/cloud/cloudregistry/v1/registry_pb2_grpc.py +4 -0
- yandex/cloud/cloudregistry/v1/registry_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2.py +153 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2.pyi +504 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2_grpc.py +451 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2_grpc.pyi +291 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.py +8 -10
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.pyi +2 -28
- yandex/cloud/compute/v1/instance_service_pb2_grpc.py +1 -1
- yandex/cloud/compute/v1/instance_service_pb2_grpc.pyi +3 -3
- yandex/cloud/lockbox/v1/secret_service_pb2.py +56 -55
- yandex/cloud/lockbox/v1/secret_service_pb2.pyi +13 -2
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.py +55 -45
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi +40 -0
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2_grpc.py +34 -0
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2_grpc.pyi +20 -0
- yandex/cloud/mdb/postgresql/v1/cluster_pb2.py +47 -43
- yandex/cloud/mdb/postgresql/v1/cluster_pb2.pyi +34 -6
- yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.py +109 -105
- yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.pyi +35 -7
- yandex/cloud/mdb/postgresql/v1/config/host17_1c_pb2.py +68 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_1c_pb2.pyi +512 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_1c_pb2_grpc.py +4 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_1c_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_pb2.py +68 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_pb2.pyi +512 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_pb2_grpc.py +4 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_1c_pb2.py +168 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_1c_pb2.pyi +1130 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_1c_pb2_grpc.py +4 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_1c_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_pb2.py +168 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_pb2.pyi +1122 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_pb2_grpc.py +4 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_pb2_grpc.pyi +17 -0
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.324.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.324.0.dist-info}/RECORD +63 -25
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.324.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.324.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.324.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.324.0.dist-info}/top_level.txt +0 -0
|
@@ -15,7 +15,7 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
|
15
15
|
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/ai/foundation_models/v1/text_common.proto\x12$yandex.cloud.ai.foundation_models.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x87\x01\n\x11\x43ompletionOptions\x12\x0e\n\x06stream\x18\x01 \x01(\x08\x12\x31\n\x0btemperature\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12/\n\nmax_tokens\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/ai/foundation_models/v1/text_common.proto\x12$yandex.cloud.ai.foundation_models.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x87\x01\n\x11\x43ompletionOptions\x12\x0e\n\x06stream\x18\x01 \x01(\x08\x12\x31\n\x0btemperature\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12/\n\nmax_tokens\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xd2\x01\n\x07Message\x12\x0c\n\x04role\x18\x01 \x01(\t\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12L\n\x0etool_call_list\x18\x03 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.ToolCallListH\x00\x12P\n\x10tool_result_list\x18\x04 \x01(\x0b\x32\x34.yandex.cloud.ai.foundation_models.v1.ToolResultListH\x00\x42\t\n\x07\x43ontent\"Z\n\x0c\x43ontentUsage\x12\x19\n\x11input_text_tokens\x18\x01 \x01(\x03\x12\x19\n\x11\x63ompletion_tokens\x18\x02 \x01(\x03\x12\x14\n\x0ctotal_tokens\x18\x03 \x01(\x03\"\x8c\x03\n\x0b\x41lternative\x12>\n\x07message\x18\x01 \x01(\x0b\x32-.yandex.cloud.ai.foundation_models.v1.Message\x12S\n\x06status\x18\x02 \x01(\x0e\x32\x43.yandex.cloud.ai.foundation_models.v1.Alternative.AlternativeStatus\"\xe7\x01\n\x11\x41lternativeStatus\x12\"\n\x1e\x41LTERNATIVE_STATUS_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x41LTERNATIVE_STATUS_PARTIAL\x10\x01\x12&\n\"ALTERNATIVE_STATUS_TRUNCATED_FINAL\x10\x02\x12\x1c\n\x18\x41LTERNATIVE_STATUS_FINAL\x10\x03\x12%\n!ALTERNATIVE_STATUS_CONTENT_FILTER\x10\x04\x12!\n\x1d\x41LTERNATIVE_STATUS_TOOL_CALLS\x10\x05\"2\n\x05Token\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04text\x18\x02 \x01(\t\x12\x0f\n\x07special\x18\x03 \x01(\x08\"Z\n\x04Tool\x12\x46\n\x08\x66unction\x18\x01 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.FunctionToolH\x00\x42\n\n\x08ToolType\"^\n\x0c\x46unctionTool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12+\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"g\n\x08ToolCall\x12K\n\rfunction_call\x18\x01 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.FunctionCallH\x00\x42\x0e\n\x0cToolCallType\"H\n\x0c\x46unctionCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\targuments\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"R\n\x0cToolCallList\x12\x42\n\ntool_calls\x18\x01 \x03(\x0b\x32..yandex.cloud.ai.foundation_models.v1.ToolCall\"o\n\nToolResult\x12O\n\x0f\x66unction_result\x18\x01 \x01(\x0b\x32\x34.yandex.cloud.ai.foundation_models.v1.FunctionResultH\x00\x42\x10\n\x0eToolResultType\"@\n\x0e\x46unctionResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x42\r\n\x0b\x43ontentType\"X\n\x0eToolResultList\x12\x46\n\x0ctool_results\x18\x01 \x03(\x0b\x32\x30.yandex.cloud.ai.foundation_models.v1.ToolResultB\x86\x01\n(yandex.cloud.api.ai.foundation_models.v1ZZgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/foundation_models/v1;foundation_modelsb\x06proto3')
|
|
19
19
|
|
|
20
20
|
_globals = globals()
|
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -25,30 +25,30 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
25
25
|
DESCRIPTOR._serialized_options = b'\n(yandex.cloud.api.ai.foundation_models.v1ZZgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/foundation_models/v1;foundation_models'
|
|
26
26
|
_globals['_COMPLETIONOPTIONS']._serialized_start=159
|
|
27
27
|
_globals['_COMPLETIONOPTIONS']._serialized_end=294
|
|
28
|
-
_globals['_MESSAGE']._serialized_start=
|
|
29
|
-
_globals['_MESSAGE']._serialized_end=
|
|
30
|
-
_globals['_CONTENTUSAGE']._serialized_start=
|
|
31
|
-
_globals['_CONTENTUSAGE']._serialized_end=
|
|
32
|
-
_globals['_ALTERNATIVE']._serialized_start=
|
|
33
|
-
_globals['_ALTERNATIVE']._serialized_end=
|
|
34
|
-
_globals['_ALTERNATIVE_ALTERNATIVESTATUS']._serialized_start=
|
|
35
|
-
_globals['_ALTERNATIVE_ALTERNATIVESTATUS']._serialized_end=
|
|
36
|
-
_globals['_TOKEN']._serialized_start=
|
|
37
|
-
_globals['_TOKEN']._serialized_end=
|
|
38
|
-
_globals['_TOOL']._serialized_start=
|
|
39
|
-
_globals['_TOOL']._serialized_end=
|
|
40
|
-
_globals['_FUNCTIONTOOL']._serialized_start=
|
|
41
|
-
_globals['_FUNCTIONTOOL']._serialized_end=
|
|
42
|
-
_globals['_TOOLCALL']._serialized_start=
|
|
43
|
-
_globals['_TOOLCALL']._serialized_end=
|
|
44
|
-
_globals['_FUNCTIONCALL']._serialized_start=
|
|
45
|
-
_globals['_FUNCTIONCALL']._serialized_end=
|
|
46
|
-
_globals['_TOOLCALLLIST']._serialized_start=
|
|
47
|
-
_globals['_TOOLCALLLIST']._serialized_end=
|
|
48
|
-
_globals['_TOOLRESULT']._serialized_start=
|
|
49
|
-
_globals['_TOOLRESULT']._serialized_end=
|
|
50
|
-
_globals['_FUNCTIONRESULT']._serialized_start=
|
|
51
|
-
_globals['_FUNCTIONRESULT']._serialized_end=
|
|
52
|
-
_globals['_TOOLRESULTLIST']._serialized_start=
|
|
53
|
-
_globals['_TOOLRESULTLIST']._serialized_end=
|
|
28
|
+
_globals['_MESSAGE']._serialized_start=297
|
|
29
|
+
_globals['_MESSAGE']._serialized_end=507
|
|
30
|
+
_globals['_CONTENTUSAGE']._serialized_start=509
|
|
31
|
+
_globals['_CONTENTUSAGE']._serialized_end=599
|
|
32
|
+
_globals['_ALTERNATIVE']._serialized_start=602
|
|
33
|
+
_globals['_ALTERNATIVE']._serialized_end=998
|
|
34
|
+
_globals['_ALTERNATIVE_ALTERNATIVESTATUS']._serialized_start=767
|
|
35
|
+
_globals['_ALTERNATIVE_ALTERNATIVESTATUS']._serialized_end=998
|
|
36
|
+
_globals['_TOKEN']._serialized_start=1000
|
|
37
|
+
_globals['_TOKEN']._serialized_end=1050
|
|
38
|
+
_globals['_TOOL']._serialized_start=1052
|
|
39
|
+
_globals['_TOOL']._serialized_end=1142
|
|
40
|
+
_globals['_FUNCTIONTOOL']._serialized_start=1144
|
|
41
|
+
_globals['_FUNCTIONTOOL']._serialized_end=1238
|
|
42
|
+
_globals['_TOOLCALL']._serialized_start=1240
|
|
43
|
+
_globals['_TOOLCALL']._serialized_end=1343
|
|
44
|
+
_globals['_FUNCTIONCALL']._serialized_start=1345
|
|
45
|
+
_globals['_FUNCTIONCALL']._serialized_end=1417
|
|
46
|
+
_globals['_TOOLCALLLIST']._serialized_start=1419
|
|
47
|
+
_globals['_TOOLCALLLIST']._serialized_end=1501
|
|
48
|
+
_globals['_TOOLRESULT']._serialized_start=1503
|
|
49
|
+
_globals['_TOOLRESULT']._serialized_end=1614
|
|
50
|
+
_globals['_FUNCTIONRESULT']._serialized_start=1616
|
|
51
|
+
_globals['_FUNCTIONRESULT']._serialized_end=1680
|
|
52
|
+
_globals['_TOOLRESULTLIST']._serialized_start=1682
|
|
53
|
+
_globals['_TOOLRESULTLIST']._serialized_end=1770
|
|
54
54
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -65,6 +65,8 @@ class Message(google.protobuf.message.Message):
|
|
|
65
65
|
|
|
66
66
|
ROLE_FIELD_NUMBER: builtins.int
|
|
67
67
|
TEXT_FIELD_NUMBER: builtins.int
|
|
68
|
+
TOOL_CALL_LIST_FIELD_NUMBER: builtins.int
|
|
69
|
+
TOOL_RESULT_LIST_FIELD_NUMBER: builtins.int
|
|
68
70
|
role: builtins.str
|
|
69
71
|
"""The ID of the message sender. Supported roles:
|
|
70
72
|
* `system`: Special role used to define the behaviour of the completion model.
|
|
@@ -73,15 +75,25 @@ class Message(google.protobuf.message.Message):
|
|
|
73
75
|
"""
|
|
74
76
|
text: builtins.str
|
|
75
77
|
"""Textual content of the message."""
|
|
78
|
+
@property
|
|
79
|
+
def tool_call_list(self) -> global___ToolCallList:
|
|
80
|
+
"""List of tool calls made by the model as part of the response generation."""
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def tool_result_list(self) -> global___ToolResultList:
|
|
84
|
+
"""List of tool results returned from external tools that were invoked by the model."""
|
|
85
|
+
|
|
76
86
|
def __init__(
|
|
77
87
|
self,
|
|
78
88
|
*,
|
|
79
89
|
role: builtins.str = ...,
|
|
80
90
|
text: builtins.str = ...,
|
|
91
|
+
tool_call_list: global___ToolCallList | None = ...,
|
|
92
|
+
tool_result_list: global___ToolResultList | None = ...,
|
|
81
93
|
) -> None: ...
|
|
82
|
-
def HasField(self, field_name: typing.Literal["Content", b"Content", "text", b"text"]) -> builtins.bool: ...
|
|
83
|
-
def ClearField(self, field_name: typing.Literal["Content", b"Content", "role", b"role", "text", b"text"]) -> None: ...
|
|
84
|
-
def WhichOneof(self, oneof_group: typing.Literal["Content", b"Content"]) -> typing.Literal["text"] | None: ...
|
|
94
|
+
def HasField(self, field_name: typing.Literal["Content", b"Content", "text", b"text", "tool_call_list", b"tool_call_list", "tool_result_list", b"tool_result_list"]) -> builtins.bool: ...
|
|
95
|
+
def ClearField(self, field_name: typing.Literal["Content", b"Content", "role", b"role", "text", b"text", "tool_call_list", b"tool_call_list", "tool_result_list", b"tool_result_list"]) -> None: ...
|
|
96
|
+
def WhichOneof(self, oneof_group: typing.Literal["Content", b"Content"]) -> typing.Literal["text", "tool_call_list", "tool_result_list"] | None: ...
|
|
85
97
|
|
|
86
98
|
global___Message = Message
|
|
87
99
|
|
|
@@ -15,10 +15,11 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
|
15
15
|
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
16
16
|
from yandex.cloud.backup.v1 import backup_pb2 as yandex_dot_cloud_dot_backup_dot_v1_dot_backup__pb2
|
|
17
17
|
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
18
|
+
from yandex.cloud.backup.v1 import resource_pb2 as yandex_dot_cloud_dot_backup_dot_v1_dot_resource__pb2
|
|
18
19
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/backup/v1/backup_service.proto\x12\x16yandex.cloud.backup.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a#yandex/cloud/backup/v1/backup.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"U\n\x13ListArchivesRequest\x12\x13\n\tfolder_id\x18\x01 \x01(\tH\x00\x12\x1d\n\x13\x63ompute_instance_id\x18\x02 \x01(\tH\x00\x42\n\n\x02id\x12\x04\xc0\xc1\x31\x01\"I\n\x14ListArchivesResponse\x12\x31\n\x08\x61rchives\x18\x01 \x03(\x0b\x32\x1f.yandex.cloud.backup.v1.Archive\"\
|
|
22
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/backup/v1/backup_service.proto\x12\x16yandex.cloud.backup.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a#yandex/cloud/backup/v1/backup.proto\x1a&yandex/cloud/operation/operation.proto\x1a%yandex/cloud/backup/v1/resource.proto\x1a\x1dyandex/cloud/validation.proto\"U\n\x13ListArchivesRequest\x12\x13\n\tfolder_id\x18\x01 \x01(\tH\x00\x12\x1d\n\x13\x63ompute_instance_id\x18\x02 \x01(\tH\x00\x42\n\n\x02id\x12\x04\xc0\xc1\x31\x01\"I\n\x14ListArchivesResponse\x12\x31\n\x08\x61rchives\x18\x01 \x03(\x0b\x32\x1f.yandex.cloud.backup.v1.Archive\"\x87\x04\n\x12ListBackupsRequest\x12\x1d\n\x13\x63ompute_instance_id\x18\x01 \x01(\tH\x00\x12O\n\x07\x61rchive\x18\x02 \x01(\x0b\x32<.yandex.cloud.backup.v1.ListBackupsRequest.ArchiveParametersH\x00\x12\x13\n\tfolder_id\x18\x03 \x01(\tH\x00\x12T\n\x0finstance_policy\x18\x04 \x01(\x0b\x32\x39.yandex.cloud.backup.v1.ListBackupsRequest.InstancePolicyH\x00\x12\x15\n\x0bresource_id\x18\x06 \x01(\tH\x00\x12\x13\n\tpolicy_id\x18\x07 \x01(\tH\x00\x12\x10\n\x08order_by\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t\x12\x32\n\x04type\x18\t \x01(\x0e\x32$.yandex.cloud.backup.v1.ResourceType\x1a\x46\n\x11\x41rchiveParameters\x12\x18\n\narchive_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x17\n\tfolder_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x1a@\n\x0eInstancePolicy\x12\x1b\n\x13\x63ompute_instance_id\x18\x01 \x01(\t\x12\x11\n\tpolicy_id\x18\x02 \x01(\tB\n\n\x02id\x12\x04\xc0\xc1\x31\x01\"F\n\x13ListBackupsResponse\x12/\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32\x1e.yandex.cloud.backup.v1.Backup\"]\n\x10ListFilesRequest\x12\x17\n\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x17\n\tbackup_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x17\n\tsource_id\x18\x03 \x01(\tB\x04\xe8\xc7\x31\x00\"F\n\x11ListFilesResponse\x12\x31\n\x05\x66iles\x18\x01 \x03(\x0b\x32\".yandex.cloud.backup.v1.BackupFile\"D\n\x10GetBackupRequest\x12\x17\n\tbackup_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x17\n\tfolder_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\"Z\n\x14StartRecoveryRequest\x12)\n\x13\x63ompute_instance_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x17\n\tbackup_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\"l\n\x15StartRecoveryMetadata\x12\x1b\n\x13progress_percentage\x18\x01 \x01(\x01\x12\x15\n\rsrc_backup_id\x18\x02 \x01(\t\x12\x1f\n\x17\x64st_compute_instance_id\x18\x03 \x01(\t\"\x14\n\x12TargetPathOriginal\" \n\x10TargetPathCustom\x12\x0c\n\x04path\x18\x01 \x01(\t\"\xfb\x02\n\x14\x46ilesRecoveryOptions\x12O\n\toverwrite\x18\x01 \x01(\x0e\x32\x36.yandex.cloud.backup.v1.FilesRecoveryOptions.OverwriteB\x04\xe8\xc7\x31\x00\x12\x1e\n\x10reboot_if_needed\x18\x02 \x01(\x08\x42\x04\xe8\xc7\x31\x00\x12>\n\x08original\x18\x64 \x01(\x0b\x32*.yandex.cloud.backup.v1.TargetPathOriginalH\x00\x12:\n\x06\x63ustom\x18\x65 \x01(\x0b\x32(.yandex.cloud.backup.v1.TargetPathCustomH\x00\"b\n\tOverwrite\x12\x19\n\x15OVERWRITE_UNSPECIFIED\x10\x00\x12\x11\n\rOVERWRITE_ALL\x10\x01\x12\x13\n\x0fOVERWRITE_OLDER\x10\x02\x12\x12\n\x0eOVERWRITE_NONE\x10\x03\x42\x0c\n\x04type\x12\x04\xc0\xc1\x31\x01J\x04\x08\x03\x10\x64\"\xb5\x01\n\x19StartFilesRecoveryRequest\x12!\n\x13\x63ompute_instance_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x17\n\tbackup_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12@\n\x04opts\x18\x03 \x01(\x0b\x32,.yandex.cloud.backup.v1.FilesRecoveryOptionsB\x04\xe8\xc7\x31\x01\x12\x1a\n\nsource_ids\x18\x04 \x03(\tB\x06\x82\xc8\x31\x02>0\"\x91\x01\n\x1aStartFilesRecoveryMetadata\x12\x1b\n\x13progress_percentage\x18\x01 \x01(\x01\x12!\n\x13\x63ompute_instance_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x17\n\tbackup_id\x18\x03 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x1a\n\nsource_ids\x18\x04 \x03(\tB\x06\x82\xc8\x31\x02>0\"Y\n\x13\x44\x65leteBackupRequest\x12)\n\x13\x63ompute_instance_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x17\n\tbackup_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\"F\n\x14\x44\x65leteBackupMetadata\x12\x1b\n\x13\x63ompute_instance_id\x18\x01 \x01(\t\x12\x11\n\tbackup_id\x18\x02 \x01(\t2\xfb\x08\n\rBackupService\x12{\n\x04List\x12*.yandex.cloud.backup.v1.ListBackupsRequest\x1a+.yandex.cloud.backup.v1.ListBackupsResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/backup/v1/backups\x12\xa4\x01\n\x0cListArchives\x12+.yandex.cloud.backup.v1.ListArchivesRequest\x1a,.yandex.cloud.backup.v1.ListArchivesResponse\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/backup/v1/backups/{compute_instance_id}/archives\x12\x8e\x01\n\tListFiles\x12(.yandex.cloud.backup.v1.ListFilesRequest\x1a).yandex.cloud.backup.v1.ListFilesResponse\",\x82\xd3\xe4\x93\x02&\x12$/backup/v1/backups/{backup_id}/files\x12w\n\x03Get\x12(.yandex.cloud.backup.v1.GetBackupRequest\x1a\x1e.yandex.cloud.backup.v1.Backup\"&\x82\xd3\xe4\x93\x02 \x12\x1e/backup/v1/backups/{backup_id}\x12\xcb\x01\n\rStartRecovery\x12,.yandex.cloud.backup.v1.StartRecoveryRequest\x1a!.yandex.cloud.operation.Operation\"i\xb2\xd2*.\n\x15StartRecoveryMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02\x31\",/backup/v1/backups/{backup_id}:startRecovery:\x01*\x12\xa3\x01\n\x12StartFilesRecovery\x12\x31.yandex.cloud.backup.v1.StartFilesRecoveryRequest\x1a!.yandex.cloud.operation.Operation\"7\xb2\xd2*3\n\x1aStartFilesRecoveryMetadata\x12\x15google.protobuf.Empty\x12\xc7\x01\n\x06\x44\x65lete\x12+.yandex.cloud.backup.v1.DeleteBackupRequest\x1a!.yandex.cloud.operation.Operation\"m\xb2\xd2*-\n\x14\x44\x65leteBackupMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02\x36*4/backup/v1/backups/{compute_instance_id}/{backup_id}B_\n\x1ayandex.cloud.api.backup.v1ZAgithub.com/yandex-cloud/go-genproto/yandex/cloud/backup/v1;backupb\x06proto3')
|
|
22
23
|
|
|
23
24
|
_globals = globals()
|
|
24
25
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -86,44 +87,44 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
86
87
|
_BACKUPSERVICE.methods_by_name['StartFilesRecovery']._serialized_options = b'\262\322*3\n\032StartFilesRecoveryMetadata\022\025google.protobuf.Empty'
|
|
87
88
|
_BACKUPSERVICE.methods_by_name['Delete']._options = None
|
|
88
89
|
_BACKUPSERVICE.methods_by_name['Delete']._serialized_options = b'\262\322*-\n\024DeleteBackupMetadata\022\025google.protobuf.Empty\202\323\344\223\0026*4/backup/v1/backups/{compute_instance_id}/{backup_id}'
|
|
89
|
-
_globals['_LISTARCHIVESREQUEST']._serialized_start=
|
|
90
|
-
_globals['_LISTARCHIVESREQUEST']._serialized_end=
|
|
91
|
-
_globals['_LISTARCHIVESRESPONSE']._serialized_start=
|
|
92
|
-
_globals['_LISTARCHIVESRESPONSE']._serialized_end=
|
|
93
|
-
_globals['_LISTBACKUPSREQUEST']._serialized_start=
|
|
94
|
-
_globals['_LISTBACKUPSREQUEST']._serialized_end=
|
|
95
|
-
_globals['_LISTBACKUPSREQUEST_ARCHIVEPARAMETERS']._serialized_start=
|
|
96
|
-
_globals['_LISTBACKUPSREQUEST_ARCHIVEPARAMETERS']._serialized_end=
|
|
97
|
-
_globals['_LISTBACKUPSREQUEST_INSTANCEPOLICY']._serialized_start=
|
|
98
|
-
_globals['_LISTBACKUPSREQUEST_INSTANCEPOLICY']._serialized_end=
|
|
99
|
-
_globals['_LISTBACKUPSRESPONSE']._serialized_start=
|
|
100
|
-
_globals['_LISTBACKUPSRESPONSE']._serialized_end=
|
|
101
|
-
_globals['_LISTFILESREQUEST']._serialized_start=
|
|
102
|
-
_globals['_LISTFILESREQUEST']._serialized_end=
|
|
103
|
-
_globals['_LISTFILESRESPONSE']._serialized_start=
|
|
104
|
-
_globals['_LISTFILESRESPONSE']._serialized_end=
|
|
105
|
-
_globals['_GETBACKUPREQUEST']._serialized_start=
|
|
106
|
-
_globals['_GETBACKUPREQUEST']._serialized_end=
|
|
107
|
-
_globals['_STARTRECOVERYREQUEST']._serialized_start=
|
|
108
|
-
_globals['_STARTRECOVERYREQUEST']._serialized_end=
|
|
109
|
-
_globals['_STARTRECOVERYMETADATA']._serialized_start=
|
|
110
|
-
_globals['_STARTRECOVERYMETADATA']._serialized_end=
|
|
111
|
-
_globals['_TARGETPATHORIGINAL']._serialized_start=
|
|
112
|
-
_globals['_TARGETPATHORIGINAL']._serialized_end=
|
|
113
|
-
_globals['_TARGETPATHCUSTOM']._serialized_start=
|
|
114
|
-
_globals['_TARGETPATHCUSTOM']._serialized_end=
|
|
115
|
-
_globals['_FILESRECOVERYOPTIONS']._serialized_start=
|
|
116
|
-
_globals['_FILESRECOVERYOPTIONS']._serialized_end=
|
|
117
|
-
_globals['_FILESRECOVERYOPTIONS_OVERWRITE']._serialized_start=
|
|
118
|
-
_globals['_FILESRECOVERYOPTIONS_OVERWRITE']._serialized_end=
|
|
119
|
-
_globals['_STARTFILESRECOVERYREQUEST']._serialized_start=
|
|
120
|
-
_globals['_STARTFILESRECOVERYREQUEST']._serialized_end=
|
|
121
|
-
_globals['_STARTFILESRECOVERYMETADATA']._serialized_start=
|
|
122
|
-
_globals['_STARTFILESRECOVERYMETADATA']._serialized_end=
|
|
123
|
-
_globals['_DELETEBACKUPREQUEST']._serialized_start=
|
|
124
|
-
_globals['_DELETEBACKUPREQUEST']._serialized_end=
|
|
125
|
-
_globals['_DELETEBACKUPMETADATA']._serialized_start=
|
|
126
|
-
_globals['_DELETEBACKUPMETADATA']._serialized_end=
|
|
127
|
-
_globals['_BACKUPSERVICE']._serialized_start=
|
|
128
|
-
_globals['_BACKUPSERVICE']._serialized_end=
|
|
90
|
+
_globals['_LISTARCHIVESREQUEST']._serialized_start=282
|
|
91
|
+
_globals['_LISTARCHIVESREQUEST']._serialized_end=367
|
|
92
|
+
_globals['_LISTARCHIVESRESPONSE']._serialized_start=369
|
|
93
|
+
_globals['_LISTARCHIVESRESPONSE']._serialized_end=442
|
|
94
|
+
_globals['_LISTBACKUPSREQUEST']._serialized_start=445
|
|
95
|
+
_globals['_LISTBACKUPSREQUEST']._serialized_end=964
|
|
96
|
+
_globals['_LISTBACKUPSREQUEST_ARCHIVEPARAMETERS']._serialized_start=816
|
|
97
|
+
_globals['_LISTBACKUPSREQUEST_ARCHIVEPARAMETERS']._serialized_end=886
|
|
98
|
+
_globals['_LISTBACKUPSREQUEST_INSTANCEPOLICY']._serialized_start=888
|
|
99
|
+
_globals['_LISTBACKUPSREQUEST_INSTANCEPOLICY']._serialized_end=952
|
|
100
|
+
_globals['_LISTBACKUPSRESPONSE']._serialized_start=966
|
|
101
|
+
_globals['_LISTBACKUPSRESPONSE']._serialized_end=1036
|
|
102
|
+
_globals['_LISTFILESREQUEST']._serialized_start=1038
|
|
103
|
+
_globals['_LISTFILESREQUEST']._serialized_end=1131
|
|
104
|
+
_globals['_LISTFILESRESPONSE']._serialized_start=1133
|
|
105
|
+
_globals['_LISTFILESRESPONSE']._serialized_end=1203
|
|
106
|
+
_globals['_GETBACKUPREQUEST']._serialized_start=1205
|
|
107
|
+
_globals['_GETBACKUPREQUEST']._serialized_end=1273
|
|
108
|
+
_globals['_STARTRECOVERYREQUEST']._serialized_start=1275
|
|
109
|
+
_globals['_STARTRECOVERYREQUEST']._serialized_end=1365
|
|
110
|
+
_globals['_STARTRECOVERYMETADATA']._serialized_start=1367
|
|
111
|
+
_globals['_STARTRECOVERYMETADATA']._serialized_end=1475
|
|
112
|
+
_globals['_TARGETPATHORIGINAL']._serialized_start=1477
|
|
113
|
+
_globals['_TARGETPATHORIGINAL']._serialized_end=1497
|
|
114
|
+
_globals['_TARGETPATHCUSTOM']._serialized_start=1499
|
|
115
|
+
_globals['_TARGETPATHCUSTOM']._serialized_end=1531
|
|
116
|
+
_globals['_FILESRECOVERYOPTIONS']._serialized_start=1534
|
|
117
|
+
_globals['_FILESRECOVERYOPTIONS']._serialized_end=1913
|
|
118
|
+
_globals['_FILESRECOVERYOPTIONS_OVERWRITE']._serialized_start=1795
|
|
119
|
+
_globals['_FILESRECOVERYOPTIONS_OVERWRITE']._serialized_end=1893
|
|
120
|
+
_globals['_STARTFILESRECOVERYREQUEST']._serialized_start=1916
|
|
121
|
+
_globals['_STARTFILESRECOVERYREQUEST']._serialized_end=2097
|
|
122
|
+
_globals['_STARTFILESRECOVERYMETADATA']._serialized_start=2100
|
|
123
|
+
_globals['_STARTFILESRECOVERYMETADATA']._serialized_end=2245
|
|
124
|
+
_globals['_DELETEBACKUPREQUEST']._serialized_start=2247
|
|
125
|
+
_globals['_DELETEBACKUPREQUEST']._serialized_end=2336
|
|
126
|
+
_globals['_DELETEBACKUPMETADATA']._serialized_start=2338
|
|
127
|
+
_globals['_DELETEBACKUPMETADATA']._serialized_end=2408
|
|
128
|
+
_globals['_BACKUPSERVICE']._serialized_start=2411
|
|
129
|
+
_globals['_BACKUPSERVICE']._serialized_end=3558
|
|
129
130
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -12,6 +12,7 @@ import google.protobuf.message
|
|
|
12
12
|
import sys
|
|
13
13
|
import typing
|
|
14
14
|
import yandex.cloud.backup.v1.backup_pb2
|
|
15
|
+
import yandex.cloud.backup.v1.resource_pb2
|
|
15
16
|
|
|
16
17
|
if sys.version_info >= (3, 10):
|
|
17
18
|
import typing as typing_extensions
|
|
@@ -106,6 +107,7 @@ class ListBackupsRequest(google.protobuf.message.Message):
|
|
|
106
107
|
POLICY_ID_FIELD_NUMBER: builtins.int
|
|
107
108
|
ORDER_BY_FIELD_NUMBER: builtins.int
|
|
108
109
|
FILTER_FIELD_NUMBER: builtins.int
|
|
110
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
109
111
|
compute_instance_id: builtins.str
|
|
110
112
|
"""List backups that belongs to specific Compute Cloud instance."""
|
|
111
113
|
folder_id: builtins.str
|
|
@@ -126,6 +128,8 @@ class ListBackupsRequest(google.protobuf.message.Message):
|
|
|
126
128
|
Supported logic operators:
|
|
127
129
|
* AND
|
|
128
130
|
"""
|
|
131
|
+
type: yandex.cloud.backup.v1.resource_pb2.ResourceType.ValueType
|
|
132
|
+
"""Type of resource. Could be compute VM or baremetal server."""
|
|
129
133
|
@property
|
|
130
134
|
def archive(self) -> global___ListBackupsRequest.ArchiveParameters:
|
|
131
135
|
"""List backups that belongs to specific archive of specific folder."""
|
|
@@ -145,9 +149,10 @@ class ListBackupsRequest(google.protobuf.message.Message):
|
|
|
145
149
|
policy_id: builtins.str = ...,
|
|
146
150
|
order_by: builtins.str = ...,
|
|
147
151
|
filter: builtins.str = ...,
|
|
152
|
+
type: yandex.cloud.backup.v1.resource_pb2.ResourceType.ValueType = ...,
|
|
148
153
|
) -> None: ...
|
|
149
154
|
def HasField(self, field_name: typing.Literal["archive", b"archive", "compute_instance_id", b"compute_instance_id", "folder_id", b"folder_id", "id", b"id", "instance_policy", b"instance_policy", "policy_id", b"policy_id", "resource_id", b"resource_id"]) -> builtins.bool: ...
|
|
150
|
-
def ClearField(self, field_name: typing.Literal["archive", b"archive", "compute_instance_id", b"compute_instance_id", "filter", b"filter", "folder_id", b"folder_id", "id", b"id", "instance_policy", b"instance_policy", "order_by", b"order_by", "policy_id", b"policy_id", "resource_id", b"resource_id"]) -> None: ...
|
|
155
|
+
def ClearField(self, field_name: typing.Literal["archive", b"archive", "compute_instance_id", b"compute_instance_id", "filter", b"filter", "folder_id", b"folder_id", "id", b"id", "instance_policy", b"instance_policy", "order_by", b"order_by", "policy_id", b"policy_id", "resource_id", b"resource_id", "type", b"type"]) -> None: ...
|
|
151
156
|
def WhichOneof(self, oneof_group: typing.Literal["id", b"id"]) -> typing.Literal["compute_instance_id", "archive", "folder_id", "instance_policy", "resource_id", "policy_id"] | None: ...
|
|
152
157
|
|
|
153
158
|
global___ListBackupsRequest = ListBackupsRequest
|
|
@@ -111,11 +111,12 @@ class CreateResellerServedCustomerRequest(google.protobuf.message.Message):
|
|
|
111
111
|
NAME_FIELD_NUMBER: builtins.int
|
|
112
112
|
PERSON_FIELD_NUMBER: builtins.int
|
|
113
113
|
reseller_id: builtins.str
|
|
114
|
-
"""ID of the reseller that customer will be associated with
|
|
114
|
+
"""ID of the reseller that customer will be associated with.</br>
|
|
115
115
|
|
|
116
|
-
Value must match either one of the
|
|
117
|
-
`^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
|
|
118
|
-
|
|
116
|
+
Value must match either one of the three regular expressions:
|
|
117
|
+
</br>- `^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$`
|
|
118
|
+
</br>- `^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{32})$`
|
|
119
|
+
</br>- `^[a-z][-a-zA-Z0-9.]{0,48}[a-zA-Z0-9]$`
|
|
119
120
|
"""
|
|
120
121
|
name: builtins.str
|
|
121
122
|
"""Name of the customer.
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/cloudregistry/v1/artifact.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
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/cloudregistry/v1/artifact.proto\x12\x1dyandex.cloud.cloudregistry.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9e\x03\n\x08\x41rtifact\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12:\n\x04kind\x18\x04 \x01(\x0e\x32,.yandex.cloud.cloudregistry.v1.Artifact.Kind\x12>\n\x06status\x18\x05 \x01(\x0e\x32..yandex.cloud.cloudregistry.v1.Artifact.Status\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bmodified_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"C\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\n\n\x06\x46OLDER\x10\x01\x12\x0b\n\x07PACKAGE\x10\x02\x12\x0c\n\x08\x41RTIFACT\x10\x03\"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\x08\x44\x45LETING\x10\x03\x42t\n!yandex.cloud.api.cloudregistry.v1ZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/cloudregistry/v1;cloudregistryb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.cloudregistry.v1.artifact_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n!yandex.cloud.api.cloudregistry.v1ZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/cloudregistry/v1;cloudregistry'
|
|
25
|
+
_globals['_ARTIFACT']._serialized_start=113
|
|
26
|
+
_globals['_ARTIFACT']._serialized_end=527
|
|
27
|
+
_globals['_ARTIFACT_KIND']._serialized_start=386
|
|
28
|
+
_globals['_ARTIFACT_KIND']._serialized_end=453
|
|
29
|
+
_globals['_ARTIFACT_STATUS']._serialized_start=455
|
|
30
|
+
_globals['_ARTIFACT_STATUS']._serialized_end=527
|
|
31
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,110 @@
|
|
|
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 google.protobuf.timestamp_pb2
|
|
11
|
+
import sys
|
|
12
|
+
import typing
|
|
13
|
+
|
|
14
|
+
if sys.version_info >= (3, 10):
|
|
15
|
+
import typing as typing_extensions
|
|
16
|
+
else:
|
|
17
|
+
import typing_extensions
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class Artifact(google.protobuf.message.Message):
|
|
23
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
|
+
|
|
25
|
+
class _Kind:
|
|
26
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
27
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
28
|
+
|
|
29
|
+
class _KindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Artifact._Kind.ValueType], builtins.type):
|
|
30
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
31
|
+
KIND_UNSPECIFIED: Artifact._Kind.ValueType # 0
|
|
32
|
+
FOLDER: Artifact._Kind.ValueType # 1
|
|
33
|
+
"""Artifact kind is folder."""
|
|
34
|
+
PACKAGE: Artifact._Kind.ValueType # 2
|
|
35
|
+
"""Artifact kind is package."""
|
|
36
|
+
ARTIFACT: Artifact._Kind.ValueType # 3
|
|
37
|
+
"""Artifact kind is artifact."""
|
|
38
|
+
|
|
39
|
+
class Kind(_Kind, metaclass=_KindEnumTypeWrapper): ...
|
|
40
|
+
KIND_UNSPECIFIED: Artifact.Kind.ValueType # 0
|
|
41
|
+
FOLDER: Artifact.Kind.ValueType # 1
|
|
42
|
+
"""Artifact kind is folder."""
|
|
43
|
+
PACKAGE: Artifact.Kind.ValueType # 2
|
|
44
|
+
"""Artifact kind is package."""
|
|
45
|
+
ARTIFACT: Artifact.Kind.ValueType # 3
|
|
46
|
+
"""Artifact kind is artifact."""
|
|
47
|
+
|
|
48
|
+
class _Status:
|
|
49
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
50
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
51
|
+
|
|
52
|
+
class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Artifact._Status.ValueType], builtins.type):
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
54
|
+
STATUS_UNSPECIFIED: Artifact._Status.ValueType # 0
|
|
55
|
+
CREATING: Artifact._Status.ValueType # 1
|
|
56
|
+
"""Artifact status is being created."""
|
|
57
|
+
ACTIVE: Artifact._Status.ValueType # 2
|
|
58
|
+
"""Artifact status is ready to use."""
|
|
59
|
+
DELETING: Artifact._Status.ValueType # 3
|
|
60
|
+
"""Artifact status is being deleted."""
|
|
61
|
+
|
|
62
|
+
class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
|
|
63
|
+
STATUS_UNSPECIFIED: Artifact.Status.ValueType # 0
|
|
64
|
+
CREATING: Artifact.Status.ValueType # 1
|
|
65
|
+
"""Artifact status is being created."""
|
|
66
|
+
ACTIVE: Artifact.Status.ValueType # 2
|
|
67
|
+
"""Artifact status is ready to use."""
|
|
68
|
+
DELETING: Artifact.Status.ValueType # 3
|
|
69
|
+
"""Artifact status is being deleted."""
|
|
70
|
+
|
|
71
|
+
ID_FIELD_NUMBER: builtins.int
|
|
72
|
+
PATH_FIELD_NUMBER: builtins.int
|
|
73
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
74
|
+
KIND_FIELD_NUMBER: builtins.int
|
|
75
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
76
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
77
|
+
MODIFIED_AT_FIELD_NUMBER: builtins.int
|
|
78
|
+
id: builtins.str
|
|
79
|
+
"""Output only. ID of the artifact."""
|
|
80
|
+
path: builtins.str
|
|
81
|
+
"""Path where the artifact is located."""
|
|
82
|
+
name: builtins.str
|
|
83
|
+
"""Name of the artifact."""
|
|
84
|
+
kind: global___Artifact.Kind.ValueType
|
|
85
|
+
"""Kind of the artifact."""
|
|
86
|
+
status: global___Artifact.Status.ValueType
|
|
87
|
+
"""Output only. Status of the artifact."""
|
|
88
|
+
@property
|
|
89
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
90
|
+
"""Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."""
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
94
|
+
"""Output only. Modification timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."""
|
|
95
|
+
|
|
96
|
+
def __init__(
|
|
97
|
+
self,
|
|
98
|
+
*,
|
|
99
|
+
id: builtins.str = ...,
|
|
100
|
+
path: builtins.str = ...,
|
|
101
|
+
name: builtins.str = ...,
|
|
102
|
+
kind: global___Artifact.Kind.ValueType = ...,
|
|
103
|
+
status: global___Artifact.Status.ValueType = ...,
|
|
104
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
105
|
+
modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
106
|
+
) -> None: ...
|
|
107
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "modified_at", b"modified_at"]) -> builtins.bool: ...
|
|
108
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "id", b"id", "kind", b"kind", "modified_at", b"modified_at", "name", b"name", "path", b"path", "status", b"status"]) -> None: ...
|
|
109
|
+
|
|
110
|
+
global___Artifact = Artifact
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/cloudregistry/v1/artifact_service.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
|
+
from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
15
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
16
|
+
from yandex.cloud.cloudregistry.v1 import artifact_pb2 as yandex_dot_cloud_dot_cloudregistry_dot_v1_dot_artifact__pb2
|
|
17
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
18
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4yandex/cloud/cloudregistry/v1/artifact_service.proto\x12\x1dyandex.cloud.cloudregistry.v1\x1a yandex/cloud/api/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a,yandex/cloud/cloudregistry/v1/artifact.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1cgoogle/api/annotations.proto\"7\n\x12GetArtifactRequest\x12!\n\x0b\x61rtifact_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\":\n\x15\x44\x65leteArtifactRequest\x12!\n\x0b\x61rtifact_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"-\n\x16\x44\x65leteArtifactMetadata\x12\x13\n\x0b\x61rtifact_id\x18\x01 \x01(\t2\xf4\x02\n\x0f\x41rtifactService\x12\x95\x01\n\x03Get\x12\x31.yandex.cloud.cloudregistry.v1.GetArtifactRequest\x1a\'.yandex.cloud.cloudregistry.v1.Artifact\"2\x82\xd3\xe4\x93\x02,\x12*/cloud-registry/v1/artifacts/{artifact_id}\x12\xc8\x01\n\x06\x44\x65lete\x12\x34.yandex.cloud.cloudregistry.v1.DeleteArtifactRequest\x1a!.yandex.cloud.operation.Operation\"e\xb2\xd2*/\n\x16\x44\x65leteArtifactMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02,**/cloud-registry/v1/artifacts/{artifact_id}Bt\n!yandex.cloud.api.cloudregistry.v1ZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/cloudregistry/v1;cloudregistryb\x06proto3')
|
|
22
|
+
|
|
23
|
+
_globals = globals()
|
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.cloudregistry.v1.artifact_service_pb2', _globals)
|
|
26
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
DESCRIPTOR._serialized_options = b'\n!yandex.cloud.api.cloudregistry.v1ZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/cloudregistry/v1;cloudregistry'
|
|
29
|
+
_GETARTIFACTREQUEST.fields_by_name['artifact_id']._options = None
|
|
30
|
+
_GETARTIFACTREQUEST.fields_by_name['artifact_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
31
|
+
_DELETEARTIFACTREQUEST.fields_by_name['artifact_id']._options = None
|
|
32
|
+
_DELETEARTIFACTREQUEST.fields_by_name['artifact_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
33
|
+
_ARTIFACTSERVICE.methods_by_name['Get']._options = None
|
|
34
|
+
_ARTIFACTSERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\002,\022*/cloud-registry/v1/artifacts/{artifact_id}'
|
|
35
|
+
_ARTIFACTSERVICE.methods_by_name['Delete']._options = None
|
|
36
|
+
_ARTIFACTSERVICE.methods_by_name['Delete']._serialized_options = b'\262\322*/\n\026DeleteArtifactMetadata\022\025google.protobuf.Empty\202\323\344\223\002,**/cloud-registry/v1/artifacts/{artifact_id}'
|
|
37
|
+
_globals['_GETARTIFACTREQUEST']._serialized_start=268
|
|
38
|
+
_globals['_GETARTIFACTREQUEST']._serialized_end=323
|
|
39
|
+
_globals['_DELETEARTIFACTREQUEST']._serialized_start=325
|
|
40
|
+
_globals['_DELETEARTIFACTREQUEST']._serialized_end=383
|
|
41
|
+
_globals['_DELETEARTIFACTMETADATA']._serialized_start=385
|
|
42
|
+
_globals['_DELETEARTIFACTMETADATA']._serialized_end=430
|
|
43
|
+
_globals['_ARTIFACTSERVICE']._serialized_start=433
|
|
44
|
+
_globals['_ARTIFACTSERVICE']._serialized_end=805
|
|
45
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class GetArtifactRequest(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
|
|
17
|
+
ARTIFACT_ID_FIELD_NUMBER: builtins.int
|
|
18
|
+
artifact_id: builtins.str
|
|
19
|
+
"""ID of the Registry artifact resource to return."""
|
|
20
|
+
def __init__(
|
|
21
|
+
self,
|
|
22
|
+
*,
|
|
23
|
+
artifact_id: builtins.str = ...,
|
|
24
|
+
) -> None: ...
|
|
25
|
+
def ClearField(self, field_name: typing.Literal["artifact_id", b"artifact_id"]) -> None: ...
|
|
26
|
+
|
|
27
|
+
global___GetArtifactRequest = GetArtifactRequest
|
|
28
|
+
|
|
29
|
+
@typing.final
|
|
30
|
+
class DeleteArtifactRequest(google.protobuf.message.Message):
|
|
31
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
32
|
+
|
|
33
|
+
ARTIFACT_ID_FIELD_NUMBER: builtins.int
|
|
34
|
+
artifact_id: builtins.str
|
|
35
|
+
"""ID of the Registry artifact to delete."""
|
|
36
|
+
def __init__(
|
|
37
|
+
self,
|
|
38
|
+
*,
|
|
39
|
+
artifact_id: builtins.str = ...,
|
|
40
|
+
) -> None: ...
|
|
41
|
+
def ClearField(self, field_name: typing.Literal["artifact_id", b"artifact_id"]) -> None: ...
|
|
42
|
+
|
|
43
|
+
global___DeleteArtifactRequest = DeleteArtifactRequest
|
|
44
|
+
|
|
45
|
+
@typing.final
|
|
46
|
+
class DeleteArtifactMetadata(google.protobuf.message.Message):
|
|
47
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
48
|
+
|
|
49
|
+
ARTIFACT_ID_FIELD_NUMBER: builtins.int
|
|
50
|
+
artifact_id: builtins.str
|
|
51
|
+
"""ID of the registry artifact to delete."""
|
|
52
|
+
def __init__(
|
|
53
|
+
self,
|
|
54
|
+
*,
|
|
55
|
+
artifact_id: builtins.str = ...,
|
|
56
|
+
) -> None: ...
|
|
57
|
+
def ClearField(self, field_name: typing.Literal["artifact_id", b"artifact_id"]) -> None: ...
|
|
58
|
+
|
|
59
|
+
global___DeleteArtifactMetadata = DeleteArtifactMetadata
|