Class: Google::Apis::MirrorV1::ListTimelineResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/mirror_v1/classes.rb,
generated/google/apis/mirror_v1/representations.rb,
generated/google/apis/mirror_v1/representations.rb

Overview

A list of timeline items. This is the response from the server to GET requests on the timeline collection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListTimelineResponse

Returns a new instance of ListTimelineResponse



998
999
1000
# File 'generated/google/apis/mirror_v1/classes.rb', line 998

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

Instance Attribute Details

#itemsArray<Google::Apis::MirrorV1::TimelineItem>

Items in the timeline. Corresponds to the JSON property items



985
986
987
# File 'generated/google/apis/mirror_v1/classes.rb', line 985

def items
  @items
end

#kindString

The type of resource. This is always mirror#timeline. Corresponds to the JSON property kind

Returns:

  • (String)


990
991
992
# File 'generated/google/apis/mirror_v1/classes.rb', line 990

def kind
  @kind
end

#next_page_tokenString

The next page token. Provide this as the pageToken parameter in the request to retrieve the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


996
997
998
# File 'generated/google/apis/mirror_v1/classes.rb', line 996

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1003
1004
1005
1006
1007
# File 'generated/google/apis/mirror_v1/classes.rb', line 1003

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