Class: Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client::Configuration

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

Overview

Configuration class for the ArtifactRegistry API.

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

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

Examples:


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

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

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channel_args::Hash

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

Returns:

  • (::Hash)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config

      yield self if block_given?
    end
  end
end

#credentials::Object

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

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

Returns:

  • (::Object)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_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)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config

      yield self if block_given?
    end
  end
end

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

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

Returns:

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


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config

      yield self if block_given?
    end
  end
end

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

Additional gRPC headers to be sent with the call.

Returns:

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


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_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)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_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)


5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5005

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the ArtifactRegistry API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_docker_images`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_docker_images
    ##
    # RPC-specific configuration for `get_docker_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_docker_image
    ##
    # RPC-specific configuration for `list_maven_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_maven_artifacts
    ##
    # RPC-specific configuration for `get_maven_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_maven_artifact
    ##
    # RPC-specific configuration for `list_npm_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_npm_packages
    ##
    # RPC-specific configuration for `get_npm_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_npm_package
    ##
    # RPC-specific configuration for `list_python_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_python_packages
    ##
    # RPC-specific configuration for `get_python_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_python_package
    ##
    # RPC-specific configuration for `import_apt_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_apt_artifacts
    ##
    # RPC-specific configuration for `import_yum_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_yum_artifacts
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_packages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_packages
    ##
    # RPC-specific configuration for `get_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_package
    ##
    # RPC-specific configuration for `delete_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_package
    ##
    # RPC-specific configuration for `list_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_versions
    ##
    # RPC-specific configuration for `get_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_version
    ##
    # RPC-specific configuration for `delete_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_version
    ##
    # RPC-specific configuration for `batch_delete_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_delete_versions
    ##
    # RPC-specific configuration for `update_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_version
    ##
    # RPC-specific configuration for `list_files`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_files
    ##
    # RPC-specific configuration for `get_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_file
    ##
    # RPC-specific configuration for `delete_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_file
    ##
    # RPC-specific configuration for `update_file`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_file
    ##
    # RPC-specific configuration for `list_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_tags
    ##
    # RPC-specific configuration for `get_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_tag
    ##
    # RPC-specific configuration for `create_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_tag
    ##
    # RPC-specific configuration for `update_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_tag
    ##
    # RPC-specific configuration for `delete_tag`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_tag
    ##
    # RPC-specific configuration for `create_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_rule
    ##
    # RPC-specific configuration for `list_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_rules
    ##
    # RPC-specific configuration for `get_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_rule
    ##
    # RPC-specific configuration for `update_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_rule
    ##
    # RPC-specific configuration for `delete_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_rule
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `get_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_project_settings
    ##
    # RPC-specific configuration for `update_project_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_project_settings
    ##
    # RPC-specific configuration for `get_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_vpcsc_config
    ##
    # RPC-specific configuration for `update_vpcsc_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_vpcsc_config
    ##
    # RPC-specific configuration for `update_package`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_package
    ##
    # RPC-specific configuration for `list_attachments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_attachments
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `create_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_attachment
    ##
    # RPC-specific configuration for `delete_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_attachment

    # @private
    def initialize parent_rpcs = nil
      list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
      @list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
      get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
      @get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
      list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
      @list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
      get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
      @get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
      list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
      @list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
      get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
      @get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
      list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
      @list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
      get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
      @get_python_package = ::Gapic::Config::Method.new get_python_package_config
      import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
      @import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
      import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
      @import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
      @list_packages = ::Gapic::Config::Method.new list_packages_config
      get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
      @get_package = ::Gapic::Config::Method.new get_package_config
      delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
      @delete_package = ::Gapic::Config::Method.new delete_package_config
      list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
      @list_versions = ::Gapic::Config::Method.new list_versions_config
      get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
      @get_version = ::Gapic::Config::Method.new get_version_config
      delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
      @delete_version = ::Gapic::Config::Method.new delete_version_config
      batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
      @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
      update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
      @update_version = ::Gapic::Config::Method.new update_version_config
      list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
      @list_files = ::Gapic::Config::Method.new list_files_config
      get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
      @get_file = ::Gapic::Config::Method.new get_file_config
      delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
      @delete_file = ::Gapic::Config::Method.new delete_file_config
      update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
      @update_file = ::Gapic::Config::Method.new update_file_config
      list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
      @list_tags = ::Gapic::Config::Method.new list_tags_config
      get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
      @get_tag = ::Gapic::Config::Method.new get_tag_config
      create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
      @create_tag = ::Gapic::Config::Method.new create_tag_config
      update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
      @update_tag = ::Gapic::Config::Method.new update_tag_config
      delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
      @delete_tag = ::Gapic::Config::Method.new delete_tag_config
      create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
      @create_rule = ::Gapic::Config::Method.new create_rule_config
      list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
      @list_rules = ::Gapic::Config::Method.new list_rules_config
      get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
      @get_rule = ::Gapic::Config::Method.new get_rule_config
      update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
      @update_rule = ::Gapic::Config::Method.new update_rule_config
      delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
      @delete_rule = ::Gapic::Config::Method.new delete_rule_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
      @get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
      update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
      @update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
      get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
      @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
      update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
      @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
      update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
      @update_package = ::Gapic::Config::Method.new update_package_config
      list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
      @list_attachments = ::Gapic::Config::Method.new list_attachments_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
      @create_attachment = ::Gapic::Config::Method.new create_attachment_config
      delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
      @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config

      yield self if block_given?
    end
  end
end

Instance Method Details

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

Configuration for the channel pool

Returns:

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


5052
5053
5054
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5052

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

#rpcsRpcs

Configurations for individual RPCs

Returns:



5040
5041
5042
5043
5044
5045
5046
# File 'lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb', line 5040

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