Class: Google::Cloud::Deploy::V1::CloudDeploy::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::Deploy::V1::CloudDeploy::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/deploy/v1/cloud_deploy/client.rb
Overview
Configuration class for the CloudDeploy API.
This class represents the configuration for CloudDeploy, 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
Constant Summary collapse
- DEFAULT_ENDPOINT =
"clouddeploy.googleapis.com"
Instance Attribute Summary collapse
-
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel.
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String
The hostname or hostname:port of the service endpoint.
-
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
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.
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_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
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#endpoint ⇒ ::String
The hostname or hostname:port of the service endpoint.
Defaults to "clouddeploy.googleapis.com"
.
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_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.
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
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 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4490 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "clouddeploy.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil # @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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
4534 4535 4536 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4534 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
4522 4523 4524 4525 4526 4527 4528 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 4522 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 |