Class: Google::Apis::ArtifactregistryV1::MavenRepository

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 Maven remote repository.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MavenRepository

Returns a new instance of MavenRepository.



2096
2097
2098
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2096

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

Instance Attribute Details

#custom_repositoryGoogle::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository

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



2088
2089
2090
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2088

def custom_repository
  @custom_repository
end

#public_repositoryString

One of the publicly available Maven repositories supported by Artifact Registry. Corresponds to the JSON property publicRepository

Returns:

  • (String)


2094
2095
2096
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2094

def public_repository
  @public_repository
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2101
2102
2103
2104
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2101

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