2015-12-14 22:27:57 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module DriveV3
|
|
|
|
|
|
|
|
class About
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
class DriveTheme
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
class StorageQuota
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
2017-03-31 19:53:27 +00:00
|
|
|
|
|
|
|
class TeamDriveTheme
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Change
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class ChangeList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Channel
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Comment
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class QuotedFileContent
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class CommentList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
2020-07-16 00:38:22 +00:00
|
|
|
class ContentRestriction
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
class Drive
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class BackgroundImageFile
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Capabilities
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Restrictions
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class DriveList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
class File
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Capabilities
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class ContentHints
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Thumbnail
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class ImageMediaMetadata
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Location
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
2020-04-13 16:49:10 +00:00
|
|
|
class ShortcutDetails
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
class VideoMediaMetadata
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class FileList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class GeneratedIds
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Permission
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
class PermissionDetail
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class TeamDrivePermissionDetail
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class PermissionList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Reply
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class ReplyList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Revision
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class RevisionList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class StartPageToken
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class TeamDrive
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class BackgroundImageFile
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Capabilities
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
2018-07-11 00:36:18 +00:00
|
|
|
|
|
|
|
class Restrictions
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
2017-03-10 21:11:09 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class TeamDriveList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
class User
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class About
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :app_installed, as: 'appInstalled'
|
2019-04-25 00:37:02 +00:00
|
|
|
property :can_create_drives, as: 'canCreateDrives'
|
2018-01-26 00:35:55 +00:00
|
|
|
property :can_create_team_drives, as: 'canCreateTeamDrives'
|
2019-04-25 00:37:02 +00:00
|
|
|
collection :drive_themes, as: 'driveThemes', class: Google::Apis::DriveV3::About::DriveTheme, decorator: Google::Apis::DriveV3::About::DriveTheme::Representation
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
hash :export_formats, as: 'exportFormats', :class => Array do
|
|
|
|
include Representable::JSON::Collection
|
|
|
|
items
|
|
|
|
end
|
|
|
|
|
|
|
|
collection :folder_color_palette, as: 'folderColorPalette'
|
|
|
|
hash :import_formats, as: 'importFormats', :class => Array do
|
|
|
|
include Representable::JSON::Collection
|
|
|
|
items
|
|
|
|
end
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
hash :max_import_sizes, as: 'maxImportSizes'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :max_upload_size, :numeric_string => true, as: 'maxUploadSize'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :storage_quota, as: 'storageQuota', class: Google::Apis::DriveV3::About::StorageQuota, decorator: Google::Apis::DriveV3::About::StorageQuota::Representation
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
collection :team_drive_themes, as: 'teamDriveThemes', class: Google::Apis::DriveV3::About::TeamDriveTheme, decorator: Google::Apis::DriveV3::About::TeamDriveTheme::Representation
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
property :user, as: 'user', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
class DriveTheme
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :background_image_link, as: 'backgroundImageLink'
|
|
|
|
property :color_rgb, as: 'colorRgb'
|
|
|
|
property :id, as: 'id'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
class StorageQuota
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :limit, :numeric_string => true, as: 'limit'
|
|
|
|
property :usage, :numeric_string => true, as: 'usage'
|
|
|
|
property :usage_in_drive, :numeric_string => true, as: 'usageInDrive'
|
|
|
|
property :usage_in_drive_trash, :numeric_string => true, as: 'usageInDriveTrash'
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
end
|
2017-03-31 19:53:27 +00:00
|
|
|
|
|
|
|
class TeamDriveTheme
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :background_image_link, as: 'backgroundImageLink'
|
|
|
|
property :color_rgb, as: 'colorRgb'
|
|
|
|
property :id, as: 'id'
|
|
|
|
end
|
|
|
|
end
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Change
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2019-04-25 00:37:02 +00:00
|
|
|
property :change_type, as: 'changeType'
|
|
|
|
property :drive, as: 'drive', class: Google::Apis::DriveV3::Drive, decorator: Google::Apis::DriveV3::Drive::Representation
|
|
|
|
|
|
|
|
property :drive_id, as: 'driveId'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :file, as: 'file', class: Google::Apis::DriveV3::File, decorator: Google::Apis::DriveV3::File::Representation
|
|
|
|
|
|
|
|
property :file_id, as: 'fileId'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :removed, as: 'removed'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :team_drive, as: 'teamDrive', class: Google::Apis::DriveV3::TeamDrive, decorator: Google::Apis::DriveV3::TeamDrive::Representation
|
|
|
|
|
|
|
|
property :team_drive_id, as: 'teamDriveId'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :time, as: 'time', type: DateTime
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
property :type, as: 'type'
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ChangeList
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :changes, as: 'changes', class: Google::Apis::DriveV3::Change, decorator: Google::Apis::DriveV3::Change::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :new_start_page_token, as: 'newStartPageToken'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Channel
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :address, as: 'address'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :expiration, :numeric_string => true, as: 'expiration'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
hash :params, as: 'params'
|
|
|
|
property :payload, as: 'payload'
|
|
|
|
property :resource_id, as: 'resourceId'
|
|
|
|
property :resource_uri, as: 'resourceUri'
|
|
|
|
property :token, as: 'token'
|
|
|
|
property :type, as: 'type'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Comment
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :anchor, as: 'anchor'
|
|
|
|
property :author, as: 'author', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
|
|
|
|
|
|
|
property :content, as: 'content'
|
|
|
|
property :created_time, as: 'createdTime', type: DateTime
|
|
|
|
|
|
|
|
property :deleted, as: 'deleted'
|
|
|
|
property :html_content, as: 'htmlContent'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :modified_time, as: 'modifiedTime', type: DateTime
|
|
|
|
|
|
|
|
property :quoted_file_content, as: 'quotedFileContent', class: Google::Apis::DriveV3::Comment::QuotedFileContent, decorator: Google::Apis::DriveV3::Comment::QuotedFileContent::Representation
|
|
|
|
|
|
|
|
collection :replies, as: 'replies', class: Google::Apis::DriveV3::Reply, decorator: Google::Apis::DriveV3::Reply::Representation
|
|
|
|
|
|
|
|
property :resolved, as: 'resolved'
|
|
|
|
end
|
|
|
|
|
|
|
|
class QuotedFileContent
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :mime_type, as: 'mimeType'
|
|
|
|
property :value, as: 'value'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class CommentList
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :comments, as: 'comments', class: Google::Apis::DriveV3::Comment, decorator: Google::Apis::DriveV3::Comment::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-07-16 00:38:22 +00:00
|
|
|
class ContentRestriction
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :read_only, as: 'readOnly'
|
|
|
|
property :reason, as: 'reason'
|
|
|
|
property :restricting_user, as: 'restrictingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
|
|
|
|
|
|
|
property :restriction_time, as: 'restrictionTime', type: DateTime
|
|
|
|
|
|
|
|
property :type, as: 'type'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
class Drive
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV3::Drive::BackgroundImageFile, decorator: Google::Apis::DriveV3::Drive::BackgroundImageFile::Representation
|
|
|
|
|
|
|
|
property :background_image_link, as: 'backgroundImageLink'
|
|
|
|
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::Drive::Capabilities, decorator: Google::Apis::DriveV3::Drive::Capabilities::Representation
|
|
|
|
|
|
|
|
property :color_rgb, as: 'colorRgb'
|
|
|
|
property :created_time, as: 'createdTime', type: DateTime
|
|
|
|
|
|
|
|
property :hidden, as: 'hidden'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV3::Drive::Restrictions, decorator: Google::Apis::DriveV3::Drive::Restrictions::Representation
|
|
|
|
|
|
|
|
property :theme_id, as: 'themeId'
|
|
|
|
end
|
|
|
|
|
|
|
|
class BackgroundImageFile
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :width, as: 'width'
|
|
|
|
property :x_coordinate, as: 'xCoordinate'
|
|
|
|
property :y_coordinate, as: 'yCoordinate'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Capabilities
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :can_add_children, as: 'canAddChildren'
|
|
|
|
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
|
|
|
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
|
|
|
property :can_change_drive_background, as: 'canChangeDriveBackground'
|
|
|
|
property :can_change_drive_members_only_restriction, as: 'canChangeDriveMembersOnlyRestriction'
|
|
|
|
property :can_comment, as: 'canComment'
|
|
|
|
property :can_copy, as: 'canCopy'
|
|
|
|
property :can_delete_children, as: 'canDeleteChildren'
|
|
|
|
property :can_delete_drive, as: 'canDeleteDrive'
|
|
|
|
property :can_download, as: 'canDownload'
|
|
|
|
property :can_edit, as: 'canEdit'
|
|
|
|
property :can_list_children, as: 'canListChildren'
|
|
|
|
property :can_manage_members, as: 'canManageMembers'
|
|
|
|
property :can_read_revisions, as: 'canReadRevisions'
|
|
|
|
property :can_rename, as: 'canRename'
|
|
|
|
property :can_rename_drive, as: 'canRenameDrive'
|
|
|
|
property :can_share, as: 'canShare'
|
|
|
|
property :can_trash_children, as: 'canTrashChildren'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Restrictions
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
|
|
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
|
|
|
property :domain_users_only, as: 'domainUsersOnly'
|
|
|
|
property :drive_members_only, as: 'driveMembersOnly'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class DriveList
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :drives, as: 'drives', class: Google::Apis::DriveV3::Drive, decorator: Google::Apis::DriveV3::Drive::Representation
|
|
|
|
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
class File
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
hash :app_properties, as: 'appProperties'
|
|
|
|
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::File::Capabilities, decorator: Google::Apis::DriveV3::File::Capabilities::Representation
|
|
|
|
|
|
|
|
property :content_hints, as: 'contentHints', class: Google::Apis::DriveV3::File::ContentHints, decorator: Google::Apis::DriveV3::File::ContentHints::Representation
|
|
|
|
|
2020-07-16 00:38:22 +00:00
|
|
|
collection :content_restrictions, as: 'contentRestrictions', class: Google::Apis::DriveV3::ContentRestriction, decorator: Google::Apis::DriveV3::ContentRestriction::Representation
|
|
|
|
|
2018-07-11 00:36:18 +00:00
|
|
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :created_time, as: 'createdTime', type: DateTime
|
|
|
|
|
|
|
|
property :description, as: 'description'
|
2019-04-25 00:37:02 +00:00
|
|
|
property :drive_id, as: 'driveId'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :explicitly_trashed, as: 'explicitlyTrashed'
|
2018-12-21 00:36:47 +00:00
|
|
|
hash :export_links, as: 'exportLinks'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :file_extension, as: 'fileExtension'
|
|
|
|
property :folder_color_rgb, as: 'folderColorRgb'
|
|
|
|
property :full_file_extension, as: 'fullFileExtension'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :has_augmented_permissions, as: 'hasAugmentedPermissions'
|
2017-01-13 23:04:35 +00:00
|
|
|
property :has_thumbnail, as: 'hasThumbnail'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :head_revision_id, as: 'headRevisionId'
|
|
|
|
property :icon_link, as: 'iconLink'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :image_media_metadata, as: 'imageMediaMetadata', class: Google::Apis::DriveV3::File::ImageMediaMetadata, decorator: Google::Apis::DriveV3::File::ImageMediaMetadata::Representation
|
|
|
|
|
2016-04-14 18:15:27 +00:00
|
|
|
property :is_app_authorized, as: 'isAppAuthorized'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
|
|
|
|
|
|
|
property :md5_checksum, as: 'md5Checksum'
|
|
|
|
property :mime_type, as: 'mimeType'
|
2016-11-08 23:43:14 +00:00
|
|
|
property :modified_by_me, as: 'modifiedByMe'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :modified_by_me_time, as: 'modifiedByMeTime', type: DateTime
|
|
|
|
|
|
|
|
property :modified_time, as: 'modifiedTime', type: DateTime
|
|
|
|
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :original_filename, as: 'originalFilename'
|
|
|
|
property :owned_by_me, as: 'ownedByMe'
|
|
|
|
collection :owners, as: 'owners', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
|
|
|
|
|
|
|
collection :parents, as: 'parents'
|
2017-08-31 00:35:15 +00:00
|
|
|
collection :permission_ids, as: 'permissionIds'
|
2015-12-14 22:27:57 +00:00
|
|
|
collection :permissions, as: 'permissions', class: Google::Apis::DriveV3::Permission, decorator: Google::Apis::DriveV3::Permission::Representation
|
|
|
|
|
|
|
|
hash :properties, as: 'properties'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :quota_bytes_used, :numeric_string => true, as: 'quotaBytesUsed'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :shared, as: 'shared'
|
|
|
|
property :shared_with_me_time, as: 'sharedWithMeTime', type: DateTime
|
|
|
|
|
|
|
|
property :sharing_user, as: 'sharingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
|
|
|
|
2020-04-13 16:49:10 +00:00
|
|
|
property :shortcut_details, as: 'shortcutDetails', class: Google::Apis::DriveV3::File::ShortcutDetails, decorator: Google::Apis::DriveV3::File::ShortcutDetails::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :size, :numeric_string => true, as: 'size'
|
2015-12-14 22:27:57 +00:00
|
|
|
collection :spaces, as: 'spaces'
|
|
|
|
property :starred, as: 'starred'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :team_drive_id, as: 'teamDriveId'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :thumbnail_link, as: 'thumbnailLink'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :thumbnail_version, :numeric_string => true, as: 'thumbnailVersion'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :trashed, as: 'trashed'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :trashed_time, as: 'trashedTime', type: DateTime
|
|
|
|
|
|
|
|
property :trashing_user, as: 'trashingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :version, :numeric_string => true, as: 'version'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :video_media_metadata, as: 'videoMediaMetadata', class: Google::Apis::DriveV3::File::VideoMediaMetadata, decorator: Google::Apis::DriveV3::File::VideoMediaMetadata::Representation
|
|
|
|
|
|
|
|
property :viewed_by_me, as: 'viewedByMe'
|
|
|
|
property :viewed_by_me_time, as: 'viewedByMeTime', type: DateTime
|
|
|
|
|
|
|
|
property :viewers_can_copy_content, as: 'viewersCanCopyContent'
|
|
|
|
property :web_content_link, as: 'webContentLink'
|
|
|
|
property :web_view_link, as: 'webViewLink'
|
|
|
|
property :writers_can_share, as: 'writersCanShare'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Capabilities
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_add_children, as: 'canAddChildren'
|
2020-07-03 00:37:50 +00:00
|
|
|
property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
|
2020-04-13 16:49:10 +00:00
|
|
|
property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
|
2018-07-11 00:36:18 +00:00
|
|
|
property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :can_change_viewers_can_copy_content, as: 'canChangeViewersCanCopyContent'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :can_comment, as: 'canComment'
|
|
|
|
property :can_copy, as: 'canCopy'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_delete, as: 'canDelete'
|
2018-08-24 00:36:27 +00:00
|
|
|
property :can_delete_children, as: 'canDeleteChildren'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_download, as: 'canDownload'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :can_edit, as: 'canEdit'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_list_children, as: 'canListChildren'
|
2019-09-10 21:25:47 +00:00
|
|
|
property :can_modify_content, as: 'canModifyContent'
|
2020-07-16 00:38:22 +00:00
|
|
|
property :can_modify_content_restriction, as: 'canModifyContentRestriction'
|
2019-04-25 00:37:02 +00:00
|
|
|
property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
|
2018-08-24 00:36:27 +00:00
|
|
|
property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
|
2019-04-25 00:37:02 +00:00
|
|
|
property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
|
2018-08-24 00:36:27 +00:00
|
|
|
property :can_move_children_within_team_drive, as: 'canMoveChildrenWithinTeamDrive'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_move_item_into_team_drive, as: 'canMoveItemIntoTeamDrive'
|
2019-04-25 00:37:02 +00:00
|
|
|
property :can_move_item_out_of_drive, as: 'canMoveItemOutOfDrive'
|
2018-08-24 00:36:27 +00:00
|
|
|
property :can_move_item_out_of_team_drive, as: 'canMoveItemOutOfTeamDrive'
|
2019-04-25 00:37:02 +00:00
|
|
|
property :can_move_item_within_drive, as: 'canMoveItemWithinDrive'
|
2018-08-24 00:36:27 +00:00
|
|
|
property :can_move_item_within_team_drive, as: 'canMoveItemWithinTeamDrive'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
|
2019-04-25 00:37:02 +00:00
|
|
|
property :can_read_drive, as: 'canReadDrive'
|
2016-02-25 23:16:53 +00:00
|
|
|
property :can_read_revisions, as: 'canReadRevisions'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_read_team_drive, as: 'canReadTeamDrive'
|
|
|
|
property :can_remove_children, as: 'canRemoveChildren'
|
2020-04-13 16:49:10 +00:00
|
|
|
property :can_remove_my_drive_parent, as: 'canRemoveMyDriveParent'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_rename, as: 'canRename'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :can_share, as: 'canShare'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_trash, as: 'canTrash'
|
2018-08-24 00:36:27 +00:00
|
|
|
property :can_trash_children, as: 'canTrashChildren'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_untrash, as: 'canUntrash'
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ContentHints
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :indexable_text, as: 'indexableText'
|
|
|
|
property :thumbnail, as: 'thumbnail', class: Google::Apis::DriveV3::File::ContentHints::Thumbnail, decorator: Google::Apis::DriveV3::File::ContentHints::Thumbnail::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
class Thumbnail
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :image, :base64 => true, as: 'image'
|
|
|
|
property :mime_type, as: 'mimeType'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ImageMediaMetadata
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :aperture, as: 'aperture'
|
|
|
|
property :camera_make, as: 'cameraMake'
|
|
|
|
property :camera_model, as: 'cameraModel'
|
|
|
|
property :color_space, as: 'colorSpace'
|
|
|
|
property :exposure_bias, as: 'exposureBias'
|
|
|
|
property :exposure_mode, as: 'exposureMode'
|
|
|
|
property :exposure_time, as: 'exposureTime'
|
|
|
|
property :flash_used, as: 'flashUsed'
|
|
|
|
property :focal_length, as: 'focalLength'
|
|
|
|
property :height, as: 'height'
|
|
|
|
property :iso_speed, as: 'isoSpeed'
|
|
|
|
property :lens, as: 'lens'
|
|
|
|
property :location, as: 'location', class: Google::Apis::DriveV3::File::ImageMediaMetadata::Location, decorator: Google::Apis::DriveV3::File::ImageMediaMetadata::Location::Representation
|
|
|
|
|
|
|
|
property :max_aperture_value, as: 'maxApertureValue'
|
|
|
|
property :metering_mode, as: 'meteringMode'
|
|
|
|
property :rotation, as: 'rotation'
|
|
|
|
property :sensor, as: 'sensor'
|
|
|
|
property :subject_distance, as: 'subjectDistance'
|
|
|
|
property :time, as: 'time'
|
|
|
|
property :white_balance, as: 'whiteBalance'
|
|
|
|
property :width, as: 'width'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Location
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :altitude, as: 'altitude'
|
|
|
|
property :latitude, as: 'latitude'
|
|
|
|
property :longitude, as: 'longitude'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-04-13 16:49:10 +00:00
|
|
|
class ShortcutDetails
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :target_id, as: 'targetId'
|
|
|
|
property :target_mime_type, as: 'targetMimeType'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
class VideoMediaMetadata
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :duration_millis, :numeric_string => true, as: 'durationMillis'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :height, as: 'height'
|
|
|
|
property :width, as: 'width'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class FileList
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :files, as: 'files', class: Google::Apis::DriveV3::File, decorator: Google::Apis::DriveV3::File::Representation
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
property :incomplete_search, as: 'incompleteSearch'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GeneratedIds
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :ids, as: 'ids'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :space, as: 'space'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Permission
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :allow_file_discovery, as: 'allowFileDiscovery'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :deleted, as: 'deleted'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :display_name, as: 'displayName'
|
|
|
|
property :domain, as: 'domain'
|
|
|
|
property :email_address, as: 'emailAddress'
|
2016-06-09 20:22:21 +00:00
|
|
|
property :expiration_time, as: 'expirationTime', type: DateTime
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
2019-04-25 00:37:02 +00:00
|
|
|
collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV3::Permission::PermissionDetail, decorator: Google::Apis::DriveV3::Permission::PermissionDetail::Representation
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
property :photo_link, as: 'photoLink'
|
|
|
|
property :role, as: 'role'
|
2017-03-10 21:11:09 +00:00
|
|
|
collection :team_drive_permission_details, as: 'teamDrivePermissionDetails', class: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail, decorator: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail::Representation
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
property :type, as: 'type'
|
2020-08-07 00:38:13 +00:00
|
|
|
property :view, as: 'view'
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
class PermissionDetail
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :inherited, as: 'inherited'
|
|
|
|
property :inherited_from, as: 'inheritedFrom'
|
|
|
|
property :permission_type, as: 'permissionType'
|
|
|
|
property :role, as: 'role'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class TeamDrivePermissionDetail
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :inherited, as: 'inherited'
|
|
|
|
property :inherited_from, as: 'inheritedFrom'
|
|
|
|
property :role, as: 'role'
|
|
|
|
property :team_drive_permission_type, as: 'teamDrivePermissionType'
|
|
|
|
end
|
|
|
|
end
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class PermissionList
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2015-12-14 22:27:57 +00:00
|
|
|
collection :permissions, as: 'permissions', class: Google::Apis::DriveV3::Permission, decorator: Google::Apis::DriveV3::Permission::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Reply
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :action, as: 'action'
|
|
|
|
property :author, as: 'author', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
|
|
|
|
|
|
|
property :content, as: 'content'
|
|
|
|
property :created_time, as: 'createdTime', type: DateTime
|
|
|
|
|
|
|
|
property :deleted, as: 'deleted'
|
|
|
|
property :html_content, as: 'htmlContent'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :modified_time, as: 'modifiedTime', type: DateTime
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ReplyList
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :replies, as: 'replies', class: Google::Apis::DriveV3::Reply, decorator: Google::Apis::DriveV3::Reply::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Revision
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2018-12-21 00:36:47 +00:00
|
|
|
hash :export_links, as: 'exportLinks'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :id, as: 'id'
|
|
|
|
property :keep_forever, as: 'keepForever'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
|
|
|
|
|
|
|
property :md5_checksum, as: 'md5Checksum'
|
|
|
|
property :mime_type, as: 'mimeType'
|
|
|
|
property :modified_time, as: 'modifiedTime', type: DateTime
|
|
|
|
|
|
|
|
property :original_filename, as: 'originalFilename'
|
|
|
|
property :publish_auto, as: 'publishAuto'
|
|
|
|
property :published, as: 'published'
|
2020-07-31 00:37:55 +00:00
|
|
|
property :published_link, as: 'publishedLink'
|
2015-12-14 22:27:57 +00:00
|
|
|
property :published_outside_domain, as: 'publishedOutsideDomain'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :size, :numeric_string => true, as: 'size'
|
2015-12-14 22:27:57 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class RevisionList
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
2016-10-12 22:52:51 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2015-12-14 22:27:57 +00:00
|
|
|
collection :revisions, as: 'revisions', class: Google::Apis::DriveV3::Revision, decorator: Google::Apis::DriveV3::Revision::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class StartPageToken
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :start_page_token, as: 'startPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class TeamDrive
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV3::TeamDrive::BackgroundImageFile, decorator: Google::Apis::DriveV3::TeamDrive::BackgroundImageFile::Representation
|
|
|
|
|
|
|
|
property :background_image_link, as: 'backgroundImageLink'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::TeamDrive::Capabilities, decorator: Google::Apis::DriveV3::TeamDrive::Capabilities::Representation
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
property :color_rgb, as: 'colorRgb'
|
2017-10-31 00:34:58 +00:00
|
|
|
property :created_time, as: 'createdTime', type: DateTime
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :name, as: 'name'
|
2018-07-11 00:36:18 +00:00
|
|
|
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV3::TeamDrive::Restrictions, decorator: Google::Apis::DriveV3::TeamDrive::Restrictions::Representation
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
property :theme_id, as: 'themeId'
|
|
|
|
end
|
|
|
|
|
|
|
|
class BackgroundImageFile
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :width, as: 'width'
|
|
|
|
property :x_coordinate, as: 'xCoordinate'
|
|
|
|
property :y_coordinate, as: 'yCoordinate'
|
|
|
|
end
|
2017-03-10 21:11:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Capabilities
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :can_add_children, as: 'canAddChildren'
|
2018-07-11 00:36:18 +00:00
|
|
|
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
|
|
|
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
2018-07-11 00:36:18 +00:00
|
|
|
property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_comment, as: 'canComment'
|
|
|
|
property :can_copy, as: 'canCopy'
|
2018-08-24 00:36:27 +00:00
|
|
|
property :can_delete_children, as: 'canDeleteChildren'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_delete_team_drive, as: 'canDeleteTeamDrive'
|
|
|
|
property :can_download, as: 'canDownload'
|
|
|
|
property :can_edit, as: 'canEdit'
|
|
|
|
property :can_list_children, as: 'canListChildren'
|
|
|
|
property :can_manage_members, as: 'canManageMembers'
|
|
|
|
property :can_read_revisions, as: 'canReadRevisions'
|
|
|
|
property :can_remove_children, as: 'canRemoveChildren'
|
|
|
|
property :can_rename, as: 'canRename'
|
|
|
|
property :can_rename_team_drive, as: 'canRenameTeamDrive'
|
|
|
|
property :can_share, as: 'canShare'
|
2018-08-24 00:36:27 +00:00
|
|
|
property :can_trash_children, as: 'canTrashChildren'
|
2017-03-10 21:11:09 +00:00
|
|
|
end
|
|
|
|
end
|
2018-07-11 00:36:18 +00:00
|
|
|
|
|
|
|
class Restrictions
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
|
|
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
|
|
|
property :domain_users_only, as: 'domainUsersOnly'
|
|
|
|
property :team_members_only, as: 'teamMembersOnly'
|
|
|
|
end
|
|
|
|
end
|
2017-03-10 21:11:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class TeamDriveList
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :team_drives, as: 'teamDrives', class: Google::Apis::DriveV3::TeamDrive, decorator: Google::Apis::DriveV3::TeamDrive::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-12-14 22:27:57 +00:00
|
|
|
class User
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :display_name, as: 'displayName'
|
|
|
|
property :email_address, as: 'emailAddress'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :me, as: 'me'
|
|
|
|
property :permission_id, as: 'permissionId'
|
|
|
|
property :photo_link, as: 'photoLink'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|