Class: Google::Apis::SecuritypostureV1::PolicySet

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

A group of one or more Policy resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionString

Optional. A description of the policy set. Corresponds to the JSON property description

Returns:

  • (String)


1117
1118
1119
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1117

def description
  @description
end

#policiesArray<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_idString

Required. An identifier for the policy set. Corresponds to the JSON property policySetId

Returns:

  • (String)


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