Class: Google::Apis::AdminDirectoryV1::UserPhoto
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::UserPhoto
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb
Overview
JSON template for Photo object in Directory API.
Instance Attribute Summary collapse
-
#etag ⇒ String
ETag of the resource.
-
#height ⇒ Fixnum
Height in pixels of the photo Corresponds to the JSON property
height. -
#id ⇒ String
Unique identifier of User (Read-only) Corresponds to the JSON property
id. -
#kind ⇒ String
Kind of resource this is.
-
#mime_type ⇒ String
Mime Type of the photo Corresponds to the JSON property
mimeType. -
#photo_data ⇒ String
Base64 encoded photo data Corresponds to the JSON property
photoDataNOTE: Values are automatically base64 encoded/decoded in the client library. -
#primary_email ⇒ String
Primary email of User (Read-only) Corresponds to the JSON property
primaryEmail. -
#width ⇒ Fixnum
Width in pixels of the photo Corresponds to the JSON property
width.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserPhoto
constructor
A new instance of UserPhoto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserPhoto
Returns a new instance of UserPhoto
3781 3782 3783 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3781 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
3743 3744 3745 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3743 def etag @etag end |
#height ⇒ Fixnum
Height in pixels of the photo
Corresponds to the JSON property height
3748 3749 3750 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3748 def height @height end |
#id ⇒ String
Unique identifier of User (Read-only)
Corresponds to the JSON property id
3753 3754 3755 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3753 def id @id end |
#kind ⇒ String
Kind of resource this is.
Corresponds to the JSON property kind
3758 3759 3760 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3758 def kind @kind end |
#mime_type ⇒ String
Mime Type of the photo
Corresponds to the JSON property mimeType
3763 3764 3765 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3763 def mime_type @mime_type end |
#photo_data ⇒ String
Base64 encoded photo data
Corresponds to the JSON property photoData
NOTE: Values are automatically base64 encoded/decoded in the client library.
3769 3770 3771 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3769 def photo_data @photo_data end |
#primary_email ⇒ String
Primary email of User (Read-only)
Corresponds to the JSON property primaryEmail
3774 3775 3776 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3774 def primary_email @primary_email end |
#width ⇒ Fixnum
Width in pixels of the photo
Corresponds to the JSON property width
3779 3780 3781 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3779 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3786 def update!(**args) @etag = args[:etag] if args.key?(:etag) @height = args[:height] if args.key?(:height) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @mime_type = args[:mime_type] if args.key?(:mime_type) @photo_data = args[:photo_data] if args.key?(:photo_data) @primary_email = args[:primary_email] if args.key?(:primary_email) @width = args[:width] if args.key?(:width) end |