google-apis-aiplatform_v1beta1 0.34.0 → 0.35.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.
@@ -779,6 +779,40 @@ module Google
779
779
  execute_or_queue_command(command, &block)
780
780
  end
781
781
 
782
+ # Deploys publisher models.
783
+ # @param [String] destination
784
+ # Required. The resource name of the Location to deploy the model in. Format: `
785
+ # projects/`project`/locations/`location``
786
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployPublisherModelRequest] google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object
787
+ # @param [String] fields
788
+ # Selector specifying which fields to include in a partial response.
789
+ # @param [String] quota_user
790
+ # Available to use for quota purposes for server-side applications. Can be any
791
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
792
+ # @param [Google::Apis::RequestOptions] options
793
+ # Request-specific options
794
+ #
795
+ # @yield [result, err] Result & error if block supplied
796
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
797
+ # @yieldparam err [StandardError] error object if request failed
798
+ #
799
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
800
+ #
801
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
802
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
803
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
804
+ def deploy_project_location(destination, google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
805
+ command = make_simple_command(:post, 'v1beta1/{+destination}:deploy', options)
806
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployPublisherModelRequest::Representation
807
+ command.request_object = google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object
808
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
809
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
810
+ command.params['destination'] = destination unless destination.nil?
811
+ command.query['fields'] = fields unless fields.nil?
812
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
813
+ execute_or_queue_command(command, &block)
814
+ end
815
+
782
816
  # Evaluates instances based on a given metric.
783
817
  # @param [String] location
784
818
  # Required. The resource name of the Location to evaluate the instances. Format:
@@ -17690,9 +17724,11 @@ module Google
17690
17724
  # labels` supports general map functions that is: * `labels.key=value` - key:
17691
17725
  # value equality * `labels.key:* or labels:key - key existence * A key including
17692
17726
  # a space must be quoted. `labels."a key"`. * `notebookRuntimeType` supports =
17693
- # and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `
17727
+ # and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType`
17728
+ # supports = and !=. * `acceleratorType` supports = and !=. Some examples: * `
17694
17729
  # notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName="
17695
17730
  # myDisplayName"` * `labels.myKey="myValue"` * `notebookRuntimeType=USER_DEFINED`
17731
+ # * `machineType=e2-standard-4` * `acceleratorType=NVIDIA_TESLA_T4`
17696
17732
  # @param [String] order_by
17697
17733
  # Optional. A comma-separated list of fields to order by, sorted in ascending
17698
17734
  # order. Use "desc" after a field name for descending. Supported fields: * `
@@ -18195,12 +18231,14 @@ module Google
18195
18231
  # UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED,
18196
18232
  # UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED,
18197
18233
  # UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=.
18198
- # notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `
18234
+ # notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` supports =
18235
+ # and !=. * `acceleratorType` supports = and !=. Some examples: * `
18199
18236
  # notebookRuntime="notebookRuntime123"` * `displayName="myDisplayName"` and `
18200
18237
  # displayName=~"myDisplayNameRegex"` * `notebookRuntimeTemplate="
18201
18238
  # notebookRuntimeTemplate321"` * `healthState=HEALTHY` * `runtimeState=RUNNING` *
18202
18239
  # `runtimeUser="test@google.com"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` *
18203
- # `notebookRuntimeType=USER_DEFINED`
18240
+ # `notebookRuntimeType=USER_DEFINED` * `machineType=e2-standard-4` * `
18241
+ # acceleratorType=NVIDIA_TESLA_T4`
18204
18242
  # @param [String] order_by
18205
18243
  # Optional. A comma-separated list of fields to order by, sorted in ascending
18206
18244
  # order. Use "desc" after a field name for descending. Supported fields: * `
@@ -20897,6 +20935,40 @@ module Google
20897
20935
  execute_or_queue_command(command, &block)
20898
20936
  end
20899
20937
 
20938
+ # Streams queries using a reasoning engine.
20939
+ # @param [String] name
20940
+ # Required. The name of the ReasoningEngine resource to use. Format: `projects/`
20941
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine``
20942
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object
20943
+ # @param [String] fields
20944
+ # Selector specifying which fields to include in a partial response.
20945
+ # @param [String] quota_user
20946
+ # Available to use for quota purposes for server-side applications. Can be any
20947
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20948
+ # @param [Google::Apis::RequestOptions] options
20949
+ # Request-specific options
20950
+ #
20951
+ # @yield [result, err] Result & error if block supplied
20952
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object
20953
+ # @yieldparam err [StandardError] error object if request failed
20954
+ #
20955
+ # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
20956
+ #
20957
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20958
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20959
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20960
+ def stream_project_location_reasoning_engine_query(name, google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
20961
+ command = make_simple_command(:post, 'v1beta1/{+name}:streamQuery', options)
20962
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest::Representation
20963
+ command.request_object = google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object
20964
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
20965
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody
20966
+ command.params['name'] = name unless name.nil?
20967
+ command.query['fields'] = fields unless fields.nil?
20968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20969
+ execute_or_queue_command(command, &block)
20970
+ end
20971
+
20900
20972
  # Starts asynchronous cancellation on a long-running operation. The server makes
20901
20973
  # a best effort to cancel the operation, but success is not guaranteed. If the
20902
20974
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -25512,6 +25584,8 @@ module Google
25512
25584
  # Optional. The IETF BCP-47 language code representing the language in which the
25513
25585
  # publisher models' text information should be written in. If not set, by
25514
25586
  # default English (en).
25587
+ # @param [Boolean] list_all_versions
25588
+ # Optional. List all publisher model versions if the flag is set to true.
25515
25589
  # @param [String] order_by
25516
25590
  # Optional. A comma-separated list of fields to order by, sorted in ascending
25517
25591
  # order. Use "desc" after a field name for descending.
@@ -25540,13 +25614,14 @@ module Google
25540
25614
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25541
25615
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25542
25616
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25543
- def list_publisher_models(parent, filter: nil, language_code: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
25617
+ def list_publisher_models(parent, filter: nil, language_code: nil, list_all_versions: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
25544
25618
  command = make_simple_command(:get, 'v1beta1/{+parent}/models', options)
25545
25619
  command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse::Representation
25546
25620
  command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse
25547
25621
  command.params['parent'] = parent unless parent.nil?
25548
25622
  command.query['filter'] = filter unless filter.nil?
25549
25623
  command.query['languageCode'] = language_code unless language_code.nil?
25624
+ command.query['listAllVersions'] = list_all_versions unless list_all_versions.nil?
25550
25625
  command.query['orderBy'] = order_by unless order_by.nil?
25551
25626
  command.query['pageSize'] = page_size unless page_size.nil?
25552
25627
  command.query['pageToken'] = page_token unless page_token.nil?
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.34.0
4
+ version: 0.35.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-12-04 00:00:00.000000000 Z
11
+ date: 2024-12-08 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.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.35.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.22
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Vertex AI API V1beta1