Class: Google::Apis::ArtifactregistryV1::YumRepository

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb

Overview

Configuration for a Yum remote repository.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YumRepository

Returns a new instance of YumRepository.



3425
3426
3427
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3425

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_repositoryGoogle::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository

Customer-specified publicly available remote repository. Corresponds to the JSON property customRepository



3417
3418
3419
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3417

def custom_repository
  @custom_repository
end

#public_repositoryGoogle::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository

Publicly available Yum repositories constructed from a common repository base and a custom repository path. Corresponds to the JSON property publicRepository



3423
3424
3425
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3423

def public_repository
  @public_repository
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3430
3431
3432
3433
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3430

def update!(**args)
  @custom_repository = args[:custom_repository] if args.key?(:custom_repository)
  @public_repository = args[:public_repository] if args.key?(:public_repository)
end