google-apis-aiplatform_v1beta1 0.42.0 → 0.44.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 +9 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +400 -32
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +3 -3
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +191 -1
- data/lib/google/apis/aiplatform_v1beta1/service.rb +485 -204
- metadata +5 -5
@@ -52,6 +52,126 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
+
# Creates a BatchPredictionJob. A BatchPredictionJob once created will right
|
56
|
+
# away be attempted to start.
|
57
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] google_cloud_aiplatform_v1beta1_batch_prediction_job_object
|
58
|
+
# @param [String] parent
|
59
|
+
# Required. The resource name of the Location to create the BatchPredictionJob
|
60
|
+
# in. Format: `projects/`project`/locations/`location``
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def create_batch_prediction_job(google_cloud_aiplatform_v1beta1_batch_prediction_job_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:post, 'v1beta1/batchPredictionJobs', options)
|
80
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation
|
81
|
+
command.request_object = google_cloud_aiplatform_v1beta1_batch_prediction_job_object
|
82
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation
|
83
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob
|
84
|
+
command.query['parent'] = parent unless parent.nil?
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
execute_or_queue_command(command, &block)
|
88
|
+
end
|
89
|
+
|
90
|
+
# Gets a BatchPredictionJob
|
91
|
+
# @param [String] name
|
92
|
+
# Required. The name of the BatchPredictionJob resource. Format: `projects/`
|
93
|
+
# project`/locations/`location`/batchPredictionJobs/`batch_prediction_job``
|
94
|
+
# @param [String] fields
|
95
|
+
# Selector specifying which fields to include in a partial response.
|
96
|
+
# @param [String] quota_user
|
97
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
98
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
99
|
+
# @param [Google::Apis::RequestOptions] options
|
100
|
+
# Request-specific options
|
101
|
+
#
|
102
|
+
# @yield [result, err] Result & error if block supplied
|
103
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object
|
104
|
+
# @yieldparam err [StandardError] error object if request failed
|
105
|
+
#
|
106
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob]
|
107
|
+
#
|
108
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
109
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
110
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
111
|
+
def get_batch_prediction_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
112
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
113
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation
|
114
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob
|
115
|
+
command.params['name'] = name unless name.nil?
|
116
|
+
command.query['fields'] = fields unless fields.nil?
|
117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
118
|
+
execute_or_queue_command(command, &block)
|
119
|
+
end
|
120
|
+
|
121
|
+
# Lists BatchPredictionJobs in a Location.
|
122
|
+
# @param [String] filter
|
123
|
+
# The standard list filter. Supported fields: * `display_name` supports `=`, `!=`
|
124
|
+
# comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=`
|
125
|
+
# comparisons. * `state` supports `=`, `!=` comparisons. * `create_time`
|
126
|
+
# supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be in
|
127
|
+
# RFC 3339 format. * `labels` supports general map functions that is: `labels.
|
128
|
+
# key=value` - key:value equality `labels.key:* - key existence Some examples of
|
129
|
+
# using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*
|
130
|
+
# "` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="
|
131
|
+
# my_job"` * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `
|
132
|
+
# labels.keyB:*`
|
133
|
+
# @param [Fixnum] page_size
|
134
|
+
# The standard list page size.
|
135
|
+
# @param [String] page_token
|
136
|
+
# The standard list page token. Typically obtained via
|
137
|
+
# ListBatchPredictionJobsResponse.next_page_token of the previous JobService.
|
138
|
+
# ListBatchPredictionJobs call.
|
139
|
+
# @param [String] parent
|
140
|
+
# Required. The resource name of the Location to list the BatchPredictionJobs
|
141
|
+
# from. Format: `projects/`project`/locations/`location``
|
142
|
+
# @param [String] read_mask
|
143
|
+
# Mask specifying which fields to read.
|
144
|
+
# @param [String] fields
|
145
|
+
# Selector specifying which fields to include in a partial response.
|
146
|
+
# @param [String] quota_user
|
147
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
148
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
149
|
+
# @param [Google::Apis::RequestOptions] options
|
150
|
+
# Request-specific options
|
151
|
+
#
|
152
|
+
# @yield [result, err] Result & error if block supplied
|
153
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse] parsed result object
|
154
|
+
# @yieldparam err [StandardError] error object if request failed
|
155
|
+
#
|
156
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse]
|
157
|
+
#
|
158
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
159
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
160
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
161
|
+
def list_batch_prediction_jobs(filter: nil, page_size: nil, page_token: nil, parent: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
162
|
+
command = make_simple_command(:get, 'v1beta1/batchPredictionJobs', options)
|
163
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse::Representation
|
164
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse
|
165
|
+
command.query['filter'] = filter unless filter.nil?
|
166
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
167
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
168
|
+
command.query['parent'] = parent unless parent.nil?
|
169
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
170
|
+
command.query['fields'] = fields unless fields.nil?
|
171
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
172
|
+
execute_or_queue_command(command, &block)
|
173
|
+
end
|
174
|
+
|
55
175
|
# Creates a Dataset.
|
56
176
|
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object
|
57
177
|
# @param [String] parent
|
@@ -635,6 +755,40 @@ module Google
|
|
635
755
|
execute_or_queue_command(command, &block)
|
636
756
|
end
|
637
757
|
|
758
|
+
# Exposes an OpenAI-compatible endpoint for chat completions.
|
759
|
+
# @param [String] endpoint
|
760
|
+
# Required. The name of the endpoint requested to serve the prediction. Format: `
|
761
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
762
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] google_api_http_body_object
|
763
|
+
# @param [String] fields
|
764
|
+
# Selector specifying which fields to include in a partial response.
|
765
|
+
# @param [String] quota_user
|
766
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
767
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
768
|
+
# @param [Google::Apis::RequestOptions] options
|
769
|
+
# Request-specific options
|
770
|
+
#
|
771
|
+
# @yield [result, err] Result & error if block supplied
|
772
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object
|
773
|
+
# @yieldparam err [StandardError] error object if request failed
|
774
|
+
#
|
775
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
|
776
|
+
#
|
777
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
778
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
779
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
780
|
+
def completions_endpoint_chat(endpoint, google_api_http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
781
|
+
command = make_simple_command(:post, 'v1beta1/{+endpoint}/chat/completions', options)
|
782
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
|
783
|
+
command.request_object = google_api_http_body_object
|
784
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
|
785
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody
|
786
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
787
|
+
command.query['fields'] = fields unless fields.nil?
|
788
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
789
|
+
execute_or_queue_command(command, &block)
|
790
|
+
end
|
791
|
+
|
638
792
|
# Upload a file into a RagCorpus.
|
639
793
|
# @param [String] parent
|
640
794
|
# Required. The name of the RagCorpus resource into which to upload the file.
|
@@ -982,6 +1136,37 @@ module Google
|
|
982
1136
|
execute_or_queue_command(command, &block)
|
983
1137
|
end
|
984
1138
|
|
1139
|
+
# Gets a RagEngineConfig.
|
1140
|
+
# @param [String] name
|
1141
|
+
# Required. The name of the RagEngineConfig resource. Format: `projects/`project`
|
1142
|
+
# /locations/`location`/ragEngineConfig`
|
1143
|
+
# @param [String] fields
|
1144
|
+
# Selector specifying which fields to include in a partial response.
|
1145
|
+
# @param [String] quota_user
|
1146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1148
|
+
# @param [Google::Apis::RequestOptions] options
|
1149
|
+
# Request-specific options
|
1150
|
+
#
|
1151
|
+
# @yield [result, err] Result & error if block supplied
|
1152
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig] parsed result object
|
1153
|
+
# @yieldparam err [StandardError] error object if request failed
|
1154
|
+
#
|
1155
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig]
|
1156
|
+
#
|
1157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1160
|
+
def get_project_location_rag_engine_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1161
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
1162
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig::Representation
|
1163
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig
|
1164
|
+
command.params['name'] = name unless name.nil?
|
1165
|
+
command.query['fields'] = fields unless fields.nil?
|
1166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1167
|
+
execute_or_queue_command(command, &block)
|
1168
|
+
end
|
1169
|
+
|
985
1170
|
# Lists information about the supported locations for this service.
|
986
1171
|
# @param [String] name
|
987
1172
|
# The resource that owns the locations collection, if applicable.
|
@@ -1064,6 +1249,40 @@ module Google
|
|
1064
1249
|
execute_or_queue_command(command, &block)
|
1065
1250
|
end
|
1066
1251
|
|
1252
|
+
# Updates a RagEngineConfig.
|
1253
|
+
# @param [String] name
|
1254
|
+
# Identifier. The name of the RagEngineConfig. Format: `projects/`project`/
|
1255
|
+
# locations/`location`/ragEngineConfig`
|
1256
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig] google_cloud_aiplatform_v1beta1_rag_engine_config_object
|
1257
|
+
# @param [String] fields
|
1258
|
+
# Selector specifying which fields to include in a partial response.
|
1259
|
+
# @param [String] quota_user
|
1260
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1261
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1262
|
+
# @param [Google::Apis::RequestOptions] options
|
1263
|
+
# Request-specific options
|
1264
|
+
#
|
1265
|
+
# @yield [result, err] Result & error if block supplied
|
1266
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
1267
|
+
# @yieldparam err [StandardError] error object if request failed
|
1268
|
+
#
|
1269
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
1270
|
+
#
|
1271
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1272
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1273
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1274
|
+
def update_project_location_rag_engine_config(name, google_cloud_aiplatform_v1beta1_rag_engine_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1275
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
1276
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig::Representation
|
1277
|
+
command.request_object = google_cloud_aiplatform_v1beta1_rag_engine_config_object
|
1278
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
1279
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
1280
|
+
command.params['name'] = name unless name.nil?
|
1281
|
+
command.query['fields'] = fields unless fields.nil?
|
1282
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1283
|
+
execute_or_queue_command(command, &block)
|
1284
|
+
end
|
1285
|
+
|
1067
1286
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1068
1287
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1069
1288
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -6176,8 +6395,7 @@ module Google
|
|
6176
6395
|
# Required. Display name of the ExampleStore.
|
6177
6396
|
# @param [String] example_store_example_store_config_vertex_embedding_model
|
6178
6397
|
# Required. The embedding model to be used for vector embedding. Immutable.
|
6179
|
-
# Supported models: * "
|
6180
|
-
# embedding-005" * "text-multilingual-embedding-002"
|
6398
|
+
# Supported models: * "text-embedding-005" * "text-multilingual-embedding-002"
|
6181
6399
|
# @param [String] example_store_name
|
6182
6400
|
# Identifier. The resource name of the ExampleStore. This is a unique identifier.
|
6183
6401
|
# Format: projects/`project`/locations/`location`/exampleStores/`example_store`
|
@@ -20556,6 +20774,37 @@ module Google
|
|
20556
20774
|
execute_or_queue_command(command, &block)
|
20557
20775
|
end
|
20558
20776
|
|
20777
|
+
# Fetches the configs of publisher models.
|
20778
|
+
# @param [String] name
|
20779
|
+
# Required. The name of the publisher model, in the format of `projects/`project`
|
20780
|
+
# /locations/`location`/publishers/`publisher`/models/`model``.
|
20781
|
+
# @param [String] fields
|
20782
|
+
# Selector specifying which fields to include in a partial response.
|
20783
|
+
# @param [String] quota_user
|
20784
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20785
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20786
|
+
# @param [Google::Apis::RequestOptions] options
|
20787
|
+
# Request-specific options
|
20788
|
+
#
|
20789
|
+
# @yield [result, err] Result & error if block supplied
|
20790
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig] parsed result object
|
20791
|
+
# @yieldparam err [StandardError] error object if request failed
|
20792
|
+
#
|
20793
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig]
|
20794
|
+
#
|
20795
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20796
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20797
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20798
|
+
def fetch_project_location_publisher_model_publisher_model_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
20799
|
+
command = make_simple_command(:get, 'v1beta1/{+name}:fetchPublisherModelConfig', options)
|
20800
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig::Representation
|
20801
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig
|
20802
|
+
command.params['name'] = name unless name.nil?
|
20803
|
+
command.query['fields'] = fields unless fields.nil?
|
20804
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20805
|
+
execute_or_queue_command(command, &block)
|
20806
|
+
end
|
20807
|
+
|
20559
20808
|
# Generate content with multimodal inputs.
|
20560
20809
|
# @param [String] model
|
20561
20810
|
# Required. The fully qualified name of the publisher model or tuned model
|
@@ -20778,6 +21027,41 @@ module Google
|
|
20778
21027
|
execute_or_queue_command(command, &block)
|
20779
21028
|
end
|
20780
21029
|
|
21030
|
+
# Sets (creates or updates) configs of publisher models. For example, sets the
|
21031
|
+
# request/response logging config.
|
21032
|
+
# @param [String] name
|
21033
|
+
# Required. The name of the publisher model, in the format of `projects/`project`
|
21034
|
+
# /locations/`location`/publishers/`publisher`/models/`model``.
|
21035
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest] google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object
|
21036
|
+
# @param [String] fields
|
21037
|
+
# Selector specifying which fields to include in a partial response.
|
21038
|
+
# @param [String] quota_user
|
21039
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21040
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21041
|
+
# @param [Google::Apis::RequestOptions] options
|
21042
|
+
# Request-specific options
|
21043
|
+
#
|
21044
|
+
# @yield [result, err] Result & error if block supplied
|
21045
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
21046
|
+
# @yieldparam err [StandardError] error object if request failed
|
21047
|
+
#
|
21048
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
21049
|
+
#
|
21050
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21051
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21052
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21053
|
+
def set_project_location_publisher_model_publisher_model_config(name, google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
21054
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:setPublisherModelConfig', options)
|
21055
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest::Representation
|
21056
|
+
command.request_object = google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object
|
21057
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
21058
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
21059
|
+
command.params['name'] = name unless name.nil?
|
21060
|
+
command.query['fields'] = fields unless fields.nil?
|
21061
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21062
|
+
execute_or_queue_command(command, &block)
|
21063
|
+
end
|
21064
|
+
|
20781
21065
|
# Generate content with multimodal inputs with streaming support.
|
20782
21066
|
# @param [String] model
|
20783
21067
|
# Required. The fully qualified name of the publisher model or tuned model
|
@@ -21521,16 +21805,199 @@ module Google
|
|
21521
21805
|
execute_or_queue_command(command, &block)
|
21522
21806
|
end
|
21523
21807
|
|
21524
|
-
#
|
21525
|
-
#
|
21526
|
-
#
|
21527
|
-
#
|
21528
|
-
#
|
21529
|
-
#
|
21530
|
-
#
|
21531
|
-
#
|
21532
|
-
#
|
21533
|
-
#
|
21808
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
21809
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
21810
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
21811
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
21812
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
21813
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
21814
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
21815
|
+
# , corresponding to `Code.CANCELLED`.
|
21816
|
+
# @param [String] name
|
21817
|
+
# The name of the operation resource to be cancelled.
|
21818
|
+
# @param [String] fields
|
21819
|
+
# Selector specifying which fields to include in a partial response.
|
21820
|
+
# @param [String] quota_user
|
21821
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21822
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21823
|
+
# @param [Google::Apis::RequestOptions] options
|
21824
|
+
# Request-specific options
|
21825
|
+
#
|
21826
|
+
# @yield [result, err] Result & error if block supplied
|
21827
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
21828
|
+
# @yieldparam err [StandardError] error object if request failed
|
21829
|
+
#
|
21830
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
21831
|
+
#
|
21832
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21833
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21834
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21835
|
+
def cancel_project_location_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
21836
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
21837
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
21838
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
21839
|
+
command.params['name'] = name unless name.nil?
|
21840
|
+
command.query['fields'] = fields unless fields.nil?
|
21841
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21842
|
+
execute_or_queue_command(command, &block)
|
21843
|
+
end
|
21844
|
+
|
21845
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
21846
|
+
# longer interested in the operation result. It does not cancel the operation.
|
21847
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
21848
|
+
# UNIMPLEMENTED`.
|
21849
|
+
# @param [String] name
|
21850
|
+
# The name of the operation resource to be deleted.
|
21851
|
+
# @param [String] fields
|
21852
|
+
# Selector specifying which fields to include in a partial response.
|
21853
|
+
# @param [String] quota_user
|
21854
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21855
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21856
|
+
# @param [Google::Apis::RequestOptions] options
|
21857
|
+
# Request-specific options
|
21858
|
+
#
|
21859
|
+
# @yield [result, err] Result & error if block supplied
|
21860
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
21861
|
+
# @yieldparam err [StandardError] error object if request failed
|
21862
|
+
#
|
21863
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
21864
|
+
#
|
21865
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21866
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21867
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21868
|
+
def delete_project_location_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
21869
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
21870
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
21871
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
21872
|
+
command.params['name'] = name unless name.nil?
|
21873
|
+
command.query['fields'] = fields unless fields.nil?
|
21874
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21875
|
+
execute_or_queue_command(command, &block)
|
21876
|
+
end
|
21877
|
+
|
21878
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
21879
|
+
# to poll the operation result at intervals as recommended by the API service.
|
21880
|
+
# @param [String] name
|
21881
|
+
# The name of the operation resource.
|
21882
|
+
# @param [String] fields
|
21883
|
+
# Selector specifying which fields to include in a partial response.
|
21884
|
+
# @param [String] quota_user
|
21885
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21886
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21887
|
+
# @param [Google::Apis::RequestOptions] options
|
21888
|
+
# Request-specific options
|
21889
|
+
#
|
21890
|
+
# @yield [result, err] Result & error if block supplied
|
21891
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
21892
|
+
# @yieldparam err [StandardError] error object if request failed
|
21893
|
+
#
|
21894
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
21895
|
+
#
|
21896
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21897
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21898
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21899
|
+
def get_project_location_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
21900
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
21901
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
21902
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
21903
|
+
command.params['name'] = name unless name.nil?
|
21904
|
+
command.query['fields'] = fields unless fields.nil?
|
21905
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21906
|
+
execute_or_queue_command(command, &block)
|
21907
|
+
end
|
21908
|
+
|
21909
|
+
# Lists operations that match the specified filter in the request. If the server
|
21910
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
21911
|
+
# @param [String] name
|
21912
|
+
# The name of the operation's parent resource.
|
21913
|
+
# @param [String] filter
|
21914
|
+
# The standard list filter.
|
21915
|
+
# @param [Fixnum] page_size
|
21916
|
+
# The standard list page size.
|
21917
|
+
# @param [String] page_token
|
21918
|
+
# The standard list page token.
|
21919
|
+
# @param [String] fields
|
21920
|
+
# Selector specifying which fields to include in a partial response.
|
21921
|
+
# @param [String] quota_user
|
21922
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21923
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21924
|
+
# @param [Google::Apis::RequestOptions] options
|
21925
|
+
# Request-specific options
|
21926
|
+
#
|
21927
|
+
# @yield [result, err] Result & error if block supplied
|
21928
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
21929
|
+
# @yieldparam err [StandardError] error object if request failed
|
21930
|
+
#
|
21931
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
21932
|
+
#
|
21933
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21934
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21935
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21936
|
+
def list_project_location_rag_engine_config_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
21937
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
21938
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
21939
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
21940
|
+
command.params['name'] = name unless name.nil?
|
21941
|
+
command.query['filter'] = filter unless filter.nil?
|
21942
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
21943
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
21944
|
+
command.query['fields'] = fields unless fields.nil?
|
21945
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21946
|
+
execute_or_queue_command(command, &block)
|
21947
|
+
end
|
21948
|
+
|
21949
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
21950
|
+
# specified timeout, returning the latest state. If the operation is already
|
21951
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
21952
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
21953
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
21954
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
21955
|
+
# the latest state before the specified timeout (including immediately), meaning
|
21956
|
+
# even an immediate response is no guarantee that the operation is done.
|
21957
|
+
# @param [String] name
|
21958
|
+
# The name of the operation resource to wait on.
|
21959
|
+
# @param [String] timeout
|
21960
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
21961
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
21962
|
+
# context deadline is also specified, the shorter one will be used.
|
21963
|
+
# @param [String] fields
|
21964
|
+
# Selector specifying which fields to include in a partial response.
|
21965
|
+
# @param [String] quota_user
|
21966
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21967
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21968
|
+
# @param [Google::Apis::RequestOptions] options
|
21969
|
+
# Request-specific options
|
21970
|
+
#
|
21971
|
+
# @yield [result, err] Result & error if block supplied
|
21972
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
21973
|
+
# @yieldparam err [StandardError] error object if request failed
|
21974
|
+
#
|
21975
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
21976
|
+
#
|
21977
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21978
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21979
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21980
|
+
def wait_project_location_rag_engine_config_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
21981
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
21982
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
21983
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
21984
|
+
command.params['name'] = name unless name.nil?
|
21985
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
21986
|
+
command.query['fields'] = fields unless fields.nil?
|
21987
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21988
|
+
execute_or_queue_command(command, &block)
|
21989
|
+
end
|
21990
|
+
|
21991
|
+
# Creates a reasoning engine.
|
21992
|
+
# @param [String] parent
|
21993
|
+
# Required. The resource name of the Location to create the ReasoningEngine in.
|
21994
|
+
# Format: `projects/`project`/locations/`location``
|
21995
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object
|
21996
|
+
# @param [String] fields
|
21997
|
+
# Selector specifying which fields to include in a partial response.
|
21998
|
+
# @param [String] quota_user
|
21999
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22000
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21534
22001
|
# @param [Google::Apis::RequestOptions] options
|
21535
22002
|
# Request-specific options
|
21536
22003
|
#
|
@@ -21985,11 +22452,10 @@ module Google
|
|
21985
22452
|
execute_or_queue_command(command, &block)
|
21986
22453
|
end
|
21987
22454
|
|
21988
|
-
# Creates a new Session
|
22455
|
+
# Creates a new Session.
|
21989
22456
|
# @param [String] parent
|
21990
22457
|
# Required. The resource name of the location to create the session in. Format: `
|
21991
|
-
# projects/`project`/locations/`location
|
21992
|
-
# location`/reasoningEngines/`reasoning_engine``
|
22458
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
21993
22459
|
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object
|
21994
22460
|
# @param [String] fields
|
21995
22461
|
# Selector specifying which fields to include in a partial response.
|
@@ -22023,8 +22489,7 @@ module Google
|
|
22023
22489
|
# Deletes details of the specific Session.
|
22024
22490
|
# @param [String] name
|
22025
22491
|
# Required. The resource name of the session. Format: `projects/`project`/
|
22026
|
-
# locations/`location`/sessions/`session``
|
22027
|
-
# location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
22492
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
22028
22493
|
# @param [String] fields
|
22029
22494
|
# Selector specifying which fields to include in a partial response.
|
22030
22495
|
# @param [String] quota_user
|
@@ -22083,7 +22548,7 @@ module Google
|
|
22083
22548
|
execute_or_queue_command(command, &block)
|
22084
22549
|
end
|
22085
22550
|
|
22086
|
-
# Lists Sessions in a given
|
22551
|
+
# Lists Sessions in a given reasoning engine.
|
22087
22552
|
# @param [String] parent
|
22088
22553
|
# Required. The resource name of the location to list sessions from. Format: `
|
22089
22554
|
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
@@ -22177,7 +22642,8 @@ module Google
|
|
22177
22642
|
# sessions/`session``
|
22178
22643
|
# @param [Fixnum] page_size
|
22179
22644
|
# Optional. The maximum number of events to return. The service may return fewer
|
22180
|
-
# than this value. If unspecified, at most 100 events will be returned.
|
22645
|
+
# than this value. If unspecified, at most 100 events will be returned. These
|
22646
|
+
# events are ordered by timestamp in ascending order.
|
22181
22647
|
# @param [String] page_token
|
22182
22648
|
# Optional. The next_page_token value returned from a previous list
|
22183
22649
|
# SessionService.ListEvents call.
|
@@ -22671,191 +23137,6 @@ module Google
|
|
22671
23137
|
execute_or_queue_command(command, &block)
|
22672
23138
|
end
|
22673
23139
|
|
22674
|
-
# Creates a new Session in a given project and location.
|
22675
|
-
# @param [String] parent
|
22676
|
-
# Required. The resource name of the location to create the session in. Format: `
|
22677
|
-
# projects/`project`/locations/`location`` or `projects/`project`/locations/`
|
22678
|
-
# location`/reasoningEngines/`reasoning_engine``
|
22679
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object
|
22680
|
-
# @param [String] fields
|
22681
|
-
# Selector specifying which fields to include in a partial response.
|
22682
|
-
# @param [String] quota_user
|
22683
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
22684
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22685
|
-
# @param [Google::Apis::RequestOptions] options
|
22686
|
-
# Request-specific options
|
22687
|
-
#
|
22688
|
-
# @yield [result, err] Result & error if block supplied
|
22689
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
22690
|
-
# @yieldparam err [StandardError] error object if request failed
|
22691
|
-
#
|
22692
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
22693
|
-
#
|
22694
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22695
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22696
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22697
|
-
def create_project_location_session(parent, google_cloud_aiplatform_v1beta1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
22698
|
-
command = make_simple_command(:post, 'v1beta1/{+parent}/sessions', options)
|
22699
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
22700
|
-
command.request_object = google_cloud_aiplatform_v1beta1_session_object
|
22701
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
22702
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
22703
|
-
command.params['parent'] = parent unless parent.nil?
|
22704
|
-
command.query['fields'] = fields unless fields.nil?
|
22705
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22706
|
-
execute_or_queue_command(command, &block)
|
22707
|
-
end
|
22708
|
-
|
22709
|
-
# Deletes details of the specific Session.
|
22710
|
-
# @param [String] name
|
22711
|
-
# Required. The resource name of the session. Format: `projects/`project`/
|
22712
|
-
# locations/`location`/sessions/`session`` or `projects/`project`/locations/`
|
22713
|
-
# location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
22714
|
-
# @param [String] fields
|
22715
|
-
# Selector specifying which fields to include in a partial response.
|
22716
|
-
# @param [String] quota_user
|
22717
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
22718
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22719
|
-
# @param [Google::Apis::RequestOptions] options
|
22720
|
-
# Request-specific options
|
22721
|
-
#
|
22722
|
-
# @yield [result, err] Result & error if block supplied
|
22723
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
22724
|
-
# @yieldparam err [StandardError] error object if request failed
|
22725
|
-
#
|
22726
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
22727
|
-
#
|
22728
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22729
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22730
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22731
|
-
def delete_project_location_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
22732
|
-
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
22733
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
22734
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
22735
|
-
command.params['name'] = name unless name.nil?
|
22736
|
-
command.query['fields'] = fields unless fields.nil?
|
22737
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22738
|
-
execute_or_queue_command(command, &block)
|
22739
|
-
end
|
22740
|
-
|
22741
|
-
# Gets details of the specific Session.
|
22742
|
-
# @param [String] name
|
22743
|
-
# Required. The resource name of the session. Format: `projects/`project`/
|
22744
|
-
# locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
22745
|
-
# @param [String] fields
|
22746
|
-
# Selector specifying which fields to include in a partial response.
|
22747
|
-
# @param [String] quota_user
|
22748
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
22749
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22750
|
-
# @param [Google::Apis::RequestOptions] options
|
22751
|
-
# Request-specific options
|
22752
|
-
#
|
22753
|
-
# @yield [result, err] Result & error if block supplied
|
22754
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object
|
22755
|
-
# @yieldparam err [StandardError] error object if request failed
|
22756
|
-
#
|
22757
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session]
|
22758
|
-
#
|
22759
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22760
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22761
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22762
|
-
def get_project_location_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
22763
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
22764
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
22765
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session
|
22766
|
-
command.params['name'] = name unless name.nil?
|
22767
|
-
command.query['fields'] = fields unless fields.nil?
|
22768
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22769
|
-
execute_or_queue_command(command, &block)
|
22770
|
-
end
|
22771
|
-
|
22772
|
-
# Lists Sessions in a given project and location.
|
22773
|
-
# @param [String] parent
|
22774
|
-
# Required. The resource name of the location to list sessions from. Format: `
|
22775
|
-
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
22776
|
-
# @param [String] filter
|
22777
|
-
# Optional. The standard list filter. Supported fields: * `display_name` Example:
|
22778
|
-
# `display_name=abc`.
|
22779
|
-
# @param [String] order_by
|
22780
|
-
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
22781
|
-
# order. Use "desc" after a field name for descending. Supported fields: * `
|
22782
|
-
# create_time` * `update_time` Example: `create_time desc`.
|
22783
|
-
# @param [Fixnum] page_size
|
22784
|
-
# Optional. The maximum number of sessions to return. The service may return
|
22785
|
-
# fewer than this value. If unspecified, at most 100 sessions will be returned.
|
22786
|
-
# @param [String] page_token
|
22787
|
-
# Optional. The next_page_token value returned from a previous list
|
22788
|
-
# SessionService.ListSessions call.
|
22789
|
-
# @param [String] fields
|
22790
|
-
# Selector specifying which fields to include in a partial response.
|
22791
|
-
# @param [String] quota_user
|
22792
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
22793
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22794
|
-
# @param [Google::Apis::RequestOptions] options
|
22795
|
-
# Request-specific options
|
22796
|
-
#
|
22797
|
-
# @yield [result, err] Result & error if block supplied
|
22798
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] parsed result object
|
22799
|
-
# @yieldparam err [StandardError] error object if request failed
|
22800
|
-
#
|
22801
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse]
|
22802
|
-
#
|
22803
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22804
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22805
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22806
|
-
def list_project_location_sessions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
22807
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/sessions', options)
|
22808
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse::Representation
|
22809
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse
|
22810
|
-
command.params['parent'] = parent unless parent.nil?
|
22811
|
-
command.query['filter'] = filter unless filter.nil?
|
22812
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
22813
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
22814
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
22815
|
-
command.query['fields'] = fields unless fields.nil?
|
22816
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22817
|
-
execute_or_queue_command(command, &block)
|
22818
|
-
end
|
22819
|
-
|
22820
|
-
# Updates the specific Session.
|
22821
|
-
# @param [String] name
|
22822
|
-
# Required. Identifier. The resource name of the session. Format: 'projects/`
|
22823
|
-
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`
|
22824
|
-
# session`'.
|
22825
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object
|
22826
|
-
# @param [String] update_mask
|
22827
|
-
# Optional. Field mask is used to control which fields get updated. If the mask
|
22828
|
-
# is not present, all fields will be updated.
|
22829
|
-
# @param [String] fields
|
22830
|
-
# Selector specifying which fields to include in a partial response.
|
22831
|
-
# @param [String] quota_user
|
22832
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
22833
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22834
|
-
# @param [Google::Apis::RequestOptions] options
|
22835
|
-
# Request-specific options
|
22836
|
-
#
|
22837
|
-
# @yield [result, err] Result & error if block supplied
|
22838
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object
|
22839
|
-
# @yieldparam err [StandardError] error object if request failed
|
22840
|
-
#
|
22841
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session]
|
22842
|
-
#
|
22843
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22844
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22845
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22846
|
-
def patch_project_location_session(name, google_cloud_aiplatform_v1beta1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
22847
|
-
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
22848
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
22849
|
-
command.request_object = google_cloud_aiplatform_v1beta1_session_object
|
22850
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
22851
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session
|
22852
|
-
command.params['name'] = name unless name.nil?
|
22853
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
22854
|
-
command.query['fields'] = fields unless fields.nil?
|
22855
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22856
|
-
execute_or_queue_command(command, &block)
|
22857
|
-
end
|
22858
|
-
|
22859
23140
|
# Deletes a long-running operation. This method indicates that the client is no
|
22860
23141
|
# longer interested in the operation result. It does not cancel the operation.
|
22861
23142
|
# If the server doesn't support this method, it returns `google.rpc.Code.
|