Class: Google::Apis::DriveV2::File
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::File
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb
Overview
The metadata for a file.
Defined Under Namespace
Classes: Capabilities, ImageMediaMetadata, IndexableText, Labels, Thumbnail, VideoMediaMetadata
Instance Attribute Summary collapse
-
#alternate_link ⇒ String
A link for opening the file in a relevant Google editor or viewer.
-
#app_data_contents ⇒ Boolean
(also: #app_data_contents?)
Whether this file is in the Application Data folder.
-
#can_comment ⇒ Boolean
(also: #can_comment?)
Deprecated: use capabilities/canComment.
-
#can_read_revisions ⇒ Boolean
(also: #can_read_revisions?)
Deprecated: use capabilities/canReadRevisions.
-
#capabilities ⇒ Google::Apis::DriveV2::File::Capabilities
Capabilities the current user has on this file.
-
#copyable ⇒ Boolean
(also: #copyable?)
Deprecated: use capabilities/canCopy.
-
#created_date ⇒ DateTime
Create time for this file (formatted RFC 3339 timestamp).
-
#default_open_with_link ⇒ String
A link to open this file with the user's default app for this file.
-
#description ⇒ String
A short description of the file.
-
#download_url ⇒ String
Corresponds to the JSON property
downloadUrl. -
#editable ⇒ Boolean
(also: #editable?)
Deprecated: use capabilities/canEdit.
-
#embed_link ⇒ String
A link for embedding the file.
-
#etag ⇒ String
ETag of the file.
-
#explicitly_trashed ⇒ Boolean
(also: #explicitly_trashed?)
Whether this file has been explicitly trashed, as opposed to recursively trashed.
-
#export_links ⇒ Hash<String,String>
Links for exporting Google Docs to specific formats.
-
#file_extension ⇒ String
The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed.
-
#file_size ⇒ Fixnum
The size of the file in bytes.
-
#folder_color_rgb ⇒ String
Folder color as an RGB hex string if the file is a folder.
-
#full_file_extension ⇒ String
The full file extension; extracted from the title.
-
#has_augmented_permissions ⇒ Boolean
(also: #has_augmented_permissions?)
Whether any users are granted file access directly on this file.
-
#has_thumbnail ⇒ Boolean
(also: #has_thumbnail?)
Whether this file has a thumbnail.
-
#head_revision_id ⇒ String
The ID of the file's head revision.
-
#icon_link ⇒ String
A link to the file's icon.
-
#id ⇒ String
The ID of the file.
-
#image_media_metadata ⇒ Google::Apis::DriveV2::File::ImageMediaMetadata
Metadata about image media.
-
#indexable_text ⇒ Google::Apis::DriveV2::File::IndexableText
Indexable text attributes for the file (can only be written) Corresponds to the JSON property
indexableText. -
#is_app_authorized ⇒ Boolean
(also: #is_app_authorized?)
Whether the file was created or opened by the requesting app.
-
#kind ⇒ String
The type of file.
-
#labels ⇒ Google::Apis::DriveV2::File::Labels
A group of labels for the file.
-
#last_modifying_user ⇒ Google::Apis::DriveV2::User
Information about a Drive user.
-
#last_modifying_user_name ⇒ String
Name of the last user to modify this file.
-
#last_viewed_by_me_date ⇒ DateTime
Last time this file was viewed by the user (formatted RFC 3339 timestamp).
-
#marked_viewed_by_me_date ⇒ DateTime
Deprecated.
-
#md5_checksum ⇒ String
An MD5 checksum for the content of this file.
-
#mime_type ⇒ String
The MIME type of the file.
-
#modified_by_me_date ⇒ DateTime
Last time this file was modified by the user (formatted RFC 3339 timestamp).
-
#modified_date ⇒ DateTime
Last time this file was modified by anyone (formatted RFC 3339 timestamp).
-
#open_with_links ⇒ Hash<String,String>
A map of the id of each of the user's apps to a link to open this file with that app.
-
#original_filename ⇒ String
The original filename of the uploaded content if available, or else the original value of the title field.
-
#owned_by_me ⇒ Boolean
(also: #owned_by_me?)
Whether the file is owned by the current user.
-
#owner_names ⇒ Array<String>
Name(s) of the owner(s) of this file.
-
#owners ⇒ Array<Google::Apis::DriveV2::User>
The owner(s) of this file.
-
#parents ⇒ Array<Google::Apis::DriveV2::ParentReference>
Collection of parent folders which contain this file.
-
#permissions ⇒ Array<Google::Apis::DriveV2::Permission>
The list of permissions for users with access to this file.
-
#properties ⇒ Array<Google::Apis::DriveV2::Property>
The list of properties.
-
#quota_bytes_used ⇒ Fixnum
The number of quota bytes used by this file.
-
#self_link ⇒ String
A link back to this file.
-
#shareable ⇒ Boolean
(also: #shareable?)
Deprecated: use capabilities/canShare.
-
#shared ⇒ Boolean
(also: #shared?)
Whether the file has been shared.
-
#shared_with_me_date ⇒ DateTime
Time at which this file was shared with the user (formatted RFC 3339 timestamp) .
-
#sharing_user ⇒ Google::Apis::DriveV2::User
Information about a Drive user.
-
#spaces ⇒ Array<String>
The list of spaces which contain the file.
-
#team_drive_id ⇒ String
ID of the Team Drive the file resides in.
-
#thumbnail ⇒ Google::Apis::DriveV2::File::Thumbnail
A thumbnail for the file.
-
#thumbnail_link ⇒ String
A short-lived link to the file's thumbnail.
-
#thumbnail_version ⇒ Fixnum
The thumbnail version for use in thumbnail cache invalidation.
-
#title ⇒ String
The title of this file.
-
#trashed_date ⇒ DateTime
The time that the item was trashed (formatted RFC 3339 timestamp).
-
#trashing_user ⇒ Google::Apis::DriveV2::User
Information about a Drive user.
-
#user_permission ⇒ Google::Apis::DriveV2::Permission
A permission for a file.
-
#version ⇒ Fixnum
A monotonically increasing version number for the file.
-
#video_media_metadata ⇒ Google::Apis::DriveV2::File::VideoMediaMetadata
Metadata about video media.
-
#web_content_link ⇒ String
A link for downloading the content of the file in a browser using cookie based authentication.
-
#web_view_link ⇒ String
A link only available on public folders for viewing their static web assets ( HTML, CSS, JS, etc) via Google Drive's Website Hosting.
-
#writers_can_share ⇒ Boolean
(also: #writers_can_share?)
Whether writers can share the document with other users.
Instance Method Summary collapse
-
#initialize(**args) ⇒ File
constructor
A new instance of File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ File
Returns a new instance of File
1661 1662 1663 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1661 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alternate_link ⇒ String
A link for opening the file in a relevant Google editor or viewer.
Corresponds to the JSON property alternateLink
1280 1281 1282 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1280 def alternate_link @alternate_link end |
#app_data_contents ⇒ Boolean Also known as: app_data_contents?
Whether this file is in the Application Data folder.
Corresponds to the JSON property appDataContents
1285 1286 1287 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1285 def app_data_contents @app_data_contents end |
#can_comment ⇒ Boolean Also known as: can_comment?
Deprecated: use capabilities/canComment.
Corresponds to the JSON property canComment
1291 1292 1293 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1291 def can_comment @can_comment end |
#can_read_revisions ⇒ Boolean Also known as: can_read_revisions?
Deprecated: use capabilities/canReadRevisions.
Corresponds to the JSON property canReadRevisions
1297 1298 1299 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1297 def can_read_revisions @can_read_revisions end |
#capabilities ⇒ Google::Apis::DriveV2::File::Capabilities
Capabilities the current user has on this file. Each capability corresponds to
a fine-grained action that a user may take.
Corresponds to the JSON property capabilities
1304 1305 1306 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1304 def capabilities @capabilities end |
#copyable ⇒ Boolean Also known as: copyable?
Deprecated: use capabilities/canCopy.
Corresponds to the JSON property copyable
1309 1310 1311 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1309 def copyable @copyable end |
#created_date ⇒ DateTime
Create time for this file (formatted RFC 3339 timestamp).
Corresponds to the JSON property createdDate
1315 1316 1317 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1315 def created_date @created_date end |
#default_open_with_link ⇒ String
A link to open this file with the user's default app for this file. Only
populated when the drive.apps.readonly scope is used.
Corresponds to the JSON property defaultOpenWithLink
1321 1322 1323 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1321 def default_open_with_link @default_open_with_link end |
#description ⇒ String
A short description of the file.
Corresponds to the JSON property description
1326 1327 1328 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1326 def description @description end |
#download_url ⇒ String
Corresponds to the JSON property downloadUrl
1331 1332 1333 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1331 def download_url @download_url end |
#editable ⇒ Boolean Also known as: editable?
Deprecated: use capabilities/canEdit.
Corresponds to the JSON property editable
1336 1337 1338 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1336 def editable @editable end |
#embed_link ⇒ String
A link for embedding the file.
Corresponds to the JSON property embedLink
1342 1343 1344 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1342 def @embed_link end |
#etag ⇒ String
ETag of the file.
Corresponds to the JSON property etag
1347 1348 1349 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1347 def etag @etag end |
#explicitly_trashed ⇒ Boolean Also known as: explicitly_trashed?
Whether this file has been explicitly trashed, as opposed to recursively
trashed.
Corresponds to the JSON property explicitlyTrashed
1353 1354 1355 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1353 def explicitly_trashed @explicitly_trashed end |
#export_links ⇒ Hash<String,String>
Links for exporting Google Docs to specific formats.
Corresponds to the JSON property exportLinks
1359 1360 1361 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1359 def export_links @export_links end |
#file_extension ⇒ String
The final component of fullFileExtension with trailing text that does not
appear to be part of the extension removed. This field is only populated for
files with content stored in Drive; it is not populated for Google Docs or
shortcut files.
Corresponds to the JSON property fileExtension
1367 1368 1369 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1367 def file_extension @file_extension end |
#file_size ⇒ Fixnum
The size of the file in bytes. This field is only populated for files with
content stored in Drive; it is not populated for Google Docs or shortcut files.
Corresponds to the JSON property fileSize
1373 1374 1375 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1373 def file_size @file_size end |
#folder_color_rgb ⇒ String
Folder color as an RGB hex string if the file is a folder. The list of
supported colors is available in the folderColorPalette field of the About
resource. If an unsupported color is specified, it will be changed to the
closest color in the palette. Not populated for Team Drive files.
Corresponds to the JSON property folderColorRgb
1381 1382 1383 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1381 def folder_color_rgb @folder_color_rgb end |
#full_file_extension ⇒ String
The full file extension; extracted from the title. May contain multiple
concatenated extensions, such as "tar.gz". Removing an extension from the
title does not clear this field; however, changing the extension on the title
does update this field. This field is only populated for files with content
stored in Drive; it is not populated for Google Docs or shortcut files.
Corresponds to the JSON property fullFileExtension
1390 1391 1392 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1390 def full_file_extension @full_file_extension end |
#has_augmented_permissions ⇒ Boolean Also known as: has_augmented_permissions?
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
1396 1397 1398 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1396 def @has_augmented_permissions end |
#has_thumbnail ⇒ Boolean Also known as: has_thumbnail?
Whether this file has a thumbnail.
Corresponds to the JSON property hasThumbnail
1402 1403 1404 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1402 def has_thumbnail @has_thumbnail end |
#head_revision_id ⇒ String
The ID of the file's head revision. This field is only populated for files
with content stored in Drive; it is not populated for Google Docs or shortcut
files.
Corresponds to the JSON property headRevisionId
1410 1411 1412 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1410 def head_revision_id @head_revision_id end |
#icon_link ⇒ String
A link to the file's icon.
Corresponds to the JSON property iconLink
1415 1416 1417 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1415 def icon_link @icon_link end |
#id ⇒ String
The ID of the file.
Corresponds to the JSON property id
1420 1421 1422 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1420 def id @id end |
#image_media_metadata ⇒ Google::Apis::DriveV2::File::ImageMediaMetadata
Metadata about image media. This will only be present for image types, and its
contents will depend on what can be parsed from the image content.
Corresponds to the JSON property imageMediaMetadata
1426 1427 1428 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1426 def @image_media_metadata end |
#indexable_text ⇒ Google::Apis::DriveV2::File::IndexableText
Indexable text attributes for the file (can only be written)
Corresponds to the JSON property indexableText
1431 1432 1433 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1431 def indexable_text @indexable_text end |
#is_app_authorized ⇒ Boolean Also known as:
Whether the file was created or opened by the requesting app.
Corresponds to the JSON property isAppAuthorized
1436 1437 1438 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1436 def @is_app_authorized end |
#kind ⇒ String
The type of file. This is always drive#file.
Corresponds to the JSON property kind
1442 1443 1444 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1442 def kind @kind end |
#labels ⇒ Google::Apis::DriveV2::File::Labels
A group of labels for the file.
Corresponds to the JSON property labels
1447 1448 1449 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1447 def labels @labels end |
#last_modifying_user ⇒ Google::Apis::DriveV2::User
Information about a Drive user.
Corresponds to the JSON property lastModifyingUser
1452 1453 1454 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1452 def @last_modifying_user end |
#last_modifying_user_name ⇒ String
Name of the last user to modify this file.
Corresponds to the JSON property lastModifyingUserName
1457 1458 1459 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1457 def @last_modifying_user_name end |
#last_viewed_by_me_date ⇒ DateTime
Last time this file was viewed by the user (formatted RFC 3339 timestamp).
Corresponds to the JSON property lastViewedByMeDate
1462 1463 1464 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1462 def last_viewed_by_me_date @last_viewed_by_me_date end |
#marked_viewed_by_me_date ⇒ DateTime
Deprecated.
Corresponds to the JSON property markedViewedByMeDate
1467 1468 1469 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1467 def marked_viewed_by_me_date @marked_viewed_by_me_date end |
#md5_checksum ⇒ String
An MD5 checksum for the content of this file. This field is only populated for
files with content stored in Drive; it is not populated for Google Docs or
shortcut files.
Corresponds to the JSON property md5Checksum
1474 1475 1476 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1474 def md5_checksum @md5_checksum end |
#mime_type ⇒ String
The MIME type of the file. This is only mutable on update when uploading new
content. This field can be left blank, and the mimetype will be determined
from the uploaded content's MIME type.
Corresponds to the JSON property mimeType
1481 1482 1483 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1481 def mime_type @mime_type end |
#modified_by_me_date ⇒ DateTime
Last time this file was modified by the user (formatted RFC 3339 timestamp).
Note that setting modifiedDate will also update the modifiedByMe date for the
user which set the date.
Corresponds to the JSON property modifiedByMeDate
1488 1489 1490 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1488 def modified_by_me_date @modified_by_me_date end |
#modified_date ⇒ DateTime
Last time this file was modified by anyone (formatted RFC 3339 timestamp).
This is only mutable on update when the setModifiedDate parameter is set.
Corresponds to the JSON property modifiedDate
1494 1495 1496 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1494 def modified_date @modified_date end |
#open_with_links ⇒ Hash<String,String>
A map of the id of each of the user's apps to a link to open this file with
that app. Only populated when the drive.apps.readonly scope is used.
Corresponds to the JSON property openWithLinks
1500 1501 1502 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1500 def open_with_links @open_with_links end |
#original_filename ⇒ String
The original filename of the uploaded content if available, or else the
original value of the title field. This is only available for files with
binary content in Drive.
Corresponds to the JSON property originalFilename
1507 1508 1509 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1507 def original_filename @original_filename end |
#owned_by_me ⇒ Boolean Also known as: owned_by_me?
Whether the file is owned by the current user. Not populated for Team Drive
files.
Corresponds to the JSON property ownedByMe
1513 1514 1515 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1513 def owned_by_me @owned_by_me end |
#owner_names ⇒ Array<String>
Name(s) of the owner(s) of this file. Not populated for Team Drive files.
Corresponds to the JSON property ownerNames
1519 1520 1521 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1519 def owner_names @owner_names end |
#owners ⇒ Array<Google::Apis::DriveV2::User>
The owner(s) of this file. Not populated for Team Drive files.
Corresponds to the JSON property owners
1524 1525 1526 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1524 def owners @owners end |
#parents ⇒ Array<Google::Apis::DriveV2::ParentReference>
Collection of parent folders which contain this file.
Setting this field will put the file in all of the provided folders. On insert,
if no folders are provided, the file will be placed in the default root
folder.
Corresponds to the JSON property parents
1532 1533 1534 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1532 def parents @parents end |
#permissions ⇒ Array<Google::Apis::DriveV2::Permission>
The list of permissions for users with access to this file. Not populated for
Team Drive files.
Corresponds to the JSON property permissions
1538 1539 1540 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1538 def @permissions end |
#properties ⇒ Array<Google::Apis::DriveV2::Property>
The list of properties.
Corresponds to the JSON property properties
1543 1544 1545 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1543 def properties @properties end |
#quota_bytes_used ⇒ Fixnum
The number of quota bytes used by this file.
Corresponds to the JSON property quotaBytesUsed
1548 1549 1550 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1548 def quota_bytes_used @quota_bytes_used end |
#self_link ⇒ String
A link back to this file.
Corresponds to the JSON property selfLink
1553 1554 1555 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1553 def self_link @self_link end |
#shareable ⇒ Boolean Also known as:
Deprecated: use capabilities/canShare.
Corresponds to the JSON property shareable
1558 1559 1560 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1558 def shareable @shareable end |
#shared ⇒ Boolean Also known as:
Whether the file has been shared. Not populated for Team Drive files.
Corresponds to the JSON property shared
1564 1565 1566 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1564 def shared @shared end |
#shared_with_me_date ⇒ DateTime
Time at which this file was shared with the user (formatted RFC 3339 timestamp)
.
Corresponds to the JSON property sharedWithMeDate
1571 1572 1573 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1571 def shared_with_me_date @shared_with_me_date end |
#sharing_user ⇒ Google::Apis::DriveV2::User
Information about a Drive user.
Corresponds to the JSON property sharingUser
1576 1577 1578 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1576 def sharing_user @sharing_user end |
#spaces ⇒ Array<String>
The list of spaces which contain the file. Supported values are 'drive', '
appDataFolder' and 'photos'.
Corresponds to the JSON property spaces
1582 1583 1584 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1582 def spaces @spaces end |
#team_drive_id ⇒ String
ID of the Team Drive the file resides in.
Corresponds to the JSON property teamDriveId
1587 1588 1589 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1587 def team_drive_id @team_drive_id end |
#thumbnail ⇒ Google::Apis::DriveV2::File::Thumbnail
A thumbnail for the file. This will only be used if Drive cannot generate a
standard thumbnail.
Corresponds to the JSON property thumbnail
1593 1594 1595 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1593 def thumbnail @thumbnail end |
#thumbnail_link ⇒ String
A short-lived link to the file's thumbnail. 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
1599 1600 1601 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1599 def thumbnail_link @thumbnail_link end |
#thumbnail_version ⇒ Fixnum
The thumbnail version for use in thumbnail cache invalidation.
Corresponds to the JSON property thumbnailVersion
1604 1605 1606 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1604 def thumbnail_version @thumbnail_version end |
#title ⇒ String
The title of this file. Note that for immutable items such as the top level
folders of Team Drives, My Drive root folder, and Application Data folder the
title is constant.
Corresponds to the JSON property title
1611 1612 1613 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1611 def title @title end |
#trashed_date ⇒ DateTime
The time that the item was trashed (formatted RFC 3339 timestamp). Only
populated for Team Drive files.
Corresponds to the JSON property trashedDate
1617 1618 1619 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1617 def trashed_date @trashed_date end |
#trashing_user ⇒ Google::Apis::DriveV2::User
Information about a Drive user.
Corresponds to the JSON property trashingUser
1622 1623 1624 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1622 def trashing_user @trashing_user end |
#user_permission ⇒ Google::Apis::DriveV2::Permission
A permission for a file.
Corresponds to the JSON property userPermission
1627 1628 1629 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1627 def @user_permission end |
#version ⇒ Fixnum
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
requesting user.
Corresponds to the JSON property version
1634 1635 1636 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1634 def version @version end |
#video_media_metadata ⇒ Google::Apis::DriveV2::File::VideoMediaMetadata
Metadata about video media. This will only be present for video types.
Corresponds to the JSON property videoMediaMetadata
1639 1640 1641 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1639 def @video_media_metadata end |
#web_content_link ⇒ String
A link for downloading the content of the file in a browser using cookie based
authentication. In cases where the content is shared publicly, the content can
be downloaded without any credentials.
Corresponds to the JSON property webContentLink
1646 1647 1648 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1646 def web_content_link @web_content_link end |
#web_view_link ⇒ String
A link only available on public folders for viewing their static web assets (
HTML, CSS, JS, etc) via Google Drive's Website Hosting.
Corresponds to the JSON property webViewLink
1652 1653 1654 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1652 def web_view_link @web_view_link end |
#writers_can_share ⇒ Boolean Also known as:
Whether writers can share the document with other users. Not populated for
Team Drive files.
Corresponds to the JSON property writersCanShare
1658 1659 1660 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1658 def writers_can_share @writers_can_share end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1666 def update!(**args) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) @app_data_contents = args[:app_data_contents] if args.key?(:app_data_contents) @can_comment = args[:can_comment] if args.key?(:can_comment) @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions) @capabilities = args[:capabilities] if args.key?(:capabilities) @copyable = args[:copyable] if args.key?(:copyable) @created_date = args[:created_date] if args.key?(:created_date) @default_open_with_link = args[:default_open_with_link] if args.key?(:default_open_with_link) @description = args[:description] if args.key?(:description) @download_url = args[:download_url] if args.key?(:download_url) @editable = args[:editable] if args.key?(:editable) @embed_link = args[:embed_link] if args.key?(:embed_link) @etag = args[:etag] if args.key?(:etag) @explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed) @export_links = args[:export_links] if args.key?(:export_links) @file_extension = args[:file_extension] if args.key?(:file_extension) @file_size = args[:file_size] if args.key?(:file_size) @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) @indexable_text = args[:indexable_text] if args.key?(:indexable_text) @is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user) @last_modifying_user_name = args[:last_modifying_user_name] if args.key?(:last_modifying_user_name) @last_viewed_by_me_date = args[:last_viewed_by_me_date] if args.key?(:last_viewed_by_me_date) @marked_viewed_by_me_date = args[:marked_viewed_by_me_date] if args.key?(:marked_viewed_by_me_date) @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum) @mime_type = args[:mime_type] if args.key?(:mime_type) @modified_by_me_date = args[:modified_by_me_date] if args.key?(:modified_by_me_date) @modified_date = args[:modified_date] if args.key?(:modified_date) @open_with_links = args[:open_with_links] if args.key?(:open_with_links) @original_filename = args[:original_filename] if args.key?(:original_filename) @owned_by_me = args[:owned_by_me] if args.key?(:owned_by_me) @owner_names = args[:owner_names] if args.key?(:owner_names) @owners = args[:owners] if args.key?(:owners) @parents = args[:parents] if args.key?(:parents) @permissions = args[:permissions] if args.key?(:permissions) @properties = args[:properties] if args.key?(:properties) @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used) @self_link = args[:self_link] if args.key?(:self_link) @shareable = args[:shareable] if args.key?(:shareable) @shared = args[:shared] if args.key?(:shared) @shared_with_me_date = args[:shared_with_me_date] if args.key?(:shared_with_me_date) @sharing_user = args[:sharing_user] if args.key?(:sharing_user) @spaces = args[:spaces] if args.key?(:spaces) @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id) @thumbnail = args[:thumbnail] if args.key?(:thumbnail) @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link) @thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version) @title = args[:title] if args.key?(:title) @trashed_date = args[:trashed_date] if args.key?(:trashed_date) @trashing_user = args[:trashing_user] if args.key?(:trashing_user) @user_permission = args[:user_permission] if args.key?(:user_permission) @version = args[:version] if args.key?(:version) @video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata) @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 |