Class: Google::Apis::ClassroomV1beta1::UserProfile
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1beta1::UserProfile
- Includes:
- Google::Apis::Core::Hashable
- Defined in:
- generated/google/apis/classroom_v1beta1/classes.rb,
generated/google/apis/classroom_v1beta1/representations.rb,
generated/google/apis/classroom_v1beta1/representations.rb
Overview
Global information for a user.
Instance Attribute Summary collapse
-
#email_address ⇒ String
E-mail address of the user.
-
#id ⇒ String
Unique identifier of the user.
-
#name ⇒ Google::Apis::ClassroomV1beta1::Name
Details of the user's name.
-
#permissions ⇒ Array<Google::Apis::ClassroomV1beta1::GlobalPermission>
Global permissions of the user.
-
#photo_url ⇒ String
Url of user's profile photo.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserProfile
constructor
A new instance of UserProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserProfile
Returns a new instance of UserProfile.
261 262 263 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 261 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email_address ⇒ String
E-mail address of the user. Read-only
Corresponds to the JSON property emailAddress
249 250 251 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 249 def email_address @email_address end |
#id ⇒ String
Unique identifier of the user. Read-only
Corresponds to the JSON property id
239 240 241 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 239 def id @id end |
#name ⇒ Google::Apis::ClassroomV1beta1::Name
Details of the user's name.
Corresponds to the JSON property name
244 245 246 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 244 def name @name end |
#permissions ⇒ Array<Google::Apis::ClassroomV1beta1::GlobalPermission>
Global permissions of the user. Read-only
Corresponds to the JSON property permissions
259 260 261 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 259 def @permissions end |
#photo_url ⇒ String
Url of user's profile photo. Read-only
Corresponds to the JSON property photoUrl
254 255 256 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 254 def photo_url @photo_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
266 267 268 269 270 271 272 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 266 def update!(**args) @id = args[:id] unless args[:id].nil? @name = args[:name] unless args[:name].nil? @email_address = args[:email_address] unless args[:email_address].nil? @photo_url = args[:photo_url] unless args[:photo_url].nil? @permissions = args[:permissions] unless args[:permissions].nil? end |