@@ -51,6 +51,76 @@ def initialize
51
51
@batch_path = 'batch'
52
52
end
53
53
54
+ # Starts asynchronous cancellation on a long-running operation. The server makes
55
+ # a best effort to cancel the operation, but success is not guaranteed. If the
56
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
57
+ # Clients can use Operations.GetOperation or other methods to check whether the
58
+ # cancellation succeeded or whether the operation completed despite cancellation.
59
+ # On successful cancellation, the operation is not deleted; instead, it becomes
60
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
61
+ # , corresponding to `Code.CANCELLED`.
62
+ # @param [String] name
63
+ # The name of the operation resource to be cancelled.
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
66
+ # @param [String] quota_user
67
+ # Available to use for quota purposes for server-side applications. Can be any
68
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
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::BigtableadminV2::Empty] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::BigtableadminV2::Empty]
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 cancel_operation ( name , fields : nil , quota_user : nil , options : nil , &block )
82
+ command = make_simple_command ( :post , 'v2/{+name}:cancel' , options )
83
+ command . response_representation = Google ::Apis ::BigtableadminV2 ::Empty ::Representation
84
+ command . response_class = Google ::Apis ::BigtableadminV2 ::Empty
85
+ command . params [ 'name' ] = name unless name . nil?
86
+ command . query [ 'fields' ] = fields unless fields . nil?
87
+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
88
+ execute_or_queue_command ( command , &block )
89
+ end
90
+
91
+ # Deletes a long-running operation. This method indicates that the client is no
92
+ # longer interested in the operation result. It does not cancel the operation.
93
+ # If the server doesn't support this method, it returns `google.rpc.Code.
94
+ # UNIMPLEMENTED`.
95
+ # @param [String] name
96
+ # The name of the operation resource to be deleted.
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
99
+ # @param [String] quota_user
100
+ # Available to use for quota purposes for server-side applications. Can be any
101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
102
+ # @param [Google::Apis::RequestOptions] options
103
+ # Request-specific options
104
+ #
105
+ # @yield [result, err] Result & error if block supplied
106
+ # @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
107
+ # @yieldparam err [StandardError] error object if request failed
108
+ #
109
+ # @return [Google::Apis::BigtableadminV2::Empty]
110
+ #
111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
114
+ def delete_operation ( name , fields : nil , quota_user : nil , options : nil , &block )
115
+ command = make_simple_command ( :delete , 'v2/{+name}' , options )
116
+ command . response_representation = Google ::Apis ::BigtableadminV2 ::Empty ::Representation
117
+ command . response_class = Google ::Apis ::BigtableadminV2 ::Empty
118
+ command . params [ 'name' ] = name unless name . nil?
119
+ command . query [ 'fields' ] = fields unless fields . nil?
120
+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
121
+ execute_or_queue_command ( command , &block )
122
+ end
123
+
54
124
# Gets the latest state of a long-running operation. Clients can use this method
55
125
# to poll the operation result at intervals as recommended by the API service.
56
126
# @param [String] name
@@ -2695,6 +2765,36 @@ def test_authorized_view_iam_permissions(resource, test_iam_permissions_request_
2695
2765
execute_or_queue_command ( command , &block )
2696
2766
end
2697
2767
2768
+ # Gets information about a location.
2769
+ # @param [String] name
2770
+ # Resource name for the location.
2771
+ # @param [String] fields
2772
+ # Selector specifying which fields to include in a partial response.
2773
+ # @param [String] quota_user
2774
+ # Available to use for quota purposes for server-side applications. Can be any
2775
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2776
+ # @param [Google::Apis::RequestOptions] options
2777
+ # Request-specific options
2778
+ #
2779
+ # @yield [result, err] Result & error if block supplied
2780
+ # @yieldparam result [Google::Apis::BigtableadminV2::Location] parsed result object
2781
+ # @yieldparam err [StandardError] error object if request failed
2782
+ #
2783
+ # @return [Google::Apis::BigtableadminV2::Location]
2784
+ #
2785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2788
+ def get_project_location ( name , fields : nil , quota_user : nil , options : nil , &block )
2789
+ command = make_simple_command ( :get , 'v2/{+name}' , options )
2790
+ command . response_representation = Google ::Apis ::BigtableadminV2 ::Location ::Representation
2791
+ command . response_class = Google ::Apis ::BigtableadminV2 ::Location
2792
+ command . params [ 'name' ] = name unless name . nil?
2793
+ command . query [ 'fields' ] = fields unless fields . nil?
2794
+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
2795
+ execute_or_queue_command ( command , &block )
2796
+ end
2797
+
2698
2798
# Lists information about the supported locations for this service.
2699
2799
# @param [String] name
2700
2800
# The resource that owns the locations collection, if applicable.
0 commit comments