Reference documentation and code samples for the Google Cloud Artifact Registry V1 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.v1.Repository.MavenRepositoryConfig
Namespace
Google \ Cloud \ ArtifactRegistry \ V1 \ RepositoryMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
bool |
setAllowSnapshotOverwrites
The repository with this flag will allow publishing the same snapshot versions.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getVersionPolicy
Version policy defines the versions that the registry will accept.
Returns | |
---|---|
Type | Description |
int |
setVersionPolicy
Version policy defines the versions that the registry will accept.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |