class Google::Apis::DriveV2::File::Labels

A group of labels for the file.

Attributes

hidden[RW]

Deprecated. Corresponds to the JSON property `hidden` @return [Boolean]

hidden?[RW]

Deprecated. Corresponds to the JSON property `hidden` @return [Boolean]

modified[RW]

Whether the file has been modified by this user. Corresponds to the JSON property `modified` @return [Boolean]

modified?[RW]

Whether the file has been modified by this user. Corresponds to the JSON property `modified` @return [Boolean]

restricted[RW]

Deprecated - use copyRequiresWriterPermission instead. Corresponds to the JSON property `restricted` @return [Boolean]

restricted?[RW]

Deprecated - use copyRequiresWriterPermission instead. Corresponds to the JSON property `restricted` @return [Boolean]

starred[RW]

Whether this file is starred by the user. Corresponds to the JSON property `starred` @return [Boolean]

starred?[RW]

Whether this file is starred by the user. Corresponds to the JSON property `starred` @return [Boolean]

trashed[RW]

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]

trashed?[RW]

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]

viewed[RW]

Whether this file has been viewed by this user. Corresponds to the JSON property `viewed` @return [Boolean]

viewed?[RW]

Whether this file has been viewed by this user. Corresponds to the JSON property `viewed` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/drive_v2/classes.rb, line 2807
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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