Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldDisplayHints

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

UI display hints for rendering a field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldDisplayHints

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldDisplayHints.



1567
1568
1569
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1567

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

Instance Attribute Details

#disabledBoolean Also known as: disabled?

Whether the field should be shown in the UI as disabled. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


1545
1546
1547
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1545

def disabled
  @disabled
end

#hidden_in_searchBoolean Also known as: hidden_in_search?

This field should be hidden in the search menu when searching for Drive items. Corresponds to the JSON property hiddenInSearch

Returns:

  • (Boolean)


1551
1552
1553
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1551

def hidden_in_search
  @hidden_in_search
end

#requiredBoolean Also known as: required?

Whether the field should be shown as required in the UI. Corresponds to the JSON property required

Returns:

  • (Boolean)


1557
1558
1559
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1557

def required
  @required
end

#shown_in_applyBoolean Also known as: shown_in_apply?

This field should be shown in the apply menu when applying values to a Drive item. Corresponds to the JSON property shownInApply

Returns:

  • (Boolean)


1564
1565
1566
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1564

def shown_in_apply
  @shown_in_apply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1572
1573
1574
1575
1576
1577
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1572

def update!(**args)
  @disabled = args[:disabled] if args.key?(:disabled)
  @hidden_in_search = args[:hidden_in_search] if args.key?(:hidden_in_search)
  @required = args[:required] if args.key?(:required)
  @shown_in_apply = args[:shown_in_apply] if args.key?(:shown_in_apply)
end