google-apis-aiplatform_v1 0.26.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,6 +52,40 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
+ # Evaluates instances based on a given metric.
56
+ # @param [String] location
57
+ # Required. The resource name of the Location to evaluate the instances. Format:
58
+ # `projects/`project`/locations/`location``
59
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesRequest] google_cloud_aiplatform_v1_evaluate_instances_request_object
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesResponse] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesResponse]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
77
+ def evaluate_project_location_instances(location, google_cloud_aiplatform_v1_evaluate_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
78
+ command = make_simple_command(:post, 'v1/{+location}:evaluateInstances', options)
79
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesRequest::Representation
80
+ command.request_object = google_cloud_aiplatform_v1_evaluate_instances_request_object
81
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesResponse::Representation
82
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesResponse
83
+ command.params['location'] = location unless location.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
55
89
  # Gets information about a location.
56
90
  # @param [String] name
57
91
  # Resource name for the location.
@@ -13002,6 +13036,189 @@ module Google
13002
13036
  execute_or_queue_command(command, &block)
13003
13037
  end
13004
13038
 
13039
+ # Starts asynchronous cancellation on a long-running operation. The server makes
13040
+ # a best effort to cancel the operation, but success is not guaranteed. If the
13041
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
13042
+ # Clients can use Operations.GetOperation or other methods to check whether the
13043
+ # cancellation succeeded or whether the operation completed despite cancellation.
13044
+ # On successful cancellation, the operation is not deleted; instead, it becomes
13045
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
13046
+ # corresponding to `Code.CANCELLED`.
13047
+ # @param [String] name
13048
+ # The name of the operation resource to be cancelled.
13049
+ # @param [String] fields
13050
+ # Selector specifying which fields to include in a partial response.
13051
+ # @param [String] quota_user
13052
+ # Available to use for quota purposes for server-side applications. Can be any
13053
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13054
+ # @param [Google::Apis::RequestOptions] options
13055
+ # Request-specific options
13056
+ #
13057
+ # @yield [result, err] Result & error if block supplied
13058
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
13059
+ # @yieldparam err [StandardError] error object if request failed
13060
+ #
13061
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
13062
+ #
13063
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13064
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13065
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13066
+ def cancel_project_location_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13067
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
13068
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
13069
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
13070
+ command.params['name'] = name unless name.nil?
13071
+ command.query['fields'] = fields unless fields.nil?
13072
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13073
+ execute_or_queue_command(command, &block)
13074
+ end
13075
+
13076
+ # Deletes a long-running operation. This method indicates that the client is no
13077
+ # longer interested in the operation result. It does not cancel the operation.
13078
+ # If the server doesn't support this method, it returns `google.rpc.Code.
13079
+ # UNIMPLEMENTED`.
13080
+ # @param [String] name
13081
+ # The name of the operation resource to be deleted.
13082
+ # @param [String] fields
13083
+ # Selector specifying which fields to include in a partial response.
13084
+ # @param [String] quota_user
13085
+ # Available to use for quota purposes for server-side applications. Can be any
13086
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13087
+ # @param [Google::Apis::RequestOptions] options
13088
+ # Request-specific options
13089
+ #
13090
+ # @yield [result, err] Result & error if block supplied
13091
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
13092
+ # @yieldparam err [StandardError] error object if request failed
13093
+ #
13094
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
13095
+ #
13096
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13097
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13098
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13099
+ def delete_project_location_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13100
+ command = make_simple_command(:delete, 'v1/{+name}', options)
13101
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
13102
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
13103
+ command.params['name'] = name unless name.nil?
13104
+ command.query['fields'] = fields unless fields.nil?
13105
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13106
+ execute_or_queue_command(command, &block)
13107
+ end
13108
+
13109
+ # Gets the latest state of a long-running operation. Clients can use this method
13110
+ # to poll the operation result at intervals as recommended by the API service.
13111
+ # @param [String] name
13112
+ # The name of the operation resource.
13113
+ # @param [String] fields
13114
+ # Selector specifying which fields to include in a partial response.
13115
+ # @param [String] quota_user
13116
+ # Available to use for quota purposes for server-side applications. Can be any
13117
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13118
+ # @param [Google::Apis::RequestOptions] options
13119
+ # Request-specific options
13120
+ #
13121
+ # @yield [result, err] Result & error if block supplied
13122
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13123
+ # @yieldparam err [StandardError] error object if request failed
13124
+ #
13125
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13126
+ #
13127
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13128
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13129
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13130
+ def get_project_location_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13131
+ command = make_simple_command(:get, 'v1/{+name}', options)
13132
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13133
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13134
+ command.params['name'] = name unless name.nil?
13135
+ command.query['fields'] = fields unless fields.nil?
13136
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13137
+ execute_or_queue_command(command, &block)
13138
+ end
13139
+
13140
+ # Lists operations that match the specified filter in the request. If the server
13141
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
13142
+ # @param [String] name
13143
+ # The name of the operation's parent resource.
13144
+ # @param [String] filter
13145
+ # The standard list filter.
13146
+ # @param [Fixnum] page_size
13147
+ # The standard list page size.
13148
+ # @param [String] page_token
13149
+ # The standard list page token.
13150
+ # @param [String] fields
13151
+ # Selector specifying which fields to include in a partial response.
13152
+ # @param [String] quota_user
13153
+ # Available to use for quota purposes for server-side applications. Can be any
13154
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13155
+ # @param [Google::Apis::RequestOptions] options
13156
+ # Request-specific options
13157
+ #
13158
+ # @yield [result, err] Result & error if block supplied
13159
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
13160
+ # @yieldparam err [StandardError] error object if request failed
13161
+ #
13162
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
13163
+ #
13164
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13165
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13166
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13167
+ 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)
13168
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
13169
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
13170
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
13171
+ command.params['name'] = name unless name.nil?
13172
+ command.query['filter'] = filter unless filter.nil?
13173
+ command.query['pageSize'] = page_size unless page_size.nil?
13174
+ command.query['pageToken'] = page_token unless page_token.nil?
13175
+ command.query['fields'] = fields unless fields.nil?
13176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13177
+ execute_or_queue_command(command, &block)
13178
+ end
13179
+
13180
+ # Waits until the specified long-running operation is done or reaches at most a
13181
+ # specified timeout, returning the latest state. If the operation is already
13182
+ # done, the latest state is immediately returned. If the timeout specified is
13183
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
13184
+ # the server does not support this method, it returns `google.rpc.Code.
13185
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
13186
+ # the latest state before the specified timeout (including immediately), meaning
13187
+ # even an immediate response is no guarantee that the operation is done.
13188
+ # @param [String] name
13189
+ # The name of the operation resource to wait on.
13190
+ # @param [String] timeout
13191
+ # The maximum duration to wait before timing out. If left blank, the wait will
13192
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
13193
+ # context deadline is also specified, the shorter one will be used.
13194
+ # @param [String] fields
13195
+ # Selector specifying which fields to include in a partial response.
13196
+ # @param [String] quota_user
13197
+ # Available to use for quota purposes for server-side applications. Can be any
13198
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13199
+ # @param [Google::Apis::RequestOptions] options
13200
+ # Request-specific options
13201
+ #
13202
+ # @yield [result, err] Result & error if block supplied
13203
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13204
+ # @yieldparam err [StandardError] error object if request failed
13205
+ #
13206
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13207
+ #
13208
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13209
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13210
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13211
+ def wait_project_location_notebook_execution_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
13212
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
13213
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13214
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13215
+ command.params['name'] = name unless name.nil?
13216
+ command.query['timeout'] = timeout unless timeout.nil?
13217
+ command.query['fields'] = fields unless fields.nil?
13218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13219
+ execute_or_queue_command(command, &block)
13220
+ end
13221
+
13005
13222
  # Creates a NotebookRuntimeTemplate.
13006
13223
  # @param [String] parent
13007
13224
  # Required. The resource name of the Location to create the
@@ -13325,12 +13542,16 @@ module Google
13325
13542
  execute_or_queue_command(command, &block)
13326
13543
  end
13327
13544
 
13328
- # Assigns a NotebookRuntime to a user for a particular Notebook file. This
13329
- # method will either returns an existing assignment or generates a new one.
13330
- # @param [String] parent
13331
- # Required. The resource name of the Location to get the NotebookRuntime
13332
- # assignment. Format: `projects/`project`/locations/`location``
13333
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AssignNotebookRuntimeRequest] google_cloud_aiplatform_v1_assign_notebook_runtime_request_object
13545
+ # Starts asynchronous cancellation on a long-running operation. The server makes
13546
+ # a best effort to cancel the operation, but success is not guaranteed. If the
13547
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
13548
+ # Clients can use Operations.GetOperation or other methods to check whether the
13549
+ # cancellation succeeded or whether the operation completed despite cancellation.
13550
+ # On successful cancellation, the operation is not deleted; instead, it becomes
13551
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
13552
+ # corresponding to `Code.CANCELLED`.
13553
+ # @param [String] name
13554
+ # The name of the operation resource to be cancelled.
13334
13555
  # @param [String] fields
13335
13556
  # Selector specifying which fields to include in a partial response.
13336
13557
  # @param [String] quota_user
@@ -13340,32 +13561,30 @@ module Google
13340
13561
  # Request-specific options
13341
13562
  #
13342
13563
  # @yield [result, err] Result & error if block supplied
13343
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13564
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
13344
13565
  # @yieldparam err [StandardError] error object if request failed
13345
13566
  #
13346
- # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13567
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
13347
13568
  #
13348
13569
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13349
13570
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13350
13571
  # @raise [Google::Apis::AuthorizationError] Authorization is required
13351
- def assign_project_location_notebook_runtime(parent, google_cloud_aiplatform_v1_assign_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
13352
- command = make_simple_command(:post, 'v1/{+parent}/notebookRuntimes:assign', options)
13353
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AssignNotebookRuntimeRequest::Representation
13354
- command.request_object = google_cloud_aiplatform_v1_assign_notebook_runtime_request_object
13355
- command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13356
- command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13357
- command.params['parent'] = parent unless parent.nil?
13572
+ def cancel_project_location_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13573
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
13574
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
13575
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
13576
+ command.params['name'] = name unless name.nil?
13358
13577
  command.query['fields'] = fields unless fields.nil?
13359
13578
  command.query['quotaUser'] = quota_user unless quota_user.nil?
13360
13579
  execute_or_queue_command(command, &block)
13361
13580
  end
13362
13581
 
13363
- # Deletes a NotebookRuntime.
13582
+ # Deletes a long-running operation. This method indicates that the client is no
13583
+ # longer interested in the operation result. It does not cancel the operation.
13584
+ # If the server doesn't support this method, it returns `google.rpc.Code.
13585
+ # UNIMPLEMENTED`.
13364
13586
  # @param [String] name
13365
- # Required. The name of the NotebookRuntime resource to be deleted. Instead of
13366
- # checking whether the name is in valid NotebookRuntime resource name format,
13367
- # directly throw NotFound exception if there is no such NotebookRuntime in
13368
- # spanner.
13587
+ # The name of the operation resource to be deleted.
13369
13588
  # @param [String] fields
13370
13589
  # Selector specifying which fields to include in a partial response.
13371
13590
  # @param [String] quota_user
@@ -13375,28 +13594,209 @@ module Google
13375
13594
  # Request-specific options
13376
13595
  #
13377
13596
  # @yield [result, err] Result & error if block supplied
13378
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13597
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
13379
13598
  # @yieldparam err [StandardError] error object if request failed
13380
13599
  #
13381
- # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13600
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
13382
13601
  #
13383
13602
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13384
13603
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13385
13604
  # @raise [Google::Apis::AuthorizationError] Authorization is required
13386
- def delete_project_location_notebook_runtime(name, fields: nil, quota_user: nil, options: nil, &block)
13605
+ def delete_project_location_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13387
13606
  command = make_simple_command(:delete, 'v1/{+name}', options)
13388
- command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13389
- command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13607
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
13608
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
13390
13609
  command.params['name'] = name unless name.nil?
13391
13610
  command.query['fields'] = fields unless fields.nil?
13392
13611
  command.query['quotaUser'] = quota_user unless quota_user.nil?
13393
13612
  execute_or_queue_command(command, &block)
13394
13613
  end
13395
13614
 
13396
- # Gets a NotebookRuntime.
13615
+ # Gets the latest state of a long-running operation. Clients can use this method
13616
+ # to poll the operation result at intervals as recommended by the API service.
13397
13617
  # @param [String] name
13398
- # Required. The name of the NotebookRuntime resource. Instead of checking
13399
- # whether the name is in valid NotebookRuntime resource name format, directly
13618
+ # The name of the operation resource.
13619
+ # @param [String] fields
13620
+ # Selector specifying which fields to include in a partial response.
13621
+ # @param [String] quota_user
13622
+ # Available to use for quota purposes for server-side applications. Can be any
13623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13624
+ # @param [Google::Apis::RequestOptions] options
13625
+ # Request-specific options
13626
+ #
13627
+ # @yield [result, err] Result & error if block supplied
13628
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13629
+ # @yieldparam err [StandardError] error object if request failed
13630
+ #
13631
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13632
+ #
13633
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13634
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13635
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13636
+ def get_project_location_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13637
+ command = make_simple_command(:get, 'v1/{+name}', options)
13638
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13639
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13640
+ command.params['name'] = name unless name.nil?
13641
+ command.query['fields'] = fields unless fields.nil?
13642
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13643
+ execute_or_queue_command(command, &block)
13644
+ end
13645
+
13646
+ # Lists operations that match the specified filter in the request. If the server
13647
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
13648
+ # @param [String] name
13649
+ # The name of the operation's parent resource.
13650
+ # @param [String] filter
13651
+ # The standard list filter.
13652
+ # @param [Fixnum] page_size
13653
+ # The standard list page size.
13654
+ # @param [String] page_token
13655
+ # The standard list page token.
13656
+ # @param [String] fields
13657
+ # Selector specifying which fields to include in a partial response.
13658
+ # @param [String] quota_user
13659
+ # Available to use for quota purposes for server-side applications. Can be any
13660
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13661
+ # @param [Google::Apis::RequestOptions] options
13662
+ # Request-specific options
13663
+ #
13664
+ # @yield [result, err] Result & error if block supplied
13665
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
13666
+ # @yieldparam err [StandardError] error object if request failed
13667
+ #
13668
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
13669
+ #
13670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13673
+ 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)
13674
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
13675
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
13676
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
13677
+ command.params['name'] = name unless name.nil?
13678
+ command.query['filter'] = filter unless filter.nil?
13679
+ command.query['pageSize'] = page_size unless page_size.nil?
13680
+ command.query['pageToken'] = page_token unless page_token.nil?
13681
+ command.query['fields'] = fields unless fields.nil?
13682
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13683
+ execute_or_queue_command(command, &block)
13684
+ end
13685
+
13686
+ # Waits until the specified long-running operation is done or reaches at most a
13687
+ # specified timeout, returning the latest state. If the operation is already
13688
+ # done, the latest state is immediately returned. If the timeout specified is
13689
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
13690
+ # the server does not support this method, it returns `google.rpc.Code.
13691
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
13692
+ # the latest state before the specified timeout (including immediately), meaning
13693
+ # even an immediate response is no guarantee that the operation is done.
13694
+ # @param [String] name
13695
+ # The name of the operation resource to wait on.
13696
+ # @param [String] timeout
13697
+ # The maximum duration to wait before timing out. If left blank, the wait will
13698
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
13699
+ # context deadline is also specified, the shorter one will be used.
13700
+ # @param [String] fields
13701
+ # Selector specifying which fields to include in a partial response.
13702
+ # @param [String] quota_user
13703
+ # Available to use for quota purposes for server-side applications. Can be any
13704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13705
+ # @param [Google::Apis::RequestOptions] options
13706
+ # Request-specific options
13707
+ #
13708
+ # @yield [result, err] Result & error if block supplied
13709
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13710
+ # @yieldparam err [StandardError] error object if request failed
13711
+ #
13712
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13713
+ #
13714
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13715
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13716
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13717
+ def wait_project_location_notebook_runtime_template_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
13718
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
13719
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13720
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13721
+ command.params['name'] = name unless name.nil?
13722
+ command.query['timeout'] = timeout unless timeout.nil?
13723
+ command.query['fields'] = fields unless fields.nil?
13724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13725
+ execute_or_queue_command(command, &block)
13726
+ end
13727
+
13728
+ # Assigns a NotebookRuntime to a user for a particular Notebook file. This
13729
+ # method will either returns an existing assignment or generates a new one.
13730
+ # @param [String] parent
13731
+ # Required. The resource name of the Location to get the NotebookRuntime
13732
+ # assignment. Format: `projects/`project`/locations/`location``
13733
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AssignNotebookRuntimeRequest] google_cloud_aiplatform_v1_assign_notebook_runtime_request_object
13734
+ # @param [String] fields
13735
+ # Selector specifying which fields to include in a partial response.
13736
+ # @param [String] quota_user
13737
+ # Available to use for quota purposes for server-side applications. Can be any
13738
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13739
+ # @param [Google::Apis::RequestOptions] options
13740
+ # Request-specific options
13741
+ #
13742
+ # @yield [result, err] Result & error if block supplied
13743
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13744
+ # @yieldparam err [StandardError] error object if request failed
13745
+ #
13746
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13747
+ #
13748
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13749
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13750
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13751
+ def assign_project_location_notebook_runtime(parent, google_cloud_aiplatform_v1_assign_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
13752
+ command = make_simple_command(:post, 'v1/{+parent}/notebookRuntimes:assign', options)
13753
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AssignNotebookRuntimeRequest::Representation
13754
+ command.request_object = google_cloud_aiplatform_v1_assign_notebook_runtime_request_object
13755
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13756
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13757
+ command.params['parent'] = parent unless parent.nil?
13758
+ command.query['fields'] = fields unless fields.nil?
13759
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13760
+ execute_or_queue_command(command, &block)
13761
+ end
13762
+
13763
+ # Deletes a NotebookRuntime.
13764
+ # @param [String] name
13765
+ # Required. The name of the NotebookRuntime resource to be deleted. Instead of
13766
+ # checking whether the name is in valid NotebookRuntime resource name format,
13767
+ # directly throw NotFound exception if there is no such NotebookRuntime in
13768
+ # spanner.
13769
+ # @param [String] fields
13770
+ # Selector specifying which fields to include in a partial response.
13771
+ # @param [String] quota_user
13772
+ # Available to use for quota purposes for server-side applications. Can be any
13773
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13774
+ # @param [Google::Apis::RequestOptions] options
13775
+ # Request-specific options
13776
+ #
13777
+ # @yield [result, err] Result & error if block supplied
13778
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13779
+ # @yieldparam err [StandardError] error object if request failed
13780
+ #
13781
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13782
+ #
13783
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13784
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13785
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13786
+ def delete_project_location_notebook_runtime(name, fields: nil, quota_user: nil, options: nil, &block)
13787
+ command = make_simple_command(:delete, 'v1/{+name}', options)
13788
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13789
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13790
+ command.params['name'] = name unless name.nil?
13791
+ command.query['fields'] = fields unless fields.nil?
13792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13793
+ execute_or_queue_command(command, &block)
13794
+ end
13795
+
13796
+ # Gets a NotebookRuntime.
13797
+ # @param [String] name
13798
+ # Required. The name of the NotebookRuntime resource. Instead of checking
13799
+ # whether the name is in valid NotebookRuntime resource name format, directly
13400
13800
  # throw NotFound exception if there is no such NotebookRuntime in spanner.
13401
13801
  # @param [String] fields
13402
13802
  # Selector specifying which fields to include in a partial response.
@@ -13568,6 +13968,189 @@ module Google
13568
13968
  execute_or_queue_command(command, &block)
13569
13969
  end
13570
13970
 
13971
+ # Starts asynchronous cancellation on a long-running operation. The server makes
13972
+ # a best effort to cancel the operation, but success is not guaranteed. If the
13973
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
13974
+ # Clients can use Operations.GetOperation or other methods to check whether the
13975
+ # cancellation succeeded or whether the operation completed despite cancellation.
13976
+ # On successful cancellation, the operation is not deleted; instead, it becomes
13977
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
13978
+ # corresponding to `Code.CANCELLED`.
13979
+ # @param [String] name
13980
+ # The name of the operation resource to be cancelled.
13981
+ # @param [String] fields
13982
+ # Selector specifying which fields to include in a partial response.
13983
+ # @param [String] quota_user
13984
+ # Available to use for quota purposes for server-side applications. Can be any
13985
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13986
+ # @param [Google::Apis::RequestOptions] options
13987
+ # Request-specific options
13988
+ #
13989
+ # @yield [result, err] Result & error if block supplied
13990
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
13991
+ # @yieldparam err [StandardError] error object if request failed
13992
+ #
13993
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
13994
+ #
13995
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13996
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13997
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13998
+ def cancel_project_location_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13999
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
14000
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
14001
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
14002
+ command.params['name'] = name unless name.nil?
14003
+ command.query['fields'] = fields unless fields.nil?
14004
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14005
+ execute_or_queue_command(command, &block)
14006
+ end
14007
+
14008
+ # Deletes a long-running operation. This method indicates that the client is no
14009
+ # longer interested in the operation result. It does not cancel the operation.
14010
+ # If the server doesn't support this method, it returns `google.rpc.Code.
14011
+ # UNIMPLEMENTED`.
14012
+ # @param [String] name
14013
+ # The name of the operation resource to be deleted.
14014
+ # @param [String] fields
14015
+ # Selector specifying which fields to include in a partial response.
14016
+ # @param [String] quota_user
14017
+ # Available to use for quota purposes for server-side applications. Can be any
14018
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14019
+ # @param [Google::Apis::RequestOptions] options
14020
+ # Request-specific options
14021
+ #
14022
+ # @yield [result, err] Result & error if block supplied
14023
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
14024
+ # @yieldparam err [StandardError] error object if request failed
14025
+ #
14026
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
14027
+ #
14028
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14029
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14030
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14031
+ def delete_project_location_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block)
14032
+ command = make_simple_command(:delete, 'v1/{+name}', options)
14033
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
14034
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
14035
+ command.params['name'] = name unless name.nil?
14036
+ command.query['fields'] = fields unless fields.nil?
14037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14038
+ execute_or_queue_command(command, &block)
14039
+ end
14040
+
14041
+ # Gets the latest state of a long-running operation. Clients can use this method
14042
+ # to poll the operation result at intervals as recommended by the API service.
14043
+ # @param [String] name
14044
+ # The name of the operation resource.
14045
+ # @param [String] fields
14046
+ # Selector specifying which fields to include in a partial response.
14047
+ # @param [String] quota_user
14048
+ # Available to use for quota purposes for server-side applications. Can be any
14049
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14050
+ # @param [Google::Apis::RequestOptions] options
14051
+ # Request-specific options
14052
+ #
14053
+ # @yield [result, err] Result & error if block supplied
14054
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
14055
+ # @yieldparam err [StandardError] error object if request failed
14056
+ #
14057
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
14058
+ #
14059
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14060
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14061
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14062
+ def get_project_location_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block)
14063
+ command = make_simple_command(:get, 'v1/{+name}', options)
14064
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
14065
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
14066
+ command.params['name'] = name unless name.nil?
14067
+ command.query['fields'] = fields unless fields.nil?
14068
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14069
+ execute_or_queue_command(command, &block)
14070
+ end
14071
+
14072
+ # Lists operations that match the specified filter in the request. If the server
14073
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
14074
+ # @param [String] name
14075
+ # The name of the operation's parent resource.
14076
+ # @param [String] filter
14077
+ # The standard list filter.
14078
+ # @param [Fixnum] page_size
14079
+ # The standard list page size.
14080
+ # @param [String] page_token
14081
+ # The standard list page token.
14082
+ # @param [String] fields
14083
+ # Selector specifying which fields to include in a partial response.
14084
+ # @param [String] quota_user
14085
+ # Available to use for quota purposes for server-side applications. Can be any
14086
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14087
+ # @param [Google::Apis::RequestOptions] options
14088
+ # Request-specific options
14089
+ #
14090
+ # @yield [result, err] Result & error if block supplied
14091
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
14092
+ # @yieldparam err [StandardError] error object if request failed
14093
+ #
14094
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
14095
+ #
14096
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14097
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14098
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14099
+ def list_project_location_notebook_runtime_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
14100
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
14101
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
14102
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
14103
+ command.params['name'] = name unless name.nil?
14104
+ command.query['filter'] = filter unless filter.nil?
14105
+ command.query['pageSize'] = page_size unless page_size.nil?
14106
+ command.query['pageToken'] = page_token unless page_token.nil?
14107
+ command.query['fields'] = fields unless fields.nil?
14108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14109
+ execute_or_queue_command(command, &block)
14110
+ end
14111
+
14112
+ # Waits until the specified long-running operation is done or reaches at most a
14113
+ # specified timeout, returning the latest state. If the operation is already
14114
+ # done, the latest state is immediately returned. If the timeout specified is
14115
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
14116
+ # the server does not support this method, it returns `google.rpc.Code.
14117
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
14118
+ # the latest state before the specified timeout (including immediately), meaning
14119
+ # even an immediate response is no guarantee that the operation is done.
14120
+ # @param [String] name
14121
+ # The name of the operation resource to wait on.
14122
+ # @param [String] timeout
14123
+ # The maximum duration to wait before timing out. If left blank, the wait will
14124
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
14125
+ # context deadline is also specified, the shorter one will be used.
14126
+ # @param [String] fields
14127
+ # Selector specifying which fields to include in a partial response.
14128
+ # @param [String] quota_user
14129
+ # Available to use for quota purposes for server-side applications. Can be any
14130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14131
+ # @param [Google::Apis::RequestOptions] options
14132
+ # Request-specific options
14133
+ #
14134
+ # @yield [result, err] Result & error if block supplied
14135
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
14136
+ # @yieldparam err [StandardError] error object if request failed
14137
+ #
14138
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
14139
+ #
14140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14143
+ def wait_project_location_notebook_runtime_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
14144
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
14145
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
14146
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
14147
+ command.params['name'] = name unless name.nil?
14148
+ command.query['timeout'] = timeout unless timeout.nil?
14149
+ command.query['fields'] = fields unless fields.nil?
14150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14151
+ execute_or_queue_command(command, &block)
14152
+ end
14153
+
13571
14154
  # Starts asynchronous cancellation on a long-running operation. The server makes
13572
14155
  # a best effort to cancel the operation, but success is not guaranteed. If the
13573
14156
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.