Class: Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1beta2/classes.rb,
lib/google/apis/artifactregistry_v1beta2/representations.rb,
lib/google/apis/artifactregistry_v1beta2/representations.rb
Overview
MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.
Instance Attribute Summary collapse
-
#allow_snapshot_overwrites ⇒ Boolean
(also: #allow_snapshot_overwrites?)
The repository with this flag will allow publishing the same snapshot versions.
-
#version_policy ⇒ String
Version policy defines the versions that the registry will accept.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MavenRepositoryConfig
constructor
A new instance of MavenRepositoryConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MavenRepositoryConfig
Returns a new instance of MavenRepositoryConfig.
782 783 784 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 782 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_snapshot_overwrites ⇒ Boolean Also known as: allow_snapshot_overwrites?
The repository with this flag will allow publishing the same snapshot versions.
Corresponds to the JSON property allowSnapshotOverwrites
774 775 776 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 774 def allow_snapshot_overwrites @allow_snapshot_overwrites end |
#version_policy ⇒ String
Version policy defines the versions that the registry will accept.
Corresponds to the JSON property versionPolicy
780 781 782 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 780 def version_policy @version_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
787 788 789 790 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 787 def update!(**args) @allow_snapshot_overwrites = args[:allow_snapshot_overwrites] if args.key?(:allow_snapshot_overwrites) @version_policy = args[:version_policy] if args.key?(:version_policy) end |