Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

AppInstance

Attributes
name: strparams: dict | Nonerequires_authentication: boolresource_model_id: strresources: list[gws_core.resource.resource.Resource] | None
Functions
__init__

Initialize self. See help(type(self)) for accurate signature.

resource_model_id : str
name : str
shell_proxy : ShellProxy
requires_authentication : bool - True
get_app_type

Get the type of the app.

Return type : AppType
get_shell_proxy
Return type : ShellProxy
get_source_ids

Get the source ids of the app

Return type : list
is_dev_mode
Return type : bool
is_virtual_env_app
Return type : bool
set_dev_mode
set_dev_user

Set the user to be used in dev mode and return the user access token

user_id : str
set_input_resources

Set the resources of the app

: param resources: description : type resources: List[str]

resources : list
set_params
params : dict
set_requires_authentication

Set if the app requires authentication. By default it requires authentication. If the app does not require authentication, the user access tokens are not used. In this case the system user is used to access the app.

: param requires_authentication: True if the app requires authentication : type requires_authentication: bool

requires_authentication : bool
to_dto
Return type : AppInstanceDTO
was_generated_from_resource_model_id

Return true if the app was generated from the given resource model id

resource_model_id : str
Return type : bool
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.