generated/google/apis/drive_v3/classes.rb in google-api-client-0.10.0 vs generated/google/apis/drive_v3/classes.rb in google-api-client-0.10.1

- old
+ new

@@ -127,11 +127,11 @@ @usage_in_drive_trash = args[:usage_in_drive_trash] if args.key?(:usage_in_drive_trash) end end end - # A change to a file. + # A change to a file or Team Drive. class Change include Google::Apis::Core::Hashable # The metadata for a file. # Corresponds to the JSON property `file` @@ -147,33 +147,51 @@ # change". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # Whether the file has been removed from the view of the changes list, for - # example by deletion or lost access. + # Whether the file or Team Drive has been removed from this list of changes, for + # example by deletion or loss of access. # Corresponds to the JSON property `removed` # @return [Boolean] attr_accessor :removed alias_method :removed?, :removed + # Representation of a Team Drive. + # Corresponds to the JSON property `teamDrive` + # @return [Google::Apis::DriveV3::TeamDrive] + attr_accessor :team_drive + + # The ID of the Team Drive associated with this change. + # Corresponds to the JSON property `teamDriveId` + # @return [String] + attr_accessor :team_drive_id + # The time of this change (RFC 3339 date-time). # Corresponds to the JSON property `time` # @return [DateTime] attr_accessor :time + # The type of the change. Possible values are file and teamDrive. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @file = args[:file] if args.key?(:file) @file_id = args[:file_id] if args.key?(:file_id) @kind = args[:kind] if args.key?(:kind) @removed = args[:removed] if args.key?(:removed) + @team_drive = args[:team_drive] if args.key?(:team_drive) + @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id) @time = args[:time] if args.key?(:time) + @type = args[:type] if args.key?(:type) end end # A list of changes for a user. class ChangeList @@ -462,11 +480,12 @@ # Entries with null values are cleared in update and copy requests. # Corresponds to the JSON property `appProperties` # @return [Hash<String,String>] attr_accessor :app_properties - # Capabilities the current user has on the file. + # Capabilities the current user has on the file. Each capability corresponds to + # a fine-grained action that a user may take. # Corresponds to the JSON property `capabilities` # @return [Google::Apis::DriveV3::File::Capabilities] attr_accessor :capabilities # Additional information about the content of the file. These fields are never @@ -513,10 +532,17 @@ # cleared if the new name does not contain a valid extension. # Corresponds to the JSON property `fullFileExtension` # @return [String] attr_accessor :full_file_extension + # Whether any users are granted file access directly on this file. This field is + # only populated for Team Drive files. + # Corresponds to the JSON property `hasAugmentedPermissions` + # @return [Boolean] + attr_accessor :has_augmented_permissions + alias_method :has_augmented_permissions?, :has_augmented_permissions + # Whether this file has a thumbnail. # Corresponds to the JSON property `hasThumbnail` # @return [Boolean] attr_accessor :has_thumbnail alias_method :has_thumbnail?, :has_thumbnail @@ -602,18 +628,18 @@ # content in Drive. # Corresponds to the JSON property `originalFilename` # @return [String] attr_accessor :original_filename - # Whether the user owns the file. + # Whether the user owns the file. Not populated for Team Drive files. # Corresponds to the JSON property `ownedByMe` # @return [Boolean] attr_accessor :owned_by_me alias_method :owned_by_me?, :owned_by_me # The owners of the file. Currently, only certain legacy files may have more - # than one owner. + # than one owner. Not populated for Team Drive files. # Corresponds to the JSON property `owners` # @return [Array<Google::Apis::DriveV3::User>] attr_accessor :owners # The IDs of the parent folders which contain the file. @@ -623,11 +649,11 @@ # Corresponds to the JSON property `parents` # @return [Array<String>] attr_accessor :parents # The full list of permissions for the file. This is only available if the - # requesting user can share the file. + # requesting user can share the file. Not populated for Team Drive files. # Corresponds to the JSON property `permissions` # @return [Array<Google::Apis::DriveV3::Permission>] attr_accessor :permissions # A collection of arbitrary key-value pairs which are visible to all apps. @@ -640,11 +666,11 @@ # revision as well as previous revisions with keepForever enabled. # Corresponds to the JSON property `quotaBytesUsed` # @return [String] attr_accessor :quota_bytes_used - # Whether the file has been shared. + # Whether the file has been shared. Not populated for Team Drive files. # Corresponds to the JSON property `shared` # @return [Boolean] attr_accessor :shared alias_method :shared?, :shared @@ -675,10 +701,15 @@ # Corresponds to the JSON property `starred` # @return [Boolean] attr_accessor :starred alias_method :starred?, :starred + # ID of the Team Drive the file resides in. + # Corresponds to the JSON property `teamDriveId` + # @return [String] + attr_accessor :team_drive_id + # A short-lived link to the file's thumbnail, if available. Typically lasts on # the order of hours. Only populated when the requesting app can access the file' # s content. # Corresponds to the JSON property `thumbnailLink` # @return [String] @@ -695,10 +726,21 @@ # Corresponds to the JSON property `trashed` # @return [Boolean] attr_accessor :trashed alias_method :trashed?, :trashed + # The time that the item was trashed (RFC 3339 date-time). Only populated for + # Team Drive files. + # Corresponds to the JSON property `trashedTime` + # @return [DateTime] + attr_accessor :trashed_time + + # Information about a Drive user. + # Corresponds to the JSON property `trashingUser` + # @return [Google::Apis::DriveV3::User] + attr_accessor :trashing_user + # A monotonically increasing version number for the file. This reflects every # change made to the file on the server, even those not visible to the user. # Corresponds to the JSON property `version` # @return [String] attr_accessor :version @@ -737,10 +779,11 @@ # Corresponds to the JSON property `webViewLink` # @return [String] attr_accessor :web_view_link # Whether users with only writer permission can modify the file's permissions. + # Not populated for Team Drive files. # Corresponds to the JSON property `writersCanShare` # @return [Boolean] attr_accessor :writers_can_share alias_method :writers_can_share?, :writers_can_share @@ -757,10 +800,11 @@ @description = args[:description] if args.key?(:description) @explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed) @file_extension = args[:file_extension] if args.key?(:file_extension) @folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb) @full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension) + @has_augmented_permissions = args[:has_augmented_permissions] if args.key?(:has_augmented_permissions) @has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail) @head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id) @icon_link = args[:icon_link] if args.key?(:icon_link) @id = args[:id] if args.key?(:id) @image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata) @@ -784,68 +828,160 @@ @shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time) @sharing_user = args[:sharing_user] if args.key?(:sharing_user) @size = args[:size] if args.key?(:size) @spaces = args[:spaces] if args.key?(:spaces) @starred = args[:starred] if args.key?(:starred) + @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id) @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link) @thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version) @trashed = args[:trashed] if args.key?(:trashed) + @trashed_time = args[:trashed_time] if args.key?(:trashed_time) + @trashing_user = args[:trashing_user] if args.key?(:trashing_user) @version = args[:version] if args.key?(:version) @video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata) @viewed_by_me = args[:viewed_by_me] if args.key?(:viewed_by_me) @viewed_by_me_time = args[:viewed_by_me_time] if args.key?(:viewed_by_me_time) @viewers_can_copy_content = args[:viewers_can_copy_content] if args.key?(:viewers_can_copy_content) @web_content_link = args[:web_content_link] if args.key?(:web_content_link) @web_view_link = args[:web_view_link] if args.key?(:web_view_link) @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share) end - # Capabilities the current user has on the file. + # Capabilities the current user has on the file. Each capability corresponds to + # a fine-grained action that a user may take. class Capabilities include Google::Apis::Core::Hashable + # Whether the user can add children to this folder. This is always false when + # the item is not a folder. + # Corresponds to the JSON property `canAddChildren` + # @return [Boolean] + attr_accessor :can_add_children + alias_method :can_add_children?, :can_add_children + # Whether the user can comment on the file. # Corresponds to the JSON property `canComment` # @return [Boolean] attr_accessor :can_comment alias_method :can_comment?, :can_comment - # Whether the user can copy the file. + # Whether the user can copy the file. For a Team Drive item, whether non-folder + # descendants of this item, or this item itself if it is not a folder, can be + # copied. # Corresponds to the JSON property `canCopy` # @return [Boolean] attr_accessor :can_copy alias_method :can_copy?, :can_copy + # Whether the file can be deleted by the user. + # Corresponds to the JSON property `canDelete` + # @return [Boolean] + attr_accessor :can_delete + alias_method :can_delete?, :can_delete + + # Whether the file can be downloaded by the user. + # Corresponds to the JSON property `canDownload` + # @return [Boolean] + attr_accessor :can_download + alias_method :can_download?, :can_download + # Whether the user can edit the file's content. # Corresponds to the JSON property `canEdit` # @return [Boolean] attr_accessor :can_edit alias_method :can_edit?, :can_edit - # Whether the current user has read access to the Revisions resource of the file. + # Whether the user can list the children of this folder. This is always false + # when the item is not a folder. + # Corresponds to the JSON property `canListChildren` + # @return [Boolean] + attr_accessor :can_list_children + alias_method :can_list_children?, :can_list_children + + # Whether the current user can move this item into a Team Drive. If the item is + # in a Team Drive, this field is equivalent to canMoveTeamDriveItem. + # Corresponds to the JSON property `canMoveItemIntoTeamDrive` + # @return [Boolean] + attr_accessor :can_move_item_into_team_drive + alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive + + # Whether the user can move this Team Drive item by changing its parent. Note + # that a request to change the parent for this item may still fail depending on + # the new parent that is being added. Only populated for Team Drive files. + # Corresponds to the JSON property `canMoveTeamDriveItem` + # @return [Boolean] + attr_accessor :can_move_team_drive_item + alias_method :can_move_team_drive_item?, :can_move_team_drive_item + + # Whether the user has read access to the Revisions resource of the file. For a + # Team Drive item, whether revisions of non-folder descendants of this item, or + # this item itself if it is not a folder, can be read. # Corresponds to the JSON property `canReadRevisions` # @return [Boolean] attr_accessor :can_read_revisions alias_method :can_read_revisions?, :can_read_revisions + # Whether the user has read access to the Team Drive to which this file belongs. + # Only populated for Team Drive files. + # Corresponds to the JSON property `canReadTeamDrive` + # @return [Boolean] + attr_accessor :can_read_team_drive + alias_method :can_read_team_drive?, :can_read_team_drive + + # Whether the user can remove children from this folder. This is always false + # when the item is not a folder. + # Corresponds to the JSON property `canRemoveChildren` + # @return [Boolean] + attr_accessor :can_remove_children + alias_method :can_remove_children?, :can_remove_children + + # Whether the file can be renamed by the user. + # Corresponds to the JSON property `canRename` + # @return [Boolean] + attr_accessor :can_rename + alias_method :can_rename?, :can_rename + # Whether the user can modify the file's permissions and sharing settings. # Corresponds to the JSON property `canShare` # @return [Boolean] attr_accessor :can_share alias_method :can_share?, :can_share + # Whether the file can be trashed by the user. + # Corresponds to the JSON property `canTrash` + # @return [Boolean] + attr_accessor :can_trash + alias_method :can_trash?, :can_trash + + # Whether the file can be restored from the trash by the current user. + # Corresponds to the JSON property `canUntrash` + # @return [Boolean] + attr_accessor :can_untrash + alias_method :can_untrash?, :can_untrash + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @can_add_children = args[:can_add_children] if args.key?(:can_add_children) @can_comment = args[:can_comment] if args.key?(:can_comment) @can_copy = args[:can_copy] if args.key?(:can_copy) + @can_delete = args[:can_delete] if args.key?(:can_delete) + @can_download = args[:can_download] if args.key?(:can_download) @can_edit = args[:can_edit] if args.key?(:can_edit) + @can_list_children = args[:can_list_children] if args.key?(:can_list_children) + @can_move_item_into_team_drive = args[:can_move_item_into_team_drive] if args.key?(:can_move_item_into_team_drive) + @can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item) @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions) + @can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive) + @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children) + @can_rename = args[:can_rename] if args.key?(:can_rename) @can_share = args[:can_share] if args.key?(:can_share) + @can_trash = args[:can_trash] if args.key?(:can_trash) + @can_untrash = args[:can_untrash] if args.key?(:can_untrash) end end # Additional information about the content of the file. These fields are never # populated in responses. @@ -1114,10 +1250,21 @@ # incomplete and an additional page of results should be fetched. # Corresponds to the JSON property `files` # @return [Array<Google::Apis::DriveV3::File>] attr_accessor :files + # Whether the search process was incomplete. If true, then some search results + # may be missing, since all documents were not searched. This may occur when + # searching multiple Team Drives with the "user,allTeamDrives" corpora, but all + # corpora could not be searched. When this happens, it is suggested that clients + # narrow their query by choosing a different corpus such as "user" or "teamDrive" + # . + # Corresponds to the JSON property `incompleteSearch` + # @return [Boolean] + attr_accessor :incomplete_search + alias_method :incomplete_search?, :incomplete_search + # Identifies what kind of resource this is. Value: the fixed string "drive# # fileList". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1135,10 +1282,11 @@ end # Update properties of this object def update!(**args) @files = args[:files] if args.key?(:files) + @incomplete_search = args[:incomplete_search] if args.key?(:incomplete_search) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1199,11 +1347,15 @@ # The email address of the user or group to which this permission refers. # Corresponds to the JSON property `emailAddress` # @return [String] attr_accessor :email_address - # The time at which this permission will expire (RFC 3339 date-time). + # The time at which this permission will expire (RFC 3339 date-time). Expiration + # times have the following restrictions: + # - They can only be set on user and group permissions + # - The time must be in the future + # - The time cannot be more than a year in the future # Corresponds to the JSON property `expirationTime` # @return [DateTime] attr_accessor :expiration_time # The ID of this permission. This is a unique identifier for the grantee, and is @@ -1221,19 +1373,28 @@ # A link to the user's profile photo, if available. # Corresponds to the JSON property `photoLink` # @return [String] attr_accessor :photo_link - # The role granted by this permission. Valid values are: + # The role granted by this permission. While new values may be supported in the + # future, the following are currently allowed: + # - organizer # - owner # - writer # - commenter # - reader # Corresponds to the JSON property `role` # @return [String] attr_accessor :role + # Details of whether the Permissions on this Team Drive item are inherited or + # directly on this item. This is an output-only field which is present only for + # Team Drive items. + # Corresponds to the JSON property `teamDrivePermissionDetails` + # @return [Array<Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail>] + attr_accessor :team_drive_permission_details + # The type of the grantee. Valid values are: # - user # - group # - domain # - anyone @@ -1254,12 +1415,62 @@ @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @photo_link = args[:photo_link] if args.key?(:photo_link) @role = args[:role] if args.key?(:role) + @team_drive_permission_details = args[:team_drive_permission_details] if args.key?(:team_drive_permission_details) @type = args[:type] if args.key?(:type) end + + # + class TeamDrivePermissionDetail + include Google::Apis::Core::Hashable + + # Whether this permission is inherited. This field is always populated. This is + # an output-only field. + # Corresponds to the JSON property `inherited` + # @return [Boolean] + attr_accessor :inherited + alias_method :inherited?, :inherited + + # The ID of the item from which this permission is inherited. This is an output- + # only field and is only populated for members of the Team Drive. + # Corresponds to the JSON property `inheritedFrom` + # @return [String] + attr_accessor :inherited_from + + # The primary role for this user. While new values may be added in the future, + # the following are currently possible: + # - organizer + # - writer + # - commenter + # - reader + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # The Team Drive permission type for this user. While new values may be added in + # future, the following are currently possible: + # - file + # - + # - member + # Corresponds to the JSON property `teamDrivePermissionType` + # @return [String] + attr_accessor :team_drive_permission_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inherited = args[:inherited] if args.key?(:inherited) + @inherited_from = args[:inherited_from] if args.key?(:inherited_from) + @role = args[:role] if args.key?(:role) + @team_drive_permission_type = args[:team_drive_permission_type] if args.key?(:team_drive_permission_type) + end + end end # A list of permissions for a file. class PermissionList include Google::Apis::Core::Hashable @@ -1268,11 +1479,20 @@ # permissionList". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # The list of permissions. + # The page token for the next page of permissions. This field will be absent if + # the end of the permissions 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` + # @return [String] + attr_accessor :next_page_token + + # The list of permissions. If nextPageToken is populated, then this list may be + # incomplete and an additional page of results should be fetched. # Corresponds to the JSON property `permissions` # @return [Array<Google::Apis::DriveV3::Permission>] attr_accessor :permissions def initialize(**args) @@ -1280,10 +1500,11 @@ end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @permissions = args[:permissions] if args.key?(:permissions) end end # A reply to a comment on a file. @@ -1551,9 +1772,190 @@ # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @start_page_token = args[:start_page_token] if args.key?(:start_page_token) + end + end + + # Representation of a Team Drive. + class TeamDrive + include Google::Apis::Core::Hashable + + # Capabilities the current user has on this Team Drive. + # Corresponds to the JSON property `capabilities` + # @return [Google::Apis::DriveV3::TeamDrive::Capabilities] + attr_accessor :capabilities + + # The ID of this Team Drive which is also the ID of the top level folder for + # this Team Drive. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string "drive# + # teamDrive". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of this Team Drive. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @capabilities = args[:capabilities] if args.key?(:capabilities) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + + # Capabilities the current user has on this Team Drive. + class Capabilities + include Google::Apis::Core::Hashable + + # Whether the current user can add children to folders in this Team Drive. + # Corresponds to the JSON property `canAddChildren` + # @return [Boolean] + attr_accessor :can_add_children + alias_method :can_add_children?, :can_add_children + + # Whether the current user can comment on files in this Team Drive. + # Corresponds to the JSON property `canComment` + # @return [Boolean] + attr_accessor :can_comment + alias_method :can_comment?, :can_comment + + # Whether files in this Team Drive can be copied by the current user. + # Corresponds to the JSON property `canCopy` + # @return [Boolean] + attr_accessor :can_copy + alias_method :can_copy?, :can_copy + + # Whether this Team Drive can be deleted by the current user. + # Corresponds to the JSON property `canDeleteTeamDrive` + # @return [Boolean] + attr_accessor :can_delete_team_drive + alias_method :can_delete_team_drive?, :can_delete_team_drive + + # Whether files in this Team Drive can be downloaded by the current user. + # Corresponds to the JSON property `canDownload` + # @return [Boolean] + attr_accessor :can_download + alias_method :can_download?, :can_download + + # Whether files in this Team Drive can be edited by the current user. + # Corresponds to the JSON property `canEdit` + # @return [Boolean] + attr_accessor :can_edit + alias_method :can_edit?, :can_edit + + # Whether the current user can list the children of folders in this Team Drive. + # Corresponds to the JSON property `canListChildren` + # @return [Boolean] + attr_accessor :can_list_children + alias_method :can_list_children?, :can_list_children + + # Whether the current user can add members to this Team Drive or remove them or + # change their role. + # Corresponds to the JSON property `canManageMembers` + # @return [Boolean] + attr_accessor :can_manage_members + alias_method :can_manage_members?, :can_manage_members + + # Whether the current user has read access to the Revisions resource of files in + # this Team Drive. + # Corresponds to the JSON property `canReadRevisions` + # @return [Boolean] + attr_accessor :can_read_revisions + alias_method :can_read_revisions?, :can_read_revisions + + # Whether the current user can remove children from folders in this Team Drive. + # Corresponds to the JSON property `canRemoveChildren` + # @return [Boolean] + attr_accessor :can_remove_children + alias_method :can_remove_children?, :can_remove_children + + # Whether files or folders in this Team Drive can be renamed by the current user. + # Corresponds to the JSON property `canRename` + # @return [Boolean] + attr_accessor :can_rename + alias_method :can_rename?, :can_rename + + # Whether this Team Drive can be renamed by the current user. + # Corresponds to the JSON property `canRenameTeamDrive` + # @return [Boolean] + attr_accessor :can_rename_team_drive + alias_method :can_rename_team_drive?, :can_rename_team_drive + + # Whether the current user can share files or folders in this Team Drive. + # Corresponds to the JSON property `canShare` + # @return [Boolean] + attr_accessor :can_share + alias_method :can_share?, :can_share + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @can_add_children = args[:can_add_children] if args.key?(:can_add_children) + @can_comment = args[:can_comment] if args.key?(:can_comment) + @can_copy = args[:can_copy] if args.key?(:can_copy) + @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive) + @can_download = args[:can_download] if args.key?(:can_download) + @can_edit = args[:can_edit] if args.key?(:can_edit) + @can_list_children = args[:can_list_children] if args.key?(:can_list_children) + @can_manage_members = args[:can_manage_members] if args.key?(:can_manage_members) + @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions) + @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children) + @can_rename = args[:can_rename] if args.key?(:can_rename) + @can_rename_team_drive = args[:can_rename_team_drive] if args.key?(:can_rename_team_drive) + @can_share = args[:can_share] if args.key?(:can_share) + end + end + end + + # A list of Team Drives. + class TeamDriveList + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "drive# + # teamDriveList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The page token for the next page of Team Drives. This will be absent if the + # end of the Team Drives 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` + # @return [String] + attr_accessor :next_page_token + + # The list of Team Drives. If nextPageToken is populated, then this list may be + # incomplete and an additional page of results should be fetched. + # Corresponds to the JSON property `teamDrives` + # @return [Array<Google::Apis::DriveV3::TeamDrive>] + attr_accessor :team_drives + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @team_drives = args[:team_drives] if args.key?(:team_drives) end end # Information about a Drive user. class User