google-apis-aiplatform_v1beta1 0.36.0 → 0.37.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.
@@ -393,7 +393,9 @@ module Google
393
393
 
394
394
  # Updates a DatasetVersion.
395
395
  # @param [String] name
396
- # Output only. Identifier. The resource name of the DatasetVersion.
396
+ # Output only. Identifier. The resource name of the DatasetVersion. Format: `
397
+ # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/`
398
+ # dataset_version``
397
399
  # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object
398
400
  # @param [String] update_mask
399
401
  # Required. The update mask applies to the resource. For the `FieldMask`
@@ -563,6 +565,40 @@ module Google
563
565
  execute_or_queue_command(command, &block)
564
566
  end
565
567
 
568
+ # Perform an online prediction.
569
+ # @param [String] endpoint
570
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
571
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
572
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_request_object
573
+ # @param [String] fields
574
+ # Selector specifying which fields to include in a partial response.
575
+ # @param [String] quota_user
576
+ # Available to use for quota purposes for server-side applications. Can be any
577
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
578
+ # @param [Google::Apis::RequestOptions] options
579
+ # Request-specific options
580
+ #
581
+ # @yield [result, err] Result & error if block supplied
582
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object
583
+ # @yieldparam err [StandardError] error object if request failed
584
+ #
585
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse]
586
+ #
587
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
588
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
589
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
590
+ def predict_endpoint(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
591
+ command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options)
592
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation
593
+ command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object
594
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation
595
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse
596
+ command.params['endpoint'] = endpoint unless endpoint.nil?
597
+ command.query['fields'] = fields unless fields.nil?
598
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
599
+ execute_or_queue_command(command, &block)
600
+ end
601
+
566
602
  # Generate content with multimodal inputs with streaming support.
567
603
  # @param [String] model
568
604
  # Required. The fully qualified name of the publisher model or tuned model
@@ -814,6 +850,40 @@ module Google
814
850
  execute_or_queue_command(command, &block)
815
851
  end
816
852
 
853
+ # Evaluates a dataset based on a set of given metrics.
854
+ # @param [String] location
855
+ # Required. The resource name of the Location to evaluate the dataset. Format: `
856
+ # projects/`project`/locations/`location``
857
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateDatasetRequest] google_cloud_aiplatform_v1beta1_evaluate_dataset_request_object
858
+ # @param [String] fields
859
+ # Selector specifying which fields to include in a partial response.
860
+ # @param [String] quota_user
861
+ # Available to use for quota purposes for server-side applications. Can be any
862
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
863
+ # @param [Google::Apis::RequestOptions] options
864
+ # Request-specific options
865
+ #
866
+ # @yield [result, err] Result & error if block supplied
867
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
868
+ # @yieldparam err [StandardError] error object if request failed
869
+ #
870
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
871
+ #
872
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
873
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
874
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
875
+ def evaluate_project_location_dataset(location, google_cloud_aiplatform_v1beta1_evaluate_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
876
+ command = make_simple_command(:post, 'v1beta1/{+location}:evaluateDataset', options)
877
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateDatasetRequest::Representation
878
+ command.request_object = google_cloud_aiplatform_v1beta1_evaluate_dataset_request_object
879
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
880
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
881
+ command.params['location'] = location unless location.nil?
882
+ command.query['fields'] = fields unless fields.nil?
883
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
884
+ execute_or_queue_command(command, &block)
885
+ end
886
+
817
887
  # Evaluates instances based on a given metric.
818
888
  # @param [String] location
819
889
  # Required. The resource name of the Location to evaluate the instances. Format:
@@ -3612,7 +3682,9 @@ module Google
3612
3682
 
3613
3683
  # Updates a DatasetVersion.
3614
3684
  # @param [String] name
3615
- # Output only. Identifier. The resource name of the DatasetVersion.
3685
+ # Output only. Identifier. The resource name of the DatasetVersion. Format: `
3686
+ # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/`
3687
+ # dataset_version``
3616
3688
  # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object
3617
3689
  # @param [String] update_mask
3618
3690
  # Required. The update mask applies to the resource. For the `FieldMask`
@@ -7005,7 +7077,7 @@ module Google
7005
7077
  # the mask. If the user does not provide a mask then only the non-empty fields
7006
7078
  # present in the request will be overwritten. Set the update_mask to `*` to
7007
7079
  # override all fields. Updatable fields: * `labels` * `description` * `big_query`
7008
- # * `big_query.entity_id_columns`
7080
+ # * `big_query.entity_id_columns` * `service_agent_type`
7009
7081
  # @param [String] fields
7010
7082
  # Selector specifying which fields to include in a partial response.
7011
7083
  # @param [String] quota_user
@@ -7274,6 +7346,49 @@ module Google
7274
7346
  execute_or_queue_command(command, &block)
7275
7347
  end
7276
7348
 
7349
+ # Updates the parameters of a single FeatureMonitor.
7350
+ # @param [String] name
7351
+ # Identifier. Name of the FeatureMonitor. Format: `projects/`project`/locations/`
7352
+ # location`/featureGroups/`featureGroup`/featureMonitors/`featureMonitor``
7353
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor] google_cloud_aiplatform_v1beta1_feature_monitor_object
7354
+ # @param [String] update_mask
7355
+ # Optional. Field mask is used to specify the fields to be overwritten in the
7356
+ # FeatureMonitor resource by the update. The fields specified in the update_mask
7357
+ # are relative to the resource, not the full request. A field will be
7358
+ # overwritten if it is in the mask. If the user does not provide a mask then
7359
+ # only the non-empty fields present in the request will be overwritten. Set the
7360
+ # update_mask to `*` to override all fields. Updatable fields: * `labels` * `
7361
+ # description` * `schedule_config` * `feature_selection_config`
7362
+ # @param [String] fields
7363
+ # Selector specifying which fields to include in a partial response.
7364
+ # @param [String] quota_user
7365
+ # Available to use for quota purposes for server-side applications. Can be any
7366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7367
+ # @param [Google::Apis::RequestOptions] options
7368
+ # Request-specific options
7369
+ #
7370
+ # @yield [result, err] Result & error if block supplied
7371
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
7372
+ # @yieldparam err [StandardError] error object if request failed
7373
+ #
7374
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
7375
+ #
7376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7379
+ def patch_project_location_feature_group_feature_monitor(name, google_cloud_aiplatform_v1beta1_feature_monitor_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
7380
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
7381
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor::Representation
7382
+ command.request_object = google_cloud_aiplatform_v1beta1_feature_monitor_object
7383
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
7384
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
7385
+ command.params['name'] = name unless name.nil?
7386
+ command.query['updateMask'] = update_mask unless update_mask.nil?
7387
+ command.query['fields'] = fields unless fields.nil?
7388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7389
+ execute_or_queue_command(command, &block)
7390
+ end
7391
+
7277
7392
  # Creates a new feature monitor job.
7278
7393
  # @param [String] parent
7279
7394
  # Required. The resource name of FeatureMonitor to create FeatureMonitorJob.
@@ -11600,7 +11715,6 @@ module Google
11600
11715
  end
11601
11716
 
11602
11717
  # Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it.
11603
- # Only non-empty Indexes can be deployed.
11604
11718
  # @param [String] index_endpoint
11605
11719
  # Required. The name of the IndexEndpoint resource into which to deploy an Index.
11606
11720
  # Format: `projects/`project`/locations/`location`/indexEndpoints/`
@@ -16161,6 +16275,47 @@ module Google
16161
16275
  execute_or_queue_command(command, &block)
16162
16276
  end
16163
16277
 
16278
+ # Lists checkpoints of the specified model version.
16279
+ # @param [String] name
16280
+ # Required. The name of the model version to list checkpoints for. `projects/`
16281
+ # project`/locations/`location`/models/`model`@`version`` Example: `projects/`
16282
+ # project`/locations/`location`/models/`model`@2` or `projects/`project`/
16283
+ # locations/`location`/models/`model`@golden` If no version ID or alias is
16284
+ # specified, the latest version will be used.
16285
+ # @param [Fixnum] page_size
16286
+ # Optional. The standard list page size.
16287
+ # @param [String] page_token
16288
+ # Optional. The standard list page token. Typically obtained via next_page_token
16289
+ # of the previous ListModelVersionCheckpoints call.
16290
+ # @param [String] fields
16291
+ # Selector specifying which fields to include in a partial response.
16292
+ # @param [String] quota_user
16293
+ # Available to use for quota purposes for server-side applications. Can be any
16294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16295
+ # @param [Google::Apis::RequestOptions] options
16296
+ # Request-specific options
16297
+ #
16298
+ # @yield [result, err] Result & error if block supplied
16299
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse] parsed result object
16300
+ # @yieldparam err [StandardError] error object if request failed
16301
+ #
16302
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse]
16303
+ #
16304
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16305
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16306
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16307
+ def list_project_location_model_checkpoints(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
16308
+ command = make_simple_command(:get, 'v1beta1/{+name}:listCheckpoints', options)
16309
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse::Representation
16310
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse
16311
+ command.params['name'] = name unless name.nil?
16312
+ command.query['pageSize'] = page_size unless page_size.nil?
16313
+ command.query['pageToken'] = page_token unless page_token.nil?
16314
+ command.query['fields'] = fields unless fields.nil?
16315
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16316
+ execute_or_queue_command(command, &block)
16317
+ end
16318
+
16164
16319
  # Lists versions of the specified model.
16165
16320
  # @param [String] name
16166
16321
  # Required. The name of the model to list versions for.
@@ -25756,6 +25911,40 @@ module Google
25756
25911
  execute_or_queue_command(command, &block)
25757
25912
  end
25758
25913
 
25914
+ # Perform an online prediction.
25915
+ # @param [String] endpoint
25916
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
25917
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
25918
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_request_object
25919
+ # @param [String] fields
25920
+ # Selector specifying which fields to include in a partial response.
25921
+ # @param [String] quota_user
25922
+ # Available to use for quota purposes for server-side applications. Can be any
25923
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25924
+ # @param [Google::Apis::RequestOptions] options
25925
+ # Request-specific options
25926
+ #
25927
+ # @yield [result, err] Result & error if block supplied
25928
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object
25929
+ # @yieldparam err [StandardError] error object if request failed
25930
+ #
25931
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse]
25932
+ #
25933
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25934
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25935
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25936
+ def predict_publisher_model(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
25937
+ command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options)
25938
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation
25939
+ command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object
25940
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation
25941
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse
25942
+ command.params['endpoint'] = endpoint unless endpoint.nil?
25943
+ command.query['fields'] = fields unless fields.nil?
25944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25945
+ execute_or_queue_command(command, &block)
25946
+ end
25947
+
25759
25948
  # Generate content with multimodal inputs with streaming support.
25760
25949
  # @param [String] model
25761
25950
  # Required. The fully qualified name of the publisher model or tuned model
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-05 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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.36.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.37.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1beta1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Vertex AI API V1beta1
82
79
  test_files: []