Class: Google::Apis::GkehubV1beta::SecurityPostureConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::SecurityPostureConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/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.
5691 5692 5693 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5691 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
5684 5685 5686 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5684 def mode @mode end |
#vulnerability_mode ⇒ String
Sets which mode to use for vulnerability scanning.
Corresponds to the JSON property vulnerabilityMode
5689 5690 5691 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5689 def vulnerability_mode @vulnerability_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5696 5697 5698 5699 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5696 def update!(**args) @mode = args[:mode] if args.key?(:mode) @vulnerability_mode = args[:vulnerability_mode] if args.key?(:vulnerability_mode) end |