Class: Google::Apis::DriveV3::ChangeList

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

Overview

A list of changes for a user.

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) ⇒ ChangeList

Returns a new instance of ChangeList



263
264
265
# File 'generated/google/apis/drive_v3/classes.rb', line 263

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

Instance Attribute Details

#changesArray<Google::Apis::DriveV3::Change>

The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. Corresponds to the JSON property changes

Returns:



241
242
243
# File 'generated/google/apis/drive_v3/classes.rb', line 241

def changes
  @changes
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "drive# changeList". Corresponds to the JSON property kind

Returns:

  • (String)


247
248
249
# File 'generated/google/apis/drive_v3/classes.rb', line 247

def kind
  @kind
end

#new_start_page_tokenString

The starting page token for future changes. This will be present only if the end of the current changes list has been reached. Corresponds to the JSON property newStartPageToken

Returns:

  • (String)


253
254
255
# File 'generated/google/apis/drive_v3/classes.rb', line 253

def new_start_page_token
  @new_start_page_token
end

#next_page_tokenString

The page token for the next page of changes. This will be absent if the end of the changes list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


261
262
263
# File 'generated/google/apis/drive_v3/classes.rb', line 261

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



268
269
270
271
272
273
# File 'generated/google/apis/drive_v3/classes.rb', line 268

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