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.



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_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)


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_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)


3087
3088
3089
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3087

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)


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_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)


3099
3100
3101
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3099

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)


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