google-apis-aiplatform_v1 0.53.0 → 0.54.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce2b4ed7c3de08c188604c42f8c9f2eefcead348457998b9be9eb27edde30a5d
4
- data.tar.gz: ada2c6cb5c55a59e528ae776fda483c6ae3f05056d67735d7fb391faa89c13e0
3
+ metadata.gz: 9883d8b3c99bcb05bdc2147f1a8ee49cee74bcc8fa496d5239e87366dc69316f
4
+ data.tar.gz: bf822e240168964155e3df54729e4ee80f30f3fac1f33c38f2be21d672588282
5
5
  SHA512:
6
- metadata.gz: cb314e00ca14b852aa6e1cbc81e3afc2e9dd24385b225b2788daf1e1c9959538fb8e739b88c217f1a9249a1e29d44f675730bc536e71e0768abcbe4feefe52ac
7
- data.tar.gz: a127fa834faff1da022890916c538c40a455a3d25a47254f2a3898e2ee4217985c02b5d3f93fca8337c0291c88e33c76b7e52bc05b1aab02cae99a197f06ac57
6
+ metadata.gz: 96fd9febc1de1bc510565d49301aa08e6e74a9966044700339220ea1a622584e46048a2b5acebd9ca6e5bf35bddd878655edf1983e8a1f2882c1c2c63229ad15
7
+ data.tar.gz: 60e74cd79bc9d1e946e09d1824779819aef3f949627f0c0c4921c2b4f39d4a9ebc0f757a23b3d047513d307e871b31f2270dc1295cbd71788c5922aebdc97899
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-aiplatform_v1
2
2
 
3
+ ### v0.54.0 (2025-06-01)
4
+
5
+ * Regenerated from discovery document revision 20250527
6
+ * Regenerated using generator version 0.18.0
7
+
3
8
  ### v0.53.0 (2025-05-21)
4
9
 
5
10
  * Regenerated from discovery document revision 20250519
@@ -3391,8 +3391,9 @@ module Google
3391
3391
  end
3392
3392
  end
3393
3393
 
3394
- # Result of executing the [ExecutableCode]. Always follows a `part` containing
3395
- # the [ExecutableCode].
3394
+ # Result of executing the [ExecutableCode]. Only generated when using the [
3395
+ # CodeExecution] tool, and always follows a `part` containing the [
3396
+ # ExecutableCode].
3396
3397
  class GoogleCloudAiplatformV1CodeExecutionResult
3397
3398
  include Google::Apis::Core::Hashable
3398
3399
 
@@ -3512,6 +3513,34 @@ module Google
3512
3513
  end
3513
3514
  end
3514
3515
 
3516
+ # Colab image of the runtime.
3517
+ class GoogleCloudAiplatformV1ColabImage
3518
+ include Google::Apis::Core::Hashable
3519
+
3520
+ # Output only. A human-readable description of the specified colab image release,
3521
+ # populated by the system. Example: "Python 3.10", "Latest - current Python 3.
3522
+ # 11"
3523
+ # Corresponds to the JSON property `description`
3524
+ # @return [String]
3525
+ attr_accessor :description
3526
+
3527
+ # Optional. The release name of the NotebookRuntime Colab image, e.g. "py310".
3528
+ # If not specified, detault to the latest release.
3529
+ # Corresponds to the JSON property `releaseName`
3530
+ # @return [String]
3531
+ attr_accessor :release_name
3532
+
3533
+ def initialize(**args)
3534
+ update!(**args)
3535
+ end
3536
+
3537
+ # Update properties of this object
3538
+ def update!(**args)
3539
+ @description = args[:description] if args.key?(:description)
3540
+ @release_name = args[:release_name] if args.key?(:release_name)
3541
+ end
3542
+ end
3543
+
3515
3544
  # Input for Comet metric.
3516
3545
  class GoogleCloudAiplatformV1CometInput
3517
3546
  include Google::Apis::Core::Hashable
@@ -8157,8 +8186,9 @@ module Google
8157
8186
  end
8158
8187
 
8159
8188
  # Code generated by the model that is meant to be executed, and the result
8160
- # returned to the model. Generated when using the [FunctionDeclaration] tool and
8161
- # [FunctionCallingConfig] mode is set to [Mode.CODE].
8189
+ # returned to the model. Generated when using the [CodeExecution] tool, in which
8190
+ # the code will be automatically executed, and a corresponding [
8191
+ # CodeExecutionResult] will also be generated.
8162
8192
  class GoogleCloudAiplatformV1ExecutableCode
8163
8193
  include Google::Apis::Core::Hashable
8164
8194
 
@@ -12480,6 +12510,13 @@ module Google
12480
12510
  # @return [Fixnum]
12481
12511
  attr_accessor :candidate_count
12482
12512
 
12513
+ # Optional. If enabled, the model will detect emotions and adapt its responses
12514
+ # accordingly.
12515
+ # Corresponds to the JSON property `enableAffectiveDialog`
12516
+ # @return [Boolean]
12517
+ attr_accessor :enable_affective_dialog
12518
+ alias_method :enable_affective_dialog?, :enable_affective_dialog
12519
+
12483
12520
  # Optional. Frequency penalties.
12484
12521
  # Corresponds to the JSON property `frequencyPenalty`
12485
12522
  # @return [Float]
@@ -12580,6 +12617,7 @@ module Google
12580
12617
  def update!(**args)
12581
12618
  @audio_timestamp = args[:audio_timestamp] if args.key?(:audio_timestamp)
12582
12619
  @candidate_count = args[:candidate_count] if args.key?(:candidate_count)
12620
+ @enable_affective_dialog = args[:enable_affective_dialog] if args.key?(:enable_affective_dialog)
12583
12621
  @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
12584
12622
  @logprobs = args[:logprobs] if args.key?(:logprobs)
12585
12623
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
@@ -20494,6 +20532,11 @@ module Google
20494
20532
  class GoogleCloudAiplatformV1NotebookSoftwareConfig
20495
20533
  include Google::Apis::Core::Hashable
20496
20534
 
20535
+ # Colab image of the runtime.
20536
+ # Corresponds to the JSON property `colabImage`
20537
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ColabImage]
20538
+ attr_accessor :colab_image
20539
+
20497
20540
  # Optional. Environment variables to be passed to the container. Maximum limit
20498
20541
  # is 100.
20499
20542
  # Corresponds to the JSON property `env`
@@ -20511,6 +20554,7 @@ module Google
20511
20554
 
20512
20555
  # Update properties of this object
20513
20556
  def update!(**args)
20557
+ @colab_image = args[:colab_image] if args.key?(:colab_image)
20514
20558
  @env = args[:env] if args.key?(:env)
20515
20559
  @post_startup_script_config = args[:post_startup_script_config] if args.key?(:post_startup_script_config)
20516
20560
  end
@@ -20540,6 +20584,18 @@ module Google
20540
20584
  class GoogleCloudAiplatformV1PscAutomationConfig
20541
20585
  include Google::Apis::Core::Hashable
20542
20586
 
20587
+ # Output only. Forwarding rule created by the PSC service automation. Note for
20588
+ # Vector search, use IndexPrivateEndpoint instead.
20589
+ # Corresponds to the JSON property `forwardingRule`
20590
+ # @return [String]
20591
+ attr_accessor :forwarding_rule
20592
+
20593
+ # Output only. IP address rule created by the PSC service automation. Note for
20594
+ # Vector search, use IndexPrivateEndpoint instead.
20595
+ # Corresponds to the JSON property `ipAddress`
20596
+ # @return [String]
20597
+ attr_accessor :ip_address
20598
+
20543
20599
  # Required. The full name of the Google Compute Engine [network](https://cloud.
20544
20600
  # google.com/compute/docs/networks-and-firewalls#networks). [Format](https://
20545
20601
  # cloud.google.com/compute/docs/reference/rest/v1/networks/insert): `projects/`
@@ -20560,6 +20616,8 @@ module Google
20560
20616
 
20561
20617
  # Update properties of this object
20562
20618
  def update!(**args)
20619
+ @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
20620
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
20563
20621
  @network = args[:network] if args.key?(:network)
20564
20622
  @project_id = args[:project_id] if args.key?(:project_id)
20565
20623
  end
@@ -20952,15 +21010,17 @@ module Google
20952
21010
  class GoogleCloudAiplatformV1Part
20953
21011
  include Google::Apis::Core::Hashable
20954
21012
 
20955
- # Result of executing the [ExecutableCode]. Always follows a `part` containing
20956
- # the [ExecutableCode].
21013
+ # Result of executing the [ExecutableCode]. Only generated when using the [
21014
+ # CodeExecution] tool, and always follows a `part` containing the [
21015
+ # ExecutableCode].
20957
21016
  # Corresponds to the JSON property `codeExecutionResult`
20958
21017
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CodeExecutionResult]
20959
21018
  attr_accessor :code_execution_result
20960
21019
 
20961
21020
  # Code generated by the model that is meant to be executed, and the result
20962
- # returned to the model. Generated when using the [FunctionDeclaration] tool and
20963
- # [FunctionCallingConfig] mode is set to [Mode.CODE].
21021
+ # returned to the model. Generated when using the [CodeExecution] tool, in which
21022
+ # the code will be automatically executed, and a corresponding [
21023
+ # CodeExecutionResult] will also be generated.
20964
21024
  # Corresponds to the JSON property `executableCode`
20965
21025
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecutableCode]
20966
21026
  attr_accessor :executable_code
@@ -36145,14 +36205,16 @@ module Google
36145
36205
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedHyperParameters]
36146
36206
  attr_accessor :hyper_parameters
36147
36207
 
36148
- # Required. Cloud Storage path to file containing training dataset for tuning.
36149
- # The dataset must be formatted as a JSONL file.
36208
+ # Required. Training dataset used for tuning. The dataset can be specified as
36209
+ # either a Cloud Storage path to a JSONL file or as the resource name of a
36210
+ # Vertex Multimodal Dataset.
36150
36211
  # Corresponds to the JSON property `trainingDatasetUri`
36151
36212
  # @return [String]
36152
36213
  attr_accessor :training_dataset_uri
36153
36214
 
36154
- # Optional. Cloud Storage path to file containing validation dataset for tuning.
36155
- # The dataset must be formatted as a JSONL file.
36215
+ # Optional. Validation dataset used for tuning. The dataset can be specified as
36216
+ # either a Cloud Storage path to a JSONL file or as the resource name of a
36217
+ # Vertex Multimodal Dataset.
36156
36218
  # Corresponds to the JSON property `validationDatasetUri`
36157
36219
  # @return [String]
36158
36220
  attr_accessor :validation_dataset_uri
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AiplatformV1
18
18
  # Version of the google-apis-aiplatform_v1 gem
19
- GEM_VERSION = "0.53.0"
19
+ GEM_VERSION = "0.54.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250519"
25
+ REVISION = "20250527"
26
26
  end
27
27
  end
28
28
  end
@@ -670,6 +670,12 @@ module Google
670
670
  include Google::Apis::Core::JsonObjectSupport
671
671
  end
672
672
 
673
+ class GoogleCloudAiplatformV1ColabImage
674
+ class Representation < Google::Apis::Core::JsonRepresentation; end
675
+
676
+ include Google::Apis::Core::JsonObjectSupport
677
+ end
678
+
673
679
  class GoogleCloudAiplatformV1CometInput
674
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
675
681
 
@@ -7900,6 +7906,14 @@ module Google
7900
7906
  end
7901
7907
  end
7902
7908
 
7909
+ class GoogleCloudAiplatformV1ColabImage
7910
+ # @private
7911
+ class Representation < Google::Apis::Core::JsonRepresentation
7912
+ property :description, as: 'description'
7913
+ property :release_name, as: 'releaseName'
7914
+ end
7915
+ end
7916
+
7903
7917
  class GoogleCloudAiplatformV1CometInput
7904
7918
  # @private
7905
7919
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10396,6 +10410,7 @@ module Google
10396
10410
  class Representation < Google::Apis::Core::JsonRepresentation
10397
10411
  property :audio_timestamp, as: 'audioTimestamp'
10398
10412
  property :candidate_count, as: 'candidateCount'
10413
+ property :enable_affective_dialog, as: 'enableAffectiveDialog'
10399
10414
  property :frequency_penalty, as: 'frequencyPenalty'
10400
10415
  property :logprobs, as: 'logprobs'
10401
10416
  property :max_output_tokens, as: 'maxOutputTokens'
@@ -12639,6 +12654,8 @@ module Google
12639
12654
  class GoogleCloudAiplatformV1NotebookSoftwareConfig
12640
12655
  # @private
12641
12656
  class Representation < Google::Apis::Core::JsonRepresentation
12657
+ property :colab_image, as: 'colabImage', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ColabImage, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ColabImage::Representation
12658
+
12642
12659
  collection :env, as: 'env', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnvVar, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnvVar::Representation
12643
12660
 
12644
12661
  property :post_startup_script_config, as: 'postStartupScriptConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PostStartupScriptConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PostStartupScriptConfig::Representation
@@ -12657,6 +12674,8 @@ module Google
12657
12674
  class GoogleCloudAiplatformV1PscAutomationConfig
12658
12675
  # @private
12659
12676
  class Representation < Google::Apis::Core::JsonRepresentation
12677
+ property :forwarding_rule, as: 'forwardingRule'
12678
+ property :ip_address, as: 'ipAddress'
12660
12679
  property :network, as: 'network'
12661
12680
  property :project_id, as: 'projectId'
12662
12681
  end
@@ -649,6 +649,41 @@ module Google
649
649
  execute_or_queue_command(command, &block)
650
650
  end
651
651
 
652
+ # Fetch an asynchronous online prediction operation.
653
+ # @param [String] endpoint
654
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
655
+ # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/`
656
+ # project`/locations/`location`/publishers/`publisher`/models/`model``
657
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FetchPredictOperationRequest] google_cloud_aiplatform_v1_fetch_predict_operation_request_object
658
+ # @param [String] fields
659
+ # Selector specifying which fields to include in a partial response.
660
+ # @param [String] quota_user
661
+ # Available to use for quota purposes for server-side applications. Can be any
662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
663
+ # @param [Google::Apis::RequestOptions] options
664
+ # Request-specific options
665
+ #
666
+ # @yield [result, err] Result & error if block supplied
667
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
668
+ # @yieldparam err [StandardError] error object if request failed
669
+ #
670
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
671
+ #
672
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
673
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
674
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
675
+ def fetch_endpoint_predict_operation(endpoint, google_cloud_aiplatform_v1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
676
+ command = make_simple_command(:post, 'v1/{+endpoint}:fetchPredictOperation', options)
677
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FetchPredictOperationRequest::Representation
678
+ command.request_object = google_cloud_aiplatform_v1_fetch_predict_operation_request_object
679
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
680
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
681
+ command.params['endpoint'] = endpoint unless endpoint.nil?
682
+ command.query['fields'] = fields unless fields.nil?
683
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
684
+ execute_or_queue_command(command, &block)
685
+ end
686
+
652
687
  # Generate content with multimodal inputs.
653
688
  # @param [String] model
654
689
  # Required. The fully qualified name of the publisher model or tuned model
@@ -719,6 +754,41 @@ module Google
719
754
  execute_or_queue_command(command, &block)
720
755
  end
721
756
 
757
+ #
758
+ # @param [String] endpoint
759
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
760
+ # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/`
761
+ # project`/locations/`location`/publishers/`publisher`/models/`model``
762
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictLongRunningRequest] google_cloud_aiplatform_v1_predict_long_running_request_object
763
+ # @param [String] fields
764
+ # Selector specifying which fields to include in a partial response.
765
+ # @param [String] quota_user
766
+ # Available to use for quota purposes for server-side applications. Can be any
767
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
768
+ # @param [Google::Apis::RequestOptions] options
769
+ # Request-specific options
770
+ #
771
+ # @yield [result, err] Result & error if block supplied
772
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
773
+ # @yieldparam err [StandardError] error object if request failed
774
+ #
775
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
776
+ #
777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
780
+ def predict_endpoint_long_running(endpoint, google_cloud_aiplatform_v1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
781
+ command = make_simple_command(:post, 'v1/{+endpoint}:predictLongRunning', options)
782
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictLongRunningRequest::Representation
783
+ command.request_object = google_cloud_aiplatform_v1_predict_long_running_request_object
784
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
785
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
786
+ command.params['endpoint'] = endpoint unless endpoint.nil?
787
+ command.query['fields'] = fields unless fields.nil?
788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
789
+ execute_or_queue_command(command, &block)
790
+ end
791
+
722
792
  # Generate content with multimodal inputs with streaming support.
723
793
  # @param [String] model
724
794
  # Required. The fully qualified name of the publisher model or tuned model
@@ -23181,6 +23251,41 @@ module Google
23181
23251
  execute_or_queue_command(command, &block)
23182
23252
  end
23183
23253
 
23254
+ # Fetch an asynchronous online prediction operation.
23255
+ # @param [String] endpoint
23256
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
23257
+ # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/`
23258
+ # project`/locations/`location`/publishers/`publisher`/models/`model``
23259
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FetchPredictOperationRequest] google_cloud_aiplatform_v1_fetch_predict_operation_request_object
23260
+ # @param [String] fields
23261
+ # Selector specifying which fields to include in a partial response.
23262
+ # @param [String] quota_user
23263
+ # Available to use for quota purposes for server-side applications. Can be any
23264
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23265
+ # @param [Google::Apis::RequestOptions] options
23266
+ # Request-specific options
23267
+ #
23268
+ # @yield [result, err] Result & error if block supplied
23269
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
23270
+ # @yieldparam err [StandardError] error object if request failed
23271
+ #
23272
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
23273
+ #
23274
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23275
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23276
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23277
+ def fetch_publisher_model_predict_operation(endpoint, google_cloud_aiplatform_v1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
23278
+ command = make_simple_command(:post, 'v1/{+endpoint}:fetchPredictOperation', options)
23279
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FetchPredictOperationRequest::Representation
23280
+ command.request_object = google_cloud_aiplatform_v1_fetch_predict_operation_request_object
23281
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
23282
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
23283
+ command.params['endpoint'] = endpoint unless endpoint.nil?
23284
+ command.query['fields'] = fields unless fields.nil?
23285
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23286
+ execute_or_queue_command(command, &block)
23287
+ end
23288
+
23184
23289
  # Generate content with multimodal inputs.
23185
23290
  # @param [String] model
23186
23291
  # Required. The fully qualified name of the publisher model or tuned model
@@ -23296,6 +23401,41 @@ module Google
23296
23401
  execute_or_queue_command(command, &block)
23297
23402
  end
23298
23403
 
23404
+ #
23405
+ # @param [String] endpoint
23406
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
23407
+ # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/`
23408
+ # project`/locations/`location`/publishers/`publisher`/models/`model``
23409
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictLongRunningRequest] google_cloud_aiplatform_v1_predict_long_running_request_object
23410
+ # @param [String] fields
23411
+ # Selector specifying which fields to include in a partial response.
23412
+ # @param [String] quota_user
23413
+ # Available to use for quota purposes for server-side applications. Can be any
23414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23415
+ # @param [Google::Apis::RequestOptions] options
23416
+ # Request-specific options
23417
+ #
23418
+ # @yield [result, err] Result & error if block supplied
23419
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
23420
+ # @yieldparam err [StandardError] error object if request failed
23421
+ #
23422
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
23423
+ #
23424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23427
+ def predict_publisher_model_long_running(endpoint, google_cloud_aiplatform_v1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
23428
+ command = make_simple_command(:post, 'v1/{+endpoint}:predictLongRunning', options)
23429
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictLongRunningRequest::Representation
23430
+ command.request_object = google_cloud_aiplatform_v1_predict_long_running_request_object
23431
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
23432
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
23433
+ command.params['endpoint'] = endpoint unless endpoint.nil?
23434
+ command.query['fields'] = fields unless fields.nil?
23435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23436
+ execute_or_queue_command(command, &block)
23437
+ end
23438
+
23299
23439
  # Generate content with multimodal inputs with streaming support.
23300
23440
  # @param [String] model
23301
23441
  # Required. The fully qualified name of the publisher model or tuned model
@@ -23331,6 +23471,253 @@ module Google
23331
23471
  command.query['quotaUser'] = quota_user unless quota_user.nil?
23332
23472
  execute_or_queue_command(command, &block)
23333
23473
  end
23474
+
23475
+ # Creates a reasoning engine.
23476
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] google_cloud_aiplatform_v1_reasoning_engine_object
23477
+ # @param [String] parent
23478
+ # Required. The resource name of the Location to create the ReasoningEngine in.
23479
+ # Format: `projects/`project`/locations/`location``
23480
+ # @param [String] fields
23481
+ # Selector specifying which fields to include in a partial response.
23482
+ # @param [String] quota_user
23483
+ # Available to use for quota purposes for server-side applications. Can be any
23484
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23485
+ # @param [Google::Apis::RequestOptions] options
23486
+ # Request-specific options
23487
+ #
23488
+ # @yield [result, err] Result & error if block supplied
23489
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
23490
+ # @yieldparam err [StandardError] error object if request failed
23491
+ #
23492
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
23493
+ #
23494
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23495
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23496
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23497
+ def create_reasoning_engine(google_cloud_aiplatform_v1_reasoning_engine_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
23498
+ command = make_simple_command(:post, 'v1/reasoningEngines', options)
23499
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
23500
+ command.request_object = google_cloud_aiplatform_v1_reasoning_engine_object
23501
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
23502
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
23503
+ command.query['parent'] = parent unless parent.nil?
23504
+ command.query['fields'] = fields unless fields.nil?
23505
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23506
+ execute_or_queue_command(command, &block)
23507
+ end
23508
+
23509
+ # Deletes a reasoning engine.
23510
+ # @param [String] name
23511
+ # Required. The name of the ReasoningEngine resource to be deleted. Format: `
23512
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
23513
+ # @param [Boolean] force
23514
+ # Optional. If set to true, child resources of this reasoning engine will also
23515
+ # be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error
23516
+ # when the reasoning engine has undeleted child resources.
23517
+ # @param [String] fields
23518
+ # Selector specifying which fields to include in a partial response.
23519
+ # @param [String] quota_user
23520
+ # Available to use for quota purposes for server-side applications. Can be any
23521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23522
+ # @param [Google::Apis::RequestOptions] options
23523
+ # Request-specific options
23524
+ #
23525
+ # @yield [result, err] Result & error if block supplied
23526
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
23527
+ # @yieldparam err [StandardError] error object if request failed
23528
+ #
23529
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
23530
+ #
23531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23534
+ def delete_reasoning_engine(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
23535
+ command = make_simple_command(:delete, 'v1/{+name}', options)
23536
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
23537
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
23538
+ command.params['name'] = name unless name.nil?
23539
+ command.query['force'] = force unless force.nil?
23540
+ command.query['fields'] = fields unless fields.nil?
23541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23542
+ execute_or_queue_command(command, &block)
23543
+ end
23544
+
23545
+ # Gets a reasoning engine.
23546
+ # @param [String] name
23547
+ # Required. The name of the ReasoningEngine resource. Format: `projects/`project`
23548
+ # /locations/`location`/reasoningEngines/`reasoning_engine``
23549
+ # @param [String] fields
23550
+ # Selector specifying which fields to include in a partial response.
23551
+ # @param [String] quota_user
23552
+ # Available to use for quota purposes for server-side applications. Can be any
23553
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23554
+ # @param [Google::Apis::RequestOptions] options
23555
+ # Request-specific options
23556
+ #
23557
+ # @yield [result, err] Result & error if block supplied
23558
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] parsed result object
23559
+ # @yieldparam err [StandardError] error object if request failed
23560
+ #
23561
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine]
23562
+ #
23563
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23564
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23565
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23566
+ def get_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block)
23567
+ command = make_simple_command(:get, 'v1/{+name}', options)
23568
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
23569
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine
23570
+ command.params['name'] = name unless name.nil?
23571
+ command.query['fields'] = fields unless fields.nil?
23572
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23573
+ execute_or_queue_command(command, &block)
23574
+ end
23575
+
23576
+ # Lists reasoning engines in a location.
23577
+ # @param [String] filter
23578
+ # Optional. The standard list filter. More detail in [AIP-160](https://google.
23579
+ # aip.dev/160).
23580
+ # @param [Fixnum] page_size
23581
+ # Optional. The standard list page size.
23582
+ # @param [String] page_token
23583
+ # Optional. The standard list page token.
23584
+ # @param [String] parent
23585
+ # Required. The resource name of the Location to list the ReasoningEngines from.
23586
+ # Format: `projects/`project`/locations/`location``
23587
+ # @param [String] fields
23588
+ # Selector specifying which fields to include in a partial response.
23589
+ # @param [String] quota_user
23590
+ # Available to use for quota purposes for server-side applications. Can be any
23591
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23592
+ # @param [Google::Apis::RequestOptions] options
23593
+ # Request-specific options
23594
+ #
23595
+ # @yield [result, err] Result & error if block supplied
23596
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse] parsed result object
23597
+ # @yieldparam err [StandardError] error object if request failed
23598
+ #
23599
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse]
23600
+ #
23601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23604
+ def list_reasoning_engines(filter: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
23605
+ command = make_simple_command(:get, 'v1/reasoningEngines', options)
23606
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse::Representation
23607
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse
23608
+ command.query['filter'] = filter unless filter.nil?
23609
+ command.query['pageSize'] = page_size unless page_size.nil?
23610
+ command.query['pageToken'] = page_token unless page_token.nil?
23611
+ command.query['parent'] = parent unless parent.nil?
23612
+ command.query['fields'] = fields unless fields.nil?
23613
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23614
+ execute_or_queue_command(command, &block)
23615
+ end
23616
+
23617
+ # Updates a reasoning engine.
23618
+ # @param [String] name
23619
+ # Identifier. The resource name of the ReasoningEngine. Format: `projects/`
23620
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine``
23621
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] google_cloud_aiplatform_v1_reasoning_engine_object
23622
+ # @param [String] update_mask
23623
+ # Optional. Mask specifying which fields to update.
23624
+ # @param [String] fields
23625
+ # Selector specifying which fields to include in a partial response.
23626
+ # @param [String] quota_user
23627
+ # Available to use for quota purposes for server-side applications. Can be any
23628
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23629
+ # @param [Google::Apis::RequestOptions] options
23630
+ # Request-specific options
23631
+ #
23632
+ # @yield [result, err] Result & error if block supplied
23633
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
23634
+ # @yieldparam err [StandardError] error object if request failed
23635
+ #
23636
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
23637
+ #
23638
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23639
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23640
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23641
+ def patch_reasoning_engine(name, google_cloud_aiplatform_v1_reasoning_engine_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
23642
+ command = make_simple_command(:patch, 'v1/{+name}', options)
23643
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
23644
+ command.request_object = google_cloud_aiplatform_v1_reasoning_engine_object
23645
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
23646
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
23647
+ command.params['name'] = name unless name.nil?
23648
+ command.query['updateMask'] = update_mask unless update_mask.nil?
23649
+ command.query['fields'] = fields unless fields.nil?
23650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23651
+ execute_or_queue_command(command, &block)
23652
+ end
23653
+
23654
+ # Queries using a reasoning engine.
23655
+ # @param [String] name
23656
+ # Required. The name of the ReasoningEngine resource to use. Format: `projects/`
23657
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine``
23658
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest] google_cloud_aiplatform_v1_query_reasoning_engine_request_object
23659
+ # @param [String] fields
23660
+ # Selector specifying which fields to include in a partial response.
23661
+ # @param [String] quota_user
23662
+ # Available to use for quota purposes for server-side applications. Can be any
23663
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23664
+ # @param [Google::Apis::RequestOptions] options
23665
+ # Request-specific options
23666
+ #
23667
+ # @yield [result, err] Result & error if block supplied
23668
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse] parsed result object
23669
+ # @yieldparam err [StandardError] error object if request failed
23670
+ #
23671
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse]
23672
+ #
23673
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23674
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23675
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23676
+ def query_reasoning_engine(name, google_cloud_aiplatform_v1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
23677
+ command = make_simple_command(:post, 'v1/{+name}:query', options)
23678
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest::Representation
23679
+ command.request_object = google_cloud_aiplatform_v1_query_reasoning_engine_request_object
23680
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse::Representation
23681
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse
23682
+ command.params['name'] = name unless name.nil?
23683
+ command.query['fields'] = fields unless fields.nil?
23684
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23685
+ execute_or_queue_command(command, &block)
23686
+ end
23687
+
23688
+ # Streams queries using a reasoning engine.
23689
+ # @param [String] name
23690
+ # Required. The name of the ReasoningEngine resource to use. Format: `projects/`
23691
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine``
23692
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object
23693
+ # @param [String] fields
23694
+ # Selector specifying which fields to include in a partial response.
23695
+ # @param [String] quota_user
23696
+ # Available to use for quota purposes for server-side applications. Can be any
23697
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23698
+ # @param [Google::Apis::RequestOptions] options
23699
+ # Request-specific options
23700
+ #
23701
+ # @yield [result, err] Result & error if block supplied
23702
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
23703
+ # @yieldparam err [StandardError] error object if request failed
23704
+ #
23705
+ # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
23706
+ #
23707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23710
+ def stream_reasoning_engine_query(name, google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
23711
+ command = make_simple_command(:post, 'v1/{+name}:streamQuery', options)
23712
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest::Representation
23713
+ command.request_object = google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object
23714
+ command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
23715
+ command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
23716
+ command.params['name'] = name unless name.nil?
23717
+ command.query['fields'] = fields unless fields.nil?
23718
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23719
+ execute_or_queue_command(command, &block)
23720
+ end
23334
23721
 
23335
23722
  protected
23336
23723
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.53.0
4
+ version: 0.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.53.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.54.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
62
62
  rdoc_options: []
63
63
  require_paths: