google-apis-aiplatform_v1 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3431,12 +3431,12 @@ module Google
3431
3431
  # Format: `projects/`project`/locations/`location``
3432
3432
  # @param [String] filter
3433
3433
  # Optional. An expression for filtering the results of the request. For field
3434
- # names both snake_case and camelCase are supported. * `endpoint` supports = and
3435
- # !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the
3436
- # Endpoint's resource name. * `display_name` supports = and, != * `labels`
3434
+ # names both snake_case and camelCase are supported. * `endpoint` supports `=`
3435
+ # and `!=`. `endpoint` represents the Endpoint ID, i.e. the last segment of the
3436
+ # Endpoint's resource name. * `display_name` supports `=` and `!=`. * `labels`
3437
3437
  # supports general map functions that is: * `labels.key=value` - key:value
3438
- # equality * `labels.key:* or labels:key - key existence * A key including a
3439
- # space must be quoted. `labels."a key"`. * `base_model_name` only supports =
3438
+ # equality * `labels.key:*` or `labels:key` - key existence * A key including a
3439
+ # space must be quoted. `labels."a key"`. * `base_model_name` only supports `=`.
3440
3440
  # Some examples: * `endpoint=1` * `displayName="myDisplayName"` * `labels.myKey="
3441
3441
  # myValue"` * `baseModelName="text-bison"`
3442
3442
  # @param [String] order_by
@@ -13365,8 +13365,8 @@ module Google
13365
13365
  # supports = and !=. healthState enum: [HEALTHY, UNHEALTHY,
13366
13366
  # HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState
13367
13367
  # enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED,
13368
- # STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is
13369
- # UI only: `uiState` supports = and !=. uiState enum: [
13368
+ # STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. *
13369
+ # API version is UI only: `uiState` supports = and !=. uiState enum: [
13370
13370
  # UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED,
13371
13371
  # UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED,
13372
13372
  # UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=.
@@ -13676,6 +13676,402 @@ module Google
13676
13676
  execute_or_queue_command(command, &block)
13677
13677
  end
13678
13678
 
13679
+ # Creates a PersistentResource.
13680
+ # @param [String] parent
13681
+ # Required. The resource name of the Location to create the PersistentResource
13682
+ # in. Format: `projects/`project`/locations/`location``
13683
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentResource] google_cloud_aiplatform_v1_persistent_resource_object
13684
+ # @param [String] persistent_resource_id
13685
+ # Required. The ID to use for the PersistentResource, which become the final
13686
+ # component of the PersistentResource's resource name. The maximum length is 63
13687
+ # characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/`.
13688
+ # @param [String] fields
13689
+ # Selector specifying which fields to include in a partial response.
13690
+ # @param [String] quota_user
13691
+ # Available to use for quota purposes for server-side applications. Can be any
13692
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13693
+ # @param [Google::Apis::RequestOptions] options
13694
+ # Request-specific options
13695
+ #
13696
+ # @yield [result, err] Result & error if block supplied
13697
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13698
+ # @yieldparam err [StandardError] error object if request failed
13699
+ #
13700
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13701
+ #
13702
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13703
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13704
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13705
+ def create_project_location_persistent_resource(parent, google_cloud_aiplatform_v1_persistent_resource_object = nil, persistent_resource_id: nil, fields: nil, quota_user: nil, options: nil, &block)
13706
+ command = make_simple_command(:post, 'v1/{+parent}/persistentResources', options)
13707
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentResource::Representation
13708
+ command.request_object = google_cloud_aiplatform_v1_persistent_resource_object
13709
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13710
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13711
+ command.params['parent'] = parent unless parent.nil?
13712
+ command.query['persistentResourceId'] = persistent_resource_id unless persistent_resource_id.nil?
13713
+ command.query['fields'] = fields unless fields.nil?
13714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13715
+ execute_or_queue_command(command, &block)
13716
+ end
13717
+
13718
+ # Deletes a PersistentResource.
13719
+ # @param [String] name
13720
+ # Required. The name of the PersistentResource to be deleted. Format: `projects/`
13721
+ # project`/locations/`location`/persistentResources/`persistent_resource``
13722
+ # @param [String] fields
13723
+ # Selector specifying which fields to include in a partial response.
13724
+ # @param [String] quota_user
13725
+ # Available to use for quota purposes for server-side applications. Can be any
13726
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13727
+ # @param [Google::Apis::RequestOptions] options
13728
+ # Request-specific options
13729
+ #
13730
+ # @yield [result, err] Result & error if block supplied
13731
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13732
+ # @yieldparam err [StandardError] error object if request failed
13733
+ #
13734
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13735
+ #
13736
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13737
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13738
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13739
+ def delete_project_location_persistent_resource(name, fields: nil, quota_user: nil, options: nil, &block)
13740
+ command = make_simple_command(:delete, 'v1/{+name}', options)
13741
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13742
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13743
+ command.params['name'] = name unless name.nil?
13744
+ command.query['fields'] = fields unless fields.nil?
13745
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13746
+ execute_or_queue_command(command, &block)
13747
+ end
13748
+
13749
+ # Gets a PersistentResource.
13750
+ # @param [String] name
13751
+ # Required. The name of the PersistentResource resource. Format: `projects/`
13752
+ # project_id_or_number`/locations/`location_id`/persistentResources/`
13753
+ # persistent_resource_id``
13754
+ # @param [String] fields
13755
+ # Selector specifying which fields to include in a partial response.
13756
+ # @param [String] quota_user
13757
+ # Available to use for quota purposes for server-side applications. Can be any
13758
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13759
+ # @param [Google::Apis::RequestOptions] options
13760
+ # Request-specific options
13761
+ #
13762
+ # @yield [result, err] Result & error if block supplied
13763
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentResource] parsed result object
13764
+ # @yieldparam err [StandardError] error object if request failed
13765
+ #
13766
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentResource]
13767
+ #
13768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13771
+ def get_project_location_persistent_resource(name, fields: nil, quota_user: nil, options: nil, &block)
13772
+ command = make_simple_command(:get, 'v1/{+name}', options)
13773
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentResource::Representation
13774
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentResource
13775
+ command.params['name'] = name unless name.nil?
13776
+ command.query['fields'] = fields unless fields.nil?
13777
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13778
+ execute_or_queue_command(command, &block)
13779
+ end
13780
+
13781
+ # Lists PersistentResources in a Location.
13782
+ # @param [String] parent
13783
+ # Required. The resource name of the Location to list the PersistentResources
13784
+ # from. Format: `projects/`project`/locations/`location``
13785
+ # @param [Fixnum] page_size
13786
+ # Optional. The standard list page size.
13787
+ # @param [String] page_token
13788
+ # Optional. The standard list page token. Typically obtained via
13789
+ # ListPersistentResourceResponse.next_page_token of the previous
13790
+ # PersistentResourceService.ListPersistentResource call.
13791
+ # @param [String] fields
13792
+ # Selector specifying which fields to include in a partial response.
13793
+ # @param [String] quota_user
13794
+ # Available to use for quota purposes for server-side applications. Can be any
13795
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13796
+ # @param [Google::Apis::RequestOptions] options
13797
+ # Request-specific options
13798
+ #
13799
+ # @yield [result, err] Result & error if block supplied
13800
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListPersistentResourcesResponse] parsed result object
13801
+ # @yieldparam err [StandardError] error object if request failed
13802
+ #
13803
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListPersistentResourcesResponse]
13804
+ #
13805
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13806
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13807
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13808
+ def list_project_location_persistent_resources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
13809
+ command = make_simple_command(:get, 'v1/{+parent}/persistentResources', options)
13810
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListPersistentResourcesResponse::Representation
13811
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListPersistentResourcesResponse
13812
+ command.params['parent'] = parent unless parent.nil?
13813
+ command.query['pageSize'] = page_size unless page_size.nil?
13814
+ command.query['pageToken'] = page_token unless page_token.nil?
13815
+ command.query['fields'] = fields unless fields.nil?
13816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13817
+ execute_or_queue_command(command, &block)
13818
+ end
13819
+
13820
+ # Updates a PersistentResource.
13821
+ # @param [String] name
13822
+ # Immutable. Resource name of a PersistentResource.
13823
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentResource] google_cloud_aiplatform_v1_persistent_resource_object
13824
+ # @param [String] update_mask
13825
+ # Required. Specify the fields to be overwritten in the PersistentResource by
13826
+ # the update method.
13827
+ # @param [String] fields
13828
+ # Selector specifying which fields to include in a partial response.
13829
+ # @param [String] quota_user
13830
+ # Available to use for quota purposes for server-side applications. Can be any
13831
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13832
+ # @param [Google::Apis::RequestOptions] options
13833
+ # Request-specific options
13834
+ #
13835
+ # @yield [result, err] Result & error if block supplied
13836
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13837
+ # @yieldparam err [StandardError] error object if request failed
13838
+ #
13839
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13840
+ #
13841
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13842
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13843
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13844
+ def patch_project_location_persistent_resource(name, google_cloud_aiplatform_v1_persistent_resource_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
13845
+ command = make_simple_command(:patch, 'v1/{+name}', options)
13846
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentResource::Representation
13847
+ command.request_object = google_cloud_aiplatform_v1_persistent_resource_object
13848
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13849
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13850
+ command.params['name'] = name unless name.nil?
13851
+ command.query['updateMask'] = update_mask unless update_mask.nil?
13852
+ command.query['fields'] = fields unless fields.nil?
13853
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13854
+ execute_or_queue_command(command, &block)
13855
+ end
13856
+
13857
+ # Reboots a PersistentResource.
13858
+ # @param [String] name
13859
+ # Required. The name of the PersistentResource resource. Format: `projects/`
13860
+ # project_id_or_number`/locations/`location_id`/persistentResources/`
13861
+ # persistent_resource_id``
13862
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RebootPersistentResourceRequest] google_cloud_aiplatform_v1_reboot_persistent_resource_request_object
13863
+ # @param [String] fields
13864
+ # Selector specifying which fields to include in a partial response.
13865
+ # @param [String] quota_user
13866
+ # Available to use for quota purposes for server-side applications. Can be any
13867
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13868
+ # @param [Google::Apis::RequestOptions] options
13869
+ # Request-specific options
13870
+ #
13871
+ # @yield [result, err] Result & error if block supplied
13872
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13873
+ # @yieldparam err [StandardError] error object if request failed
13874
+ #
13875
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13876
+ #
13877
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13878
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13879
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13880
+ def reboot_project_location_persistent_resource(name, google_cloud_aiplatform_v1_reboot_persistent_resource_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
13881
+ command = make_simple_command(:post, 'v1/{+name}:reboot', options)
13882
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RebootPersistentResourceRequest::Representation
13883
+ command.request_object = google_cloud_aiplatform_v1_reboot_persistent_resource_request_object
13884
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13885
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13886
+ command.params['name'] = name unless name.nil?
13887
+ command.query['fields'] = fields unless fields.nil?
13888
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13889
+ execute_or_queue_command(command, &block)
13890
+ end
13891
+
13892
+ # Starts asynchronous cancellation on a long-running operation. The server makes
13893
+ # a best effort to cancel the operation, but success is not guaranteed. If the
13894
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
13895
+ # Clients can use Operations.GetOperation or other methods to check whether the
13896
+ # cancellation succeeded or whether the operation completed despite cancellation.
13897
+ # On successful cancellation, the operation is not deleted; instead, it becomes
13898
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
13899
+ # corresponding to `Code.CANCELLED`.
13900
+ # @param [String] name
13901
+ # The name of the operation resource to be cancelled.
13902
+ # @param [String] fields
13903
+ # Selector specifying which fields to include in a partial response.
13904
+ # @param [String] quota_user
13905
+ # Available to use for quota purposes for server-side applications. Can be any
13906
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13907
+ # @param [Google::Apis::RequestOptions] options
13908
+ # Request-specific options
13909
+ #
13910
+ # @yield [result, err] Result & error if block supplied
13911
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
13912
+ # @yieldparam err [StandardError] error object if request failed
13913
+ #
13914
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
13915
+ #
13916
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13917
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13918
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13919
+ def cancel_project_location_persistent_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13920
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
13921
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
13922
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
13923
+ command.params['name'] = name unless name.nil?
13924
+ command.query['fields'] = fields unless fields.nil?
13925
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13926
+ execute_or_queue_command(command, &block)
13927
+ end
13928
+
13929
+ # Deletes a long-running operation. This method indicates that the client is no
13930
+ # longer interested in the operation result. It does not cancel the operation.
13931
+ # If the server doesn't support this method, it returns `google.rpc.Code.
13932
+ # UNIMPLEMENTED`.
13933
+ # @param [String] name
13934
+ # The name of the operation resource to be deleted.
13935
+ # @param [String] fields
13936
+ # Selector specifying which fields to include in a partial response.
13937
+ # @param [String] quota_user
13938
+ # Available to use for quota purposes for server-side applications. Can be any
13939
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13940
+ # @param [Google::Apis::RequestOptions] options
13941
+ # Request-specific options
13942
+ #
13943
+ # @yield [result, err] Result & error if block supplied
13944
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
13945
+ # @yieldparam err [StandardError] error object if request failed
13946
+ #
13947
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
13948
+ #
13949
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13950
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13951
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13952
+ def delete_project_location_persistent_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13953
+ command = make_simple_command(:delete, 'v1/{+name}', options)
13954
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
13955
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
13956
+ command.params['name'] = name unless name.nil?
13957
+ command.query['fields'] = fields unless fields.nil?
13958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13959
+ execute_or_queue_command(command, &block)
13960
+ end
13961
+
13962
+ # Gets the latest state of a long-running operation. Clients can use this method
13963
+ # to poll the operation result at intervals as recommended by the API service.
13964
+ # @param [String] name
13965
+ # The name of the operation resource.
13966
+ # @param [String] fields
13967
+ # Selector specifying which fields to include in a partial response.
13968
+ # @param [String] quota_user
13969
+ # Available to use for quota purposes for server-side applications. Can be any
13970
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13971
+ # @param [Google::Apis::RequestOptions] options
13972
+ # Request-specific options
13973
+ #
13974
+ # @yield [result, err] Result & error if block supplied
13975
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
13976
+ # @yieldparam err [StandardError] error object if request failed
13977
+ #
13978
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
13979
+ #
13980
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13981
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13982
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13983
+ def get_project_location_persistent_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block)
13984
+ command = make_simple_command(:get, 'v1/{+name}', options)
13985
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
13986
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
13987
+ command.params['name'] = name unless name.nil?
13988
+ command.query['fields'] = fields unless fields.nil?
13989
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13990
+ execute_or_queue_command(command, &block)
13991
+ end
13992
+
13993
+ # Lists operations that match the specified filter in the request. If the server
13994
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
13995
+ # @param [String] name
13996
+ # The name of the operation's parent resource.
13997
+ # @param [String] filter
13998
+ # The standard list filter.
13999
+ # @param [Fixnum] page_size
14000
+ # The standard list page size.
14001
+ # @param [String] page_token
14002
+ # The standard list page token.
14003
+ # @param [String] fields
14004
+ # Selector specifying which fields to include in a partial response.
14005
+ # @param [String] quota_user
14006
+ # Available to use for quota purposes for server-side applications. Can be any
14007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14008
+ # @param [Google::Apis::RequestOptions] options
14009
+ # Request-specific options
14010
+ #
14011
+ # @yield [result, err] Result & error if block supplied
14012
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
14013
+ # @yieldparam err [StandardError] error object if request failed
14014
+ #
14015
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
14016
+ #
14017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14020
+ def list_project_location_persistent_resource_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
14021
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
14022
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
14023
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
14024
+ command.params['name'] = name unless name.nil?
14025
+ command.query['filter'] = filter unless filter.nil?
14026
+ command.query['pageSize'] = page_size unless page_size.nil?
14027
+ command.query['pageToken'] = page_token unless page_token.nil?
14028
+ command.query['fields'] = fields unless fields.nil?
14029
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14030
+ execute_or_queue_command(command, &block)
14031
+ end
14032
+
14033
+ # Waits until the specified long-running operation is done or reaches at most a
14034
+ # specified timeout, returning the latest state. If the operation is already
14035
+ # done, the latest state is immediately returned. If the timeout specified is
14036
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
14037
+ # the server does not support this method, it returns `google.rpc.Code.
14038
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
14039
+ # the latest state before the specified timeout (including immediately), meaning
14040
+ # even an immediate response is no guarantee that the operation is done.
14041
+ # @param [String] name
14042
+ # The name of the operation resource to wait on.
14043
+ # @param [String] timeout
14044
+ # The maximum duration to wait before timing out. If left blank, the wait will
14045
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
14046
+ # context deadline is also specified, the shorter one will be used.
14047
+ # @param [String] fields
14048
+ # Selector specifying which fields to include in a partial response.
14049
+ # @param [String] quota_user
14050
+ # Available to use for quota purposes for server-side applications. Can be any
14051
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14052
+ # @param [Google::Apis::RequestOptions] options
14053
+ # Request-specific options
14054
+ #
14055
+ # @yield [result, err] Result & error if block supplied
14056
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
14057
+ # @yieldparam err [StandardError] error object if request failed
14058
+ #
14059
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
14060
+ #
14061
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14062
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14063
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14064
+ def wait_project_location_persistent_resource_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
14065
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
14066
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
14067
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
14068
+ command.params['name'] = name unless name.nil?
14069
+ command.query['timeout'] = timeout unless timeout.nil?
14070
+ command.query['fields'] = fields unless fields.nil?
14071
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14072
+ execute_or_queue_command(command, &block)
14073
+ end
14074
+
13679
14075
  # Batch cancel PipelineJobs. Firstly the server will check if all the jobs are
13680
14076
  # in non-terminal states, and skip the jobs that are already terminated. If the
13681
14077
  # operation failed, none of the pipeline jobs are cancelled. The server will
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-17 00:00:00.000000000 Z
11
+ date: 2024-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.18.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
63
63
  post_install_message:
64
64
  rdoc_options: []