class Google::Apis::AdminDirectoryV1::UserPhoto

Attributes

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

height[RW]

Height of the photo in pixels. Corresponds to the JSON property `height` @return [Fixnum]

id[RW]

The ID the API uses to uniquely identify the user. Corresponds to the JSON property `id` @return [String]

kind[RW]

The type of the API resource. For Photo resources, this is `admin#directory# user#photo`. Corresponds to the JSON property `kind` @return [String]

mime_type[RW]

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` @return [String]

photo_data[RW]

The user photo's upload data in [web-safe Base64](en.wikipedia.org/ wiki/Base64#URL_applications) 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. @return [String]

primary_email[RW]

The user's primary email address. Corresponds to the JSON property `primaryEmail` @return [String]

width[RW]

Width of the photo in pixels. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/admin_directory_v1/classes.rb, line 4603
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/admin_directory_v1/classes.rb, line 4608
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