Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities

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

The capabilities a user has on this label's applied metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities

Returns a new instance of GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities.



2337
2338
2339
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2337

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

Instance Attribute Details

#can_applyBoolean Also known as: can_apply?

Whether the user can apply this label to items. Corresponds to the JSON property canApply

Returns:

  • (Boolean)


2322
2323
2324
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2322

def can_apply
  @can_apply
end

#can_readBoolean Also known as: can_read?

Whether the user can read applied metadata related to this label. Corresponds to the JSON property canRead

Returns:

  • (Boolean)


2328
2329
2330
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2328

def can_read
  @can_read
end

#can_removeBoolean Also known as: can_remove?

Whether the user can remove this label from items. Corresponds to the JSON property canRemove

Returns:

  • (Boolean)


2334
2335
2336
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2334

def can_remove
  @can_remove
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2342
2343
2344
2345
2346
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2342

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