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 VulnerabilityScanningConfig.

Config on whether to perform vulnerability scanning for resources in this
repository, as well as output fields describing current state.

Generated from protobuf message `google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig`

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1 \\ Repository

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enablement_config` | `int` Optional. Config for whether this repository has vulnerability scanning disabled. |
| `↳ last_enable_time` | `Google\Protobuf\Timestamp` Output only. The last time this repository config was enabled. |
| `↳ enablement_state` | `int` Output only. State of feature enablement, combining repository enablement config and API enablement state. |
| `↳ enablement_state_reason` | `string` Output only. Reason for the repository state. |

### getEnablementConfig

Optional. Config for whether this repository has vulnerability scanning
disabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [EnablementConfig](https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository.VulnerabilityScanningConfig.EnablementConfig). |

### setEnablementConfig

Optional. Config for whether this repository has vulnerability scanning
disabled.

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

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

### getLastEnableTime

Output only. The last time this repository config was enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasLastEnableTime

### clearLastEnableTime

### setLastEnableTime

Output only. The last time this repository config was enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getEnablementState

Output only. State of feature enablement, combining repository enablement
config and API enablement state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [EnablementState](https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository.VulnerabilityScanningConfig.EnablementState). |

### setEnablementState

Output only. State of feature enablement, combining repository enablement
config and API enablement state.

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

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

### getEnablementStateReason

Output only. Reason for the repository state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEnablementStateReason

Output only. Reason for the repository state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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