Class: Google::Cloud::Container::V1beta1::ClusterManager::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::Container::V1beta1::ClusterManager::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/container/v1beta1/cluster_manager/client.rb
Overview
Configuration class for the ClusterManager API.
This class represents the configuration for ClusterManager, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Defined Under Namespace
Classes: Rpcs
Instance Attribute Summary collapse
-
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel.
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
-
#universe_domain ⇒ ::String?
The universe domain within which to make requests.
Instance Method Summary collapse
-
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool.
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel. Note: this is ignored if a
GRPC::Core::Channel
object is provided as the credential.
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_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
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_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.
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
#universe_domain ⇒ ::String?
The universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).
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 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 3997 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "container.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ClusterManager 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_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 `update_node_pool` # @return [::Gapic::Config::Method] # attr_reader :update_node_pool ## # RPC-specific configuration for `set_node_pool_autoscaling` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_autoscaling ## # RPC-specific configuration for `set_logging_service` # @return [::Gapic::Config::Method] # attr_reader :set_logging_service ## # RPC-specific configuration for `set_monitoring_service` # @return [::Gapic::Config::Method] # attr_reader :set_monitoring_service ## # RPC-specific configuration for `set_addons_config` # @return [::Gapic::Config::Method] # attr_reader :set_addons_config ## # RPC-specific configuration for `set_locations` # @return [::Gapic::Config::Method] # attr_reader :set_locations ## # RPC-specific configuration for `update_master` # @return [::Gapic::Config::Method] # attr_reader :update_master ## # RPC-specific configuration for `set_master_auth` # @return [::Gapic::Config::Method] # attr_reader :set_master_auth ## # RPC-specific configuration for `delete_cluster` # @return [::Gapic::Config::Method] # attr_reader :delete_cluster ## # RPC-specific configuration for `list_operations` # @return [::Gapic::Config::Method] # attr_reader :list_operations ## # RPC-specific configuration for `get_operation` # @return [::Gapic::Config::Method] # attr_reader :get_operation ## # RPC-specific configuration for `cancel_operation` # @return [::Gapic::Config::Method] # attr_reader :cancel_operation ## # RPC-specific configuration for `get_server_config` # @return [::Gapic::Config::Method] # attr_reader :get_server_config ## # RPC-specific configuration for `get_json_web_keys` # @return [::Gapic::Config::Method] # attr_reader :get_json_web_keys ## # RPC-specific configuration for `list_node_pools` # @return [::Gapic::Config::Method] # attr_reader :list_node_pools ## # RPC-specific configuration for `get_node_pool` # @return [::Gapic::Config::Method] # attr_reader :get_node_pool ## # RPC-specific configuration for `create_node_pool` # @return [::Gapic::Config::Method] # attr_reader :create_node_pool ## # RPC-specific configuration for `delete_node_pool` # @return [::Gapic::Config::Method] # attr_reader :delete_node_pool ## # RPC-specific configuration for `complete_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :complete_node_pool_upgrade ## # RPC-specific configuration for `rollback_node_pool_upgrade` # @return [::Gapic::Config::Method] # attr_reader :rollback_node_pool_upgrade ## # RPC-specific configuration for `set_node_pool_management` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_management ## # RPC-specific configuration for `set_labels` # @return [::Gapic::Config::Method] # attr_reader :set_labels ## # RPC-specific configuration for `set_legacy_abac` # @return [::Gapic::Config::Method] # attr_reader :set_legacy_abac ## # RPC-specific configuration for `start_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :start_ip_rotation ## # RPC-specific configuration for `complete_ip_rotation` # @return [::Gapic::Config::Method] # attr_reader :complete_ip_rotation ## # RPC-specific configuration for `set_node_pool_size` # @return [::Gapic::Config::Method] # attr_reader :set_node_pool_size ## # RPC-specific configuration for `set_network_policy` # @return [::Gapic::Config::Method] # attr_reader :set_network_policy ## # RPC-specific configuration for `set_maintenance_policy` # @return [::Gapic::Config::Method] # attr_reader :set_maintenance_policy ## # RPC-specific configuration for `list_usable_subnetworks` # @return [::Gapic::Config::Method] # attr_reader :list_usable_subnetworks ## # RPC-specific configuration for `check_autopilot_compatibility` # @return [::Gapic::Config::Method] # attr_reader :check_autopilot_compatibility ## # RPC-specific configuration for `list_locations` # @return [::Gapic::Config::Method] # attr_reader :list_locations # @private def initialize parent_rpcs = nil 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 update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations @set_locations = ::Gapic::Config::Method.new set_locations_config update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master @update_master = ::Gapic::Config::Method.new update_master_config set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth @set_master_auth = ::Gapic::Config::Method.new set_master_auth_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_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations @list_operations = ::Gapic::Config::Method.new list_operations_config get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation @get_operation = ::Gapic::Config::Method.new get_operation_config cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config @get_server_config = ::Gapic::Config::Method.new get_server_config_config get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels @set_labels = ::Gapic::Config::Method.new set_labels_config set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations @list_locations = ::Gapic::Config::Method.new list_locations_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
4044 4045 4046 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 4044 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
4032 4033 4034 4035 4036 4037 4038 |
# File 'lib/google/cloud/container/v1beta1/cluster_manager/client.rb', line 4032 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 |