Class: Google::Apis::AdminDirectoryV1::UserPhoto

Inherits:
Object
  • Object
show all
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

Overview

JSON template for Photo object in Directory API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserPhoto

Returns a new instance of UserPhoto.



3005
3006
3007
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3005

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2968
2969
2970
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2968

def etag
  @etag
end

#heightFixnum

Height in pixels of the photo Corresponds to the JSON property height

Returns:

  • (Fixnum)


2973
2974
2975
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2973

def height
  @height
end

#idString

Unique identifier of User (Read-only) Corresponds to the JSON property id

Returns:

  • (String)


2978
2979
2980
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2978

def id
  @id
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


2983
2984
2985
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2983

def kind
  @kind
end

#mime_typeString

Mime Type of the photo Corresponds to the JSON property mimeType

Returns:

  • (String)


2988
2989
2990
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2988

def mime_type
  @mime_type
end

#photo_dataString

Base64 encoded photo data Corresponds to the JSON property photoData

Returns:

  • (String)


2993
2994
2995
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2993

def photo_data
  @photo_data
end

#primary_emailString

Primary email of User (Read-only) Corresponds to the JSON property primaryEmail

Returns:

  • (String)


2998
2999
3000
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2998

def primary_email
  @primary_email
end

#widthFixnum

Width in pixels of the photo Corresponds to the JSON property width

Returns:

  • (Fixnum)


3003
3004
3005
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3003

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3010

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