yandexcloud 0.320.0__py3-none-any.whl → 0.322.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.

Files changed (113) hide show
  1. yandex/cloud/ai/assistants/v1/assistant_pb2.pyi +38 -8
  2. yandex/cloud/ai/assistants/v1/assistant_service_pb2.pyi +89 -15
  3. yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.py +18 -9
  4. yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.pyi +30 -6
  5. yandex/cloud/ai/assistants/v1/common_pb2.pyi +37 -6
  6. yandex/cloud/ai/assistants/v1/runs/run_pb2.pyi +55 -9
  7. yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +74 -11
  8. yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py +18 -8
  9. yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi +35 -5
  10. yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +15 -0
  11. yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +8 -1
  12. yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.pyi +15 -1
  13. yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.py +10 -5
  14. yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.pyi +14 -2
  15. yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +45 -9
  16. yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +52 -9
  17. yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.py +16 -8
  18. yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.pyi +26 -5
  19. yandex/cloud/ai/assistants/v1/threads/message_pb2.py +18 -16
  20. yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +84 -10
  21. yandex/cloud/ai/assistants/v1/threads/message_service_pb2.pyi +21 -3
  22. yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.py +13 -6
  23. yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.pyi +24 -3
  24. yandex/cloud/ai/assistants/v1/threads/thread_pb2.pyi +22 -5
  25. yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.pyi +47 -7
  26. yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.py +16 -8
  27. yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.pyi +26 -5
  28. yandex/cloud/ai/assistants/v1/users/user_pb2.pyi +21 -5
  29. yandex/cloud/ai/assistants/v1/users/user_service_pb2.pyi +43 -6
  30. yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.py +16 -8
  31. yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.pyi +26 -5
  32. yandex/cloud/ai/dataset/__init__.py +0 -0
  33. yandex/cloud/ai/dataset/v1/__init__.py +0 -0
  34. yandex/cloud/ai/dataset/v1/dataset_pb2.py +35 -0
  35. yandex/cloud/ai/dataset/v1/dataset_pb2.pyi +161 -0
  36. yandex/cloud/ai/dataset/v1/dataset_pb2_grpc.py +4 -0
  37. yandex/cloud/ai/dataset/v1/dataset_pb2_grpc.pyi +17 -0
  38. yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +117 -0
  39. yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +520 -0
  40. yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.py +378 -0
  41. yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.pyi +237 -0
  42. yandex/cloud/ai/files/v1/file_pb2.pyi +22 -5
  43. yandex/cloud/ai/files/v1/file_service_pb2.pyi +53 -6
  44. yandex/cloud/ai/files/v1/file_service_pb2_grpc.py +18 -9
  45. yandex/cloud/ai/files/v1/file_service_pb2_grpc.pyi +30 -6
  46. yandex/cloud/ai/foundation_models/v1/text_common_pb2.py +30 -13
  47. yandex/cloud/ai/foundation_models/v1/text_common_pb2.pyi +197 -0
  48. yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.py +14 -14
  49. yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +9 -1
  50. yandex/cloud/apploadbalancer/v1/load_balancer_pb2.py +52 -51
  51. yandex/cloud/apploadbalancer/v1/load_balancer_pb2.pyi +11 -1
  52. yandex/cloud/apploadbalancer/v1/rate_limit_pb2.py +35 -0
  53. yandex/cloud/apploadbalancer/v1/rate_limit_pb2.pyi +62 -0
  54. yandex/cloud/apploadbalancer/v1/rate_limit_pb2_grpc.py +4 -0
  55. yandex/cloud/apploadbalancer/v1/rate_limit_pb2_grpc.pyi +17 -0
  56. yandex/cloud/apploadbalancer/v1/virtual_host_pb2.py +44 -43
  57. yandex/cloud/apploadbalancer/v1/virtual_host_pb2.pyi +25 -6
  58. yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.py +30 -29
  59. yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.pyi +17 -4
  60. yandex/cloud/compute/v1/disk_pb2.py +12 -11
  61. yandex/cloud/compute/v1/disk_pb2.pyi +9 -2
  62. yandex/cloud/compute/v1/disk_service_pb2.py +36 -34
  63. yandex/cloud/compute/v1/disk_service_pb2.pyi +5 -1
  64. yandex/cloud/compute/v1/image_pb2.py +12 -11
  65. yandex/cloud/compute/v1/image_pb2.pyi +9 -2
  66. yandex/cloud/compute/v1/instance_service_pb2.py +39 -37
  67. yandex/cloud/compute/v1/instance_service_pb2.pyi +11 -7
  68. yandex/cloud/compute/v1/kek_pb2.py +26 -0
  69. yandex/cloud/compute/v1/kek_pb2.pyi +31 -0
  70. yandex/cloud/compute/v1/kek_pb2_grpc.py +4 -0
  71. yandex/cloud/compute/v1/kek_pb2_grpc.pyi +17 -0
  72. yandex/cloud/compute/v1/snapshot_pb2.py +8 -7
  73. yandex/cloud/compute/v1/snapshot_pb2.pyi +9 -2
  74. yandex/cloud/datasphere/v1/project_pb2.py +6 -8
  75. yandex/cloud/datasphere/v1/project_pb2.pyi +1 -35
  76. yandex/cloud/datasphere/v1/project_service_pb2.py +39 -70
  77. yandex/cloud/datasphere/v1/project_service_pb2.pyi +0 -171
  78. yandex/cloud/datasphere/v1/project_service_pb2_grpc.py +0 -102
  79. yandex/cloud/datasphere/v1/project_service_pb2_grpc.pyi +0 -60
  80. yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +21 -19
  81. yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +50 -1
  82. yandex/cloud/datasphere/v2/project_pb2.py +11 -15
  83. yandex/cloud/datasphere/v2/project_pb2.pyi +1 -55
  84. yandex/cloud/datasphere/v2/project_service_pb2.py +73 -84
  85. yandex/cloud/datasphere/v2/project_service_pb2.pyi +102 -119
  86. yandex/cloud/datasphere/v2/project_service_pb2_grpc.py +34 -70
  87. yandex/cloud/datasphere/v2/project_service_pb2_grpc.pyi +20 -52
  88. yandex/cloud/datasphere/v2/resource_types_pb2.py +2 -2
  89. yandex/cloud/datasphere/v2/resource_types_pb2.pyi +0 -4
  90. yandex/cloud/datatransfer/v1/endpoint/postgres_pb2.pyi +2 -2
  91. yandex/cloud/k8s/v1/cluster_service_pb2.py +38 -38
  92. yandex/cloud/k8s/v1/cluster_service_pb2.pyi +8 -2
  93. yandex/cloud/mdb/greenplum/v1/pxf_pb2.pyi +1 -1
  94. yandex/cloud/mdb/kafka/v1/cluster_pb2.py +26 -24
  95. yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +32 -5
  96. yandex/cloud/mdb/kafka/v1/connector_service_pb2.py +37 -37
  97. yandex/cloud/mdb/kafka/v1/user_pb2.pyi +1 -0
  98. yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.py +15 -15
  99. yandex/cloud/mdb/postgresql/v1/config/postgresql15_1c_pb2.pyi +2 -0
  100. yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.py +15 -15
  101. yandex/cloud/mdb/postgresql/v1/config/postgresql15_pb2.pyi +2 -0
  102. yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.py +15 -15
  103. yandex/cloud/mdb/postgresql/v1/config/postgresql16_1c_pb2.pyi +2 -0
  104. yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.py +15 -15
  105. yandex/cloud/mdb/postgresql/v1/config/postgresql16_pb2.pyi +2 -0
  106. yandex/cloud/mdb/redis/v1/config/redis_pb2.py +16 -8
  107. yandex/cloud/mdb/redis/v1/config/redis_pb2.pyi +56 -2
  108. {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/METADATA +1 -1
  109. {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/RECORD +113 -95
  110. {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/WHEEL +1 -1
  111. {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/AUTHORS +0 -0
  112. {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/LICENSE +0 -0
  113. {yandexcloud-0.320.0.dist-info → yandexcloud-0.322.0.dist-info}/top_level.txt +0 -0
@@ -17,6 +17,8 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
17
17
 
18
18
  @typing.final
19
19
  class CreateFileRequest(google.protobuf.message.Message):
20
+ """Request message for creating a new file."""
21
+
20
22
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
21
23
 
22
24
  @typing.final
@@ -44,13 +46,23 @@ class CreateFileRequest(google.protobuf.message.Message):
44
46
  EXPIRATION_CONFIG_FIELD_NUMBER: builtins.int
45
47
  folder_id: builtins.str
46
48
  name: builtins.str
49
+ """Name of the file."""
47
50
  description: builtins.str
51
+ """Description of the file."""
48
52
  mime_type: builtins.str
53
+ """MIME type of the file, indicating the file's format (e.g., "application/pdf").
54
+ If not specified, will be deduced automatically based on the file content.
55
+ """
49
56
  content: builtins.bytes
57
+ """Binary content of the file."""
50
58
  @property
51
- def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
59
+ def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
60
+ """Set of key-value pairs to label the file."""
61
+
52
62
  @property
53
- def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig: ...
63
+ def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
64
+ """Expiration configuration for the file."""
65
+
54
66
  def __init__(
55
67
  self,
56
68
  *,
@@ -69,10 +81,13 @@ global___CreateFileRequest = CreateFileRequest
69
81
 
70
82
  @typing.final
71
83
  class GetFileRequest(google.protobuf.message.Message):
84
+ """Request message for retrieving a file by ID."""
85
+
72
86
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
73
87
 
74
88
  FILE_ID_FIELD_NUMBER: builtins.int
75
89
  file_id: builtins.str
90
+ """ID of the file to retrieve."""
76
91
  def __init__(
77
92
  self,
78
93
  *,
@@ -84,10 +99,13 @@ global___GetFileRequest = GetFileRequest
84
99
 
85
100
  @typing.final
86
101
  class GetFileUrlRequest(google.protobuf.message.Message):
102
+ """Request message for retrieving the URL of a specific file."""
103
+
87
104
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
88
105
 
89
106
  FILE_ID_FIELD_NUMBER: builtins.int
90
107
  file_id: builtins.str
108
+ """ID of the file which the URL is requested."""
91
109
  def __init__(
92
110
  self,
93
111
  *,
@@ -99,10 +117,13 @@ global___GetFileUrlRequest = GetFileUrlRequest
99
117
 
100
118
  @typing.final
101
119
  class GetFileUrlResponse(google.protobuf.message.Message):
120
+ """Response message containing the URL to access the requested file."""
121
+
102
122
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
103
123
 
104
124
  URL_FIELD_NUMBER: builtins.int
105
125
  url: builtins.str
126
+ """URL that can be used to access or download the file."""
106
127
  def __init__(
107
128
  self,
108
129
  *,
@@ -114,6 +135,8 @@ global___GetFileUrlResponse = GetFileUrlResponse
114
135
 
115
136
  @typing.final
116
137
  class UpdateFileRequest(google.protobuf.message.Message):
138
+ """Request message for updating an existing file."""
139
+
117
140
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
118
141
 
119
142
  @typing.final
@@ -139,14 +162,23 @@ class UpdateFileRequest(google.protobuf.message.Message):
139
162
  EXPIRATION_CONFIG_FIELD_NUMBER: builtins.int
140
163
  LABELS_FIELD_NUMBER: builtins.int
141
164
  file_id: builtins.str
165
+ """ID of the file to update."""
142
166
  name: builtins.str
167
+ """New name for the file."""
143
168
  description: builtins.str
169
+ """New description for the file."""
144
170
  @property
145
- def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: ...
171
+ def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
172
+ """Field mask specifying which fields to update."""
173
+
146
174
  @property
147
- def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig: ...
175
+ def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig:
176
+ """New expiration configuration for the file."""
177
+
148
178
  @property
149
- def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
179
+ def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
180
+ """New set of labels for the file."""
181
+
150
182
  def __init__(
151
183
  self,
152
184
  *,
@@ -164,10 +196,13 @@ global___UpdateFileRequest = UpdateFileRequest
164
196
 
165
197
  @typing.final
166
198
  class DeleteFileRequest(google.protobuf.message.Message):
199
+ """Request message for deleting a file by ID."""
200
+
167
201
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
168
202
 
169
203
  FILE_ID_FIELD_NUMBER: builtins.int
170
204
  file_id: builtins.str
205
+ """ID of the file to delete."""
171
206
  def __init__(
172
207
  self,
173
208
  *,
@@ -179,6 +214,8 @@ global___DeleteFileRequest = DeleteFileRequest
179
214
 
180
215
  @typing.final
181
216
  class DeleteFileResponse(google.protobuf.message.Message):
217
+ """Response message for the delete operation."""
218
+
182
219
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
183
220
 
184
221
  def __init__(
@@ -189,14 +226,19 @@ global___DeleteFileResponse = DeleteFileResponse
189
226
 
190
227
  @typing.final
191
228
  class ListFilesRequest(google.protobuf.message.Message):
229
+ """Request message for listing files in a specific folder."""
230
+
192
231
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
193
232
 
194
233
  FOLDER_ID_FIELD_NUMBER: builtins.int
195
234
  PAGE_SIZE_FIELD_NUMBER: builtins.int
196
235
  PAGE_TOKEN_FIELD_NUMBER: builtins.int
197
236
  folder_id: builtins.str
237
+ """Folder ID from which to list files."""
198
238
  page_size: builtins.int
239
+ """Maximum number of files to return per page."""
199
240
  page_token: builtins.str
241
+ """Token to retrieve the next page of results."""
200
242
  def __init__(
201
243
  self,
202
244
  *,
@@ -210,13 +252,18 @@ global___ListFilesRequest = ListFilesRequest
210
252
 
211
253
  @typing.final
212
254
  class ListFilesResponse(google.protobuf.message.Message):
255
+ """Response message for the list operation."""
256
+
213
257
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
214
258
 
215
259
  FILES_FIELD_NUMBER: builtins.int
216
260
  NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
217
261
  next_page_token: builtins.str
262
+ """Token to retrieve the next page of results."""
218
263
  @property
219
- def files(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.files.v1.file_pb2.File]: ...
264
+ def files(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.files.v1.file_pb2.File]:
265
+ """List of files in the specified folder."""
266
+
220
267
  def __init__(
221
268
  self,
222
269
  *,
@@ -7,7 +7,8 @@ from yandex.cloud.ai.files.v1 import file_service_pb2 as yandex_dot_cloud_dot_ai
7
7
 
8
8
 
9
9
  class FileServiceStub(object):
10
- """Missing associated documentation comment in .proto file."""
10
+ """FileService provides operations for managing files.
11
+ """
11
12
 
12
13
  def __init__(self, channel):
13
14
  """Constructor.
@@ -48,40 +49,47 @@ class FileServiceStub(object):
48
49
 
49
50
 
50
51
  class FileServiceServicer(object):
51
- """Missing associated documentation comment in .proto file."""
52
+ """FileService provides operations for managing files.
53
+ """
52
54
 
53
55
  def Create(self, request, context):
54
- """Missing associated documentation comment in .proto file."""
56
+ """Create a new file.
57
+ """
55
58
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
56
59
  context.set_details('Method not implemented!')
57
60
  raise NotImplementedError('Method not implemented!')
58
61
 
59
62
  def Get(self, request, context):
60
- """Missing associated documentation comment in .proto file."""
63
+ """Retrieve details of a specific file by its ID.
64
+ """
61
65
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
62
66
  context.set_details('Method not implemented!')
63
67
  raise NotImplementedError('Method not implemented!')
64
68
 
65
69
  def GetUrl(self, request, context):
66
- """Missing associated documentation comment in .proto file."""
70
+ """Retrieve a URL for accessing or downloading a specific file.
71
+ """
67
72
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
68
73
  context.set_details('Method not implemented!')
69
74
  raise NotImplementedError('Method not implemented!')
70
75
 
71
76
  def Update(self, request, context):
72
- """Missing associated documentation comment in .proto file."""
77
+ """Update an existing file.
78
+ """
73
79
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
74
80
  context.set_details('Method not implemented!')
75
81
  raise NotImplementedError('Method not implemented!')
76
82
 
77
83
  def Delete(self, request, context):
78
- """Missing associated documentation comment in .proto file."""
84
+ """Delete a file by its ID.
85
+ """
79
86
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
80
87
  context.set_details('Method not implemented!')
81
88
  raise NotImplementedError('Method not implemented!')
82
89
 
83
90
  def List(self, request, context):
84
- """Missing associated documentation comment in .proto file."""
91
+ """List files in a specific folder.
92
+ """
85
93
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
86
94
  context.set_details('Method not implemented!')
87
95
  raise NotImplementedError('Method not implemented!')
@@ -127,7 +135,8 @@ def add_FileServiceServicer_to_server(servicer, server):
127
135
 
128
136
  # This class is part of an EXPERIMENTAL API.
129
137
  class FileService(object):
130
- """Missing associated documentation comment in .proto file."""
138
+ """FileService provides operations for managing files.
139
+ """
131
140
 
132
141
  @staticmethod
133
142
  def Create(request,
@@ -19,109 +19,133 @@ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type:
19
19
  ...
20
20
 
21
21
  class FileServiceStub:
22
+ """FileService provides operations for managing files."""
23
+
22
24
  def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
23
25
  Create: grpc.UnaryUnaryMultiCallable[
24
26
  yandex.cloud.ai.files.v1.file_service_pb2.CreateFileRequest,
25
27
  yandex.cloud.ai.files.v1.file_pb2.File,
26
28
  ]
29
+ """Create a new file."""
27
30
 
28
31
  Get: grpc.UnaryUnaryMultiCallable[
29
32
  yandex.cloud.ai.files.v1.file_service_pb2.GetFileRequest,
30
33
  yandex.cloud.ai.files.v1.file_pb2.File,
31
34
  ]
35
+ """Retrieve details of a specific file by its ID."""
32
36
 
33
37
  GetUrl: grpc.UnaryUnaryMultiCallable[
34
38
  yandex.cloud.ai.files.v1.file_service_pb2.GetFileUrlRequest,
35
39
  yandex.cloud.ai.files.v1.file_service_pb2.GetFileUrlResponse,
36
40
  ]
41
+ """Retrieve a URL for accessing or downloading a specific file."""
37
42
 
38
43
  Update: grpc.UnaryUnaryMultiCallable[
39
44
  yandex.cloud.ai.files.v1.file_service_pb2.UpdateFileRequest,
40
45
  yandex.cloud.ai.files.v1.file_pb2.File,
41
46
  ]
47
+ """Update an existing file."""
42
48
 
43
49
  Delete: grpc.UnaryUnaryMultiCallable[
44
50
  yandex.cloud.ai.files.v1.file_service_pb2.DeleteFileRequest,
45
51
  yandex.cloud.ai.files.v1.file_service_pb2.DeleteFileResponse,
46
52
  ]
53
+ """Delete a file by its ID."""
47
54
 
48
55
  List: grpc.UnaryUnaryMultiCallable[
49
56
  yandex.cloud.ai.files.v1.file_service_pb2.ListFilesRequest,
50
57
  yandex.cloud.ai.files.v1.file_service_pb2.ListFilesResponse,
51
58
  ]
59
+ """List files in a specific folder."""
52
60
 
53
61
  class FileServiceAsyncStub:
62
+ """FileService provides operations for managing files."""
63
+
54
64
  Create: grpc.aio.UnaryUnaryMultiCallable[
55
65
  yandex.cloud.ai.files.v1.file_service_pb2.CreateFileRequest,
56
66
  yandex.cloud.ai.files.v1.file_pb2.File,
57
67
  ]
68
+ """Create a new file."""
58
69
 
59
70
  Get: grpc.aio.UnaryUnaryMultiCallable[
60
71
  yandex.cloud.ai.files.v1.file_service_pb2.GetFileRequest,
61
72
  yandex.cloud.ai.files.v1.file_pb2.File,
62
73
  ]
74
+ """Retrieve details of a specific file by its ID."""
63
75
 
64
76
  GetUrl: grpc.aio.UnaryUnaryMultiCallable[
65
77
  yandex.cloud.ai.files.v1.file_service_pb2.GetFileUrlRequest,
66
78
  yandex.cloud.ai.files.v1.file_service_pb2.GetFileUrlResponse,
67
79
  ]
80
+ """Retrieve a URL for accessing or downloading a specific file."""
68
81
 
69
82
  Update: grpc.aio.UnaryUnaryMultiCallable[
70
83
  yandex.cloud.ai.files.v1.file_service_pb2.UpdateFileRequest,
71
84
  yandex.cloud.ai.files.v1.file_pb2.File,
72
85
  ]
86
+ """Update an existing file."""
73
87
 
74
88
  Delete: grpc.aio.UnaryUnaryMultiCallable[
75
89
  yandex.cloud.ai.files.v1.file_service_pb2.DeleteFileRequest,
76
90
  yandex.cloud.ai.files.v1.file_service_pb2.DeleteFileResponse,
77
91
  ]
92
+ """Delete a file by its ID."""
78
93
 
79
94
  List: grpc.aio.UnaryUnaryMultiCallable[
80
95
  yandex.cloud.ai.files.v1.file_service_pb2.ListFilesRequest,
81
96
  yandex.cloud.ai.files.v1.file_service_pb2.ListFilesResponse,
82
97
  ]
98
+ """List files in a specific folder."""
83
99
 
84
100
  class FileServiceServicer(metaclass=abc.ABCMeta):
101
+ """FileService provides operations for managing files."""
102
+
85
103
  @abc.abstractmethod
86
104
  def Create(
87
105
  self,
88
106
  request: yandex.cloud.ai.files.v1.file_service_pb2.CreateFileRequest,
89
107
  context: _ServicerContext,
90
- ) -> typing.Union[yandex.cloud.ai.files.v1.file_pb2.File, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_pb2.File]]: ...
108
+ ) -> typing.Union[yandex.cloud.ai.files.v1.file_pb2.File, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_pb2.File]]:
109
+ """Create a new file."""
91
110
 
92
111
  @abc.abstractmethod
93
112
  def Get(
94
113
  self,
95
114
  request: yandex.cloud.ai.files.v1.file_service_pb2.GetFileRequest,
96
115
  context: _ServicerContext,
97
- ) -> typing.Union[yandex.cloud.ai.files.v1.file_pb2.File, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_pb2.File]]: ...
116
+ ) -> typing.Union[yandex.cloud.ai.files.v1.file_pb2.File, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_pb2.File]]:
117
+ """Retrieve details of a specific file by its ID."""
98
118
 
99
119
  @abc.abstractmethod
100
120
  def GetUrl(
101
121
  self,
102
122
  request: yandex.cloud.ai.files.v1.file_service_pb2.GetFileUrlRequest,
103
123
  context: _ServicerContext,
104
- ) -> typing.Union[yandex.cloud.ai.files.v1.file_service_pb2.GetFileUrlResponse, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_service_pb2.GetFileUrlResponse]]: ...
124
+ ) -> typing.Union[yandex.cloud.ai.files.v1.file_service_pb2.GetFileUrlResponse, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_service_pb2.GetFileUrlResponse]]:
125
+ """Retrieve a URL for accessing or downloading a specific file."""
105
126
 
106
127
  @abc.abstractmethod
107
128
  def Update(
108
129
  self,
109
130
  request: yandex.cloud.ai.files.v1.file_service_pb2.UpdateFileRequest,
110
131
  context: _ServicerContext,
111
- ) -> typing.Union[yandex.cloud.ai.files.v1.file_pb2.File, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_pb2.File]]: ...
132
+ ) -> typing.Union[yandex.cloud.ai.files.v1.file_pb2.File, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_pb2.File]]:
133
+ """Update an existing file."""
112
134
 
113
135
  @abc.abstractmethod
114
136
  def Delete(
115
137
  self,
116
138
  request: yandex.cloud.ai.files.v1.file_service_pb2.DeleteFileRequest,
117
139
  context: _ServicerContext,
118
- ) -> typing.Union[yandex.cloud.ai.files.v1.file_service_pb2.DeleteFileResponse, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_service_pb2.DeleteFileResponse]]: ...
140
+ ) -> typing.Union[yandex.cloud.ai.files.v1.file_service_pb2.DeleteFileResponse, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_service_pb2.DeleteFileResponse]]:
141
+ """Delete a file by its ID."""
119
142
 
120
143
  @abc.abstractmethod
121
144
  def List(
122
145
  self,
123
146
  request: yandex.cloud.ai.files.v1.file_service_pb2.ListFilesRequest,
124
147
  context: _ServicerContext,
125
- ) -> typing.Union[yandex.cloud.ai.files.v1.file_service_pb2.ListFilesResponse, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_service_pb2.ListFilesResponse]]: ...
148
+ ) -> typing.Union[yandex.cloud.ai.files.v1.file_service_pb2.ListFilesResponse, collections.abc.Awaitable[yandex.cloud.ai.files.v1.file_service_pb2.ListFilesResponse]]:
149
+ """List files in a specific folder."""
126
150
 
127
151
  def add_FileServiceServicer_to_server(servicer: FileServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
@@ -11,10 +11,11 @@ from google.protobuf.internal import builder as _builder
11
11
  _sym_db = _symbol_database.Default()
12
12
 
13
13
 
14
+ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
14
15
  from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
15
16
 
16
17
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/ai/foundation_models/v1/text_common.proto\x12$yandex.cloud.ai.foundation_models.v1\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\"2\n\x07Message\x12\x0c\n\x04role\x18\x01 \x01(\t\x12\x0e\n\x04text\x18\x02 \x01(\tH\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\"\xe9\x02\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\"\xc4\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\"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\x42\x86\x01\n(yandex.cloud.api.ai.foundation_models.v1ZZgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/foundation_models/v1;foundation_modelsb\x06proto3')
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\"2\n\x07Message\x12\x0c\n\x04role\x18\x01 \x01(\t\x12\x0e\n\x04text\x18\x02 \x01(\tH\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\"V\n\x04Tool\x12\x42\n\x08\x66unction\x18\x01 \x01(\x0b\x32..yandex.cloud.ai.foundation_models.v1.FunctionH\x00\x42\n\n\x08ToolType\"Z\n\x08\x46unction\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')
18
19
 
19
20
  _globals = globals()
20
21
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -22,16 +23,32 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.foundation_
22
23
  if _descriptor._USE_C_DESCRIPTORS == False:
23
24
  DESCRIPTOR._options = None
24
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'
25
- _globals['_COMPLETIONOPTIONS']._serialized_start=129
26
- _globals['_COMPLETIONOPTIONS']._serialized_end=264
27
- _globals['_MESSAGE']._serialized_start=266
28
- _globals['_MESSAGE']._serialized_end=316
29
- _globals['_CONTENTUSAGE']._serialized_start=318
30
- _globals['_CONTENTUSAGE']._serialized_end=408
31
- _globals['_ALTERNATIVE']._serialized_start=411
32
- _globals['_ALTERNATIVE']._serialized_end=772
33
- _globals['_ALTERNATIVE_ALTERNATIVESTATUS']._serialized_start=576
34
- _globals['_ALTERNATIVE_ALTERNATIVESTATUS']._serialized_end=772
35
- _globals['_TOKEN']._serialized_start=774
36
- _globals['_TOKEN']._serialized_end=824
26
+ _globals['_COMPLETIONOPTIONS']._serialized_start=159
27
+ _globals['_COMPLETIONOPTIONS']._serialized_end=294
28
+ _globals['_MESSAGE']._serialized_start=296
29
+ _globals['_MESSAGE']._serialized_end=346
30
+ _globals['_CONTENTUSAGE']._serialized_start=348
31
+ _globals['_CONTENTUSAGE']._serialized_end=438
32
+ _globals['_ALTERNATIVE']._serialized_start=441
33
+ _globals['_ALTERNATIVE']._serialized_end=837
34
+ _globals['_ALTERNATIVE_ALTERNATIVESTATUS']._serialized_start=606
35
+ _globals['_ALTERNATIVE_ALTERNATIVESTATUS']._serialized_end=837
36
+ _globals['_TOKEN']._serialized_start=839
37
+ _globals['_TOKEN']._serialized_end=889
38
+ _globals['_TOOL']._serialized_start=891
39
+ _globals['_TOOL']._serialized_end=977
40
+ _globals['_FUNCTION']._serialized_start=979
41
+ _globals['_FUNCTION']._serialized_end=1069
42
+ _globals['_TOOLCALL']._serialized_start=1071
43
+ _globals['_TOOLCALL']._serialized_end=1174
44
+ _globals['_FUNCTIONCALL']._serialized_start=1176
45
+ _globals['_FUNCTIONCALL']._serialized_end=1248
46
+ _globals['_TOOLCALLLIST']._serialized_start=1250
47
+ _globals['_TOOLCALLLIST']._serialized_end=1332
48
+ _globals['_TOOLRESULT']._serialized_start=1334
49
+ _globals['_TOOLRESULT']._serialized_end=1445
50
+ _globals['_FUNCTIONRESULT']._serialized_start=1447
51
+ _globals['_FUNCTIONRESULT']._serialized_end=1511
52
+ _globals['_TOOLRESULTLIST']._serialized_start=1513
53
+ _globals['_TOOLRESULTLIST']._serialized_end=1601
37
54
  # @@protoc_insertion_point(module_scope)