generated/google-apis-ondemandscanning_v1/lib/google/apis/ondemandscanning_v1/service.rb
# 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 [String] timeout
#   The maximum duration to wait before timing out. If left blank, the wait will
#   be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
#   context deadline is also specified, the shorter one will be used.
# @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::OndemandscanningV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::OndemandscanningV1::Operation]
#
# @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
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.
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 .
def wait_project_location_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:wait', options)
          command.response_representation = Google::Apis::OndemandscanningV1::Operation::Representation
          command.response_class = Google::Apis::OndemandscanningV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['timeout'] = timeout unless timeout.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def wait_project_location_operation ( name , timeout : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :post , 'v1/{+name}:wait' , options ) command . response_representation = Google :: Apis :: OndemandscanningV1 :: Operation :: Representation command . response_class = Google :: Apis :: OndemandscanningV1 :: Operation command . params [ 'name' ] = name unless name . nil? command . query [ 'timeout' ] = timeout unless timeout . nil? 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.
Waits until the specified long - running operation is done or reaches at most a specified timeout returning the latest state .
None
Google::Apis::OndemandscanningV1::Operation
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
name
timeout
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed