Class: Google::Apis::DriveV2::File::Labels
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::File::Labels
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/google/apis/drive_v2/representations.rb
Overview
A group of labels for the file.
Instance Attribute Summary collapse
-
#hidden ⇒ Boolean
(also: #hidden?)
Deprecated.
-
#modified ⇒ Boolean
(also: #modified?)
Whether the file has been modified by this user.
-
#restricted ⇒ Boolean
(also: #restricted?)
Deprecated - use copyRequiresWriterPermission instead.
-
#starred ⇒ Boolean
(also: #starred?)
Whether this file is starred by the user.
-
#trashed ⇒ Boolean
(also: #trashed?)
Whether the file has been trashed, either explicitly or from a trashed parent folder.
-
#viewed ⇒ Boolean
(also: #viewed?)
Whether this file has been viewed by this user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Labels
constructor
A new instance of Labels.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Labels
Returns a new instance of Labels.
2815 2816 2817 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2815 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hidden ⇒ Boolean Also known as:
Deprecated.
Corresponds to the JSON property hidden
2778 2779 2780 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2778 def hidden @hidden end |
#modified ⇒ Boolean Also known as: modified?
Whether the file has been modified by this user.
Corresponds to the JSON property modified
2784 2785 2786 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2784 def modified @modified end |
#restricted ⇒ Boolean Also known as: restricted?
Deprecated - use copyRequiresWriterPermission instead.
Corresponds to the JSON property restricted
2790 2791 2792 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2790 def restricted @restricted end |
#starred ⇒ Boolean Also known as: starred?
Whether this file is starred by the user.
Corresponds to the JSON property starred
2796 2797 2798 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2796 def starred @starred end |
#trashed ⇒ Boolean Also known as: trashed?
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
2806 2807 2808 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2806 def trashed @trashed end |
#viewed ⇒ Boolean Also known as: viewed?
Whether this file has been viewed by this user.
Corresponds to the JSON property viewed
2812 2813 2814 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2812 def viewed @viewed end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2820 2821 2822 2823 2824 2825 2826 2827 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2820 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 |