class Google::Apis::DriveV2::File::Labels
A group of labels for the file.
Attributes
Whether the file has been modified by this user. Corresponds to the JSON property `modified` @return [Boolean]
Whether the file has been modified by this user. Corresponds to the JSON property `modified` @return [Boolean]
Deprecated - use copyRequiresWriterPermission instead. Corresponds to the JSON property `restricted` @return [Boolean]
Deprecated - use copyRequiresWriterPermission instead. Corresponds to the JSON property `restricted` @return [Boolean]
Whether this file is starred by the user. Corresponds to the JSON property `starred` @return [Boolean]
Whether this file is starred by the user. Corresponds to the JSON property `starred` @return [Boolean]
Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file. Corresponds to the JSON property `trashed` @return [Boolean]
Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file. Corresponds to the JSON property `trashed` @return [Boolean]
Whether this file has been viewed by this user. Corresponds to the JSON property `viewed` @return [Boolean]
Whether this file has been viewed by this user. Corresponds to the JSON property `viewed` @return [Boolean]
Public Class Methods
# File lib/google/apis/drive_v2/classes.rb, line 2807 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/drive_v2/classes.rb, line 2812 def update!(**args) @hidden = args[:hidden] if args.key?(:hidden) @modified = args[:modified] if args.key?(:modified) @restricted = args[:restricted] if args.key?(:restricted) @starred = args[:starred] if args.key?(:starred) @trashed = args[:trashed] if args.key?(:trashed) @viewed = args[:viewed] if args.key?(:viewed) end