module Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro

A module containing nonstandard lro helpers

Public Class Methods

create_operation(operation:, client:, request_values:, options: Gapic::GenericLRO::Operation.new(operation, client: client, polling_method_name: "get", request_values: request_values, operation_status_field: "status", operation_name_field: "name", operation_err_code_field: "http_error_status_code", operation_err_msg_field: "http_error_message", operation_copy_fields: { "name" => "operation") click to toggle source

Creates a Generic LRO operation object that wraps the nonstandard long-running operation specific to this service.

@param operation [Object] The long-running operation object that is returned by the initial method call.

@param client [::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client] The client that handles the polling for the longrunning operation.

@param request_values [Map<String, String>] The values that are to be copied from the request that

triggered the longrunning operation, into the request that polls for the longrunning operation.
The format is `name of the request field -> value`

@param options [Gapic::CallOptions] call options for this operation

@return [Gapic::GenericLRO::Operation]

# File lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb, line 47
def create_operation operation:, client:, request_values:, options:
  Gapic::GenericLRO::Operation.new(operation,
                                   client: client,
                                   polling_method_name: "get",
                                   request_values: request_values,
                                   operation_status_field: "status",
                                   operation_name_field: "name",
                                   operation_err_code_field: "http_error_status_code",
                                   operation_err_msg_field: "http_error_message",
                                   operation_copy_fields: {
                                     "name" => "operation"
                                   },
                                   options: options)
end