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



4077
4078
4079
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4077

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


4039
4040
4041
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4039

def etag
  @etag
end

#heightFixnum

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

Returns:

  • (Fixnum)


4044
4045
4046
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4044

def height
  @height
end

#idString

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

Returns:

  • (String)


4049
4050
4051
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4049

def id
  @id
end

#kindString

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

Returns:

  • (String)


4054
4055
4056
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4054

def kind
  @kind
end

#mime_typeString

Mime Type of the photo Corresponds to the JSON property mimeType

Returns:

  • (String)


4059
4060
4061
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4059

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)


4065
4066
4067
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4065

def photo_data
  @photo_data
end

#primary_emailString

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

Returns:

  • (String)


4070
4071
4072
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4070

def primary_email
  @primary_email
end

#widthFixnum

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

Returns:

  • (Fixnum)


4075
4076
4077
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4075

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4082

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