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

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

Overview

A list of Team Drives.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TeamDriveList

Returns a new instance of TeamDriveList.



4058
4059
4060
# File 'lib/google/apis/drive_v2/classes.rb', line 4058

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



4046
4047
4048
# File 'lib/google/apis/drive_v2/classes.rb', line 4046

def items
  @items
end

#kindString

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

Returns:

  • (String)


4051
4052
4053
# File 'lib/google/apis/drive_v2/classes.rb', line 4051

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)


4056
4057
4058
# File 'lib/google/apis/drive_v2/classes.rb', line 4056

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4063
4064
4065
4066
4067
# File 'lib/google/apis/drive_v2/classes.rb', line 4063

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