models.app module

class models.app.App(app_id=None, clusters=None, download_progress_pct=None, external_ip_required=None, external_networks=None, install_state=None, install_time=None, instance_sizes=None, is_latest=None, latest_version=None, metadata=None, required_privileges=None, uninstall_time=None, version=None, vm_name_info_list=None)[source]

Bases: object

Implementation of the ‘App’ model.

App provides information about an application.

Attributes:

app_id (long|int): Specifies unique id allocated by the AppStore. clusters (list of ClusterInfo): Specifies the list of clusters on

which the app is installed for a particular account Id.

download_progress_pct (float): Specifies app download progress

percentage.

external_ip_required (bool): Specifies if an external ip is required

for the app.

external_networks (list of ExternalNetworkInfo): List of external

network information available for the app.

install_state (InstallStateEnum): Specifies app installation status.

Specifies status of the app installation. kNotInstalled - App yet to be installed. kInstallInProgress - App installation is in progress. kInstalled - App is installed required_privilegesly and can be launched. kInstallFailed - App installation failed. kUninstallInProgress - App uninstallation is in progress. kUninstallFailed - App uninstallation failed. kDownloadNotStarted - App download has not started. kDownloadInProgress - App download in progress. kDownloadComplete - App download completed. kDownloadFailed - App download failed.

install_time (long|int): Specifies timestamp when the app was

installed.

instance_sizes (list of string): List of applicable instance size

specifications (e.g. small/medium/large) for the app. Used to determine container resources.

is_latest (bool): Specifies whether the app currently installed on all

clusters is the latest version or not.

latest_version (long|int): Specifies application version assigned by

the AppStore for the latest version of an app.

metadata (AppMetadata): Specifies metadata information about the app. required_privileges (RequiredPrivilegesEnum): Specifies privileges

that are required for this app. App privilege information.

uninstall_time (long|int): Specifies timestamp when the app was

uninstalled.

version (long|int): Specifies application version assigned by the

AppStore.

vm_name_info_list (list of VmNameInfo): List of vm name info objects.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.