Class: Google::Apis::SecuritypostureV1::PolicySet
- Inherits:
-
Object
- Object
- Google::Apis::SecuritypostureV1::PolicySet
- 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
A group of one or more Policy resources.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#policies ⇒ Array<Google::Apis::SecuritypostureV1::Policy>
Required.
-
#policy_set_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicySet
constructor
A new instance of PolicySet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicySet
Returns a new instance of PolicySet.
1130 1131 1132 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1130 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. A description of the policy set.
Corresponds to the JSON property description
1117 1118 1119 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1117 def description @description end |
#policies ⇒ Array<Google::Apis::SecuritypostureV1::Policy>
Required. The Policy resources in the policy set. Each policy must have a
policy_id that's unique within the policy set.
Corresponds to the JSON property policies
1123 1124 1125 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1123 def policies @policies end |
#policy_set_id ⇒ String
Required. An identifier for the policy set.
Corresponds to the JSON property policySetId
1128 1129 1130 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1128 def policy_set_id @policy_set_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1135 1136 1137 1138 1139 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1135 def update!(**args) @description = args[:description] if args.key?(:description) @policies = args[:policies] if args.key?(:policies) @policy_set_id = args[:policy_set_id] if args.key?(:policy_set_id) end |