ai_api_client_sdk.models.deployment module¶
- class ai_api_client_sdk.models.deployment.Deployment(id: str, deployment_url: str, configuration_id: str, configuration_name: str, scenario_id: str, status: Status, target_status: TargetStatus, created_at: datetime, modified_at: datetime, status_message: str = None, status_details: Dict[str, Any] = None, details: Dict[str, Any] = None, submission_time: datetime = None, start_time: datetime = None, completion_time: datetime = None, last_operation: Operation = None, latest_running_configuration_id: str = None, ttl: str = None, **kwargs)¶
Bases:
EnactmentThe Deployment object defines a deployment :param id: ID of the deployment :type id: str :param deployment_url: URL of the running deployment :type deployment_url: str :param configuration_id: ID of the configuration which configured the deployment :type configuration_id: str :param configuration_name: Name of the configuration which configured the deployment :type configuration_name: str :param scenario_id: ID of the scenario which the deployment belongs to :type scenario_id: str :param status: Status of the deployment :type status: class:ai_api_client_sdk.models.status.Status :param target_status: Target status of the deployment :type target_status: class:ai_api_client_sdk.models.target_status.TargetStatus :param created_at: Time when the deployment was created :type created_at: datetime :param modified_at: Time when the deployment was last modified :type modified_at: datetime :param status_message: A string, which gives information about the status of the deployment, defaults to None :type status_message: str, optional :param status_details: A dict, which gives detailed information about the status of the deployment, defaults to None :type status_details: Dict[str, Any], optional :param details: A dict, which gives information about the scaling and resources details of the deployment, defaults
to None
- Parameters:
submission_time (datetime, optional) – Time when the deployment was submitted
start_time (datetime, optional) – Time when the deployment status changed to RUNNING
completion_time (datetime, optional) – Time when the deployment status changed to DEAD/STOPPED
last_operation (Operation, optional) – Last operation applied to the deployment
latest_running_configuration_id (str, optional) – The configuration ID that was running, before a PATCH operation has modified the configuration ID of the deployment.
ttl (str, optional) – Time to live for a deployment
**kwargs – The keyword arguments are there in case there are additional attributes returned from server
- __init__(id: str, deployment_url: str, configuration_id: str, configuration_name: str, scenario_id: str, status: Status, target_status: TargetStatus, created_at: datetime, modified_at: datetime, status_message: str = None, status_details: Dict[str, Any] = None, details: Dict[str, Any] = None, submission_time: datetime = None, start_time: datetime = None, completion_time: datetime = None, last_operation: Operation = None, latest_running_configuration_id: str = None, ttl: str = None, **kwargs)¶
- static from_dict(deployment_dict: Dict[str, Any])¶
Returns a
ai_api_client_sdk.models.deployment.Deploymentobject, created from the values in the dict provided as parameter- Parameters:
deployment_dict (Dict[str, Any]) – Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_api_client_sdk.models.deployment.Deployment