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 \ RepositoryMethods
__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 |
setEnablementConfig
Optional. Config for whether this repository has vulnerability scanning disabled.
Parameter | |
---|---|
Name | Description |
var |
int
|
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 |
setEnablementState
Output only. State of feature enablement, combining repository enablement config and API enablement state.
Parameter | |
---|---|
Name | Description |
var |
int
|
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 |