Class: Google::Apis::AndroidenterpriseV1::WebApp

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

Overview

A WebApps resource represents a web app created for an enterprise. Web apps are published to managed Google Play and can be distributed like other Android apps. On a user's device, a web app opens its specified URL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WebApp

Returns a new instance of WebApp.



3062
3063
3064
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 3062

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

Instance Attribute Details

#display_modeString

The display mode of the web app. Possible values include: - "minimalUi", the device's status bar, navigation bar, the app's URL, and a refresh button are visible when the app is open. For HTTP URLs, you can only select this option. - "standalone", the device's status bar and navigation bar are visible when the app is open. - "fullScreen", the app opens in full screen mode, hiding the device's status and navigation bars. All browser UI elements, page URL, system status bar and back button are not visible, and the web app takes up the entirety of the available display area. Corresponds to the JSON property displayMode

Returns:

  • (String)


3022
3023
3024
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 3022

def display_mode
  @display_mode
end

#iconsArray<Google::Apis::AndroidenterpriseV1::WebAppIcon>

A list of icons representing this website. If absent, a default icon (for create) or the current icon (for update) will be used. Corresponds to the JSON property icons



3028
3029
3030
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 3028

def icons
  @icons
end

#is_publishedBoolean Also known as: is_published?

A flag whether the app has been published to the Play store yet. Corresponds to the JSON property isPublished

Returns:

  • (Boolean)


3033
3034
3035
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 3033

def is_published
  @is_published
end

#start_urlString

The start URL, i.e. the URL that should load when the user opens the application. Corresponds to the JSON property startUrl

Returns:

  • (String)


3040
3041
3042
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 3040

def start_url
  @start_url
end

#titleString

The title of the web app as displayed to the user (e.g., amongst a list of other applications, or as a label for an icon). Corresponds to the JSON property title

Returns:

  • (String)


3046
3047
3048
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 3046

def title
  @title
end

#version_codeFixnum

The current version of the app. Note that the version can automatically increase during the lifetime of the web app, while Google does internal housekeeping to keep the web app up-to-date. Corresponds to the JSON property versionCode

Returns:

  • (Fixnum)


3053
3054
3055
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 3053

def version_code
  @version_code
end

#web_app_idString

The ID of the application. A string of the form "app:" where the package name always starts with the prefix "com.google.enterprise.webapp." followed by a random id. Corresponds to the JSON property webAppId

Returns:

  • (String)


3060
3061
3062
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 3060

def web_app_id
  @web_app_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3067
3068
3069
3070
3071
3072
3073
3074
3075
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 3067

def update!(**args)
  @display_mode = args[:display_mode] if args.key?(:display_mode)
  @icons = args[:icons] if args.key?(:icons)
  @is_published = args[:is_published] if args.key?(:is_published)
  @start_url = args[:start_url] if args.key?(:start_url)
  @title = args[:title] if args.key?(:title)
  @version_code = args[:version_code] if args.key?(:version_code)
  @web_app_id = args[:web_app_id] if args.key?(:web_app_id)
end