Class: Google::Apis::DriveV2::TeamDriveList

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

Overview

A list of Team Drives.

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

Returns a new instance of TeamDriveList.



3912
3913
3914
# File 'generated/google/apis/drive_v2/classes.rb', line 3912

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

Instance Attribute Details

#itemsArray<Google::Apis::DriveV2::TeamDrive>

The list of Team Drives. Corresponds to the JSON property items



3900
3901
3902
# File 'generated/google/apis/drive_v2/classes.rb', line 3900

def items
  @items
end

#kindString

This is always drive#teamDriveList Corresponds to the JSON property kind

Returns:

  • (String)


3905
3906
3907
# File 'generated/google/apis/drive_v2/classes.rb', line 3905

def kind
  @kind
end

#next_page_tokenString

The page token for the next page of Team Drives. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


3910
3911
3912
# File 'generated/google/apis/drive_v2/classes.rb', line 3910

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3917
3918
3919
3920
3921
# File 'generated/google/apis/drive_v2/classes.rb', line 3917

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