Class: Google::Apis::SecuritypostureV1::PostureTemplate
- Inherits:
-
Object
- Object
- Google::Apis::SecuritypostureV1::PostureTemplate
- 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 posture template.
Instance Attribute Summary collapse
-
#categories ⇒ Array<String>
Output only.
-
#description ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#policy_sets ⇒ Array<Google::Apis::SecuritypostureV1::PolicySet>
Output only.
-
#revision_id ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PostureTemplate
constructor
A new instance of PostureTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PostureTemplate
Returns a new instance of PostureTemplate.
1438 1439 1440 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1438 def initialize(**args) update!(**args) end |
Instance Attribute Details
#categories ⇒ Array<String>
Output only. The categories that the posture template belongs to, as
determined by the Security Posture API.
Corresponds to the JSON property categories
1409 1410 1411 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1409 def categories @categories end |
#description ⇒ String
Output only. A description of the posture template.
Corresponds to the JSON property description
1414 1415 1416 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1414 def description @description end |
#name ⇒ String
Output only. Identifier. The name of the posture template, in the format
organizations/organization/locations/global/postureTemplates/
posture_template`.
Corresponds to the JSON propertyname`
1421 1422 1423 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1421 def name @name end |
#policy_sets ⇒ Array<Google::Apis::SecuritypostureV1::PolicySet>
Output only. The PolicySet resources that the posture template includes.
Corresponds to the JSON property policySets
1426 1427 1428 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1426 def policy_sets @policy_sets end |
#revision_id ⇒ String
Output only. A string that identifies the revision of the posture template.
Corresponds to the JSON property revisionId
1431 1432 1433 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1431 def revision_id @revision_id end |
#state ⇒ String
Output only. The state of the posture template at the specified revision_id.
Corresponds to the JSON property state
1436 1437 1438 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1436 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1443 1444 1445 1446 1447 1448 1449 1450 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1443 def update!(**args) @categories = args[:categories] if args.key?(:categories) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @policy_sets = args[:policy_sets] if args.key?(:policy_sets) @revision_id = args[:revision_id] if args.key?(:revision_id) @state = args[:state] if args.key?(:state) end |