Google Cloud Artifact Registry V1beta2 Client - Class MavenRepositoryConfig (0.3.13)

Reference documentation and code samples for the Google Cloud Artifact Registry V1beta2 Client class MavenRepositoryConfig.

MavenRepositoryConfig is maven related repository details.

Provides additional configuration details for repositories of the maven format type.

Generated from protobuf message google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ allow_snapshot_overwrites bool

The repository with this flag will allow publishing the same snapshot versions.

↳ version_policy int

Version policy defines the versions that the registry will accept.

getAllowSnapshotOverwrites

The repository with this flag will allow publishing the same snapshot versions.

Returns
TypeDescription
bool

setAllowSnapshotOverwrites

The repository with this flag will allow publishing the same snapshot versions.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getVersionPolicy

Version policy defines the versions that the registry will accept.

Returns
TypeDescription
int

setVersionPolicy

Version policy defines the versions that the registry will accept.

Parameter
NameDescription
var int
Returns
TypeDescription
$this