Class: Google::Apis::ArtifactregistryV1::RemoteRepositoryConfig

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

Remote repository configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RemoteRepositoryConfig

Returns a new instance of RemoteRepositoryConfig.



1522
1523
1524
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1522

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

Instance Attribute Details

#descriptionString

The description of the remote source. Corresponds to the JSON property description

Returns:

  • (String)


1500
1501
1502
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1500

def description
  @description
end

#docker_repositoryGoogle::Apis::ArtifactregistryV1::DockerRepository

Configuration for a Docker remote repository. Corresponds to the JSON property dockerRepository



1505
1506
1507
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1505

def docker_repository
  @docker_repository
end

#maven_repositoryGoogle::Apis::ArtifactregistryV1::MavenRepository

Configuration for a Maven remote repository. Corresponds to the JSON property mavenRepository



1510
1511
1512
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1510

def maven_repository
  @maven_repository
end

#npm_repositoryGoogle::Apis::ArtifactregistryV1::NpmRepository

Configuration for a Npm remote repository. Corresponds to the JSON property npmRepository



1515
1516
1517
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1515

def npm_repository
  @npm_repository
end

#python_repositoryGoogle::Apis::ArtifactregistryV1::PythonRepository

Configuration for a Python remote repository. Corresponds to the JSON property pythonRepository



1520
1521
1522
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1520

def python_repository
  @python_repository
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1527
1528
1529
1530
1531
1532
1533
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1527

def update!(**args)
  @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)
end