google-apis-aiplatform_v1beta1 0.23.0 → 0.25.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +2419 -1141
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +1120 -625
- data/lib/google/apis/aiplatform_v1beta1/service.rb +745 -511
- metadata +3 -3
@@ -52,45 +52,65 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
-
#
|
56
|
-
# @param [String]
|
57
|
-
# Required.
|
58
|
-
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
59
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileRequest] google_cloud_aiplatform_v1beta1_upload_rag_file_request_object
|
55
|
+
# Gets a GenAI cache config.
|
56
|
+
# @param [String] name
|
57
|
+
# Required. Name of the cache config. Format: - `projects/`project`/cacheConfig`.
|
60
58
|
# @param [String] fields
|
61
59
|
# Selector specifying which fields to include in a partial response.
|
62
60
|
# @param [String] quota_user
|
63
61
|
# Available to use for quota purposes for server-side applications. Can be any
|
64
62
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
65
|
-
# @param [IO, String] upload_source
|
66
|
-
# IO stream or filename containing content to upload
|
67
|
-
# @param [String] content_type
|
68
|
-
# Content type of the uploaded content.
|
69
63
|
# @param [Google::Apis::RequestOptions] options
|
70
64
|
# Request-specific options
|
71
65
|
#
|
72
66
|
# @yield [result, err] Result & error if block supplied
|
73
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
67
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] parsed result object
|
74
68
|
# @yieldparam err [StandardError] error object if request failed
|
75
69
|
#
|
76
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
70
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig]
|
77
71
|
#
|
78
72
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
73
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
74
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
-
def
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
75
|
+
def get_project_cache_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
77
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig::Representation
|
78
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig
|
79
|
+
command.params['name'] = name unless name.nil?
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
81
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
82
|
+
execute_or_queue_command(command, &block)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Updates a cache config.
|
86
|
+
# @param [String] name
|
87
|
+
# Identifier. Name of the cache config. Format: - `projects/`project`/
|
88
|
+
# cacheConfig`.
|
89
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] google_cloud_aiplatform_v1beta1_cache_config_object
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
92
|
+
# @param [String] quota_user
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
96
|
+
# Request-specific options
|
97
|
+
#
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
99
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
101
|
+
#
|
102
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
103
|
+
#
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
+
def update_project_cache_config(name, google_cloud_aiplatform_v1beta1_cache_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
109
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig::Representation
|
110
|
+
command.request_object = google_cloud_aiplatform_v1beta1_cache_config_object
|
111
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
112
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
113
|
+
command.params['name'] = name unless name.nil?
|
94
114
|
command.query['fields'] = fields unless fields.nil?
|
95
115
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
96
116
|
execute_or_queue_command(command, &block)
|
@@ -203,41 +223,6 @@ module Google
|
|
203
223
|
execute_or_queue_command(command, &block)
|
204
224
|
end
|
205
225
|
|
206
|
-
# Retrieves relevant contexts for a query.
|
207
|
-
# @param [String] parent
|
208
|
-
# Required. The resource name of the Location from which to retrieve RagContexts.
|
209
|
-
# The users must have permission to make a call in the project. Format: `
|
210
|
-
# projects/`project`/locations/`location``.
|
211
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest] google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object
|
212
|
-
# @param [String] fields
|
213
|
-
# Selector specifying which fields to include in a partial response.
|
214
|
-
# @param [String] quota_user
|
215
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
216
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
217
|
-
# @param [Google::Apis::RequestOptions] options
|
218
|
-
# Request-specific options
|
219
|
-
#
|
220
|
-
# @yield [result, err] Result & error if block supplied
|
221
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse] parsed result object
|
222
|
-
# @yieldparam err [StandardError] error object if request failed
|
223
|
-
#
|
224
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse]
|
225
|
-
#
|
226
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
227
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
228
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
229
|
-
def retrieve_project_location_contexts(parent, google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
230
|
-
command = make_simple_command(:post, 'v1beta1/{+parent}:retrieveContexts', options)
|
231
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest::Representation
|
232
|
-
command.request_object = google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object
|
233
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse::Representation
|
234
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse
|
235
|
-
command.params['parent'] = parent unless parent.nil?
|
236
|
-
command.query['fields'] = fields unless fields.nil?
|
237
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
238
|
-
execute_or_queue_command(command, &block)
|
239
|
-
end
|
240
|
-
|
241
226
|
# Cancels a BatchPredictionJob. Starts asynchronous cancellation on the
|
242
227
|
# BatchPredictionJob. The server makes the best effort to cancel the job, but
|
243
228
|
# success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or
|
@@ -13346,16 +13331,15 @@ module Google
|
|
13346
13331
|
execute_or_queue_command(command, &block)
|
13347
13332
|
end
|
13348
13333
|
|
13349
|
-
#
|
13350
|
-
#
|
13351
|
-
#
|
13352
|
-
#
|
13353
|
-
#
|
13354
|
-
#
|
13355
|
-
#
|
13356
|
-
#
|
13357
|
-
#
|
13358
|
-
# The name of the operation resource to be cancelled.
|
13334
|
+
# Creates a ModelMonitor.
|
13335
|
+
# @param [String] parent
|
13336
|
+
# Required. The resource name of the Location to create the ModelMonitor in.
|
13337
|
+
# Format: `projects/`project`/locations/`location``
|
13338
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] google_cloud_aiplatform_v1beta1_model_monitor_object
|
13339
|
+
# @param [String] model_monitor_id
|
13340
|
+
# Optional. The ID to use for the Model Monitor, which will become the final
|
13341
|
+
# component of the model monitor resource name. The maximum length is 63
|
13342
|
+
# characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/`.
|
13359
13343
|
# @param [String] fields
|
13360
13344
|
# Selector specifying which fields to include in a partial response.
|
13361
13345
|
# @param [String] quota_user
|
@@ -13365,30 +13349,33 @@ module Google
|
|
13365
13349
|
# Request-specific options
|
13366
13350
|
#
|
13367
13351
|
# @yield [result, err] Result & error if block supplied
|
13368
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
13352
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13369
13353
|
# @yieldparam err [StandardError] error object if request failed
|
13370
13354
|
#
|
13371
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
13355
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13372
13356
|
#
|
13373
13357
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13374
13358
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13375
13359
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13376
|
-
def
|
13377
|
-
command = make_simple_command(:post, 'v1beta1/{+
|
13378
|
-
command.
|
13379
|
-
command.
|
13380
|
-
command.
|
13360
|
+
def create_project_location_model_monitor(parent, google_cloud_aiplatform_v1beta1_model_monitor_object = nil, model_monitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
13361
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/modelMonitors', options)
|
13362
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation
|
13363
|
+
command.request_object = google_cloud_aiplatform_v1beta1_model_monitor_object
|
13364
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13365
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13366
|
+
command.params['parent'] = parent unless parent.nil?
|
13367
|
+
command.query['modelMonitorId'] = model_monitor_id unless model_monitor_id.nil?
|
13381
13368
|
command.query['fields'] = fields unless fields.nil?
|
13382
13369
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13383
13370
|
execute_or_queue_command(command, &block)
|
13384
13371
|
end
|
13385
13372
|
|
13386
|
-
# Deletes a
|
13387
|
-
# longer interested in the operation result. It does not cancel the operation.
|
13388
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
13389
|
-
# UNIMPLEMENTED`.
|
13373
|
+
# Deletes a ModelMonitor.
|
13390
13374
|
# @param [String] name
|
13391
|
-
# The name of the
|
13375
|
+
# Required. The name of the ModelMonitor resource to be deleted. Format: `
|
13376
|
+
# projects/`project`/locations/`location`/modelMonitords/`model_monitor``
|
13377
|
+
# @param [Boolean] force
|
13378
|
+
# Optional. Force delete the model monitor with schedules.
|
13392
13379
|
# @param [String] fields
|
13393
13380
|
# Selector specifying which fields to include in a partial response.
|
13394
13381
|
# @param [String] quota_user
|
@@ -13398,28 +13385,29 @@ module Google
|
|
13398
13385
|
# Request-specific options
|
13399
13386
|
#
|
13400
13387
|
# @yield [result, err] Result & error if block supplied
|
13401
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
13388
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13402
13389
|
# @yieldparam err [StandardError] error object if request failed
|
13403
13390
|
#
|
13404
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
13391
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13405
13392
|
#
|
13406
13393
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13407
13394
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13408
13395
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13409
|
-
def
|
13396
|
+
def delete_project_location_model_monitor(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
13410
13397
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
13411
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
13412
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
13398
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13399
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13413
13400
|
command.params['name'] = name unless name.nil?
|
13401
|
+
command.query['force'] = force unless force.nil?
|
13414
13402
|
command.query['fields'] = fields unless fields.nil?
|
13415
13403
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13416
13404
|
execute_or_queue_command(command, &block)
|
13417
13405
|
end
|
13418
13406
|
|
13419
|
-
# Gets
|
13420
|
-
# to poll the operation result at intervals as recommended by the API service.
|
13407
|
+
# Gets a ModelMonitor.
|
13421
13408
|
# @param [String] name
|
13422
|
-
# The name of the
|
13409
|
+
# Required. The name of the ModelMonitor resource. Format: `projects/`project`/
|
13410
|
+
# locations/`location`/modelMonitors/`model_monitor``
|
13423
13411
|
# @param [String] fields
|
13424
13412
|
# Selector specifying which fields to include in a partial response.
|
13425
13413
|
# @param [String] quota_user
|
@@ -13429,34 +13417,36 @@ module Google
|
|
13429
13417
|
# Request-specific options
|
13430
13418
|
#
|
13431
13419
|
# @yield [result, err] Result & error if block supplied
|
13432
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
13420
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] parsed result object
|
13433
13421
|
# @yieldparam err [StandardError] error object if request failed
|
13434
13422
|
#
|
13435
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
13423
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor]
|
13436
13424
|
#
|
13437
13425
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13438
13426
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13439
13427
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13440
|
-
def
|
13428
|
+
def get_project_location_model_monitor(name, fields: nil, quota_user: nil, options: nil, &block)
|
13441
13429
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
13442
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
13443
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
13430
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation
|
13431
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor
|
13444
13432
|
command.params['name'] = name unless name.nil?
|
13445
13433
|
command.query['fields'] = fields unless fields.nil?
|
13446
13434
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13447
13435
|
execute_or_queue_command(command, &block)
|
13448
13436
|
end
|
13449
13437
|
|
13450
|
-
# Lists
|
13451
|
-
#
|
13452
|
-
#
|
13453
|
-
#
|
13438
|
+
# Lists ModelMonitors in a Location.
|
13439
|
+
# @param [String] parent
|
13440
|
+
# Required. The resource name of the Location to list the ModelMonitors from.
|
13441
|
+
# Format: `projects/`project`/locations/`location``
|
13454
13442
|
# @param [String] filter
|
13455
|
-
# The standard list filter.
|
13443
|
+
# The standard list filter. More detail in [AIP-160](https://google.aip.dev/160).
|
13456
13444
|
# @param [Fixnum] page_size
|
13457
13445
|
# The standard list page size.
|
13458
13446
|
# @param [String] page_token
|
13459
13447
|
# The standard list page token.
|
13448
|
+
# @param [String] read_mask
|
13449
|
+
# Mask specifying which fields to read.
|
13460
13450
|
# @param [String] fields
|
13461
13451
|
# Selector specifying which fields to include in a partial response.
|
13462
13452
|
# @param [String] quota_user
|
@@ -13466,41 +13456,35 @@ module Google
|
|
13466
13456
|
# Request-specific options
|
13467
13457
|
#
|
13468
13458
|
# @yield [result, err] Result & error if block supplied
|
13469
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
13459
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse] parsed result object
|
13470
13460
|
# @yieldparam err [StandardError] error object if request failed
|
13471
13461
|
#
|
13472
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
13462
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse]
|
13473
13463
|
#
|
13474
13464
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13475
13465
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13476
13466
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13477
|
-
def
|
13478
|
-
command = make_simple_command(:get, 'v1beta1/{+
|
13479
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
13480
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
13481
|
-
command.params['
|
13467
|
+
def list_project_location_model_monitors(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
13468
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/modelMonitors', options)
|
13469
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse::Representation
|
13470
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse
|
13471
|
+
command.params['parent'] = parent unless parent.nil?
|
13482
13472
|
command.query['filter'] = filter unless filter.nil?
|
13483
13473
|
command.query['pageSize'] = page_size unless page_size.nil?
|
13484
13474
|
command.query['pageToken'] = page_token unless page_token.nil?
|
13475
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
13485
13476
|
command.query['fields'] = fields unless fields.nil?
|
13486
13477
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13487
13478
|
execute_or_queue_command(command, &block)
|
13488
13479
|
end
|
13489
13480
|
|
13490
|
-
#
|
13491
|
-
# specified timeout, returning the latest state. If the operation is already
|
13492
|
-
# done, the latest state is immediately returned. If the timeout specified is
|
13493
|
-
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
13494
|
-
# the server does not support this method, it returns `google.rpc.Code.
|
13495
|
-
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
13496
|
-
# the latest state before the specified timeout (including immediately), meaning
|
13497
|
-
# even an immediate response is no guarantee that the operation is done.
|
13481
|
+
# Updates a ModelMonitor.
|
13498
13482
|
# @param [String] name
|
13499
|
-
#
|
13500
|
-
#
|
13501
|
-
#
|
13502
|
-
#
|
13503
|
-
#
|
13483
|
+
# Immutable. Resource name of the ModelMonitor. Format: `projects/`project`/
|
13484
|
+
# locations/`location`/modelMonitors/`model_monitor``.
|
13485
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] google_cloud_aiplatform_v1beta1_model_monitor_object
|
13486
|
+
# @param [String] update_mask
|
13487
|
+
# Required. Mask specifying which fields to update.
|
13504
13488
|
# @param [String] fields
|
13505
13489
|
# Selector specifying which fields to include in a partial response.
|
13506
13490
|
# @param [String] quota_user
|
@@ -13518,26 +13502,24 @@ module Google
|
|
13518
13502
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13519
13503
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13520
13504
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13521
|
-
def
|
13522
|
-
command = make_simple_command(:
|
13505
|
+
def patch_project_location_model_monitor(name, google_cloud_aiplatform_v1beta1_model_monitor_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
13506
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
13507
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation
|
13508
|
+
command.request_object = google_cloud_aiplatform_v1beta1_model_monitor_object
|
13523
13509
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13524
13510
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13525
13511
|
command.params['name'] = name unless name.nil?
|
13526
|
-
command.query['
|
13512
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
13527
13513
|
command.query['fields'] = fields unless fields.nil?
|
13528
13514
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13529
13515
|
execute_or_queue_command(command, &block)
|
13530
13516
|
end
|
13531
13517
|
|
13532
|
-
#
|
13533
|
-
#
|
13534
|
-
#
|
13535
|
-
#
|
13536
|
-
#
|
13537
|
-
# @param [String] parent
|
13538
|
-
# Required. The resource name of the Location into which to copy the Model.
|
13539
|
-
# Format: `projects/`project`/locations/`location``
|
13540
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CopyModelRequest] google_cloud_aiplatform_v1beta1_copy_model_request_object
|
13518
|
+
# Returns the Model Monitoring alerts.
|
13519
|
+
# @param [String] model_monitor
|
13520
|
+
# Required. ModelMonitor resource name. Format: `projects/`project`/locations/`
|
13521
|
+
# location`/modelMonitors/`model_monitor``
|
13522
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest] google_cloud_aiplatform_v1beta1_search_model_monitoring_alerts_request_object
|
13541
13523
|
# @param [String] fields
|
13542
13524
|
# Selector specifying which fields to include in a partial response.
|
13543
13525
|
# @param [String] quota_user
|
@@ -13547,31 +13529,31 @@ module Google
|
|
13547
13529
|
# Request-specific options
|
13548
13530
|
#
|
13549
13531
|
# @yield [result, err] Result & error if block supplied
|
13550
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
13532
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse] parsed result object
|
13551
13533
|
# @yieldparam err [StandardError] error object if request failed
|
13552
13534
|
#
|
13553
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
13535
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse]
|
13554
13536
|
#
|
13555
13537
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13556
13538
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13557
13539
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13558
|
-
def
|
13559
|
-
command = make_simple_command(:post, 'v1beta1/{+
|
13560
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::
|
13561
|
-
command.request_object =
|
13562
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
13563
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
13564
|
-
command.params['
|
13540
|
+
def search_project_location_model_monitor_model_monitoring_alerts(model_monitor, google_cloud_aiplatform_v1beta1_search_model_monitoring_alerts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
13541
|
+
command = make_simple_command(:post, 'v1beta1/{+modelMonitor}:searchModelMonitoringAlerts', options)
|
13542
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest::Representation
|
13543
|
+
command.request_object = google_cloud_aiplatform_v1beta1_search_model_monitoring_alerts_request_object
|
13544
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse::Representation
|
13545
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse
|
13546
|
+
command.params['modelMonitor'] = model_monitor unless model_monitor.nil?
|
13565
13547
|
command.query['fields'] = fields unless fields.nil?
|
13566
13548
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13567
13549
|
execute_or_queue_command(command, &block)
|
13568
13550
|
end
|
13569
13551
|
|
13570
|
-
#
|
13571
|
-
#
|
13572
|
-
#
|
13573
|
-
#
|
13574
|
-
#
|
13552
|
+
# Searches Model Monitoring Stats generated within a given time window.
|
13553
|
+
# @param [String] model_monitor
|
13554
|
+
# Required. ModelMonitor resource name. Format: `projects/`project`/locations/`
|
13555
|
+
# location`/modelMonitors/`model_monitor``
|
13556
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest] google_cloud_aiplatform_v1beta1_search_model_monitoring_stats_request_object
|
13575
13557
|
# @param [String] fields
|
13576
13558
|
# Selector specifying which fields to include in a partial response.
|
13577
13559
|
# @param [String] quota_user
|
@@ -13581,31 +13563,36 @@ module Google
|
|
13581
13563
|
# Request-specific options
|
13582
13564
|
#
|
13583
13565
|
# @yield [result, err] Result & error if block supplied
|
13584
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
13566
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse] parsed result object
|
13585
13567
|
# @yieldparam err [StandardError] error object if request failed
|
13586
13568
|
#
|
13587
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
13569
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse]
|
13588
13570
|
#
|
13589
13571
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13590
13572
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13591
13573
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13592
|
-
def
|
13593
|
-
command = make_simple_command(:
|
13594
|
-
command.
|
13595
|
-
command.
|
13596
|
-
command.
|
13574
|
+
def search_project_location_model_monitor_model_monitoring_stats(model_monitor, google_cloud_aiplatform_v1beta1_search_model_monitoring_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
13575
|
+
command = make_simple_command(:post, 'v1beta1/{+modelMonitor}:searchModelMonitoringStats', options)
|
13576
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest::Representation
|
13577
|
+
command.request_object = google_cloud_aiplatform_v1beta1_search_model_monitoring_stats_request_object
|
13578
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse::Representation
|
13579
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse
|
13580
|
+
command.params['modelMonitor'] = model_monitor unless model_monitor.nil?
|
13597
13581
|
command.query['fields'] = fields unless fields.nil?
|
13598
13582
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13599
13583
|
execute_or_queue_command(command, &block)
|
13600
13584
|
end
|
13601
13585
|
|
13602
|
-
#
|
13603
|
-
#
|
13604
|
-
#
|
13605
|
-
#
|
13606
|
-
#
|
13607
|
-
#
|
13608
|
-
#
|
13586
|
+
# Creates a ModelMonitoringJob.
|
13587
|
+
# @param [String] parent
|
13588
|
+
# Required. The parent of the ModelMonitoringJob. Format: `projects/`project`/
|
13589
|
+
# locations/`location`/modelMoniitors/`model_monitor``
|
13590
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] google_cloud_aiplatform_v1beta1_model_monitoring_job_object
|
13591
|
+
# @param [String] model_monitoring_job_id
|
13592
|
+
# Optional. The ID to use for the Model Monitoring Job, which will become the
|
13593
|
+
# final component of the model monitoring job resource name. The maximum length
|
13594
|
+
# is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/
|
13595
|
+
# `.
|
13609
13596
|
# @param [String] fields
|
13610
13597
|
# Selector specifying which fields to include in a partial response.
|
13611
13598
|
# @param [String] quota_user
|
@@ -13615,32 +13602,32 @@ module Google
|
|
13615
13602
|
# Request-specific options
|
13616
13603
|
#
|
13617
13604
|
# @yield [result, err] Result & error if block supplied
|
13618
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
13605
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] parsed result object
|
13619
13606
|
# @yieldparam err [StandardError] error object if request failed
|
13620
13607
|
#
|
13621
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
13608
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob]
|
13622
13609
|
#
|
13623
13610
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13624
13611
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13625
13612
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13626
|
-
def
|
13627
|
-
command = make_simple_command(:
|
13628
|
-
command.
|
13629
|
-
command.
|
13630
|
-
command.
|
13613
|
+
def create_project_location_model_monitor_model_monitoring_job(parent, google_cloud_aiplatform_v1beta1_model_monitoring_job_object = nil, model_monitoring_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
13614
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/modelMonitoringJobs', options)
|
13615
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation
|
13616
|
+
command.request_object = google_cloud_aiplatform_v1beta1_model_monitoring_job_object
|
13617
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation
|
13618
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob
|
13619
|
+
command.params['parent'] = parent unless parent.nil?
|
13620
|
+
command.query['modelMonitoringJobId'] = model_monitoring_job_id unless model_monitoring_job_id.nil?
|
13631
13621
|
command.query['fields'] = fields unless fields.nil?
|
13632
13622
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13633
13623
|
execute_or_queue_command(command, &block)
|
13634
13624
|
end
|
13635
13625
|
|
13636
|
-
#
|
13637
|
-
# Model is considered to be exportable if it has at least one supported export
|
13638
|
-
# format.
|
13626
|
+
# Deletes a ModelMonitoringJob.
|
13639
13627
|
# @param [String] name
|
13640
|
-
# Required. The resource name of the
|
13641
|
-
#
|
13642
|
-
#
|
13643
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportModelRequest] google_cloud_aiplatform_v1beta1_export_model_request_object
|
13628
|
+
# Required. The resource name of the model monitoring job to delete. Format: `
|
13629
|
+
# projects/`project`/locations/`location`/modelMonitors/`model_monitor`/
|
13630
|
+
# modelMonitoringJobs/`model_monitoring_job``
|
13644
13631
|
# @param [String] fields
|
13645
13632
|
# Selector specifying which fields to include in a partial response.
|
13646
13633
|
# @param [String] quota_user
|
@@ -13658,10 +13645,8 @@ module Google
|
|
13658
13645
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13659
13646
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13660
13647
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13661
|
-
def
|
13662
|
-
command = make_simple_command(:
|
13663
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportModelRequest::Representation
|
13664
|
-
command.request_object = google_cloud_aiplatform_v1beta1_export_model_request_object
|
13648
|
+
def delete_project_location_model_monitor_model_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
13649
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
13665
13650
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13666
13651
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13667
13652
|
command.params['name'] = name unless name.nil?
|
@@ -13670,16 +13655,11 @@ module Google
|
|
13670
13655
|
execute_or_queue_command(command, &block)
|
13671
13656
|
end
|
13672
13657
|
|
13673
|
-
# Gets a
|
13658
|
+
# Gets a ModelMonitoringJob.
|
13674
13659
|
# @param [String] name
|
13675
|
-
# Required. The name of the
|
13676
|
-
# locations/`location`/
|
13677
|
-
#
|
13678
|
-
# `project`/locations/`location`/models/`model`@2` or `projects/`project`/
|
13679
|
-
# locations/`location`/models/`model`@golden` If no version ID or alias is
|
13680
|
-
# specified, the "default" version will be returned. The "default" version alias
|
13681
|
-
# is created for the first version of the model, and can be moved to other
|
13682
|
-
# versions later on. There will be exactly one default version.
|
13660
|
+
# Required. The resource name of the ModelMonitoringJob. Format: `projects/`
|
13661
|
+
# project`/locations/`location`/modelMonitors/`model_monitor`/
|
13662
|
+
# modelMonitoringJobs/`model_monitoring_job``
|
13683
13663
|
# @param [String] fields
|
13684
13664
|
# Selector specifying which fields to include in a partial response.
|
13685
13665
|
# @param [String] quota_user
|
@@ -13689,41 +13669,40 @@ module Google
|
|
13689
13669
|
# Request-specific options
|
13690
13670
|
#
|
13691
13671
|
# @yield [result, err] Result & error if block supplied
|
13692
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
13672
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] parsed result object
|
13693
13673
|
# @yieldparam err [StandardError] error object if request failed
|
13694
13674
|
#
|
13695
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
13675
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob]
|
13696
13676
|
#
|
13697
13677
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13698
13678
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13699
13679
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13700
|
-
def
|
13680
|
+
def get_project_location_model_monitor_model_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
13701
13681
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
13702
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
13703
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
13682
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation
|
13683
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob
|
13704
13684
|
command.params['name'] = name unless name.nil?
|
13705
13685
|
command.query['fields'] = fields unless fields.nil?
|
13706
13686
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13707
13687
|
execute_or_queue_command(command, &block)
|
13708
13688
|
end
|
13709
13689
|
|
13710
|
-
#
|
13711
|
-
#
|
13712
|
-
#
|
13713
|
-
#
|
13714
|
-
#
|
13715
|
-
#
|
13716
|
-
#
|
13717
|
-
#
|
13718
|
-
#
|
13719
|
-
#
|
13720
|
-
#
|
13721
|
-
#
|
13722
|
-
#
|
13723
|
-
#
|
13724
|
-
#
|
13725
|
-
#
|
13726
|
-
# google.com/iam/help/conditions/resource-policies).
|
13690
|
+
# Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors
|
13691
|
+
# as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash
|
13692
|
+
# character) as a wildcard character instead of modelMonitor id in the parent.
|
13693
|
+
# Format `projects/`project_id`/locations/`location`/moodelMonitors/-/
|
13694
|
+
# modelMonitoringJobs`
|
13695
|
+
# @param [String] parent
|
13696
|
+
# Required. The parent of the ModelMonitoringJob. Format: `projects/`project`/
|
13697
|
+
# locations/`location`/modelMonitors/`model_monitor``
|
13698
|
+
# @param [String] filter
|
13699
|
+
# The standard list filter. More detail in [AIP-160](https://google.aip.dev/160).
|
13700
|
+
# @param [Fixnum] page_size
|
13701
|
+
# The standard list page size.
|
13702
|
+
# @param [String] page_token
|
13703
|
+
# The standard list page token.
|
13704
|
+
# @param [String] read_mask
|
13705
|
+
# Mask specifying which fields to read
|
13727
13706
|
# @param [String] fields
|
13728
13707
|
# Selector specifying which fields to include in a partial response.
|
13729
13708
|
# @param [String] quota_user
|
@@ -13733,28 +13712,437 @@ module Google
|
|
13733
13712
|
# Request-specific options
|
13734
13713
|
#
|
13735
13714
|
# @yield [result, err] Result & error if block supplied
|
13736
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
13715
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse] parsed result object
|
13737
13716
|
# @yieldparam err [StandardError] error object if request failed
|
13738
13717
|
#
|
13739
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
13718
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse]
|
13740
13719
|
#
|
13741
13720
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13742
13721
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13743
13722
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13744
|
-
def
|
13745
|
-
command = make_simple_command(:
|
13746
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
13747
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
13748
|
-
command.params['
|
13749
|
-
command.query['
|
13723
|
+
def list_project_location_model_monitor_model_monitoring_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
13724
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/modelMonitoringJobs', options)
|
13725
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse::Representation
|
13726
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse
|
13727
|
+
command.params['parent'] = parent unless parent.nil?
|
13728
|
+
command.query['filter'] = filter unless filter.nil?
|
13729
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
13730
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
13731
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
13750
13732
|
command.query['fields'] = fields unless fields.nil?
|
13751
13733
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13752
13734
|
execute_or_queue_command(command, &block)
|
13753
13735
|
end
|
13754
13736
|
|
13755
|
-
#
|
13756
|
-
#
|
13757
|
-
#
|
13737
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
13738
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
13739
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
13740
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
13741
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
13742
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
13743
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
13744
|
+
# corresponding to `Code.CANCELLED`.
|
13745
|
+
# @param [String] name
|
13746
|
+
# The name of the operation resource to be cancelled.
|
13747
|
+
# @param [String] fields
|
13748
|
+
# Selector specifying which fields to include in a partial response.
|
13749
|
+
# @param [String] quota_user
|
13750
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13751
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13752
|
+
# @param [Google::Apis::RequestOptions] options
|
13753
|
+
# Request-specific options
|
13754
|
+
#
|
13755
|
+
# @yield [result, err] Result & error if block supplied
|
13756
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
13757
|
+
# @yieldparam err [StandardError] error object if request failed
|
13758
|
+
#
|
13759
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
13760
|
+
#
|
13761
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13762
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13763
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13764
|
+
def cancel_project_location_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
13765
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
13766
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
13767
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
13768
|
+
command.params['name'] = name unless name.nil?
|
13769
|
+
command.query['fields'] = fields unless fields.nil?
|
13770
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13771
|
+
execute_or_queue_command(command, &block)
|
13772
|
+
end
|
13773
|
+
|
13774
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
13775
|
+
# longer interested in the operation result. It does not cancel the operation.
|
13776
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
13777
|
+
# UNIMPLEMENTED`.
|
13778
|
+
# @param [String] name
|
13779
|
+
# The name of the operation resource to be deleted.
|
13780
|
+
# @param [String] fields
|
13781
|
+
# Selector specifying which fields to include in a partial response.
|
13782
|
+
# @param [String] quota_user
|
13783
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13784
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13785
|
+
# @param [Google::Apis::RequestOptions] options
|
13786
|
+
# Request-specific options
|
13787
|
+
#
|
13788
|
+
# @yield [result, err] Result & error if block supplied
|
13789
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
13790
|
+
# @yieldparam err [StandardError] error object if request failed
|
13791
|
+
#
|
13792
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
13793
|
+
#
|
13794
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13795
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13796
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13797
|
+
def delete_project_location_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
13798
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
13799
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
13800
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
13801
|
+
command.params['name'] = name unless name.nil?
|
13802
|
+
command.query['fields'] = fields unless fields.nil?
|
13803
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13804
|
+
execute_or_queue_command(command, &block)
|
13805
|
+
end
|
13806
|
+
|
13807
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
13808
|
+
# to poll the operation result at intervals as recommended by the API service.
|
13809
|
+
# @param [String] name
|
13810
|
+
# The name of the operation resource.
|
13811
|
+
# @param [String] fields
|
13812
|
+
# Selector specifying which fields to include in a partial response.
|
13813
|
+
# @param [String] quota_user
|
13814
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13815
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13816
|
+
# @param [Google::Apis::RequestOptions] options
|
13817
|
+
# Request-specific options
|
13818
|
+
#
|
13819
|
+
# @yield [result, err] Result & error if block supplied
|
13820
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13821
|
+
# @yieldparam err [StandardError] error object if request failed
|
13822
|
+
#
|
13823
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13824
|
+
#
|
13825
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13826
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13827
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13828
|
+
def get_project_location_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
13829
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
13830
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13831
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13832
|
+
command.params['name'] = name unless name.nil?
|
13833
|
+
command.query['fields'] = fields unless fields.nil?
|
13834
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13835
|
+
execute_or_queue_command(command, &block)
|
13836
|
+
end
|
13837
|
+
|
13838
|
+
# Lists operations that match the specified filter in the request. If the server
|
13839
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
13840
|
+
# @param [String] name
|
13841
|
+
# The name of the operation's parent resource.
|
13842
|
+
# @param [String] filter
|
13843
|
+
# The standard list filter.
|
13844
|
+
# @param [Fixnum] page_size
|
13845
|
+
# The standard list page size.
|
13846
|
+
# @param [String] page_token
|
13847
|
+
# The standard list page token.
|
13848
|
+
# @param [String] fields
|
13849
|
+
# Selector specifying which fields to include in a partial response.
|
13850
|
+
# @param [String] quota_user
|
13851
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13852
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13853
|
+
# @param [Google::Apis::RequestOptions] options
|
13854
|
+
# Request-specific options
|
13855
|
+
#
|
13856
|
+
# @yield [result, err] Result & error if block supplied
|
13857
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
13858
|
+
# @yieldparam err [StandardError] error object if request failed
|
13859
|
+
#
|
13860
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
13861
|
+
#
|
13862
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13863
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13864
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13865
|
+
def list_project_location_model_monitor_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
13866
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
13867
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
13868
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
13869
|
+
command.params['name'] = name unless name.nil?
|
13870
|
+
command.query['filter'] = filter unless filter.nil?
|
13871
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
13872
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
13873
|
+
command.query['fields'] = fields unless fields.nil?
|
13874
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13875
|
+
execute_or_queue_command(command, &block)
|
13876
|
+
end
|
13877
|
+
|
13878
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
13879
|
+
# specified timeout, returning the latest state. If the operation is already
|
13880
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
13881
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
13882
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
13883
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
13884
|
+
# the latest state before the specified timeout (including immediately), meaning
|
13885
|
+
# even an immediate response is no guarantee that the operation is done.
|
13886
|
+
# @param [String] name
|
13887
|
+
# The name of the operation resource to wait on.
|
13888
|
+
# @param [String] timeout
|
13889
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
13890
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
13891
|
+
# context deadline is also specified, the shorter one will be used.
|
13892
|
+
# @param [String] fields
|
13893
|
+
# Selector specifying which fields to include in a partial response.
|
13894
|
+
# @param [String] quota_user
|
13895
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13896
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13897
|
+
# @param [Google::Apis::RequestOptions] options
|
13898
|
+
# Request-specific options
|
13899
|
+
#
|
13900
|
+
# @yield [result, err] Result & error if block supplied
|
13901
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13902
|
+
# @yieldparam err [StandardError] error object if request failed
|
13903
|
+
#
|
13904
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13905
|
+
#
|
13906
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13907
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13908
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13909
|
+
def wait_project_location_model_monitor_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
13910
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
13911
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13912
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13913
|
+
command.params['name'] = name unless name.nil?
|
13914
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
13915
|
+
command.query['fields'] = fields unless fields.nil?
|
13916
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13917
|
+
execute_or_queue_command(command, &block)
|
13918
|
+
end
|
13919
|
+
|
13920
|
+
# Copies an already existing Vertex AI Model into the specified Location. The
|
13921
|
+
# source Model must exist in the same Project. When copying custom Models, the
|
13922
|
+
# users themselves are responsible for Model.metadata content to be region-
|
13923
|
+
# agnostic, as well as making sure that any resources (e.g. files) it depends on
|
13924
|
+
# remain accessible.
|
13925
|
+
# @param [String] parent
|
13926
|
+
# Required. The resource name of the Location into which to copy the Model.
|
13927
|
+
# Format: `projects/`project`/locations/`location``
|
13928
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CopyModelRequest] google_cloud_aiplatform_v1beta1_copy_model_request_object
|
13929
|
+
# @param [String] fields
|
13930
|
+
# Selector specifying which fields to include in a partial response.
|
13931
|
+
# @param [String] quota_user
|
13932
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13933
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13934
|
+
# @param [Google::Apis::RequestOptions] options
|
13935
|
+
# Request-specific options
|
13936
|
+
#
|
13937
|
+
# @yield [result, err] Result & error if block supplied
|
13938
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13939
|
+
# @yieldparam err [StandardError] error object if request failed
|
13940
|
+
#
|
13941
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13942
|
+
#
|
13943
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13944
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13945
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13946
|
+
def copy_project_location_model(parent, google_cloud_aiplatform_v1beta1_copy_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
13947
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/models:copy', options)
|
13948
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CopyModelRequest::Representation
|
13949
|
+
command.request_object = google_cloud_aiplatform_v1beta1_copy_model_request_object
|
13950
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13951
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13952
|
+
command.params['parent'] = parent unless parent.nil?
|
13953
|
+
command.query['fields'] = fields unless fields.nil?
|
13954
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13955
|
+
execute_or_queue_command(command, &block)
|
13956
|
+
end
|
13957
|
+
|
13958
|
+
# Deletes a Model. A model cannot be deleted if any Endpoint resource has a
|
13959
|
+
# DeployedModel based on the model in its deployed_models field.
|
13960
|
+
# @param [String] name
|
13961
|
+
# Required. The name of the Model resource to be deleted. Format: `projects/`
|
13962
|
+
# project`/locations/`location`/models/`model``
|
13963
|
+
# @param [String] fields
|
13964
|
+
# Selector specifying which fields to include in a partial response.
|
13965
|
+
# @param [String] quota_user
|
13966
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13967
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13968
|
+
# @param [Google::Apis::RequestOptions] options
|
13969
|
+
# Request-specific options
|
13970
|
+
#
|
13971
|
+
# @yield [result, err] Result & error if block supplied
|
13972
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13973
|
+
# @yieldparam err [StandardError] error object if request failed
|
13974
|
+
#
|
13975
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13976
|
+
#
|
13977
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13978
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13979
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13980
|
+
def delete_project_location_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
13981
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
13982
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13983
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13984
|
+
command.params['name'] = name unless name.nil?
|
13985
|
+
command.query['fields'] = fields unless fields.nil?
|
13986
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13987
|
+
execute_or_queue_command(command, &block)
|
13988
|
+
end
|
13989
|
+
|
13990
|
+
# Deletes a Model version. Model version can only be deleted if there are no
|
13991
|
+
# DeployedModels created from it. Deleting the only version in the Model is not
|
13992
|
+
# allowed. Use DeleteModel for deleting the Model instead.
|
13993
|
+
# @param [String] name
|
13994
|
+
# Required. The name of the model version to be deleted, with a version ID
|
13995
|
+
# explicitly included. Example: `projects/`project`/locations/`location`/models/`
|
13996
|
+
# model`@1234`
|
13997
|
+
# @param [String] fields
|
13998
|
+
# Selector specifying which fields to include in a partial response.
|
13999
|
+
# @param [String] quota_user
|
14000
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14001
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14002
|
+
# @param [Google::Apis::RequestOptions] options
|
14003
|
+
# Request-specific options
|
14004
|
+
#
|
14005
|
+
# @yield [result, err] Result & error if block supplied
|
14006
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
14007
|
+
# @yieldparam err [StandardError] error object if request failed
|
14008
|
+
#
|
14009
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
14010
|
+
#
|
14011
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14012
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14013
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14014
|
+
def delete_project_location_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
14015
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}:deleteVersion', options)
|
14016
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
14017
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
14018
|
+
command.params['name'] = name unless name.nil?
|
14019
|
+
command.query['fields'] = fields unless fields.nil?
|
14020
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14021
|
+
execute_or_queue_command(command, &block)
|
14022
|
+
end
|
14023
|
+
|
14024
|
+
# Exports a trained, exportable Model to a location specified by the user. A
|
14025
|
+
# Model is considered to be exportable if it has at least one supported export
|
14026
|
+
# format.
|
14027
|
+
# @param [String] name
|
14028
|
+
# Required. The resource name of the Model to export. The resource name may
|
14029
|
+
# contain version id or version alias to specify the version, if no version is
|
14030
|
+
# specified, the default version will be exported.
|
14031
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportModelRequest] google_cloud_aiplatform_v1beta1_export_model_request_object
|
14032
|
+
# @param [String] fields
|
14033
|
+
# Selector specifying which fields to include in a partial response.
|
14034
|
+
# @param [String] quota_user
|
14035
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14036
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14037
|
+
# @param [Google::Apis::RequestOptions] options
|
14038
|
+
# Request-specific options
|
14039
|
+
#
|
14040
|
+
# @yield [result, err] Result & error if block supplied
|
14041
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
14042
|
+
# @yieldparam err [StandardError] error object if request failed
|
14043
|
+
#
|
14044
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
14045
|
+
#
|
14046
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14047
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14048
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14049
|
+
def export_project_location_model(name, google_cloud_aiplatform_v1beta1_export_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
14050
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:export', options)
|
14051
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportModelRequest::Representation
|
14052
|
+
command.request_object = google_cloud_aiplatform_v1beta1_export_model_request_object
|
14053
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
14054
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
14055
|
+
command.params['name'] = name unless name.nil?
|
14056
|
+
command.query['fields'] = fields unless fields.nil?
|
14057
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14058
|
+
execute_or_queue_command(command, &block)
|
14059
|
+
end
|
14060
|
+
|
14061
|
+
# Gets a Model.
|
14062
|
+
# @param [String] name
|
14063
|
+
# Required. The name of the Model resource. Format: `projects/`project`/
|
14064
|
+
# locations/`location`/models/`model`` In order to retrieve a specific version
|
14065
|
+
# of the model, also provide the version ID or version alias. Example: `projects/
|
14066
|
+
# `project`/locations/`location`/models/`model`@2` or `projects/`project`/
|
14067
|
+
# locations/`location`/models/`model`@golden` If no version ID or alias is
|
14068
|
+
# specified, the "default" version will be returned. The "default" version alias
|
14069
|
+
# is created for the first version of the model, and can be moved to other
|
14070
|
+
# versions later on. There will be exactly one default version.
|
14071
|
+
# @param [String] fields
|
14072
|
+
# Selector specifying which fields to include in a partial response.
|
14073
|
+
# @param [String] quota_user
|
14074
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14075
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14076
|
+
# @param [Google::Apis::RequestOptions] options
|
14077
|
+
# Request-specific options
|
14078
|
+
#
|
14079
|
+
# @yield [result, err] Result & error if block supplied
|
14080
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] parsed result object
|
14081
|
+
# @yieldparam err [StandardError] error object if request failed
|
14082
|
+
#
|
14083
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model]
|
14084
|
+
#
|
14085
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14086
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14087
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14088
|
+
def get_project_location_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
14089
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
14090
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model::Representation
|
14091
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model
|
14092
|
+
command.params['name'] = name unless name.nil?
|
14093
|
+
command.query['fields'] = fields unless fields.nil?
|
14094
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14095
|
+
execute_or_queue_command(command, &block)
|
14096
|
+
end
|
14097
|
+
|
14098
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
14099
|
+
# resource exists and does not have a policy set.
|
14100
|
+
# @param [String] resource
|
14101
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
14102
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
14103
|
+
# appropriate value for this field.
|
14104
|
+
# @param [Fixnum] options_requested_policy_version
|
14105
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
14106
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
14107
|
+
# rejected. Requests for policies with any conditional role bindings must
|
14108
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
14109
|
+
# valid value or leave the field unset. The policy in the response might use the
|
14110
|
+
# policy version that you specified, or it might use a lower policy version. For
|
14111
|
+
# example, if you specify version 3, but the policy has no conditional role
|
14112
|
+
# bindings, the response uses version 1. To learn which resources support
|
14113
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
14114
|
+
# google.com/iam/help/conditions/resource-policies).
|
14115
|
+
# @param [String] fields
|
14116
|
+
# Selector specifying which fields to include in a partial response.
|
14117
|
+
# @param [String] quota_user
|
14118
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14119
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14120
|
+
# @param [Google::Apis::RequestOptions] options
|
14121
|
+
# Request-specific options
|
14122
|
+
#
|
14123
|
+
# @yield [result, err] Result & error if block supplied
|
14124
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object
|
14125
|
+
# @yieldparam err [StandardError] error object if request failed
|
14126
|
+
#
|
14127
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy]
|
14128
|
+
#
|
14129
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14130
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14131
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14132
|
+
def get_project_location_model_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
14133
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
|
14134
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation
|
14135
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy
|
14136
|
+
command.params['resource'] = resource unless resource.nil?
|
14137
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
14138
|
+
command.query['fields'] = fields unless fields.nil?
|
14139
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14140
|
+
execute_or_queue_command(command, &block)
|
14141
|
+
end
|
14142
|
+
|
14143
|
+
# Lists Models in a Location.
|
14144
|
+
# @param [String] parent
|
14145
|
+
# Required. The resource name of the Location to list the Models from. Format: `
|
13758
14146
|
# projects/`project`/locations/`location``
|
13759
14147
|
# @param [String] filter
|
13760
14148
|
# An expression for filtering the results of the request. For field names both
|
@@ -14921,15 +15309,132 @@ module Google
|
|
14921
15309
|
execute_or_queue_command(command, &block)
|
14922
15310
|
end
|
14923
15311
|
|
14924
|
-
#
|
14925
|
-
#
|
14926
|
-
#
|
14927
|
-
# @param [String]
|
14928
|
-
#
|
14929
|
-
#
|
14930
|
-
#
|
14931
|
-
#
|
14932
|
-
# @param [Google::Apis::
|
15312
|
+
# Deletes a NotebookExecutionJob.
|
15313
|
+
# @param [String] name
|
15314
|
+
# Required. The name of the NotebookExecutionJob resource to be deleted.
|
15315
|
+
# @param [String] fields
|
15316
|
+
# Selector specifying which fields to include in a partial response.
|
15317
|
+
# @param [String] quota_user
|
15318
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15319
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15320
|
+
# @param [Google::Apis::RequestOptions] options
|
15321
|
+
# Request-specific options
|
15322
|
+
#
|
15323
|
+
# @yield [result, err] Result & error if block supplied
|
15324
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
15325
|
+
# @yieldparam err [StandardError] error object if request failed
|
15326
|
+
#
|
15327
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
15328
|
+
#
|
15329
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15330
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15331
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15332
|
+
def delete_project_location_notebook_execution_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
15333
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
15334
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
15335
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
15336
|
+
command.params['name'] = name unless name.nil?
|
15337
|
+
command.query['fields'] = fields unless fields.nil?
|
15338
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15339
|
+
execute_or_queue_command(command, &block)
|
15340
|
+
end
|
15341
|
+
|
15342
|
+
# Internal only: Called from Compute Engine instance to obtain EUC for owner
|
15343
|
+
# Anonymous access: authenticates caller using VM identity JWT. Design doc: go/
|
15344
|
+
# colab-on-vertex-euc-dd
|
15345
|
+
# @param [String] name
|
15346
|
+
# Required. The name of the resource requesting the OAuth2 token. Format: `
|
15347
|
+
# projects/`project`/locations/`location`/notebookRuntimes/`notebook_runtime`` `
|
15348
|
+
# projects/`project`/locations/`location`/notebookExecutionJobs/`
|
15349
|
+
# notebook_execution_job``
|
15350
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest] google_cloud_aiplatform_v1beta1_generate_access_token_request_object
|
15351
|
+
# @param [String] fields
|
15352
|
+
# Selector specifying which fields to include in a partial response.
|
15353
|
+
# @param [String] quota_user
|
15354
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15355
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15356
|
+
# @param [Google::Apis::RequestOptions] options
|
15357
|
+
# Request-specific options
|
15358
|
+
#
|
15359
|
+
# @yield [result, err] Result & error if block supplied
|
15360
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse] parsed result object
|
15361
|
+
# @yieldparam err [StandardError] error object if request failed
|
15362
|
+
#
|
15363
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse]
|
15364
|
+
#
|
15365
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15366
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15367
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15368
|
+
def generate_project_location_notebook_execution_job_access_token(name, google_cloud_aiplatform_v1beta1_generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
15369
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:generateAccessToken', options)
|
15370
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest::Representation
|
15371
|
+
command.request_object = google_cloud_aiplatform_v1beta1_generate_access_token_request_object
|
15372
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse::Representation
|
15373
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse
|
15374
|
+
command.params['name'] = name unless name.nil?
|
15375
|
+
command.query['fields'] = fields unless fields.nil?
|
15376
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15377
|
+
execute_or_queue_command(command, &block)
|
15378
|
+
end
|
15379
|
+
|
15380
|
+
# Gets a NotebookExecutionJob.
|
15381
|
+
# @param [String] name
|
15382
|
+
# Required. The name of the NotebookExecutionJob resource.
|
15383
|
+
# @param [String] view
|
15384
|
+
# Optional. The NotebookExecutionJob view. Defaults to BASIC.
|
15385
|
+
# @param [String] fields
|
15386
|
+
# Selector specifying which fields to include in a partial response.
|
15387
|
+
# @param [String] quota_user
|
15388
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15389
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15390
|
+
# @param [Google::Apis::RequestOptions] options
|
15391
|
+
# Request-specific options
|
15392
|
+
#
|
15393
|
+
# @yield [result, err] Result & error if block supplied
|
15394
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob] parsed result object
|
15395
|
+
# @yieldparam err [StandardError] error object if request failed
|
15396
|
+
#
|
15397
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob]
|
15398
|
+
#
|
15399
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15400
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15401
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15402
|
+
def get_project_location_notebook_execution_job(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
15403
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
15404
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob::Representation
|
15405
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob
|
15406
|
+
command.params['name'] = name unless name.nil?
|
15407
|
+
command.query['view'] = view unless view.nil?
|
15408
|
+
command.query['fields'] = fields unless fields.nil?
|
15409
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15410
|
+
execute_or_queue_command(command, &block)
|
15411
|
+
end
|
15412
|
+
|
15413
|
+
# Lists NotebookExecutionJobs in a Location.
|
15414
|
+
# @param [String] parent
|
15415
|
+
# Required. The resource name of the Location from which to list the
|
15416
|
+
# NotebookExecutionJobs. Format: `projects/`project`/locations/`location``
|
15417
|
+
# @param [String] filter
|
15418
|
+
# Optional. An expression for filtering the results of the request. For field
|
15419
|
+
# names both snake_case and camelCase are supported. * `notebookExecutionJob`
|
15420
|
+
# supports = and !=. `notebookExecutionJob` represents the NotebookExecutionJob
|
15421
|
+
# ID. * `displayName` supports = and != and regex. * `schedule` supports = and !=
|
15422
|
+
# and regex. Some examples: * `notebookExecutionJob="123"` * `
|
15423
|
+
# notebookExecutionJob="my-execution-job"` * `displayName="myDisplayName"` and `
|
15424
|
+
# displayName=~"myDisplayNameRegex"`
|
15425
|
+
# @param [String] order_by
|
15426
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
15427
|
+
# order. Use "desc" after a field name for descending. Supported fields: * `
|
15428
|
+
# display_name` * `create_time` * `update_time` Example: `display_name,
|
15429
|
+
# create_time desc`.
|
15430
|
+
# @param [Fixnum] page_size
|
15431
|
+
# Optional. The standard list page size.
|
15432
|
+
# @param [String] page_token
|
15433
|
+
# Optional. The standard list page token. Typically obtained via
|
15434
|
+
# ListNotebookExecutionJobs.next_page_token of the previous NotebookService.
|
15435
|
+
# ListNotebookExecutionJobs call.
|
15436
|
+
# @param [String] view
|
15437
|
+
# Optional. The NotebookExecutionJob view. Defaults to BASIC.
|
14933
15438
|
# @param [String] fields
|
14934
15439
|
# Selector specifying which fields to include in a partial response.
|
14935
15440
|
# @param [String] quota_user
|
@@ -14939,21 +15444,24 @@ module Google
|
|
14939
15444
|
# Request-specific options
|
14940
15445
|
#
|
14941
15446
|
# @yield [result, err] Result & error if block supplied
|
14942
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
15447
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse] parsed result object
|
14943
15448
|
# @yieldparam err [StandardError] error object if request failed
|
14944
15449
|
#
|
14945
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
15450
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse]
|
14946
15451
|
#
|
14947
15452
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14948
15453
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14949
15454
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14950
|
-
def
|
14951
|
-
command = make_simple_command(:
|
14952
|
-
command.
|
14953
|
-
command.
|
14954
|
-
command.
|
14955
|
-
command.
|
14956
|
-
command.
|
15455
|
+
def list_project_location_notebook_execution_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
15456
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/notebookExecutionJobs', options)
|
15457
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse::Representation
|
15458
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse
|
15459
|
+
command.params['parent'] = parent unless parent.nil?
|
15460
|
+
command.query['filter'] = filter unless filter.nil?
|
15461
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
15462
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
15463
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
15464
|
+
command.query['view'] = view unless view.nil?
|
14957
15465
|
command.query['fields'] = fields unless fields.nil?
|
14958
15466
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14959
15467
|
execute_or_queue_command(command, &block)
|
@@ -16931,145 +17439,6 @@ module Google
|
|
16931
17439
|
execute_or_queue_command(command, &block)
|
16932
17440
|
end
|
16933
17441
|
|
16934
|
-
# Creates a RagCorpus.
|
16935
|
-
# @param [String] parent
|
16936
|
-
# Required. The resource name of the Location to create the RagCorpus in. Format:
|
16937
|
-
# `projects/`project`/locations/`location``
|
16938
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] google_cloud_aiplatform_v1beta1_rag_corpus_object
|
16939
|
-
# @param [String] fields
|
16940
|
-
# Selector specifying which fields to include in a partial response.
|
16941
|
-
# @param [String] quota_user
|
16942
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
16943
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16944
|
-
# @param [Google::Apis::RequestOptions] options
|
16945
|
-
# Request-specific options
|
16946
|
-
#
|
16947
|
-
# @yield [result, err] Result & error if block supplied
|
16948
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16949
|
-
# @yieldparam err [StandardError] error object if request failed
|
16950
|
-
#
|
16951
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
16952
|
-
#
|
16953
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16954
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16955
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16956
|
-
def create_project_location_rag_corpora(parent, google_cloud_aiplatform_v1beta1_rag_corpus_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
16957
|
-
command = make_simple_command(:post, 'v1beta1/{+parent}/ragCorpora', options)
|
16958
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation
|
16959
|
-
command.request_object = google_cloud_aiplatform_v1beta1_rag_corpus_object
|
16960
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
16961
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16962
|
-
command.params['parent'] = parent unless parent.nil?
|
16963
|
-
command.query['fields'] = fields unless fields.nil?
|
16964
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16965
|
-
execute_or_queue_command(command, &block)
|
16966
|
-
end
|
16967
|
-
|
16968
|
-
# Deletes a RagCorpus.
|
16969
|
-
# @param [String] name
|
16970
|
-
# Required. The name of the RagCorpus resource to be deleted. Format: `projects/`
|
16971
|
-
# project`/locations/`location`/ragCorpora/`rag_corpus``
|
16972
|
-
# @param [Boolean] force
|
16973
|
-
# Optional. If set to true, any RagFiles in this RagCorpus will also be deleted.
|
16974
|
-
# Otherwise, the request will only work if the RagCorpus has no RagFiles.
|
16975
|
-
# @param [String] fields
|
16976
|
-
# Selector specifying which fields to include in a partial response.
|
16977
|
-
# @param [String] quota_user
|
16978
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
16979
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16980
|
-
# @param [Google::Apis::RequestOptions] options
|
16981
|
-
# Request-specific options
|
16982
|
-
#
|
16983
|
-
# @yield [result, err] Result & error if block supplied
|
16984
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16985
|
-
# @yieldparam err [StandardError] error object if request failed
|
16986
|
-
#
|
16987
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
16988
|
-
#
|
16989
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16990
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16991
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16992
|
-
def delete_project_location_rag_corpora(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
16993
|
-
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
16994
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
16995
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16996
|
-
command.params['name'] = name unless name.nil?
|
16997
|
-
command.query['force'] = force unless force.nil?
|
16998
|
-
command.query['fields'] = fields unless fields.nil?
|
16999
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17000
|
-
execute_or_queue_command(command, &block)
|
17001
|
-
end
|
17002
|
-
|
17003
|
-
# Gets a RagCorpus.
|
17004
|
-
# @param [String] name
|
17005
|
-
# Required. The name of the RagCorpus resource. Format: `projects/`project`/
|
17006
|
-
# locations/`location`/ragCorpora/`rag_corpus``
|
17007
|
-
# @param [String] fields
|
17008
|
-
# Selector specifying which fields to include in a partial response.
|
17009
|
-
# @param [String] quota_user
|
17010
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
17011
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17012
|
-
# @param [Google::Apis::RequestOptions] options
|
17013
|
-
# Request-specific options
|
17014
|
-
#
|
17015
|
-
# @yield [result, err] Result & error if block supplied
|
17016
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] parsed result object
|
17017
|
-
# @yieldparam err [StandardError] error object if request failed
|
17018
|
-
#
|
17019
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus]
|
17020
|
-
#
|
17021
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17022
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17023
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17024
|
-
def get_project_location_rag_corpora(name, fields: nil, quota_user: nil, options: nil, &block)
|
17025
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
17026
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation
|
17027
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus
|
17028
|
-
command.params['name'] = name unless name.nil?
|
17029
|
-
command.query['fields'] = fields unless fields.nil?
|
17030
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17031
|
-
execute_or_queue_command(command, &block)
|
17032
|
-
end
|
17033
|
-
|
17034
|
-
# Lists RagCorpora in a Location.
|
17035
|
-
# @param [String] parent
|
17036
|
-
# Required. The resource name of the Location from which to list the RagCorpora.
|
17037
|
-
# Format: `projects/`project`/locations/`location``
|
17038
|
-
# @param [Fixnum] page_size
|
17039
|
-
# Optional. The standard list page size.
|
17040
|
-
# @param [String] page_token
|
17041
|
-
# Optional. The standard list page token. Typically obtained via
|
17042
|
-
# ListRagCorporaResponse.next_page_token of the previous VertexRagDataService.
|
17043
|
-
# ListRagCorpora call.
|
17044
|
-
# @param [String] fields
|
17045
|
-
# Selector specifying which fields to include in a partial response.
|
17046
|
-
# @param [String] quota_user
|
17047
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
17048
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17049
|
-
# @param [Google::Apis::RequestOptions] options
|
17050
|
-
# Request-specific options
|
17051
|
-
#
|
17052
|
-
# @yield [result, err] Result & error if block supplied
|
17053
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse] parsed result object
|
17054
|
-
# @yieldparam err [StandardError] error object if request failed
|
17055
|
-
#
|
17056
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse]
|
17057
|
-
#
|
17058
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17059
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17060
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17061
|
-
def list_project_location_rag_corporas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17062
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/ragCorpora', options)
|
17063
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse::Representation
|
17064
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse
|
17065
|
-
command.params['parent'] = parent unless parent.nil?
|
17066
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
17067
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
17068
|
-
command.query['fields'] = fields unless fields.nil?
|
17069
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17070
|
-
execute_or_queue_command(command, &block)
|
17071
|
-
end
|
17072
|
-
|
17073
17442
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
17074
17443
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
17075
17444
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -17253,141 +17622,6 @@ module Google
|
|
17253
17622
|
execute_or_queue_command(command, &block)
|
17254
17623
|
end
|
17255
17624
|
|
17256
|
-
# Deletes a RagFile.
|
17257
|
-
# @param [String] name
|
17258
|
-
# Required. The name of the RagFile resource to be deleted. Format: `projects/`
|
17259
|
-
# project`/locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file``
|
17260
|
-
# @param [String] fields
|
17261
|
-
# Selector specifying which fields to include in a partial response.
|
17262
|
-
# @param [String] quota_user
|
17263
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
17264
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17265
|
-
# @param [Google::Apis::RequestOptions] options
|
17266
|
-
# Request-specific options
|
17267
|
-
#
|
17268
|
-
# @yield [result, err] Result & error if block supplied
|
17269
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17270
|
-
# @yieldparam err [StandardError] error object if request failed
|
17271
|
-
#
|
17272
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17273
|
-
#
|
17274
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17275
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17276
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17277
|
-
def delete_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
17278
|
-
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
17279
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17280
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17281
|
-
command.params['name'] = name unless name.nil?
|
17282
|
-
command.query['fields'] = fields unless fields.nil?
|
17283
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17284
|
-
execute_or_queue_command(command, &block)
|
17285
|
-
end
|
17286
|
-
|
17287
|
-
# Gets a RagFile.
|
17288
|
-
# @param [String] name
|
17289
|
-
# Required. The name of the RagFile resource. Format: `projects/`project`/
|
17290
|
-
# locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file``
|
17291
|
-
# @param [String] fields
|
17292
|
-
# Selector specifying which fields to include in a partial response.
|
17293
|
-
# @param [String] quota_user
|
17294
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
17295
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17296
|
-
# @param [Google::Apis::RequestOptions] options
|
17297
|
-
# Request-specific options
|
17298
|
-
#
|
17299
|
-
# @yield [result, err] Result & error if block supplied
|
17300
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile] parsed result object
|
17301
|
-
# @yieldparam err [StandardError] error object if request failed
|
17302
|
-
#
|
17303
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile]
|
17304
|
-
#
|
17305
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17306
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17307
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17308
|
-
def get_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
17309
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
17310
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile::Representation
|
17311
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile
|
17312
|
-
command.params['name'] = name unless name.nil?
|
17313
|
-
command.query['fields'] = fields unless fields.nil?
|
17314
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17315
|
-
execute_or_queue_command(command, &block)
|
17316
|
-
end
|
17317
|
-
|
17318
|
-
# Import files from Google Cloud Storage or Google Drive into a RagCorpus.
|
17319
|
-
# @param [String] parent
|
17320
|
-
# Required. The name of the RagCorpus resource into which to import files.
|
17321
|
-
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
17322
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest] google_cloud_aiplatform_v1beta1_import_rag_files_request_object
|
17323
|
-
# @param [String] fields
|
17324
|
-
# Selector specifying which fields to include in a partial response.
|
17325
|
-
# @param [String] quota_user
|
17326
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
17327
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17328
|
-
# @param [Google::Apis::RequestOptions] options
|
17329
|
-
# Request-specific options
|
17330
|
-
#
|
17331
|
-
# @yield [result, err] Result & error if block supplied
|
17332
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17333
|
-
# @yieldparam err [StandardError] error object if request failed
|
17334
|
-
#
|
17335
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17336
|
-
#
|
17337
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17338
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17339
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17340
|
-
def import_project_location_rag_corpora_rag_file(parent, google_cloud_aiplatform_v1beta1_import_rag_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17341
|
-
command = make_simple_command(:post, 'v1beta1/{+parent}/ragFiles:import', options)
|
17342
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest::Representation
|
17343
|
-
command.request_object = google_cloud_aiplatform_v1beta1_import_rag_files_request_object
|
17344
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17345
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17346
|
-
command.params['parent'] = parent unless parent.nil?
|
17347
|
-
command.query['fields'] = fields unless fields.nil?
|
17348
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17349
|
-
execute_or_queue_command(command, &block)
|
17350
|
-
end
|
17351
|
-
|
17352
|
-
# Lists RagFiles in a RagCorpus.
|
17353
|
-
# @param [String] parent
|
17354
|
-
# Required. The resource name of the RagCorpus from which to list the RagFiles.
|
17355
|
-
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
17356
|
-
# @param [Fixnum] page_size
|
17357
|
-
# Optional. The standard list page size.
|
17358
|
-
# @param [String] page_token
|
17359
|
-
# Optional. The standard list page token. Typically obtained via
|
17360
|
-
# ListRagFilesResponse.next_page_token of the previous VertexRagDataService.
|
17361
|
-
# ListRagFiles call.
|
17362
|
-
# @param [String] fields
|
17363
|
-
# Selector specifying which fields to include in a partial response.
|
17364
|
-
# @param [String] quota_user
|
17365
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
17366
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17367
|
-
# @param [Google::Apis::RequestOptions] options
|
17368
|
-
# Request-specific options
|
17369
|
-
#
|
17370
|
-
# @yield [result, err] Result & error if block supplied
|
17371
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse] parsed result object
|
17372
|
-
# @yieldparam err [StandardError] error object if request failed
|
17373
|
-
#
|
17374
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse]
|
17375
|
-
#
|
17376
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17377
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17378
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17379
|
-
def list_project_location_rag_corpora_rag_files(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17380
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/ragFiles', options)
|
17381
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse::Representation
|
17382
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse
|
17383
|
-
command.params['parent'] = parent unless parent.nil?
|
17384
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
17385
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
17386
|
-
command.query['fields'] = fields unless fields.nil?
|
17387
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17388
|
-
execute_or_queue_command(command, &block)
|
17389
|
-
end
|
17390
|
-
|
17391
17625
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
17392
17626
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
17393
17627
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|