Class: Google::Cloud::GkeBackup::V1::BackupForGKE::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::GkeBackup::V1::BackupForGKE::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb
Overview
Configuration class for the BackupForGKE API.
This class represents the configuration for BackupForGKE, 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.
-
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default
(the default) to construct a default logger, ornil
to explicitly disable 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.
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_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
Warning: If you accept a credential configuration (JSON file or Hash) from an external source for authentication to Google Cloud, you must validate it before providing it to a Google API client library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to Validate credential configurations from external sources.
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_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.
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config yield self if block_given? end end end |
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default
(the default) to construct a default logger, or nil
to
explicitly disable logging.
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_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.
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_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).
4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4403 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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 config_attr :logger, :default, ::Logger, nil, :default # @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 BackupForGKE 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 `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :create_backup_channel ## # RPC-specific configuration for `list_backup_channels` # @return [::Gapic::Config::Method] # attr_reader :list_backup_channels ## # RPC-specific configuration for `get_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :get_backup_channel ## # RPC-specific configuration for `update_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :update_backup_channel ## # RPC-specific configuration for `delete_backup_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_channel ## # RPC-specific configuration for `list_backup_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plan_bindings ## # RPC-specific configuration for `get_backup_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan_binding ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :create_restore_channel ## # RPC-specific configuration for `list_restore_channels` # @return [::Gapic::Config::Method] # attr_reader :list_restore_channels ## # RPC-specific configuration for `get_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :get_restore_channel ## # RPC-specific configuration for `update_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :update_restore_channel ## # RPC-specific configuration for `delete_restore_channel` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_channel ## # RPC-specific configuration for `list_restore_plan_bindings` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plan_bindings ## # RPC-specific configuration for `get_restore_plan_binding` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan_binding ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore ## # RPC-specific configuration for `get_backup_index_download_url` # @return [::Gapic::Config::Method] # attr_reader :get_backup_index_download_url # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
4451 4452 4453 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4451 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
4439 4440 4441 4442 4443 4444 4445 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb', line 4439 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 |