Class: Google::Apis::DriveV2::File::Labels

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Labels

Returns a new instance of Labels.



2972
2973
2974
# File 'lib/google/apis/drive_v2/classes.rb', line 2972

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#hiddenBoolean Also known as: hidden?

Output only. Deprecated. Corresponds to the JSON property hidden

Returns:

  • (Boolean)


2938
2939
2940
# File 'lib/google/apis/drive_v2/classes.rb', line 2938

def hidden
  @hidden
end

#modifiedBoolean Also known as: modified?

Output only. Whether the file has been modified by this user. Corresponds to the JSON property modified

Returns:

  • (Boolean)


2944
2945
2946
# File 'lib/google/apis/drive_v2/classes.rb', line 2944

def modified
  @modified
end

#restrictedBoolean Also known as: restricted?

Output only. Deprecated: Use copyRequiresWriterPermission instead. Corresponds to the JSON property restricted

Returns:

  • (Boolean)


2950
2951
2952
# File 'lib/google/apis/drive_v2/classes.rb', line 2950

def restricted
  @restricted
end

#starredBoolean Also known as: starred?

Whether this file is starred by the user. Corresponds to the JSON property starred

Returns:

  • (Boolean)


2956
2957
2958
# File 'lib/google/apis/drive_v2/classes.rb', line 2956

def starred
  @starred
end

#trashedBoolean Also known as: trashed?

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

Returns:

  • (Boolean)


2963
2964
2965
# File 'lib/google/apis/drive_v2/classes.rb', line 2963

def trashed
  @trashed
end

#viewedBoolean Also known as: viewed?

Whether this file has been viewed by this user. Corresponds to the JSON property viewed

Returns:

  • (Boolean)


2969
2970
2971
# File 'lib/google/apis/drive_v2/classes.rb', line 2969

def viewed
  @viewed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2977
2978
2979
2980
2981
2982
2983
2984
# File 'lib/google/apis/drive_v2/classes.rb', line 2977

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