| 14 | use uuid::Uuid; |
| 15 | |
| 16 | pub struct Environment { |
| 17 | namespace: String, |
| 18 | event_details: EventDetails, |
| 19 | pub id: String, |
| 20 | pub long_id: Uuid, |
| 21 | pub project_id: String, |
| 22 | pub project_long_id: Uuid, |
| 23 | pub owner_id: String, |
| 24 | pub organization_id: String, |
| 25 | pub organization_long_id: Uuid, |
| 26 | pub action: Action, |
| 27 | pub max_parallel_build: u32, |
| 28 | pub max_parallel_deploy: u32, |
| 29 | pub applications: Vec<Box<dyn ApplicationService>>, |
| 30 | pub containers: Vec<Box<dyn ContainerService>>, |
| 31 | pub routers: Vec<Box<dyn RouterService>>, |
| 32 | pub databases: Vec<Box<dyn DatabaseService>>, |
| 33 | pub jobs: Vec<Box<dyn JobService>>, |
| 34 | pub helm_charts: Vec<Box<dyn HelmChartService>>, |
| 35 | pub terraform_services: Vec<Box<dyn TerraformServiceTrait>>, |
| 36 | } |
| 37 | |
| 38 | impl Environment { |
| 39 | pub fn new( |
no outgoing calls