Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities
- 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
The capabilities related to this field when editing the field.
Instance Attribute Summary collapse
-
#can_delete ⇒ Boolean
(also: #can_delete?)
Whether the user can delete this field.
-
#can_disable ⇒ Boolean
(also: #can_disable?)
Whether the user can disable this field.
-
#can_enable ⇒ Boolean
(also: #can_enable?)
Whether the user can enable this field.
-
#can_update ⇒ Boolean
(also: #can_update?)
Whether the user can change this field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities
constructor
A new instance of GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities
Returns a new instance of GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities.
1750 1751 1752 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1750 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_delete ⇒ Boolean Also known as: can_delete?
Whether the user can delete this field. The user must have permission and the
field must be deprecated.
Corresponds to the JSON property canDelete
1727 1728 1729 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1727 def can_delete @can_delete end |
#can_disable ⇒ Boolean Also known as: can_disable?
Whether the user can disable this field. The user must have permission and
this field must not already be disabled.
Corresponds to the JSON property canDisable
1734 1735 1736 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1734 def can_disable @can_disable end |
#can_enable ⇒ Boolean Also known as: can_enable?
Whether the user can enable this field. The user must have permission and this
field must be disabled.
Corresponds to the JSON property canEnable
1741 1742 1743 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1741 def can_enable @can_enable end |
#can_update ⇒ Boolean Also known as: can_update?
Whether the user can change this field.
Corresponds to the JSON property canUpdate
1747 1748 1749 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1747 def can_update @can_update end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1755 1756 1757 1758 1759 1760 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1755 def update!(**args) @can_delete = args[:can_delete] if args.key?(:can_delete) @can_disable = args[:can_disable] if args.key?(:can_disable) @can_enable = args[:can_enable] if args.key?(:can_enable) @can_update = args[:can_update] if args.key?(:can_update) end |