class Google::Apis::AdminDirectoryV1::UserPhoto

JSON template for Photo object in Directory API.

Attributes

etag[RW]

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

height[RW]

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

id[RW]

Unique identifier of User (Read-only) Corresponds to the JSON property `id` @return [String]

kind[RW]

Kind of resource this is. Corresponds to the JSON property `kind` @return [String]

mime_type[RW]

Mime Type of the photo Corresponds to the JSON property `mimeType` @return [String]

photo_data[RW]

Base64 encoded photo data Corresponds to the JSON property `photoData` @return [String]

primary_email[RW]

Primary email of User (Read-only) Corresponds to the JSON property `primaryEmail` @return [String]

width[RW]

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

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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