google-apis-aiplatform_v1 0.52.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.
@@ -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.52.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.52.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:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Vertex AI API V1
79
79
  test_files: []