Class: Google::Apis::DriveV3::Label

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb

Overview

Representation of label and label fields.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Label

Returns a new instance of Label.



3048
3049
3050
# File 'lib/google/apis/drive_v3/classes.rb', line 3048

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

Instance Attribute Details

#fieldsHash<String,Google::Apis::DriveV3::LabelField>

A map of the fields on the label, keyed by the field's ID. Corresponds to the JSON property fields

Returns:



3031
3032
3033
# File 'lib/google/apis/drive_v3/classes.rb', line 3031

def fields
  @fields
end

#idString

The ID of the label. Corresponds to the JSON property id

Returns:

  • (String)


3036
3037
3038
# File 'lib/google/apis/drive_v3/classes.rb', line 3036

def id
  @id
end

#kindString

This is always drive#label Corresponds to the JSON property kind

Returns:

  • (String)


3041
3042
3043
# File 'lib/google/apis/drive_v3/classes.rb', line 3041

def kind
  @kind
end

#revision_idString

The revision ID of the label. Corresponds to the JSON property revisionId

Returns:

  • (String)


3046
3047
3048
# File 'lib/google/apis/drive_v3/classes.rb', line 3046

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3053
3054
3055
3056
3057
3058
# File 'lib/google/apis/drive_v3/classes.rb', line 3053

def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
end