Class: Google::Ads::GoogleAds::V22::Services::CustomerService::Client::Configuration::Rpcs

Inherits:
Object
  • Object
show all
Defined in:
lib/google/ads/google_ads/v22/services/customer_service/client.rb

Overview

Configuration RPC class for the CustomerService API.

Includes fields providing the configuration for each RPC in this service. Each configuration object is of type Gapic::Config::Method and includes the following configuration fields:

  • timeout (type: Numeric) - The call timeout in seconds
  • metadata (type: Hash{Symbol=>String}) - Additional gRPC headers
  • retry_policy (*type:* Hash`) - The retry policy. The policy fields include the following keys:
    • :initial_delay (type: Numeric) - The initial delay in seconds.
    • :max_delay (type: Numeric) - The max delay in seconds.
    • :multiplier (type: Numeric) - The incremental backoff multiplier.
    • :jitter (type: Numeric) - The jitter in seconds. Default: 1.0.
    • :retry_codes (type: Array<String>) - The error codes that should trigger a retry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent_rpcs = nil) {|_self| ... } ⇒ Rpcs

Returns a new instance of Rpcs.

Yields:

  • (_self)

Yield Parameters:



683
684
685
686
687
688
689
690
691
692
# File 'lib/google/ads/google_ads/v22/services/customer_service/client.rb', line 683

def initialize parent_rpcs = nil
  mutate_customer_config = parent_rpcs.mutate_customer if parent_rpcs.respond_to? :mutate_customer
  @mutate_customer = ::Gapic::Config::Method.new mutate_customer_config
  list_accessible_customers_config = parent_rpcs.list_accessible_customers if parent_rpcs.respond_to? :list_accessible_customers
  @list_accessible_customers = ::Gapic::Config::Method.new list_accessible_customers_config
  create_customer_client_config = parent_rpcs.create_customer_client if parent_rpcs.respond_to? :create_customer_client
  @create_customer_client = ::Gapic::Config::Method.new create_customer_client_config

  yield self if block_given?
end

Instance Attribute Details

#create_customer_client::Gapic::Config::Method (readonly)

RPC-specific configuration for create_customer_client

Returns:

  • (::Gapic::Config::Method)


680
681
682
# File 'lib/google/ads/google_ads/v22/services/customer_service/client.rb', line 680

def create_customer_client
  @create_customer_client
end

#list_accessible_customers::Gapic::Config::Method (readonly)

RPC-specific configuration for list_accessible_customers

Returns:

  • (::Gapic::Config::Method)


675
676
677
# File 'lib/google/ads/google_ads/v22/services/customer_service/client.rb', line 675

def list_accessible_customers
  @list_accessible_customers
end

#mutate_customer::Gapic::Config::Method (readonly)

RPC-specific configuration for mutate_customer

Returns:

  • (::Gapic::Config::Method)


670
671
672
# File 'lib/google/ads/google_ads/v22/services/customer_service/client.rb', line 670

def mutate_customer
  @mutate_customer
end