Class: Google::Apis::SecuritypostureV1::ComplianceStandard

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

Overview

Information about a compliance standard that the policy helps enforce.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComplianceStandard

Returns a new instance of ComplianceStandard.



83
84
85
# File 'lib/google/apis/securityposture_v1/classes.rb', line 83

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

Instance Attribute Details

#controlString

Optional. The control in the compliance standard that the policy helps enforce. For example, AC-3. Corresponds to the JSON property control

Returns:

  • (String)


75
76
77
# File 'lib/google/apis/securityposture_v1/classes.rb', line 75

def control
  @control
end

#standardString

Optional. The compliance standard that the policy helps enforce. For example, NIST SP 800-53. Corresponds to the JSON property standard

Returns:

  • (String)


81
82
83
# File 'lib/google/apis/securityposture_v1/classes.rb', line 81

def standard
  @standard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



88
89
90
91
# File 'lib/google/apis/securityposture_v1/classes.rb', line 88

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