Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest

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

Overview

Updates basic properties of a Label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest

Returns a new instance of GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest.



858
859
860
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 858

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

Instance Attribute Details

#propertiesGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelProperties

Basic properties of the label. Corresponds to the JSON property properties



849
850
851
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 849

def properties
  @properties
end

#update_maskString

The fields that should be updated. At least one field must be specified. The root label_properties is implied and should not be specified. A single * can be used as short-hand for updating every field. Corresponds to the JSON property updateMask

Returns:

  • (String)


856
857
858
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 856

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



863
864
865
866
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 863

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