Class: Google::Apis::AdminDirectoryV1::Role

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Defined Under Namespace

Classes: RolePrivilege

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Role

Returns a new instance of Role.



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

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


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

def etag
  @etag
end

#is_super_admin_roleBoolean Also known as: is_super_admin_role?

Returns true if the role is a super admin role. Corresponds to the JSON property isSuperAdminRole

Returns:

  • (Boolean)


3104
3105
3106
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3104

def is_super_admin_role
  @is_super_admin_role
end

#is_system_roleBoolean Also known as: is_system_role?

Returns true if this is a pre-defined system role. Corresponds to the JSON property isSystemRole

Returns:

  • (Boolean)


3110
3111
3112
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3110

def is_system_role
  @is_system_role
end

#kindString

The type of the API resource. This is always admin#directory#role. Corresponds to the JSON property kind

Returns:

  • (String)


3116
3117
3118
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3116

def kind
  @kind
end

#role_descriptionString

A short description of the role. Corresponds to the JSON property roleDescription

Returns:

  • (String)


3121
3122
3123
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3121

def role_description
  @role_description
end

#role_idFixnum

ID of the role. Corresponds to the JSON property roleId

Returns:

  • (Fixnum)


3126
3127
3128
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3126

def role_id
  @role_id
end

#role_nameString

Name of the role. Corresponds to the JSON property roleName

Returns:

  • (String)


3131
3132
3133
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3131

def role_name
  @role_name
end

#role_privilegesArray<Google::Apis::AdminDirectoryV1::Role::RolePrivilege>

The set of privileges that are granted to this role. Corresponds to the JSON property rolePrivileges



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

def role_privileges
  @role_privileges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3143

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @is_super_admin_role = args[:is_super_admin_role] if args.key?(:is_super_admin_role)
  @is_system_role = args[:is_system_role] if args.key?(:is_system_role)
  @kind = args[:kind] if args.key?(:kind)
  @role_description = args[:role_description] if args.key?(:role_description)
  @role_id = args[:role_id] if args.key?(:role_id)
  @role_name = args[:role_name] if args.key?(:role_name)
  @role_privileges = args[:role_privileges] if args.key?(:role_privileges)
end