Class: Google::Apis::GkehubV1alpha::SecurityPostureConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb

Overview

SecurityPostureConfig defines the flags needed to enable/disable features for the Security Posture API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPostureConfig

Returns a new instance of SecurityPostureConfig.



5846
5847
5848
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5846

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#modeString

Sets which mode to use for Security Posture features. Corresponds to the JSON property mode

Returns:

  • (String)


5839
5840
5841
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5839

def mode
  @mode
end

#vulnerability_modeString

Sets which mode to use for vulnerability scanning. Corresponds to the JSON property vulnerabilityMode

Returns:

  • (String)


5844
5845
5846
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5844

def vulnerability_mode
  @vulnerability_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5851
5852
5853
5854
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5851

def update!(**args)
  @mode = args[:mode] if args.key?(:mode)
  @vulnerability_mode = args[:vulnerability_mode] if args.key?(:vulnerability_mode)
end