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

Inherits:
Object
  • Object
show all
Defined in:
lib/google/ads/google_ads/v15/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.
    *  `: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:



608
609
610
611
612
613
614
615
616
617
# File 'lib/google/ads/google_ads/v15/services/customer_service/client.rb', line 608

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)


605
606
607
# File 'lib/google/ads/google_ads/v15/services/customer_service/client.rb', line 605

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)


600
601
602
# File 'lib/google/ads/google_ads/v15/services/customer_service/client.rb', line 600

def list_accessible_customers
  @list_accessible_customers
end

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

RPC-specific configuration for ‘mutate_customer`

Returns:

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


595
596
597
# File 'lib/google/ads/google_ads/v15/services/customer_service/client.rb', line 595

def mutate_customer
  @mutate_customer
end