Class: Google::Apis::GkehubV1beta::CompliancePostureConfig

Inherits:
Object
  • Object
show all
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

CompliancePostureConfig defines the settings needed to enable/disable features for the Compliance Posture.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CompliancePostureConfig

Returns a new instance of CompliancePostureConfig.



906
907
908
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 906

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

Instance Attribute Details

#compliance_standardsArray<Google::Apis::GkehubV1beta::ComplianceStandard>

List of enabled compliance standards. Corresponds to the JSON property complianceStandards



899
900
901
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 899

def compliance_standards
  @compliance_standards
end

#modeString

Defines the enablement mode for Compliance Posture. Corresponds to the JSON property mode

Returns:

  • (String)


904
905
906
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 904

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



911
912
913
914
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 911

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