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



3962
3963
3964
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3962

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


3924
3925
3926
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3924

def etag
  @etag
end

#heightFixnum

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

Returns:

  • (Fixnum)


3929
3930
3931
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3929

def height
  @height
end

#idString

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

Returns:

  • (String)


3934
3935
3936
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3934

def id
  @id
end

#kindString

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

Returns:

  • (String)


3939
3940
3941
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3939

def kind
  @kind
end

#mime_typeString

Mime Type of the photo Corresponds to the JSON property mimeType

Returns:

  • (String)


3944
3945
3946
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3944

def mime_type
  @mime_type
end

#photo_dataString

Base64 encoded photo data Corresponds to the JSON property photoData NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3950
3951
3952
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3950

def photo_data
  @photo_data
end

#primary_emailString

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

Returns:

  • (String)


3955
3956
3957
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3955

def primary_email
  @primary_email
end

#widthFixnum

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

Returns:

  • (Fixnum)


3960
3961
3962
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3960

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3967

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