Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserCapabilities

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 of a user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaUserCapabilities

Returns a new instance of GoogleAppsDriveLabelsV2betaUserCapabilities.



3138
3139
3140
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3138

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

Instance Attribute Details

#can_access_label_managerBoolean 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

Returns:

  • (Boolean)


3111
3112
3113
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3111

def can_access_label_manager
  @can_access_label_manager
end

#can_administrate_labelsBoolean 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

Returns:

  • (Boolean)


3118
3119
3120
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3118

def can_administrate_labels
  @can_administrate_labels
end

#can_create_admin_labelsBoolean 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

Returns:

  • (Boolean)


3124
3125
3126
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3124

def can_create_admin_labels
  @can_create_admin_labels
end

#can_create_shared_labelsBoolean Also known as: can_create_shared_labels?

Output only. Whether the user is allowed to create new shared labels. Corresponds to the JSON property canCreateSharedLabels

Returns:

  • (Boolean)


3130
3131
3132
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3130

def can_create_shared_labels
  @can_create_shared_labels
end

#nameString

Output only. Resource name for the user capabilities. Corresponds to the JSON property name

Returns:

  • (String)


3136
3137
3138
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3136

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3143
3144
3145
3146
3147
3148
3149
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3143

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