google-apis-aiplatform_v1beta1 0.25.0 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +3567 -6056
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +3686 -4736
- data/lib/google/apis/aiplatform_v1beta1/service.rb +1037 -316
- metadata +3 -3
@@ -52,6 +52,50 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
+
# Upload a file into a RagCorpus.
|
56
|
+
# @param [String] parent
|
57
|
+
# Required. The name of the RagCorpus resource into which to upload the file.
|
58
|
+
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
59
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileRequest] google_cloud_aiplatform_v1beta1_upload_rag_file_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 [IO, String] upload_source
|
66
|
+
# IO stream or filename containing content to upload
|
67
|
+
# @param [String] content_type
|
68
|
+
# Content type of the uploaded content.
|
69
|
+
# @param [Google::Apis::RequestOptions] options
|
70
|
+
# Request-specific options
|
71
|
+
#
|
72
|
+
# @yield [result, err] Result & error if block supplied
|
73
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse] parsed result object
|
74
|
+
# @yieldparam err [StandardError] error object if request failed
|
75
|
+
#
|
76
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse]
|
77
|
+
#
|
78
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
+
def upload_medium(parent, google_cloud_aiplatform_v1beta1_upload_rag_file_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
82
|
+
if upload_source.nil?
|
83
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/ragFiles:upload', options)
|
84
|
+
else
|
85
|
+
command = make_upload_command(:post, 'v1beta1/{+parent}/ragFiles:upload', options)
|
86
|
+
command.upload_source = upload_source
|
87
|
+
command.upload_content_type = content_type
|
88
|
+
end
|
89
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileRequest::Representation
|
90
|
+
command.request_object = google_cloud_aiplatform_v1beta1_upload_rag_file_request_object
|
91
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse::Representation
|
92
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse
|
93
|
+
command.params['parent'] = parent unless parent.nil?
|
94
|
+
command.query['fields'] = fields unless fields.nil?
|
95
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
96
|
+
execute_or_queue_command(command, &block)
|
97
|
+
end
|
98
|
+
|
55
99
|
# Gets a GenAI cache config.
|
56
100
|
# @param [String] name
|
57
101
|
# Required. Name of the cache config. Format: - `projects/`project`/cacheConfig`.
|
@@ -223,6 +267,407 @@ module Google
|
|
223
267
|
execute_or_queue_command(command, &block)
|
224
268
|
end
|
225
269
|
|
270
|
+
# Retrieves relevant contexts for a query.
|
271
|
+
# @param [String] parent
|
272
|
+
# Required. The resource name of the Location from which to retrieve RagContexts.
|
273
|
+
# The users must have permission to make a call in the project. Format: `
|
274
|
+
# projects/`project`/locations/`location``.
|
275
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest] google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object
|
276
|
+
# @param [String] fields
|
277
|
+
# Selector specifying which fields to include in a partial response.
|
278
|
+
# @param [String] quota_user
|
279
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
280
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
281
|
+
# @param [Google::Apis::RequestOptions] options
|
282
|
+
# Request-specific options
|
283
|
+
#
|
284
|
+
# @yield [result, err] Result & error if block supplied
|
285
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse] parsed result object
|
286
|
+
# @yieldparam err [StandardError] error object if request failed
|
287
|
+
#
|
288
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse]
|
289
|
+
#
|
290
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
291
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
292
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
293
|
+
def retrieve_project_location_contexts(parent, google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
294
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:retrieveContexts', options)
|
295
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest::Representation
|
296
|
+
command.request_object = google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object
|
297
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse::Representation
|
298
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse
|
299
|
+
command.params['parent'] = parent unless parent.nil?
|
300
|
+
command.query['fields'] = fields unless fields.nil?
|
301
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
302
|
+
execute_or_queue_command(command, &block)
|
303
|
+
end
|
304
|
+
|
305
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
306
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
307
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
308
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
309
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
310
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
311
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
312
|
+
# corresponding to `Code.CANCELLED`.
|
313
|
+
# @param [String] name
|
314
|
+
# The name of the operation resource to be cancelled.
|
315
|
+
# @param [String] fields
|
316
|
+
# Selector specifying which fields to include in a partial response.
|
317
|
+
# @param [String] quota_user
|
318
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
319
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
320
|
+
# @param [Google::Apis::RequestOptions] options
|
321
|
+
# Request-specific options
|
322
|
+
#
|
323
|
+
# @yield [result, err] Result & error if block supplied
|
324
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
325
|
+
# @yieldparam err [StandardError] error object if request failed
|
326
|
+
#
|
327
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
328
|
+
#
|
329
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
330
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
331
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
332
|
+
def cancel_project_location_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
333
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
334
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
335
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
336
|
+
command.params['name'] = name unless name.nil?
|
337
|
+
command.query['fields'] = fields unless fields.nil?
|
338
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
339
|
+
execute_or_queue_command(command, &block)
|
340
|
+
end
|
341
|
+
|
342
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
343
|
+
# longer interested in the operation result. It does not cancel the operation.
|
344
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
345
|
+
# UNIMPLEMENTED`.
|
346
|
+
# @param [String] name
|
347
|
+
# The name of the operation resource to be deleted.
|
348
|
+
# @param [String] fields
|
349
|
+
# Selector specifying which fields to include in a partial response.
|
350
|
+
# @param [String] quota_user
|
351
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
352
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
353
|
+
# @param [Google::Apis::RequestOptions] options
|
354
|
+
# Request-specific options
|
355
|
+
#
|
356
|
+
# @yield [result, err] Result & error if block supplied
|
357
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
358
|
+
# @yieldparam err [StandardError] error object if request failed
|
359
|
+
#
|
360
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
361
|
+
#
|
362
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
363
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
364
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
365
|
+
def delete_project_location_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
366
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
367
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
368
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
369
|
+
command.params['name'] = name unless name.nil?
|
370
|
+
command.query['fields'] = fields unless fields.nil?
|
371
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
372
|
+
execute_or_queue_command(command, &block)
|
373
|
+
end
|
374
|
+
|
375
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
376
|
+
# to poll the operation result at intervals as recommended by the API service.
|
377
|
+
# @param [String] name
|
378
|
+
# The name of the operation resource.
|
379
|
+
# @param [String] fields
|
380
|
+
# Selector specifying which fields to include in a partial response.
|
381
|
+
# @param [String] quota_user
|
382
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
383
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
384
|
+
# @param [Google::Apis::RequestOptions] options
|
385
|
+
# Request-specific options
|
386
|
+
#
|
387
|
+
# @yield [result, err] Result & error if block supplied
|
388
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
389
|
+
# @yieldparam err [StandardError] error object if request failed
|
390
|
+
#
|
391
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
392
|
+
#
|
393
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
394
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
395
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
396
|
+
def get_project_location_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
397
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
398
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
399
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
400
|
+
command.params['name'] = name unless name.nil?
|
401
|
+
command.query['fields'] = fields unless fields.nil?
|
402
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
403
|
+
execute_or_queue_command(command, &block)
|
404
|
+
end
|
405
|
+
|
406
|
+
# Lists operations that match the specified filter in the request. If the server
|
407
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
408
|
+
# @param [String] name
|
409
|
+
# The name of the operation's parent resource.
|
410
|
+
# @param [String] filter
|
411
|
+
# The standard list filter.
|
412
|
+
# @param [Fixnum] page_size
|
413
|
+
# The standard list page size.
|
414
|
+
# @param [String] page_token
|
415
|
+
# The standard list page token.
|
416
|
+
# @param [String] fields
|
417
|
+
# Selector specifying which fields to include in a partial response.
|
418
|
+
# @param [String] quota_user
|
419
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
420
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
421
|
+
# @param [Google::Apis::RequestOptions] options
|
422
|
+
# Request-specific options
|
423
|
+
#
|
424
|
+
# @yield [result, err] Result & error if block supplied
|
425
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
426
|
+
# @yieldparam err [StandardError] error object if request failed
|
427
|
+
#
|
428
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
429
|
+
#
|
430
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
431
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
432
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
433
|
+
def list_project_location_agent_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
434
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
435
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
436
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
437
|
+
command.params['name'] = name unless name.nil?
|
438
|
+
command.query['filter'] = filter unless filter.nil?
|
439
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
440
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
441
|
+
command.query['fields'] = fields unless fields.nil?
|
442
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
443
|
+
execute_or_queue_command(command, &block)
|
444
|
+
end
|
445
|
+
|
446
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
447
|
+
# specified timeout, returning the latest state. If the operation is already
|
448
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
449
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
450
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
451
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
452
|
+
# the latest state before the specified timeout (including immediately), meaning
|
453
|
+
# even an immediate response is no guarantee that the operation is done.
|
454
|
+
# @param [String] name
|
455
|
+
# The name of the operation resource to wait on.
|
456
|
+
# @param [String] timeout
|
457
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
458
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
459
|
+
# context deadline is also specified, the shorter one will be used.
|
460
|
+
# @param [String] fields
|
461
|
+
# Selector specifying which fields to include in a partial response.
|
462
|
+
# @param [String] quota_user
|
463
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
464
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
465
|
+
# @param [Google::Apis::RequestOptions] options
|
466
|
+
# Request-specific options
|
467
|
+
#
|
468
|
+
# @yield [result, err] Result & error if block supplied
|
469
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
470
|
+
# @yieldparam err [StandardError] error object if request failed
|
471
|
+
#
|
472
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
473
|
+
#
|
474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
477
|
+
def wait_project_location_agent_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
478
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
479
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
480
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
481
|
+
command.params['name'] = name unless name.nil?
|
482
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
483
|
+
command.query['fields'] = fields unless fields.nil?
|
484
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
485
|
+
execute_or_queue_command(command, &block)
|
486
|
+
end
|
487
|
+
|
488
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
489
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
490
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
491
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
492
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
493
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
494
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
495
|
+
# corresponding to `Code.CANCELLED`.
|
496
|
+
# @param [String] name
|
497
|
+
# The name of the operation resource to be cancelled.
|
498
|
+
# @param [String] fields
|
499
|
+
# Selector specifying which fields to include in a partial response.
|
500
|
+
# @param [String] quota_user
|
501
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
502
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
503
|
+
# @param [Google::Apis::RequestOptions] options
|
504
|
+
# Request-specific options
|
505
|
+
#
|
506
|
+
# @yield [result, err] Result & error if block supplied
|
507
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
508
|
+
# @yieldparam err [StandardError] error object if request failed
|
509
|
+
#
|
510
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
511
|
+
#
|
512
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
513
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
514
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
515
|
+
def cancel_project_location_app_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
516
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
517
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
518
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
519
|
+
command.params['name'] = name unless name.nil?
|
520
|
+
command.query['fields'] = fields unless fields.nil?
|
521
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
522
|
+
execute_or_queue_command(command, &block)
|
523
|
+
end
|
524
|
+
|
525
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
526
|
+
# longer interested in the operation result. It does not cancel the operation.
|
527
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
528
|
+
# UNIMPLEMENTED`.
|
529
|
+
# @param [String] name
|
530
|
+
# The name of the operation resource to be deleted.
|
531
|
+
# @param [String] fields
|
532
|
+
# Selector specifying which fields to include in a partial response.
|
533
|
+
# @param [String] quota_user
|
534
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
535
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
536
|
+
# @param [Google::Apis::RequestOptions] options
|
537
|
+
# Request-specific options
|
538
|
+
#
|
539
|
+
# @yield [result, err] Result & error if block supplied
|
540
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
541
|
+
# @yieldparam err [StandardError] error object if request failed
|
542
|
+
#
|
543
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
544
|
+
#
|
545
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
546
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
547
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
548
|
+
def delete_project_location_app_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
549
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
550
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
551
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
552
|
+
command.params['name'] = name unless name.nil?
|
553
|
+
command.query['fields'] = fields unless fields.nil?
|
554
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
555
|
+
execute_or_queue_command(command, &block)
|
556
|
+
end
|
557
|
+
|
558
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
559
|
+
# to poll the operation result at intervals as recommended by the API service.
|
560
|
+
# @param [String] name
|
561
|
+
# The name of the operation resource.
|
562
|
+
# @param [String] fields
|
563
|
+
# Selector specifying which fields to include in a partial response.
|
564
|
+
# @param [String] quota_user
|
565
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
566
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
567
|
+
# @param [Google::Apis::RequestOptions] options
|
568
|
+
# Request-specific options
|
569
|
+
#
|
570
|
+
# @yield [result, err] Result & error if block supplied
|
571
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
572
|
+
# @yieldparam err [StandardError] error object if request failed
|
573
|
+
#
|
574
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
575
|
+
#
|
576
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
577
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
578
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
579
|
+
def get_project_location_app_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
580
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
581
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
582
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
583
|
+
command.params['name'] = name unless name.nil?
|
584
|
+
command.query['fields'] = fields unless fields.nil?
|
585
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
586
|
+
execute_or_queue_command(command, &block)
|
587
|
+
end
|
588
|
+
|
589
|
+
# Lists operations that match the specified filter in the request. If the server
|
590
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
591
|
+
# @param [String] name
|
592
|
+
# The name of the operation's parent resource.
|
593
|
+
# @param [String] filter
|
594
|
+
# The standard list filter.
|
595
|
+
# @param [Fixnum] page_size
|
596
|
+
# The standard list page size.
|
597
|
+
# @param [String] page_token
|
598
|
+
# The standard list page token.
|
599
|
+
# @param [String] fields
|
600
|
+
# Selector specifying which fields to include in a partial response.
|
601
|
+
# @param [String] quota_user
|
602
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
603
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
604
|
+
# @param [Google::Apis::RequestOptions] options
|
605
|
+
# Request-specific options
|
606
|
+
#
|
607
|
+
# @yield [result, err] Result & error if block supplied
|
608
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
609
|
+
# @yieldparam err [StandardError] error object if request failed
|
610
|
+
#
|
611
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
612
|
+
#
|
613
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
614
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
615
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
616
|
+
def list_project_location_app_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
617
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
618
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
619
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
620
|
+
command.params['name'] = name unless name.nil?
|
621
|
+
command.query['filter'] = filter unless filter.nil?
|
622
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
623
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
624
|
+
command.query['fields'] = fields unless fields.nil?
|
625
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
626
|
+
execute_or_queue_command(command, &block)
|
627
|
+
end
|
628
|
+
|
629
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
630
|
+
# specified timeout, returning the latest state. If the operation is already
|
631
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
632
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
633
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
634
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
635
|
+
# the latest state before the specified timeout (including immediately), meaning
|
636
|
+
# even an immediate response is no guarantee that the operation is done.
|
637
|
+
# @param [String] name
|
638
|
+
# The name of the operation resource to wait on.
|
639
|
+
# @param [String] timeout
|
640
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
641
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
642
|
+
# context deadline is also specified, the shorter one will be used.
|
643
|
+
# @param [String] fields
|
644
|
+
# Selector specifying which fields to include in a partial response.
|
645
|
+
# @param [String] quota_user
|
646
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
647
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
648
|
+
# @param [Google::Apis::RequestOptions] options
|
649
|
+
# Request-specific options
|
650
|
+
#
|
651
|
+
# @yield [result, err] Result & error if block supplied
|
652
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
653
|
+
# @yieldparam err [StandardError] error object if request failed
|
654
|
+
#
|
655
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
656
|
+
#
|
657
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
658
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
659
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
660
|
+
def wait_project_location_app_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
661
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
662
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
663
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
664
|
+
command.params['name'] = name unless name.nil?
|
665
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
666
|
+
command.query['fields'] = fields unless fields.nil?
|
667
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
668
|
+
execute_or_queue_command(command, &block)
|
669
|
+
end
|
670
|
+
|
226
671
|
# Cancels a BatchPredictionJob. Starts asynchronous cancellation on the
|
227
672
|
# BatchPredictionJob. The server makes the best effort to cancel the job, but
|
228
673
|
# success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or
|
@@ -2311,24 +2756,61 @@ module Google
|
|
2311
2756
|
# Request-specific options
|
2312
2757
|
#
|
2313
2758
|
# @yield [result, err] Result & error if block supplied
|
2314
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] parsed result object
|
2759
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] parsed result object
|
2760
|
+
# @yieldparam err [StandardError] error object if request failed
|
2761
|
+
#
|
2762
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse]
|
2763
|
+
#
|
2764
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2765
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2766
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2767
|
+
def list_project_location_dataset_dataset_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2768
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/datasetVersions', options)
|
2769
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse::Representation
|
2770
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse
|
2771
|
+
command.params['parent'] = parent unless parent.nil?
|
2772
|
+
command.query['filter'] = filter unless filter.nil?
|
2773
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
2774
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2775
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2776
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
2777
|
+
command.query['fields'] = fields unless fields.nil?
|
2778
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2779
|
+
execute_or_queue_command(command, &block)
|
2780
|
+
end
|
2781
|
+
|
2782
|
+
# Updates a DatasetVersion.
|
2783
|
+
# @param [String] name
|
2784
|
+
# Output only. The resource name of the DatasetVersion.
|
2785
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object
|
2786
|
+
# @param [String] update_mask
|
2787
|
+
# Required. The update mask applies to the resource. For the `FieldMask`
|
2788
|
+
# definition, see google.protobuf.FieldMask. Updatable fields: * `display_name`
|
2789
|
+
# @param [String] fields
|
2790
|
+
# Selector specifying which fields to include in a partial response.
|
2791
|
+
# @param [String] quota_user
|
2792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2794
|
+
# @param [Google::Apis::RequestOptions] options
|
2795
|
+
# Request-specific options
|
2796
|
+
#
|
2797
|
+
# @yield [result, err] Result & error if block supplied
|
2798
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] parsed result object
|
2315
2799
|
# @yieldparam err [StandardError] error object if request failed
|
2316
2800
|
#
|
2317
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
2801
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion]
|
2318
2802
|
#
|
2319
2803
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2320
2804
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2321
2805
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2322
|
-
def
|
2323
|
-
command = make_simple_command(:
|
2324
|
-
command.
|
2325
|
-
command.
|
2326
|
-
command.
|
2327
|
-
command.
|
2328
|
-
command.
|
2329
|
-
command.query['
|
2330
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
2331
|
-
command.query['readMask'] = read_mask unless read_mask.nil?
|
2806
|
+
def patch_project_location_dataset_dataset_version(name, google_cloud_aiplatform_v1beta1_dataset_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2807
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
2808
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation
|
2809
|
+
command.request_object = google_cloud_aiplatform_v1beta1_dataset_version_object
|
2810
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation
|
2811
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion
|
2812
|
+
command.params['name'] = name unless name.nil?
|
2813
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2332
2814
|
command.query['fields'] = fields unless fields.nil?
|
2333
2815
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2334
2816
|
execute_or_queue_command(command, &block)
|
@@ -4891,234 +5373,11 @@ module Google
|
|
4891
5373
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4892
5374
|
execute_or_queue_command(command, &block)
|
4893
5375
|
end
|
4894
|
-
|
4895
|
-
# Gets an Extension.
|
4896
|
-
# @param [String] name
|
4897
|
-
# Required. The name of the Extension resource. Format: `projects/`project`/
|
4898
|
-
# locations/`location`/extensions/`extension``
|
4899
|
-
# @param [String] fields
|
4900
|
-
# Selector specifying which fields to include in a partial response.
|
4901
|
-
# @param [String] quota_user
|
4902
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4903
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4904
|
-
# @param [Google::Apis::RequestOptions] options
|
4905
|
-
# Request-specific options
|
4906
|
-
#
|
4907
|
-
# @yield [result, err] Result & error if block supplied
|
4908
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object
|
4909
|
-
# @yieldparam err [StandardError] error object if request failed
|
4910
|
-
#
|
4911
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension]
|
4912
|
-
#
|
4913
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4914
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4915
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4916
|
-
def get_project_location_extension(name, fields: nil, quota_user: nil, options: nil, &block)
|
4917
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
4918
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
|
4919
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension
|
4920
|
-
command.params['name'] = name unless name.nil?
|
4921
|
-
command.query['fields'] = fields unless fields.nil?
|
4922
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4923
|
-
execute_or_queue_command(command, &block)
|
4924
|
-
end
|
4925
|
-
|
4926
|
-
# Imports an Extension.
|
4927
|
-
# @param [String] parent
|
4928
|
-
# Required. The resource name of the Location to import the Extension in. Format:
|
4929
|
-
# `projects/`project`/locations/`location``
|
4930
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_object
|
4931
|
-
# @param [String] fields
|
4932
|
-
# Selector specifying which fields to include in a partial response.
|
4933
|
-
# @param [String] quota_user
|
4934
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4935
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4936
|
-
# @param [Google::Apis::RequestOptions] options
|
4937
|
-
# Request-specific options
|
4938
|
-
#
|
4939
|
-
# @yield [result, err] Result & error if block supplied
|
4940
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
4941
|
-
# @yieldparam err [StandardError] error object if request failed
|
4942
|
-
#
|
4943
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
4944
|
-
#
|
4945
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4946
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4947
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4948
|
-
def import_project_location_extension(parent, google_cloud_aiplatform_v1beta1_extension_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4949
|
-
command = make_simple_command(:post, 'v1beta1/{+parent}/extensions:import', options)
|
4950
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
|
4951
|
-
command.request_object = google_cloud_aiplatform_v1beta1_extension_object
|
4952
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
4953
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
4954
|
-
command.params['parent'] = parent unless parent.nil?
|
4955
|
-
command.query['fields'] = fields unless fields.nil?
|
4956
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4957
|
-
execute_or_queue_command(command, &block)
|
4958
|
-
end
|
4959
|
-
|
4960
|
-
# Lists Extensions in a location.
|
4961
|
-
# @param [String] parent
|
4962
|
-
# Required. The resource name of the Location to list the Extensions from.
|
4963
|
-
# Format: `projects/`project`/locations/`location``
|
4964
|
-
# @param [String] filter
|
4965
|
-
# Optional. The standard list filter. Supported fields: * `display_name` * `
|
4966
|
-
# create_time` * `update_time` More detail in [AIP-160](https://google.aip.dev/
|
4967
|
-
# 160).
|
4968
|
-
# @param [String] order_by
|
4969
|
-
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
4970
|
-
# order. Use "desc" after a field name for descending. Supported fields: * `
|
4971
|
-
# display_name` * `create_time` * `update_time` Example: `display_name,
|
4972
|
-
# create_time desc`.
|
4973
|
-
# @param [Fixnum] page_size
|
4974
|
-
# Optional. The standard list page size.
|
4975
|
-
# @param [String] page_token
|
4976
|
-
# Optional. The standard list page token.
|
4977
|
-
# @param [String] fields
|
4978
|
-
# Selector specifying which fields to include in a partial response.
|
4979
|
-
# @param [String] quota_user
|
4980
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4981
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4982
|
-
# @param [Google::Apis::RequestOptions] options
|
4983
|
-
# Request-specific options
|
4984
|
-
#
|
4985
|
-
# @yield [result, err] Result & error if block supplied
|
4986
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse] parsed result object
|
4987
|
-
# @yieldparam err [StandardError] error object if request failed
|
4988
|
-
#
|
4989
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse]
|
4990
|
-
#
|
4991
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4992
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4993
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4994
|
-
def list_project_location_extensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4995
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/extensions', options)
|
4996
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse::Representation
|
4997
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse
|
4998
|
-
command.params['parent'] = parent unless parent.nil?
|
4999
|
-
command.query['filter'] = filter unless filter.nil?
|
5000
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
5001
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
5002
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
5003
|
-
command.query['fields'] = fields unless fields.nil?
|
5004
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5005
|
-
execute_or_queue_command(command, &block)
|
5006
|
-
end
|
5007
|
-
|
5008
|
-
# Updates an Extension.
|
5009
|
-
# @param [String] name
|
5010
|
-
# Identifier. The resource name of the Extension.
|
5011
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_object
|
5012
|
-
# @param [String] update_mask
|
5013
|
-
# Required. Mask specifying which fields to update. Supported fields: * `
|
5014
|
-
# display_name` * `description` * `tool_use_examples`
|
5015
|
-
# @param [String] fields
|
5016
|
-
# Selector specifying which fields to include in a partial response.
|
5017
|
-
# @param [String] quota_user
|
5018
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5019
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5020
|
-
# @param [Google::Apis::RequestOptions] options
|
5021
|
-
# Request-specific options
|
5022
|
-
#
|
5023
|
-
# @yield [result, err] Result & error if block supplied
|
5024
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object
|
5025
|
-
# @yieldparam err [StandardError] error object if request failed
|
5026
|
-
#
|
5027
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension]
|
5028
|
-
#
|
5029
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5030
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5031
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5032
|
-
def patch_project_location_extension(name, google_cloud_aiplatform_v1beta1_extension_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5033
|
-
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
5034
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
|
5035
|
-
command.request_object = google_cloud_aiplatform_v1beta1_extension_object
|
5036
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
|
5037
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension
|
5038
|
-
command.params['name'] = name unless name.nil?
|
5039
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
5040
|
-
command.query['fields'] = fields unless fields.nil?
|
5041
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5042
|
-
execute_or_queue_command(command, &block)
|
5043
|
-
end
|
5044
|
-
|
5045
|
-
# Queries an extension with a default controller.
|
5046
|
-
# @param [String] name
|
5047
|
-
# Required. Name (identifier) of the extension; Format: `projects/`project`/
|
5048
|
-
# locations/`location`/extensions/`extension``
|
5049
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest] google_cloud_aiplatform_v1beta1_query_extension_request_object
|
5050
|
-
# @param [String] fields
|
5051
|
-
# Selector specifying which fields to include in a partial response.
|
5052
|
-
# @param [String] quota_user
|
5053
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5054
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5055
|
-
# @param [Google::Apis::RequestOptions] options
|
5056
|
-
# Request-specific options
|
5057
|
-
#
|
5058
|
-
# @yield [result, err] Result & error if block supplied
|
5059
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse] parsed result object
|
5060
|
-
# @yieldparam err [StandardError] error object if request failed
|
5061
|
-
#
|
5062
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse]
|
5063
|
-
#
|
5064
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5065
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5066
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5067
|
-
def query_project_location_extension(name, google_cloud_aiplatform_v1beta1_query_extension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5068
|
-
command = make_simple_command(:post, 'v1beta1/{+name}:query', options)
|
5069
|
-
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest::Representation
|
5070
|
-
command.request_object = google_cloud_aiplatform_v1beta1_query_extension_request_object
|
5071
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse::Representation
|
5072
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse
|
5073
|
-
command.params['name'] = name unless name.nil?
|
5074
|
-
command.query['fields'] = fields unless fields.nil?
|
5075
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5076
|
-
execute_or_queue_command(command, &block)
|
5077
|
-
end
|
5078
|
-
|
5079
|
-
# Starts asynchronous cancellation on a long-running operation. The server makes
|
5080
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
5081
|
-
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
5082
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
5083
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
5084
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
5085
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
5086
|
-
# corresponding to `Code.CANCELLED`.
|
5087
|
-
# @param [String] name
|
5088
|
-
# The name of the operation resource to be cancelled.
|
5089
|
-
# @param [String] fields
|
5090
|
-
# Selector specifying which fields to include in a partial response.
|
5091
|
-
# @param [String] quota_user
|
5092
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5093
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5094
|
-
# @param [Google::Apis::RequestOptions] options
|
5095
|
-
# Request-specific options
|
5096
|
-
#
|
5097
|
-
# @yield [result, err] Result & error if block supplied
|
5098
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
5099
|
-
# @yieldparam err [StandardError] error object if request failed
|
5100
|
-
#
|
5101
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
5102
|
-
#
|
5103
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5104
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5105
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5106
|
-
def cancel_project_location_extension_deployment_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
5107
|
-
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
5108
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
5109
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
5110
|
-
command.params['name'] = name unless name.nil?
|
5111
|
-
command.query['fields'] = fields unless fields.nil?
|
5112
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5113
|
-
execute_or_queue_command(command, &block)
|
5114
|
-
end
|
5115
|
-
|
5116
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
5117
|
-
# longer interested in the operation result. It does not cancel the operation.
|
5118
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
5119
|
-
# UNIMPLEMENTED`.
|
5376
|
+
|
5377
|
+
# Gets an Extension.
|
5120
5378
|
# @param [String] name
|
5121
|
-
# The name of the
|
5379
|
+
# Required. The name of the Extension resource. Format: `projects/`project`/
|
5380
|
+
# locations/`location`/extensions/`extension``
|
5122
5381
|
# @param [String] fields
|
5123
5382
|
# Selector specifying which fields to include in a partial response.
|
5124
5383
|
# @param [String] quota_user
|
@@ -5128,28 +5387,29 @@ module Google
|
|
5128
5387
|
# Request-specific options
|
5129
5388
|
#
|
5130
5389
|
# @yield [result, err] Result & error if block supplied
|
5131
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
5390
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object
|
5132
5391
|
# @yieldparam err [StandardError] error object if request failed
|
5133
5392
|
#
|
5134
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
5393
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension]
|
5135
5394
|
#
|
5136
5395
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5137
5396
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5138
5397
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5139
|
-
def
|
5140
|
-
command = make_simple_command(:
|
5141
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
5142
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
5398
|
+
def get_project_location_extension(name, fields: nil, quota_user: nil, options: nil, &block)
|
5399
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
5400
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
|
5401
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension
|
5143
5402
|
command.params['name'] = name unless name.nil?
|
5144
5403
|
command.query['fields'] = fields unless fields.nil?
|
5145
5404
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5146
5405
|
execute_or_queue_command(command, &block)
|
5147
5406
|
end
|
5148
5407
|
|
5149
|
-
#
|
5150
|
-
#
|
5151
|
-
#
|
5152
|
-
#
|
5408
|
+
# Imports an Extension.
|
5409
|
+
# @param [String] parent
|
5410
|
+
# Required. The resource name of the Location to import the Extension in. Format:
|
5411
|
+
# `projects/`project`/locations/`location``
|
5412
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_object
|
5153
5413
|
# @param [String] fields
|
5154
5414
|
# Selector specifying which fields to include in a partial response.
|
5155
5415
|
# @param [String] quota_user
|
@@ -5167,26 +5427,35 @@ module Google
|
|
5167
5427
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5168
5428
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5169
5429
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5170
|
-
def
|
5171
|
-
command = make_simple_command(:
|
5430
|
+
def import_project_location_extension(parent, google_cloud_aiplatform_v1beta1_extension_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5431
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/extensions:import', options)
|
5432
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
|
5433
|
+
command.request_object = google_cloud_aiplatform_v1beta1_extension_object
|
5172
5434
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
5173
5435
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
5174
|
-
command.params['
|
5436
|
+
command.params['parent'] = parent unless parent.nil?
|
5175
5437
|
command.query['fields'] = fields unless fields.nil?
|
5176
5438
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5177
5439
|
execute_or_queue_command(command, &block)
|
5178
5440
|
end
|
5179
5441
|
|
5180
|
-
# Lists
|
5181
|
-
#
|
5182
|
-
#
|
5183
|
-
#
|
5442
|
+
# Lists Extensions in a location.
|
5443
|
+
# @param [String] parent
|
5444
|
+
# Required. The resource name of the Location to list the Extensions from.
|
5445
|
+
# Format: `projects/`project`/locations/`location``
|
5184
5446
|
# @param [String] filter
|
5185
|
-
# The standard list filter.
|
5447
|
+
# Optional. The standard list filter. Supported fields: * `display_name` * `
|
5448
|
+
# create_time` * `update_time` More detail in [AIP-160](https://google.aip.dev/
|
5449
|
+
# 160).
|
5450
|
+
# @param [String] order_by
|
5451
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
5452
|
+
# order. Use "desc" after a field name for descending. Supported fields: * `
|
5453
|
+
# display_name` * `create_time` * `update_time` Example: `display_name,
|
5454
|
+
# create_time desc`.
|
5186
5455
|
# @param [Fixnum] page_size
|
5187
|
-
# The standard list page size.
|
5456
|
+
# Optional. The standard list page size.
|
5188
5457
|
# @param [String] page_token
|
5189
|
-
# The standard list page token.
|
5458
|
+
# Optional. The standard list page token.
|
5190
5459
|
# @param [String] fields
|
5191
5460
|
# Selector specifying which fields to include in a partial response.
|
5192
5461
|
# @param [String] quota_user
|
@@ -5196,20 +5465,21 @@ module Google
|
|
5196
5465
|
# Request-specific options
|
5197
5466
|
#
|
5198
5467
|
# @yield [result, err] Result & error if block supplied
|
5199
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
5468
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse] parsed result object
|
5200
5469
|
# @yieldparam err [StandardError] error object if request failed
|
5201
5470
|
#
|
5202
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
5471
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse]
|
5203
5472
|
#
|
5204
5473
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5205
5474
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5206
5475
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5207
|
-
def
|
5208
|
-
command = make_simple_command(:get, 'v1beta1/{+
|
5209
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
5210
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
5211
|
-
command.params['
|
5476
|
+
def list_project_location_extensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5477
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/extensions', options)
|
5478
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse::Representation
|
5479
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse
|
5480
|
+
command.params['parent'] = parent unless parent.nil?
|
5212
5481
|
command.query['filter'] = filter unless filter.nil?
|
5482
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
5213
5483
|
command.query['pageSize'] = page_size unless page_size.nil?
|
5214
5484
|
command.query['pageToken'] = page_token unless page_token.nil?
|
5215
5485
|
command.query['fields'] = fields unless fields.nil?
|
@@ -5217,20 +5487,13 @@ module Google
|
|
5217
5487
|
execute_or_queue_command(command, &block)
|
5218
5488
|
end
|
5219
5489
|
|
5220
|
-
#
|
5221
|
-
# specified timeout, returning the latest state. If the operation is already
|
5222
|
-
# done, the latest state is immediately returned. If the timeout specified is
|
5223
|
-
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
5224
|
-
# the server does not support this method, it returns `google.rpc.Code.
|
5225
|
-
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
5226
|
-
# the latest state before the specified timeout (including immediately), meaning
|
5227
|
-
# even an immediate response is no guarantee that the operation is done.
|
5490
|
+
# Updates an Extension.
|
5228
5491
|
# @param [String] name
|
5229
|
-
# The name of the
|
5230
|
-
# @param [
|
5231
|
-
#
|
5232
|
-
#
|
5233
|
-
#
|
5492
|
+
# Identifier. The resource name of the Extension.
|
5493
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_object
|
5494
|
+
# @param [String] update_mask
|
5495
|
+
# Required. Mask specifying which fields to update. Supported fields: * `
|
5496
|
+
# display_name` * `description` * `tool_use_examples`
|
5234
5497
|
# @param [String] fields
|
5235
5498
|
# Selector specifying which fields to include in a partial response.
|
5236
5499
|
# @param [String] quota_user
|
@@ -5240,20 +5503,56 @@ module Google
|
|
5240
5503
|
# Request-specific options
|
5241
5504
|
#
|
5242
5505
|
# @yield [result, err] Result & error if block supplied
|
5243
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
5506
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object
|
5244
5507
|
# @yieldparam err [StandardError] error object if request failed
|
5245
5508
|
#
|
5246
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
5509
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension]
|
5247
5510
|
#
|
5248
5511
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5249
5512
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5250
5513
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5251
|
-
def
|
5252
|
-
command = make_simple_command(:
|
5253
|
-
command.
|
5254
|
-
command.
|
5514
|
+
def patch_project_location_extension(name, google_cloud_aiplatform_v1beta1_extension_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5515
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
5516
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
|
5517
|
+
command.request_object = google_cloud_aiplatform_v1beta1_extension_object
|
5518
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
|
5519
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension
|
5520
|
+
command.params['name'] = name unless name.nil?
|
5521
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
5522
|
+
command.query['fields'] = fields unless fields.nil?
|
5523
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5524
|
+
execute_or_queue_command(command, &block)
|
5525
|
+
end
|
5526
|
+
|
5527
|
+
# Queries an extension with a default controller.
|
5528
|
+
# @param [String] name
|
5529
|
+
# Required. Name (identifier) of the extension; Format: `projects/`project`/
|
5530
|
+
# locations/`location`/extensions/`extension``
|
5531
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest] google_cloud_aiplatform_v1beta1_query_extension_request_object
|
5532
|
+
# @param [String] fields
|
5533
|
+
# Selector specifying which fields to include in a partial response.
|
5534
|
+
# @param [String] quota_user
|
5535
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5536
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5537
|
+
# @param [Google::Apis::RequestOptions] options
|
5538
|
+
# Request-specific options
|
5539
|
+
#
|
5540
|
+
# @yield [result, err] Result & error if block supplied
|
5541
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse] parsed result object
|
5542
|
+
# @yieldparam err [StandardError] error object if request failed
|
5543
|
+
#
|
5544
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse]
|
5545
|
+
#
|
5546
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5547
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5548
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5549
|
+
def query_project_location_extension(name, google_cloud_aiplatform_v1beta1_query_extension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5550
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:query', options)
|
5551
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest::Representation
|
5552
|
+
command.request_object = google_cloud_aiplatform_v1beta1_query_extension_request_object
|
5553
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse::Representation
|
5554
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse
|
5255
5555
|
command.params['name'] = name unless name.nil?
|
5256
|
-
command.query['timeout'] = timeout unless timeout.nil?
|
5257
5556
|
command.query['fields'] = fields unless fields.nil?
|
5258
5557
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5259
5558
|
execute_or_queue_command(command, &block)
|
@@ -5445,7 +5744,7 @@ module Google
|
|
5445
5744
|
# Creates a new FeatureGroup in a given project and location.
|
5446
5745
|
# @param [String] parent
|
5447
5746
|
# Required. The resource name of the Location to create FeatureGroups. Format: `
|
5448
|
-
# projects/`project`/locations/`location
|
5747
|
+
# projects/`project`/locations/`location``
|
5449
5748
|
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup] google_cloud_aiplatform_v1beta1_feature_group_object
|
5450
5749
|
# @param [String] feature_group_id
|
5451
5750
|
# Required. The ID to use for this FeatureGroup, which will become the final
|
@@ -17370,12 +17669,148 @@ module Google
|
|
17370
17669
|
execute_or_queue_command(command, &block)
|
17371
17670
|
end
|
17372
17671
|
|
17373
|
-
# Perform a server-side streaming online prediction request for Vertex LLM
|
17374
|
-
# streaming.
|
17375
|
-
# @param [String] endpoint
|
17376
|
-
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
17377
|
-
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
17378
|
-
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest] google_cloud_aiplatform_v1beta1_streaming_predict_request_object
|
17672
|
+
# Perform a server-side streaming online prediction request for Vertex LLM
|
17673
|
+
# streaming.
|
17674
|
+
# @param [String] endpoint
|
17675
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
17676
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
17677
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest] google_cloud_aiplatform_v1beta1_streaming_predict_request_object
|
17678
|
+
# @param [String] fields
|
17679
|
+
# Selector specifying which fields to include in a partial response.
|
17680
|
+
# @param [String] quota_user
|
17681
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17682
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17683
|
+
# @param [Google::Apis::RequestOptions] options
|
17684
|
+
# Request-specific options
|
17685
|
+
#
|
17686
|
+
# @yield [result, err] Result & error if block supplied
|
17687
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse] parsed result object
|
17688
|
+
# @yieldparam err [StandardError] error object if request failed
|
17689
|
+
#
|
17690
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse]
|
17691
|
+
#
|
17692
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17693
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17694
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17695
|
+
def server_project_location_publisher_model_streaming_predict(endpoint, google_cloud_aiplatform_v1beta1_streaming_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17696
|
+
command = make_simple_command(:post, 'v1beta1/{+endpoint}:serverStreamingPredict', options)
|
17697
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest::Representation
|
17698
|
+
command.request_object = google_cloud_aiplatform_v1beta1_streaming_predict_request_object
|
17699
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse::Representation
|
17700
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse
|
17701
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
17702
|
+
command.query['fields'] = fields unless fields.nil?
|
17703
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17704
|
+
execute_or_queue_command(command, &block)
|
17705
|
+
end
|
17706
|
+
|
17707
|
+
# Generate content with multimodal inputs with streaming support.
|
17708
|
+
# @param [String] model
|
17709
|
+
# Required. The name of the publisher model requested to serve the prediction.
|
17710
|
+
# Format: `projects/`project`/locations/`location`/publishers/*/models/*`
|
17711
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object
|
17712
|
+
# @param [String] fields
|
17713
|
+
# Selector specifying which fields to include in a partial response.
|
17714
|
+
# @param [String] quota_user
|
17715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17717
|
+
# @param [Google::Apis::RequestOptions] options
|
17718
|
+
# Request-specific options
|
17719
|
+
#
|
17720
|
+
# @yield [result, err] Result & error if block supplied
|
17721
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object
|
17722
|
+
# @yieldparam err [StandardError] error object if request failed
|
17723
|
+
#
|
17724
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse]
|
17725
|
+
#
|
17726
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17727
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17728
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17729
|
+
def stream_project_location_publisher_model_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17730
|
+
command = make_simple_command(:post, 'v1beta1/{+model}:streamGenerateContent', options)
|
17731
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation
|
17732
|
+
command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object
|
17733
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation
|
17734
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse
|
17735
|
+
command.params['model'] = model unless model.nil?
|
17736
|
+
command.query['fields'] = fields unless fields.nil?
|
17737
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17738
|
+
execute_or_queue_command(command, &block)
|
17739
|
+
end
|
17740
|
+
|
17741
|
+
# Creates a RagCorpus.
|
17742
|
+
# @param [String] parent
|
17743
|
+
# Required. The resource name of the Location to create the RagCorpus in. Format:
|
17744
|
+
# `projects/`project`/locations/`location``
|
17745
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] google_cloud_aiplatform_v1beta1_rag_corpus_object
|
17746
|
+
# @param [String] fields
|
17747
|
+
# Selector specifying which fields to include in a partial response.
|
17748
|
+
# @param [String] quota_user
|
17749
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17750
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17751
|
+
# @param [Google::Apis::RequestOptions] options
|
17752
|
+
# Request-specific options
|
17753
|
+
#
|
17754
|
+
# @yield [result, err] Result & error if block supplied
|
17755
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17756
|
+
# @yieldparam err [StandardError] error object if request failed
|
17757
|
+
#
|
17758
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17759
|
+
#
|
17760
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17761
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17762
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17763
|
+
def create_project_location_rag_corpora(parent, google_cloud_aiplatform_v1beta1_rag_corpus_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17764
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/ragCorpora', options)
|
17765
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation
|
17766
|
+
command.request_object = google_cloud_aiplatform_v1beta1_rag_corpus_object
|
17767
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17768
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17769
|
+
command.params['parent'] = parent unless parent.nil?
|
17770
|
+
command.query['fields'] = fields unless fields.nil?
|
17771
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17772
|
+
execute_or_queue_command(command, &block)
|
17773
|
+
end
|
17774
|
+
|
17775
|
+
# Deletes a RagCorpus.
|
17776
|
+
# @param [String] name
|
17777
|
+
# Required. The name of the RagCorpus resource to be deleted. Format: `projects/`
|
17778
|
+
# project`/locations/`location`/ragCorpora/`rag_corpus``
|
17779
|
+
# @param [Boolean] force
|
17780
|
+
# Optional. If set to true, any RagFiles in this RagCorpus will also be deleted.
|
17781
|
+
# Otherwise, the request will only work if the RagCorpus has no RagFiles.
|
17782
|
+
# @param [String] fields
|
17783
|
+
# Selector specifying which fields to include in a partial response.
|
17784
|
+
# @param [String] quota_user
|
17785
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17786
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17787
|
+
# @param [Google::Apis::RequestOptions] options
|
17788
|
+
# Request-specific options
|
17789
|
+
#
|
17790
|
+
# @yield [result, err] Result & error if block supplied
|
17791
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17792
|
+
# @yieldparam err [StandardError] error object if request failed
|
17793
|
+
#
|
17794
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17795
|
+
#
|
17796
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17797
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17798
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17799
|
+
def delete_project_location_rag_corpora(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17800
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
17801
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17802
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17803
|
+
command.params['name'] = name unless name.nil?
|
17804
|
+
command.query['force'] = force unless force.nil?
|
17805
|
+
command.query['fields'] = fields unless fields.nil?
|
17806
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17807
|
+
execute_or_queue_command(command, &block)
|
17808
|
+
end
|
17809
|
+
|
17810
|
+
# Gets a RagCorpus.
|
17811
|
+
# @param [String] name
|
17812
|
+
# Required. The name of the RagCorpus resource. Format: `projects/`project`/
|
17813
|
+
# locations/`location`/ragCorpora/`rag_corpus``
|
17379
17814
|
# @param [String] fields
|
17380
17815
|
# Selector specifying which fields to include in a partial response.
|
17381
17816
|
# @param [String] quota_user
|
@@ -17385,31 +17820,34 @@ module Google
|
|
17385
17820
|
# Request-specific options
|
17386
17821
|
#
|
17387
17822
|
# @yield [result, err] Result & error if block supplied
|
17388
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
17823
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] parsed result object
|
17389
17824
|
# @yieldparam err [StandardError] error object if request failed
|
17390
17825
|
#
|
17391
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
17826
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus]
|
17392
17827
|
#
|
17393
17828
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17394
17829
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17395
17830
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17396
|
-
def
|
17397
|
-
command = make_simple_command(:
|
17398
|
-
command.
|
17399
|
-
command.
|
17400
|
-
command.
|
17401
|
-
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse
|
17402
|
-
command.params['endpoint'] = endpoint unless endpoint.nil?
|
17831
|
+
def get_project_location_rag_corpora(name, fields: nil, quota_user: nil, options: nil, &block)
|
17832
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
17833
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation
|
17834
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus
|
17835
|
+
command.params['name'] = name unless name.nil?
|
17403
17836
|
command.query['fields'] = fields unless fields.nil?
|
17404
17837
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17405
17838
|
execute_or_queue_command(command, &block)
|
17406
17839
|
end
|
17407
17840
|
|
17408
|
-
#
|
17409
|
-
# @param [String]
|
17410
|
-
# Required. The name of the
|
17411
|
-
# Format: `projects/`project`/locations/`location
|
17412
|
-
# @param [
|
17841
|
+
# Lists RagCorpora in a Location.
|
17842
|
+
# @param [String] parent
|
17843
|
+
# Required. The resource name of the Location from which to list the RagCorpora.
|
17844
|
+
# Format: `projects/`project`/locations/`location``
|
17845
|
+
# @param [Fixnum] page_size
|
17846
|
+
# Optional. The standard list page size.
|
17847
|
+
# @param [String] page_token
|
17848
|
+
# Optional. The standard list page token. Typically obtained via
|
17849
|
+
# ListRagCorporaResponse.next_page_token of the previous VertexRagDataService.
|
17850
|
+
# ListRagCorpora call.
|
17413
17851
|
# @param [String] fields
|
17414
17852
|
# Selector specifying which fields to include in a partial response.
|
17415
17853
|
# @param [String] quota_user
|
@@ -17419,21 +17857,21 @@ module Google
|
|
17419
17857
|
# Request-specific options
|
17420
17858
|
#
|
17421
17859
|
# @yield [result, err] Result & error if block supplied
|
17422
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
17860
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse] parsed result object
|
17423
17861
|
# @yieldparam err [StandardError] error object if request failed
|
17424
17862
|
#
|
17425
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
17863
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse]
|
17426
17864
|
#
|
17427
17865
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17428
17866
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17429
17867
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17430
|
-
def
|
17431
|
-
command = make_simple_command(:
|
17432
|
-
command.
|
17433
|
-
command.
|
17434
|
-
command.
|
17435
|
-
command.
|
17436
|
-
command.
|
17868
|
+
def list_project_location_rag_corporas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17869
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/ragCorpora', options)
|
17870
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse::Representation
|
17871
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse
|
17872
|
+
command.params['parent'] = parent unless parent.nil?
|
17873
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
17874
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17437
17875
|
command.query['fields'] = fields unless fields.nil?
|
17438
17876
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17439
17877
|
execute_or_queue_command(command, &block)
|
@@ -17622,6 +18060,141 @@ module Google
|
|
17622
18060
|
execute_or_queue_command(command, &block)
|
17623
18061
|
end
|
17624
18062
|
|
18063
|
+
# Deletes a RagFile.
|
18064
|
+
# @param [String] name
|
18065
|
+
# Required. The name of the RagFile resource to be deleted. Format: `projects/`
|
18066
|
+
# project`/locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file``
|
18067
|
+
# @param [String] fields
|
18068
|
+
# Selector specifying which fields to include in a partial response.
|
18069
|
+
# @param [String] quota_user
|
18070
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18071
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18072
|
+
# @param [Google::Apis::RequestOptions] options
|
18073
|
+
# Request-specific options
|
18074
|
+
#
|
18075
|
+
# @yield [result, err] Result & error if block supplied
|
18076
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
18077
|
+
# @yieldparam err [StandardError] error object if request failed
|
18078
|
+
#
|
18079
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
18080
|
+
#
|
18081
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18082
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18083
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18084
|
+
def delete_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
18085
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
18086
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
18087
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
18088
|
+
command.params['name'] = name unless name.nil?
|
18089
|
+
command.query['fields'] = fields unless fields.nil?
|
18090
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18091
|
+
execute_or_queue_command(command, &block)
|
18092
|
+
end
|
18093
|
+
|
18094
|
+
# Gets a RagFile.
|
18095
|
+
# @param [String] name
|
18096
|
+
# Required. The name of the RagFile resource. Format: `projects/`project`/
|
18097
|
+
# locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file``
|
18098
|
+
# @param [String] fields
|
18099
|
+
# Selector specifying which fields to include in a partial response.
|
18100
|
+
# @param [String] quota_user
|
18101
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18102
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18103
|
+
# @param [Google::Apis::RequestOptions] options
|
18104
|
+
# Request-specific options
|
18105
|
+
#
|
18106
|
+
# @yield [result, err] Result & error if block supplied
|
18107
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile] parsed result object
|
18108
|
+
# @yieldparam err [StandardError] error object if request failed
|
18109
|
+
#
|
18110
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile]
|
18111
|
+
#
|
18112
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18113
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18114
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18115
|
+
def get_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
18116
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
18117
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile::Representation
|
18118
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile
|
18119
|
+
command.params['name'] = name unless name.nil?
|
18120
|
+
command.query['fields'] = fields unless fields.nil?
|
18121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18122
|
+
execute_or_queue_command(command, &block)
|
18123
|
+
end
|
18124
|
+
|
18125
|
+
# Import files from Google Cloud Storage or Google Drive into a RagCorpus.
|
18126
|
+
# @param [String] parent
|
18127
|
+
# Required. The name of the RagCorpus resource into which to import files.
|
18128
|
+
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
18129
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest] google_cloud_aiplatform_v1beta1_import_rag_files_request_object
|
18130
|
+
# @param [String] fields
|
18131
|
+
# Selector specifying which fields to include in a partial response.
|
18132
|
+
# @param [String] quota_user
|
18133
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18134
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18135
|
+
# @param [Google::Apis::RequestOptions] options
|
18136
|
+
# Request-specific options
|
18137
|
+
#
|
18138
|
+
# @yield [result, err] Result & error if block supplied
|
18139
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
18140
|
+
# @yieldparam err [StandardError] error object if request failed
|
18141
|
+
#
|
18142
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
18143
|
+
#
|
18144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18147
|
+
def import_project_location_rag_corpora_rag_file(parent, google_cloud_aiplatform_v1beta1_import_rag_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
18148
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/ragFiles:import', options)
|
18149
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest::Representation
|
18150
|
+
command.request_object = google_cloud_aiplatform_v1beta1_import_rag_files_request_object
|
18151
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
18152
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
18153
|
+
command.params['parent'] = parent unless parent.nil?
|
18154
|
+
command.query['fields'] = fields unless fields.nil?
|
18155
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18156
|
+
execute_or_queue_command(command, &block)
|
18157
|
+
end
|
18158
|
+
|
18159
|
+
# Lists RagFiles in a RagCorpus.
|
18160
|
+
# @param [String] parent
|
18161
|
+
# Required. The resource name of the RagCorpus from which to list the RagFiles.
|
18162
|
+
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
18163
|
+
# @param [Fixnum] page_size
|
18164
|
+
# Optional. The standard list page size.
|
18165
|
+
# @param [String] page_token
|
18166
|
+
# Optional. The standard list page token. Typically obtained via
|
18167
|
+
# ListRagFilesResponse.next_page_token of the previous VertexRagDataService.
|
18168
|
+
# ListRagFiles call.
|
18169
|
+
# @param [String] fields
|
18170
|
+
# Selector specifying which fields to include in a partial response.
|
18171
|
+
# @param [String] quota_user
|
18172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18174
|
+
# @param [Google::Apis::RequestOptions] options
|
18175
|
+
# Request-specific options
|
18176
|
+
#
|
18177
|
+
# @yield [result, err] Result & error if block supplied
|
18178
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse] parsed result object
|
18179
|
+
# @yieldparam err [StandardError] error object if request failed
|
18180
|
+
#
|
18181
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse]
|
18182
|
+
#
|
18183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18186
|
+
def list_project_location_rag_corpora_rag_files(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
18187
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/ragFiles', options)
|
18188
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse::Representation
|
18189
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse
|
18190
|
+
command.params['parent'] = parent unless parent.nil?
|
18191
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
18192
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
18193
|
+
command.query['fields'] = fields unless fields.nil?
|
18194
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18195
|
+
execute_or_queue_command(command, &block)
|
18196
|
+
end
|
18197
|
+
|
17625
18198
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
17626
18199
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
17627
18200
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -22216,6 +22789,154 @@ module Google
|
|
22216
22789
|
execute_or_queue_command(command, &block)
|
22217
22790
|
end
|
22218
22791
|
|
22792
|
+
# Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The
|
22793
|
+
# server makes a best effort to cancel the job, but success is not guaranteed.
|
22794
|
+
# Clients can use GenAiTuningService.GetTuningJob or other methods to check
|
22795
|
+
# whether the cancellation succeeded or whether the job completed despite
|
22796
|
+
# cancellation. On successful cancellation, the TuningJob is not deleted;
|
22797
|
+
# instead it becomes a job with a TuningJob.error value with a google.rpc.Status.
|
22798
|
+
# code of 1, corresponding to `Code.CANCELLED`, and TuningJob.state is set to `
|
22799
|
+
# CANCELLED`.
|
22800
|
+
# @param [String] name
|
22801
|
+
# Required. The name of the TuningJob to cancel. Format: `projects/`project`/
|
22802
|
+
# locations/`location`/tuningJobs/`tuning_job``
|
22803
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTuningJobRequest] google_cloud_aiplatform_v1beta1_cancel_tuning_job_request_object
|
22804
|
+
# @param [String] fields
|
22805
|
+
# Selector specifying which fields to include in a partial response.
|
22806
|
+
# @param [String] quota_user
|
22807
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22808
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22809
|
+
# @param [Google::Apis::RequestOptions] options
|
22810
|
+
# Request-specific options
|
22811
|
+
#
|
22812
|
+
# @yield [result, err] Result & error if block supplied
|
22813
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
22814
|
+
# @yieldparam err [StandardError] error object if request failed
|
22815
|
+
#
|
22816
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
22817
|
+
#
|
22818
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22819
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22820
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22821
|
+
def cancel_project_location_tuning_job(name, google_cloud_aiplatform_v1beta1_cancel_tuning_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
22822
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
22823
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTuningJobRequest::Representation
|
22824
|
+
command.request_object = google_cloud_aiplatform_v1beta1_cancel_tuning_job_request_object
|
22825
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
22826
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
22827
|
+
command.params['name'] = name unless name.nil?
|
22828
|
+
command.query['fields'] = fields unless fields.nil?
|
22829
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22830
|
+
execute_or_queue_command(command, &block)
|
22831
|
+
end
|
22832
|
+
|
22833
|
+
# Creates a TuningJob. A created TuningJob right away will be attempted to be
|
22834
|
+
# run.
|
22835
|
+
# @param [String] parent
|
22836
|
+
# Required. The resource name of the Location to create the TuningJob in. Format:
|
22837
|
+
# `projects/`project`/locations/`location``
|
22838
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] google_cloud_aiplatform_v1beta1_tuning_job_object
|
22839
|
+
# @param [String] fields
|
22840
|
+
# Selector specifying which fields to include in a partial response.
|
22841
|
+
# @param [String] quota_user
|
22842
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22843
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22844
|
+
# @param [Google::Apis::RequestOptions] options
|
22845
|
+
# Request-specific options
|
22846
|
+
#
|
22847
|
+
# @yield [result, err] Result & error if block supplied
|
22848
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] parsed result object
|
22849
|
+
# @yieldparam err [StandardError] error object if request failed
|
22850
|
+
#
|
22851
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob]
|
22852
|
+
#
|
22853
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22854
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22855
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22856
|
+
def create_project_location_tuning_job(parent, google_cloud_aiplatform_v1beta1_tuning_job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
22857
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/tuningJobs', options)
|
22858
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob::Representation
|
22859
|
+
command.request_object = google_cloud_aiplatform_v1beta1_tuning_job_object
|
22860
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob::Representation
|
22861
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob
|
22862
|
+
command.params['parent'] = parent unless parent.nil?
|
22863
|
+
command.query['fields'] = fields unless fields.nil?
|
22864
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22865
|
+
execute_or_queue_command(command, &block)
|
22866
|
+
end
|
22867
|
+
|
22868
|
+
# Gets a TuningJob.
|
22869
|
+
# @param [String] name
|
22870
|
+
# Required. The name of the TuningJob resource. Format: `projects/`project`/
|
22871
|
+
# locations/`location`/tuningJobs/`tuning_job``
|
22872
|
+
# @param [String] fields
|
22873
|
+
# Selector specifying which fields to include in a partial response.
|
22874
|
+
# @param [String] quota_user
|
22875
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22876
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22877
|
+
# @param [Google::Apis::RequestOptions] options
|
22878
|
+
# Request-specific options
|
22879
|
+
#
|
22880
|
+
# @yield [result, err] Result & error if block supplied
|
22881
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] parsed result object
|
22882
|
+
# @yieldparam err [StandardError] error object if request failed
|
22883
|
+
#
|
22884
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob]
|
22885
|
+
#
|
22886
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22887
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22888
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22889
|
+
def get_project_location_tuning_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
22890
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
22891
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob::Representation
|
22892
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob
|
22893
|
+
command.params['name'] = name unless name.nil?
|
22894
|
+
command.query['fields'] = fields unless fields.nil?
|
22895
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22896
|
+
execute_or_queue_command(command, &block)
|
22897
|
+
end
|
22898
|
+
|
22899
|
+
# Lists TuningJobs in a Location.
|
22900
|
+
# @param [String] parent
|
22901
|
+
# Required. The resource name of the Location to list the TuningJobs from.
|
22902
|
+
# Format: `projects/`project`/locations/`location``
|
22903
|
+
# @param [String] filter
|
22904
|
+
# Optional. The standard list filter.
|
22905
|
+
# @param [Fixnum] page_size
|
22906
|
+
# Optional. The standard list page size.
|
22907
|
+
# @param [String] page_token
|
22908
|
+
# Optional. The standard list page token. Typically obtained via ListTuningJob.
|
22909
|
+
# next_page_token of the previous GenAiTuningService.ListTuningJob][] call.
|
22910
|
+
# @param [String] fields
|
22911
|
+
# Selector specifying which fields to include in a partial response.
|
22912
|
+
# @param [String] quota_user
|
22913
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22914
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22915
|
+
# @param [Google::Apis::RequestOptions] options
|
22916
|
+
# Request-specific options
|
22917
|
+
#
|
22918
|
+
# @yield [result, err] Result & error if block supplied
|
22919
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse] parsed result object
|
22920
|
+
# @yieldparam err [StandardError] error object if request failed
|
22921
|
+
#
|
22922
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse]
|
22923
|
+
#
|
22924
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22925
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22926
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22927
|
+
def list_project_location_tuning_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
22928
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/tuningJobs', options)
|
22929
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse::Representation
|
22930
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse
|
22931
|
+
command.params['parent'] = parent unless parent.nil?
|
22932
|
+
command.query['filter'] = filter unless filter.nil?
|
22933
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
22934
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
22935
|
+
command.query['fields'] = fields unless fields.nil?
|
22936
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22937
|
+
execute_or_queue_command(command, &block)
|
22938
|
+
end
|
22939
|
+
|
22219
22940
|
# Gets a Model Garden publisher model.
|
22220
22941
|
# @param [String] name
|
22221
22942
|
# Required. The name of the PublisherModel resource. Format: `publishers/`
|