Class: Google::Cloud::CloudDMS::V1::DataMigrationService::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::CloudDMS::V1::DataMigrationService::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb
Overview
Configuration class for the DataMigrationService API.
This class represents the configuration for DataMigrationService, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Defined Under Namespace
Classes: Rpcs
Instance Attribute Summary collapse
-
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel.
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default
(the default) to construct a default logger, ornil
to explicitly disable logging. -
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
-
#universe_domain ⇒ ::String?
The universe domain within which to make requests.
Instance Method Summary collapse
-
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool.
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel. Note: this is ignored if a
GRPC::Core::Channel
object is provided as the credential.
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_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
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default
(the default) to construct a default logger, or nil
to
explicitly disable logging.
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_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.
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
#universe_domain ⇒ ::String?
The universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).
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 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4545 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "datamigration.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DataMigrationService 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_migration_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_migration_jobs ## # RPC-specific configuration for `get_migration_job` # @return [::Gapic::Config::Method] # attr_reader :get_migration_job ## # RPC-specific configuration for `create_migration_job` # @return [::Gapic::Config::Method] # attr_reader :create_migration_job ## # RPC-specific configuration for `update_migration_job` # @return [::Gapic::Config::Method] # attr_reader :update_migration_job ## # RPC-specific configuration for `delete_migration_job` # @return [::Gapic::Config::Method] # attr_reader :delete_migration_job ## # RPC-specific configuration for `start_migration_job` # @return [::Gapic::Config::Method] # attr_reader :start_migration_job ## # RPC-specific configuration for `stop_migration_job` # @return [::Gapic::Config::Method] # attr_reader :stop_migration_job ## # RPC-specific configuration for `resume_migration_job` # @return [::Gapic::Config::Method] # attr_reader :resume_migration_job ## # RPC-specific configuration for `promote_migration_job` # @return [::Gapic::Config::Method] # attr_reader :promote_migration_job ## # RPC-specific configuration for `verify_migration_job` # @return [::Gapic::Config::Method] # attr_reader :verify_migration_job ## # RPC-specific configuration for `restart_migration_job` # @return [::Gapic::Config::Method] # attr_reader :restart_migration_job ## # RPC-specific configuration for `generate_ssh_script` # @return [::Gapic::Config::Method] # attr_reader :generate_ssh_script ## # RPC-specific configuration for `generate_tcp_proxy_script` # @return [::Gapic::Config::Method] # attr_reader :generate_tcp_proxy_script ## # RPC-specific configuration for `list_connection_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_connection_profiles ## # RPC-specific configuration for `get_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :get_connection_profile ## # RPC-specific configuration for `create_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :create_connection_profile ## # RPC-specific configuration for `update_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :update_connection_profile ## # RPC-specific configuration for `delete_connection_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_connection_profile ## # RPC-specific configuration for `create_private_connection` # @return [::Gapic::Config::Method] # attr_reader :create_private_connection ## # RPC-specific configuration for `get_private_connection` # @return [::Gapic::Config::Method] # attr_reader :get_private_connection ## # RPC-specific configuration for `list_private_connections` # @return [::Gapic::Config::Method] # attr_reader :list_private_connections ## # RPC-specific configuration for `delete_private_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_private_connection ## # RPC-specific configuration for `get_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :get_conversion_workspace ## # RPC-specific configuration for `list_conversion_workspaces` # @return [::Gapic::Config::Method] # attr_reader :list_conversion_workspaces ## # RPC-specific configuration for `create_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :create_conversion_workspace ## # RPC-specific configuration for `update_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :update_conversion_workspace ## # RPC-specific configuration for `delete_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :delete_conversion_workspace ## # RPC-specific configuration for `create_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :create_mapping_rule ## # RPC-specific configuration for `delete_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :delete_mapping_rule ## # RPC-specific configuration for `list_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :list_mapping_rules ## # RPC-specific configuration for `get_mapping_rule` # @return [::Gapic::Config::Method] # attr_reader :get_mapping_rule ## # RPC-specific configuration for `seed_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :seed_conversion_workspace ## # RPC-specific configuration for `import_mapping_rules` # @return [::Gapic::Config::Method] # attr_reader :import_mapping_rules ## # RPC-specific configuration for `convert_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :convert_conversion_workspace ## # RPC-specific configuration for `commit_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :commit_conversion_workspace ## # RPC-specific configuration for `rollback_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :rollback_conversion_workspace ## # RPC-specific configuration for `apply_conversion_workspace` # @return [::Gapic::Config::Method] # attr_reader :apply_conversion_workspace ## # RPC-specific configuration for `describe_database_entities` # @return [::Gapic::Config::Method] # attr_reader :describe_database_entities ## # RPC-specific configuration for `search_background_jobs` # @return [::Gapic::Config::Method] # attr_reader :search_background_jobs ## # RPC-specific configuration for `describe_conversion_workspace_revisions` # @return [::Gapic::Config::Method] # attr_reader :describe_conversion_workspace_revisions ## # RPC-specific configuration for `fetch_static_ips` # @return [::Gapic::Config::Method] # attr_reader :fetch_static_ips # @private def initialize parent_rpcs = nil list_migration_jobs_config = parent_rpcs.list_migration_jobs if parent_rpcs.respond_to? :list_migration_jobs @list_migration_jobs = ::Gapic::Config::Method.new list_migration_jobs_config get_migration_job_config = parent_rpcs.get_migration_job if parent_rpcs.respond_to? :get_migration_job @get_migration_job = ::Gapic::Config::Method.new get_migration_job_config create_migration_job_config = parent_rpcs.create_migration_job if parent_rpcs.respond_to? :create_migration_job @create_migration_job = ::Gapic::Config::Method.new create_migration_job_config update_migration_job_config = parent_rpcs.update_migration_job if parent_rpcs.respond_to? :update_migration_job @update_migration_job = ::Gapic::Config::Method.new update_migration_job_config delete_migration_job_config = parent_rpcs.delete_migration_job if parent_rpcs.respond_to? :delete_migration_job @delete_migration_job = ::Gapic::Config::Method.new delete_migration_job_config start_migration_job_config = parent_rpcs.start_migration_job if parent_rpcs.respond_to? :start_migration_job @start_migration_job = ::Gapic::Config::Method.new start_migration_job_config stop_migration_job_config = parent_rpcs.stop_migration_job if parent_rpcs.respond_to? :stop_migration_job @stop_migration_job = ::Gapic::Config::Method.new stop_migration_job_config resume_migration_job_config = parent_rpcs.resume_migration_job if parent_rpcs.respond_to? :resume_migration_job @resume_migration_job = ::Gapic::Config::Method.new resume_migration_job_config promote_migration_job_config = parent_rpcs.promote_migration_job if parent_rpcs.respond_to? :promote_migration_job @promote_migration_job = ::Gapic::Config::Method.new promote_migration_job_config verify_migration_job_config = parent_rpcs.verify_migration_job if parent_rpcs.respond_to? :verify_migration_job @verify_migration_job = ::Gapic::Config::Method.new verify_migration_job_config restart_migration_job_config = parent_rpcs.restart_migration_job if parent_rpcs.respond_to? :restart_migration_job @restart_migration_job = ::Gapic::Config::Method.new restart_migration_job_config generate_ssh_script_config = parent_rpcs.generate_ssh_script if parent_rpcs.respond_to? :generate_ssh_script @generate_ssh_script = ::Gapic::Config::Method.new generate_ssh_script_config generate_tcp_proxy_script_config = parent_rpcs.generate_tcp_proxy_script if parent_rpcs.respond_to? :generate_tcp_proxy_script @generate_tcp_proxy_script = ::Gapic::Config::Method.new generate_tcp_proxy_script_config list_connection_profiles_config = parent_rpcs.list_connection_profiles if parent_rpcs.respond_to? :list_connection_profiles @list_connection_profiles = ::Gapic::Config::Method.new list_connection_profiles_config get_connection_profile_config = parent_rpcs.get_connection_profile if parent_rpcs.respond_to? :get_connection_profile @get_connection_profile = ::Gapic::Config::Method.new get_connection_profile_config create_connection_profile_config = parent_rpcs.create_connection_profile if parent_rpcs.respond_to? :create_connection_profile @create_connection_profile = ::Gapic::Config::Method.new create_connection_profile_config update_connection_profile_config = parent_rpcs.update_connection_profile if parent_rpcs.respond_to? :update_connection_profile @update_connection_profile = ::Gapic::Config::Method.new update_connection_profile_config delete_connection_profile_config = parent_rpcs.delete_connection_profile if parent_rpcs.respond_to? :delete_connection_profile @delete_connection_profile = ::Gapic::Config::Method.new delete_connection_profile_config create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config get_conversion_workspace_config = parent_rpcs.get_conversion_workspace if parent_rpcs.respond_to? :get_conversion_workspace @get_conversion_workspace = ::Gapic::Config::Method.new get_conversion_workspace_config list_conversion_workspaces_config = parent_rpcs.list_conversion_workspaces if parent_rpcs.respond_to? :list_conversion_workspaces @list_conversion_workspaces = ::Gapic::Config::Method.new list_conversion_workspaces_config create_conversion_workspace_config = parent_rpcs.create_conversion_workspace if parent_rpcs.respond_to? :create_conversion_workspace @create_conversion_workspace = ::Gapic::Config::Method.new create_conversion_workspace_config update_conversion_workspace_config = parent_rpcs.update_conversion_workspace if parent_rpcs.respond_to? :update_conversion_workspace @update_conversion_workspace = ::Gapic::Config::Method.new update_conversion_workspace_config delete_conversion_workspace_config = parent_rpcs.delete_conversion_workspace if parent_rpcs.respond_to? :delete_conversion_workspace @delete_conversion_workspace = ::Gapic::Config::Method.new delete_conversion_workspace_config create_mapping_rule_config = parent_rpcs.create_mapping_rule if parent_rpcs.respond_to? :create_mapping_rule @create_mapping_rule = ::Gapic::Config::Method.new create_mapping_rule_config delete_mapping_rule_config = parent_rpcs.delete_mapping_rule if parent_rpcs.respond_to? :delete_mapping_rule @delete_mapping_rule = ::Gapic::Config::Method.new delete_mapping_rule_config list_mapping_rules_config = parent_rpcs.list_mapping_rules if parent_rpcs.respond_to? :list_mapping_rules @list_mapping_rules = ::Gapic::Config::Method.new list_mapping_rules_config get_mapping_rule_config = parent_rpcs.get_mapping_rule if parent_rpcs.respond_to? :get_mapping_rule @get_mapping_rule = ::Gapic::Config::Method.new get_mapping_rule_config seed_conversion_workspace_config = parent_rpcs.seed_conversion_workspace if parent_rpcs.respond_to? :seed_conversion_workspace @seed_conversion_workspace = ::Gapic::Config::Method.new seed_conversion_workspace_config import_mapping_rules_config = parent_rpcs.import_mapping_rules if parent_rpcs.respond_to? :import_mapping_rules @import_mapping_rules = ::Gapic::Config::Method.new import_mapping_rules_config convert_conversion_workspace_config = parent_rpcs.convert_conversion_workspace if parent_rpcs.respond_to? :convert_conversion_workspace @convert_conversion_workspace = ::Gapic::Config::Method.new convert_conversion_workspace_config commit_conversion_workspace_config = parent_rpcs.commit_conversion_workspace if parent_rpcs.respond_to? :commit_conversion_workspace @commit_conversion_workspace = ::Gapic::Config::Method.new commit_conversion_workspace_config rollback_conversion_workspace_config = parent_rpcs.rollback_conversion_workspace if parent_rpcs.respond_to? :rollback_conversion_workspace @rollback_conversion_workspace = ::Gapic::Config::Method.new rollback_conversion_workspace_config apply_conversion_workspace_config = parent_rpcs.apply_conversion_workspace if parent_rpcs.respond_to? :apply_conversion_workspace @apply_conversion_workspace = ::Gapic::Config::Method.new apply_conversion_workspace_config describe_database_entities_config = parent_rpcs.describe_database_entities if parent_rpcs.respond_to? :describe_database_entities @describe_database_entities = ::Gapic::Config::Method.new describe_database_entities_config search_background_jobs_config = parent_rpcs.search_background_jobs if parent_rpcs.respond_to? :search_background_jobs @search_background_jobs = ::Gapic::Config::Method.new search_background_jobs_config describe_conversion_workspace_revisions_config = parent_rpcs.describe_conversion_workspace_revisions if parent_rpcs.respond_to? :describe_conversion_workspace_revisions @describe_conversion_workspace_revisions = ::Gapic::Config::Method.new describe_conversion_workspace_revisions_config fetch_static_ips_config = parent_rpcs.fetch_static_ips if parent_rpcs.respond_to? :fetch_static_ips @fetch_static_ips = ::Gapic::Config::Method.new fetch_static_ips_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
4593 4594 4595 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4593 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
4581 4582 4583 4584 4585 4586 4587 |
# File 'lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb', line 4581 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 |