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.
1098 1099 1100 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1098 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
1079 1080 1081 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1079 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
1086 1087 1088 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1086 def constraint @constraint end |
#constraint_type ⇒ String
The type of constraint that was violated.
Corresponds to the JSON property constraintType
1091 1092 1093 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1091 def constraint_type @constraint_type end |
#description ⇒ String
A description of the policy.
Corresponds to the JSON property description
1096 1097 1098 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1096 def description @description end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1103 1104 1105 1106 1107 1108 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1103 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 |