Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest

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 a Choice.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest

Returns a new instance of GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest.



604
605
606
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 604

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



585
586
587
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 585

def disabled_policy
  @disabled_policy
end

#field_idString

Required. The Selection Field in which a Choice will be disabled. Corresponds to the JSON property fieldId

Returns:

  • (String)


590
591
592
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 590

def field_id
  @field_id
end

#idString

Required. Choice to disable. Corresponds to the JSON property id

Returns:

  • (String)


595
596
597
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 595

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)


602
603
604
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 602

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



609
610
611
612
613
614
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 609

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