Class: Google::Apis::CloudsupportV2::ListAttachmentsResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsupport_v2/classes.rb,
lib/google/apis/cloudsupport_v2/representations.rb,
lib/google/apis/cloudsupport_v2/representations.rb

Overview

The response message for the ListAttachments endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListAttachmentsResponse

Returns a new instance of ListAttachmentsResponse.



781
782
783
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 781

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

Instance Attribute Details

#attachmentsArray<Google::Apis::CloudsupportV2::Attachment>

The list of attachments associated with a case. Corresponds to the JSON property attachments



772
773
774
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 772

def attachments
  @attachments
end

#next_page_tokenString

A token to retrieve the next page of results. Set this in the page_token field of subsequent cases.attachments.list requests. If unspecified, there are no more results to retrieve. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


779
780
781
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 779

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



786
787
788
789
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 786

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