Class: Google::Apis::SecuritypostureV1::PolicyDetails
- Inherits:
-
Object
- Object
- Google::Apis::SecuritypostureV1::PolicyDetails
- 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
Details of a policy that was violated.
Instance Attribute Summary collapse
-
#compliance_standards ⇒ Array<String>
The compliance standards that the policy maps to.
-
#constraint ⇒ String
Information about the constraint that was violated.
-
#constraint_type ⇒ String
The type of constraint that was violated.
-
#description ⇒ String
A description of the policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyDetails
constructor
A new instance of PolicyDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyDetails
Returns a new instance of PolicyDetails.
1097 1098 1099 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1097 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compliance_standards ⇒ Array<String>
The compliance standards that the policy maps to. For example, CIS-2.0 1.15.
Corresponds to the JSON property complianceStandards
1078 1079 1080 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1078 def compliance_standards @compliance_standards end |
#constraint ⇒ String
Information about the constraint that was violated. The format of this
information can change at any time without prior notice. Your application must
not depend on this information in any way.
Corresponds to the JSON property constraint
1085 1086 1087 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1085 def constraint @constraint end |
#constraint_type ⇒ String
The type of constraint that was violated.
Corresponds to the JSON property constraintType
1090 1091 1092 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1090 def constraint_type @constraint_type end |
#description ⇒ String
A description of the policy.
Corresponds to the JSON property description
1095 1096 1097 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1095 def description @description end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1102 1103 1104 1105 1106 1107 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1102 def update!(**args) @compliance_standards = args[:compliance_standards] if args.key?(:compliance_standards) @constraint = args[:constraint] if args.key?(:constraint) @constraint_type = args[:constraint_type] if args.key?(:constraint_type) @description = args[:description] if args.key?(:description) end |