Class: Google::Apis::SecuritypostureV1::Policy
- Inherits:
-
Object
- Object
- Google::Apis::SecuritypostureV1::Policy
- 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
The details of a policy, including the constraints that it includes.
Instance Attribute Summary collapse
-
#compliance_standards ⇒ Array<Google::Apis::SecuritypostureV1::ComplianceStandard>
Optional.
-
#constraint ⇒ Google::Apis::SecuritypostureV1::Constraint
Metadata for a constraint in a Policy.
-
#description ⇒ String
Optional.
-
#policy_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Policy
constructor
A new instance of Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Policy
Returns a new instance of Policy.
1059 1060 1061 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1059 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compliance_standards ⇒ Array<Google::Apis::SecuritypostureV1::ComplianceStandard>
Optional. The compliance standards that the policy helps enforce.
Corresponds to the JSON property complianceStandards
1041 1042 1043 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1041 def compliance_standards @compliance_standards end |
#constraint ⇒ Google::Apis::SecuritypostureV1::Constraint
Metadata for a constraint in a Policy.
Corresponds to the JSON property constraint
1046 1047 1048 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1046 def constraint @constraint end |
#description ⇒ String
Optional. A description of the policy.
Corresponds to the JSON property description
1051 1052 1053 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1051 def description @description end |
#policy_id ⇒ String
Required. A user-specified identifier for the policy. In a PolicySet, each
policy must have a unique identifier.
Corresponds to the JSON property policyId
1057 1058 1059 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1057 def policy_id @policy_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1064 1065 1066 1067 1068 1069 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1064 def update!(**args) @compliance_standards = args[:compliance_standards] if args.key?(:compliance_standards) @constraint = args[:constraint] if args.key?(:constraint) @description = args[:description] if args.key?(:description) @policy_id = args[:policy_id] if args.key?(:policy_id) end |