Class: Google::Apis::ArtifactregistryV1::MavenRepositoryConfig

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

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MavenRepositoryConfig

Returns a new instance of MavenRepositoryConfig.



999
1000
1001
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 999

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

Instance Attribute Details

#allow_snapshot_overwritesBoolean Also known as: allow_snapshot_overwrites?

The repository with this flag will allow publishing the same snapshot versions. Corresponds to the JSON property allowSnapshotOverwrites

Returns:

  • (Boolean)


991
992
993
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 991

def allow_snapshot_overwrites
  @allow_snapshot_overwrites
end

#version_policyString

Version policy defines the versions that the registry will accept. Corresponds to the JSON property versionPolicy

Returns:

  • (String)


997
998
999
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 997

def version_policy
  @version_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1004
1005
1006
1007
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1004

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