Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities
- 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 a user has on this label's applied metadata.
Instance Attribute Summary collapse
-
#can_apply ⇒ Boolean
(also: #can_apply?)
Whether the user can apply this label to items.
-
#can_read ⇒ Boolean
(also: #can_read?)
Whether the user can read applied metadata related to this label.
-
#can_remove ⇒ Boolean
(also: #can_remove?)
Whether the user can remove this label from items.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities
constructor
A new instance of GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities
Returns a new instance of GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities.
2368 2369 2370 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2368 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_apply ⇒ Boolean Also known as: can_apply?
Whether the user can apply this label to items.
Corresponds to the JSON property canApply
2353 2354 2355 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2353 def can_apply @can_apply end |
#can_read ⇒ Boolean Also known as: can_read?
Whether the user can read applied metadata related to this label.
Corresponds to the JSON property canRead
2359 2360 2361 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2359 def can_read @can_read end |
#can_remove ⇒ Boolean Also known as: can_remove?
Whether the user can remove this label from items.
Corresponds to the JSON property canRemove
2365 2366 2367 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2365 def can_remove @can_remove end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2373 2374 2375 2376 2377 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2373 def update!(**args) @can_apply = args[:can_apply] if args.key?(:can_apply) @can_read = args[:can_read] if args.key?(:can_read) @can_remove = args[:can_remove] if args.key?(:can_remove) end |