Class: Google::Apis::ArtifactregistryV1::RemoteRepositoryConfig
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::RemoteRepositoryConfig
- 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
Remote repository configuration.
Instance Attribute Summary collapse
-
#apt_repository ⇒ Google::Apis::ArtifactregistryV1::AptRepository
Configuration for an Apt remote repository.
-
#description ⇒ String
The description of the remote source.
-
#docker_repository ⇒ Google::Apis::ArtifactregistryV1::DockerRepository
Configuration for a Docker remote repository.
-
#maven_repository ⇒ Google::Apis::ArtifactregistryV1::MavenRepository
Configuration for a Maven remote repository.
-
#npm_repository ⇒ Google::Apis::ArtifactregistryV1::NpmRepository
Configuration for a Npm remote repository.
-
#python_repository ⇒ Google::Apis::ArtifactregistryV1::PythonRepository
Configuration for a Python remote repository.
-
#upstream_credentials ⇒ Google::Apis::ArtifactregistryV1::UpstreamCredentials
The credentials to access the remote repository.
-
#yum_repository ⇒ Google::Apis::ArtifactregistryV1::YumRepository
Configuration for a Yum remote repository.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RemoteRepositoryConfig
constructor
A new instance of RemoteRepositoryConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RemoteRepositoryConfig
Returns a new instance of RemoteRepositoryConfig.
1960 1961 1962 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1960 def initialize(**args) update!(**args) end |
Instance Attribute Details
#apt_repository ⇒ Google::Apis::ArtifactregistryV1::AptRepository
Configuration for an Apt remote repository.
Corresponds to the JSON property aptRepository
1923 1924 1925 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1923 def apt_repository @apt_repository end |
#description ⇒ String
The description of the remote source.
Corresponds to the JSON property description
1928 1929 1930 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1928 def description @description end |
#docker_repository ⇒ Google::Apis::ArtifactregistryV1::DockerRepository
Configuration for a Docker remote repository.
Corresponds to the JSON property dockerRepository
1933 1934 1935 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1933 def docker_repository @docker_repository end |
#maven_repository ⇒ Google::Apis::ArtifactregistryV1::MavenRepository
Configuration for a Maven remote repository.
Corresponds to the JSON property mavenRepository
1938 1939 1940 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1938 def maven_repository @maven_repository end |
#npm_repository ⇒ Google::Apis::ArtifactregistryV1::NpmRepository
Configuration for a Npm remote repository.
Corresponds to the JSON property npmRepository
1943 1944 1945 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1943 def npm_repository @npm_repository end |
#python_repository ⇒ Google::Apis::ArtifactregistryV1::PythonRepository
Configuration for a Python remote repository.
Corresponds to the JSON property pythonRepository
1948 1949 1950 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1948 def python_repository @python_repository end |
#upstream_credentials ⇒ Google::Apis::ArtifactregistryV1::UpstreamCredentials
The credentials to access the remote repository.
Corresponds to the JSON property upstreamCredentials
1953 1954 1955 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1953 def upstream_credentials @upstream_credentials end |
#yum_repository ⇒ Google::Apis::ArtifactregistryV1::YumRepository
Configuration for a Yum remote repository.
Corresponds to the JSON property yumRepository
1958 1959 1960 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1958 def yum_repository @yum_repository end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1965 def update!(**args) @apt_repository = args[:apt_repository] if args.key?(:apt_repository) @description = args[:description] if args.key?(:description) @docker_repository = args[:docker_repository] if args.key?(:docker_repository) @maven_repository = args[:maven_repository] if args.key?(:maven_repository) @npm_repository = args[:npm_repository] if args.key?(:npm_repository) @python_repository = args[:python_repository] if args.key?(:python_repository) @upstream_credentials = args[:upstream_credentials] if args.key?(:upstream_credentials) @yum_repository = args[:yum_repository] if args.key?(:yum_repository) end |