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.



2573
2574
2575
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2573

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)


2570
2571
2572
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2570

def can_view_policy
  @can_view_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2578
2579
2580
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2578

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