Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserCapabilities
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserCapabilities
- 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 of a user.
Instance Attribute Summary collapse
-
#can_access_label_manager ⇒ Boolean
(also: #can_access_label_manager?)
Output only.
-
#can_administrate_labels ⇒ Boolean
(also: #can_administrate_labels?)
Output only.
-
#can_create_admin_labels ⇒ Boolean
(also: #can_create_admin_labels?)
Output only.
-
#can_create_shared_labels ⇒ Boolean
(also: #can_create_shared_labels?)
Output only.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaUserCapabilities
constructor
A new instance of GoogleAppsDriveLabelsV2betaUserCapabilities.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaUserCapabilities
Returns a new instance of GoogleAppsDriveLabelsV2betaUserCapabilities.
3107 3108 3109 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3107 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_access_label_manager ⇒ Boolean Also known as: can_access_label_manager?
Output only. Whether the user is allowed access to the label manager.
Corresponds to the JSON property canAccessLabelManager
3080 3081 3082 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3080 def can_access_label_manager @can_access_label_manager end |
#can_administrate_labels ⇒ Boolean Also known as: can_administrate_labels?
Output only. Whether the user is an administrator for the shared labels
feature.
Corresponds to the JSON property canAdministrateLabels
3087 3088 3089 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3087 def can_administrate_labels @can_administrate_labels end |
#can_create_admin_labels ⇒ Boolean Also known as: can_create_admin_labels?
Output only. Whether the user is allowed to create new admin labels.
Corresponds to the JSON property canCreateAdminLabels
3093 3094 3095 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3093 def can_create_admin_labels @can_create_admin_labels end |
#can_create_shared_labels ⇒ Boolean Also known as:
Output only. Whether the user is allowed to create new shared labels.
Corresponds to the JSON property canCreateSharedLabels
3099 3100 3101 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3099 def can_create_shared_labels @can_create_shared_labels end |
#name ⇒ String
Output only. Resource name for the user capabilities.
Corresponds to the JSON property name
3105 3106 3107 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3105 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3112 3113 3114 3115 3116 3117 3118 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3112 def update!(**args) @can_access_label_manager = args[:can_access_label_manager] if args.key?(:can_access_label_manager) @can_administrate_labels = args[:can_administrate_labels] if args.key?(:can_administrate_labels) @can_create_admin_labels = args[:can_create_admin_labels] if args.key?(:can_create_admin_labels) @can_create_shared_labels = args[:can_create_shared_labels] if args.key?(:can_create_shared_labels) @name = args[:name] if args.key?(:name) end |