Class: Google::Cloud::Kms::V1::KeyManagementService::Client::Configuration

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

Overview

Configuration class for the KeyManagementService API.

This class represents the configuration for KeyManagementService, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.

Configuration can be applied globally to all clients, or to a single client on construction.

Examples:


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

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

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channel_args::Hash

Extra parameters passed to the gRPC channel. Note: this is ignored if a GRPC::Core::Channel object is provided as the credential.

Returns:

  • (::Hash)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

#credentials::Object

Note:

Warning: Passing a String to a keyfile path or a Hash of credentials is deprecated. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data.

Note:

Warning: If you accept a credential configuration (JSON file or Hash) from an

Credentials to send with calls. You may provide any of the following types:

  • (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

external source for authentication to Google Cloud, you must validate it before providing it to a Google API client library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to Validate credential configurations from external sources.

Examples:


# The recommended way to provide credentials is to use the `make_creds` method
# on the appropriate credentials class for your environment.

require "googleauth"

credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
  json_key_io: ::File.open("/path/to/keyfile.json")
)

client = ::Google::Cloud::Kms::V1::KeyManagementService::Client.new do |config|
  config.credentials = credentials
end

Returns:

  • (::Object)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_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.

Returns:

  • (::String, nil)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

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

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

Returns:

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


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

#logger::Logger, ...

A custom logger to use for request/response debug logging, or the value :default (the default) to construct a default logger, or nil to explicitly disable logging.

Returns:

  • (::Logger, :default, nil)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

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

Additional gRPC headers to be sent with the call.

Returns:

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


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

#retry_policy::Hash

The retry policy. The value is a hash with the following keys:

  • :initial_delay (type: Numeric) - The initial delay in seconds.
  • :max_delay (type: Numeric) - The max delay in seconds.
  • :multiplier (type: Numeric) - The incremental backoff multiplier.
  • :retry_codes (type: Array<String>) - The error codes that should trigger a retry.

Returns:

  • (::Hash)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_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).

Returns:

  • (::String, nil)


4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4184

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "cloudkms.googleapis.com"

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

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

    yield self if block_given?
  end

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

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the KeyManagementService 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_key_rings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_key_rings
    ##
    # RPC-specific configuration for `list_crypto_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_keys
    ##
    # RPC-specific configuration for `list_crypto_key_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_crypto_key_versions
    ##
    # RPC-specific configuration for `list_import_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_import_jobs
    ##
    # RPC-specific configuration for `list_retired_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_retired_resources
    ##
    # RPC-specific configuration for `get_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_key_ring
    ##
    # RPC-specific configuration for `get_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key
    ##
    # RPC-specific configuration for `get_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_crypto_key_version
    ##
    # RPC-specific configuration for `get_public_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_public_key
    ##
    # RPC-specific configuration for `get_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_import_job
    ##
    # RPC-specific configuration for `get_retired_resource`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_retired_resource
    ##
    # RPC-specific configuration for `create_key_ring`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_key_ring
    ##
    # RPC-specific configuration for `create_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key
    ##
    # RPC-specific configuration for `create_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_crypto_key_version
    ##
    # RPC-specific configuration for `delete_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key
    ##
    # RPC-specific configuration for `delete_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_crypto_key_version
    ##
    # RPC-specific configuration for `import_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_crypto_key_version
    ##
    # RPC-specific configuration for `create_import_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_import_job
    ##
    # RPC-specific configuration for `update_crypto_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key
    ##
    # RPC-specific configuration for `update_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_version
    ##
    # RPC-specific configuration for `update_crypto_key_primary_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_crypto_key_primary_version
    ##
    # RPC-specific configuration for `destroy_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :destroy_crypto_key_version
    ##
    # RPC-specific configuration for `restore_crypto_key_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_crypto_key_version
    ##
    # RPC-specific configuration for `encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt
    ##
    # RPC-specific configuration for `decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decrypt
    ##
    # RPC-specific configuration for `raw_encrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_encrypt
    ##
    # RPC-specific configuration for `raw_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :raw_decrypt
    ##
    # RPC-specific configuration for `asymmetric_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_sign
    ##
    # RPC-specific configuration for `asymmetric_decrypt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :asymmetric_decrypt
    ##
    # RPC-specific configuration for `mac_sign`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_sign
    ##
    # RPC-specific configuration for `mac_verify`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mac_verify
    ##
    # RPC-specific configuration for `decapsulate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :decapsulate
    ##
    # RPC-specific configuration for `generate_random_bytes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_random_bytes

    # @private
    def initialize parent_rpcs = nil
      list_key_rings_config = parent_rpcs.list_key_rings if parent_rpcs.respond_to? :list_key_rings
      @list_key_rings = ::Gapic::Config::Method.new list_key_rings_config
      list_crypto_keys_config = parent_rpcs.list_crypto_keys if parent_rpcs.respond_to? :list_crypto_keys
      @list_crypto_keys = ::Gapic::Config::Method.new list_crypto_keys_config
      list_crypto_key_versions_config = parent_rpcs.list_crypto_key_versions if parent_rpcs.respond_to? :list_crypto_key_versions
      @list_crypto_key_versions = ::Gapic::Config::Method.new list_crypto_key_versions_config
      list_import_jobs_config = parent_rpcs.list_import_jobs if parent_rpcs.respond_to? :list_import_jobs
      @list_import_jobs = ::Gapic::Config::Method.new list_import_jobs_config
      list_retired_resources_config = parent_rpcs.list_retired_resources if parent_rpcs.respond_to? :list_retired_resources
      @list_retired_resources = ::Gapic::Config::Method.new list_retired_resources_config
      get_key_ring_config = parent_rpcs.get_key_ring if parent_rpcs.respond_to? :get_key_ring
      @get_key_ring = ::Gapic::Config::Method.new get_key_ring_config
      get_crypto_key_config = parent_rpcs.get_crypto_key if parent_rpcs.respond_to? :get_crypto_key
      @get_crypto_key = ::Gapic::Config::Method.new get_crypto_key_config
      get_crypto_key_version_config = parent_rpcs.get_crypto_key_version if parent_rpcs.respond_to? :get_crypto_key_version
      @get_crypto_key_version = ::Gapic::Config::Method.new get_crypto_key_version_config
      get_public_key_config = parent_rpcs.get_public_key if parent_rpcs.respond_to? :get_public_key
      @get_public_key = ::Gapic::Config::Method.new get_public_key_config
      get_import_job_config = parent_rpcs.get_import_job if parent_rpcs.respond_to? :get_import_job
      @get_import_job = ::Gapic::Config::Method.new get_import_job_config
      get_retired_resource_config = parent_rpcs.get_retired_resource if parent_rpcs.respond_to? :get_retired_resource
      @get_retired_resource = ::Gapic::Config::Method.new get_retired_resource_config
      create_key_ring_config = parent_rpcs.create_key_ring if parent_rpcs.respond_to? :create_key_ring
      @create_key_ring = ::Gapic::Config::Method.new create_key_ring_config
      create_crypto_key_config = parent_rpcs.create_crypto_key if parent_rpcs.respond_to? :create_crypto_key
      @create_crypto_key = ::Gapic::Config::Method.new create_crypto_key_config
      create_crypto_key_version_config = parent_rpcs.create_crypto_key_version if parent_rpcs.respond_to? :create_crypto_key_version
      @create_crypto_key_version = ::Gapic::Config::Method.new create_crypto_key_version_config
      delete_crypto_key_config = parent_rpcs.delete_crypto_key if parent_rpcs.respond_to? :delete_crypto_key
      @delete_crypto_key = ::Gapic::Config::Method.new delete_crypto_key_config
      delete_crypto_key_version_config = parent_rpcs.delete_crypto_key_version if parent_rpcs.respond_to? :delete_crypto_key_version
      @delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
      import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
      @import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
      create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
      @create_import_job = ::Gapic::Config::Method.new create_import_job_config
      update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
      @update_crypto_key = ::Gapic::Config::Method.new update_crypto_key_config
      update_crypto_key_version_config = parent_rpcs.update_crypto_key_version if parent_rpcs.respond_to? :update_crypto_key_version
      @update_crypto_key_version = ::Gapic::Config::Method.new update_crypto_key_version_config
      update_crypto_key_primary_version_config = parent_rpcs.update_crypto_key_primary_version if parent_rpcs.respond_to? :update_crypto_key_primary_version
      @update_crypto_key_primary_version = ::Gapic::Config::Method.new update_crypto_key_primary_version_config
      destroy_crypto_key_version_config = parent_rpcs.destroy_crypto_key_version if parent_rpcs.respond_to? :destroy_crypto_key_version
      @destroy_crypto_key_version = ::Gapic::Config::Method.new destroy_crypto_key_version_config
      restore_crypto_key_version_config = parent_rpcs.restore_crypto_key_version if parent_rpcs.respond_to? :restore_crypto_key_version
      @restore_crypto_key_version = ::Gapic::Config::Method.new restore_crypto_key_version_config
      encrypt_config = parent_rpcs.encrypt if parent_rpcs.respond_to? :encrypt
      @encrypt = ::Gapic::Config::Method.new encrypt_config
      decrypt_config = parent_rpcs.decrypt if parent_rpcs.respond_to? :decrypt
      @decrypt = ::Gapic::Config::Method.new decrypt_config
      raw_encrypt_config = parent_rpcs.raw_encrypt if parent_rpcs.respond_to? :raw_encrypt
      @raw_encrypt = ::Gapic::Config::Method.new raw_encrypt_config
      raw_decrypt_config = parent_rpcs.raw_decrypt if parent_rpcs.respond_to? :raw_decrypt
      @raw_decrypt = ::Gapic::Config::Method.new raw_decrypt_config
      asymmetric_sign_config = parent_rpcs.asymmetric_sign if parent_rpcs.respond_to? :asymmetric_sign
      @asymmetric_sign = ::Gapic::Config::Method.new asymmetric_sign_config
      asymmetric_decrypt_config = parent_rpcs.asymmetric_decrypt if parent_rpcs.respond_to? :asymmetric_decrypt
      @asymmetric_decrypt = ::Gapic::Config::Method.new asymmetric_decrypt_config
      mac_sign_config = parent_rpcs.mac_sign if parent_rpcs.respond_to? :mac_sign
      @mac_sign = ::Gapic::Config::Method.new mac_sign_config
      mac_verify_config = parent_rpcs.mac_verify if parent_rpcs.respond_to? :mac_verify
      @mac_verify = ::Gapic::Config::Method.new mac_verify_config
      decapsulate_config = parent_rpcs.decapsulate if parent_rpcs.respond_to? :decapsulate
      @decapsulate = ::Gapic::Config::Method.new decapsulate_config
      generate_random_bytes_config = parent_rpcs.generate_random_bytes if parent_rpcs.respond_to? :generate_random_bytes
      @generate_random_bytes = ::Gapic::Config::Method.new generate_random_bytes_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#channel_pool::Gapic::ServiceStub::ChannelPool::Configuration

Configuration for the channel pool

Returns:

  • (::Gapic::ServiceStub::ChannelPool::Configuration)


4232
4233
4234
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4232

def channel_pool
  @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
end

#rpcsRpcs

Configurations for individual RPCs

Returns:



4220
4221
4222
4223
4224
4225
4226
# File 'lib/google/cloud/kms/v1/key_management_service/client.rb', line 4220

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