Class: Google::Cloud::Channel::V1::CloudChannelService::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::Channel::V1::CloudChannelService::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/channel/v1/cloud_channel_service/client.rb
Overview
Configuration class for the CloudChannelService API.
This class represents the configuration for CloudChannelService, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Defined Under Namespace
Classes: Rpcs
Instance Attribute Summary collapse
-
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel.
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
-
#universe_domain ⇒ ::String?
The universe domain within which to make requests.
Instance Method Summary collapse
-
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool.
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel. Note: this is ignored if a
GRPC::Core::Channel
object is provided as the credential.
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#credentials ⇒ ::Object
Credentials to send with calls. You may provide any of the following types:
- (
String
) The path to a service account key file in JSON format - (
Hash
) A service account key as a Hash - (
Google::Auth::Credentials
) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client
) A signet oauth2 client object (see the signet docs) - (
GRPC::Core::Channel
) a gRPC channel with included credentials - (
GRPC::Core::ChannelCredentials
) a gRPC credentails object - (
nil
) indicating no credentials
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#retry_policy ⇒ ::Hash
The retry policy. The value is a hash with 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.
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
#universe_domain ⇒ ::String?
The universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6157 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "cloudchannel.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the CloudChannelService 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. # class Rpcs ## # RPC-specific configuration for `list_customers` # @return [::Gapic::Config::Method] # attr_reader :list_customers ## # RPC-specific configuration for `get_customer` # @return [::Gapic::Config::Method] # attr_reader :get_customer ## # RPC-specific configuration for `check_cloud_identity_accounts_exist` # @return [::Gapic::Config::Method] # attr_reader :check_cloud_identity_accounts_exist ## # RPC-specific configuration for `create_customer` # @return [::Gapic::Config::Method] # attr_reader :create_customer ## # RPC-specific configuration for `update_customer` # @return [::Gapic::Config::Method] # attr_reader :update_customer ## # RPC-specific configuration for `delete_customer` # @return [::Gapic::Config::Method] # attr_reader :delete_customer ## # RPC-specific configuration for `import_customer` # @return [::Gapic::Config::Method] # attr_reader :import_customer ## # RPC-specific configuration for `provision_cloud_identity` # @return [::Gapic::Config::Method] # attr_reader :provision_cloud_identity ## # RPC-specific configuration for `list_entitlements` # @return [::Gapic::Config::Method] # attr_reader :list_entitlements ## # RPC-specific configuration for `list_transferable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_skus ## # RPC-specific configuration for `list_transferable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_transferable_offers ## # RPC-specific configuration for `get_entitlement` # @return [::Gapic::Config::Method] # attr_reader :get_entitlement ## # RPC-specific configuration for `create_entitlement` # @return [::Gapic::Config::Method] # attr_reader :create_entitlement ## # RPC-specific configuration for `change_parameters` # @return [::Gapic::Config::Method] # attr_reader :change_parameters ## # RPC-specific configuration for `change_renewal_settings` # @return [::Gapic::Config::Method] # attr_reader :change_renewal_settings ## # RPC-specific configuration for `change_offer` # @return [::Gapic::Config::Method] # attr_reader :change_offer ## # RPC-specific configuration for `start_paid_service` # @return [::Gapic::Config::Method] # attr_reader :start_paid_service ## # RPC-specific configuration for `suspend_entitlement` # @return [::Gapic::Config::Method] # attr_reader :suspend_entitlement ## # RPC-specific configuration for `cancel_entitlement` # @return [::Gapic::Config::Method] # attr_reader :cancel_entitlement ## # RPC-specific configuration for `activate_entitlement` # @return [::Gapic::Config::Method] # attr_reader :activate_entitlement ## # RPC-specific configuration for `transfer_entitlements` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements ## # RPC-specific configuration for `transfer_entitlements_to_google` # @return [::Gapic::Config::Method] # attr_reader :transfer_entitlements_to_google ## # RPC-specific configuration for `list_channel_partner_links` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_links ## # RPC-specific configuration for `get_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_link ## # RPC-specific configuration for `create_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_link ## # RPC-specific configuration for `update_channel_partner_link` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_link ## # RPC-specific configuration for `get_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_customer_repricing_config ## # RPC-specific configuration for `list_customer_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_customer_repricing_configs ## # RPC-specific configuration for `create_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_customer_repricing_config ## # RPC-specific configuration for `update_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_customer_repricing_config ## # RPC-specific configuration for `delete_customer_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_customer_repricing_config ## # RPC-specific configuration for `get_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :get_channel_partner_repricing_config ## # RPC-specific configuration for `list_channel_partner_repricing_configs` # @return [::Gapic::Config::Method] # attr_reader :list_channel_partner_repricing_configs ## # RPC-specific configuration for `create_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :create_channel_partner_repricing_config ## # RPC-specific configuration for `update_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :update_channel_partner_repricing_config ## # RPC-specific configuration for `delete_channel_partner_repricing_config` # @return [::Gapic::Config::Method] # attr_reader :delete_channel_partner_repricing_config ## # RPC-specific configuration for `list_sku_groups` # @return [::Gapic::Config::Method] # attr_reader :list_sku_groups ## # RPC-specific configuration for `list_sku_group_billable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_sku_group_billable_skus ## # RPC-specific configuration for `lookup_offer` # @return [::Gapic::Config::Method] # attr_reader :lookup_offer ## # RPC-specific configuration for `list_products` # @return [::Gapic::Config::Method] # attr_reader :list_products ## # RPC-specific configuration for `list_skus` # @return [::Gapic::Config::Method] # attr_reader :list_skus ## # RPC-specific configuration for `list_offers` # @return [::Gapic::Config::Method] # attr_reader :list_offers ## # RPC-specific configuration for `list_purchasable_skus` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_skus ## # RPC-specific configuration for `list_purchasable_offers` # @return [::Gapic::Config::Method] # attr_reader :list_purchasable_offers ## # RPC-specific configuration for `query_eligible_billing_accounts` # @return [::Gapic::Config::Method] # attr_reader :query_eligible_billing_accounts ## # RPC-specific configuration for `register_subscriber` # @return [::Gapic::Config::Method] # attr_reader :register_subscriber ## # RPC-specific configuration for `unregister_subscriber` # @return [::Gapic::Config::Method] # attr_reader :unregister_subscriber ## # RPC-specific configuration for `list_subscribers` # @return [::Gapic::Config::Method] # attr_reader :list_subscribers ## # RPC-specific configuration for `list_entitlement_changes` # @return [::Gapic::Config::Method] # attr_reader :list_entitlement_changes # @private def initialize parent_rpcs = nil list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers @list_customers = ::Gapic::Config::Method.new list_customers_config get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer @get_customer = ::Gapic::Config::Method.new get_customer_config check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer @create_customer = ::Gapic::Config::Method.new create_customer_config update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer @update_customer = ::Gapic::Config::Method.new update_customer_config delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer @delete_customer = ::Gapic::Config::Method.new delete_customer_config import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer @import_customer = ::Gapic::Config::Method.new import_customer_config provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters @change_parameters = ::Gapic::Config::Method.new change_parameters_config change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer @change_offer = ::Gapic::Config::Method.new change_offer_config start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config get_customer_repricing_config_config = parent_rpcs.get_customer_repricing_config if parent_rpcs.respond_to? :get_customer_repricing_config @get_customer_repricing_config = ::Gapic::Config::Method.new get_customer_repricing_config_config list_customer_repricing_configs_config = parent_rpcs.list_customer_repricing_configs if parent_rpcs.respond_to? :list_customer_repricing_configs @list_customer_repricing_configs = ::Gapic::Config::Method.new list_customer_repricing_configs_config create_customer_repricing_config_config = parent_rpcs.create_customer_repricing_config if parent_rpcs.respond_to? :create_customer_repricing_config @create_customer_repricing_config = ::Gapic::Config::Method.new create_customer_repricing_config_config update_customer_repricing_config_config = parent_rpcs.update_customer_repricing_config if parent_rpcs.respond_to? :update_customer_repricing_config @update_customer_repricing_config = ::Gapic::Config::Method.new update_customer_repricing_config_config delete_customer_repricing_config_config = parent_rpcs.delete_customer_repricing_config if parent_rpcs.respond_to? :delete_customer_repricing_config @delete_customer_repricing_config = ::Gapic::Config::Method.new delete_customer_repricing_config_config get_channel_partner_repricing_config_config = parent_rpcs.get_channel_partner_repricing_config if parent_rpcs.respond_to? :get_channel_partner_repricing_config @get_channel_partner_repricing_config = ::Gapic::Config::Method.new get_channel_partner_repricing_config_config list_channel_partner_repricing_configs_config = parent_rpcs.list_channel_partner_repricing_configs if parent_rpcs.respond_to? :list_channel_partner_repricing_configs @list_channel_partner_repricing_configs = ::Gapic::Config::Method.new list_channel_partner_repricing_configs_config create_channel_partner_repricing_config_config = parent_rpcs.create_channel_partner_repricing_config if parent_rpcs.respond_to? :create_channel_partner_repricing_config @create_channel_partner_repricing_config = ::Gapic::Config::Method.new create_channel_partner_repricing_config_config update_channel_partner_repricing_config_config = parent_rpcs.update_channel_partner_repricing_config if parent_rpcs.respond_to? :update_channel_partner_repricing_config @update_channel_partner_repricing_config = ::Gapic::Config::Method.new update_channel_partner_repricing_config_config delete_channel_partner_repricing_config_config = parent_rpcs.delete_channel_partner_repricing_config if parent_rpcs.respond_to? :delete_channel_partner_repricing_config @delete_channel_partner_repricing_config = ::Gapic::Config::Method.new delete_channel_partner_repricing_config_config list_sku_groups_config = parent_rpcs.list_sku_groups if parent_rpcs.respond_to? :list_sku_groups @list_sku_groups = ::Gapic::Config::Method.new list_sku_groups_config list_sku_group_billable_skus_config = parent_rpcs.list_sku_group_billable_skus if parent_rpcs.respond_to? :list_sku_group_billable_skus @list_sku_group_billable_skus = ::Gapic::Config::Method.new list_sku_group_billable_skus_config lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products @list_products = ::Gapic::Config::Method.new list_products_config list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus @list_skus = ::Gapic::Config::Method.new list_skus_config list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers @list_offers = ::Gapic::Config::Method.new list_offers_config list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config query_eligible_billing_accounts_config = parent_rpcs.query_eligible_billing_accounts if parent_rpcs.respond_to? :query_eligible_billing_accounts @query_eligible_billing_accounts = ::Gapic::Config::Method.new query_eligible_billing_accounts_config register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config list_entitlement_changes_config = parent_rpcs.list_entitlement_changes if parent_rpcs.respond_to? :list_entitlement_changes @list_entitlement_changes = ::Gapic::Config::Method.new list_entitlement_changes_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
6204 6205 6206 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6204 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
6192 6193 6194 6195 6196 6197 6198 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/client.rb', line 6192 def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end |