Class: Google::Apis::AndroidenterpriseV1::WebAppIcon

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb

Overview

Icon for a web app.

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) ⇒ WebAppIcon

Returns a new instance of WebAppIcon.



3172
3173
3174
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 3172

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

Instance Attribute Details

#image_dataString

The actual bytes of the image in a base64url encoded string (c.f. RFC4648, section 5 "Base 64 Encoding with URL and Filename Safe Alphabet").

  • The image type can be png or jpg.
  • The image should ideally be square.
  • The image should ideally have a size of 512x512. Corresponds to the JSON property imageData

Returns:

  • (String)


3170
3171
3172
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 3170

def image_data
  @image_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3177
3178
3179
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 3177

def update!(**args)
  @image_data = args[:image_data] if args.key?(:image_data)
end