Class: Google::Apis::AdminDirectoryV1::UserPhoto
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::UserPhoto
- 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
-
#etag ⇒ String
ETag of the resource.
-
#height ⇒ Fixnum
Height in pixels of the photo Corresponds to the JSON property
height. -
#id ⇒ String
Unique identifier of User (Read-only) Corresponds to the JSON property
id. -
#kind ⇒ String
Kind of resource this is.
-
#mime_type ⇒ String
Mime Type of the photo Corresponds to the JSON property
mimeType. -
#photo_data ⇒ String
Base64 encoded photo data Corresponds to the JSON property
photoDataNOTE: Values are automatically base64 encoded/decoded in the client library. -
#primary_email ⇒ String
Primary email of User (Read-only) Corresponds to the JSON property
primaryEmail. -
#width ⇒ Fixnum
Width in pixels of the photo Corresponds to the JSON property
width.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserPhoto
constructor
A new instance of UserPhoto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserPhoto
Returns a new instance of UserPhoto
3393 3394 3395 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3393 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
3355 3356 3357 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3355 def etag @etag end |
#height ⇒ Fixnum
Height in pixels of the photo
Corresponds to the JSON property height
3360 3361 3362 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3360 def height @height end |
#id ⇒ String
Unique identifier of User (Read-only)
Corresponds to the JSON property id
3365 3366 3367 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3365 def id @id end |
#kind ⇒ String
Kind of resource this is.
Corresponds to the JSON property kind
3370 3371 3372 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3370 def kind @kind end |
#mime_type ⇒ String
Mime Type of the photo
Corresponds to the JSON property mimeType
3375 3376 3377 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3375 def mime_type @mime_type end |
#photo_data ⇒ String
Base64 encoded photo data
Corresponds to the JSON property photoData
NOTE: Values are automatically base64 encoded/decoded in the client library.
3381 3382 3383 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3381 def photo_data @photo_data end |
#primary_email ⇒ String
Primary email of User (Read-only)
Corresponds to the JSON property primaryEmail
3386 3387 3388 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3386 def primary_email @primary_email end |
#width ⇒ Fixnum
Width in pixels of the photo
Corresponds to the JSON property width
3391 3392 3393 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3391 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3398 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 |