Class: Google::Apis::CloudsupportV2beta::ListCommentsResponse

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

Overview

The response message for the ListComments endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListCommentsResponse

Returns a new instance of ListCommentsResponse.



958
959
960
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 958

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

Instance Attribute Details

#commentsArray<Google::Apis::CloudsupportV2beta::Comment>

List of the comments associated with the case. Corresponds to the JSON property comments



949
950
951
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 949

def comments
  @comments
end

#next_page_tokenString

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

Returns:

  • (String)


956
957
958
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 956

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



963
964
965
966
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 963

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