Class: Google::Apis::AdminDirectoryV1::UserPhoto
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::UserPhoto
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb more...
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
permalink #initialize(**args) ⇒ UserPhoto
Returns a new instance of UserPhoto.
5549 5550 5551 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5549 def initialize(**args) update!(**args) end |
Instance Attribute Details
permalink #etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
5502 5503 5504 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5502 def etag @etag end |
permalink #height ⇒ Fixnum
Height of the photo in pixels.
Corresponds to the JSON property height
5507 5508 5509 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5507 def height @height end |
permalink #id ⇒ String
The ID the API uses to uniquely identify the user.
Corresponds to the JSON property id
5512 5513 5514 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5512 def id @id end |
permalink #kind ⇒ String
The type of the API resource. For Photo resources, this is admin#directory#
user#photo
.
Corresponds to the JSON property kind
5518 5519 5520 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5518 def kind @kind end |
permalink #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
5524 5525 5526 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5524 def mime_type @mime_type end |
permalink #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.
5537 5538 5539 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5537 def photo_data @photo_data end |
permalink #primary_email ⇒ String
The user's primary email address.
Corresponds to the JSON property primaryEmail
5542 5543 5544 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5542 def primary_email @primary_email end |
permalink #width ⇒ Fixnum
Width of the photo in pixels.
Corresponds to the JSON property width
5547 5548 5549 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5547 def width @width end |
Instance Method Details
permalink #update!(**args) ⇒ Object
Update properties of this object
5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5554 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 |