google-apis-aiplatform_v1 0.8.0 → 0.10.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_v1/classes.rb +1768 -53
- data/lib/google/apis/aiplatform_v1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1/representations.rb +829 -54
- data/lib/google/apis/aiplatform_v1/service.rb +147 -85
- metadata +3 -3
@@ -3626,6 +3626,40 @@ module Google
|
|
3626
3626
|
execute_or_queue_command(command, &block)
|
3627
3627
|
end
|
3628
3628
|
|
3629
|
+
# Generate content with multimodal inputs with streaming support.
|
3630
|
+
# @param [String] model
|
3631
|
+
# Required. The name of the publisher model requested to serve the prediction.
|
3632
|
+
# Format: `projects/`project`/locations/`location`/publishers/*/models/*`
|
3633
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
3634
|
+
# @param [String] fields
|
3635
|
+
# Selector specifying which fields to include in a partial response.
|
3636
|
+
# @param [String] quota_user
|
3637
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3638
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3639
|
+
# @param [Google::Apis::RequestOptions] options
|
3640
|
+
# Request-specific options
|
3641
|
+
#
|
3642
|
+
# @yield [result, err] Result & error if block supplied
|
3643
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
3644
|
+
# @yieldparam err [StandardError] error object if request failed
|
3645
|
+
#
|
3646
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
3647
|
+
#
|
3648
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3649
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3650
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3651
|
+
def stream_project_location_endpoint_generate_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3652
|
+
command = make_simple_command(:post, 'v1/{+model}:streamGenerateContent', options)
|
3653
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
3654
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
3655
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
3656
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
3657
|
+
command.params['model'] = model unless model.nil?
|
3658
|
+
command.query['fields'] = fields unless fields.nil?
|
3659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3660
|
+
execute_or_queue_command(command, &block)
|
3661
|
+
end
|
3662
|
+
|
3629
3663
|
# Undeploys a Model from an Endpoint, removing a DeployedModel from it, and
|
3630
3664
|
# freeing all resources it's using.
|
3631
3665
|
# @param [String] endpoint
|
@@ -13251,6 +13285,40 @@ module Google
|
|
13251
13285
|
execute_or_queue_command(command, &block)
|
13252
13286
|
end
|
13253
13287
|
|
13288
|
+
# Generate content with multimodal inputs with streaming support.
|
13289
|
+
# @param [String] model
|
13290
|
+
# Required. The name of the publisher model requested to serve the prediction.
|
13291
|
+
# Format: `projects/`project`/locations/`location`/publishers/*/models/*`
|
13292
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
13293
|
+
# @param [String] fields
|
13294
|
+
# Selector specifying which fields to include in a partial response.
|
13295
|
+
# @param [String] quota_user
|
13296
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13297
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13298
|
+
# @param [Google::Apis::RequestOptions] options
|
13299
|
+
# Request-specific options
|
13300
|
+
#
|
13301
|
+
# @yield [result, err] Result & error if block supplied
|
13302
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
13303
|
+
# @yieldparam err [StandardError] error object if request failed
|
13304
|
+
#
|
13305
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
13306
|
+
#
|
13307
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13308
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13309
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13310
|
+
def stream_project_location_publisher_model_generate_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
13311
|
+
command = make_simple_command(:post, 'v1/{+model}:streamGenerateContent', options)
|
13312
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
13313
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
13314
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
13315
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
13316
|
+
command.params['model'] = model unless model.nil?
|
13317
|
+
command.query['fields'] = fields unless fields.nil?
|
13318
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13319
|
+
execute_or_queue_command(command, &block)
|
13320
|
+
end
|
13321
|
+
|
13254
13322
|
# Creates a Schedule.
|
13255
13323
|
# @param [String] parent
|
13256
13324
|
# Required. The resource name of the Location to create the Schedule in. Format:
|
@@ -14956,6 +15024,48 @@ module Google
|
|
14956
15024
|
execute_or_queue_command(command, &block)
|
14957
15025
|
end
|
14958
15026
|
|
15027
|
+
# Reads multiple TensorboardTimeSeries' data. The data point number limit is
|
15028
|
+
# 1000 for scalars, 100 for tensors and blob references. If the number of data
|
15029
|
+
# points stored is less than the limit, all data is returned. Otherwise, the
|
15030
|
+
# number limit of data points is randomly selected from this time series and
|
15031
|
+
# returned.
|
15032
|
+
# @param [String] tensorboard
|
15033
|
+
# Required. The resource name of the Tensorboard containing
|
15034
|
+
# TensorboardTimeSeries to read data from. Format: `projects/`project`/locations/
|
15035
|
+
# `location`/tensorboards/`tensorboard``. The TensorboardTimeSeries referenced
|
15036
|
+
# by time_series must be sub resources of this Tensorboard.
|
15037
|
+
# @param [Array<String>, String] time_series
|
15038
|
+
# Required. The resource names of the TensorboardTimeSeries to read data from.
|
15039
|
+
# Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/
|
15040
|
+
# experiments/`experiment`/runs/`run`/timeSeries/`time_series``
|
15041
|
+
# @param [String] fields
|
15042
|
+
# Selector specifying which fields to include in a partial response.
|
15043
|
+
# @param [String] quota_user
|
15044
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15045
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15046
|
+
# @param [Google::Apis::RequestOptions] options
|
15047
|
+
# Request-specific options
|
15048
|
+
#
|
15049
|
+
# @yield [result, err] Result & error if block supplied
|
15050
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse] parsed result object
|
15051
|
+
# @yieldparam err [StandardError] error object if request failed
|
15052
|
+
#
|
15053
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse]
|
15054
|
+
#
|
15055
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15056
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15057
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15058
|
+
def batch_project_location_tensorboard_read(tensorboard, time_series: nil, fields: nil, quota_user: nil, options: nil, &block)
|
15059
|
+
command = make_simple_command(:get, 'v1/{+tensorboard}:batchRead', options)
|
15060
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse::Representation
|
15061
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse
|
15062
|
+
command.params['tensorboard'] = tensorboard unless tensorboard.nil?
|
15063
|
+
command.query['timeSeries'] = time_series unless time_series.nil?
|
15064
|
+
command.query['fields'] = fields unless fields.nil?
|
15065
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15066
|
+
execute_or_queue_command(command, &block)
|
15067
|
+
end
|
15068
|
+
|
14959
15069
|
# Creates a Tensorboard.
|
14960
15070
|
# @param [String] parent
|
14961
15071
|
# Required. The resource name of the Location to create the Tensorboard in.
|
@@ -15206,6 +15316,43 @@ module Google
|
|
15206
15316
|
execute_or_queue_command(command, &block)
|
15207
15317
|
end
|
15208
15318
|
|
15319
|
+
# Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
|
15320
|
+
# @param [String] parent
|
15321
|
+
# Required. The resource name of the TensorboardExperiment to create the
|
15322
|
+
# TensorboardTimeSeries in. Format: `projects/`project`/locations/`location`/
|
15323
|
+
# tensorboards/`tensorboard`/experiments/`experiment`` The TensorboardRuns
|
15324
|
+
# referenced by the parent fields in the CreateTensorboardTimeSeriesRequest
|
15325
|
+
# messages must be sub resources of this TensorboardExperiment.
|
15326
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest] google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object
|
15327
|
+
# @param [String] fields
|
15328
|
+
# Selector specifying which fields to include in a partial response.
|
15329
|
+
# @param [String] quota_user
|
15330
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15331
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15332
|
+
# @param [Google::Apis::RequestOptions] options
|
15333
|
+
# Request-specific options
|
15334
|
+
#
|
15335
|
+
# @yield [result, err] Result & error if block supplied
|
15336
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse] parsed result object
|
15337
|
+
# @yieldparam err [StandardError] error object if request failed
|
15338
|
+
#
|
15339
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse]
|
15340
|
+
#
|
15341
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15342
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15343
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15344
|
+
def batch_project_location_tensorboard_experiment_create(parent, google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
15345
|
+
command = make_simple_command(:post, 'v1/{+parent}:batchCreate', options)
|
15346
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest::Representation
|
15347
|
+
command.request_object = google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object
|
15348
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse::Representation
|
15349
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse
|
15350
|
+
command.params['parent'] = parent unless parent.nil?
|
15351
|
+
command.query['fields'] = fields unless fields.nil?
|
15352
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15353
|
+
execute_or_queue_command(command, &block)
|
15354
|
+
end
|
15355
|
+
|
15209
15356
|
# Creates a TensorboardExperiment.
|
15210
15357
|
# @param [String] parent
|
15211
15358
|
# Required. The resource name of the Tensorboard to create the
|
@@ -16073,91 +16220,6 @@ module Google
|
|
16073
16220
|
execute_or_queue_command(command, &block)
|
16074
16221
|
end
|
16075
16222
|
|
16076
|
-
# Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
|
16077
|
-
# @param [String] parent
|
16078
|
-
# Required. The resource name of the TensorboardExperiment to create the
|
16079
|
-
# TensorboardTimeSeries in. Format: `projects/`project`/locations/`location`/
|
16080
|
-
# tensorboards/`tensorboard`/experiments/`experiment`` The TensorboardRuns
|
16081
|
-
# referenced by the parent fields in the CreateTensorboardTimeSeriesRequest
|
16082
|
-
# messages must be sub resources of this TensorboardExperiment.
|
16083
|
-
# @param [String] runs_id
|
16084
|
-
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest] google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object
|
16085
|
-
# @param [String] fields
|
16086
|
-
# Selector specifying which fields to include in a partial response.
|
16087
|
-
# @param [String] quota_user
|
16088
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
16089
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16090
|
-
# @param [Google::Apis::RequestOptions] options
|
16091
|
-
# Request-specific options
|
16092
|
-
#
|
16093
|
-
# @yield [result, err] Result & error if block supplied
|
16094
|
-
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse] parsed result object
|
16095
|
-
# @yieldparam err [StandardError] error object if request failed
|
16096
|
-
#
|
16097
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse]
|
16098
|
-
#
|
16099
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16100
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16101
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16102
|
-
def batch_project_location_tensorboard_experiment_run_time_series_create(parent, runs_id, google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
16103
|
-
command = make_simple_command(:post, 'v1/{+parent}/runs/{runsId}/timeSeries:batchCreate', options)
|
16104
|
-
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest::Representation
|
16105
|
-
command.request_object = google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object
|
16106
|
-
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse::Representation
|
16107
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse
|
16108
|
-
command.params['parent'] = parent unless parent.nil?
|
16109
|
-
command.params['runsId'] = runs_id unless runs_id.nil?
|
16110
|
-
command.query['fields'] = fields unless fields.nil?
|
16111
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16112
|
-
execute_or_queue_command(command, &block)
|
16113
|
-
end
|
16114
|
-
|
16115
|
-
# Reads multiple TensorboardTimeSeries' data. The data point number limit is
|
16116
|
-
# 1000 for scalars, 100 for tensors and blob references. If the number of data
|
16117
|
-
# points stored is less than the limit, all data is returned. Otherwise, the
|
16118
|
-
# number limit of data points is randomly selected from this time series and
|
16119
|
-
# returned.
|
16120
|
-
# @param [String] tensorboard
|
16121
|
-
# Required. The resource name of the Tensorboard containing
|
16122
|
-
# TensorboardTimeSeries to read data from. Format: `projects/`project`/locations/
|
16123
|
-
# `location`/tensorboards/`tensorboard``. The TensorboardTimeSeries referenced
|
16124
|
-
# by time_series must be sub resources of this Tensorboard.
|
16125
|
-
# @param [String] experiments_id
|
16126
|
-
# @param [String] runs_id
|
16127
|
-
# @param [Array<String>, String] time_series
|
16128
|
-
# Required. The resource names of the TensorboardTimeSeries to read data from.
|
16129
|
-
# Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/
|
16130
|
-
# experiments/`experiment`/runs/`run`/timeSeries/`time_series``
|
16131
|
-
# @param [String] fields
|
16132
|
-
# Selector specifying which fields to include in a partial response.
|
16133
|
-
# @param [String] quota_user
|
16134
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
16135
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16136
|
-
# @param [Google::Apis::RequestOptions] options
|
16137
|
-
# Request-specific options
|
16138
|
-
#
|
16139
|
-
# @yield [result, err] Result & error if block supplied
|
16140
|
-
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse] parsed result object
|
16141
|
-
# @yieldparam err [StandardError] error object if request failed
|
16142
|
-
#
|
16143
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse]
|
16144
|
-
#
|
16145
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16146
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16147
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16148
|
-
def batch_project_location_tensorboard_experiment_run_time_series_read(tensorboard, experiments_id, runs_id, time_series: nil, fields: nil, quota_user: nil, options: nil, &block)
|
16149
|
-
command = make_simple_command(:get, 'v1/{+tensorboard}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead', options)
|
16150
|
-
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse::Representation
|
16151
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse
|
16152
|
-
command.params['tensorboard'] = tensorboard unless tensorboard.nil?
|
16153
|
-
command.params['experimentsId'] = experiments_id unless experiments_id.nil?
|
16154
|
-
command.params['runsId'] = runs_id unless runs_id.nil?
|
16155
|
-
command.query['timeSeries'] = time_series unless time_series.nil?
|
16156
|
-
command.query['fields'] = fields unless fields.nil?
|
16157
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16158
|
-
execute_or_queue_command(command, &block)
|
16159
|
-
end
|
16160
|
-
|
16161
16223
|
# Creates a TensorboardTimeSeries.
|
16162
16224
|
# @param [String] parent
|
16163
16225
|
# Required. The resource name of the TensorboardRun to create the
|
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.
|
4
|
+
version: 0.10.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: 2023-12-
|
11
|
+
date: 2023-12-24 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.10.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: []
|