Class: Google::Apis::ClassroomV1::UserProfile
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::UserProfile
- 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
-
#email_address ⇒ String
Email address of the user.
-
#id ⇒ String
Identifier of the user.
-
#name ⇒ Google::Apis::ClassroomV1::Name
Details of the user's name.
-
#permissions ⇒ Array<Google::Apis::ClassroomV1::GlobalPermission>
Global permissions of the user.
-
#photo_url ⇒ String
URL of user's profile photo.
-
#verified_teacher ⇒ Boolean
(also: #verified_teacher?)
Represents whether a G Suite for Education user's domain administrator has explicitly verified them as being a teacher.
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::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserProfile
Returns a new instance of UserProfile
1742 1743 1744 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1742 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email_address ⇒ String
Email address of the user.
Read-only.
Corresponds to the JSON property emailAddress
1708 1709 1710 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1708 def email_address @email_address end |
#id ⇒ String
Identifier of the user.
Read-only.
Corresponds to the JSON property id
1714 1715 1716 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1714 def id @id end |
#name ⇒ Google::Apis::ClassroomV1::Name
Details of the user's name.
Corresponds to the JSON property name
1719 1720 1721 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1719 def name @name end |
#permissions ⇒ Array<Google::Apis::ClassroomV1::GlobalPermission>
Global permissions of the user.
Read-only.
Corresponds to the JSON property permissions
1725 1726 1727 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1725 def @permissions end |
#photo_url ⇒ String
URL of user's profile photo.
Read-only.
Corresponds to the JSON property photoUrl
1731 1732 1733 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1731 def photo_url @photo_url end |
#verified_teacher ⇒ Boolean 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
1739 1740 1741 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1739 def verified_teacher @verified_teacher end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1747 1748 1749 1750 1751 1752 1753 1754 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1747 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 |