Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest

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

Request to disable the Field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest

Returns a new instance of GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest.



565
566
567
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 565

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

Instance Attribute Details

#disabled_policyGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy

The policy that governs how to treat a disabled label, field, or selection choice in different contexts. Corresponds to the JSON property disabledPolicy



551
552
553
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 551

def disabled_policy
  @disabled_policy
end

#idString

Required. Key of the Field to disable. Corresponds to the JSON property id

Returns:

  • (String)


556
557
558
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 556

def id
  @id
end

#update_maskString

The fields that should be updated. At least one field must be specified. The root disabled_policy 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)


563
564
565
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 563

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



570
571
572
573
574
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 570

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