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
Instance Attribute Summary collapse
-
#etag ⇒ String
ETag of the resource.
-
#height ⇒ Fixnum
Height of the photo in pixels.
-
#id ⇒ String
The ID the API uses to uniquely identify the user.
-
#kind ⇒ String
The type of the API resource.
-
#mime_type ⇒ String
The MIME type of the photo.
-
#photo_data ⇒ String
The user photo's upload data in web-safe Base64 format in bytes.
-
#primary_email ⇒ String
The user's primary email address.
-
#width ⇒ Fixnum
Width of the photo in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserPhoto
constructor
A new instance of UserPhoto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserPhoto
Returns a new instance of UserPhoto.
4195 4196 4197 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4195 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
4148 4149 4150 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4148 def etag @etag end |
#height ⇒ Fixnum
Height of the photo in pixels.
Corresponds to the JSON property height
4153 4154 4155 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4153 def height @height end |
#id ⇒ String
The ID the API uses to uniquely identify the user.
Corresponds to the JSON property id
4158 4159 4160 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4158 def id @id end |
#kind ⇒ String
The type of the API resource. For Photo resources, this is admin#directory#
user#photo
.
Corresponds to the JSON property kind
4164 4165 4166 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4164 def kind @kind end |
#mime_type ⇒ String
The MIME type of the photo. Allowed values are JPEG
, PNG
, GIF
, BMP
,
TIFF
, and web-safe base64 encoding.
Corresponds to the JSON property mimeType
4170 4171 4172 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4170 def mime_type @mime_type end |
#photo_data ⇒ String
The user photo's upload data in web-safe Base64 format in bytes. This means: * The slash (/)
character is replaced with the underscore (_) character. * The plus sign (+)
character is replaced with the hyphen (-) character. * The equals sign (=)
character is replaced with the asterisk (*). * For padding, the period (.)
character is used instead of the RFC-4648 baseURL definition which uses the
equals sign (=) for padding. This is done to simplify URL-parsing. * Whatever
the size of the photo being uploaded, the API downsizes it to 96x96 pixels.
Corresponds to the JSON property photoData
NOTE: Values are automatically base64 encoded/decoded in the client library.
4183 4184 4185 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4183 def photo_data @photo_data end |
#primary_email ⇒ String
The user's primary email address.
Corresponds to the JSON property primaryEmail
4188 4189 4190 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4188 def primary_email @primary_email end |
#width ⇒ Fixnum
Width of the photo in pixels.
Corresponds to the JSON property width
4193 4194 4195 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4193 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4200 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 |