Class: Google::Apis::ContainerV1::SecurityPostureConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::SecurityPostureConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb
Overview
SecurityPostureConfig defines the flags needed to enable/disable features for the Security Posture API.
Instance Attribute Summary collapse
-
#mode ⇒ String
Sets which mode to use for Security Posture features.
-
#vulnerability_mode ⇒ String
Sets which mode to use for vulnerability scanning.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecurityPostureConfig
constructor
A new instance of SecurityPostureConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecurityPostureConfig
Returns a new instance of SecurityPostureConfig.
6151 6152 6153 |
# File 'lib/google/apis/container_v1/classes.rb', line 6151 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mode ⇒ String
Sets which mode to use for Security Posture features.
Corresponds to the JSON property mode
6144 6145 6146 |
# File 'lib/google/apis/container_v1/classes.rb', line 6144 def mode @mode end |
#vulnerability_mode ⇒ String
Sets which mode to use for vulnerability scanning.
Corresponds to the JSON property vulnerabilityMode
6149 6150 6151 |
# File 'lib/google/apis/container_v1/classes.rb', line 6149 def vulnerability_mode @vulnerability_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6156 6157 6158 6159 |
# File 'lib/google/apis/container_v1/classes.rb', line 6156 def update!(**args) @mode = args[:mode] if args.key?(:mode) @vulnerability_mode = args[:vulnerability_mode] if args.key?(:vulnerability_mode) end |