Class: Google::Apis::ClassroomV1::UserProfile

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb

Overview

Global information for a user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserProfile

Returns a new instance of UserProfile



2172
2173
2174
# File 'generated/google/apis/classroom_v1/classes.rb', line 2172

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

Instance Attribute Details

#email_addressString

Email address of the user. Read-only. Corresponds to the JSON property emailAddress

Returns:

  • (String)


2138
2139
2140
# File 'generated/google/apis/classroom_v1/classes.rb', line 2138

def email_address
  @email_address
end

#idString

Identifier of the user. Read-only. Corresponds to the JSON property id

Returns:

  • (String)


2144
2145
2146
# File 'generated/google/apis/classroom_v1/classes.rb', line 2144

def id
  @id
end

#nameGoogle::Apis::ClassroomV1::Name

Details of the user's name. Corresponds to the JSON property name



2149
2150
2151
# File 'generated/google/apis/classroom_v1/classes.rb', line 2149

def name
  @name
end

#permissionsArray<Google::Apis::ClassroomV1::GlobalPermission>

Global permissions of the user. Read-only. Corresponds to the JSON property permissions



2155
2156
2157
# File 'generated/google/apis/classroom_v1/classes.rb', line 2155

def permissions
  @permissions
end

#photo_urlString

URL of user's profile photo. Read-only. Corresponds to the JSON property photoUrl

Returns:

  • (String)


2161
2162
2163
# File 'generated/google/apis/classroom_v1/classes.rb', line 2161

def photo_url
  @photo_url
end

#verified_teacherBoolean Also known as: verified_teacher?

Represents whether a G Suite for Education user's domain administrator has explicitly verified them as being a teacher. If the user is not a member of a G Suite for Education domain, than this field will always be false. Read-only Corresponds to the JSON property verifiedTeacher

Returns:

  • (Boolean)


2169
2170
2171
# File 'generated/google/apis/classroom_v1/classes.rb', line 2169

def verified_teacher
  @verified_teacher
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2177
2178
2179
2180
2181
2182
2183
2184
# File 'generated/google/apis/classroom_v1/classes.rb', line 2177

def update!(**args)
  @email_address = args[:email_address] if args.key?(:email_address)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @permissions = args[:permissions] if args.key?(:permissions)
  @photo_url = args[:photo_url] if args.key?(:photo_url)
  @verified_teacher = args[:verified_teacher] if args.key?(:verified_teacher)
end