Class: Google::Cloud::VmwareEngine::V1::VmwareEngine::Client::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Gapic::Config
Defined in:
lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb

Overview

Configuration class for the VmwareEngine API.

This class represents the configuration for VmwareEngine, 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.

Examples:


# Modify the global config, setting the timeout for
# list_private_clouds to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Cloud::VmwareEngine::V1::VmwareEngine::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.list_private_clouds.timeout = 20.0
end

# Apply the above configuration only to a new client.
client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.list_private_clouds.timeout = 20.0
end

Defined Under Namespace

Classes: Rpcs

Constant Summary collapse

DEFAULT_ENDPOINT =
"vmwareengine.googleapis.com"

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Returns:

  • (::Hash)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_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

Returns:

  • (::Object)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config

      yield self if block_given?
    end
  end
end

#endpoint ⇒ ::String

The hostname or hostname:port of the service endpoint. Defaults to "vmwareengine.googleapis.com".

Returns:

  • (::String)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config

      yield self if block_given?
    end
  end
end

#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>

An array of interceptors that are run before calls are executed.

Returns:

  • (::Array<::GRPC::ClientInterceptor>)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config

      yield self if block_given?
    end
  end
end

#lib_name ⇒ ::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config

      yield self if block_given?
    end
  end
end

#lib_version ⇒ ::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config

      yield self if block_given?
    end
  end
end

#metadata ⇒ ::Hash{::Symbol=>::String}

Additional gRPC headers to be sent with the call.

Returns:

  • (::Hash{::Symbol=>::String})


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config

      yield self if block_given?
    end
  end
end

#quota_project ⇒ ::String

A separate project against which to charge quota.

Returns:

  • (::String)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_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.

Returns:

  • (::Hash)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config

      yield self if block_given?
    end
  end
end

#scope ⇒ ::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config

      yield self if block_given?
    end
  end
end

#timeout ⇒ ::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3830

class Configuration
  extend ::Gapic::Config

  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"

  config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the VmwareEngine 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_private_clouds`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_private_clouds
    ##
    # RPC-specific configuration for `get_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_private_cloud
    ##
    # RPC-specific configuration for `create_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_private_cloud
    ##
    # RPC-specific configuration for `update_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_private_cloud
    ##
    # RPC-specific configuration for `delete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_private_cloud
    ##
    # RPC-specific configuration for `undelete_private_cloud`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undelete_private_cloud
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_subnets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_subnets
    ##
    # RPC-specific configuration for `list_node_types`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_types
    ##
    # RPC-specific configuration for `get_node_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_type
    ##
    # RPC-specific configuration for `show_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_nsx_credentials
    ##
    # RPC-specific configuration for `show_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :show_vcenter_credentials
    ##
    # RPC-specific configuration for `reset_nsx_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_nsx_credentials
    ##
    # RPC-specific configuration for `reset_vcenter_credentials`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset_vcenter_credentials
    ##
    # RPC-specific configuration for `create_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hcx_activation_key
    ##
    # RPC-specific configuration for `list_hcx_activation_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hcx_activation_keys
    ##
    # RPC-specific configuration for `get_hcx_activation_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hcx_activation_key
    ##
    # RPC-specific configuration for `get_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_network_policy
    ##
    # RPC-specific configuration for `list_network_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_network_policies
    ##
    # RPC-specific configuration for `create_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_network_policy
    ##
    # RPC-specific configuration for `update_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_policy
    ##
    # RPC-specific configuration for `delete_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_network_policy
    ##
    # RPC-specific configuration for `create_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_vmware_engine_network
    ##
    # RPC-specific configuration for `update_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vmware_engine_network
    ##
    # RPC-specific configuration for `delete_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_vmware_engine_network
    ##
    # RPC-specific configuration for `get_vmware_engine_network`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vmware_engine_network
    ##
    # RPC-specific configuration for `list_vmware_engine_networks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_vmware_engine_networks

    # @private
    def initialize parent_rpcs = nil
      list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
      @list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
      get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
      @get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
      create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
      @create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
      update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
      @update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
      delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
      @delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
      undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
      @undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
      @list_subnets = ::Gapic::Config::Method.new list_subnets_config
      list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
      @list_node_types = ::Gapic::Config::Method.new list_node_types_config
      get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
      @get_node_type = ::Gapic::Config::Method.new get_node_type_config
      show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
      @show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
      show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
      @show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
      reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
      @reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
      reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
      @reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
      create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
      @create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
      list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
      @list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
      get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
      @get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
      get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
      @get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
      list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
      @list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
      create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
      @create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
      update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
      @update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
      delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
      @delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
      create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
      @create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
      update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
      @update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
      delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
      @delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
      get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
      @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
      list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
      @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#rpcs ⇒ Rpcs

Configurations for individual RPCs

Returns:



3862
3863
3864
3865
3866
3867
3868
# File 'lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb', line 3862

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