class Google::Apis::DriveV2::File::Labels
A group of labels for the file.
Attributes
Whether viewers and commenters are prevented from downloading, printing, and copying this file. Corresponds to the JSON property `restricted` @return [Boolean]
Whether viewers and commenters are prevented from downloading, printing, and copying this file. 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 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]
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]
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 generated/google/apis/drive_v2/classes.rb, line 1831 def initialize(**args) update!(**args) end
Public Instance Methods
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