google-apis-aiplatform_v1beta1 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +407 -158
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +180 -87
- data/lib/google/apis/aiplatform_v1beta1/service.rb +220 -5
- metadata +3 -3
@@ -3436,8 +3436,8 @@ module Google
|
|
3436
3436
|
execute_or_queue_command(command, &block)
|
3437
3437
|
end
|
3438
3438
|
|
3439
|
-
# Perform an unary online prediction request
|
3440
|
-
# frameworks.
|
3439
|
+
# Perform an unary online prediction request to a gRPC model server for Vertex
|
3440
|
+
# first-party products and frameworks.
|
3441
3441
|
# @param [String] endpoint
|
3442
3442
|
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
3443
3443
|
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
@@ -3471,7 +3471,8 @@ module Google
|
|
3471
3471
|
execute_or_queue_command(command, &block)
|
3472
3472
|
end
|
3473
3473
|
|
3474
|
-
# Perform an online prediction request
|
3474
|
+
# Perform an unary online prediction request to a gRPC model server for custom
|
3475
|
+
# containers.
|
3475
3476
|
# @param [String] endpoint
|
3476
3477
|
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
3477
3478
|
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
@@ -3542,6 +3543,40 @@ module Google
|
|
3542
3543
|
execute_or_queue_command(command, &block)
|
3543
3544
|
end
|
3544
3545
|
|
3546
|
+
# Generate content with multimodal inputs.
|
3547
|
+
# @param [String] model
|
3548
|
+
# Required. The name of the publisher model requested to serve the prediction.
|
3549
|
+
# Format: `projects/`project`/locations/`location`/publishers/*/models/*`
|
3550
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object
|
3551
|
+
# @param [String] fields
|
3552
|
+
# Selector specifying which fields to include in a partial response.
|
3553
|
+
# @param [String] quota_user
|
3554
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3555
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3556
|
+
# @param [Google::Apis::RequestOptions] options
|
3557
|
+
# Request-specific options
|
3558
|
+
#
|
3559
|
+
# @yield [result, err] Result & error if block supplied
|
3560
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object
|
3561
|
+
# @yieldparam err [StandardError] error object if request failed
|
3562
|
+
#
|
3563
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse]
|
3564
|
+
#
|
3565
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3566
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3567
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3568
|
+
def generate_project_location_endpoint_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3569
|
+
command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options)
|
3570
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation
|
3571
|
+
command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object
|
3572
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation
|
3573
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse
|
3574
|
+
command.params['model'] = model unless model.nil?
|
3575
|
+
command.query['fields'] = fields unless fields.nil?
|
3576
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3577
|
+
execute_or_queue_command(command, &block)
|
3578
|
+
end
|
3579
|
+
|
3545
3580
|
# Gets an Endpoint.
|
3546
3581
|
# @param [String] name
|
3547
3582
|
# Required. The name of the Endpoint resource. Format: `projects/`project`/
|
@@ -4181,6 +4216,152 @@ module Google
|
|
4181
4216
|
execute_or_queue_command(command, &block)
|
4182
4217
|
end
|
4183
4218
|
|
4219
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
4220
|
+
# longer interested in the operation result. It does not cancel the operation.
|
4221
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
4222
|
+
# UNIMPLEMENTED`.
|
4223
|
+
# @param [String] name
|
4224
|
+
# The name of the operation resource to be deleted.
|
4225
|
+
# @param [String] fields
|
4226
|
+
# Selector specifying which fields to include in a partial response.
|
4227
|
+
# @param [String] quota_user
|
4228
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4229
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4230
|
+
# @param [Google::Apis::RequestOptions] options
|
4231
|
+
# Request-specific options
|
4232
|
+
#
|
4233
|
+
# @yield [result, err] Result & error if block supplied
|
4234
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
4235
|
+
# @yieldparam err [StandardError] error object if request failed
|
4236
|
+
#
|
4237
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
4238
|
+
#
|
4239
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4240
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4241
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4242
|
+
def delete_project_location_evaluation_task_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
4243
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
4244
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
4245
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
4246
|
+
command.params['name'] = name unless name.nil?
|
4247
|
+
command.query['fields'] = fields unless fields.nil?
|
4248
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4249
|
+
execute_or_queue_command(command, &block)
|
4250
|
+
end
|
4251
|
+
|
4252
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
4253
|
+
# to poll the operation result at intervals as recommended by the API service.
|
4254
|
+
# @param [String] name
|
4255
|
+
# The name of the operation resource.
|
4256
|
+
# @param [String] fields
|
4257
|
+
# Selector specifying which fields to include in a partial response.
|
4258
|
+
# @param [String] quota_user
|
4259
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4260
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4261
|
+
# @param [Google::Apis::RequestOptions] options
|
4262
|
+
# Request-specific options
|
4263
|
+
#
|
4264
|
+
# @yield [result, err] Result & error if block supplied
|
4265
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
4266
|
+
# @yieldparam err [StandardError] error object if request failed
|
4267
|
+
#
|
4268
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
4269
|
+
#
|
4270
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4271
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4272
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4273
|
+
def get_project_location_evaluation_task_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
4274
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
4275
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
4276
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
4277
|
+
command.params['name'] = name unless name.nil?
|
4278
|
+
command.query['fields'] = fields unless fields.nil?
|
4279
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4280
|
+
execute_or_queue_command(command, &block)
|
4281
|
+
end
|
4282
|
+
|
4283
|
+
# Lists operations that match the specified filter in the request. If the server
|
4284
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
4285
|
+
# @param [String] name
|
4286
|
+
# The name of the operation's parent resource.
|
4287
|
+
# @param [String] filter
|
4288
|
+
# The standard list filter.
|
4289
|
+
# @param [Fixnum] page_size
|
4290
|
+
# The standard list page size.
|
4291
|
+
# @param [String] page_token
|
4292
|
+
# The standard list page token.
|
4293
|
+
# @param [String] fields
|
4294
|
+
# Selector specifying which fields to include in a partial response.
|
4295
|
+
# @param [String] quota_user
|
4296
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4297
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4298
|
+
# @param [Google::Apis::RequestOptions] options
|
4299
|
+
# Request-specific options
|
4300
|
+
#
|
4301
|
+
# @yield [result, err] Result & error if block supplied
|
4302
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
4303
|
+
# @yieldparam err [StandardError] error object if request failed
|
4304
|
+
#
|
4305
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
4306
|
+
#
|
4307
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4308
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4309
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4310
|
+
def list_project_location_evaluation_task_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4311
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
4312
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
4313
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
4314
|
+
command.params['name'] = name unless name.nil?
|
4315
|
+
command.query['filter'] = filter unless filter.nil?
|
4316
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4317
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4318
|
+
command.query['fields'] = fields unless fields.nil?
|
4319
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4320
|
+
execute_or_queue_command(command, &block)
|
4321
|
+
end
|
4322
|
+
|
4323
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
4324
|
+
# specified timeout, returning the latest state. If the operation is already
|
4325
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
4326
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
4327
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
4328
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
4329
|
+
# the latest state before the specified timeout (including immediately), meaning
|
4330
|
+
# even an immediate response is no guarantee that the operation is done.
|
4331
|
+
# @param [String] name
|
4332
|
+
# The name of the operation resource to wait on.
|
4333
|
+
# @param [String] timeout
|
4334
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
4335
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
4336
|
+
# context deadline is also specified, the shorter one will be used.
|
4337
|
+
# @param [String] fields
|
4338
|
+
# Selector specifying which fields to include in a partial response.
|
4339
|
+
# @param [String] quota_user
|
4340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4342
|
+
# @param [Google::Apis::RequestOptions] options
|
4343
|
+
# Request-specific options
|
4344
|
+
#
|
4345
|
+
# @yield [result, err] Result & error if block supplied
|
4346
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
4347
|
+
# @yieldparam err [StandardError] error object if request failed
|
4348
|
+
#
|
4349
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
4350
|
+
#
|
4351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4354
|
+
def wait_project_location_evaluation_task_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4355
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
4356
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
4357
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
4358
|
+
command.params['name'] = name unless name.nil?
|
4359
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
4360
|
+
command.query['fields'] = fields unless fields.nil?
|
4361
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4362
|
+
execute_or_queue_command(command, &block)
|
4363
|
+
end
|
4364
|
+
|
4184
4365
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
4185
4366
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
4186
4367
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -5817,7 +5998,7 @@ module Google
|
|
5817
5998
|
# be overwritten if it is in the mask. If the user does not provide a mask then
|
5818
5999
|
# only the non-empty fields present in the request will be overwritten. Set the
|
5819
6000
|
# update_mask to `*` to override all fields. Updatable fields: * `
|
5820
|
-
# big_query_source` * `labels` * `sync_config`
|
6001
|
+
# big_query_source` * `bigtable` * `labels` * `sync_config`
|
5821
6002
|
# @param [String] fields
|
5822
6003
|
# Selector specifying which fields to include in a partial response.
|
5823
6004
|
# @param [String] quota_user
|
@@ -6063,7 +6244,7 @@ module Google
|
|
6063
6244
|
# to the resource, not the full request. A field will be overwritten if it is in
|
6064
6245
|
# the mask. If the user does not provide a mask then only the non-empty fields
|
6065
6246
|
# present in the request will be overwritten. Set the update_mask to `*` to
|
6066
|
-
# override all fields. Updatable fields: * `labels`
|
6247
|
+
# override all fields. Updatable fields: * `labels` * `serviceAgentType`
|
6067
6248
|
# @param [String] fields
|
6068
6249
|
# Selector specifying which fields to include in a partial response.
|
6069
6250
|
# @param [String] quota_user
|
@@ -15854,6 +16035,40 @@ module Google
|
|
15854
16035
|
execute_or_queue_command(command, &block)
|
15855
16036
|
end
|
15856
16037
|
|
16038
|
+
# Generate content with multimodal inputs.
|
16039
|
+
# @param [String] model
|
16040
|
+
# Required. The name of the publisher model requested to serve the prediction.
|
16041
|
+
# Format: `projects/`project`/locations/`location`/publishers/*/models/*`
|
16042
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object
|
16043
|
+
# @param [String] fields
|
16044
|
+
# Selector specifying which fields to include in a partial response.
|
16045
|
+
# @param [String] quota_user
|
16046
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16047
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16048
|
+
# @param [Google::Apis::RequestOptions] options
|
16049
|
+
# Request-specific options
|
16050
|
+
#
|
16051
|
+
# @yield [result, err] Result & error if block supplied
|
16052
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object
|
16053
|
+
# @yieldparam err [StandardError] error object if request failed
|
16054
|
+
#
|
16055
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse]
|
16056
|
+
#
|
16057
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16058
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16059
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16060
|
+
def generate_project_location_publisher_model_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
16061
|
+
command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options)
|
16062
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation
|
16063
|
+
command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object
|
16064
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation
|
16065
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse
|
16066
|
+
command.params['model'] = model unless model.nil?
|
16067
|
+
command.query['fields'] = fields unless fields.nil?
|
16068
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16069
|
+
execute_or_queue_command(command, &block)
|
16070
|
+
end
|
16071
|
+
|
15857
16072
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
15858
16073
|
# resource exists and does not have a policy set.
|
15859
16074
|
# @param [String] resource
|
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.
|
4
|
+
version: 0.18.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-
|
11
|
+
date: 2024-02-18 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.18.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: []
|