@@ -133,156 +133,6 @@ def list_project_locations(name, extra_location_types: nil, filter: nil, page_si
133133 execute_or_queue_command ( command , &block )
134134 end
135135
136- # Starts asynchronous cancellation on a long-running operation. The server makes
137- # a best effort to cancel the operation, but success is not guaranteed. If the
138- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
139- # Clients can use Operations.GetOperation or other methods to check whether the
140- # cancellation succeeded or whether the operation completed despite cancellation.
141- # On successful cancellation, the operation is not deleted; instead, it becomes
142- # an operation with an Operation.error value with a google.rpc.Status.code of `1`
143- # , corresponding to `Code.CANCELLED`.
144- # @param [String] name
145- # The name of the operation resource to be cancelled.
146- # @param [String] fields
147- # Selector specifying which fields to include in a partial response.
148- # @param [String] quota_user
149- # Available to use for quota purposes for server-side applications. Can be any
150- # arbitrary string assigned to a user, but should not exceed 40 characters.
151- # @param [Google::Apis::RequestOptions] options
152- # Request-specific options
153- #
154- # @yield [result, err] Result & error if block supplied
155- # @yieldparam result [Google::Apis::SecretmanagerV1beta2::Empty] parsed result object
156- # @yieldparam err [StandardError] error object if request failed
157- #
158- # @return [Google::Apis::SecretmanagerV1beta2::Empty]
159- #
160- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
161- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
162- # @raise [Google::Apis::AuthorizationError] Authorization is required
163- def cancel_project_location_operation ( name , fields : nil , quota_user : nil , options : nil , &block )
164- command = make_simple_command ( :post , 'v1beta2/{+name}:cancel' , options )
165- command . response_representation = Google ::Apis ::SecretmanagerV1beta2 ::Empty ::Representation
166- command . response_class = Google ::Apis ::SecretmanagerV1beta2 ::Empty
167- command . params [ 'name' ] = name unless name . nil?
168- command . query [ 'fields' ] = fields unless fields . nil?
169- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
170- execute_or_queue_command ( command , &block )
171- end
172-
173- # Deletes a long-running operation. This method indicates that the client is no
174- # longer interested in the operation result. It does not cancel the operation.
175- # If the server doesn't support this method, it returns `google.rpc.Code.
176- # UNIMPLEMENTED`.
177- # @param [String] name
178- # The name of the operation resource to be deleted.
179- # @param [String] fields
180- # Selector specifying which fields to include in a partial response.
181- # @param [String] quota_user
182- # Available to use for quota purposes for server-side applications. Can be any
183- # arbitrary string assigned to a user, but should not exceed 40 characters.
184- # @param [Google::Apis::RequestOptions] options
185- # Request-specific options
186- #
187- # @yield [result, err] Result & error if block supplied
188- # @yieldparam result [Google::Apis::SecretmanagerV1beta2::Empty] parsed result object
189- # @yieldparam err [StandardError] error object if request failed
190- #
191- # @return [Google::Apis::SecretmanagerV1beta2::Empty]
192- #
193- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195- # @raise [Google::Apis::AuthorizationError] Authorization is required
196- def delete_project_location_operation ( name , fields : nil , quota_user : nil , options : nil , &block )
197- command = make_simple_command ( :delete , 'v1beta2/{+name}' , options )
198- command . response_representation = Google ::Apis ::SecretmanagerV1beta2 ::Empty ::Representation
199- command . response_class = Google ::Apis ::SecretmanagerV1beta2 ::Empty
200- command . params [ 'name' ] = name unless name . nil?
201- command . query [ 'fields' ] = fields unless fields . nil?
202- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
203- execute_or_queue_command ( command , &block )
204- end
205-
206- # Gets the latest state of a long-running operation. Clients can use this method
207- # to poll the operation result at intervals as recommended by the API service.
208- # @param [String] name
209- # The name of the operation resource.
210- # @param [String] fields
211- # Selector specifying which fields to include in a partial response.
212- # @param [String] quota_user
213- # Available to use for quota purposes for server-side applications. Can be any
214- # arbitrary string assigned to a user, but should not exceed 40 characters.
215- # @param [Google::Apis::RequestOptions] options
216- # Request-specific options
217- #
218- # @yield [result, err] Result & error if block supplied
219- # @yieldparam result [Google::Apis::SecretmanagerV1beta2::Operation] parsed result object
220- # @yieldparam err [StandardError] error object if request failed
221- #
222- # @return [Google::Apis::SecretmanagerV1beta2::Operation]
223- #
224- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226- # @raise [Google::Apis::AuthorizationError] Authorization is required
227- def get_project_location_operation ( name , fields : nil , quota_user : nil , options : nil , &block )
228- command = make_simple_command ( :get , 'v1beta2/{+name}' , options )
229- command . response_representation = Google ::Apis ::SecretmanagerV1beta2 ::Operation ::Representation
230- command . response_class = Google ::Apis ::SecretmanagerV1beta2 ::Operation
231- command . params [ 'name' ] = name unless name . nil?
232- command . query [ 'fields' ] = fields unless fields . nil?
233- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
234- execute_or_queue_command ( command , &block )
235- end
236-
237- # Lists operations that match the specified filter in the request. If the server
238- # doesn't support this method, it returns `UNIMPLEMENTED`.
239- # @param [String] name
240- # The name of the operation's parent resource.
241- # @param [String] filter
242- # The standard list filter.
243- # @param [Fixnum] page_size
244- # The standard list page size.
245- # @param [String] page_token
246- # The standard list page token.
247- # @param [Boolean] return_partial_success
248- # When set to `true`, operations that are reachable are returned as normal, and
249- # those that are unreachable are returned in the ListOperationsResponse.
250- # unreachable field. This can only be `true` when reading across collections.
251- # For example, when `parent` is set to `"projects/example/locations/-"`. This
252- # field is not supported by default and will result in an `UNIMPLEMENTED` error
253- # if set unless explicitly documented otherwise in service or product specific
254- # documentation.
255- # @param [String] fields
256- # Selector specifying which fields to include in a partial response.
257- # @param [String] quota_user
258- # Available to use for quota purposes for server-side applications. Can be any
259- # arbitrary string assigned to a user, but should not exceed 40 characters.
260- # @param [Google::Apis::RequestOptions] options
261- # Request-specific options
262- #
263- # @yield [result, err] Result & error if block supplied
264- # @yieldparam result [Google::Apis::SecretmanagerV1beta2::ListOperationsResponse] parsed result object
265- # @yieldparam err [StandardError] error object if request failed
266- #
267- # @return [Google::Apis::SecretmanagerV1beta2::ListOperationsResponse]
268- #
269- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
270- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
271- # @raise [Google::Apis::AuthorizationError] Authorization is required
272- def list_project_location_operations ( name , filter : nil , page_size : nil , page_token : nil , return_partial_success : nil , fields : nil , quota_user : nil , options : nil , &block )
273- command = make_simple_command ( :get , 'v1beta2/{+name}/operations' , options )
274- command . response_representation = Google ::Apis ::SecretmanagerV1beta2 ::ListOperationsResponse ::Representation
275- command . response_class = Google ::Apis ::SecretmanagerV1beta2 ::ListOperationsResponse
276- command . params [ 'name' ] = name unless name . nil?
277- command . query [ 'filter' ] = filter unless filter . nil?
278- command . query [ 'pageSize' ] = page_size unless page_size . nil?
279- command . query [ 'pageToken' ] = page_token unless page_token . nil?
280- command . query [ 'returnPartialSuccess' ] = return_partial_success unless return_partial_success . nil?
281- command . query [ 'fields' ] = fields unless fields . nil?
282- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
283- execute_or_queue_command ( command , &block )
284- end
285-
286136 # Creates a new SecretVersion containing secret data and attaches it to an
287137 # existing Secret.
288138 # @param [String] parent
0 commit comments