Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities

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 related to this field on applied metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities.



1468
1469
1470
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1468

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

Instance Attribute Details

#can_readBoolean Also known as: can_read?

Whether the user can read related applied metadata on items. Corresponds to the JSON property canRead

Returns:

  • (Boolean)


1453
1454
1455
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1453

def can_read
  @can_read
end

#can_searchBoolean Also known as: can_search?

Whether the user can search for Drive items referencing this field. Corresponds to the JSON property canSearch

Returns:

  • (Boolean)


1459
1460
1461
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1459

def can_search
  @can_search
end

#can_writeBoolean Also known as: can_write?

Whether the user can set this field on Drive items. Corresponds to the JSON property canWrite

Returns:

  • (Boolean)


1465
1466
1467
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1465

def can_write
  @can_write
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1473
1474
1475
1476
1477
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1473

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