@@ -21,8 +21,9 @@ import (
2121)
2222
2323type CreateScenarioRequest struct {
24- Name string `json:"name"`
25- Hosts []CreateHostScenarioRequest `json:"hosts"`
24+ Name string `json:"name"`
25+ Location string `json:"location"`
26+ Hosts []CreateHostScenarioRequest `json:"hosts"`
2627}
2728
2829type CreateHostScenarioRequest struct {
@@ -34,6 +35,7 @@ type ScenarioResponse struct {
3435 ID string `json:"id"`
3536 Name string `json:"name"`
3637 CreatedAt time.Time `json:"createdAt"`
38+ Location string `json:"location"`
3739 Hosts []SimulatedHost `json:"hosts"`
3840}
3941
@@ -63,6 +65,7 @@ func ToScenarioResponse(m model.Scenario) ScenarioResponse {
6365 ID : m .ID .Hex (),
6466 Name : m .Name ,
6567 CreatedAt : m .CreatedAt ,
68+ Location : m .Location ,
6669 Hosts : simulatedHosts ,
6770 }
6871}
@@ -80,6 +83,7 @@ type ScenarioLicenseComplianceResponse struct {
8083 ID string `json:"id"`
8184 Name string `json:"name"`
8285 CreatedAt time.Time `json:"createdAt"`
86+ Location string `json:"location"`
8387 Licenses []LicenseComplianceSimulation `json:"licenses"`
8488}
8589
@@ -110,6 +114,7 @@ func ToScenarioLicenseComplianceResponse(m model.Scenario) ScenarioLicenseCompli
110114 ID : m .ID .Hex (),
111115 Name : m .Name ,
112116 CreatedAt : m .CreatedAt ,
117+ Location : m .Location ,
113118 Licenses : licenses ,
114119 }
115120}
@@ -118,6 +123,7 @@ type ScenarioLicenseUsedDatabaseResponse struct {
118123 ID string `json:"id"`
119124 Name string `json:"name"`
120125 CreatedAt time.Time `json:"createdAt"`
126+ Location string `json:"location"`
121127 Licenses []LicenseUsedDatabaseSimulation `json:"licenses"`
122128}
123129
@@ -148,6 +154,7 @@ func ToScenarioLicenseUsedDatabaseResponse(m model.Scenario) ScenarioLicenseUsed
148154 ID : m .ID .Hex (),
149155 Name : m .Name ,
150156 CreatedAt : m .CreatedAt ,
157+ Location : m .Location ,
151158 Licenses : licenses ,
152159 }
153160}
@@ -156,6 +163,7 @@ type ScenarioLicenseUsedHostResponse struct {
156163 ID string `json:"id"`
157164 Name string `json:"name"`
158165 CreatedAt time.Time `json:"createdAt"`
166+ Location string `json:"location"`
159167 Licenses []LicenseUsedHostSimulation `json:"licenses"`
160168}
161169
@@ -186,6 +194,7 @@ func ToScenarioLicenseUsedHostResponse(m model.Scenario) ScenarioLicenseUsedHost
186194 ID : m .ID .Hex (),
187195 Name : m .Name ,
188196 CreatedAt : m .CreatedAt ,
197+ Location : m .Location ,
189198 Licenses : licenses ,
190199 }
191200}
@@ -194,6 +203,7 @@ type ScenarioLicenseUsedClusterResponse struct {
194203 ID string `json:"id"`
195204 Name string `json:"name"`
196205 CreatedAt time.Time `json:"createdAt"`
206+ Location string `json:"location"`
197207 Licenses []LicenseUsedClusterSimulation `json:"licenses"`
198208}
199209
@@ -224,6 +234,7 @@ func ToScenarioLicenseUsedClusterResponse(m model.Scenario) ScenarioLicenseUsedC
224234 ID : m .ID .Hex (),
225235 Name : m .Name ,
226236 CreatedAt : m .CreatedAt ,
237+ Location : m .Location ,
227238 Licenses : licenses ,
228239 }
229240}
@@ -232,6 +243,7 @@ type ScenarioLicenseUsedClusterVeritasResponse struct {
232243 ID string `json:"id"`
233244 Name string `json:"name"`
234245 CreatedAt time.Time `json:"createdAt"`
246+ Location string `json:"location"`
235247 Licenses []LicenseUsedClsuterVeritasSimulation `json:"licenses"`
236248}
237249
@@ -262,6 +274,7 @@ func ToScenarioLicenseUsedClusterVeritasResponse(m model.Scenario) ScenarioLicen
262274 ID : m .ID .Hex (),
263275 Name : m .Name ,
264276 CreatedAt : m .CreatedAt ,
277+ Location : m .Location ,
265278 Licenses : licenses ,
266279 }
267280}
0 commit comments