google-apis-aiplatform_v1beta1 0.29.0 → 0.31.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 +232 -536
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +98 -234
- data/lib/google/apis/aiplatform_v1beta1/service.rb +645 -27
- metadata +3 -3
@@ -906,18 +906,18 @@ module Google
|
|
906
906
|
# Request-specific options
|
907
907
|
#
|
908
908
|
# @yield [result, err] Result & error if block supplied
|
909
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
909
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
910
910
|
# @yieldparam err [StandardError] error object if request failed
|
911
911
|
#
|
912
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
912
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
913
913
|
#
|
914
914
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
915
915
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
916
916
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
917
917
|
def delete_project_location_cached_content(name, fields: nil, quota_user: nil, options: nil, &block)
|
918
918
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
919
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
920
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
919
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
920
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
921
921
|
command.params['name'] = name unless name.nil?
|
922
922
|
command.query['fields'] = fields unless fields.nil?
|
923
923
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -998,8 +998,9 @@ module Google
|
|
998
998
|
|
999
999
|
# Updates cached content configurations
|
1000
1000
|
# @param [String] name
|
1001
|
-
# Immutable. Identifier. The resource name of the cached
|
1002
|
-
# projects/`project`/locations/`location`/cachedContents/`
|
1001
|
+
# Immutable. Identifier. The server-generated resource name of the cached
|
1002
|
+
# content Format: projects/`project`/locations/`location`/cachedContents/`
|
1003
|
+
# cached_content`
|
1003
1004
|
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] google_cloud_aiplatform_v1beta1_cached_content_object
|
1004
1005
|
# @param [String] update_mask
|
1005
1006
|
# Required. The list of fields to update.
|
@@ -4711,6 +4712,40 @@ module Google
|
|
4711
4712
|
execute_or_queue_command(command, &block)
|
4712
4713
|
end
|
4713
4714
|
|
4715
|
+
# Perform a streaming online prediction with an arbitrary HTTP payload.
|
4716
|
+
# @param [String] endpoint
|
4717
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
4718
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
4719
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest] google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object
|
4720
|
+
# @param [String] fields
|
4721
|
+
# Selector specifying which fields to include in a partial response.
|
4722
|
+
# @param [String] quota_user
|
4723
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4724
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4725
|
+
# @param [Google::Apis::RequestOptions] options
|
4726
|
+
# Request-specific options
|
4727
|
+
#
|
4728
|
+
# @yield [result, err] Result & error if block supplied
|
4729
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object
|
4730
|
+
# @yieldparam err [StandardError] error object if request failed
|
4731
|
+
#
|
4732
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
|
4733
|
+
#
|
4734
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4735
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4736
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4737
|
+
def stream_project_location_endpoint_raw_predict(endpoint, google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4738
|
+
command = make_simple_command(:post, 'v1beta1/{+endpoint}:streamRawPredict', options)
|
4739
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest::Representation
|
4740
|
+
command.request_object = google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object
|
4741
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
|
4742
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody
|
4743
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
4744
|
+
command.query['fields'] = fields unless fields.nil?
|
4745
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4746
|
+
execute_or_queue_command(command, &block)
|
4747
|
+
end
|
4748
|
+
|
4714
4749
|
# Returns permissions that a caller has on the specified resource. If the
|
4715
4750
|
# resource does not exist, this will return an empty set of permissions, not a `
|
4716
4751
|
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
@@ -16045,6 +16080,189 @@ module Google
|
|
16045
16080
|
execute_or_queue_command(command, &block)
|
16046
16081
|
end
|
16047
16082
|
|
16083
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
16084
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
16085
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
16086
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
16087
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
16088
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
16089
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
16090
|
+
# corresponding to `Code.CANCELLED`.
|
16091
|
+
# @param [String] name
|
16092
|
+
# The name of the operation resource to be cancelled.
|
16093
|
+
# @param [String] fields
|
16094
|
+
# Selector specifying which fields to include in a partial response.
|
16095
|
+
# @param [String] quota_user
|
16096
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16097
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16098
|
+
# @param [Google::Apis::RequestOptions] options
|
16099
|
+
# Request-specific options
|
16100
|
+
#
|
16101
|
+
# @yield [result, err] Result & error if block supplied
|
16102
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
16103
|
+
# @yieldparam err [StandardError] error object if request failed
|
16104
|
+
#
|
16105
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
16106
|
+
#
|
16107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16110
|
+
def cancel_project_location_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
16111
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
16112
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
16113
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
16114
|
+
command.params['name'] = name unless name.nil?
|
16115
|
+
command.query['fields'] = fields unless fields.nil?
|
16116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16117
|
+
execute_or_queue_command(command, &block)
|
16118
|
+
end
|
16119
|
+
|
16120
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
16121
|
+
# longer interested in the operation result. It does not cancel the operation.
|
16122
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
16123
|
+
# UNIMPLEMENTED`.
|
16124
|
+
# @param [String] name
|
16125
|
+
# The name of the operation resource to be deleted.
|
16126
|
+
# @param [String] fields
|
16127
|
+
# Selector specifying which fields to include in a partial response.
|
16128
|
+
# @param [String] quota_user
|
16129
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16130
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16131
|
+
# @param [Google::Apis::RequestOptions] options
|
16132
|
+
# Request-specific options
|
16133
|
+
#
|
16134
|
+
# @yield [result, err] Result & error if block supplied
|
16135
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
16136
|
+
# @yieldparam err [StandardError] error object if request failed
|
16137
|
+
#
|
16138
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
16139
|
+
#
|
16140
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16141
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16142
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16143
|
+
def delete_project_location_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
16144
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
16145
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
16146
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
16147
|
+
command.params['name'] = name unless name.nil?
|
16148
|
+
command.query['fields'] = fields unless fields.nil?
|
16149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16150
|
+
execute_or_queue_command(command, &block)
|
16151
|
+
end
|
16152
|
+
|
16153
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
16154
|
+
# to poll the operation result at intervals as recommended by the API service.
|
16155
|
+
# @param [String] name
|
16156
|
+
# The name of the operation resource.
|
16157
|
+
# @param [String] fields
|
16158
|
+
# Selector specifying which fields to include in a partial response.
|
16159
|
+
# @param [String] quota_user
|
16160
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16161
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16162
|
+
# @param [Google::Apis::RequestOptions] options
|
16163
|
+
# Request-specific options
|
16164
|
+
#
|
16165
|
+
# @yield [result, err] Result & error if block supplied
|
16166
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16167
|
+
# @yieldparam err [StandardError] error object if request failed
|
16168
|
+
#
|
16169
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
16170
|
+
#
|
16171
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16172
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16173
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16174
|
+
def get_project_location_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
16175
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
16176
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
16177
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16178
|
+
command.params['name'] = name unless name.nil?
|
16179
|
+
command.query['fields'] = fields unless fields.nil?
|
16180
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16181
|
+
execute_or_queue_command(command, &block)
|
16182
|
+
end
|
16183
|
+
|
16184
|
+
# Lists operations that match the specified filter in the request. If the server
|
16185
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
16186
|
+
# @param [String] name
|
16187
|
+
# The name of the operation's parent resource.
|
16188
|
+
# @param [String] filter
|
16189
|
+
# The standard list filter.
|
16190
|
+
# @param [Fixnum] page_size
|
16191
|
+
# The standard list page size.
|
16192
|
+
# @param [String] page_token
|
16193
|
+
# The standard list page token.
|
16194
|
+
# @param [String] fields
|
16195
|
+
# Selector specifying which fields to include in a partial response.
|
16196
|
+
# @param [String] quota_user
|
16197
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16198
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16199
|
+
# @param [Google::Apis::RequestOptions] options
|
16200
|
+
# Request-specific options
|
16201
|
+
#
|
16202
|
+
# @yield [result, err] Result & error if block supplied
|
16203
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
16204
|
+
# @yieldparam err [StandardError] error object if request failed
|
16205
|
+
#
|
16206
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
16207
|
+
#
|
16208
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16209
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16210
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16211
|
+
def list_project_location_notebook_execution_job_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
16212
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
16213
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
16214
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
16215
|
+
command.params['name'] = name unless name.nil?
|
16216
|
+
command.query['filter'] = filter unless filter.nil?
|
16217
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
16218
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
16219
|
+
command.query['fields'] = fields unless fields.nil?
|
16220
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16221
|
+
execute_or_queue_command(command, &block)
|
16222
|
+
end
|
16223
|
+
|
16224
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
16225
|
+
# specified timeout, returning the latest state. If the operation is already
|
16226
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
16227
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
16228
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
16229
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
16230
|
+
# the latest state before the specified timeout (including immediately), meaning
|
16231
|
+
# even an immediate response is no guarantee that the operation is done.
|
16232
|
+
# @param [String] name
|
16233
|
+
# The name of the operation resource to wait on.
|
16234
|
+
# @param [String] timeout
|
16235
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
16236
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
16237
|
+
# context deadline is also specified, the shorter one will be used.
|
16238
|
+
# @param [String] fields
|
16239
|
+
# Selector specifying which fields to include in a partial response.
|
16240
|
+
# @param [String] quota_user
|
16241
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16242
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16243
|
+
# @param [Google::Apis::RequestOptions] options
|
16244
|
+
# Request-specific options
|
16245
|
+
#
|
16246
|
+
# @yield [result, err] Result & error if block supplied
|
16247
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16248
|
+
# @yieldparam err [StandardError] error object if request failed
|
16249
|
+
#
|
16250
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
16251
|
+
#
|
16252
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16253
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16254
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16255
|
+
def wait_project_location_notebook_execution_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
16256
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
16257
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
16258
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16259
|
+
command.params['name'] = name unless name.nil?
|
16260
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
16261
|
+
command.query['fields'] = fields unless fields.nil?
|
16262
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16263
|
+
execute_or_queue_command(command, &block)
|
16264
|
+
end
|
16265
|
+
|
16048
16266
|
# Creates a NotebookRuntimeTemplate.
|
16049
16267
|
# @param [String] parent
|
16050
16268
|
# Required. The resource name of the Location to create the
|
@@ -16368,12 +16586,16 @@ module Google
|
|
16368
16586
|
execute_or_queue_command(command, &block)
|
16369
16587
|
end
|
16370
16588
|
|
16371
|
-
#
|
16372
|
-
#
|
16373
|
-
#
|
16374
|
-
#
|
16375
|
-
#
|
16376
|
-
#
|
16589
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
16590
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
16591
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
16592
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
16593
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
16594
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
16595
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
16596
|
+
# corresponding to `Code.CANCELLED`.
|
16597
|
+
# @param [String] name
|
16598
|
+
# The name of the operation resource to be cancelled.
|
16377
16599
|
# @param [String] fields
|
16378
16600
|
# Selector specifying which fields to include in a partial response.
|
16379
16601
|
# @param [String] quota_user
|
@@ -16383,32 +16605,30 @@ module Google
|
|
16383
16605
|
# Request-specific options
|
16384
16606
|
#
|
16385
16607
|
# @yield [result, err] Result & error if block supplied
|
16386
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
16608
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
16387
16609
|
# @yieldparam err [StandardError] error object if request failed
|
16388
16610
|
#
|
16389
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
16611
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
16390
16612
|
#
|
16391
16613
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16392
16614
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16393
16615
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16394
|
-
def
|
16395
|
-
command = make_simple_command(:post, 'v1beta1/{+
|
16396
|
-
command.
|
16397
|
-
command.
|
16398
|
-
command.
|
16399
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16400
|
-
command.params['parent'] = parent unless parent.nil?
|
16616
|
+
def cancel_project_location_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
16617
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
16618
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
16619
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
16620
|
+
command.params['name'] = name unless name.nil?
|
16401
16621
|
command.query['fields'] = fields unless fields.nil?
|
16402
16622
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16403
16623
|
execute_or_queue_command(command, &block)
|
16404
16624
|
end
|
16405
16625
|
|
16406
|
-
# Deletes a
|
16626
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
16627
|
+
# longer interested in the operation result. It does not cancel the operation.
|
16628
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
16629
|
+
# UNIMPLEMENTED`.
|
16407
16630
|
# @param [String] name
|
16408
|
-
#
|
16409
|
-
# checking whether the name is in valid NotebookRuntime resource name format,
|
16410
|
-
# directly throw NotFound exception if there is no such NotebookRuntime in
|
16411
|
-
# spanner.
|
16631
|
+
# The name of the operation resource to be deleted.
|
16412
16632
|
# @param [String] fields
|
16413
16633
|
# Selector specifying which fields to include in a partial response.
|
16414
16634
|
# @param [String] quota_user
|
@@ -16418,7 +16638,188 @@ module Google
|
|
16418
16638
|
# Request-specific options
|
16419
16639
|
#
|
16420
16640
|
# @yield [result, err] Result & error if block supplied
|
16421
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
16641
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
16642
|
+
# @yieldparam err [StandardError] error object if request failed
|
16643
|
+
#
|
16644
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
16645
|
+
#
|
16646
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16647
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16648
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16649
|
+
def delete_project_location_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
16650
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
16651
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
16652
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
16653
|
+
command.params['name'] = name unless name.nil?
|
16654
|
+
command.query['fields'] = fields unless fields.nil?
|
16655
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16656
|
+
execute_or_queue_command(command, &block)
|
16657
|
+
end
|
16658
|
+
|
16659
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
16660
|
+
# to poll the operation result at intervals as recommended by the API service.
|
16661
|
+
# @param [String] name
|
16662
|
+
# The name of the operation resource.
|
16663
|
+
# @param [String] fields
|
16664
|
+
# Selector specifying which fields to include in a partial response.
|
16665
|
+
# @param [String] quota_user
|
16666
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16667
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16668
|
+
# @param [Google::Apis::RequestOptions] options
|
16669
|
+
# Request-specific options
|
16670
|
+
#
|
16671
|
+
# @yield [result, err] Result & error if block supplied
|
16672
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16673
|
+
# @yieldparam err [StandardError] error object if request failed
|
16674
|
+
#
|
16675
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
16676
|
+
#
|
16677
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16678
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16679
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16680
|
+
def get_project_location_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
16681
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
16682
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
16683
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16684
|
+
command.params['name'] = name unless name.nil?
|
16685
|
+
command.query['fields'] = fields unless fields.nil?
|
16686
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16687
|
+
execute_or_queue_command(command, &block)
|
16688
|
+
end
|
16689
|
+
|
16690
|
+
# Lists operations that match the specified filter in the request. If the server
|
16691
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
16692
|
+
# @param [String] name
|
16693
|
+
# The name of the operation's parent resource.
|
16694
|
+
# @param [String] filter
|
16695
|
+
# The standard list filter.
|
16696
|
+
# @param [Fixnum] page_size
|
16697
|
+
# The standard list page size.
|
16698
|
+
# @param [String] page_token
|
16699
|
+
# The standard list page token.
|
16700
|
+
# @param [String] fields
|
16701
|
+
# Selector specifying which fields to include in a partial response.
|
16702
|
+
# @param [String] quota_user
|
16703
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16704
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16705
|
+
# @param [Google::Apis::RequestOptions] options
|
16706
|
+
# Request-specific options
|
16707
|
+
#
|
16708
|
+
# @yield [result, err] Result & error if block supplied
|
16709
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
16710
|
+
# @yieldparam err [StandardError] error object if request failed
|
16711
|
+
#
|
16712
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
16713
|
+
#
|
16714
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16715
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16716
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16717
|
+
def list_project_location_notebook_runtime_template_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
16718
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
16719
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
16720
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
16721
|
+
command.params['name'] = name unless name.nil?
|
16722
|
+
command.query['filter'] = filter unless filter.nil?
|
16723
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
16724
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
16725
|
+
command.query['fields'] = fields unless fields.nil?
|
16726
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16727
|
+
execute_or_queue_command(command, &block)
|
16728
|
+
end
|
16729
|
+
|
16730
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
16731
|
+
# specified timeout, returning the latest state. If the operation is already
|
16732
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
16733
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
16734
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
16735
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
16736
|
+
# the latest state before the specified timeout (including immediately), meaning
|
16737
|
+
# even an immediate response is no guarantee that the operation is done.
|
16738
|
+
# @param [String] name
|
16739
|
+
# The name of the operation resource to wait on.
|
16740
|
+
# @param [String] timeout
|
16741
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
16742
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
16743
|
+
# context deadline is also specified, the shorter one will be used.
|
16744
|
+
# @param [String] fields
|
16745
|
+
# Selector specifying which fields to include in a partial response.
|
16746
|
+
# @param [String] quota_user
|
16747
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16748
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16749
|
+
# @param [Google::Apis::RequestOptions] options
|
16750
|
+
# Request-specific options
|
16751
|
+
#
|
16752
|
+
# @yield [result, err] Result & error if block supplied
|
16753
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16754
|
+
# @yieldparam err [StandardError] error object if request failed
|
16755
|
+
#
|
16756
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
16757
|
+
#
|
16758
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16759
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16760
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16761
|
+
def wait_project_location_notebook_runtime_template_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
16762
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
16763
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
16764
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16765
|
+
command.params['name'] = name unless name.nil?
|
16766
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
16767
|
+
command.query['fields'] = fields unless fields.nil?
|
16768
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16769
|
+
execute_or_queue_command(command, &block)
|
16770
|
+
end
|
16771
|
+
|
16772
|
+
# Assigns a NotebookRuntime to a user for a particular Notebook file. This
|
16773
|
+
# method will either returns an existing assignment or generates a new one.
|
16774
|
+
# @param [String] parent
|
16775
|
+
# Required. The resource name of the Location to get the NotebookRuntime
|
16776
|
+
# assignment. Format: `projects/`project`/locations/`location``
|
16777
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest] google_cloud_aiplatform_v1beta1_assign_notebook_runtime_request_object
|
16778
|
+
# @param [String] fields
|
16779
|
+
# Selector specifying which fields to include in a partial response.
|
16780
|
+
# @param [String] quota_user
|
16781
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16782
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16783
|
+
# @param [Google::Apis::RequestOptions] options
|
16784
|
+
# Request-specific options
|
16785
|
+
#
|
16786
|
+
# @yield [result, err] Result & error if block supplied
|
16787
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16788
|
+
# @yieldparam err [StandardError] error object if request failed
|
16789
|
+
#
|
16790
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
16791
|
+
#
|
16792
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16793
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16794
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16795
|
+
def assign_project_location_notebook_runtime(parent, google_cloud_aiplatform_v1beta1_assign_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
16796
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/notebookRuntimes:assign', options)
|
16797
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest::Representation
|
16798
|
+
command.request_object = google_cloud_aiplatform_v1beta1_assign_notebook_runtime_request_object
|
16799
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
16800
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16801
|
+
command.params['parent'] = parent unless parent.nil?
|
16802
|
+
command.query['fields'] = fields unless fields.nil?
|
16803
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16804
|
+
execute_or_queue_command(command, &block)
|
16805
|
+
end
|
16806
|
+
|
16807
|
+
# Deletes a NotebookRuntime.
|
16808
|
+
# @param [String] name
|
16809
|
+
# Required. The name of the NotebookRuntime resource to be deleted. Instead of
|
16810
|
+
# checking whether the name is in valid NotebookRuntime resource name format,
|
16811
|
+
# directly throw NotFound exception if there is no such NotebookRuntime in
|
16812
|
+
# spanner.
|
16813
|
+
# @param [String] fields
|
16814
|
+
# Selector specifying which fields to include in a partial response.
|
16815
|
+
# @param [String] quota_user
|
16816
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16817
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16818
|
+
# @param [Google::Apis::RequestOptions] options
|
16819
|
+
# Request-specific options
|
16820
|
+
#
|
16821
|
+
# @yield [result, err] Result & error if block supplied
|
16822
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16422
16823
|
# @yieldparam err [StandardError] error object if request failed
|
16423
16824
|
#
|
16424
16825
|
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
@@ -16683,6 +17084,189 @@ module Google
|
|
16683
17084
|
execute_or_queue_command(command, &block)
|
16684
17085
|
end
|
16685
17086
|
|
17087
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
17088
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
17089
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
17090
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
17091
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
17092
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
17093
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
17094
|
+
# corresponding to `Code.CANCELLED`.
|
17095
|
+
# @param [String] name
|
17096
|
+
# The name of the operation resource to be cancelled.
|
17097
|
+
# @param [String] fields
|
17098
|
+
# Selector specifying which fields to include in a partial response.
|
17099
|
+
# @param [String] quota_user
|
17100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17102
|
+
# @param [Google::Apis::RequestOptions] options
|
17103
|
+
# Request-specific options
|
17104
|
+
#
|
17105
|
+
# @yield [result, err] Result & error if block supplied
|
17106
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
17107
|
+
# @yieldparam err [StandardError] error object if request failed
|
17108
|
+
#
|
17109
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
17110
|
+
#
|
17111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17114
|
+
def cancel_project_location_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
17115
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
17116
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
17117
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
17118
|
+
command.params['name'] = name unless name.nil?
|
17119
|
+
command.query['fields'] = fields unless fields.nil?
|
17120
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17121
|
+
execute_or_queue_command(command, &block)
|
17122
|
+
end
|
17123
|
+
|
17124
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
17125
|
+
# longer interested in the operation result. It does not cancel the operation.
|
17126
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
17127
|
+
# UNIMPLEMENTED`.
|
17128
|
+
# @param [String] name
|
17129
|
+
# The name of the operation resource to be deleted.
|
17130
|
+
# @param [String] fields
|
17131
|
+
# Selector specifying which fields to include in a partial response.
|
17132
|
+
# @param [String] quota_user
|
17133
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17134
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17135
|
+
# @param [Google::Apis::RequestOptions] options
|
17136
|
+
# Request-specific options
|
17137
|
+
#
|
17138
|
+
# @yield [result, err] Result & error if block supplied
|
17139
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
17140
|
+
# @yieldparam err [StandardError] error object if request failed
|
17141
|
+
#
|
17142
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
17143
|
+
#
|
17144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17147
|
+
def delete_project_location_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
17148
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
17149
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
17150
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
17151
|
+
command.params['name'] = name unless name.nil?
|
17152
|
+
command.query['fields'] = fields unless fields.nil?
|
17153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17154
|
+
execute_or_queue_command(command, &block)
|
17155
|
+
end
|
17156
|
+
|
17157
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
17158
|
+
# to poll the operation result at intervals as recommended by the API service.
|
17159
|
+
# @param [String] name
|
17160
|
+
# The name of the operation resource.
|
17161
|
+
# @param [String] fields
|
17162
|
+
# Selector specifying which fields to include in a partial response.
|
17163
|
+
# @param [String] quota_user
|
17164
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17165
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17166
|
+
# @param [Google::Apis::RequestOptions] options
|
17167
|
+
# Request-specific options
|
17168
|
+
#
|
17169
|
+
# @yield [result, err] Result & error if block supplied
|
17170
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17171
|
+
# @yieldparam err [StandardError] error object if request failed
|
17172
|
+
#
|
17173
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17174
|
+
#
|
17175
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17176
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17177
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17178
|
+
def get_project_location_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
17179
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
17180
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17181
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17182
|
+
command.params['name'] = name unless name.nil?
|
17183
|
+
command.query['fields'] = fields unless fields.nil?
|
17184
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17185
|
+
execute_or_queue_command(command, &block)
|
17186
|
+
end
|
17187
|
+
|
17188
|
+
# Lists operations that match the specified filter in the request. If the server
|
17189
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
17190
|
+
# @param [String] name
|
17191
|
+
# The name of the operation's parent resource.
|
17192
|
+
# @param [String] filter
|
17193
|
+
# The standard list filter.
|
17194
|
+
# @param [Fixnum] page_size
|
17195
|
+
# The standard list page size.
|
17196
|
+
# @param [String] page_token
|
17197
|
+
# The standard list page token.
|
17198
|
+
# @param [String] fields
|
17199
|
+
# Selector specifying which fields to include in a partial response.
|
17200
|
+
# @param [String] quota_user
|
17201
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17202
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17203
|
+
# @param [Google::Apis::RequestOptions] options
|
17204
|
+
# Request-specific options
|
17205
|
+
#
|
17206
|
+
# @yield [result, err] Result & error if block supplied
|
17207
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
17208
|
+
# @yieldparam err [StandardError] error object if request failed
|
17209
|
+
#
|
17210
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
17211
|
+
#
|
17212
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17213
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17214
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17215
|
+
def list_project_location_notebook_runtime_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17216
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
17217
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
17218
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
17219
|
+
command.params['name'] = name unless name.nil?
|
17220
|
+
command.query['filter'] = filter unless filter.nil?
|
17221
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
17222
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17223
|
+
command.query['fields'] = fields unless fields.nil?
|
17224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17225
|
+
execute_or_queue_command(command, &block)
|
17226
|
+
end
|
17227
|
+
|
17228
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
17229
|
+
# specified timeout, returning the latest state. If the operation is already
|
17230
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
17231
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
17232
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
17233
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
17234
|
+
# the latest state before the specified timeout (including immediately), meaning
|
17235
|
+
# even an immediate response is no guarantee that the operation is done.
|
17236
|
+
# @param [String] name
|
17237
|
+
# The name of the operation resource to wait on.
|
17238
|
+
# @param [String] timeout
|
17239
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
17240
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
17241
|
+
# context deadline is also specified, the shorter one will be used.
|
17242
|
+
# @param [String] fields
|
17243
|
+
# Selector specifying which fields to include in a partial response.
|
17244
|
+
# @param [String] quota_user
|
17245
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17246
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17247
|
+
# @param [Google::Apis::RequestOptions] options
|
17248
|
+
# Request-specific options
|
17249
|
+
#
|
17250
|
+
# @yield [result, err] Result & error if block supplied
|
17251
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17252
|
+
# @yieldparam err [StandardError] error object if request failed
|
17253
|
+
#
|
17254
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17255
|
+
#
|
17256
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17257
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17258
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17259
|
+
def wait_project_location_notebook_runtime_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17260
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
17261
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17262
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17263
|
+
command.params['name'] = name unless name.nil?
|
17264
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
17265
|
+
command.query['fields'] = fields unless fields.nil?
|
17266
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17267
|
+
execute_or_queue_command(command, &block)
|
17268
|
+
end
|
17269
|
+
|
16686
17270
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
16687
17271
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
16688
17272
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -18021,6 +18605,40 @@ module Google
|
|
18021
18605
|
execute_or_queue_command(command, &block)
|
18022
18606
|
end
|
18023
18607
|
|
18608
|
+
# Perform a streaming online prediction with an arbitrary HTTP payload.
|
18609
|
+
# @param [String] endpoint
|
18610
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
18611
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
18612
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest] google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object
|
18613
|
+
# @param [String] fields
|
18614
|
+
# Selector specifying which fields to include in a partial response.
|
18615
|
+
# @param [String] quota_user
|
18616
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18617
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18618
|
+
# @param [Google::Apis::RequestOptions] options
|
18619
|
+
# Request-specific options
|
18620
|
+
#
|
18621
|
+
# @yield [result, err] Result & error if block supplied
|
18622
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object
|
18623
|
+
# @yieldparam err [StandardError] error object if request failed
|
18624
|
+
#
|
18625
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
|
18626
|
+
#
|
18627
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18628
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18629
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18630
|
+
def stream_project_location_publisher_model_raw_predict(endpoint, google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
18631
|
+
command = make_simple_command(:post, 'v1beta1/{+endpoint}:streamRawPredict', options)
|
18632
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest::Representation
|
18633
|
+
command.request_object = google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object
|
18634
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
|
18635
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody
|
18636
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
18637
|
+
command.query['fields'] = fields unless fields.nil?
|
18638
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18639
|
+
execute_or_queue_command(command, &block)
|
18640
|
+
end
|
18641
|
+
|
18024
18642
|
# Creates a RagCorpus.
|
18025
18643
|
# @param [String] parent
|
18026
18644
|
# Required. The resource name of the Location to create the RagCorpus in. Format:
|