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.



852
853
854
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 852

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

Instance Attribute Details

#propertiesGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelProperties

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



843
844
845
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 843

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)


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

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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