lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.28.0 vs lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.29.0

- old
+ new

@@ -703,9 +703,49 @@ command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + # Waits until the specified long-running operation is done or reaches at most a + # specified timeout, returning the latest state. If the operation is already + # done, the latest state is immediately returned. If the timeout specified is + # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If + # the server does not support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + # the latest state before the specified timeout (including immediately), meaning + # even an immediate response is no guarantee that the operation is done. + # @param [String] name + # The name of the operation resource to wait on. + # @param [Google::Apis::RunV2::GoogleLongrunningWaitOperationRequest] google_longrunning_wait_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV2::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def wait_project_location_operation(name, google_longrunning_wait_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+name}:wait', options) + command.request_representation = Google::Apis::RunV2::GoogleLongrunningWaitOperationRequest::Representation + command.request_object = google_longrunning_wait_operation_request_object + command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a new Service in a given project and location. # @param [String] parent # Required. The location and project in which this service should be created. # Format: projects/`project`/locations/`location`, where `project` can be # project id or number. Only lowercase characters, digits, and hyphens.