Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities
- 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 on applied metadata.
Instance Attribute Summary collapse
-
#can_read ⇒ Boolean
(also: #can_read?)
Whether the user can read related applied metadata on items.
-
#can_search ⇒ Boolean
(also: #can_search?)
Whether the user can search for Drive items referencing this field.
-
#can_write ⇒ Boolean
(also: #can_write?)
Whether the user can set this field on Drive items.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities
constructor
A new instance of GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities
Returns a new instance of GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities.
1474 1475 1476 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1474 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_read ⇒ Boolean Also known as: can_read?
Whether the user can read related applied metadata on items.
Corresponds to the JSON property canRead
1459 1460 1461 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1459 def can_read @can_read end |
#can_search ⇒ Boolean Also known as: can_search?
Whether the user can search for Drive items referencing this field.
Corresponds to the JSON property canSearch
1465 1466 1467 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1465 def can_search @can_search end |
#can_write ⇒ Boolean Also known as: can_write?
Whether the user can set this field on Drive items.
Corresponds to the JSON property canWrite
1471 1472 1473 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1471 def can_write @can_write end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1479 1480 1481 1482 1483 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1479 def update!(**args) @can_read = args[:can_read] if args.key?(:can_read) @can_search = args[:can_search] if args.key?(:can_search) @can_write = args[:can_write] if args.key?(:can_write) end |