Class: Google::Cloud::Deploy::V1::CloudDeploy::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::Deploy::V1::CloudDeploy::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/deploy/v1/cloud_deploy/client.rb
Overview
Configuration class for the CloudDeploy API.
This class represents the configuration for CloudDeploy, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Defined Under Namespace
Classes: Rpcs
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.
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#credentials ⇒ ::Object
Credentials to send with calls. You may provide any of the following types:
- (
String
) The path to a service account key file in JSON format - (
Hash
) A service account key as a Hash - (
Google::Auth::Credentials
) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client
) A signet oauth2 client object (see the signet docs) - (
GRPC::Core::Channel
) a gRPC channel with included credentials - (
GRPC::Core::ChannelCredentials
) a gRPC credentails object - (
nil
) indicating no credentials
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#endpoint ⇒ ::String?
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.
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#retry_policy ⇒ ::Hash
The retry policy. The value is a hash with the following keys:
-
:initial_delay
(type:Numeric
) - The initial delay in seconds. -
:max_delay
(type:Numeric
) - The max delay in seconds. -
:multiplier
(type:Numeric
) - The incremental backoff multiplier. -
:retry_codes
(type:Array<String>
) - The error codes that should trigger a retry.
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
#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).
5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5147 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "clouddeploy.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 CloudDeploy API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `list_delivery_pipelines` # @return [::Gapic::Config::Method] # attr_reader :list_delivery_pipelines ## # RPC-specific configuration for `get_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :get_delivery_pipeline ## # RPC-specific configuration for `create_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :create_delivery_pipeline ## # RPC-specific configuration for `update_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :update_delivery_pipeline ## # RPC-specific configuration for `delete_delivery_pipeline` # @return [::Gapic::Config::Method] # attr_reader :delete_delivery_pipeline ## # RPC-specific configuration for `list_targets` # @return [::Gapic::Config::Method] # attr_reader :list_targets ## # RPC-specific configuration for `rollback_target` # @return [::Gapic::Config::Method] # attr_reader :rollback_target ## # RPC-specific configuration for `get_target` # @return [::Gapic::Config::Method] # attr_reader :get_target ## # RPC-specific configuration for `create_target` # @return [::Gapic::Config::Method] # attr_reader :create_target ## # RPC-specific configuration for `update_target` # @return [::Gapic::Config::Method] # attr_reader :update_target ## # RPC-specific configuration for `delete_target` # @return [::Gapic::Config::Method] # attr_reader :delete_target ## # RPC-specific configuration for `list_custom_target_types` # @return [::Gapic::Config::Method] # attr_reader :list_custom_target_types ## # RPC-specific configuration for `get_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :get_custom_target_type ## # RPC-specific configuration for `create_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :create_custom_target_type ## # RPC-specific configuration for `update_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :update_custom_target_type ## # RPC-specific configuration for `delete_custom_target_type` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_target_type ## # RPC-specific configuration for `list_releases` # @return [::Gapic::Config::Method] # attr_reader :list_releases ## # RPC-specific configuration for `get_release` # @return [::Gapic::Config::Method] # attr_reader :get_release ## # RPC-specific configuration for `create_release` # @return [::Gapic::Config::Method] # attr_reader :create_release ## # RPC-specific configuration for `abandon_release` # @return [::Gapic::Config::Method] # attr_reader :abandon_release ## # RPC-specific configuration for `create_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :create_deploy_policy ## # RPC-specific configuration for `update_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :update_deploy_policy ## # RPC-specific configuration for `delete_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :delete_deploy_policy ## # RPC-specific configuration for `list_deploy_policies` # @return [::Gapic::Config::Method] # attr_reader :list_deploy_policies ## # RPC-specific configuration for `get_deploy_policy` # @return [::Gapic::Config::Method] # attr_reader :get_deploy_policy ## # RPC-specific configuration for `approve_rollout` # @return [::Gapic::Config::Method] # attr_reader :approve_rollout ## # RPC-specific configuration for `advance_rollout` # @return [::Gapic::Config::Method] # attr_reader :advance_rollout ## # RPC-specific configuration for `cancel_rollout` # @return [::Gapic::Config::Method] # attr_reader :cancel_rollout ## # RPC-specific configuration for `list_rollouts` # @return [::Gapic::Config::Method] # attr_reader :list_rollouts ## # RPC-specific configuration for `get_rollout` # @return [::Gapic::Config::Method] # attr_reader :get_rollout ## # RPC-specific configuration for `create_rollout` # @return [::Gapic::Config::Method] # attr_reader :create_rollout ## # RPC-specific configuration for `ignore_job` # @return [::Gapic::Config::Method] # attr_reader :ignore_job ## # RPC-specific configuration for `retry_job` # @return [::Gapic::Config::Method] # attr_reader :retry_job ## # RPC-specific configuration for `list_job_runs` # @return [::Gapic::Config::Method] # attr_reader :list_job_runs ## # RPC-specific configuration for `get_job_run` # @return [::Gapic::Config::Method] # attr_reader :get_job_run ## # RPC-specific configuration for `terminate_job_run` # @return [::Gapic::Config::Method] # attr_reader :terminate_job_run ## # RPC-specific configuration for `get_config` # @return [::Gapic::Config::Method] # attr_reader :get_config ## # RPC-specific configuration for `create_automation` # @return [::Gapic::Config::Method] # attr_reader :create_automation ## # RPC-specific configuration for `update_automation` # @return [::Gapic::Config::Method] # attr_reader :update_automation ## # RPC-specific configuration for `delete_automation` # @return [::Gapic::Config::Method] # attr_reader :delete_automation ## # RPC-specific configuration for `get_automation` # @return [::Gapic::Config::Method] # attr_reader :get_automation ## # RPC-specific configuration for `list_automations` # @return [::Gapic::Config::Method] # attr_reader :list_automations ## # RPC-specific configuration for `get_automation_run` # @return [::Gapic::Config::Method] # attr_reader :get_automation_run ## # RPC-specific configuration for `list_automation_runs` # @return [::Gapic::Config::Method] # attr_reader :list_automation_runs ## # RPC-specific configuration for `cancel_automation_run` # @return [::Gapic::Config::Method] # attr_reader :cancel_automation_run # @private def initialize parent_rpcs = nil list_delivery_pipelines_config = parent_rpcs.list_delivery_pipelines if parent_rpcs.respond_to? :list_delivery_pipelines @list_delivery_pipelines = ::Gapic::Config::Method.new list_delivery_pipelines_config get_delivery_pipeline_config = parent_rpcs.get_delivery_pipeline if parent_rpcs.respond_to? :get_delivery_pipeline @get_delivery_pipeline = ::Gapic::Config::Method.new get_delivery_pipeline_config create_delivery_pipeline_config = parent_rpcs.create_delivery_pipeline if parent_rpcs.respond_to? :create_delivery_pipeline @create_delivery_pipeline = ::Gapic::Config::Method.new create_delivery_pipeline_config update_delivery_pipeline_config = parent_rpcs.update_delivery_pipeline if parent_rpcs.respond_to? :update_delivery_pipeline @update_delivery_pipeline = ::Gapic::Config::Method.new update_delivery_pipeline_config delete_delivery_pipeline_config = parent_rpcs.delete_delivery_pipeline if parent_rpcs.respond_to? :delete_delivery_pipeline @delete_delivery_pipeline = ::Gapic::Config::Method.new delete_delivery_pipeline_config list_targets_config = parent_rpcs.list_targets if parent_rpcs.respond_to? :list_targets @list_targets = ::Gapic::Config::Method.new list_targets_config rollback_target_config = parent_rpcs.rollback_target if parent_rpcs.respond_to? :rollback_target @rollback_target = ::Gapic::Config::Method.new rollback_target_config get_target_config = parent_rpcs.get_target if parent_rpcs.respond_to? :get_target @get_target = ::Gapic::Config::Method.new get_target_config create_target_config = parent_rpcs.create_target if parent_rpcs.respond_to? :create_target @create_target = ::Gapic::Config::Method.new create_target_config update_target_config = parent_rpcs.update_target if parent_rpcs.respond_to? :update_target @update_target = ::Gapic::Config::Method.new update_target_config delete_target_config = parent_rpcs.delete_target if parent_rpcs.respond_to? :delete_target @delete_target = ::Gapic::Config::Method.new delete_target_config list_custom_target_types_config = parent_rpcs.list_custom_target_types if parent_rpcs.respond_to? :list_custom_target_types @list_custom_target_types = ::Gapic::Config::Method.new list_custom_target_types_config get_custom_target_type_config = parent_rpcs.get_custom_target_type if parent_rpcs.respond_to? :get_custom_target_type @get_custom_target_type = ::Gapic::Config::Method.new get_custom_target_type_config create_custom_target_type_config = parent_rpcs.create_custom_target_type if parent_rpcs.respond_to? :create_custom_target_type @create_custom_target_type = ::Gapic::Config::Method.new create_custom_target_type_config update_custom_target_type_config = parent_rpcs.update_custom_target_type if parent_rpcs.respond_to? :update_custom_target_type @update_custom_target_type = ::Gapic::Config::Method.new update_custom_target_type_config delete_custom_target_type_config = parent_rpcs.delete_custom_target_type if parent_rpcs.respond_to? :delete_custom_target_type @delete_custom_target_type = ::Gapic::Config::Method.new delete_custom_target_type_config list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases @list_releases = ::Gapic::Config::Method.new list_releases_config get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release @get_release = ::Gapic::Config::Method.new get_release_config create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release @create_release = ::Gapic::Config::Method.new create_release_config abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release @abandon_release = ::Gapic::Config::Method.new abandon_release_config create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout @advance_rollout = ::Gapic::Config::Method.new advance_rollout_config cancel_rollout_config = parent_rpcs.cancel_rollout if parent_rpcs.respond_to? :cancel_rollout @cancel_rollout = ::Gapic::Config::Method.new cancel_rollout_config list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout @get_rollout = ::Gapic::Config::Method.new get_rollout_config create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout @create_rollout = ::Gapic::Config::Method.new create_rollout_config ignore_job_config = parent_rpcs.ignore_job if parent_rpcs.respond_to? :ignore_job @ignore_job = ::Gapic::Config::Method.new ignore_job_config retry_job_config = parent_rpcs.retry_job if parent_rpcs.respond_to? :retry_job @retry_job = ::Gapic::Config::Method.new retry_job_config list_job_runs_config = parent_rpcs.list_job_runs if parent_rpcs.respond_to? :list_job_runs @list_job_runs = ::Gapic::Config::Method.new list_job_runs_config get_job_run_config = parent_rpcs.get_job_run if parent_rpcs.respond_to? :get_job_run @get_job_run = ::Gapic::Config::Method.new get_job_run_config terminate_job_run_config = parent_rpcs.terminate_job_run if parent_rpcs.respond_to? :terminate_job_run @terminate_job_run = ::Gapic::Config::Method.new terminate_job_run_config get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config @get_config = ::Gapic::Config::Method.new get_config_config create_automation_config = parent_rpcs.create_automation if parent_rpcs.respond_to? :create_automation @create_automation = ::Gapic::Config::Method.new create_automation_config update_automation_config = parent_rpcs.update_automation if parent_rpcs.respond_to? :update_automation @update_automation = ::Gapic::Config::Method.new update_automation_config delete_automation_config = parent_rpcs.delete_automation if parent_rpcs.respond_to? :delete_automation @delete_automation = ::Gapic::Config::Method.new delete_automation_config get_automation_config = parent_rpcs.get_automation if parent_rpcs.respond_to? :get_automation @get_automation = ::Gapic::Config::Method.new get_automation_config list_automations_config = parent_rpcs.list_automations if parent_rpcs.respond_to? :list_automations @list_automations = ::Gapic::Config::Method.new list_automations_config get_automation_run_config = parent_rpcs.get_automation_run if parent_rpcs.respond_to? :get_automation_run @get_automation_run = ::Gapic::Config::Method.new get_automation_run_config list_automation_runs_config = parent_rpcs.list_automation_runs if parent_rpcs.respond_to? :list_automation_runs @list_automation_runs = ::Gapic::Config::Method.new list_automation_runs_config cancel_automation_run_config = parent_rpcs.cancel_automation_run if parent_rpcs.respond_to? :cancel_automation_run @cancel_automation_run = ::Gapic::Config::Method.new cancel_automation_run_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
5194 5195 5196 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5194 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
5182 5183 5184 5185 5186 5187 5188 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/client.rb', line 5182 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 |