Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LabelProperties

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

Overview

Basic properties of the label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2LabelProperties

Returns a new instance of GoogleAppsDriveLabelsV2LabelProperties.



2670
2671
2672
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2670

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

Instance Attribute Details

#descriptionString

The description of the label. Corresponds to the JSON property description

Returns:

  • (String)


2663
2664
2665
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2663

def description
  @description
end

#titleString

Required. Title of the label. Corresponds to the JSON property title

Returns:

  • (String)


2668
2669
2670
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2668

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2675
2676
2677
2678
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2675

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @title = args[:title] if args.key?(:title)
end