google-apis-aiplatform_v1beta1 0.34.0 → 0.36.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.
@@ -206,7 +206,8 @@ module Google
206
206
 
207
207
  # Updates a Dataset.
208
208
  # @param [String] name
209
- # Output only. Identifier. The resource name of the Dataset.
209
+ # Output only. Identifier. The resource name of the Dataset. Format: `projects/`
210
+ # project`/locations/`location`/datasets/`dataset``
210
211
  # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object
211
212
  # @param [String] update_mask
212
213
  # Required. The update mask applies to the resource. For the `FieldMask`
@@ -779,6 +780,40 @@ module Google
779
780
  execute_or_queue_command(command, &block)
780
781
  end
781
782
 
783
+ # Deploys publisher models.
784
+ # @param [String] destination
785
+ # Required. The resource name of the Location to deploy the model in. Format: `
786
+ # projects/`project`/locations/`location``
787
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployPublisherModelRequest] google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object
788
+ # @param [String] fields
789
+ # Selector specifying which fields to include in a partial response.
790
+ # @param [String] quota_user
791
+ # Available to use for quota purposes for server-side applications. Can be any
792
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
793
+ # @param [Google::Apis::RequestOptions] options
794
+ # Request-specific options
795
+ #
796
+ # @yield [result, err] Result & error if block supplied
797
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
798
+ # @yieldparam err [StandardError] error object if request failed
799
+ #
800
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
801
+ #
802
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
803
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
804
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
805
+ def deploy_project_location(destination, google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
806
+ command = make_simple_command(:post, 'v1beta1/{+destination}:deploy', options)
807
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployPublisherModelRequest::Representation
808
+ command.request_object = google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object
809
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
810
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
811
+ command.params['destination'] = destination unless destination.nil?
812
+ command.query['fields'] = fields unless fields.nil?
813
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
814
+ execute_or_queue_command(command, &block)
815
+ end
816
+
782
817
  # Evaluates instances based on a given metric.
783
818
  # @param [String] location
784
819
  # Required. The resource name of the Location to evaluate the instances. Format:
@@ -2618,7 +2653,8 @@ module Google
2618
2653
 
2619
2654
  # Updates a Dataset.
2620
2655
  # @param [String] name
2621
- # Output only. Identifier. The resource name of the Dataset.
2656
+ # Output only. Identifier. The resource name of the Dataset. Format: `projects/`
2657
+ # project`/locations/`location`/datasets/`dataset``
2622
2658
  # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object
2623
2659
  # @param [String] update_mask
2624
2660
  # Required. The update mask applies to the resource. For the `FieldMask`
@@ -6855,6 +6891,51 @@ module Google
6855
6891
  execute_or_queue_command(command, &block)
6856
6892
  end
6857
6893
 
6894
+ # Gets the access control policy for a resource. Returns an empty policy if the
6895
+ # resource exists and does not have a policy set.
6896
+ # @param [String] resource
6897
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
6898
+ # names](https://cloud.google.com/apis/design/resource_names) for the
6899
+ # appropriate value for this field.
6900
+ # @param [Fixnum] options_requested_policy_version
6901
+ # Optional. The maximum policy version that will be used to format the policy.
6902
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
6903
+ # rejected. Requests for policies with any conditional role bindings must
6904
+ # specify version 3. Policies with no conditional role bindings may specify any
6905
+ # valid value or leave the field unset. The policy in the response might use the
6906
+ # policy version that you specified, or it might use a lower policy version. For
6907
+ # example, if you specify version 3, but the policy has no conditional role
6908
+ # bindings, the response uses version 1. To learn which resources support
6909
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
6910
+ # google.com/iam/help/conditions/resource-policies).
6911
+ # @param [String] fields
6912
+ # Selector specifying which fields to include in a partial response.
6913
+ # @param [String] quota_user
6914
+ # Available to use for quota purposes for server-side applications. Can be any
6915
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6916
+ # @param [Google::Apis::RequestOptions] options
6917
+ # Request-specific options
6918
+ #
6919
+ # @yield [result, err] Result & error if block supplied
6920
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object
6921
+ # @yieldparam err [StandardError] error object if request failed
6922
+ #
6923
+ # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy]
6924
+ #
6925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6928
+ def get_project_location_feature_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
6929
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
6930
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation
6931
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy
6932
+ command.params['resource'] = resource unless resource.nil?
6933
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
6934
+ command.query['fields'] = fields unless fields.nil?
6935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6936
+ execute_or_queue_command(command, &block)
6937
+ end
6938
+
6858
6939
  # Lists FeatureGroups in a given project and location.
6859
6940
  # @param [String] parent
6860
6941
  # Required. The resource name of the Location to list FeatureGroups. Format: `
@@ -6955,6 +7036,84 @@ module Google
6955
7036
  execute_or_queue_command(command, &block)
6956
7037
  end
6957
7038
 
7039
+ # Sets the access control policy on the specified resource. Replaces any
7040
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
7041
+ # PERMISSION_DENIED` errors.
7042
+ # @param [String] resource
7043
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
7044
+ # names](https://cloud.google.com/apis/design/resource_names) for the
7045
+ # appropriate value for this field.
7046
+ # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
7047
+ # @param [String] fields
7048
+ # Selector specifying which fields to include in a partial response.
7049
+ # @param [String] quota_user
7050
+ # Available to use for quota purposes for server-side applications. Can be any
7051
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7052
+ # @param [Google::Apis::RequestOptions] options
7053
+ # Request-specific options
7054
+ #
7055
+ # @yield [result, err] Result & error if block supplied
7056
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object
7057
+ # @yieldparam err [StandardError] error object if request failed
7058
+ #
7059
+ # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy]
7060
+ #
7061
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7062
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7063
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7064
+ def set_project_location_feature_group_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
7065
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
7066
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation
7067
+ command.request_object = google_iam_v1_set_iam_policy_request_object
7068
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation
7069
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy
7070
+ command.params['resource'] = resource unless resource.nil?
7071
+ command.query['fields'] = fields unless fields.nil?
7072
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7073
+ execute_or_queue_command(command, &block)
7074
+ end
7075
+
7076
+ # Returns permissions that a caller has on the specified resource. If the
7077
+ # resource does not exist, this will return an empty set of permissions, not a `
7078
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
7079
+ # permission-aware UIs and command-line tools, not for authorization checking.
7080
+ # This operation may "fail open" without warning.
7081
+ # @param [String] resource
7082
+ # REQUIRED: The resource for which the policy detail is being requested. See [
7083
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
7084
+ # appropriate value for this field.
7085
+ # @param [Array<String>, String] permissions
7086
+ # The set of permissions to check for the `resource`. Permissions with wildcards
7087
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
7088
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
7089
+ # @param [String] fields
7090
+ # Selector specifying which fields to include in a partial response.
7091
+ # @param [String] quota_user
7092
+ # Available to use for quota purposes for server-side applications. Can be any
7093
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7094
+ # @param [Google::Apis::RequestOptions] options
7095
+ # Request-specific options
7096
+ #
7097
+ # @yield [result, err] Result & error if block supplied
7098
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object
7099
+ # @yieldparam err [StandardError] error object if request failed
7100
+ #
7101
+ # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse]
7102
+ #
7103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7106
+ def test_project_location_feature_group_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block)
7107
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
7108
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation
7109
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse
7110
+ command.params['resource'] = resource unless resource.nil?
7111
+ command.query['permissions'] = permissions unless permissions.nil?
7112
+ command.query['fields'] = fields unless fields.nil?
7113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7114
+ execute_or_queue_command(command, &block)
7115
+ end
7116
+
6958
7117
  # Creates a new FeatureMonitor in a given project, location and FeatureGroup.
6959
7118
  # @param [String] parent
6960
7119
  # Required. The resource name of FeatureGroup to create FeatureMonitor. Format: `
@@ -17690,9 +17849,11 @@ module Google
17690
17849
  # labels` supports general map functions that is: * `labels.key=value` - key:
17691
17850
  # value equality * `labels.key:* or labels:key - key existence * A key including
17692
17851
  # a space must be quoted. `labels."a key"`. * `notebookRuntimeType` supports =
17693
- # and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `
17852
+ # and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType`
17853
+ # supports = and !=. * `acceleratorType` supports = and !=. Some examples: * `
17694
17854
  # notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName="
17695
17855
  # myDisplayName"` * `labels.myKey="myValue"` * `notebookRuntimeType=USER_DEFINED`
17856
+ # * `machineType=e2-standard-4` * `acceleratorType=NVIDIA_TESLA_T4`
17696
17857
  # @param [String] order_by
17697
17858
  # Optional. A comma-separated list of fields to order by, sorted in ascending
17698
17859
  # order. Use "desc" after a field name for descending. Supported fields: * `
@@ -18195,12 +18356,14 @@ module Google
18195
18356
  # UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED,
18196
18357
  # UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED,
18197
18358
  # UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=.
18198
- # notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `
18359
+ # notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` supports =
18360
+ # and !=. * `acceleratorType` supports = and !=. Some examples: * `
18199
18361
  # notebookRuntime="notebookRuntime123"` * `displayName="myDisplayName"` and `
18200
18362
  # displayName=~"myDisplayNameRegex"` * `notebookRuntimeTemplate="
18201
18363
  # notebookRuntimeTemplate321"` * `healthState=HEALTHY` * `runtimeState=RUNNING` *
18202
18364
  # `runtimeUser="test@google.com"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` *
18203
- # `notebookRuntimeType=USER_DEFINED`
18365
+ # `notebookRuntimeType=USER_DEFINED` * `machineType=e2-standard-4` * `
18366
+ # acceleratorType=NVIDIA_TESLA_T4`
18204
18367
  # @param [String] order_by
18205
18368
  # Optional. A comma-separated list of fields to order by, sorted in ascending
18206
18369
  # order. Use "desc" after a field name for descending. Supported fields: * `
@@ -20897,6 +21060,40 @@ module Google
20897
21060
  execute_or_queue_command(command, &block)
20898
21061
  end
20899
21062
 
21063
+ # Streams queries using a reasoning engine.
21064
+ # @param [String] name
21065
+ # Required. The name of the ReasoningEngine resource to use. Format: `projects/`
21066
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine``
21067
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object
21068
+ # @param [String] fields
21069
+ # Selector specifying which fields to include in a partial response.
21070
+ # @param [String] quota_user
21071
+ # Available to use for quota purposes for server-side applications. Can be any
21072
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
21073
+ # @param [Google::Apis::RequestOptions] options
21074
+ # Request-specific options
21075
+ #
21076
+ # @yield [result, err] Result & error if block supplied
21077
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object
21078
+ # @yieldparam err [StandardError] error object if request failed
21079
+ #
21080
+ # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
21081
+ #
21082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21085
+ 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)
21086
+ command = make_simple_command(:post, 'v1beta1/{+name}:streamQuery', options)
21087
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest::Representation
21088
+ command.request_object = google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object
21089
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
21090
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody
21091
+ command.params['name'] = name unless name.nil?
21092
+ command.query['fields'] = fields unless fields.nil?
21093
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21094
+ execute_or_queue_command(command, &block)
21095
+ end
21096
+
20900
21097
  # Starts asynchronous cancellation on a long-running operation. The server makes
20901
21098
  # a best effort to cancel the operation, but success is not guaranteed. If the
20902
21099
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -25512,6 +25709,8 @@ module Google
25512
25709
  # Optional. The IETF BCP-47 language code representing the language in which the
25513
25710
  # publisher models' text information should be written in. If not set, by
25514
25711
  # default English (en).
25712
+ # @param [Boolean] list_all_versions
25713
+ # Optional. List all publisher model versions if the flag is set to true.
25515
25714
  # @param [String] order_by
25516
25715
  # Optional. A comma-separated list of fields to order by, sorted in ascending
25517
25716
  # order. Use "desc" after a field name for descending.
@@ -25540,13 +25739,14 @@ module Google
25540
25739
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25541
25740
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25542
25741
  # @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)
25742
+ 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
25743
  command = make_simple_command(:get, 'v1beta1/{+parent}/models', options)
25545
25744
  command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse::Representation
25546
25745
  command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse
25547
25746
  command.params['parent'] = parent unless parent.nil?
25548
25747
  command.query['filter'] = filter unless filter.nil?
25549
25748
  command.query['languageCode'] = language_code unless language_code.nil?
25749
+ command.query['listAllVersions'] = list_all_versions unless list_all_versions.nil?
25550
25750
  command.query['orderBy'] = order_by unless order_by.nil?
25551
25751
  command.query['pageSize'] = page_size unless page_size.nil?
25552
25752
  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.36.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: 2025-01-05 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.36.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