@@ -35,9 +35,10 @@ class HostedAppContainer(AbstractApiClass):
3535 webAppProjectId (id): The ID of the web app project
3636 parentConversationId (id): The ID of the parent conversation
3737 projectMetadata (dict): The metadata of the web app project
38+ memoryGb (float): The memory in GB of the web app deployment
3839 """
3940
40- def __init__ (self , client , hostedAppContainerId = None , hostedAppId = None , deploymentConversationId = None , hostedAppVersion = None , name = None , userId = None , email = None , createdAt = None , updatedAt = None , containerImage = None , route = None , appConfig = None , isDev = None , isDeployable = None , isPreviewAvailable = None , lifecycle = None , status = None , deployedStatus = None , accessLevel = None , hostname = None , llmArtifactId = None , artifactType = None , deployedLlmArtifactId = None , hasDatabase = None , hasStorage = None , webAppProjectId = None , parentConversationId = None , projectMetadata = None ):
41+ def __init__ (self , client , hostedAppContainerId = None , hostedAppId = None , deploymentConversationId = None , hostedAppVersion = None , name = None , userId = None , email = None , createdAt = None , updatedAt = None , containerImage = None , route = None , appConfig = None , isDev = None , isDeployable = None , isPreviewAvailable = None , lifecycle = None , status = None , deployedStatus = None , accessLevel = None , hostname = None , llmArtifactId = None , artifactType = None , deployedLlmArtifactId = None , hasDatabase = None , hasStorage = None , webAppProjectId = None , parentConversationId = None , projectMetadata = None , memoryGb = None ):
4142 super ().__init__ (client , hostedAppContainerId )
4243 self .hosted_app_container_id = hostedAppContainerId
4344 self .hosted_app_id = hostedAppId
@@ -67,11 +68,12 @@ def __init__(self, client, hostedAppContainerId=None, hostedAppId=None, deployme
6768 self .web_app_project_id = webAppProjectId
6869 self .parent_conversation_id = parentConversationId
6970 self .project_metadata = projectMetadata
71+ self .memory_gb = memoryGb
7072 self .deprecated_keys = {}
7173
7274 def __repr__ (self ):
7375 repr_dict = {f'hosted_app_container_id' : repr (self .hosted_app_container_id ), f'hosted_app_id' : repr (self .hosted_app_id ), f'deployment_conversation_id' : repr (self .deployment_conversation_id ), f'hosted_app_version' : repr (self .hosted_app_version ), f'name' : repr (self .name ), f'user_id' : repr (self .user_id ), f'email' : repr (self .email ), f'created_at' : repr (self .created_at ), f'updated_at' : repr (self .updated_at ), f'container_image' : repr (self .container_image ), f'route' : repr (self .route ), f'app_config' : repr (self .app_config ), f'is_dev' : repr (self .is_dev ), f'is_deployable' : repr (self .is_deployable ), f'is_preview_available' : repr (
74- self .is_preview_available ), f'lifecycle' : repr (self .lifecycle ), f'status' : repr (self .status ), f'deployed_status' : repr (self .deployed_status ), f'access_level' : repr (self .access_level ), f'hostname' : repr (self .hostname ), f'llm_artifact_id' : repr (self .llm_artifact_id ), f'artifact_type' : repr (self .artifact_type ), f'deployed_llm_artifact_id' : repr (self .deployed_llm_artifact_id ), f'has_database' : repr (self .has_database ), f'has_storage' : repr (self .has_storage ), f'web_app_project_id' : repr (self .web_app_project_id ), f'parent_conversation_id' : repr (self .parent_conversation_id ), f'project_metadata' : repr (self .project_metadata )}
76+ self .is_preview_available ), f'lifecycle' : repr (self .lifecycle ), f'status' : repr (self .status ), f'deployed_status' : repr (self .deployed_status ), f'access_level' : repr (self .access_level ), f'hostname' : repr (self .hostname ), f'llm_artifact_id' : repr (self .llm_artifact_id ), f'artifact_type' : repr (self .artifact_type ), f'deployed_llm_artifact_id' : repr (self .deployed_llm_artifact_id ), f'has_database' : repr (self .has_database ), f'has_storage' : repr (self .has_storage ), f'web_app_project_id' : repr (self .web_app_project_id ), f'parent_conversation_id' : repr (self .parent_conversation_id ), f'project_metadata' : repr (self .project_metadata ), f'memory_gb' : repr ( self . memory_gb ) }
7577 class_name = "HostedAppContainer"
7678 repr_str = ',\n ' .join ([f'{ key } ={ value } ' for key , value in repr_dict .items (
7779 ) if getattr (self , key , None ) is not None and key not in self .deprecated_keys ])
@@ -85,5 +87,5 @@ def to_dict(self):
8587 dict: The dict value representation of the class parameters
8688 """
8789 resp = {'hosted_app_container_id' : self .hosted_app_container_id , 'hosted_app_id' : self .hosted_app_id , 'deployment_conversation_id' : self .deployment_conversation_id , 'hosted_app_version' : self .hosted_app_version , 'name' : self .name , 'user_id' : self .user_id , 'email' : self .email , 'created_at' : self .created_at , 'updated_at' : self .updated_at , 'container_image' : self .container_image , 'route' : self .route , 'app_config' : self .app_config , 'is_dev' : self .is_dev , 'is_deployable' : self .is_deployable , 'is_preview_available' : self .is_preview_available ,
88- 'lifecycle' : self .lifecycle , 'status' : self .status , 'deployed_status' : self .deployed_status , 'access_level' : self .access_level , 'hostname' : self .hostname , 'llm_artifact_id' : self .llm_artifact_id , 'artifact_type' : self .artifact_type , 'deployed_llm_artifact_id' : self .deployed_llm_artifact_id , 'has_database' : self .has_database , 'has_storage' : self .has_storage , 'web_app_project_id' : self .web_app_project_id , 'parent_conversation_id' : self .parent_conversation_id , 'project_metadata' : self .project_metadata }
90+ 'lifecycle' : self .lifecycle , 'status' : self .status , 'deployed_status' : self .deployed_status , 'access_level' : self .access_level , 'hostname' : self .hostname , 'llm_artifact_id' : self .llm_artifact_id , 'artifact_type' : self .artifact_type , 'deployed_llm_artifact_id' : self .deployed_llm_artifact_id , 'has_database' : self .has_database , 'has_storage' : self .has_storage , 'web_app_project_id' : self .web_app_project_id , 'parent_conversation_id' : self .parent_conversation_id , 'project_metadata' : self .project_metadata , 'memory_gb' : self . memory_gb }
8991 return {key : value for key , value in resp .items () if value is not None and key not in self .deprecated_keys }
0 commit comments