google-apis-aiplatform_v1beta1 0.41.0 → 0.43.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 +1901 -21
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +979 -3
- data/lib/google/apis/aiplatform_v1beta1/service.rb +1489 -92
- metadata +3 -3
@@ -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,9 +1136,43 @@ 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.
|
1173
|
+
# @param [Array<String>, String] extra_location_types
|
1174
|
+
# Optional. A list of extra location types that should be used as conditions for
|
1175
|
+
# controlling the visibility of the locations.
|
988
1176
|
# @param [String] filter
|
989
1177
|
# A filter to narrow down results to a preferred subset. The filtering language
|
990
1178
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -1012,11 +1200,12 @@ module Google
|
|
1012
1200
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1013
1201
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1014
1202
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1015
|
-
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1203
|
+
def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1016
1204
|
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
|
1017
1205
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse::Representation
|
1018
1206
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse
|
1019
1207
|
command.params['name'] = name unless name.nil?
|
1208
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
1020
1209
|
command.query['filter'] = filter unless filter.nil?
|
1021
1210
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1022
1211
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1060,6 +1249,40 @@ module Google
|
|
1060
1249
|
execute_or_queue_command(command, &block)
|
1061
1250
|
end
|
1062
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
|
+
|
1063
1286
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1064
1287
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1065
1288
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -6160,16 +6383,24 @@ module Google
|
|
6160
6383
|
execute_or_queue_command(command, &block)
|
6161
6384
|
end
|
6162
6385
|
|
6163
|
-
#
|
6164
|
-
#
|
6165
|
-
#
|
6166
|
-
#
|
6167
|
-
#
|
6168
|
-
#
|
6169
|
-
#
|
6170
|
-
#
|
6171
|
-
# @param [String]
|
6172
|
-
#
|
6386
|
+
# Create an ExampleStore.
|
6387
|
+
# @param [String] parent
|
6388
|
+
# Required. The resource name of the Location to create the ExampleStore in.
|
6389
|
+
# Format: `projects/`project`/locations/`location``
|
6390
|
+
# @param [String] example_store_create_time
|
6391
|
+
# Output only. Timestamp when this ExampleStore was created.
|
6392
|
+
# @param [String] example_store_description
|
6393
|
+
# Optional. Description of the ExampleStore.
|
6394
|
+
# @param [String] example_store_display_name
|
6395
|
+
# Required. Display name of the ExampleStore.
|
6396
|
+
# @param [String] example_store_example_store_config_vertex_embedding_model
|
6397
|
+
# Required. The embedding model to be used for vector embedding. Immutable.
|
6398
|
+
# Supported models: * "text-embedding-005" * "text-multilingual-embedding-002"
|
6399
|
+
# @param [String] example_store_name
|
6400
|
+
# Identifier. The resource name of the ExampleStore. This is a unique identifier.
|
6401
|
+
# Format: projects/`project`/locations/`location`/exampleStores/`example_store`
|
6402
|
+
# @param [String] example_store_update_time
|
6403
|
+
# Output only. Timestamp when this ExampleStore was most recently updated.
|
6173
6404
|
# @param [String] fields
|
6174
6405
|
# Selector specifying which fields to include in a partial response.
|
6175
6406
|
# @param [String] quota_user
|
@@ -6179,30 +6410,34 @@ module Google
|
|
6179
6410
|
# Request-specific options
|
6180
6411
|
#
|
6181
6412
|
# @yield [result, err] Result & error if block supplied
|
6182
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
6413
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6183
6414
|
# @yieldparam err [StandardError] error object if request failed
|
6184
6415
|
#
|
6185
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
6416
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
6186
6417
|
#
|
6187
6418
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6188
6419
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6189
6420
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6190
|
-
def
|
6191
|
-
command = make_simple_command(:post, 'v1beta1/{+
|
6192
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
6193
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
6194
|
-
command.params['
|
6421
|
+
def create_project_location_example_store(parent, example_store_create_time: nil, example_store_description: nil, example_store_display_name: nil, example_store_example_store_config_vertex_embedding_model: nil, example_store_name: nil, example_store_update_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6422
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/exampleStores:create', options)
|
6423
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6424
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6425
|
+
command.params['parent'] = parent unless parent.nil?
|
6426
|
+
command.query['exampleStore.createTime'] = example_store_create_time unless example_store_create_time.nil?
|
6427
|
+
command.query['exampleStore.description'] = example_store_description unless example_store_description.nil?
|
6428
|
+
command.query['exampleStore.displayName'] = example_store_display_name unless example_store_display_name.nil?
|
6429
|
+
command.query['exampleStore.exampleStoreConfig.vertexEmbeddingModel'] = example_store_example_store_config_vertex_embedding_model unless example_store_example_store_config_vertex_embedding_model.nil?
|
6430
|
+
command.query['exampleStore.name'] = example_store_name unless example_store_name.nil?
|
6431
|
+
command.query['exampleStore.updateTime'] = example_store_update_time unless example_store_update_time.nil?
|
6195
6432
|
command.query['fields'] = fields unless fields.nil?
|
6196
6433
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6197
6434
|
execute_or_queue_command(command, &block)
|
6198
6435
|
end
|
6199
6436
|
|
6200
|
-
#
|
6201
|
-
# longer interested in the operation result. It does not cancel the operation.
|
6202
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
6203
|
-
# UNIMPLEMENTED`.
|
6437
|
+
# Delete an ExampleStore.
|
6204
6438
|
# @param [String] name
|
6205
|
-
# The name of the
|
6439
|
+
# Required. The resource name of the ExampleStore to be deleted. Format: `
|
6440
|
+
# projects/`project`/locations/`location`/exampleStores/`example_store``
|
6206
6441
|
# @param [String] fields
|
6207
6442
|
# Selector specifying which fields to include in a partial response.
|
6208
6443
|
# @param [String] quota_user
|
@@ -6212,28 +6447,30 @@ module Google
|
|
6212
6447
|
# Request-specific options
|
6213
6448
|
#
|
6214
6449
|
# @yield [result, err] Result & error if block supplied
|
6215
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
6450
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6216
6451
|
# @yieldparam err [StandardError] error object if request failed
|
6217
6452
|
#
|
6218
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
6453
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
6219
6454
|
#
|
6220
6455
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6221
6456
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6222
6457
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6223
|
-
def
|
6458
|
+
def delete_project_location_example_store(name, fields: nil, quota_user: nil, options: nil, &block)
|
6224
6459
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
6225
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
6226
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
6460
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6461
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6227
6462
|
command.params['name'] = name unless name.nil?
|
6228
6463
|
command.query['fields'] = fields unless fields.nil?
|
6229
6464
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6230
6465
|
execute_or_queue_command(command, &block)
|
6231
6466
|
end
|
6232
6467
|
|
6233
|
-
#
|
6234
|
-
#
|
6235
|
-
#
|
6236
|
-
#
|
6468
|
+
# Get Examples from the Example Store.
|
6469
|
+
# @param [String] example_store
|
6470
|
+
# Required. The name of the ExampleStore resource that the examples should be
|
6471
|
+
# fetched from. Format: `projects/`project`/locations/`location`/exampleStores/`
|
6472
|
+
# example_store``
|
6473
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesRequest] google_cloud_aiplatform_v1beta1_fetch_examples_request_object
|
6237
6474
|
# @param [String] fields
|
6238
6475
|
# Selector specifying which fields to include in a partial response.
|
6239
6476
|
# @param [String] quota_user
|
@@ -6243,34 +6480,352 @@ module Google
|
|
6243
6480
|
# Request-specific options
|
6244
6481
|
#
|
6245
6482
|
# @yield [result, err] Result & error if block supplied
|
6246
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
6483
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse] parsed result object
|
6247
6484
|
# @yieldparam err [StandardError] error object if request failed
|
6248
6485
|
#
|
6249
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
6486
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse]
|
6250
6487
|
#
|
6251
6488
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6252
6489
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6253
6490
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6254
|
-
def
|
6255
|
-
command = make_simple_command(:
|
6256
|
-
command.
|
6257
|
-
command.
|
6258
|
-
command.
|
6491
|
+
def fetch_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_fetch_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6492
|
+
command = make_simple_command(:post, 'v1beta1/{+exampleStore}:fetchExamples', options)
|
6493
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesRequest::Representation
|
6494
|
+
command.request_object = google_cloud_aiplatform_v1beta1_fetch_examples_request_object
|
6495
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse::Representation
|
6496
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse
|
6497
|
+
command.params['exampleStore'] = example_store unless example_store.nil?
|
6259
6498
|
command.query['fields'] = fields unless fields.nil?
|
6260
6499
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6261
6500
|
execute_or_queue_command(command, &block)
|
6262
6501
|
end
|
6263
6502
|
|
6264
|
-
#
|
6265
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
6503
|
+
# Get an ExampleStore.
|
6266
6504
|
# @param [String] name
|
6267
|
-
# The name of the
|
6268
|
-
#
|
6269
|
-
#
|
6270
|
-
#
|
6271
|
-
#
|
6272
|
-
#
|
6273
|
-
#
|
6505
|
+
# Required. The resource name of the ExampleStore. Format: `projects/`project`/
|
6506
|
+
# locations/`location`/exampleStores/`example_store``
|
6507
|
+
# @param [String] fields
|
6508
|
+
# Selector specifying which fields to include in a partial response.
|
6509
|
+
# @param [String] quota_user
|
6510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6512
|
+
# @param [Google::Apis::RequestOptions] options
|
6513
|
+
# Request-specific options
|
6514
|
+
#
|
6515
|
+
# @yield [result, err] Result & error if block supplied
|
6516
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore] parsed result object
|
6517
|
+
# @yieldparam err [StandardError] error object if request failed
|
6518
|
+
#
|
6519
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore]
|
6520
|
+
#
|
6521
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6522
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6523
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6524
|
+
def get_project_location_example_store(name, fields: nil, quota_user: nil, options: nil, &block)
|
6525
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
6526
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore::Representation
|
6527
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore
|
6528
|
+
command.params['name'] = name unless name.nil?
|
6529
|
+
command.query['fields'] = fields unless fields.nil?
|
6530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6531
|
+
execute_or_queue_command(command, &block)
|
6532
|
+
end
|
6533
|
+
|
6534
|
+
# List ExampleStores in a Location.
|
6535
|
+
# @param [String] parent
|
6536
|
+
# Required. The resource name of the Location to list the ExampleStores from.
|
6537
|
+
# Format: `projects/`project`/locations/`location``
|
6538
|
+
# @param [String] filter
|
6539
|
+
# Optional. The standard list filter. More detail in [AIP-160](https://google.
|
6540
|
+
# aip.dev/160).
|
6541
|
+
# @param [Fixnum] page_size
|
6542
|
+
# Optional. The standard list page size.
|
6543
|
+
# @param [String] page_token
|
6544
|
+
# Optional. The standard list page token.
|
6545
|
+
# @param [String] fields
|
6546
|
+
# Selector specifying which fields to include in a partial response.
|
6547
|
+
# @param [String] quota_user
|
6548
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6549
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6550
|
+
# @param [Google::Apis::RequestOptions] options
|
6551
|
+
# Request-specific options
|
6552
|
+
#
|
6553
|
+
# @yield [result, err] Result & error if block supplied
|
6554
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse] parsed result object
|
6555
|
+
# @yieldparam err [StandardError] error object if request failed
|
6556
|
+
#
|
6557
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse]
|
6558
|
+
#
|
6559
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6560
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6561
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6562
|
+
def list_project_location_example_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6563
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/exampleStores', options)
|
6564
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse::Representation
|
6565
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse
|
6566
|
+
command.params['parent'] = parent unless parent.nil?
|
6567
|
+
command.query['filter'] = filter unless filter.nil?
|
6568
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
6569
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
6570
|
+
command.query['fields'] = fields unless fields.nil?
|
6571
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6572
|
+
execute_or_queue_command(command, &block)
|
6573
|
+
end
|
6574
|
+
|
6575
|
+
# Update an ExampleStore.
|
6576
|
+
# @param [String] name
|
6577
|
+
# Identifier. The resource name of the ExampleStore. This is a unique identifier.
|
6578
|
+
# Format: projects/`project`/locations/`location`/exampleStores/`example_store`
|
6579
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore] google_cloud_aiplatform_v1beta1_example_store_object
|
6580
|
+
# @param [String] update_mask
|
6581
|
+
# Optional. Mask specifying which fields to update. Supported fields: * `
|
6582
|
+
# display_name` * `description`
|
6583
|
+
# @param [String] fields
|
6584
|
+
# Selector specifying which fields to include in a partial response.
|
6585
|
+
# @param [String] quota_user
|
6586
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6587
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6588
|
+
# @param [Google::Apis::RequestOptions] options
|
6589
|
+
# Request-specific options
|
6590
|
+
#
|
6591
|
+
# @yield [result, err] Result & error if block supplied
|
6592
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6593
|
+
# @yieldparam err [StandardError] error object if request failed
|
6594
|
+
#
|
6595
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
6596
|
+
#
|
6597
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6598
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6599
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6600
|
+
def patch_project_location_example_store(name, google_cloud_aiplatform_v1beta1_example_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6601
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
6602
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore::Representation
|
6603
|
+
command.request_object = google_cloud_aiplatform_v1beta1_example_store_object
|
6604
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6605
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6606
|
+
command.params['name'] = name unless name.nil?
|
6607
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
6608
|
+
command.query['fields'] = fields unless fields.nil?
|
6609
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6610
|
+
execute_or_queue_command(command, &block)
|
6611
|
+
end
|
6612
|
+
|
6613
|
+
# Remove Examples from the Example Store.
|
6614
|
+
# @param [String] example_store
|
6615
|
+
# Required. The name of the ExampleStore resource that the examples should be
|
6616
|
+
# removed from. Format: `projects/`project`/locations/`location`/exampleStores/`
|
6617
|
+
# example_store``
|
6618
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesRequest] google_cloud_aiplatform_v1beta1_remove_examples_request_object
|
6619
|
+
# @param [String] fields
|
6620
|
+
# Selector specifying which fields to include in a partial response.
|
6621
|
+
# @param [String] quota_user
|
6622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6624
|
+
# @param [Google::Apis::RequestOptions] options
|
6625
|
+
# Request-specific options
|
6626
|
+
#
|
6627
|
+
# @yield [result, err] Result & error if block supplied
|
6628
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse] parsed result object
|
6629
|
+
# @yieldparam err [StandardError] error object if request failed
|
6630
|
+
#
|
6631
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse]
|
6632
|
+
#
|
6633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6636
|
+
def remove_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_remove_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6637
|
+
command = make_simple_command(:post, 'v1beta1/{+exampleStore}:removeExamples', options)
|
6638
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesRequest::Representation
|
6639
|
+
command.request_object = google_cloud_aiplatform_v1beta1_remove_examples_request_object
|
6640
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse::Representation
|
6641
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse
|
6642
|
+
command.params['exampleStore'] = example_store unless example_store.nil?
|
6643
|
+
command.query['fields'] = fields unless fields.nil?
|
6644
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6645
|
+
execute_or_queue_command(command, &block)
|
6646
|
+
end
|
6647
|
+
|
6648
|
+
# Search for similar Examples for given selection criteria.
|
6649
|
+
# @param [String] example_store
|
6650
|
+
# Required. The name of the ExampleStore resource that examples are retrieved
|
6651
|
+
# from. Format: `projects/`project`/locations/`location`/exampleStores/`
|
6652
|
+
# example_store``
|
6653
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesRequest] google_cloud_aiplatform_v1beta1_search_examples_request_object
|
6654
|
+
# @param [String] fields
|
6655
|
+
# Selector specifying which fields to include in a partial response.
|
6656
|
+
# @param [String] quota_user
|
6657
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6658
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6659
|
+
# @param [Google::Apis::RequestOptions] options
|
6660
|
+
# Request-specific options
|
6661
|
+
#
|
6662
|
+
# @yield [result, err] Result & error if block supplied
|
6663
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse] parsed result object
|
6664
|
+
# @yieldparam err [StandardError] error object if request failed
|
6665
|
+
#
|
6666
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse]
|
6667
|
+
#
|
6668
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6669
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6670
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6671
|
+
def search_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_search_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6672
|
+
command = make_simple_command(:post, 'v1beta1/{+exampleStore}:searchExamples', options)
|
6673
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesRequest::Representation
|
6674
|
+
command.request_object = google_cloud_aiplatform_v1beta1_search_examples_request_object
|
6675
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse::Representation
|
6676
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse
|
6677
|
+
command.params['exampleStore'] = example_store unless example_store.nil?
|
6678
|
+
command.query['fields'] = fields unless fields.nil?
|
6679
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6680
|
+
execute_or_queue_command(command, &block)
|
6681
|
+
end
|
6682
|
+
|
6683
|
+
# Create or update Examples in the Example Store.
|
6684
|
+
# @param [String] example_store
|
6685
|
+
# Required. The name of the ExampleStore resource that examples are added to or
|
6686
|
+
# updated in. Format: `projects/`project`/locations/`location`/exampleStores/`
|
6687
|
+
# example_store``
|
6688
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesRequest] google_cloud_aiplatform_v1beta1_upsert_examples_request_object
|
6689
|
+
# @param [String] fields
|
6690
|
+
# Selector specifying which fields to include in a partial response.
|
6691
|
+
# @param [String] quota_user
|
6692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6694
|
+
# @param [Google::Apis::RequestOptions] options
|
6695
|
+
# Request-specific options
|
6696
|
+
#
|
6697
|
+
# @yield [result, err] Result & error if block supplied
|
6698
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse] parsed result object
|
6699
|
+
# @yieldparam err [StandardError] error object if request failed
|
6700
|
+
#
|
6701
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse]
|
6702
|
+
#
|
6703
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6704
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6705
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6706
|
+
def upsert_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_upsert_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6707
|
+
command = make_simple_command(:post, 'v1beta1/{+exampleStore}:upsertExamples', options)
|
6708
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesRequest::Representation
|
6709
|
+
command.request_object = google_cloud_aiplatform_v1beta1_upsert_examples_request_object
|
6710
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse::Representation
|
6711
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse
|
6712
|
+
command.params['exampleStore'] = example_store unless example_store.nil?
|
6713
|
+
command.query['fields'] = fields unless fields.nil?
|
6714
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6715
|
+
execute_or_queue_command(command, &block)
|
6716
|
+
end
|
6717
|
+
|
6718
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
6719
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
6720
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
6721
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
6722
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
6723
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
6724
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
6725
|
+
# , corresponding to `Code.CANCELLED`.
|
6726
|
+
# @param [String] name
|
6727
|
+
# The name of the operation resource to be cancelled.
|
6728
|
+
# @param [String] fields
|
6729
|
+
# Selector specifying which fields to include in a partial response.
|
6730
|
+
# @param [String] quota_user
|
6731
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6732
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6733
|
+
# @param [Google::Apis::RequestOptions] options
|
6734
|
+
# Request-specific options
|
6735
|
+
#
|
6736
|
+
# @yield [result, err] Result & error if block supplied
|
6737
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
6738
|
+
# @yieldparam err [StandardError] error object if request failed
|
6739
|
+
#
|
6740
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
6741
|
+
#
|
6742
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6743
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6744
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6745
|
+
def cancel_project_location_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
6746
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
6747
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
6748
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
6749
|
+
command.params['name'] = name unless name.nil?
|
6750
|
+
command.query['fields'] = fields unless fields.nil?
|
6751
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6752
|
+
execute_or_queue_command(command, &block)
|
6753
|
+
end
|
6754
|
+
|
6755
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
6756
|
+
# longer interested in the operation result. It does not cancel the operation.
|
6757
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
6758
|
+
# UNIMPLEMENTED`.
|
6759
|
+
# @param [String] name
|
6760
|
+
# The name of the operation resource to be deleted.
|
6761
|
+
# @param [String] fields
|
6762
|
+
# Selector specifying which fields to include in a partial response.
|
6763
|
+
# @param [String] quota_user
|
6764
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6765
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6766
|
+
# @param [Google::Apis::RequestOptions] options
|
6767
|
+
# Request-specific options
|
6768
|
+
#
|
6769
|
+
# @yield [result, err] Result & error if block supplied
|
6770
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
6771
|
+
# @yieldparam err [StandardError] error object if request failed
|
6772
|
+
#
|
6773
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
6774
|
+
#
|
6775
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6776
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6777
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6778
|
+
def delete_project_location_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
6779
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
6780
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
6781
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
6782
|
+
command.params['name'] = name unless name.nil?
|
6783
|
+
command.query['fields'] = fields unless fields.nil?
|
6784
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6785
|
+
execute_or_queue_command(command, &block)
|
6786
|
+
end
|
6787
|
+
|
6788
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
6789
|
+
# to poll the operation result at intervals as recommended by the API service.
|
6790
|
+
# @param [String] name
|
6791
|
+
# The name of the operation resource.
|
6792
|
+
# @param [String] fields
|
6793
|
+
# Selector specifying which fields to include in a partial response.
|
6794
|
+
# @param [String] quota_user
|
6795
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6796
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6797
|
+
# @param [Google::Apis::RequestOptions] options
|
6798
|
+
# Request-specific options
|
6799
|
+
#
|
6800
|
+
# @yield [result, err] Result & error if block supplied
|
6801
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6802
|
+
# @yieldparam err [StandardError] error object if request failed
|
6803
|
+
#
|
6804
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
6805
|
+
#
|
6806
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6807
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6808
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6809
|
+
def get_project_location_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
6810
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
6811
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6812
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6813
|
+
command.params['name'] = name unless name.nil?
|
6814
|
+
command.query['fields'] = fields unless fields.nil?
|
6815
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6816
|
+
execute_or_queue_command(command, &block)
|
6817
|
+
end
|
6818
|
+
|
6819
|
+
# Lists operations that match the specified filter in the request. If the server
|
6820
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
6821
|
+
# @param [String] name
|
6822
|
+
# The name of the operation's parent resource.
|
6823
|
+
# @param [String] filter
|
6824
|
+
# The standard list filter.
|
6825
|
+
# @param [Fixnum] page_size
|
6826
|
+
# The standard list page size.
|
6827
|
+
# @param [String] page_token
|
6828
|
+
# The standard list page token.
|
6274
6829
|
# @param [String] fields
|
6275
6830
|
# Selector specifying which fields to include in a partial response.
|
6276
6831
|
# @param [String] quota_user
|
@@ -8743,7 +9298,43 @@ module Google
|
|
8743
9298
|
execute_or_queue_command(command, &block)
|
8744
9299
|
end
|
8745
9300
|
|
8746
|
-
#
|
9301
|
+
# Bidirectional streaming RPC to directly write to feature values in a feature
|
9302
|
+
# view. Requests may not have a one-to-one mapping to responses and responses
|
9303
|
+
# may be returned out-of-order to reduce latency.
|
9304
|
+
# @param [String] feature_view
|
9305
|
+
# FeatureView resource format `projects/`project`/locations/`location`/
|
9306
|
+
# featureOnlineStores/`featureOnlineStore`/featureViews/`featureView``
|
9307
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest] google_cloud_aiplatform_v1beta1_feature_view_direct_write_request_object
|
9308
|
+
# @param [String] fields
|
9309
|
+
# Selector specifying which fields to include in a partial response.
|
9310
|
+
# @param [String] quota_user
|
9311
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9312
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9313
|
+
# @param [Google::Apis::RequestOptions] options
|
9314
|
+
# Request-specific options
|
9315
|
+
#
|
9316
|
+
# @yield [result, err] Result & error if block supplied
|
9317
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse] parsed result object
|
9318
|
+
# @yieldparam err [StandardError] error object if request failed
|
9319
|
+
#
|
9320
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse]
|
9321
|
+
#
|
9322
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9323
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9324
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9325
|
+
def direct_project_location_feature_online_store_feature_view_write(feature_view, google_cloud_aiplatform_v1beta1_feature_view_direct_write_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
9326
|
+
command = make_simple_command(:post, 'v1beta1/{+featureView}:directWrite', options)
|
9327
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest::Representation
|
9328
|
+
command.request_object = google_cloud_aiplatform_v1beta1_feature_view_direct_write_request_object
|
9329
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse::Representation
|
9330
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse
|
9331
|
+
command.params['featureView'] = feature_view unless feature_view.nil?
|
9332
|
+
command.query['fields'] = fields unless fields.nil?
|
9333
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9334
|
+
execute_or_queue_command(command, &block)
|
9335
|
+
end
|
9336
|
+
|
9337
|
+
# Fetch feature values under a FeatureView.
|
8747
9338
|
# @param [String] feature_view
|
8748
9339
|
# Required. FeatureView resource format `projects/`project`/locations/`location`/
|
8749
9340
|
# featureOnlineStores/`featureOnlineStore`/featureViews/`featureView``
|
@@ -20109,6 +20700,45 @@ module Google
|
|
20109
20700
|
execute_or_queue_command(command, &block)
|
20110
20701
|
end
|
20111
20702
|
|
20703
|
+
# Exports a publisher model to a user provided Google Cloud Storage bucket.
|
20704
|
+
# @param [String] parent
|
20705
|
+
# Required. The Location to export the model weights from Format: `projects/`
|
20706
|
+
# project`/locations/`location``
|
20707
|
+
# @param [String] name
|
20708
|
+
# Required. The name of the PublisherModel resource. Format: `publishers/`
|
20709
|
+
# publisher`/models/`publisher_model`@`version_id``, or `publishers/hf-`hugging-
|
20710
|
+
# face-author`/models/`hugging-face-model-name`@001`
|
20711
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportPublisherModelRequest] google_cloud_aiplatform_v1beta1_export_publisher_model_request_object
|
20712
|
+
# @param [String] fields
|
20713
|
+
# Selector specifying which fields to include in a partial response.
|
20714
|
+
# @param [String] quota_user
|
20715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20717
|
+
# @param [Google::Apis::RequestOptions] options
|
20718
|
+
# Request-specific options
|
20719
|
+
#
|
20720
|
+
# @yield [result, err] Result & error if block supplied
|
20721
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
20722
|
+
# @yieldparam err [StandardError] error object if request failed
|
20723
|
+
#
|
20724
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
20725
|
+
#
|
20726
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20727
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20728
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20729
|
+
def export_project_location_publisher_model(parent, name, google_cloud_aiplatform_v1beta1_export_publisher_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
20730
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/{+name}:export', options)
|
20731
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportPublisherModelRequest::Representation
|
20732
|
+
command.request_object = google_cloud_aiplatform_v1beta1_export_publisher_model_request_object
|
20733
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
20734
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
20735
|
+
command.params['parent'] = parent unless parent.nil?
|
20736
|
+
command.params['name'] = name unless name.nil?
|
20737
|
+
command.query['fields'] = fields unless fields.nil?
|
20738
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20739
|
+
execute_or_queue_command(command, &block)
|
20740
|
+
end
|
20741
|
+
|
20112
20742
|
# Fetch an asynchronous online prediction operation.
|
20113
20743
|
# @param [String] endpoint
|
20114
20744
|
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
@@ -20144,6 +20774,37 @@ module Google
|
|
20144
20774
|
execute_or_queue_command(command, &block)
|
20145
20775
|
end
|
20146
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
|
+
|
20147
20808
|
# Generate content with multimodal inputs.
|
20148
20809
|
# @param [String] model
|
20149
20810
|
# Required. The fully qualified name of the publisher model or tuned model
|
@@ -20366,6 +21027,41 @@ module Google
|
|
20366
21027
|
execute_or_queue_command(command, &block)
|
20367
21028
|
end
|
20368
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
|
+
|
20369
21065
|
# Generate content with multimodal inputs with streaming support.
|
20370
21066
|
# @param [String] model
|
20371
21067
|
# Required. The fully qualified name of the publisher model or tuned model
|
@@ -21109,6 +21805,189 @@ module Google
|
|
21109
21805
|
execute_or_queue_command(command, &block)
|
21110
21806
|
end
|
21111
21807
|
|
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
|
+
|
21112
21991
|
# Creates a reasoning engine.
|
21113
21992
|
# @param [String] parent
|
21114
21993
|
# Required. The resource name of the Location to create the ReasoningEngine in.
|
@@ -21147,6 +22026,10 @@ module Google
|
|
21147
22026
|
# @param [String] name
|
21148
22027
|
# Required. The name of the ReasoningEngine resource to be deleted. Format: `
|
21149
22028
|
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
22029
|
+
# @param [Boolean] force
|
22030
|
+
# Optional. If set to true, child resources of this reasoning engine will also
|
22031
|
+
# be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error
|
22032
|
+
# when the reasoning engine has undeleted child resources.
|
21150
22033
|
# @param [String] fields
|
21151
22034
|
# Selector specifying which fields to include in a partial response.
|
21152
22035
|
# @param [String] quota_user
|
@@ -21164,11 +22047,12 @@ module Google
|
|
21164
22047
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21165
22048
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21166
22049
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21167
|
-
def delete_project_location_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block)
|
22050
|
+
def delete_project_location_reasoning_engine(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
21168
22051
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
21169
22052
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
21170
22053
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
21171
22054
|
command.params['name'] = name unless name.nil?
|
22055
|
+
command.query['force'] = force unless force.nil?
|
21172
22056
|
command.query['fields'] = fields unless fields.nil?
|
21173
22057
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21174
22058
|
execute_or_queue_command(command, &block)
|
@@ -21420,10 +22304,225 @@ module Google
|
|
21420
22304
|
execute_or_queue_command(command, &block)
|
21421
22305
|
end
|
21422
22306
|
|
21423
|
-
# Gets the latest state of a long-running operation. Clients can use this method
|
21424
|
-
# to poll the operation result at intervals as recommended by the API service.
|
22307
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
22308
|
+
# to poll the operation result at intervals as recommended by the API service.
|
22309
|
+
# @param [String] name
|
22310
|
+
# The name of the operation resource.
|
22311
|
+
# @param [String] fields
|
22312
|
+
# Selector specifying which fields to include in a partial response.
|
22313
|
+
# @param [String] quota_user
|
22314
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22315
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22316
|
+
# @param [Google::Apis::RequestOptions] options
|
22317
|
+
# Request-specific options
|
22318
|
+
#
|
22319
|
+
# @yield [result, err] Result & error if block supplied
|
22320
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
22321
|
+
# @yieldparam err [StandardError] error object if request failed
|
22322
|
+
#
|
22323
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
22324
|
+
#
|
22325
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22326
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22327
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22328
|
+
def get_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
22329
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
22330
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
22331
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
22332
|
+
command.params['name'] = name unless name.nil?
|
22333
|
+
command.query['fields'] = fields unless fields.nil?
|
22334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22335
|
+
execute_or_queue_command(command, &block)
|
22336
|
+
end
|
22337
|
+
|
22338
|
+
# Lists operations that match the specified filter in the request. If the server
|
22339
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
22340
|
+
# @param [String] name
|
22341
|
+
# The name of the operation's parent resource.
|
22342
|
+
# @param [String] filter
|
22343
|
+
# The standard list filter.
|
22344
|
+
# @param [Fixnum] page_size
|
22345
|
+
# The standard list page size.
|
22346
|
+
# @param [String] page_token
|
22347
|
+
# The standard list page token.
|
22348
|
+
# @param [String] fields
|
22349
|
+
# Selector specifying which fields to include in a partial response.
|
22350
|
+
# @param [String] quota_user
|
22351
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22352
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22353
|
+
# @param [Google::Apis::RequestOptions] options
|
22354
|
+
# Request-specific options
|
22355
|
+
#
|
22356
|
+
# @yield [result, err] Result & error if block supplied
|
22357
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
22358
|
+
# @yieldparam err [StandardError] error object if request failed
|
22359
|
+
#
|
22360
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
22361
|
+
#
|
22362
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22363
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22364
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22365
|
+
def list_project_location_reasoning_engine_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
22366
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
22367
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
22368
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
22369
|
+
command.params['name'] = name unless name.nil?
|
22370
|
+
command.query['filter'] = filter unless filter.nil?
|
22371
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
22372
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
22373
|
+
command.query['fields'] = fields unless fields.nil?
|
22374
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22375
|
+
execute_or_queue_command(command, &block)
|
22376
|
+
end
|
22377
|
+
|
22378
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
22379
|
+
# specified timeout, returning the latest state. If the operation is already
|
22380
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
22381
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
22382
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
22383
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
22384
|
+
# the latest state before the specified timeout (including immediately), meaning
|
22385
|
+
# even an immediate response is no guarantee that the operation is done.
|
22386
|
+
# @param [String] name
|
22387
|
+
# The name of the operation resource to wait on.
|
22388
|
+
# @param [String] timeout
|
22389
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
22390
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
22391
|
+
# context deadline is also specified, the shorter one will be used.
|
22392
|
+
# @param [String] fields
|
22393
|
+
# Selector specifying which fields to include in a partial response.
|
22394
|
+
# @param [String] quota_user
|
22395
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22396
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22397
|
+
# @param [Google::Apis::RequestOptions] options
|
22398
|
+
# Request-specific options
|
22399
|
+
#
|
22400
|
+
# @yield [result, err] Result & error if block supplied
|
22401
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
22402
|
+
# @yieldparam err [StandardError] error object if request failed
|
22403
|
+
#
|
22404
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
22405
|
+
#
|
22406
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22407
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22408
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22409
|
+
def wait_project_location_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
22410
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
22411
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
22412
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
22413
|
+
command.params['name'] = name unless name.nil?
|
22414
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
22415
|
+
command.query['fields'] = fields unless fields.nil?
|
22416
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22417
|
+
execute_or_queue_command(command, &block)
|
22418
|
+
end
|
22419
|
+
|
22420
|
+
# Appends an event to a given session.
|
22421
|
+
# @param [String] name
|
22422
|
+
# Required. The resource name of the session to append event to. Format: `
|
22423
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
22424
|
+
# sessions/`session``
|
22425
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent] google_cloud_aiplatform_v1beta1_session_event_object
|
22426
|
+
# @param [String] fields
|
22427
|
+
# Selector specifying which fields to include in a partial response.
|
22428
|
+
# @param [String] quota_user
|
22429
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22430
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22431
|
+
# @param [Google::Apis::RequestOptions] options
|
22432
|
+
# Request-specific options
|
22433
|
+
#
|
22434
|
+
# @yield [result, err] Result & error if block supplied
|
22435
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse] parsed result object
|
22436
|
+
# @yieldparam err [StandardError] error object if request failed
|
22437
|
+
#
|
22438
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse]
|
22439
|
+
#
|
22440
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22441
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22442
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22443
|
+
def append_project_location_reasoning_engine_session_event(name, google_cloud_aiplatform_v1beta1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
22444
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:appendEvent', options)
|
22445
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent::Representation
|
22446
|
+
command.request_object = google_cloud_aiplatform_v1beta1_session_event_object
|
22447
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse::Representation
|
22448
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse
|
22449
|
+
command.params['name'] = name unless name.nil?
|
22450
|
+
command.query['fields'] = fields unless fields.nil?
|
22451
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22452
|
+
execute_or_queue_command(command, &block)
|
22453
|
+
end
|
22454
|
+
|
22455
|
+
# Creates a new Session in a given project and location.
|
22456
|
+
# @param [String] parent
|
22457
|
+
# Required. The resource name of the location to create the session in. Format: `
|
22458
|
+
# projects/`project`/locations/`location`` or `projects/`project`/locations/`
|
22459
|
+
# location`/reasoningEngines/`reasoning_engine``
|
22460
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object
|
22461
|
+
# @param [String] fields
|
22462
|
+
# Selector specifying which fields to include in a partial response.
|
22463
|
+
# @param [String] quota_user
|
22464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22466
|
+
# @param [Google::Apis::RequestOptions] options
|
22467
|
+
# Request-specific options
|
22468
|
+
#
|
22469
|
+
# @yield [result, err] Result & error if block supplied
|
22470
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
22471
|
+
# @yieldparam err [StandardError] error object if request failed
|
22472
|
+
#
|
22473
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
22474
|
+
#
|
22475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22478
|
+
def create_project_location_reasoning_engine_session(parent, google_cloud_aiplatform_v1beta1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
22479
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/sessions', options)
|
22480
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
22481
|
+
command.request_object = google_cloud_aiplatform_v1beta1_session_object
|
22482
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
22483
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
22484
|
+
command.params['parent'] = parent unless parent.nil?
|
22485
|
+
command.query['fields'] = fields unless fields.nil?
|
22486
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22487
|
+
execute_or_queue_command(command, &block)
|
22488
|
+
end
|
22489
|
+
|
22490
|
+
# Deletes details of the specific Session.
|
22491
|
+
# @param [String] name
|
22492
|
+
# Required. The resource name of the session. Format: `projects/`project`/
|
22493
|
+
# locations/`location`/sessions/`session`` or `projects/`project`/locations/`
|
22494
|
+
# location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
22495
|
+
# @param [String] fields
|
22496
|
+
# Selector specifying which fields to include in a partial response.
|
22497
|
+
# @param [String] quota_user
|
22498
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22499
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22500
|
+
# @param [Google::Apis::RequestOptions] options
|
22501
|
+
# Request-specific options
|
22502
|
+
#
|
22503
|
+
# @yield [result, err] Result & error if block supplied
|
22504
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
22505
|
+
# @yieldparam err [StandardError] error object if request failed
|
22506
|
+
#
|
22507
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
22508
|
+
#
|
22509
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22510
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22511
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22512
|
+
def delete_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
22513
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
22514
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
22515
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
22516
|
+
command.params['name'] = name unless name.nil?
|
22517
|
+
command.query['fields'] = fields unless fields.nil?
|
22518
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22519
|
+
execute_or_queue_command(command, &block)
|
22520
|
+
end
|
22521
|
+
|
22522
|
+
# Gets details of the specific Session.
|
21425
22523
|
# @param [String] name
|
21426
|
-
# The name of the
|
22524
|
+
# Required. The resource name of the session. Format: `projects/`project`/
|
22525
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
21427
22526
|
# @param [String] fields
|
21428
22527
|
# Selector specifying which fields to include in a partial response.
|
21429
22528
|
# @param [String] quota_user
|
@@ -21433,34 +22532,41 @@ module Google
|
|
21433
22532
|
# Request-specific options
|
21434
22533
|
#
|
21435
22534
|
# @yield [result, err] Result & error if block supplied
|
21436
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
22535
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object
|
21437
22536
|
# @yieldparam err [StandardError] error object if request failed
|
21438
22537
|
#
|
21439
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
22538
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session]
|
21440
22539
|
#
|
21441
22540
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21442
22541
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21443
22542
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21444
|
-
def
|
22543
|
+
def get_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
21445
22544
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
21446
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
21447
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
22545
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
22546
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session
|
21448
22547
|
command.params['name'] = name unless name.nil?
|
21449
22548
|
command.query['fields'] = fields unless fields.nil?
|
21450
22549
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21451
22550
|
execute_or_queue_command(command, &block)
|
21452
22551
|
end
|
21453
22552
|
|
21454
|
-
# Lists
|
21455
|
-
#
|
21456
|
-
#
|
21457
|
-
#
|
22553
|
+
# Lists Sessions in a given project and location.
|
22554
|
+
# @param [String] parent
|
22555
|
+
# Required. The resource name of the location to list sessions from. Format: `
|
22556
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
21458
22557
|
# @param [String] filter
|
21459
|
-
# The standard list filter.
|
22558
|
+
# Optional. The standard list filter. Supported fields: * `display_name` Example:
|
22559
|
+
# `display_name=abc`.
|
22560
|
+
# @param [String] order_by
|
22561
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
22562
|
+
# order. Use "desc" after a field name for descending. Supported fields: * `
|
22563
|
+
# create_time` * `update_time` Example: `create_time desc`.
|
21460
22564
|
# @param [Fixnum] page_size
|
21461
|
-
# The
|
22565
|
+
# Optional. The maximum number of sessions to return. The service may return
|
22566
|
+
# fewer than this value. If unspecified, at most 100 sessions will be returned.
|
21462
22567
|
# @param [String] page_token
|
21463
|
-
# The
|
22568
|
+
# Optional. The next_page_token value returned from a previous list
|
22569
|
+
# SessionService.ListSessions call.
|
21464
22570
|
# @param [String] fields
|
21465
22571
|
# Selector specifying which fields to include in a partial response.
|
21466
22572
|
# @param [String] quota_user
|
@@ -21470,20 +22576,21 @@ module Google
|
|
21470
22576
|
# Request-specific options
|
21471
22577
|
#
|
21472
22578
|
# @yield [result, err] Result & error if block supplied
|
21473
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
22579
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] parsed result object
|
21474
22580
|
# @yieldparam err [StandardError] error object if request failed
|
21475
22581
|
#
|
21476
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
22582
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse]
|
21477
22583
|
#
|
21478
22584
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21479
22585
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21480
22586
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21481
|
-
def
|
21482
|
-
command = make_simple_command(:get, 'v1beta1/{+
|
21483
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
21484
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
21485
|
-
command.params['
|
22587
|
+
def list_project_location_reasoning_engine_sessions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
22588
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/sessions', options)
|
22589
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse::Representation
|
22590
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse
|
22591
|
+
command.params['parent'] = parent unless parent.nil?
|
21486
22592
|
command.query['filter'] = filter unless filter.nil?
|
22593
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
21487
22594
|
command.query['pageSize'] = page_size unless page_size.nil?
|
21488
22595
|
command.query['pageToken'] = page_token unless page_token.nil?
|
21489
22596
|
command.query['fields'] = fields unless fields.nil?
|
@@ -21491,20 +22598,15 @@ module Google
|
|
21491
22598
|
execute_or_queue_command(command, &block)
|
21492
22599
|
end
|
21493
22600
|
|
21494
|
-
#
|
21495
|
-
# specified timeout, returning the latest state. If the operation is already
|
21496
|
-
# done, the latest state is immediately returned. If the timeout specified is
|
21497
|
-
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
21498
|
-
# the server does not support this method, it returns `google.rpc.Code.
|
21499
|
-
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
21500
|
-
# the latest state before the specified timeout (including immediately), meaning
|
21501
|
-
# even an immediate response is no guarantee that the operation is done.
|
22601
|
+
# Updates the specific Session.
|
21502
22602
|
# @param [String] name
|
21503
|
-
# The name of the
|
21504
|
-
#
|
21505
|
-
#
|
21506
|
-
#
|
21507
|
-
#
|
22603
|
+
# Required. Identifier. The resource name of the session. Format: 'projects/`
|
22604
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`
|
22605
|
+
# session`'.
|
22606
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object
|
22607
|
+
# @param [String] update_mask
|
22608
|
+
# Optional. Field mask is used to control which fields get updated. If the mask
|
22609
|
+
# is not present, all fields will be updated.
|
21508
22610
|
# @param [String] fields
|
21509
22611
|
# Selector specifying which fields to include in a partial response.
|
21510
22612
|
# @param [String] quota_user
|
@@ -21514,20 +22616,62 @@ module Google
|
|
21514
22616
|
# Request-specific options
|
21515
22617
|
#
|
21516
22618
|
# @yield [result, err] Result & error if block supplied
|
21517
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
22619
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object
|
21518
22620
|
# @yieldparam err [StandardError] error object if request failed
|
21519
22621
|
#
|
21520
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
22622
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session]
|
21521
22623
|
#
|
21522
22624
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21523
22625
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21524
22626
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21525
|
-
def
|
21526
|
-
command = make_simple_command(:
|
21527
|
-
command.
|
21528
|
-
command.
|
22627
|
+
def patch_project_location_reasoning_engine_session(name, google_cloud_aiplatform_v1beta1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
22628
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
22629
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
22630
|
+
command.request_object = google_cloud_aiplatform_v1beta1_session_object
|
22631
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
22632
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session
|
21529
22633
|
command.params['name'] = name unless name.nil?
|
21530
|
-
command.query['
|
22634
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
22635
|
+
command.query['fields'] = fields unless fields.nil?
|
22636
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22637
|
+
execute_or_queue_command(command, &block)
|
22638
|
+
end
|
22639
|
+
|
22640
|
+
# Lists Events in a given session.
|
22641
|
+
# @param [String] parent
|
22642
|
+
# Required. The resource name of the session to list events from. Format: `
|
22643
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
22644
|
+
# sessions/`session``
|
22645
|
+
# @param [Fixnum] page_size
|
22646
|
+
# Optional. The maximum number of events to return. The service may return fewer
|
22647
|
+
# than this value. If unspecified, at most 100 events will be returned.
|
22648
|
+
# @param [String] page_token
|
22649
|
+
# Optional. The next_page_token value returned from a previous list
|
22650
|
+
# SessionService.ListEvents call.
|
22651
|
+
# @param [String] fields
|
22652
|
+
# Selector specifying which fields to include in a partial response.
|
22653
|
+
# @param [String] quota_user
|
22654
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22655
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22656
|
+
# @param [Google::Apis::RequestOptions] options
|
22657
|
+
# Request-specific options
|
22658
|
+
#
|
22659
|
+
# @yield [result, err] Result & error if block supplied
|
22660
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse] parsed result object
|
22661
|
+
# @yieldparam err [StandardError] error object if request failed
|
22662
|
+
#
|
22663
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse]
|
22664
|
+
#
|
22665
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22666
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22667
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22668
|
+
def list_project_location_reasoning_engine_session_events(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
22669
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/events', options)
|
22670
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse::Representation
|
22671
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse
|
22672
|
+
command.params['parent'] = parent unless parent.nil?
|
22673
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
22674
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
21531
22675
|
command.query['fields'] = fields unless fields.nil?
|
21532
22676
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21533
22677
|
execute_or_queue_command(command, &block)
|
@@ -21994,6 +23138,191 @@ module Google
|
|
21994
23138
|
execute_or_queue_command(command, &block)
|
21995
23139
|
end
|
21996
23140
|
|
23141
|
+
# Creates a new Session in a given project and location.
|
23142
|
+
# @param [String] parent
|
23143
|
+
# Required. The resource name of the location to create the session in. Format: `
|
23144
|
+
# projects/`project`/locations/`location`` or `projects/`project`/locations/`
|
23145
|
+
# location`/reasoningEngines/`reasoning_engine``
|
23146
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object
|
23147
|
+
# @param [String] fields
|
23148
|
+
# Selector specifying which fields to include in a partial response.
|
23149
|
+
# @param [String] quota_user
|
23150
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
23151
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
23152
|
+
# @param [Google::Apis::RequestOptions] options
|
23153
|
+
# Request-specific options
|
23154
|
+
#
|
23155
|
+
# @yield [result, err] Result & error if block supplied
|
23156
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
23157
|
+
# @yieldparam err [StandardError] error object if request failed
|
23158
|
+
#
|
23159
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
23160
|
+
#
|
23161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23164
|
+
def create_project_location_session(parent, google_cloud_aiplatform_v1beta1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
23165
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/sessions', options)
|
23166
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
23167
|
+
command.request_object = google_cloud_aiplatform_v1beta1_session_object
|
23168
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
23169
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
23170
|
+
command.params['parent'] = parent unless parent.nil?
|
23171
|
+
command.query['fields'] = fields unless fields.nil?
|
23172
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23173
|
+
execute_or_queue_command(command, &block)
|
23174
|
+
end
|
23175
|
+
|
23176
|
+
# Deletes details of the specific Session.
|
23177
|
+
# @param [String] name
|
23178
|
+
# Required. The resource name of the session. Format: `projects/`project`/
|
23179
|
+
# locations/`location`/sessions/`session`` or `projects/`project`/locations/`
|
23180
|
+
# location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
23181
|
+
# @param [String] fields
|
23182
|
+
# Selector specifying which fields to include in a partial response.
|
23183
|
+
# @param [String] quota_user
|
23184
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
23185
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
23186
|
+
# @param [Google::Apis::RequestOptions] options
|
23187
|
+
# Request-specific options
|
23188
|
+
#
|
23189
|
+
# @yield [result, err] Result & error if block supplied
|
23190
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
23191
|
+
# @yieldparam err [StandardError] error object if request failed
|
23192
|
+
#
|
23193
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
23194
|
+
#
|
23195
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23196
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23197
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23198
|
+
def delete_project_location_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
23199
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
23200
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
23201
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
23202
|
+
command.params['name'] = name unless name.nil?
|
23203
|
+
command.query['fields'] = fields unless fields.nil?
|
23204
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23205
|
+
execute_or_queue_command(command, &block)
|
23206
|
+
end
|
23207
|
+
|
23208
|
+
# Gets details of the specific Session.
|
23209
|
+
# @param [String] name
|
23210
|
+
# Required. The resource name of the session. Format: `projects/`project`/
|
23211
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
23212
|
+
# @param [String] fields
|
23213
|
+
# Selector specifying which fields to include in a partial response.
|
23214
|
+
# @param [String] quota_user
|
23215
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
23216
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
23217
|
+
# @param [Google::Apis::RequestOptions] options
|
23218
|
+
# Request-specific options
|
23219
|
+
#
|
23220
|
+
# @yield [result, err] Result & error if block supplied
|
23221
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object
|
23222
|
+
# @yieldparam err [StandardError] error object if request failed
|
23223
|
+
#
|
23224
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session]
|
23225
|
+
#
|
23226
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23227
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23228
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23229
|
+
def get_project_location_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
23230
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
23231
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
23232
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session
|
23233
|
+
command.params['name'] = name unless name.nil?
|
23234
|
+
command.query['fields'] = fields unless fields.nil?
|
23235
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23236
|
+
execute_or_queue_command(command, &block)
|
23237
|
+
end
|
23238
|
+
|
23239
|
+
# Lists Sessions in a given project and location.
|
23240
|
+
# @param [String] parent
|
23241
|
+
# Required. The resource name of the location to list sessions from. Format: `
|
23242
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
23243
|
+
# @param [String] filter
|
23244
|
+
# Optional. The standard list filter. Supported fields: * `display_name` Example:
|
23245
|
+
# `display_name=abc`.
|
23246
|
+
# @param [String] order_by
|
23247
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
23248
|
+
# order. Use "desc" after a field name for descending. Supported fields: * `
|
23249
|
+
# create_time` * `update_time` Example: `create_time desc`.
|
23250
|
+
# @param [Fixnum] page_size
|
23251
|
+
# Optional. The maximum number of sessions to return. The service may return
|
23252
|
+
# fewer than this value. If unspecified, at most 100 sessions will be returned.
|
23253
|
+
# @param [String] page_token
|
23254
|
+
# Optional. The next_page_token value returned from a previous list
|
23255
|
+
# SessionService.ListSessions call.
|
23256
|
+
# @param [String] fields
|
23257
|
+
# Selector specifying which fields to include in a partial response.
|
23258
|
+
# @param [String] quota_user
|
23259
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
23260
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
23261
|
+
# @param [Google::Apis::RequestOptions] options
|
23262
|
+
# Request-specific options
|
23263
|
+
#
|
23264
|
+
# @yield [result, err] Result & error if block supplied
|
23265
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] parsed result object
|
23266
|
+
# @yieldparam err [StandardError] error object if request failed
|
23267
|
+
#
|
23268
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse]
|
23269
|
+
#
|
23270
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23271
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23272
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23273
|
+
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)
|
23274
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/sessions', options)
|
23275
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse::Representation
|
23276
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse
|
23277
|
+
command.params['parent'] = parent unless parent.nil?
|
23278
|
+
command.query['filter'] = filter unless filter.nil?
|
23279
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
23280
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
23281
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
23282
|
+
command.query['fields'] = fields unless fields.nil?
|
23283
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23284
|
+
execute_or_queue_command(command, &block)
|
23285
|
+
end
|
23286
|
+
|
23287
|
+
# Updates the specific Session.
|
23288
|
+
# @param [String] name
|
23289
|
+
# Required. Identifier. The resource name of the session. Format: 'projects/`
|
23290
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`
|
23291
|
+
# session`'.
|
23292
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object
|
23293
|
+
# @param [String] update_mask
|
23294
|
+
# Optional. Field mask is used to control which fields get updated. If the mask
|
23295
|
+
# is not present, all fields will be updated.
|
23296
|
+
# @param [String] fields
|
23297
|
+
# Selector specifying which fields to include in a partial response.
|
23298
|
+
# @param [String] quota_user
|
23299
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
23300
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
23301
|
+
# @param [Google::Apis::RequestOptions] options
|
23302
|
+
# Request-specific options
|
23303
|
+
#
|
23304
|
+
# @yield [result, err] Result & error if block supplied
|
23305
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object
|
23306
|
+
# @yieldparam err [StandardError] error object if request failed
|
23307
|
+
#
|
23308
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session]
|
23309
|
+
#
|
23310
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23311
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23312
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23313
|
+
def patch_project_location_session(name, google_cloud_aiplatform_v1beta1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
23314
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
23315
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
23316
|
+
command.request_object = google_cloud_aiplatform_v1beta1_session_object
|
23317
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation
|
23318
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session
|
23319
|
+
command.params['name'] = name unless name.nil?
|
23320
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
23321
|
+
command.query['fields'] = fields unless fields.nil?
|
23322
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23323
|
+
execute_or_queue_command(command, &block)
|
23324
|
+
end
|
23325
|
+
|
21997
23326
|
# Deletes a long-running operation. This method indicates that the client is no
|
21998
23327
|
# longer interested in the operation result. It does not cancel the operation.
|
21999
23328
|
# If the server doesn't support this method, it returns `google.rpc.Code.
|
@@ -25806,6 +27135,74 @@ module Google
|
|
25806
27135
|
execute_or_queue_command(command, &block)
|
25807
27136
|
end
|
25808
27137
|
|
27138
|
+
# Accepts the EULA acceptance status of a publisher model.
|
27139
|
+
# @param [String] parent
|
27140
|
+
# Required. The project requesting access for named model. The format is `
|
27141
|
+
# projects/`project``.
|
27142
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AcceptPublisherModelEulaRequest] google_cloud_aiplatform_v1beta1_accept_publisher_model_eula_request_object
|
27143
|
+
# @param [String] fields
|
27144
|
+
# Selector specifying which fields to include in a partial response.
|
27145
|
+
# @param [String] quota_user
|
27146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
27147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
27148
|
+
# @param [Google::Apis::RequestOptions] options
|
27149
|
+
# Request-specific options
|
27150
|
+
#
|
27151
|
+
# @yield [result, err] Result & error if block supplied
|
27152
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] parsed result object
|
27153
|
+
# @yieldparam err [StandardError] error object if request failed
|
27154
|
+
#
|
27155
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance]
|
27156
|
+
#
|
27157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27160
|
+
def accept_project_model_garden_eula(parent, google_cloud_aiplatform_v1beta1_accept_publisher_model_eula_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
27161
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/modelGardenEula:accept', options)
|
27162
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AcceptPublisherModelEulaRequest::Representation
|
27163
|
+
command.request_object = google_cloud_aiplatform_v1beta1_accept_publisher_model_eula_request_object
|
27164
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance::Representation
|
27165
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance
|
27166
|
+
command.params['parent'] = parent unless parent.nil?
|
27167
|
+
command.query['fields'] = fields unless fields.nil?
|
27168
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27169
|
+
execute_or_queue_command(command, &block)
|
27170
|
+
end
|
27171
|
+
|
27172
|
+
# Checks the EULA acceptance status of a publisher model.
|
27173
|
+
# @param [String] parent
|
27174
|
+
# Required. The project requesting access for named model. The format is `
|
27175
|
+
# projects/`project``.
|
27176
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckPublisherModelEulaAcceptanceRequest] google_cloud_aiplatform_v1beta1_check_publisher_model_eula_acceptance_request_object
|
27177
|
+
# @param [String] fields
|
27178
|
+
# Selector specifying which fields to include in a partial response.
|
27179
|
+
# @param [String] quota_user
|
27180
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
27181
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
27182
|
+
# @param [Google::Apis::RequestOptions] options
|
27183
|
+
# Request-specific options
|
27184
|
+
#
|
27185
|
+
# @yield [result, err] Result & error if block supplied
|
27186
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] parsed result object
|
27187
|
+
# @yieldparam err [StandardError] error object if request failed
|
27188
|
+
#
|
27189
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance]
|
27190
|
+
#
|
27191
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27192
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27193
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27194
|
+
def check_project_model_garden_eula(parent, google_cloud_aiplatform_v1beta1_check_publisher_model_eula_acceptance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
27195
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/modelGardenEula:check', options)
|
27196
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckPublisherModelEulaAcceptanceRequest::Representation
|
27197
|
+
command.request_object = google_cloud_aiplatform_v1beta1_check_publisher_model_eula_acceptance_request_object
|
27198
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance::Representation
|
27199
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance
|
27200
|
+
command.params['parent'] = parent unless parent.nil?
|
27201
|
+
command.query['fields'] = fields unless fields.nil?
|
27202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27203
|
+
execute_or_queue_command(command, &block)
|
27204
|
+
end
|
27205
|
+
|
25809
27206
|
# Return a list of tokens based on the input text.
|
25810
27207
|
# @param [String] endpoint
|
25811
27208
|
# Required. The name of the Endpoint requested to get lists of tokens and token
|