Class: Google::Apis::ArtifactregistryV1::VulnerabilityScanningConfig
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::VulnerabilityScanningConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb
Overview
Config on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state.
Instance Attribute Summary collapse
-
#enablement_config ⇒ String
Optional.
-
#enablement_state ⇒ String
Output only.
-
#enablement_state_reason ⇒ String
Output only.
-
#last_enable_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VulnerabilityScanningConfig
constructor
A new instance of VulnerabilityScanningConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VulnerabilityScanningConfig
Returns a new instance of VulnerabilityScanningConfig.
3360 3361 3362 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3360 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enablement_config ⇒ String
Optional. Config for whether this repository has vulnerability scanning
disabled.
Corresponds to the JSON property enablementConfig
3342 3343 3344 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3342 def enablement_config @enablement_config end |
#enablement_state ⇒ String
Output only. State of feature enablement, combining repository enablement
config and API enablement state.
Corresponds to the JSON property enablementState
3348 3349 3350 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3348 def enablement_state @enablement_state end |
#enablement_state_reason ⇒ String
Output only. Reason for the repository state.
Corresponds to the JSON property enablementStateReason
3353 3354 3355 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3353 def enablement_state_reason @enablement_state_reason end |
#last_enable_time ⇒ String
Output only. The last time this repository config was enabled.
Corresponds to the JSON property lastEnableTime
3358 3359 3360 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3358 def last_enable_time @last_enable_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3365 3366 3367 3368 3369 3370 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3365 def update!(**args) @enablement_config = args[:enablement_config] if args.key?(:enablement_config) @enablement_state = args[:enablement_state] if args.key?(:enablement_state) @enablement_state_reason = args[:enablement_state_reason] if args.key?(:enablement_state_reason) @last_enable_time = args[:last_enable_time] if args.key?(:last_enable_time) end |