google-apis-aiplatform_v1 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3253,8 +3253,8 @@ module Google
3253
3253
  execute_or_queue_command(command, &block)
3254
3254
  end
3255
3255
 
3256
- # Perform an unary online prediction request for Vertex first-party products and
3257
- # frameworks.
3256
+ # Perform an unary online prediction request to a gRPC model server for Vertex
3257
+ # first-party products and frameworks.
3258
3258
  # @param [String] endpoint
3259
3259
  # Required. The name of the Endpoint requested to serve the prediction. Format: `
3260
3260
  # projects/`project`/locations/`location`/endpoints/`endpoint``
@@ -3288,7 +3288,8 @@ module Google
3288
3288
  execute_or_queue_command(command, &block)
3289
3289
  end
3290
3290
 
3291
- # Perform an online prediction request through gRPC.
3291
+ # Perform an unary online prediction request to a gRPC model server for custom
3292
+ # containers.
3292
3293
  # @param [String] endpoint
3293
3294
  # Required. The name of the Endpoint requested to serve the prediction. Format: `
3294
3295
  # projects/`project`/locations/`location`/endpoints/`endpoint``
@@ -3359,6 +3360,40 @@ module Google
3359
3360
  execute_or_queue_command(command, &block)
3360
3361
  end
3361
3362
 
3363
+ # Generate content with multimodal inputs.
3364
+ # @param [String] model
3365
+ # Required. The name of the publisher model requested to serve the prediction.
3366
+ # Format: `projects/`project`/locations/`location`/publishers/*/models/*`
3367
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
3368
+ # @param [String] fields
3369
+ # Selector specifying which fields to include in a partial response.
3370
+ # @param [String] quota_user
3371
+ # Available to use for quota purposes for server-side applications. Can be any
3372
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3373
+ # @param [Google::Apis::RequestOptions] options
3374
+ # Request-specific options
3375
+ #
3376
+ # @yield [result, err] Result & error if block supplied
3377
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
3378
+ # @yieldparam err [StandardError] error object if request failed
3379
+ #
3380
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
3381
+ #
3382
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3383
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3384
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3385
+ def generate_project_location_endpoint_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3386
+ command = make_simple_command(:post, 'v1/{+model}:generateContent', options)
3387
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
3388
+ command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
3389
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
3390
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
3391
+ command.params['model'] = model unless model.nil?
3392
+ command.query['fields'] = fields unless fields.nil?
3393
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3394
+ execute_or_queue_command(command, &block)
3395
+ end
3396
+
3362
3397
  # Gets an Endpoint.
3363
3398
  # @param [String] name
3364
3399
  # Required. The name of the Endpoint resource. Format: `projects/`project`/
@@ -3662,6 +3697,40 @@ module Google
3662
3697
  execute_or_queue_command(command, &block)
3663
3698
  end
3664
3699
 
3700
+ # Perform a streaming online prediction with an arbitrary HTTP payload.
3701
+ # @param [String] endpoint
3702
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
3703
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
3704
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest] google_cloud_aiplatform_v1_stream_raw_predict_request_object
3705
+ # @param [String] fields
3706
+ # Selector specifying which fields to include in a partial response.
3707
+ # @param [String] quota_user
3708
+ # Available to use for quota purposes for server-side applications. Can be any
3709
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3710
+ # @param [Google::Apis::RequestOptions] options
3711
+ # Request-specific options
3712
+ #
3713
+ # @yield [result, err] Result & error if block supplied
3714
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
3715
+ # @yieldparam err [StandardError] error object if request failed
3716
+ #
3717
+ # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
3718
+ #
3719
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3720
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3721
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3722
+ def stream_project_location_endpoint_raw_predict(endpoint, google_cloud_aiplatform_v1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3723
+ command = make_simple_command(:post, 'v1/{+endpoint}:streamRawPredict', options)
3724
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest::Representation
3725
+ command.request_object = google_cloud_aiplatform_v1_stream_raw_predict_request_object
3726
+ command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
3727
+ command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
3728
+ command.params['endpoint'] = endpoint unless endpoint.nil?
3729
+ command.query['fields'] = fields unless fields.nil?
3730
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3731
+ execute_or_queue_command(command, &block)
3732
+ end
3733
+
3665
3734
  # Undeploys a Model from an Endpoint, removing a DeployedModel from it, and
3666
3735
  # freeing all resources it's using.
3667
3736
  # @param [String] endpoint
@@ -4609,7 +4678,7 @@ module Google
4609
4678
  # Creates a new FeatureOnlineStore in a given project and location.
4610
4679
  # @param [String] parent
4611
4680
  # Required. The resource name of the Location to create FeatureOnlineStores.
4612
- # Format: `projects/`project`/locations/`location`'`
4681
+ # Format: `projects/`project`/locations/`location``
4613
4682
  # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureOnlineStore] google_cloud_aiplatform_v1_feature_online_store_object
4614
4683
  # @param [String] feature_online_store_id
4615
4684
  # Required. The ID to use for this FeatureOnlineStore, which will become the
@@ -4784,7 +4853,7 @@ module Google
4784
4853
  # be overwritten if it is in the mask. If the user does not provide a mask then
4785
4854
  # only the non-empty fields present in the request will be overwritten. Set the
4786
4855
  # update_mask to `*` to override all fields. Updatable fields: * `
4787
- # big_query_source` * `labels` * `sync_config`
4856
+ # big_query_source` * `bigtable` * `labels` * `sync_config`
4788
4857
  # @param [String] fields
4789
4858
  # Selector specifying which fields to include in a partial response.
4790
4859
  # @param [String] quota_user
@@ -5061,6 +5130,42 @@ module Google
5061
5130
  execute_or_queue_command(command, &block)
5062
5131
  end
5063
5132
 
5133
+ # Search the nearest entities under a FeatureView. Search only works for
5134
+ # indexable feature view; if a feature view isn't indexable, returns Invalid
5135
+ # argument response.
5136
+ # @param [String] feature_view
5137
+ # Required. FeatureView resource format `projects/`project`/locations/`location`/
5138
+ # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView``
5139
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchNearestEntitiesRequest] google_cloud_aiplatform_v1_search_nearest_entities_request_object
5140
+ # @param [String] fields
5141
+ # Selector specifying which fields to include in a partial response.
5142
+ # @param [String] quota_user
5143
+ # Available to use for quota purposes for server-side applications. Can be any
5144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5145
+ # @param [Google::Apis::RequestOptions] options
5146
+ # Request-specific options
5147
+ #
5148
+ # @yield [result, err] Result & error if block supplied
5149
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchNearestEntitiesResponse] parsed result object
5150
+ # @yieldparam err [StandardError] error object if request failed
5151
+ #
5152
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchNearestEntitiesResponse]
5153
+ #
5154
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5155
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5156
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5157
+ def search_project_location_feature_online_store_feature_view_nearest_entities(feature_view, google_cloud_aiplatform_v1_search_nearest_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5158
+ command = make_simple_command(:post, 'v1/{+featureView}:searchNearestEntities', options)
5159
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchNearestEntitiesRequest::Representation
5160
+ command.request_object = google_cloud_aiplatform_v1_search_nearest_entities_request_object
5161
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchNearestEntitiesResponse::Representation
5162
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchNearestEntitiesResponse
5163
+ command.params['featureView'] = feature_view unless feature_view.nil?
5164
+ command.query['fields'] = fields unless fields.nil?
5165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5166
+ execute_or_queue_command(command, &block)
5167
+ end
5168
+
5064
5169
  # Triggers on-demand sync for the FeatureView.
5065
5170
  # @param [String] feature_view
5066
5171
  # Required. Format: `projects/`project`/locations/`location`/featureOnlineStores/
@@ -11640,6 +11745,51 @@ module Google
11640
11745
  execute_or_queue_command(command, &block)
11641
11746
  end
11642
11747
 
11748
+ # Gets the access control policy for a resource. Returns an empty policy if the
11749
+ # resource exists and does not have a policy set.
11750
+ # @param [String] resource
11751
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
11752
+ # names](https://cloud.google.com/apis/design/resource_names) for the
11753
+ # appropriate value for this field.
11754
+ # @param [Fixnum] options_requested_policy_version
11755
+ # Optional. The maximum policy version that will be used to format the policy.
11756
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
11757
+ # rejected. Requests for policies with any conditional role bindings must
11758
+ # specify version 3. Policies with no conditional role bindings may specify any
11759
+ # valid value or leave the field unset. The policy in the response might use the
11760
+ # policy version that you specified, or it might use a lower policy version. For
11761
+ # example, if you specify version 3, but the policy has no conditional role
11762
+ # bindings, the response uses version 1. To learn which resources support
11763
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
11764
+ # google.com/iam/help/conditions/resource-policies).
11765
+ # @param [String] fields
11766
+ # Selector specifying which fields to include in a partial response.
11767
+ # @param [String] quota_user
11768
+ # Available to use for quota purposes for server-side applications. Can be any
11769
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11770
+ # @param [Google::Apis::RequestOptions] options
11771
+ # Request-specific options
11772
+ #
11773
+ # @yield [result, err] Result & error if block supplied
11774
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleIamV1Policy] parsed result object
11775
+ # @yieldparam err [StandardError] error object if request failed
11776
+ #
11777
+ # @return [Google::Apis::AiplatformV1::GoogleIamV1Policy]
11778
+ #
11779
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11780
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11781
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11782
+ def get_project_location_model_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
11783
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
11784
+ command.response_representation = Google::Apis::AiplatformV1::GoogleIamV1Policy::Representation
11785
+ command.response_class = Google::Apis::AiplatformV1::GoogleIamV1Policy
11786
+ command.params['resource'] = resource unless resource.nil?
11787
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
11788
+ command.query['fields'] = fields unless fields.nil?
11789
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11790
+ execute_or_queue_command(command, &block)
11791
+ end
11792
+
11643
11793
  # Lists Models in a Location.
11644
11794
  # @param [String] parent
11645
11795
  # Required. The resource name of the Location to list the Models from. Format: `
@@ -11820,6 +11970,84 @@ module Google
11820
11970
  execute_or_queue_command(command, &block)
11821
11971
  end
11822
11972
 
11973
+ # Sets the access control policy on the specified resource. Replaces any
11974
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
11975
+ # PERMISSION_DENIED` errors.
11976
+ # @param [String] resource
11977
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
11978
+ # names](https://cloud.google.com/apis/design/resource_names) for the
11979
+ # appropriate value for this field.
11980
+ # @param [Google::Apis::AiplatformV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
11981
+ # @param [String] fields
11982
+ # Selector specifying which fields to include in a partial response.
11983
+ # @param [String] quota_user
11984
+ # Available to use for quota purposes for server-side applications. Can be any
11985
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11986
+ # @param [Google::Apis::RequestOptions] options
11987
+ # Request-specific options
11988
+ #
11989
+ # @yield [result, err] Result & error if block supplied
11990
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleIamV1Policy] parsed result object
11991
+ # @yieldparam err [StandardError] error object if request failed
11992
+ #
11993
+ # @return [Google::Apis::AiplatformV1::GoogleIamV1Policy]
11994
+ #
11995
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11996
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11997
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11998
+ def set_project_location_model_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
11999
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
12000
+ command.request_representation = Google::Apis::AiplatformV1::GoogleIamV1SetIamPolicyRequest::Representation
12001
+ command.request_object = google_iam_v1_set_iam_policy_request_object
12002
+ command.response_representation = Google::Apis::AiplatformV1::GoogleIamV1Policy::Representation
12003
+ command.response_class = Google::Apis::AiplatformV1::GoogleIamV1Policy
12004
+ command.params['resource'] = resource unless resource.nil?
12005
+ command.query['fields'] = fields unless fields.nil?
12006
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12007
+ execute_or_queue_command(command, &block)
12008
+ end
12009
+
12010
+ # Returns permissions that a caller has on the specified resource. If the
12011
+ # resource does not exist, this will return an empty set of permissions, not a `
12012
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
12013
+ # permission-aware UIs and command-line tools, not for authorization checking.
12014
+ # This operation may "fail open" without warning.
12015
+ # @param [String] resource
12016
+ # REQUIRED: The resource for which the policy detail is being requested. See [
12017
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
12018
+ # appropriate value for this field.
12019
+ # @param [Array<String>, String] permissions
12020
+ # The set of permissions to check for the `resource`. Permissions with wildcards
12021
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
12022
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
12023
+ # @param [String] fields
12024
+ # Selector specifying which fields to include in a partial response.
12025
+ # @param [String] quota_user
12026
+ # Available to use for quota purposes for server-side applications. Can be any
12027
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
12028
+ # @param [Google::Apis::RequestOptions] options
12029
+ # Request-specific options
12030
+ #
12031
+ # @yield [result, err] Result & error if block supplied
12032
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
12033
+ # @yieldparam err [StandardError] error object if request failed
12034
+ #
12035
+ # @return [Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse]
12036
+ #
12037
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12038
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12039
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12040
+ def test_project_location_model_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block)
12041
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
12042
+ command.response_representation = Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse::Representation
12043
+ command.response_class = Google::Apis::AiplatformV1::GoogleIamV1TestIamPermissionsResponse
12044
+ command.params['resource'] = resource unless resource.nil?
12045
+ command.query['permissions'] = permissions unless permissions.nil?
12046
+ command.query['fields'] = fields unless fields.nil?
12047
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12048
+ execute_or_queue_command(command, &block)
12049
+ end
12050
+
11823
12051
  # Incrementally update the dataset used for an examples model.
11824
12052
  # @param [String] model
11825
12053
  # Required. The resource name of the Model to update. Format: `projects/`project`
@@ -13497,6 +13725,9 @@ module Google
13497
13725
  # the PipelineJob name. If not provided, an ID will be automatically generated.
13498
13726
  # This value should be less than 128 characters, and valid characters are `/a-z-/
13499
13727
  # `.
13728
+ # @param [Boolean] preflight_validations
13729
+ # Optional. Whether to do component level validations before job creation.
13730
+ # Currently we only support Google First Party Component/Pipelines.
13500
13731
  # @param [String] fields
13501
13732
  # Selector specifying which fields to include in a partial response.
13502
13733
  # @param [String] quota_user
@@ -13514,7 +13745,7 @@ module Google
13514
13745
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13515
13746
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13516
13747
  # @raise [Google::Apis::AuthorizationError] Authorization is required
13517
- def create_project_location_pipeline_job(parent, google_cloud_aiplatform_v1_pipeline_job_object = nil, pipeline_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
13748
+ def create_project_location_pipeline_job(parent, google_cloud_aiplatform_v1_pipeline_job_object = nil, pipeline_job_id: nil, preflight_validations: nil, fields: nil, quota_user: nil, options: nil, &block)
13518
13749
  command = make_simple_command(:post, 'v1/{+parent}/pipelineJobs', options)
13519
13750
  command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PipelineJob::Representation
13520
13751
  command.request_object = google_cloud_aiplatform_v1_pipeline_job_object
@@ -13522,6 +13753,7 @@ module Google
13522
13753
  command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PipelineJob
13523
13754
  command.params['parent'] = parent unless parent.nil?
13524
13755
  command.query['pipelineJobId'] = pipeline_job_id unless pipeline_job_id.nil?
13756
+ command.query['preflightValidations'] = preflight_validations unless preflight_validations.nil?
13525
13757
  command.query['fields'] = fields unless fields.nil?
13526
13758
  command.query['quotaUser'] = quota_user unless quota_user.nil?
13527
13759
  execute_or_queue_command(command, &block)
@@ -13913,6 +14145,40 @@ module Google
13913
14145
  execute_or_queue_command(command, &block)
13914
14146
  end
13915
14147
 
14148
+ # Generate content with multimodal inputs.
14149
+ # @param [String] model
14150
+ # Required. The name of the publisher model requested to serve the prediction.
14151
+ # Format: `projects/`project`/locations/`location`/publishers/*/models/*`
14152
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
14153
+ # @param [String] fields
14154
+ # Selector specifying which fields to include in a partial response.
14155
+ # @param [String] quota_user
14156
+ # Available to use for quota purposes for server-side applications. Can be any
14157
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14158
+ # @param [Google::Apis::RequestOptions] options
14159
+ # Request-specific options
14160
+ #
14161
+ # @yield [result, err] Result & error if block supplied
14162
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
14163
+ # @yieldparam err [StandardError] error object if request failed
14164
+ #
14165
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
14166
+ #
14167
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14168
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14169
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14170
+ def generate_project_location_publisher_model_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
14171
+ command = make_simple_command(:post, 'v1/{+model}:generateContent', options)
14172
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
14173
+ command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
14174
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
14175
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
14176
+ command.params['model'] = model unless model.nil?
14177
+ command.query['fields'] = fields unless fields.nil?
14178
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14179
+ execute_or_queue_command(command, &block)
14180
+ end
14181
+
13916
14182
  # Perform an online prediction.
13917
14183
  # @param [String] endpoint
13918
14184
  # Required. The name of the Endpoint requested to serve the prediction. Format: `
@@ -14053,6 +14319,40 @@ module Google
14053
14319
  execute_or_queue_command(command, &block)
14054
14320
  end
14055
14321
 
14322
+ # Perform a streaming online prediction with an arbitrary HTTP payload.
14323
+ # @param [String] endpoint
14324
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
14325
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
14326
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest] google_cloud_aiplatform_v1_stream_raw_predict_request_object
14327
+ # @param [String] fields
14328
+ # Selector specifying which fields to include in a partial response.
14329
+ # @param [String] quota_user
14330
+ # Available to use for quota purposes for server-side applications. Can be any
14331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14332
+ # @param [Google::Apis::RequestOptions] options
14333
+ # Request-specific options
14334
+ #
14335
+ # @yield [result, err] Result & error if block supplied
14336
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
14337
+ # @yieldparam err [StandardError] error object if request failed
14338
+ #
14339
+ # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
14340
+ #
14341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14344
+ def stream_project_location_publisher_model_raw_predict(endpoint, google_cloud_aiplatform_v1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
14345
+ command = make_simple_command(:post, 'v1/{+endpoint}:streamRawPredict', options)
14346
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest::Representation
14347
+ command.request_object = google_cloud_aiplatform_v1_stream_raw_predict_request_object
14348
+ command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
14349
+ command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
14350
+ command.params['endpoint'] = endpoint unless endpoint.nil?
14351
+ command.query['fields'] = fields unless fields.nil?
14352
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14353
+ execute_or_queue_command(command, &block)
14354
+ end
14355
+
14056
14356
  # Creates a Schedule.
14057
14357
  # @param [String] parent
14058
14358
  # Required. The resource name of the Location to create the Schedule in. Format:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.13.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-01-23 00:00:00.000000000 Z
11
+ date: 2024-02-11 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
63
63
  post_install_message:
64
64
  rdoc_options: []