google-apis-aiplatform_v1 0.48.0 → 0.50.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.
@@ -52,6 +52,126 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
+ # Creates a BatchPredictionJob. A BatchPredictionJob once created will right
56
+ # away be attempted to start.
57
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob] google_cloud_aiplatform_v1_batch_prediction_job_object
58
+ # @param [String] parent
59
+ # Required. The resource name of the Location to create the BatchPredictionJob
60
+ # in. Format: `projects/`project`/locations/`location``
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # @param [Google::Apis::RequestOptions] options
67
+ # Request-specific options
68
+ #
69
+ # @yield [result, err] Result & error if block supplied
70
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob] parsed result object
71
+ # @yieldparam err [StandardError] error object if request failed
72
+ #
73
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob]
74
+ #
75
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
78
+ def create_batch_prediction_job(google_cloud_aiplatform_v1_batch_prediction_job_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
79
+ command = make_simple_command(:post, 'v1/batchPredictionJobs', options)
80
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob::Representation
81
+ command.request_object = google_cloud_aiplatform_v1_batch_prediction_job_object
82
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob::Representation
83
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob
84
+ command.query['parent'] = parent unless parent.nil?
85
+ command.query['fields'] = fields unless fields.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
+ execute_or_queue_command(command, &block)
88
+ end
89
+
90
+ # Gets a BatchPredictionJob
91
+ # @param [String] name
92
+ # Required. The name of the BatchPredictionJob resource. Format: `projects/`
93
+ # project`/locations/`location`/batchPredictionJobs/`batch_prediction_job``
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
96
+ # @param [String] quota_user
97
+ # Available to use for quota purposes for server-side applications. Can be any
98
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
99
+ # @param [Google::Apis::RequestOptions] options
100
+ # Request-specific options
101
+ #
102
+ # @yield [result, err] Result & error if block supplied
103
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob] parsed result object
104
+ # @yieldparam err [StandardError] error object if request failed
105
+ #
106
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob]
107
+ #
108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
111
+ def get_batch_prediction_job(name, fields: nil, quota_user: nil, options: nil, &block)
112
+ command = make_simple_command(:get, 'v1/{+name}', options)
113
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob::Representation
114
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchPredictionJob
115
+ command.params['name'] = name unless name.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
121
+ # Lists BatchPredictionJobs in a Location.
122
+ # @param [String] filter
123
+ # The standard list filter. Supported fields: * `display_name` supports `=`, `!=`
124
+ # comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=`
125
+ # comparisons. * `state` supports `=`, `!=` comparisons. * `create_time`
126
+ # supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be in
127
+ # RFC 3339 format. * `labels` supports general map functions that is: `labels.
128
+ # key=value` - key:value equality `labels.key:* - key existence Some examples of
129
+ # using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*
130
+ # "` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="
131
+ # my_job"` * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `
132
+ # labels.keyB:*`
133
+ # @param [Fixnum] page_size
134
+ # The standard list page size.
135
+ # @param [String] page_token
136
+ # The standard list page token. Typically obtained via
137
+ # ListBatchPredictionJobsResponse.next_page_token of the previous JobService.
138
+ # ListBatchPredictionJobs call.
139
+ # @param [String] parent
140
+ # Required. The resource name of the Location to list the BatchPredictionJobs
141
+ # from. Format: `projects/`project`/locations/`location``
142
+ # @param [String] read_mask
143
+ # Mask specifying which fields to read.
144
+ # @param [String] fields
145
+ # Selector specifying which fields to include in a partial response.
146
+ # @param [String] quota_user
147
+ # Available to use for quota purposes for server-side applications. Can be any
148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
149
+ # @param [Google::Apis::RequestOptions] options
150
+ # Request-specific options
151
+ #
152
+ # @yield [result, err] Result & error if block supplied
153
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListBatchPredictionJobsResponse] parsed result object
154
+ # @yieldparam err [StandardError] error object if request failed
155
+ #
156
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListBatchPredictionJobsResponse]
157
+ #
158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
161
+ def list_batch_prediction_jobs(filter: nil, page_size: nil, page_token: nil, parent: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
162
+ command = make_simple_command(:get, 'v1/batchPredictionJobs', options)
163
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListBatchPredictionJobsResponse::Representation
164
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListBatchPredictionJobsResponse
165
+ command.query['filter'] = filter unless filter.nil?
166
+ command.query['pageSize'] = page_size unless page_size.nil?
167
+ command.query['pageToken'] = page_token unless page_token.nil?
168
+ command.query['parent'] = parent unless parent.nil?
169
+ command.query['readMask'] = read_mask unless read_mask.nil?
170
+ command.query['fields'] = fields unless fields.nil?
171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
172
+ execute_or_queue_command(command, &block)
173
+ end
174
+
55
175
  # Creates a Dataset.
56
176
  # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset] google_cloud_aiplatform_v1_dataset_object
57
177
  # @param [String] parent
@@ -635,6 +755,40 @@ module Google
635
755
  execute_or_queue_command(command, &block)
636
756
  end
637
757
 
758
+ # Exposes an OpenAI-compatible endpoint for chat completions.
759
+ # @param [String] endpoint
760
+ # Required. The name of the endpoint requested to serve the prediction. Format: `
761
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
762
+ # @param [Google::Apis::AiplatformV1::GoogleApiHttpBody] google_api_http_body_object
763
+ # @param [String] fields
764
+ # Selector specifying which fields to include in a partial response.
765
+ # @param [String] quota_user
766
+ # Available to use for quota purposes for server-side applications. Can be any
767
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
768
+ # @param [Google::Apis::RequestOptions] options
769
+ # Request-specific options
770
+ #
771
+ # @yield [result, err] Result & error if block supplied
772
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
773
+ # @yieldparam err [StandardError] error object if request failed
774
+ #
775
+ # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
776
+ #
777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
780
+ def completions_endpoint_chat(endpoint, google_api_http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
781
+ command = make_simple_command(:post, 'v1/{+endpoint}/chat/completions', options)
782
+ command.request_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
783
+ command.request_object = google_api_http_body_object
784
+ command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
785
+ command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
786
+ command.params['endpoint'] = endpoint unless endpoint.nil?
787
+ command.query['fields'] = fields unless fields.nil?
788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
789
+ execute_or_queue_command(command, &block)
790
+ end
791
+
638
792
  # Upload a file into a RagCorpus.
639
793
  # @param [String] parent
640
794
  # Required. The name of the RagCorpus resource into which to upload the file.
@@ -917,6 +1071,9 @@ module Google
917
1071
  # Lists information about the supported locations for this service.
918
1072
  # @param [String] name
919
1073
  # The resource that owns the locations collection, if applicable.
1074
+ # @param [Array<String>, String] extra_location_types
1075
+ # Optional. A list of extra location types that should be used as conditions for
1076
+ # controlling the visibility of the locations.
920
1077
  # @param [String] filter
921
1078
  # A filter to narrow down results to a preferred subset. The filtering language
922
1079
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -944,11 +1101,12 @@ module Google
944
1101
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
945
1102
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
946
1103
  # @raise [Google::Apis::AuthorizationError] Authorization is required
947
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1104
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
948
1105
  command = make_simple_command(:get, 'v1/{+name}/locations', options)
949
1106
  command.response_representation = Google::Apis::AiplatformV1::GoogleCloudLocationListLocationsResponse::Representation
950
1107
  command.response_class = Google::Apis::AiplatformV1::GoogleCloudLocationListLocationsResponse
951
1108
  command.params['name'] = name unless name.nil?
1109
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
952
1110
  command.query['filter'] = filter unless filter.nil?
953
1111
  command.query['pageSize'] = page_size unless page_size.nil?
954
1112
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -18065,6 +18223,189 @@ module Google
18065
18223
  execute_or_queue_command(command, &block)
18066
18224
  end
18067
18225
 
18226
+ # Starts asynchronous cancellation on a long-running operation. The server makes
18227
+ # a best effort to cancel the operation, but success is not guaranteed. If the
18228
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
18229
+ # Clients can use Operations.GetOperation or other methods to check whether the
18230
+ # cancellation succeeded or whether the operation completed despite cancellation.
18231
+ # On successful cancellation, the operation is not deleted; instead, it becomes
18232
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
18233
+ # , corresponding to `Code.CANCELLED`.
18234
+ # @param [String] name
18235
+ # The name of the operation resource to be cancelled.
18236
+ # @param [String] fields
18237
+ # Selector specifying which fields to include in a partial response.
18238
+ # @param [String] quota_user
18239
+ # Available to use for quota purposes for server-side applications. Can be any
18240
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18241
+ # @param [Google::Apis::RequestOptions] options
18242
+ # Request-specific options
18243
+ #
18244
+ # @yield [result, err] Result & error if block supplied
18245
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
18246
+ # @yieldparam err [StandardError] error object if request failed
18247
+ #
18248
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
18249
+ #
18250
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18251
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18252
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18253
+ def cancel_project_location_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
18254
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
18255
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
18256
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
18257
+ command.params['name'] = name unless name.nil?
18258
+ command.query['fields'] = fields unless fields.nil?
18259
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18260
+ execute_or_queue_command(command, &block)
18261
+ end
18262
+
18263
+ # Deletes a long-running operation. This method indicates that the client is no
18264
+ # longer interested in the operation result. It does not cancel the operation.
18265
+ # If the server doesn't support this method, it returns `google.rpc.Code.
18266
+ # UNIMPLEMENTED`.
18267
+ # @param [String] name
18268
+ # The name of the operation resource to be deleted.
18269
+ # @param [String] fields
18270
+ # Selector specifying which fields to include in a partial response.
18271
+ # @param [String] quota_user
18272
+ # Available to use for quota purposes for server-side applications. Can be any
18273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18274
+ # @param [Google::Apis::RequestOptions] options
18275
+ # Request-specific options
18276
+ #
18277
+ # @yield [result, err] Result & error if block supplied
18278
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
18279
+ # @yieldparam err [StandardError] error object if request failed
18280
+ #
18281
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
18282
+ #
18283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18286
+ def delete_project_location_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
18287
+ command = make_simple_command(:delete, 'v1/{+name}', options)
18288
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
18289
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
18290
+ command.params['name'] = name unless name.nil?
18291
+ command.query['fields'] = fields unless fields.nil?
18292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18293
+ execute_or_queue_command(command, &block)
18294
+ end
18295
+
18296
+ # Gets the latest state of a long-running operation. Clients can use this method
18297
+ # to poll the operation result at intervals as recommended by the API service.
18298
+ # @param [String] name
18299
+ # The name of the operation resource.
18300
+ # @param [String] fields
18301
+ # Selector specifying which fields to include in a partial response.
18302
+ # @param [String] quota_user
18303
+ # Available to use for quota purposes for server-side applications. Can be any
18304
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18305
+ # @param [Google::Apis::RequestOptions] options
18306
+ # Request-specific options
18307
+ #
18308
+ # @yield [result, err] Result & error if block supplied
18309
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
18310
+ # @yieldparam err [StandardError] error object if request failed
18311
+ #
18312
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
18313
+ #
18314
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18315
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18316
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18317
+ def get_project_location_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
18318
+ command = make_simple_command(:get, 'v1/{+name}', options)
18319
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
18320
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
18321
+ command.params['name'] = name unless name.nil?
18322
+ command.query['fields'] = fields unless fields.nil?
18323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18324
+ execute_or_queue_command(command, &block)
18325
+ end
18326
+
18327
+ # Lists operations that match the specified filter in the request. If the server
18328
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
18329
+ # @param [String] name
18330
+ # The name of the operation's parent resource.
18331
+ # @param [String] filter
18332
+ # The standard list filter.
18333
+ # @param [Fixnum] page_size
18334
+ # The standard list page size.
18335
+ # @param [String] page_token
18336
+ # The standard list page token.
18337
+ # @param [String] fields
18338
+ # Selector specifying which fields to include in a partial response.
18339
+ # @param [String] quota_user
18340
+ # Available to use for quota purposes for server-side applications. Can be any
18341
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18342
+ # @param [Google::Apis::RequestOptions] options
18343
+ # Request-specific options
18344
+ #
18345
+ # @yield [result, err] Result & error if block supplied
18346
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
18347
+ # @yieldparam err [StandardError] error object if request failed
18348
+ #
18349
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
18350
+ #
18351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18354
+ def list_project_location_rag_engine_config_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
18355
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
18356
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
18357
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
18358
+ command.params['name'] = name unless name.nil?
18359
+ command.query['filter'] = filter unless filter.nil?
18360
+ command.query['pageSize'] = page_size unless page_size.nil?
18361
+ command.query['pageToken'] = page_token unless page_token.nil?
18362
+ command.query['fields'] = fields unless fields.nil?
18363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18364
+ execute_or_queue_command(command, &block)
18365
+ end
18366
+
18367
+ # Waits until the specified long-running operation is done or reaches at most a
18368
+ # specified timeout, returning the latest state. If the operation is already
18369
+ # done, the latest state is immediately returned. If the timeout specified is
18370
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
18371
+ # the server does not support this method, it returns `google.rpc.Code.
18372
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
18373
+ # the latest state before the specified timeout (including immediately), meaning
18374
+ # even an immediate response is no guarantee that the operation is done.
18375
+ # @param [String] name
18376
+ # The name of the operation resource to wait on.
18377
+ # @param [String] timeout
18378
+ # The maximum duration to wait before timing out. If left blank, the wait will
18379
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
18380
+ # context deadline is also specified, the shorter one will be used.
18381
+ # @param [String] fields
18382
+ # Selector specifying which fields to include in a partial response.
18383
+ # @param [String] quota_user
18384
+ # Available to use for quota purposes for server-side applications. Can be any
18385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18386
+ # @param [Google::Apis::RequestOptions] options
18387
+ # Request-specific options
18388
+ #
18389
+ # @yield [result, err] Result & error if block supplied
18390
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
18391
+ # @yieldparam err [StandardError] error object if request failed
18392
+ #
18393
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
18394
+ #
18395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18398
+ def wait_project_location_rag_engine_config_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
18399
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
18400
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
18401
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
18402
+ command.params['name'] = name unless name.nil?
18403
+ command.query['timeout'] = timeout unless timeout.nil?
18404
+ command.query['fields'] = fields unless fields.nil?
18405
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18406
+ execute_or_queue_command(command, &block)
18407
+ end
18408
+
18068
18409
  # Creates a reasoning engine.
18069
18410
  # @param [String] parent
18070
18411
  # Required. The resource name of the Location to create the ReasoningEngine in.
@@ -18103,6 +18444,10 @@ module Google
18103
18444
  # @param [String] name
18104
18445
  # Required. The name of the ReasoningEngine resource to be deleted. Format: `
18105
18446
  # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
18447
+ # @param [Boolean] force
18448
+ # Optional. If set to true, child resources of this reasoning engine will also
18449
+ # be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error
18450
+ # when the reasoning engine has undeleted child resources.
18106
18451
  # @param [String] fields
18107
18452
  # Selector specifying which fields to include in a partial response.
18108
18453
  # @param [String] quota_user
@@ -18120,11 +18465,12 @@ module Google
18120
18465
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18121
18466
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18122
18467
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18123
- def delete_project_location_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block)
18468
+ def delete_project_location_reasoning_engine(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
18124
18469
  command = make_simple_command(:delete, 'v1/{+name}', options)
18125
18470
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
18126
18471
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
18127
18472
  command.params['name'] = name unless name.nil?
18473
+ command.query['force'] = force unless force.nil?
18128
18474
  command.query['fields'] = fields unless fields.nil?
18129
18475
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18130
18476
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-30 00:00:00.000000000 Z
10
+ date: 2025-04-27 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.48.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.50.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
62
62
  rdoc_options: []
63
63
  require_paths: