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
photoData
. -
#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.
2925 2926 2927 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2925 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
2888 2889 2890 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2888 def etag @etag end |
#height ⇒ Fixnum
Height in pixels of the photo
Corresponds to the JSON property height
2893 2894 2895 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2893 def height @height end |
#id ⇒ String
Unique identifier of User (Read-only)
Corresponds to the JSON property id
2898 2899 2900 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2898 def id @id end |
#kind ⇒ String
Kind of resource this is.
Corresponds to the JSON property kind
2903 2904 2905 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2903 def kind @kind end |
#mime_type ⇒ String
Mime Type of the photo
Corresponds to the JSON property mimeType
2908 2909 2910 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2908 def mime_type @mime_type end |
#photo_data ⇒ String
Base64 encoded photo data
Corresponds to the JSON property photoData
2913 2914 2915 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2913 def photo_data @photo_data end |
#primary_email ⇒ String
Primary email of User (Read-only)
Corresponds to the JSON property primaryEmail
2918 2919 2920 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2918 def primary_email @primary_email end |
#width ⇒ Fixnum
Width in pixels of the photo
Corresponds to the JSON property width
2923 2924 2925 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2923 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2930 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 |