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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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'
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
property :created_time, as: 'createdTime', type: DateTime
|
|
|
|
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :explicitly_trashed, as: 'explicitlyTrashed'
|
|
|
|
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
|
|
|
|
|
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'
|
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'
|
|
|
|
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'
|
|
|
|
property :can_move_item_into_team_drive, as: 'canMoveItemIntoTeamDrive'
|
|
|
|
property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
|
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'
|
|
|
|
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'
|
|
|
|
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
|
|
|
|
|
|
|
|
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'
|
|
|
|
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'
|
|
|
|
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
|
|
|
|
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'
|
|
|
|
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-03-10 21:11:09 +00:00
|
|
|
property :id, as: 'id'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :name, as: 'name'
|
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'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :can_comment, as: 'canComment'
|
|
|
|
property :can_copy, as: 'canCopy'
|
|
|
|
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'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
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
|