google-apis-aiplatform_v1beta1 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +1906 -192
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +905 -113
- data/lib/google/apis/aiplatform_v1beta1/service.rb +523 -34
- metadata +3 -3
@@ -4132,40 +4132,6 @@ module Google
|
|
4132
4132
|
execute_or_queue_command(command, &block)
|
4133
4133
|
end
|
4134
4134
|
|
4135
|
-
# Exposes an OpenAI-compatible endpoint for chat completions.
|
4136
|
-
# @param [String] endpoint
|
4137
|
-
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
4138
|
-
# projects/`project`/locations/`location`/endpoints/openapi`
|
4139
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] google_api_http_body_object
|
4140
|
-
# @param [String] fields
|
4141
|
-
# Selector specifying which fields to include in a partial response.
|
4142
|
-
# @param [String] quota_user
|
4143
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4144
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4145
|
-
# @param [Google::Apis::RequestOptions] options
|
4146
|
-
# Request-specific options
|
4147
|
-
#
|
4148
|
-
# @yield [result, err] Result & error if block supplied
|
4149
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object
|
4150
|
-
# @yieldparam err [StandardError] error object if request failed
|
4151
|
-
#
|
4152
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
|
4153
|
-
#
|
4154
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4155
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4156
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4157
|
-
def completions_project_location_endpoint_chat(endpoint, google_api_http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4158
|
-
command = make_simple_command(:post, 'v1beta1/{+endpoint}/chat/completions', options)
|
4159
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
|
4160
|
-
command.request_object = google_api_http_body_object
|
4161
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
|
4162
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody
|
4163
|
-
command.params['endpoint'] = endpoint unless endpoint.nil?
|
4164
|
-
command.query['fields'] = fields unless fields.nil?
|
4165
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4166
|
-
execute_or_queue_command(command, &block)
|
4167
|
-
end
|
4168
|
-
|
4169
4135
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
4170
4136
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
4171
4137
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -13365,6 +13331,409 @@ module Google
|
|
13365
13331
|
execute_or_queue_command(command, &block)
|
13366
13332
|
end
|
13367
13333
|
|
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])?$/`.
|
13343
|
+
# @param [String] fields
|
13344
|
+
# Selector specifying which fields to include in a partial response.
|
13345
|
+
# @param [String] quota_user
|
13346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13348
|
+
# @param [Google::Apis::RequestOptions] options
|
13349
|
+
# Request-specific options
|
13350
|
+
#
|
13351
|
+
# @yield [result, err] Result & error if block supplied
|
13352
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13353
|
+
# @yieldparam err [StandardError] error object if request failed
|
13354
|
+
#
|
13355
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13356
|
+
#
|
13357
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13358
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13359
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
13368
|
+
command.query['fields'] = fields unless fields.nil?
|
13369
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13370
|
+
execute_or_queue_command(command, &block)
|
13371
|
+
end
|
13372
|
+
|
13373
|
+
# Deletes a ModelMonitor.
|
13374
|
+
# @param [String] name
|
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.
|
13379
|
+
# @param [String] fields
|
13380
|
+
# Selector specifying which fields to include in a partial response.
|
13381
|
+
# @param [String] quota_user
|
13382
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13383
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13384
|
+
# @param [Google::Apis::RequestOptions] options
|
13385
|
+
# Request-specific options
|
13386
|
+
#
|
13387
|
+
# @yield [result, err] Result & error if block supplied
|
13388
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13389
|
+
# @yieldparam err [StandardError] error object if request failed
|
13390
|
+
#
|
13391
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13392
|
+
#
|
13393
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13394
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13395
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13396
|
+
def delete_project_location_model_monitor(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
13397
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
13398
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13399
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13400
|
+
command.params['name'] = name unless name.nil?
|
13401
|
+
command.query['force'] = force unless force.nil?
|
13402
|
+
command.query['fields'] = fields unless fields.nil?
|
13403
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13404
|
+
execute_or_queue_command(command, &block)
|
13405
|
+
end
|
13406
|
+
|
13407
|
+
# Gets a ModelMonitor.
|
13408
|
+
# @param [String] name
|
13409
|
+
# Required. The name of the ModelMonitor resource. Format: `projects/`project`/
|
13410
|
+
# locations/`location`/modelMonitors/`model_monitor``
|
13411
|
+
# @param [String] fields
|
13412
|
+
# Selector specifying which fields to include in a partial response.
|
13413
|
+
# @param [String] quota_user
|
13414
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13415
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13416
|
+
# @param [Google::Apis::RequestOptions] options
|
13417
|
+
# Request-specific options
|
13418
|
+
#
|
13419
|
+
# @yield [result, err] Result & error if block supplied
|
13420
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] parsed result object
|
13421
|
+
# @yieldparam err [StandardError] error object if request failed
|
13422
|
+
#
|
13423
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor]
|
13424
|
+
#
|
13425
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13426
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13427
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13428
|
+
def get_project_location_model_monitor(name, fields: nil, quota_user: nil, options: nil, &block)
|
13429
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
13430
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation
|
13431
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor
|
13432
|
+
command.params['name'] = name unless name.nil?
|
13433
|
+
command.query['fields'] = fields unless fields.nil?
|
13434
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13435
|
+
execute_or_queue_command(command, &block)
|
13436
|
+
end
|
13437
|
+
|
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``
|
13442
|
+
# @param [String] filter
|
13443
|
+
# The standard list filter. More detail in [AIP-160](https://google.aip.dev/160).
|
13444
|
+
# @param [Fixnum] page_size
|
13445
|
+
# The standard list page size.
|
13446
|
+
# @param [String] page_token
|
13447
|
+
# The standard list page token.
|
13448
|
+
# @param [String] read_mask
|
13449
|
+
# Mask specifying which fields to read.
|
13450
|
+
# @param [String] fields
|
13451
|
+
# Selector specifying which fields to include in a partial response.
|
13452
|
+
# @param [String] quota_user
|
13453
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13454
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13455
|
+
# @param [Google::Apis::RequestOptions] options
|
13456
|
+
# Request-specific options
|
13457
|
+
#
|
13458
|
+
# @yield [result, err] Result & error if block supplied
|
13459
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse] parsed result object
|
13460
|
+
# @yieldparam err [StandardError] error object if request failed
|
13461
|
+
#
|
13462
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse]
|
13463
|
+
#
|
13464
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13465
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13466
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
13472
|
+
command.query['filter'] = filter unless filter.nil?
|
13473
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
13474
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
13475
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
13476
|
+
command.query['fields'] = fields unless fields.nil?
|
13477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13478
|
+
execute_or_queue_command(command, &block)
|
13479
|
+
end
|
13480
|
+
|
13481
|
+
# Updates a ModelMonitor.
|
13482
|
+
# @param [String] name
|
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.
|
13488
|
+
# @param [String] fields
|
13489
|
+
# Selector specifying which fields to include in a partial response.
|
13490
|
+
# @param [String] quota_user
|
13491
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13492
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13493
|
+
# @param [Google::Apis::RequestOptions] options
|
13494
|
+
# Request-specific options
|
13495
|
+
#
|
13496
|
+
# @yield [result, err] Result & error if block supplied
|
13497
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13498
|
+
# @yieldparam err [StandardError] error object if request failed
|
13499
|
+
#
|
13500
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13501
|
+
#
|
13502
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13503
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13504
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
13509
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13510
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13511
|
+
command.params['name'] = name unless name.nil?
|
13512
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
13513
|
+
command.query['fields'] = fields unless fields.nil?
|
13514
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13515
|
+
execute_or_queue_command(command, &block)
|
13516
|
+
end
|
13517
|
+
|
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
|
13523
|
+
# @param [String] fields
|
13524
|
+
# Selector specifying which fields to include in a partial response.
|
13525
|
+
# @param [String] quota_user
|
13526
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13527
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13528
|
+
# @param [Google::Apis::RequestOptions] options
|
13529
|
+
# Request-specific options
|
13530
|
+
#
|
13531
|
+
# @yield [result, err] Result & error if block supplied
|
13532
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse] parsed result object
|
13533
|
+
# @yieldparam err [StandardError] error object if request failed
|
13534
|
+
#
|
13535
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse]
|
13536
|
+
#
|
13537
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13538
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13539
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
13547
|
+
command.query['fields'] = fields unless fields.nil?
|
13548
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13549
|
+
execute_or_queue_command(command, &block)
|
13550
|
+
end
|
13551
|
+
|
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
|
13557
|
+
# @param [String] fields
|
13558
|
+
# Selector specifying which fields to include in a partial response.
|
13559
|
+
# @param [String] quota_user
|
13560
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13561
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13562
|
+
# @param [Google::Apis::RequestOptions] options
|
13563
|
+
# Request-specific options
|
13564
|
+
#
|
13565
|
+
# @yield [result, err] Result & error if block supplied
|
13566
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse] parsed result object
|
13567
|
+
# @yieldparam err [StandardError] error object if request failed
|
13568
|
+
#
|
13569
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse]
|
13570
|
+
#
|
13571
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13572
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13573
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
13581
|
+
command.query['fields'] = fields unless fields.nil?
|
13582
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13583
|
+
execute_or_queue_command(command, &block)
|
13584
|
+
end
|
13585
|
+
|
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
|
+
# `.
|
13596
|
+
# @param [String] fields
|
13597
|
+
# Selector specifying which fields to include in a partial response.
|
13598
|
+
# @param [String] quota_user
|
13599
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13600
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13601
|
+
# @param [Google::Apis::RequestOptions] options
|
13602
|
+
# Request-specific options
|
13603
|
+
#
|
13604
|
+
# @yield [result, err] Result & error if block supplied
|
13605
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] parsed result object
|
13606
|
+
# @yieldparam err [StandardError] error object if request failed
|
13607
|
+
#
|
13608
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob]
|
13609
|
+
#
|
13610
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13611
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13612
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
13621
|
+
command.query['fields'] = fields unless fields.nil?
|
13622
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13623
|
+
execute_or_queue_command(command, &block)
|
13624
|
+
end
|
13625
|
+
|
13626
|
+
# Deletes a ModelMonitoringJob.
|
13627
|
+
# @param [String] name
|
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``
|
13631
|
+
# @param [String] fields
|
13632
|
+
# Selector specifying which fields to include in a partial response.
|
13633
|
+
# @param [String] quota_user
|
13634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13636
|
+
# @param [Google::Apis::RequestOptions] options
|
13637
|
+
# Request-specific options
|
13638
|
+
#
|
13639
|
+
# @yield [result, err] Result & error if block supplied
|
13640
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
13641
|
+
# @yieldparam err [StandardError] error object if request failed
|
13642
|
+
#
|
13643
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
13644
|
+
#
|
13645
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13646
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13647
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
13650
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
13651
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
13652
|
+
command.params['name'] = name unless name.nil?
|
13653
|
+
command.query['fields'] = fields unless fields.nil?
|
13654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13655
|
+
execute_or_queue_command(command, &block)
|
13656
|
+
end
|
13657
|
+
|
13658
|
+
# Gets a ModelMonitoringJob.
|
13659
|
+
# @param [String] name
|
13660
|
+
# Required. The resource name of the ModelMonitoringJob. Format: `projects/`
|
13661
|
+
# project`/locations/`location`/modelMonitors/`model_monitor`/
|
13662
|
+
# modelMonitoringJobs/`model_monitoring_job``
|
13663
|
+
# @param [String] fields
|
13664
|
+
# Selector specifying which fields to include in a partial response.
|
13665
|
+
# @param [String] quota_user
|
13666
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13667
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13668
|
+
# @param [Google::Apis::RequestOptions] options
|
13669
|
+
# Request-specific options
|
13670
|
+
#
|
13671
|
+
# @yield [result, err] Result & error if block supplied
|
13672
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] parsed result object
|
13673
|
+
# @yieldparam err [StandardError] error object if request failed
|
13674
|
+
#
|
13675
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob]
|
13676
|
+
#
|
13677
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13678
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13679
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13680
|
+
def get_project_location_model_monitor_model_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
13681
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
13682
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation
|
13683
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob
|
13684
|
+
command.params['name'] = name unless name.nil?
|
13685
|
+
command.query['fields'] = fields unless fields.nil?
|
13686
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13687
|
+
execute_or_queue_command(command, &block)
|
13688
|
+
end
|
13689
|
+
|
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
|
13706
|
+
# @param [String] fields
|
13707
|
+
# Selector specifying which fields to include in a partial response.
|
13708
|
+
# @param [String] quota_user
|
13709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13711
|
+
# @param [Google::Apis::RequestOptions] options
|
13712
|
+
# Request-specific options
|
13713
|
+
#
|
13714
|
+
# @yield [result, err] Result & error if block supplied
|
13715
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse] parsed result object
|
13716
|
+
# @yieldparam err [StandardError] error object if request failed
|
13717
|
+
#
|
13718
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse]
|
13719
|
+
#
|
13720
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13721
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13722
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
13732
|
+
command.query['fields'] = fields unless fields.nil?
|
13733
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13734
|
+
execute_or_queue_command(command, &block)
|
13735
|
+
end
|
13736
|
+
|
13368
13737
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
13369
13738
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
13370
13739
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -14940,6 +15309,36 @@ module Google
|
|
14940
15309
|
execute_or_queue_command(command, &block)
|
14941
15310
|
end
|
14942
15311
|
|
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
|
+
|
14943
15342
|
# Internal only: Called from Compute Engine instance to obtain EUC for owner
|
14944
15343
|
# Anonymous access: authenticates caller using VM identity JWT. Design doc: go/
|
14945
15344
|
# colab-on-vertex-euc-dd
|
@@ -14978,6 +15377,96 @@ module Google
|
|
14978
15377
|
execute_or_queue_command(command, &block)
|
14979
15378
|
end
|
14980
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.
|
15438
|
+
# @param [String] fields
|
15439
|
+
# Selector specifying which fields to include in a partial response.
|
15440
|
+
# @param [String] quota_user
|
15441
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15442
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15443
|
+
# @param [Google::Apis::RequestOptions] options
|
15444
|
+
# Request-specific options
|
15445
|
+
#
|
15446
|
+
# @yield [result, err] Result & error if block supplied
|
15447
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse] parsed result object
|
15448
|
+
# @yieldparam err [StandardError] error object if request failed
|
15449
|
+
#
|
15450
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse]
|
15451
|
+
#
|
15452
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15453
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15454
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
15465
|
+
command.query['fields'] = fields unless fields.nil?
|
15466
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15467
|
+
execute_or_queue_command(command, &block)
|
15468
|
+
end
|
15469
|
+
|
14981
15470
|
#
|
14982
15471
|
# @param [String] name
|
14983
15472
|
# Required. The name of the NotebookExecutionJob resource. Format: `projects/`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-aiplatform_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.25.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|