Class: Google::Apis::SecuritypostureV1::PostureTemplate

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

The details of a posture template.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoriesArray<String>

Output only. The categories that the posture template belongs to, as determined by the Security Posture API. Corresponds to the JSON property categories

Returns:

  • (Array<String>)


1409
1410
1411
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1409

def categories
  @categories
end

#descriptionString

Output only. A description of the posture template. Corresponds to the JSON property description

Returns:

  • (String)


1414
1415
1416
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1414

def description
  @description
end

#nameString

Output only. Identifier. The name of the posture template, in the format organizations/organization/locations/global/postureTemplates/ posture_template`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1421
1422
1423
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1421

def name
  @name
end

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

Output only. A string that identifies the revision of the posture template. Corresponds to the JSON property revisionId

Returns:

  • (String)


1431
1432
1433
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1431

def revision_id
  @revision_id
end

#stateString

Output only. The state of the posture template at the specified revision_id. Corresponds to the JSON property state

Returns:

  • (String)


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