Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities
- 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 label when editing the label.
Instance Attribute Summary collapse
-
#can_delete ⇒ Boolean
(also: #can_delete?)
Whether the user can delete this label.
-
#can_disable ⇒ Boolean
(also: #can_disable?)
Whether the user can disable this label.
-
#can_enable ⇒ Boolean
(also: #can_enable?)
Whether the user can enable this label.
-
#can_update ⇒ Boolean
(also: #can_update?)
Whether the user can change this label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities
constructor
A new instance of GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities
Returns a new instance of GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities.
2662 2663 2664 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2662 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_delete ⇒ Boolean Also known as: can_delete?
Whether the user can delete this label. The user must have permission and the
label must be disabled.
Corresponds to the JSON property canDelete
2639 2640 2641 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2639 def can_delete @can_delete end |
#can_disable ⇒ Boolean Also known as: can_disable?
Whether the user can disable this label. The user must have permission and
this label must not already be disabled.
Corresponds to the JSON property canDisable
2646 2647 2648 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2646 def can_disable @can_disable end |
#can_enable ⇒ Boolean Also known as: can_enable?
Whether the user can enable this label. The user must have permission and this
label must be disabled.
Corresponds to the JSON property canEnable
2653 2654 2655 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2653 def can_enable @can_enable end |
#can_update ⇒ Boolean Also known as: can_update?
Whether the user can change this label.
Corresponds to the JSON property canUpdate
2659 2660 2661 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2659 def can_update @can_update end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2667 2668 2669 2670 2671 2672 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2667 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 |