Class: Google::Apis::ContainerV1::CompliancePostureConfig

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

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.



2082
2083
2084
# File 'lib/google/apis/container_v1/classes.rb', line 2082

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

Instance Attribute Details

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

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



2075
2076
2077
# File 'lib/google/apis/container_v1/classes.rb', line 2075

def compliance_standards
  @compliance_standards
end

#modeString

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

Returns:

  • (String)


2080
2081
2082
# File 'lib/google/apis/container_v1/classes.rb', line 2080

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2087
2088
2089
2090
# File 'lib/google/apis/container_v1/classes.rb', line 2087

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