Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelLockCapabilities

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

A description of a user's capabilities on a LabelLock.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelLockCapabilities

Returns a new instance of GoogleAppsDriveLabelsV2betaLabelLockCapabilities.



2542
2543
2544
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2542

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

Instance Attribute Details

#can_view_policyBoolean Also known as: can_view_policy?

True if the user is authorized to view the policy. Corresponds to the JSON property canViewPolicy

Returns:

  • (Boolean)


2539
2540
2541
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2539

def can_view_policy
  @can_view_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2547
2548
2549
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2547

def update!(**args)
  @can_view_policy = args[:can_view_policy] if args.key?(:can_view_policy)
end