1.8.4 (latest) 1.7.2 1.6.0 1.5.0 1.4.0 1.3.1 1.2.1 1.1.3 1.0.0 0.6.5 0.5.1 0.4.4 0.3.13 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 \\ Repository

## Methods

### __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` | Enum of type [VersionPolicy](https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository.MavenRepositoryConfig.VersionPolicy). |

### setVersionPolicy

Version policy defines the versions that the registry will accept.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [VersionPolicy](https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository.MavenRepositoryConfig.VersionPolicy). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |