class Google::Apis::AdminDirectoryV1::UserPhoto
JSON template for Photo object in Directory API.
Attributes
ETag of the resource. Corresponds to the JSON property `etag` @return [String]
Height in pixels of the photo Corresponds to the JSON property `height` @return [Fixnum]
Unique identifier of User (Read-only) Corresponds to the JSON property `id` @return [String]
Kind of resource this is. Corresponds to the JSON property `kind` @return [String]
Mime Type of the photo Corresponds to the JSON property `mimeType` @return [String]
Base64 encoded photo data Corresponds to the JSON property `photoData` @return [String]
Primary email of User (Read-only) Corresponds to the JSON property `primaryEmail` @return [String]
Width in pixels of the photo Corresponds to the JSON property `width` @return [Fixnum]
Public Class Methods
# File generated/google/apis/admin_directory_v1/classes.rb, line 2919 def initialize(**args) update!(**args) end
Public Instance Methods
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