Class: Google::Ads::GoogleAds::V14::Services::BatchJobService::Client::Configuration::Rpcs

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

Overview

Configuration RPC class for the BatchJobService 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:



753
754
755
756
757
758
759
760
761
762
763
764
# File 'lib/google/ads/google_ads/v14/services/batch_job_service/client.rb', line 753

def initialize parent_rpcs = nil
  mutate_batch_job_config = parent_rpcs.mutate_batch_job if parent_rpcs.respond_to? :mutate_batch_job
  @mutate_batch_job = ::Gapic::Config::Method.new mutate_batch_job_config
  list_batch_job_results_config = parent_rpcs.list_batch_job_results if parent_rpcs.respond_to? :list_batch_job_results
  @list_batch_job_results = ::Gapic::Config::Method.new list_batch_job_results_config
  run_batch_job_config = parent_rpcs.run_batch_job if parent_rpcs.respond_to? :run_batch_job
  @run_batch_job = ::Gapic::Config::Method.new run_batch_job_config
  add_batch_job_operations_config = parent_rpcs.add_batch_job_operations if parent_rpcs.respond_to? :add_batch_job_operations
  @add_batch_job_operations = ::Gapic::Config::Method.new add_batch_job_operations_config

  yield self if block_given?
end

Instance Attribute Details

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

RPC-specific configuration for ‘add_batch_job_operations`

Returns:

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


750
751
752
# File 'lib/google/ads/google_ads/v14/services/batch_job_service/client.rb', line 750

def add_batch_job_operations
  @add_batch_job_operations
end

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

RPC-specific configuration for ‘list_batch_job_results`

Returns:

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


740
741
742
# File 'lib/google/ads/google_ads/v14/services/batch_job_service/client.rb', line 740

def list_batch_job_results
  @list_batch_job_results
end

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

RPC-specific configuration for ‘mutate_batch_job`

Returns:

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


735
736
737
# File 'lib/google/ads/google_ads/v14/services/batch_job_service/client.rb', line 735

def mutate_batch_job
  @mutate_batch_job
end

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

RPC-specific configuration for ‘run_batch_job`

Returns:

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


745
746
747
# File 'lib/google/ads/google_ads/v14/services/batch_job_service/client.rb', line 745

def run_batch_job
  @run_batch_job
end