google-apis-aiplatform_v1 0.32.0 → 0.34.0
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.
@@ -52,6 +52,552 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
+
# Creates a Dataset.
|
56
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset] google_cloud_aiplatform_v1_dataset_object
|
57
|
+
# @param [String] parent
|
58
|
+
# Required. The resource name of the Location to create the Dataset in. Format: `
|
59
|
+
# projects/`project`/locations/`location``
|
60
|
+
# @param [String] fields
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
62
|
+
# @param [String] quota_user
|
63
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
64
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
65
|
+
# @param [Google::Apis::RequestOptions] options
|
66
|
+
# Request-specific options
|
67
|
+
#
|
68
|
+
# @yield [result, err] Result & error if block supplied
|
69
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
70
|
+
# @yieldparam err [StandardError] error object if request failed
|
71
|
+
#
|
72
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
73
|
+
#
|
74
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
75
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
76
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
77
|
+
def create_dataset(google_cloud_aiplatform_v1_dataset_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
78
|
+
command = make_simple_command(:post, 'v1/datasets', options)
|
79
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset::Representation
|
80
|
+
command.request_object = google_cloud_aiplatform_v1_dataset_object
|
81
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
82
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
83
|
+
command.query['parent'] = parent unless parent.nil?
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
+
execute_or_queue_command(command, &block)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Deletes a Dataset.
|
90
|
+
# @param [String] name
|
91
|
+
# Required. The resource name of the Dataset to delete. Format: `projects/`
|
92
|
+
# project`/locations/`location`/datasets/`dataset``
|
93
|
+
# @param [String] fields
|
94
|
+
# Selector specifying which fields to include in a partial response.
|
95
|
+
# @param [String] quota_user
|
96
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
97
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
98
|
+
# @param [Google::Apis::RequestOptions] options
|
99
|
+
# Request-specific options
|
100
|
+
#
|
101
|
+
# @yield [result, err] Result & error if block supplied
|
102
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
103
|
+
# @yieldparam err [StandardError] error object if request failed
|
104
|
+
#
|
105
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
106
|
+
#
|
107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
110
|
+
def delete_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
|
111
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
112
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
113
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
114
|
+
command.params['name'] = name unless name.nil?
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
117
|
+
execute_or_queue_command(command, &block)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Gets a Dataset.
|
121
|
+
# @param [String] name
|
122
|
+
# Required. The name of the Dataset resource.
|
123
|
+
# @param [String] read_mask
|
124
|
+
# Mask specifying which fields to read.
|
125
|
+
# @param [String] fields
|
126
|
+
# Selector specifying which fields to include in a partial response.
|
127
|
+
# @param [String] quota_user
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
130
|
+
# @param [Google::Apis::RequestOptions] options
|
131
|
+
# Request-specific options
|
132
|
+
#
|
133
|
+
# @yield [result, err] Result & error if block supplied
|
134
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset] parsed result object
|
135
|
+
# @yieldparam err [StandardError] error object if request failed
|
136
|
+
#
|
137
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset]
|
138
|
+
#
|
139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
142
|
+
def get_dataset(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
143
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
144
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset::Representation
|
145
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset
|
146
|
+
command.params['name'] = name unless name.nil?
|
147
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
148
|
+
command.query['fields'] = fields unless fields.nil?
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
|
+
execute_or_queue_command(command, &block)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Lists Datasets in a Location.
|
154
|
+
# @param [String] filter
|
155
|
+
# An expression for filtering the results of the request. For field names both
|
156
|
+
# snake_case and camelCase are supported. * `display_name`: supports = and != * `
|
157
|
+
# metadata_schema_uri`: supports = and != * `labels` supports general map
|
158
|
+
# functions that is: * `labels.key=value` - key:value equality * `labels.key:*
|
159
|
+
# or labels:key - key existence * A key including a space must be quoted. `
|
160
|
+
# labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels.
|
161
|
+
# myKey="myValue"`
|
162
|
+
# @param [String] order_by
|
163
|
+
# A comma-separated list of fields to order by, sorted in ascending order. Use "
|
164
|
+
# desc" after a field name for descending. Supported fields: * `display_name` * `
|
165
|
+
# create_time` * `update_time`
|
166
|
+
# @param [Fixnum] page_size
|
167
|
+
# The standard list page size.
|
168
|
+
# @param [String] page_token
|
169
|
+
# The standard list page token.
|
170
|
+
# @param [String] parent
|
171
|
+
# Required. The name of the Dataset's parent resource. Format: `projects/`
|
172
|
+
# project`/locations/`location``
|
173
|
+
# @param [String] read_mask
|
174
|
+
# Mask specifying which fields to read.
|
175
|
+
# @param [String] fields
|
176
|
+
# Selector specifying which fields to include in a partial response.
|
177
|
+
# @param [String] quota_user
|
178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
180
|
+
# @param [Google::Apis::RequestOptions] options
|
181
|
+
# Request-specific options
|
182
|
+
#
|
183
|
+
# @yield [result, err] Result & error if block supplied
|
184
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetsResponse] parsed result object
|
185
|
+
# @yieldparam err [StandardError] error object if request failed
|
186
|
+
#
|
187
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetsResponse]
|
188
|
+
#
|
189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
192
|
+
def list_datasets(filter: nil, order_by: nil, page_size: nil, page_token: nil, parent: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
193
|
+
command = make_simple_command(:get, 'v1/datasets', options)
|
194
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetsResponse::Representation
|
195
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetsResponse
|
196
|
+
command.query['filter'] = filter unless filter.nil?
|
197
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
198
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
199
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
200
|
+
command.query['parent'] = parent unless parent.nil?
|
201
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
202
|
+
command.query['fields'] = fields unless fields.nil?
|
203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
|
+
execute_or_queue_command(command, &block)
|
205
|
+
end
|
206
|
+
|
207
|
+
# Updates a Dataset.
|
208
|
+
# @param [String] name
|
209
|
+
# Output only. Identifier. The resource name of the Dataset.
|
210
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset] google_cloud_aiplatform_v1_dataset_object
|
211
|
+
# @param [String] update_mask
|
212
|
+
# Required. The update mask applies to the resource. For the `FieldMask`
|
213
|
+
# definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` *
|
214
|
+
# `description` * `labels`
|
215
|
+
# @param [String] fields
|
216
|
+
# Selector specifying which fields to include in a partial response.
|
217
|
+
# @param [String] quota_user
|
218
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
219
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
220
|
+
# @param [Google::Apis::RequestOptions] options
|
221
|
+
# Request-specific options
|
222
|
+
#
|
223
|
+
# @yield [result, err] Result & error if block supplied
|
224
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset] parsed result object
|
225
|
+
# @yieldparam err [StandardError] error object if request failed
|
226
|
+
#
|
227
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset]
|
228
|
+
#
|
229
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
230
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
231
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
232
|
+
def patch_dataset(name, google_cloud_aiplatform_v1_dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
233
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
234
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset::Representation
|
235
|
+
command.request_object = google_cloud_aiplatform_v1_dataset_object
|
236
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset::Representation
|
237
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset
|
238
|
+
command.params['name'] = name unless name.nil?
|
239
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
240
|
+
command.query['fields'] = fields unless fields.nil?
|
241
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
242
|
+
execute_or_queue_command(command, &block)
|
243
|
+
end
|
244
|
+
|
245
|
+
# Create a version from a Dataset.
|
246
|
+
# @param [String] parent
|
247
|
+
# Required. The name of the Dataset resource. Format: `projects/`project`/
|
248
|
+
# locations/`location`/datasets/`dataset``
|
249
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion] google_cloud_aiplatform_v1_dataset_version_object
|
250
|
+
# @param [String] fields
|
251
|
+
# Selector specifying which fields to include in a partial response.
|
252
|
+
# @param [String] quota_user
|
253
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
254
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
255
|
+
# @param [Google::Apis::RequestOptions] options
|
256
|
+
# Request-specific options
|
257
|
+
#
|
258
|
+
# @yield [result, err] Result & error if block supplied
|
259
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
260
|
+
# @yieldparam err [StandardError] error object if request failed
|
261
|
+
#
|
262
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
263
|
+
#
|
264
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
265
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
266
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
267
|
+
def create_dataset_dataset_version(parent, google_cloud_aiplatform_v1_dataset_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
268
|
+
command = make_simple_command(:post, 'v1/{+parent}/datasetVersions', options)
|
269
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion::Representation
|
270
|
+
command.request_object = google_cloud_aiplatform_v1_dataset_version_object
|
271
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
272
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
273
|
+
command.params['parent'] = parent unless parent.nil?
|
274
|
+
command.query['fields'] = fields unless fields.nil?
|
275
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
276
|
+
execute_or_queue_command(command, &block)
|
277
|
+
end
|
278
|
+
|
279
|
+
# Deletes a Dataset version.
|
280
|
+
# @param [String] name
|
281
|
+
# Required. The resource name of the Dataset version to delete. Format: `
|
282
|
+
# projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/`
|
283
|
+
# dataset_version``
|
284
|
+
# @param [String] fields
|
285
|
+
# Selector specifying which fields to include in a partial response.
|
286
|
+
# @param [String] quota_user
|
287
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
288
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
289
|
+
# @param [Google::Apis::RequestOptions] options
|
290
|
+
# Request-specific options
|
291
|
+
#
|
292
|
+
# @yield [result, err] Result & error if block supplied
|
293
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
294
|
+
# @yieldparam err [StandardError] error object if request failed
|
295
|
+
#
|
296
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
297
|
+
#
|
298
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
299
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
300
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
301
|
+
def delete_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
302
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
303
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
304
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
305
|
+
command.params['name'] = name unless name.nil?
|
306
|
+
command.query['fields'] = fields unless fields.nil?
|
307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
308
|
+
execute_or_queue_command(command, &block)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Gets a Dataset version.
|
312
|
+
# @param [String] name
|
313
|
+
# Required. The resource name of the Dataset version to delete. Format: `
|
314
|
+
# projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/`
|
315
|
+
# dataset_version``
|
316
|
+
# @param [String] read_mask
|
317
|
+
# Mask specifying which fields to read.
|
318
|
+
# @param [String] fields
|
319
|
+
# Selector specifying which fields to include in a partial response.
|
320
|
+
# @param [String] quota_user
|
321
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
322
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
323
|
+
# @param [Google::Apis::RequestOptions] options
|
324
|
+
# Request-specific options
|
325
|
+
#
|
326
|
+
# @yield [result, err] Result & error if block supplied
|
327
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion] parsed result object
|
328
|
+
# @yieldparam err [StandardError] error object if request failed
|
329
|
+
#
|
330
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion]
|
331
|
+
#
|
332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
335
|
+
def get_dataset_dataset_version(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
336
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
337
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion::Representation
|
338
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion
|
339
|
+
command.params['name'] = name unless name.nil?
|
340
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
341
|
+
command.query['fields'] = fields unless fields.nil?
|
342
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
343
|
+
execute_or_queue_command(command, &block)
|
344
|
+
end
|
345
|
+
|
346
|
+
# Lists DatasetVersions in a Dataset.
|
347
|
+
# @param [String] parent
|
348
|
+
# Required. The resource name of the Dataset to list DatasetVersions from.
|
349
|
+
# Format: `projects/`project`/locations/`location`/datasets/`dataset``
|
350
|
+
# @param [String] filter
|
351
|
+
# Optional. The standard list filter.
|
352
|
+
# @param [String] order_by
|
353
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
354
|
+
# order. Use "desc" after a field name for descending.
|
355
|
+
# @param [Fixnum] page_size
|
356
|
+
# Optional. The standard list page size.
|
357
|
+
# @param [String] page_token
|
358
|
+
# Optional. The standard list page token.
|
359
|
+
# @param [String] read_mask
|
360
|
+
# Optional. Mask specifying which fields to read.
|
361
|
+
# @param [String] fields
|
362
|
+
# Selector specifying which fields to include in a partial response.
|
363
|
+
# @param [String] quota_user
|
364
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
365
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
366
|
+
# @param [Google::Apis::RequestOptions] options
|
367
|
+
# Request-specific options
|
368
|
+
#
|
369
|
+
# @yield [result, err] Result & error if block supplied
|
370
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetVersionsResponse] parsed result object
|
371
|
+
# @yieldparam err [StandardError] error object if request failed
|
372
|
+
#
|
373
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetVersionsResponse]
|
374
|
+
#
|
375
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
376
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
377
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
378
|
+
def list_dataset_dataset_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
379
|
+
command = make_simple_command(:get, 'v1/{+parent}/datasetVersions', options)
|
380
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetVersionsResponse::Representation
|
381
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetVersionsResponse
|
382
|
+
command.params['parent'] = parent unless parent.nil?
|
383
|
+
command.query['filter'] = filter unless filter.nil?
|
384
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
385
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
386
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
387
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
388
|
+
command.query['fields'] = fields unless fields.nil?
|
389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
390
|
+
execute_or_queue_command(command, &block)
|
391
|
+
end
|
392
|
+
|
393
|
+
# Updates a DatasetVersion.
|
394
|
+
# @param [String] name
|
395
|
+
# Output only. Identifier. The resource name of the DatasetVersion.
|
396
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion] google_cloud_aiplatform_v1_dataset_version_object
|
397
|
+
# @param [String] update_mask
|
398
|
+
# Required. The update mask applies to the resource. For the `FieldMask`
|
399
|
+
# definition, see google.protobuf.FieldMask. Updatable fields: * `display_name`
|
400
|
+
# @param [String] fields
|
401
|
+
# Selector specifying which fields to include in a partial response.
|
402
|
+
# @param [String] quota_user
|
403
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
404
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
405
|
+
# @param [Google::Apis::RequestOptions] options
|
406
|
+
# Request-specific options
|
407
|
+
#
|
408
|
+
# @yield [result, err] Result & error if block supplied
|
409
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion] parsed result object
|
410
|
+
# @yieldparam err [StandardError] error object if request failed
|
411
|
+
#
|
412
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion]
|
413
|
+
#
|
414
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
415
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
416
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
417
|
+
def patch_dataset_dataset_version(name, google_cloud_aiplatform_v1_dataset_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
418
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
419
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion::Representation
|
420
|
+
command.request_object = google_cloud_aiplatform_v1_dataset_version_object
|
421
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion::Representation
|
422
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion
|
423
|
+
command.params['name'] = name unless name.nil?
|
424
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
425
|
+
command.query['fields'] = fields unless fields.nil?
|
426
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
427
|
+
execute_or_queue_command(command, &block)
|
428
|
+
end
|
429
|
+
|
430
|
+
# Restores a dataset version.
|
431
|
+
# @param [String] name
|
432
|
+
# Required. The name of the DatasetVersion resource. Format: `projects/`project`/
|
433
|
+
# locations/`location`/datasets/`dataset`/datasetVersions/`dataset_version``
|
434
|
+
# @param [String] fields
|
435
|
+
# Selector specifying which fields to include in a partial response.
|
436
|
+
# @param [String] quota_user
|
437
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
438
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
439
|
+
# @param [Google::Apis::RequestOptions] options
|
440
|
+
# Request-specific options
|
441
|
+
#
|
442
|
+
# @yield [result, err] Result & error if block supplied
|
443
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
444
|
+
# @yieldparam err [StandardError] error object if request failed
|
445
|
+
#
|
446
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
447
|
+
#
|
448
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
449
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
450
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
451
|
+
def restore_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
452
|
+
command = make_simple_command(:get, 'v1/{+name}:restore', options)
|
453
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
454
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
455
|
+
command.params['name'] = name unless name.nil?
|
456
|
+
command.query['fields'] = fields unless fields.nil?
|
457
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
458
|
+
execute_or_queue_command(command, &block)
|
459
|
+
end
|
460
|
+
|
461
|
+
# Return a list of tokens based on the input text.
|
462
|
+
# @param [String] endpoint
|
463
|
+
# Required. The name of the Endpoint requested to get lists of tokens and token
|
464
|
+
# ids.
|
465
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest] google_cloud_aiplatform_v1_compute_tokens_request_object
|
466
|
+
# @param [String] fields
|
467
|
+
# Selector specifying which fields to include in a partial response.
|
468
|
+
# @param [String] quota_user
|
469
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
470
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
471
|
+
# @param [Google::Apis::RequestOptions] options
|
472
|
+
# Request-specific options
|
473
|
+
#
|
474
|
+
# @yield [result, err] Result & error if block supplied
|
475
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse] parsed result object
|
476
|
+
# @yieldparam err [StandardError] error object if request failed
|
477
|
+
#
|
478
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse]
|
479
|
+
#
|
480
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
481
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
482
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
483
|
+
def compute_endpoint_tokens(endpoint, google_cloud_aiplatform_v1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
484
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:computeTokens', options)
|
485
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest::Representation
|
486
|
+
command.request_object = google_cloud_aiplatform_v1_compute_tokens_request_object
|
487
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse::Representation
|
488
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse
|
489
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
490
|
+
command.query['fields'] = fields unless fields.nil?
|
491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
492
|
+
execute_or_queue_command(command, &block)
|
493
|
+
end
|
494
|
+
|
495
|
+
# Perform a token counting.
|
496
|
+
# @param [String] endpoint
|
497
|
+
# Required. The name of the Endpoint requested to perform token counting. Format:
|
498
|
+
# `projects/`project`/locations/`location`/endpoints/`endpoint``
|
499
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest] google_cloud_aiplatform_v1_count_tokens_request_object
|
500
|
+
# @param [String] fields
|
501
|
+
# Selector specifying which fields to include in a partial response.
|
502
|
+
# @param [String] quota_user
|
503
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
504
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
505
|
+
# @param [Google::Apis::RequestOptions] options
|
506
|
+
# Request-specific options
|
507
|
+
#
|
508
|
+
# @yield [result, err] Result & error if block supplied
|
509
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse] parsed result object
|
510
|
+
# @yieldparam err [StandardError] error object if request failed
|
511
|
+
#
|
512
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse]
|
513
|
+
#
|
514
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
515
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
516
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
517
|
+
def count_endpoint_tokens(endpoint, google_cloud_aiplatform_v1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
518
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:countTokens', options)
|
519
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest::Representation
|
520
|
+
command.request_object = google_cloud_aiplatform_v1_count_tokens_request_object
|
521
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse::Representation
|
522
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse
|
523
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
524
|
+
command.query['fields'] = fields unless fields.nil?
|
525
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
526
|
+
execute_or_queue_command(command, &block)
|
527
|
+
end
|
528
|
+
|
529
|
+
# Generate content with multimodal inputs.
|
530
|
+
# @param [String] model
|
531
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
532
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
533
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
534
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
535
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
536
|
+
# @param [String] fields
|
537
|
+
# Selector specifying which fields to include in a partial response.
|
538
|
+
# @param [String] quota_user
|
539
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
540
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
541
|
+
# @param [Google::Apis::RequestOptions] options
|
542
|
+
# Request-specific options
|
543
|
+
#
|
544
|
+
# @yield [result, err] Result & error if block supplied
|
545
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
546
|
+
# @yieldparam err [StandardError] error object if request failed
|
547
|
+
#
|
548
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
549
|
+
#
|
550
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
551
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
552
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
553
|
+
def generate_endpoint_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
554
|
+
command = make_simple_command(:post, 'v1/{+model}:generateContent', options)
|
555
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
556
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
557
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
558
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
559
|
+
command.params['model'] = model unless model.nil?
|
560
|
+
command.query['fields'] = fields unless fields.nil?
|
561
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
562
|
+
execute_or_queue_command(command, &block)
|
563
|
+
end
|
564
|
+
|
565
|
+
# Generate content with multimodal inputs with streaming support.
|
566
|
+
# @param [String] model
|
567
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
568
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
569
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
570
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
571
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
572
|
+
# @param [String] fields
|
573
|
+
# Selector specifying which fields to include in a partial response.
|
574
|
+
# @param [String] quota_user
|
575
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
576
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
577
|
+
# @param [Google::Apis::RequestOptions] options
|
578
|
+
# Request-specific options
|
579
|
+
#
|
580
|
+
# @yield [result, err] Result & error if block supplied
|
581
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
582
|
+
# @yieldparam err [StandardError] error object if request failed
|
583
|
+
#
|
584
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
585
|
+
#
|
586
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
587
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
588
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
589
|
+
def stream_endpoint_generate_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
590
|
+
command = make_simple_command(:post, 'v1/{+model}:streamGenerateContent', options)
|
591
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
592
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
593
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
594
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
595
|
+
command.params['model'] = model unless model.nil?
|
596
|
+
command.query['fields'] = fields unless fields.nil?
|
597
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
598
|
+
execute_or_queue_command(command, &block)
|
599
|
+
end
|
600
|
+
|
55
601
|
# Evaluates instances based on a given metric.
|
56
602
|
# @param [String] location
|
57
603
|
# Required. The resource name of the Location to evaluate the instances. Format:
|
@@ -1708,7 +2254,9 @@ module Google
|
|
1708
2254
|
execute_or_queue_command(command, &block)
|
1709
2255
|
end
|
1710
2256
|
|
1711
|
-
# Lists Annotations belongs to a dataitem
|
2257
|
+
# Lists Annotations belongs to a dataitem This RPC is only available in
|
2258
|
+
# InternalDatasetService. It is only used for exporting conversation data to
|
2259
|
+
# CCAI Insights.
|
1712
2260
|
# @param [String] parent
|
1713
2261
|
# Required. The resource name of the DataItem to list Annotations from. Format: `
|
1714
2262
|
# projects/`project`/locations/`location`/datasets/`dataset`/dataItems/`
|
@@ -3471,8 +4019,10 @@ module Google
|
|
3471
4019
|
|
3472
4020
|
# Generate content with multimodal inputs.
|
3473
4021
|
# @param [String] model
|
3474
|
-
# Required. The name of the publisher model
|
3475
|
-
#
|
4022
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
4023
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
4024
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
4025
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
3476
4026
|
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
3477
4027
|
# @param [String] fields
|
3478
4028
|
# Selector specifying which fields to include in a partial response.
|
@@ -3775,8 +4325,10 @@ module Google
|
|
3775
4325
|
|
3776
4326
|
# Generate content with multimodal inputs with streaming support.
|
3777
4327
|
# @param [String] model
|
3778
|
-
# Required. The name of the publisher model
|
3779
|
-
#
|
4328
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
4329
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
4330
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
4331
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
3780
4332
|
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
3781
4333
|
# @param [String] fields
|
3782
4334
|
# Selector specifying which fields to include in a partial response.
|
@@ -4894,6 +5446,51 @@ module Google
|
|
4894
5446
|
execute_or_queue_command(command, &block)
|
4895
5447
|
end
|
4896
5448
|
|
5449
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
5450
|
+
# resource exists and does not have a policy set.
|
5451
|
+
# @param [String] resource
|
5452
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
5453
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
5454
|
+
# appropriate value for this field.
|
5455
|
+
# @param [Fixnum] options_requested_policy_version
|
5456
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
5457
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
5458
|
+
# rejected. Requests for policies with any conditional role bindings must
|
5459
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
5460
|
+
# valid value or leave the field unset. The policy in the response might use the
|
5461
|
+
# policy version that you specified, or it might use a lower policy version. For
|
5462
|
+
# example, if you specify version 3, but the policy has no conditional role
|
5463
|
+
# bindings, the response uses version 1. To learn which resources support
|
5464
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
5465
|
+
# google.com/iam/help/conditions/resource-policies).
|
5466
|
+
# @param [String] fields
|
5467
|
+
# Selector specifying which fields to include in a partial response.
|
5468
|
+
# @param [String] quota_user
|
5469
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5470
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5471
|
+
# @param [Google::Apis::RequestOptions] options
|
5472
|
+
# Request-specific options
|
5473
|
+
#
|
5474
|
+
# @yield [result, err] Result & error if block supplied
|
5475
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleIamV1Policy] parsed result object
|
5476
|
+
# @yieldparam err [StandardError] error object if request failed
|
5477
|
+
#
|
5478
|
+
# @return [Google::Apis::AiplatformV1::GoogleIamV1Policy]
|
5479
|
+
#
|
5480
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5481
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5482
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5483
|
+
def get_project_location_feature_online_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5484
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
5485
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleIamV1Policy::Representation
|
5486
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleIamV1Policy
|
5487
|
+
command.params['resource'] = resource unless resource.nil?
|
5488
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
5489
|
+
command.query['fields'] = fields unless fields.nil?
|
5490
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5491
|
+
execute_or_queue_command(command, &block)
|
5492
|
+
end
|
5493
|
+
|
4897
5494
|
# Lists FeatureOnlineStores in a given project and location.
|
4898
5495
|
# @param [String] parent
|
4899
5496
|
# Required. The resource name of the Location to list FeatureOnlineStores.
|
@@ -4997,6 +5594,84 @@ module Google
|
|
4997
5594
|
execute_or_queue_command(command, &block)
|
4998
5595
|
end
|
4999
5596
|
|
5597
|
+
# Sets the access control policy on the specified resource. Replaces any
|
5598
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
5599
|
+
# PERMISSION_DENIED` errors.
|
5600
|
+
# @param [String] resource
|
5601
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
5602
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
5603
|
+
# appropriate value for this field.
|
5604
|
+
# @param [Google::Apis::AiplatformV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
5605
|
+
# @param [String] fields
|
5606
|
+
# Selector specifying which fields to include in a partial response.
|
5607
|
+
# @param [String] quota_user
|
5608
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5609
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5610
|
+
# @param [Google::Apis::RequestOptions] options
|
5611
|
+
# Request-specific options
|
5612
|
+
#
|
5613
|
+
# @yield [result, err] Result & error if block supplied
|
5614
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleIamV1Policy] parsed result object
|
5615
|
+
# @yieldparam err [StandardError] error object if request failed
|
5616
|
+
#
|
5617
|
+
# @return [Google::Apis::AiplatformV1::GoogleIamV1Policy]
|
5618
|
+
#
|
5619
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5620
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5621
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5622
|
+
def set_project_location_feature_online_store_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5623
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
5624
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleIamV1SetIamPolicyRequest::Representation
|
5625
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
5626
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleIamV1Policy::Representation
|
5627
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleIamV1Policy
|
5628
|
+
command.params['resource'] = resource unless resource.nil?
|
5629
|
+
command.query['fields'] = fields unless fields.nil?
|
5630
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5631
|
+
execute_or_queue_command(command, &block)
|
5632
|
+
end
|
5633
|
+
|
5634
|
+
# Returns permissions that a caller has on the specified resource. If the
|
5635
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
5636
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
5637
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
5638
|
+
# This operation may "fail open" without warning.
|
5639
|
+
# @param [String] resource
|
5640
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
5641
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
5642
|
+
# appropriate value for this field.
|
5643
|
+
# @param [Array<String>, String] permissions
|
5644
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
5645
|
+
# (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
5646
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
5647
|
+
# @param [String] fields
|
5648
|
+
# Selector specifying which fields to include in a partial response.
|
5649
|
+
# @param [String] quota_user
|
5650
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5651
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5652
|
+
# @param [Google::Apis::RequestOptions] options
|
5653
|
+
# Request-specific options
|
5654
|
+
#
|
5655
|
+
# @yield [result, err] Result & error if block supplied
|
5656
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
5657
|
+
# @yieldparam err [StandardError] error object if request failed
|
5658
|
+
#
|
5659
|
+
# @return [Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse]
|
5660
|
+
#
|
5661
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5662
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5663
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5664
|
+
def test_project_location_feature_online_store_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5665
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
5666
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse::Representation
|
5667
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse
|
5668
|
+
command.params['resource'] = resource unless resource.nil?
|
5669
|
+
command.query['permissions'] = permissions unless permissions.nil?
|
5670
|
+
command.query['fields'] = fields unless fields.nil?
|
5671
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5672
|
+
execute_or_queue_command(command, &block)
|
5673
|
+
end
|
5674
|
+
|
5000
5675
|
# Creates a new FeatureView in a given FeatureOnlineStore.
|
5001
5676
|
# @param [String] parent
|
5002
5677
|
# Required. The resource name of the FeatureOnlineStore to create FeatureViews.
|
@@ -5140,6 +5815,51 @@ module Google
|
|
5140
5815
|
execute_or_queue_command(command, &block)
|
5141
5816
|
end
|
5142
5817
|
|
5818
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
5819
|
+
# resource exists and does not have a policy set.
|
5820
|
+
# @param [String] resource
|
5821
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
5822
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
5823
|
+
# appropriate value for this field.
|
5824
|
+
# @param [Fixnum] options_requested_policy_version
|
5825
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
5826
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
5827
|
+
# rejected. Requests for policies with any conditional role bindings must
|
5828
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
5829
|
+
# valid value or leave the field unset. The policy in the response might use the
|
5830
|
+
# policy version that you specified, or it might use a lower policy version. For
|
5831
|
+
# example, if you specify version 3, but the policy has no conditional role
|
5832
|
+
# bindings, the response uses version 1. To learn which resources support
|
5833
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
5834
|
+
# google.com/iam/help/conditions/resource-policies).
|
5835
|
+
# @param [String] fields
|
5836
|
+
# Selector specifying which fields to include in a partial response.
|
5837
|
+
# @param [String] quota_user
|
5838
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5839
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5840
|
+
# @param [Google::Apis::RequestOptions] options
|
5841
|
+
# Request-specific options
|
5842
|
+
#
|
5843
|
+
# @yield [result, err] Result & error if block supplied
|
5844
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleIamV1Policy] parsed result object
|
5845
|
+
# @yieldparam err [StandardError] error object if request failed
|
5846
|
+
#
|
5847
|
+
# @return [Google::Apis::AiplatformV1::GoogleIamV1Policy]
|
5848
|
+
#
|
5849
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5850
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5851
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5852
|
+
def get_project_location_feature_online_store_feature_view_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5853
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
5854
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleIamV1Policy::Representation
|
5855
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleIamV1Policy
|
5856
|
+
command.params['resource'] = resource unless resource.nil?
|
5857
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
5858
|
+
command.query['fields'] = fields unless fields.nil?
|
5859
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5860
|
+
execute_or_queue_command(command, &block)
|
5861
|
+
end
|
5862
|
+
|
5143
5863
|
# Lists FeatureViews in a given FeatureOnlineStore.
|
5144
5864
|
# @param [String] parent
|
5145
5865
|
# Required. The resource name of the FeatureOnlineStore to list FeatureViews.
|
@@ -5282,6 +6002,43 @@ module Google
|
|
5282
6002
|
execute_or_queue_command(command, &block)
|
5283
6003
|
end
|
5284
6004
|
|
6005
|
+
# Sets the access control policy on the specified resource. Replaces any
|
6006
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
6007
|
+
# PERMISSION_DENIED` errors.
|
6008
|
+
# @param [String] resource
|
6009
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
6010
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
6011
|
+
# appropriate value for this field.
|
6012
|
+
# @param [Google::Apis::AiplatformV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
6013
|
+
# @param [String] fields
|
6014
|
+
# Selector specifying which fields to include in a partial response.
|
6015
|
+
# @param [String] quota_user
|
6016
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6017
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6018
|
+
# @param [Google::Apis::RequestOptions] options
|
6019
|
+
# Request-specific options
|
6020
|
+
#
|
6021
|
+
# @yield [result, err] Result & error if block supplied
|
6022
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleIamV1Policy] parsed result object
|
6023
|
+
# @yieldparam err [StandardError] error object if request failed
|
6024
|
+
#
|
6025
|
+
# @return [Google::Apis::AiplatformV1::GoogleIamV1Policy]
|
6026
|
+
#
|
6027
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6028
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6029
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6030
|
+
def set_project_location_feature_online_store_feature_view_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6031
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
6032
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleIamV1SetIamPolicyRequest::Representation
|
6033
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
6034
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleIamV1Policy::Representation
|
6035
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleIamV1Policy
|
6036
|
+
command.params['resource'] = resource unless resource.nil?
|
6037
|
+
command.query['fields'] = fields unless fields.nil?
|
6038
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6039
|
+
execute_or_queue_command(command, &block)
|
6040
|
+
end
|
6041
|
+
|
5285
6042
|
# Triggers on-demand sync for the FeatureView.
|
5286
6043
|
# @param [String] feature_view
|
5287
6044
|
# Required. Format: `projects/`project`/locations/`location`/featureOnlineStores/
|
@@ -5316,6 +6073,47 @@ module Google
|
|
5316
6073
|
execute_or_queue_command(command, &block)
|
5317
6074
|
end
|
5318
6075
|
|
6076
|
+
# Returns permissions that a caller has on the specified resource. If the
|
6077
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
6078
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
6079
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
6080
|
+
# This operation may "fail open" without warning.
|
6081
|
+
# @param [String] resource
|
6082
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
6083
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
6084
|
+
# appropriate value for this field.
|
6085
|
+
# @param [Array<String>, String] permissions
|
6086
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
6087
|
+
# (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
6088
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
6089
|
+
# @param [String] fields
|
6090
|
+
# Selector specifying which fields to include in a partial response.
|
6091
|
+
# @param [String] quota_user
|
6092
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6093
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6094
|
+
# @param [Google::Apis::RequestOptions] options
|
6095
|
+
# Request-specific options
|
6096
|
+
#
|
6097
|
+
# @yield [result, err] Result & error if block supplied
|
6098
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
6099
|
+
# @yieldparam err [StandardError] error object if request failed
|
6100
|
+
#
|
6101
|
+
# @return [Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse]
|
6102
|
+
#
|
6103
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6104
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6105
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6106
|
+
def test_project_location_feature_online_store_feature_view_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6107
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
6108
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse::Representation
|
6109
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse
|
6110
|
+
command.params['resource'] = resource unless resource.nil?
|
6111
|
+
command.query['permissions'] = permissions unless permissions.nil?
|
6112
|
+
command.query['fields'] = fields unless fields.nil?
|
6113
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6114
|
+
execute_or_queue_command(command, &block)
|
6115
|
+
end
|
6116
|
+
|
5319
6117
|
# Gets details of a single FeatureViewSync.
|
5320
6118
|
# @param [String] name
|
5321
6119
|
# Required. The name of the FeatureViewSync resource. Format: `projects/`project`
|
@@ -15474,8 +16272,10 @@ module Google
|
|
15474
16272
|
|
15475
16273
|
# Generate content with multimodal inputs.
|
15476
16274
|
# @param [String] model
|
15477
|
-
# Required. The name of the publisher model
|
15478
|
-
#
|
16275
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
16276
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
16277
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
16278
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
15479
16279
|
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
15480
16280
|
# @param [String] fields
|
15481
16281
|
# Selector specifying which fields to include in a partial response.
|
@@ -15614,8 +16414,10 @@ module Google
|
|
15614
16414
|
|
15615
16415
|
# Generate content with multimodal inputs with streaming support.
|
15616
16416
|
# @param [String] model
|
15617
|
-
# Required. The name of the publisher model
|
15618
|
-
#
|
16417
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
16418
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
16419
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
16420
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
15619
16421
|
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
15620
16422
|
# @param [String] fields
|
15621
16423
|
# Selector specifying which fields to include in a partial response.
|
@@ -19889,6 +20691,110 @@ module Google
|
|
19889
20691
|
execute_or_queue_command(command, &block)
|
19890
20692
|
end
|
19891
20693
|
|
20694
|
+
# Return a list of tokens based on the input text.
|
20695
|
+
# @param [String] endpoint
|
20696
|
+
# Required. The name of the Endpoint requested to get lists of tokens and token
|
20697
|
+
# ids.
|
20698
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest] google_cloud_aiplatform_v1_compute_tokens_request_object
|
20699
|
+
# @param [String] fields
|
20700
|
+
# Selector specifying which fields to include in a partial response.
|
20701
|
+
# @param [String] quota_user
|
20702
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20703
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20704
|
+
# @param [Google::Apis::RequestOptions] options
|
20705
|
+
# Request-specific options
|
20706
|
+
#
|
20707
|
+
# @yield [result, err] Result & error if block supplied
|
20708
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse] parsed result object
|
20709
|
+
# @yieldparam err [StandardError] error object if request failed
|
20710
|
+
#
|
20711
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse]
|
20712
|
+
#
|
20713
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20714
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20715
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20716
|
+
def compute_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
20717
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:computeTokens', options)
|
20718
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest::Representation
|
20719
|
+
command.request_object = google_cloud_aiplatform_v1_compute_tokens_request_object
|
20720
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse::Representation
|
20721
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse
|
20722
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
20723
|
+
command.query['fields'] = fields unless fields.nil?
|
20724
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20725
|
+
execute_or_queue_command(command, &block)
|
20726
|
+
end
|
20727
|
+
|
20728
|
+
# Perform a token counting.
|
20729
|
+
# @param [String] endpoint
|
20730
|
+
# Required. The name of the Endpoint requested to perform token counting. Format:
|
20731
|
+
# `projects/`project`/locations/`location`/endpoints/`endpoint``
|
20732
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest] google_cloud_aiplatform_v1_count_tokens_request_object
|
20733
|
+
# @param [String] fields
|
20734
|
+
# Selector specifying which fields to include in a partial response.
|
20735
|
+
# @param [String] quota_user
|
20736
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20737
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20738
|
+
# @param [Google::Apis::RequestOptions] options
|
20739
|
+
# Request-specific options
|
20740
|
+
#
|
20741
|
+
# @yield [result, err] Result & error if block supplied
|
20742
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse] parsed result object
|
20743
|
+
# @yieldparam err [StandardError] error object if request failed
|
20744
|
+
#
|
20745
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse]
|
20746
|
+
#
|
20747
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20748
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20749
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20750
|
+
def count_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
20751
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:countTokens', options)
|
20752
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest::Representation
|
20753
|
+
command.request_object = google_cloud_aiplatform_v1_count_tokens_request_object
|
20754
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse::Representation
|
20755
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse
|
20756
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
20757
|
+
command.query['fields'] = fields unless fields.nil?
|
20758
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20759
|
+
execute_or_queue_command(command, &block)
|
20760
|
+
end
|
20761
|
+
|
20762
|
+
# Generate content with multimodal inputs.
|
20763
|
+
# @param [String] model
|
20764
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
20765
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
20766
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
20767
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
20768
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
20769
|
+
# @param [String] fields
|
20770
|
+
# Selector specifying which fields to include in a partial response.
|
20771
|
+
# @param [String] quota_user
|
20772
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20773
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20774
|
+
# @param [Google::Apis::RequestOptions] options
|
20775
|
+
# Request-specific options
|
20776
|
+
#
|
20777
|
+
# @yield [result, err] Result & error if block supplied
|
20778
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
20779
|
+
# @yieldparam err [StandardError] error object if request failed
|
20780
|
+
#
|
20781
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
20782
|
+
#
|
20783
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20784
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20785
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20786
|
+
def generate_publisher_model_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
20787
|
+
command = make_simple_command(:post, 'v1/{+model}:generateContent', options)
|
20788
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
20789
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
20790
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
20791
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
20792
|
+
command.params['model'] = model unless model.nil?
|
20793
|
+
command.query['fields'] = fields unless fields.nil?
|
20794
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20795
|
+
execute_or_queue_command(command, &block)
|
20796
|
+
end
|
20797
|
+
|
19892
20798
|
# Gets a Model Garden publisher model.
|
19893
20799
|
# @param [String] name
|
19894
20800
|
# Required. The name of the PublisherModel resource. Format: `publishers/`
|
@@ -19933,6 +20839,42 @@ module Google
|
|
19933
20839
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19934
20840
|
execute_or_queue_command(command, &block)
|
19935
20841
|
end
|
20842
|
+
|
20843
|
+
# Generate content with multimodal inputs with streaming support.
|
20844
|
+
# @param [String] model
|
20845
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
20846
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
20847
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
20848
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
20849
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
20850
|
+
# @param [String] fields
|
20851
|
+
# Selector specifying which fields to include in a partial response.
|
20852
|
+
# @param [String] quota_user
|
20853
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20854
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20855
|
+
# @param [Google::Apis::RequestOptions] options
|
20856
|
+
# Request-specific options
|
20857
|
+
#
|
20858
|
+
# @yield [result, err] Result & error if block supplied
|
20859
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
20860
|
+
# @yieldparam err [StandardError] error object if request failed
|
20861
|
+
#
|
20862
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
20863
|
+
#
|
20864
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20865
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20866
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20867
|
+
def stream_publisher_model_generate_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
20868
|
+
command = make_simple_command(:post, 'v1/{+model}:streamGenerateContent', options)
|
20869
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
20870
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
20871
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
20872
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
20873
|
+
command.params['model'] = model unless model.nil?
|
20874
|
+
command.query['fields'] = fields unless fields.nil?
|
20875
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20876
|
+
execute_or_queue_command(command, &block)
|
20877
|
+
end
|
19936
20878
|
|
19937
20879
|
protected
|
19938
20880
|
|