Class: Google::Apis::ContainerV1beta1::SecurityPostureConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/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.



8794
8795
8796
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8794

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)


8787
8788
8789
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8787

def mode
  @mode
end

#vulnerability_modeString

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

Returns:

  • (String)


8792
8793
8794
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8792

def vulnerability_mode
  @vulnerability_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8799
8800
8801
8802
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8799

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