Class: Google::Apis::SecuritypostureV1::ListPostureTemplatesResponse

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

Response message for ListPostureTemplates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListPostureTemplatesResponse

Returns a new instance of ListPostureTemplatesResponse.



729
730
731
# File 'lib/google/apis/securityposture_v1/classes.rb', line 729

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#next_page_tokenString

A pagination token. To retrieve the next page of results, call the method again with this token. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


722
723
724
# File 'lib/google/apis/securityposture_v1/classes.rb', line 722

def next_page_token
  @next_page_token
end

#posture_templatesArray<Google::Apis::SecuritypostureV1::PostureTemplate>

The list of PostureTemplate resources. Corresponds to the JSON property postureTemplates



727
728
729
# File 'lib/google/apis/securityposture_v1/classes.rb', line 727

def posture_templates
  @posture_templates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



734
735
736
737
# File 'lib/google/apis/securityposture_v1/classes.rb', line 734

def update!(**args)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @posture_templates = args[:posture_templates] if args.key?(:posture_templates)
end