google-apis-core/lib/google/apis/core/base_service.rb
def execute_or_queue_command(command, &callback)
          batch_command = current_batch
          if batch_command
            fail "Can not combine services in a batch" if Thread.current[:google_api_batch_service] != self
            batch_command.add(command, &callback)
            nil
          else
            command.execute(client, &callback)
          end
        end
# Execute the request. If a batch is in progress, the request is added to the batch instead.
#
# @param [Google::Apis::Core::HttpCommand] command
#   Command to execute
# @return [Object] response object if command executed and no callback supplied
# @yield [result, err] Result & error if block supplied
# @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
Execute the request. If a batch is in progress, the request is added to the batch instead.
Execute the request . If a batch is in progress the request is added to the batch instead .
def execute_or_queue_command(command, &callback)
          batch_command = current_batch
          if batch_command
            fail "Can not combine services in a batch" if Thread.current[:google_api_batch_service] != self
            batch_command.add(command, &callback)
            nil
          else
            command.execute(client, &callback)
          end
        end
def execute_or_queue_command ( command , & callback ) batch_command = current_batch if batch_command fail "Can not combine services in a batch" if Thread . current [ :google_api_batch_service ] != self batch_command . add ( command , & callback ) nil else command . execute ( client , & callback ) end end
Execute the request.
Execute the request .
response object if command executed and no callback supplied
response object if command executed and no callback supplied
Object
[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
command
callback
command Command to execute
command Command to execute
]
Result & error if block supplied
Result & error if block supplied