Class: Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client::Configuration

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

Overview

Configuration class for the BackupForGKE REST API.

This class represents the configuration for BackupForGKE REST, 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
# create_backup_plan to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.create_backup_plan.timeout = 20.0
end

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

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#credentials::Object

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

  • (String) The path to a service account key file in JSON format
  • (Hash) A service account key as a Hash
  • (Google::Auth::Credentials) A googleauth credentials object (see the googleauth docs)
  • (Signet::OAuth2::Client) A signet oauth2 client object (see the signet docs)
  • (nil) indicating no credentials

Warning: If you accept a credential configuration (JSON file or Hash) from an 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.

Returns:

  • (::Object)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_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)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_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)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config

      yield self if block_given?
    end
  end
end

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

Additional headers to be sent with the call.

Returns:

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


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_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)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_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)


4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
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
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4116

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "gkebackup.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.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 :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, 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 RPC class for the BackupForGKE 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 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 `create_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_plan
    ##
    # RPC-specific configuration for `list_backup_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plans
    ##
    # RPC-specific configuration for `get_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan
    ##
    # RPC-specific configuration for `update_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_plan
    ##
    # RPC-specific configuration for `delete_backup_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_plan
    ##
    # RPC-specific configuration for `create_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_channel
    ##
    # RPC-specific configuration for `list_backup_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_channels
    ##
    # RPC-specific configuration for `get_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_channel
    ##
    # RPC-specific configuration for `update_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_channel
    ##
    # RPC-specific configuration for `delete_backup_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_channel
    ##
    # RPC-specific configuration for `list_backup_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_plan_bindings
    ##
    # RPC-specific configuration for `get_backup_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_plan_binding
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_volume_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_backups
    ##
    # RPC-specific configuration for `get_volume_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_backup
    ##
    # RPC-specific configuration for `create_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_plan
    ##
    # RPC-specific configuration for `list_restore_plans`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plans
    ##
    # RPC-specific configuration for `get_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan
    ##
    # RPC-specific configuration for `update_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_plan
    ##
    # RPC-specific configuration for `delete_restore_plan`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_plan
    ##
    # RPC-specific configuration for `create_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore_channel
    ##
    # RPC-specific configuration for `list_restore_channels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_channels
    ##
    # RPC-specific configuration for `get_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_channel
    ##
    # RPC-specific configuration for `update_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore_channel
    ##
    # RPC-specific configuration for `delete_restore_channel`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore_channel
    ##
    # RPC-specific configuration for `list_restore_plan_bindings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restore_plan_bindings
    ##
    # RPC-specific configuration for `get_restore_plan_binding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore_plan_binding
    ##
    # RPC-specific configuration for `create_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_restore
    ##
    # RPC-specific configuration for `list_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_restores
    ##
    # RPC-specific configuration for `get_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_restore
    ##
    # RPC-specific configuration for `update_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_restore
    ##
    # RPC-specific configuration for `delete_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_restore
    ##
    # RPC-specific configuration for `list_volume_restores`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volume_restores
    ##
    # RPC-specific configuration for `get_volume_restore`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume_restore
    ##
    # RPC-specific configuration for `get_backup_index_download_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_index_download_url

    # @private
    def initialize parent_rpcs = nil
      create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan
      @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config
      list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans
      @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config
      get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan
      @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config
      update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan
      @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config
      delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan
      @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config
      create_backup_channel_config = parent_rpcs.create_backup_channel if parent_rpcs.respond_to? :create_backup_channel
      @create_backup_channel = ::Gapic::Config::Method.new create_backup_channel_config
      list_backup_channels_config = parent_rpcs.list_backup_channels if parent_rpcs.respond_to? :list_backup_channels
      @list_backup_channels = ::Gapic::Config::Method.new list_backup_channels_config
      get_backup_channel_config = parent_rpcs.get_backup_channel if parent_rpcs.respond_to? :get_backup_channel
      @get_backup_channel = ::Gapic::Config::Method.new get_backup_channel_config
      update_backup_channel_config = parent_rpcs.update_backup_channel if parent_rpcs.respond_to? :update_backup_channel
      @update_backup_channel = ::Gapic::Config::Method.new update_backup_channel_config
      delete_backup_channel_config = parent_rpcs.delete_backup_channel if parent_rpcs.respond_to? :delete_backup_channel
      @delete_backup_channel = ::Gapic::Config::Method.new delete_backup_channel_config
      list_backup_plan_bindings_config = parent_rpcs.list_backup_plan_bindings if parent_rpcs.respond_to? :list_backup_plan_bindings
      @list_backup_plan_bindings = ::Gapic::Config::Method.new list_backup_plan_bindings_config
      get_backup_plan_binding_config = parent_rpcs.get_backup_plan_binding if parent_rpcs.respond_to? :get_backup_plan_binding
      @get_backup_plan_binding = ::Gapic::Config::Method.new get_backup_plan_binding_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups
      @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config
      get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup
      @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config
      create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan
      @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config
      list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans
      @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config
      get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan
      @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config
      update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan
      @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config
      delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan
      @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config
      create_restore_channel_config = parent_rpcs.create_restore_channel if parent_rpcs.respond_to? :create_restore_channel
      @create_restore_channel = ::Gapic::Config::Method.new create_restore_channel_config
      list_restore_channels_config = parent_rpcs.list_restore_channels if parent_rpcs.respond_to? :list_restore_channels
      @list_restore_channels = ::Gapic::Config::Method.new list_restore_channels_config
      get_restore_channel_config = parent_rpcs.get_restore_channel if parent_rpcs.respond_to? :get_restore_channel
      @get_restore_channel = ::Gapic::Config::Method.new get_restore_channel_config
      update_restore_channel_config = parent_rpcs.update_restore_channel if parent_rpcs.respond_to? :update_restore_channel
      @update_restore_channel = ::Gapic::Config::Method.new update_restore_channel_config
      delete_restore_channel_config = parent_rpcs.delete_restore_channel if parent_rpcs.respond_to? :delete_restore_channel
      @delete_restore_channel = ::Gapic::Config::Method.new delete_restore_channel_config
      list_restore_plan_bindings_config = parent_rpcs.list_restore_plan_bindings if parent_rpcs.respond_to? :list_restore_plan_bindings
      @list_restore_plan_bindings = ::Gapic::Config::Method.new list_restore_plan_bindings_config
      get_restore_plan_binding_config = parent_rpcs.get_restore_plan_binding if parent_rpcs.respond_to? :get_restore_plan_binding
      @get_restore_plan_binding = ::Gapic::Config::Method.new get_restore_plan_binding_config
      create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore
      @create_restore = ::Gapic::Config::Method.new create_restore_config
      list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores
      @list_restores = ::Gapic::Config::Method.new list_restores_config
      get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore
      @get_restore = ::Gapic::Config::Method.new get_restore_config
      update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore
      @update_restore = ::Gapic::Config::Method.new update_restore_config
      delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore
      @delete_restore = ::Gapic::Config::Method.new delete_restore_config
      list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores
      @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
      get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
      @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
      get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
      @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#rpcsRpcs

Configurations for individual RPCs

Returns:



4156
4157
4158
4159
4160
4161
4162
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 4156

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