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]

restricted[RW]

Whether viewers and commenters are prevented from downloading, printing, and copying this file. Corresponds to the JSON property `restricted` @return [Boolean]

restricted?[RW]

Whether viewers and commenters are prevented from downloading, printing, and copying this file. 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 this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files. Corresponds to the JSON property `trashed` @return [Boolean]

trashed?[RW]

Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files. 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 generated/google/apis/drive_v2/classes.rb, line 1831
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/drive_v2/classes.rb, line 1836
def update!(**args)
  @hidden = args[:hidden] if args.key?(:hidden)
  @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