@nutanix-scratch/lifecycle-js-client 4.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/LICENSE.txt +49 -0
  2. package/README.md +197 -0
  3. package/dist/Ntnx-Lifecycle-js-client-prod.js +1 -0
  4. package/dist/Ntnx-Lifecycle-js-client.js +1180 -0
  5. package/dist/es/ApiClient.d.ts +159 -0
  6. package/dist/es/ApiClient.js +1216 -0
  7. package/dist/es/Paginable.d.ts +95 -0
  8. package/dist/es/Paginable.js +287 -0
  9. package/dist/es/apis/config-endpoints.d.ts +51 -0
  10. package/dist/es/apis/config-endpoints.js +148 -0
  11. package/dist/es/apis/entities-endpoints.d.ts +68 -0
  12. package/dist/es/apis/entities-endpoints.js +166 -0
  13. package/dist/es/apis/images-endpoints.d.ts +59 -0
  14. package/dist/es/apis/images-endpoints.js +129 -0
  15. package/dist/es/apis/inventory-endpoints.d.ts +35 -0
  16. package/dist/es/apis/inventory-endpoints.js +104 -0
  17. package/dist/es/apis/notifications-endpoints.d.ts +47 -0
  18. package/dist/es/apis/notifications-endpoints.js +150 -0
  19. package/dist/es/apis/prechecks-endpoints.d.ts +39 -0
  20. package/dist/es/apis/prechecks-endpoints.js +113 -0
  21. package/dist/es/apis/recommendations-endpoints.d.ts +48 -0
  22. package/dist/es/apis/recommendations-endpoints.js +150 -0
  23. package/dist/es/apis/status-endpoints.d.ts +35 -0
  24. package/dist/es/apis/status-endpoints.js +104 -0
  25. package/dist/es/apis/upgrades-endpoints.d.ts +39 -0
  26. package/dist/es/apis/upgrades-endpoints.js +113 -0
  27. package/dist/es/index.d.ts +146 -0
  28. package/dist/es/index.js +580 -0
  29. package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
  30. package/dist/es/models/common/v1/config/Flag.js +275 -0
  31. package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
  32. package/dist/es/models/common/v1/config/KVPair.js +332 -0
  33. package/dist/es/models/common/v1/config/Message.d.ts +84 -0
  34. package/dist/es/models/common/v1/config/Message.js +354 -0
  35. package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
  36. package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
  37. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
  38. package/dist/es/models/common/v1/config/TenantAwareModel.js +243 -0
  39. package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
  40. package/dist/es/models/common/v1/response/ApiLink.js +280 -0
  41. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
  42. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +438 -0
  43. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
  44. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
  45. package/dist/es/models/lifecycle/v4/common/AvailableVersionStatus.d.ts +19 -0
  46. package/dist/es/models/lifecycle/v4/common/AvailableVersionStatus.js +121 -0
  47. package/dist/es/models/lifecycle/v4/common/CheckSumType.d.ts +19 -0
  48. package/dist/es/models/lifecycle/v4/common/CheckSumType.js +85 -0
  49. package/dist/es/models/lifecycle/v4/common/EntityBaseModel.d.ts +78 -0
  50. package/dist/es/models/lifecycle/v4/common/EntityBaseModel.js +375 -0
  51. package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.d.ts +59 -0
  52. package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.js +245 -0
  53. package/dist/es/models/lifecycle/v4/common/EntityType.d.ts +19 -0
  54. package/dist/es/models/lifecycle/v4/common/EntityType.js +85 -0
  55. package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +76 -0
  56. package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.js +293 -0
  57. package/dist/es/models/lifecycle/v4/common/HypervisorType.d.ts +19 -0
  58. package/dist/es/models/lifecycle/v4/common/HypervisorType.js +91 -0
  59. package/dist/es/models/lifecycle/v4/common/LocationInfo.d.ts +58 -0
  60. package/dist/es/models/lifecycle/v4/common/LocationInfo.js +276 -0
  61. package/dist/es/models/lifecycle/v4/common/LocationType.d.ts +19 -0
  62. package/dist/es/models/lifecycle/v4/common/LocationType.js +91 -0
  63. package/dist/es/models/lifecycle/v4/common/ManagementServer.d.ts +107 -0
  64. package/dist/es/models/lifecycle/v4/common/ManagementServer.js +377 -0
  65. package/dist/es/models/lifecycle/v4/common/NotificationType.d.ts +19 -0
  66. package/dist/es/models/lifecycle/v4/common/NotificationType.js +85 -0
  67. package/dist/es/models/lifecycle/v4/common/OperationType.d.ts +19 -0
  68. package/dist/es/models/lifecycle/v4/common/OperationType.js +97 -0
  69. package/dist/es/models/lifecycle/v4/common/PrechecksSpec.d.ts +81 -0
  70. package/dist/es/models/lifecycle/v4/common/PrechecksSpec.js +342 -0
  71. package/dist/es/models/lifecycle/v4/common/SystemAutoMgmtFlag.d.ts +19 -0
  72. package/dist/es/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +79 -0
  73. package/dist/es/models/lifecycle/v4/common/UpgradeSpec.d.ts +48 -0
  74. package/dist/es/models/lifecycle/v4/common/UpgradeSpec.js +292 -0
  75. package/dist/es/models/lifecycle/v4/error/AppMessage.d.ts +108 -0
  76. package/dist/es/models/lifecycle/v4/error/AppMessage.js +432 -0
  77. package/dist/es/models/lifecycle/v4/error/ErrorResponse.d.ts +48 -0
  78. package/dist/es/models/lifecycle/v4/error/ErrorResponse.js +296 -0
  79. package/dist/es/models/lifecycle/v4/error/SchemaValidationError.d.ts +98 -0
  80. package/dist/es/models/lifecycle/v4/error/SchemaValidationError.js +407 -0
  81. package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
  82. package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +318 -0
  83. package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +59 -0
  84. package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +311 -0
  85. package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +59 -0
  86. package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +311 -0
  87. package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +59 -0
  88. package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.js +311 -0
  89. package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +59 -0
  90. package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.js +311 -0
  91. package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +59 -0
  92. package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.js +311 -0
  93. package/dist/es/models/lifecycle/v4/resources/AvailableVersion.d.ts +182 -0
  94. package/dist/es/models/lifecycle/v4/resources/AvailableVersion.js +705 -0
  95. package/dist/es/models/lifecycle/v4/resources/Config.d.ts +150 -0
  96. package/dist/es/models/lifecycle/v4/resources/Config.js +627 -0
  97. package/dist/es/models/lifecycle/v4/resources/ConnectivityType.d.ts +19 -0
  98. package/dist/es/models/lifecycle/v4/resources/ConnectivityType.js +91 -0
  99. package/dist/es/models/lifecycle/v4/resources/DependentEntity.d.ts +37 -0
  100. package/dist/es/models/lifecycle/v4/resources/DependentEntity.js +255 -0
  101. package/dist/es/models/lifecycle/v4/resources/DeployableVersion.d.ts +47 -0
  102. package/dist/es/models/lifecycle/v4/resources/DeployableVersion.js +297 -0
  103. package/dist/es/models/lifecycle/v4/resources/Entity.d.ts +155 -0
  104. package/dist/es/models/lifecycle/v4/resources/Entity.js +663 -0
  105. package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +74 -0
  106. package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.js +325 -0
  107. package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +59 -0
  108. package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.js +311 -0
  109. package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +59 -0
  110. package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +311 -0
  111. package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +59 -0
  112. package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +311 -0
  113. package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +59 -0
  114. package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +311 -0
  115. package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +59 -0
  116. package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.js +311 -0
  117. package/dist/es/models/lifecycle/v4/resources/Image.d.ts +109 -0
  118. package/dist/es/models/lifecycle/v4/resources/Image.js +464 -0
  119. package/dist/es/models/lifecycle/v4/resources/ImageFile.d.ts +127 -0
  120. package/dist/es/models/lifecycle/v4/resources/ImageFile.js +453 -0
  121. package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +60 -0
  122. package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.js +281 -0
  123. package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +59 -0
  124. package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +333 -0
  125. package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +59 -0
  126. package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.js +333 -0
  127. package/dist/es/models/lifecycle/v4/resources/Notification.d.ts +42 -0
  128. package/dist/es/models/lifecycle/v4/resources/Notification.js +279 -0
  129. package/dist/es/models/lifecycle/v4/resources/NotificationDetail.d.ts +60 -0
  130. package/dist/es/models/lifecycle/v4/resources/NotificationDetail.js +281 -0
  131. package/dist/es/models/lifecycle/v4/resources/NotificationItem.d.ts +79 -0
  132. package/dist/es/models/lifecycle/v4/resources/NotificationItem.js +405 -0
  133. package/dist/es/models/lifecycle/v4/resources/RecommendationResult.d.ts +92 -0
  134. package/dist/es/models/lifecycle/v4/resources/RecommendationResult.js +488 -0
  135. package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.d.ts +62 -0
  136. package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.js +305 -0
  137. package/dist/es/models/lifecycle/v4/resources/SeverityLevel.d.ts +19 -0
  138. package/dist/es/models/lifecycle/v4/resources/SeverityLevel.js +91 -0
  139. package/dist/es/models/lifecycle/v4/resources/StatusInfo.d.ts +82 -0
  140. package/dist/es/models/lifecycle/v4/resources/StatusInfo.js +358 -0
  141. package/dist/es/models/lifecycle/v4/resources/TargetEntity.d.ts +70 -0
  142. package/dist/es/models/lifecycle/v4/resources/TargetEntity.js +330 -0
  143. package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +59 -0
  144. package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +311 -0
  145. package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +35 -0
  146. package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.js +243 -0
  147. package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +70 -0
  148. package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +286 -0
  149. package/dist/es/models/prism/v4/config/TaskReference.d.ts +50 -0
  150. package/dist/es/models/prism/v4/config/TaskReference.js +252 -0
  151. package/dist/es/models/validation/ValidationError.d.ts +13 -0
  152. package/dist/es/models/validation/ValidationError.js +60 -0
  153. package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
  154. package/dist/es/models/validation/ValidationScopes.js +38 -0
  155. package/dist/es/utils/ValidationUtils.d.ts +13 -0
  156. package/dist/es/utils/ValidationUtils.js +85 -0
  157. package/dist/lib/ApiClient.d.ts +159 -0
  158. package/dist/lib/ApiClient.js +1216 -0
  159. package/dist/lib/Paginable.d.ts +95 -0
  160. package/dist/lib/Paginable.js +287 -0
  161. package/dist/lib/apis/config-endpoints.d.ts +51 -0
  162. package/dist/lib/apis/config-endpoints.js +148 -0
  163. package/dist/lib/apis/entities-endpoints.d.ts +68 -0
  164. package/dist/lib/apis/entities-endpoints.js +166 -0
  165. package/dist/lib/apis/images-endpoints.d.ts +59 -0
  166. package/dist/lib/apis/images-endpoints.js +129 -0
  167. package/dist/lib/apis/inventory-endpoints.d.ts +35 -0
  168. package/dist/lib/apis/inventory-endpoints.js +104 -0
  169. package/dist/lib/apis/notifications-endpoints.d.ts +47 -0
  170. package/dist/lib/apis/notifications-endpoints.js +150 -0
  171. package/dist/lib/apis/prechecks-endpoints.d.ts +39 -0
  172. package/dist/lib/apis/prechecks-endpoints.js +113 -0
  173. package/dist/lib/apis/recommendations-endpoints.d.ts +48 -0
  174. package/dist/lib/apis/recommendations-endpoints.js +150 -0
  175. package/dist/lib/apis/status-endpoints.d.ts +35 -0
  176. package/dist/lib/apis/status-endpoints.js +104 -0
  177. package/dist/lib/apis/upgrades-endpoints.d.ts +39 -0
  178. package/dist/lib/apis/upgrades-endpoints.js +113 -0
  179. package/dist/lib/index.d.ts +146 -0
  180. package/dist/lib/index.js +580 -0
  181. package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
  182. package/dist/lib/models/common/v1/config/Flag.js +275 -0
  183. package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
  184. package/dist/lib/models/common/v1/config/KVPair.js +332 -0
  185. package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
  186. package/dist/lib/models/common/v1/config/Message.js +354 -0
  187. package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
  188. package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
  189. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
  190. package/dist/lib/models/common/v1/config/TenantAwareModel.js +243 -0
  191. package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
  192. package/dist/lib/models/common/v1/response/ApiLink.js +280 -0
  193. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
  194. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +438 -0
  195. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
  196. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
  197. package/dist/lib/models/lifecycle/v4/common/AvailableVersionStatus.d.ts +19 -0
  198. package/dist/lib/models/lifecycle/v4/common/AvailableVersionStatus.js +121 -0
  199. package/dist/lib/models/lifecycle/v4/common/CheckSumType.d.ts +19 -0
  200. package/dist/lib/models/lifecycle/v4/common/CheckSumType.js +85 -0
  201. package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.d.ts +78 -0
  202. package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.js +375 -0
  203. package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.d.ts +59 -0
  204. package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.js +245 -0
  205. package/dist/lib/models/lifecycle/v4/common/EntityType.d.ts +19 -0
  206. package/dist/lib/models/lifecycle/v4/common/EntityType.js +85 -0
  207. package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +76 -0
  208. package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.js +293 -0
  209. package/dist/lib/models/lifecycle/v4/common/HypervisorType.d.ts +19 -0
  210. package/dist/lib/models/lifecycle/v4/common/HypervisorType.js +91 -0
  211. package/dist/lib/models/lifecycle/v4/common/LocationInfo.d.ts +58 -0
  212. package/dist/lib/models/lifecycle/v4/common/LocationInfo.js +276 -0
  213. package/dist/lib/models/lifecycle/v4/common/LocationType.d.ts +19 -0
  214. package/dist/lib/models/lifecycle/v4/common/LocationType.js +91 -0
  215. package/dist/lib/models/lifecycle/v4/common/ManagementServer.d.ts +107 -0
  216. package/dist/lib/models/lifecycle/v4/common/ManagementServer.js +377 -0
  217. package/dist/lib/models/lifecycle/v4/common/NotificationType.d.ts +19 -0
  218. package/dist/lib/models/lifecycle/v4/common/NotificationType.js +85 -0
  219. package/dist/lib/models/lifecycle/v4/common/OperationType.d.ts +19 -0
  220. package/dist/lib/models/lifecycle/v4/common/OperationType.js +97 -0
  221. package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.d.ts +81 -0
  222. package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.js +342 -0
  223. package/dist/lib/models/lifecycle/v4/common/SystemAutoMgmtFlag.d.ts +19 -0
  224. package/dist/lib/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +79 -0
  225. package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.d.ts +48 -0
  226. package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.js +292 -0
  227. package/dist/lib/models/lifecycle/v4/error/AppMessage.d.ts +108 -0
  228. package/dist/lib/models/lifecycle/v4/error/AppMessage.js +432 -0
  229. package/dist/lib/models/lifecycle/v4/error/ErrorResponse.d.ts +48 -0
  230. package/dist/lib/models/lifecycle/v4/error/ErrorResponse.js +296 -0
  231. package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.d.ts +98 -0
  232. package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.js +407 -0
  233. package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
  234. package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +318 -0
  235. package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +59 -0
  236. package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +311 -0
  237. package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +59 -0
  238. package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +311 -0
  239. package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +59 -0
  240. package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.js +311 -0
  241. package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +59 -0
  242. package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.js +311 -0
  243. package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +59 -0
  244. package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.js +311 -0
  245. package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.d.ts +182 -0
  246. package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.js +705 -0
  247. package/dist/lib/models/lifecycle/v4/resources/Config.d.ts +150 -0
  248. package/dist/lib/models/lifecycle/v4/resources/Config.js +627 -0
  249. package/dist/lib/models/lifecycle/v4/resources/ConnectivityType.d.ts +19 -0
  250. package/dist/lib/models/lifecycle/v4/resources/ConnectivityType.js +91 -0
  251. package/dist/lib/models/lifecycle/v4/resources/DependentEntity.d.ts +37 -0
  252. package/dist/lib/models/lifecycle/v4/resources/DependentEntity.js +255 -0
  253. package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.d.ts +47 -0
  254. package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.js +297 -0
  255. package/dist/lib/models/lifecycle/v4/resources/Entity.d.ts +155 -0
  256. package/dist/lib/models/lifecycle/v4/resources/Entity.js +663 -0
  257. package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +74 -0
  258. package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.js +325 -0
  259. package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +59 -0
  260. package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.js +311 -0
  261. package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +59 -0
  262. package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +311 -0
  263. package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +59 -0
  264. package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +311 -0
  265. package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +59 -0
  266. package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +311 -0
  267. package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +59 -0
  268. package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.js +311 -0
  269. package/dist/lib/models/lifecycle/v4/resources/Image.d.ts +109 -0
  270. package/dist/lib/models/lifecycle/v4/resources/Image.js +464 -0
  271. package/dist/lib/models/lifecycle/v4/resources/ImageFile.d.ts +127 -0
  272. package/dist/lib/models/lifecycle/v4/resources/ImageFile.js +453 -0
  273. package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +60 -0
  274. package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.js +281 -0
  275. package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +59 -0
  276. package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +333 -0
  277. package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +59 -0
  278. package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.js +333 -0
  279. package/dist/lib/models/lifecycle/v4/resources/Notification.d.ts +42 -0
  280. package/dist/lib/models/lifecycle/v4/resources/Notification.js +279 -0
  281. package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.d.ts +60 -0
  282. package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.js +281 -0
  283. package/dist/lib/models/lifecycle/v4/resources/NotificationItem.d.ts +79 -0
  284. package/dist/lib/models/lifecycle/v4/resources/NotificationItem.js +405 -0
  285. package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.d.ts +92 -0
  286. package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.js +488 -0
  287. package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.d.ts +62 -0
  288. package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.js +305 -0
  289. package/dist/lib/models/lifecycle/v4/resources/SeverityLevel.d.ts +19 -0
  290. package/dist/lib/models/lifecycle/v4/resources/SeverityLevel.js +91 -0
  291. package/dist/lib/models/lifecycle/v4/resources/StatusInfo.d.ts +82 -0
  292. package/dist/lib/models/lifecycle/v4/resources/StatusInfo.js +358 -0
  293. package/dist/lib/models/lifecycle/v4/resources/TargetEntity.d.ts +70 -0
  294. package/dist/lib/models/lifecycle/v4/resources/TargetEntity.js +330 -0
  295. package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +59 -0
  296. package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +311 -0
  297. package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +35 -0
  298. package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.js +243 -0
  299. package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +70 -0
  300. package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +286 -0
  301. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +50 -0
  302. package/dist/lib/models/prism/v4/config/TaskReference.js +252 -0
  303. package/dist/lib/models/validation/ValidationError.d.ts +13 -0
  304. package/dist/lib/models/validation/ValidationError.js +60 -0
  305. package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
  306. package/dist/lib/models/validation/ValidationScopes.js +38 -0
  307. package/dist/lib/utils/ValidationUtils.d.ts +13 -0
  308. package/dist/lib/utils/ValidationUtils.js +85 -0
  309. package/package.json +53 -0
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Lifecycle=t())}("undefined"==typeof self?this:self,(()=>(()=>{var e={960:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},340:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=a,a.default=a,a.stable=f,a.stableStringify=f;var n="[...]",r="[Circular]",o=[],i=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,n,r){var a;void 0===r&&(r=s()),l(e,"",0,[],void 0,0,r);try{a=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function u(e,t,n,r){var s=Object.getOwnPropertyDescriptor(r,n);void 0!==s.get?s.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,s])):i.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function l(e,o,i,s,a,c,f){var d;if(c+=1,"object"===t(e)&&null!==e){for(d=0;d<s.length;d++)if(s[d]===e)return void u(r,e,o,a);if(void 0!==f.depthLimit&&c>f.depthLimit)return void u(n,e,o,a);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u(n,e,o,a);if(s.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,s,e,c,f);else{var p=Object.keys(e);for(d=0;d<p.length;d++){var y=p[d];l(e[y],y,d,s,e,c,f)}}s.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function f(e,t,n,r){void 0===r&&(r=s());var a,u=d(e,"",0,[],void 0,0,r)||e;try{a=0===i.length?JSON.stringify(u,t,n):JSON.stringify(u,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function d(e,i,s,a,l,f,p){var y;if(f+=1,"object"===t(e)&&null!==e){for(y=0;y<a.length;y++)if(a[y]===e)return void u(r,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&f>p.depthLimit)return void u(n,e,i,l);if(void 0!==p.edgesLimit&&s+1>p.edgesLimit)return void u(n,e,i,l);if(a.push(e),Array.isArray(e))for(y=0;y<e.length;y++)d(e[y],y,y,a,e,f,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];d(e[b],b,y,a,e,f,p),h[b]=e[b]}if(void 0===l)return h;o.push([l,i,e]),l[i]=h}a.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},784:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="win32"===process.platform,i=n(818);function s(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function a(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function f(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",o=l.exec(r);return[n,o[1],o[2],o[3]]}function d(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function p(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var o;if(r>=0?o=arguments[r]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var a=d(o),u=a.device,l=a.isUnc,c=a.isAbsolute,f=a.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=f+"\\"+t,n=c),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=s(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=d(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,a=/[\\\/]$/.test(i);return(i=s(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&a&&(i+="\\"),r&&(n=p(n)),n+(o?"\\":"")+i},c.isAbsolute=function(e){return d(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),c.normalize(r)},c.relative=function(e,t){e=c.resolve(e),t=c.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),o=a(t.split("\\")),i=a(n.split("\\")),s=a(r.split("\\")),u=Math.min(i.length,s.length),l=u,f=0;f<u;f++)if(i[f]!==s[f]){l=f;break}if(0==l)return t;var d=[];for(f=l;f<i.length;f++)d.push("..");return(d=d.concat(o.slice(l))).join("\\")},c._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=c.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},c.dirname=function(e){var t=f(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return f(e)[3]},c.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,o=e.base||"";return n?n[n.length-1]===c.sep?n+o:n+c.sep+o:o},c.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=f(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},c.sep="\\",c.delimiter=";";var y=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,h={};function v(e){return y.exec(e).slice(1)}h.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=s(e.split("/"),!t).join("/"))||"."},h.normalize=function(e){var t=h.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=s(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},h.isAbsolute=function(e){return"/"===e.charAt(0)},h.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return h.normalize(e)},h.relative=function(e,t){e=h.resolve(e).substr(1),t=h.resolve(t).substr(1);for(var n=a(e.split("/")),r=a(t.split("/")),o=Math.min(n.length,r.length),i=o,s=0;s<o;s++)if(n[s]!==r[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(r.slice(i))).join("/")},h._makeLong=function(e){return e},h.dirname=function(e){var t=v(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},h.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},h.extname=function(e){return v(e)[3]},h.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+h.sep:"")+(e.base||"")},h.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},h.sep="/",h.delimiter=":",e.exports=o?c:h,e.exports.posix=h,e.exports.win32=c},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var s=t[o-1],a=0;a<i+1;a++)t.push(s)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}))},e.exports=n},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),s=n(340),a=n(695),u=n(388),l=n(19),c=n(619);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var d=t=e.exports;t.Request=m,d.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){h(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&h(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},o=e.split("&"),i=0,s=o.length;i<s;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function g(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(t=(n=i[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=p(n.slice(t+1)),s[r]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function m(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new g(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=d("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}d.serializeObject=y,d.parseString=v,d.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},d.serialize={"application/x-www-form-urlencoded":y,"application/json":s},d.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(g.prototype),g.prototype._parseBody=function(e){var t=d.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=d.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},g.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},d.Response=g,i(m.prototype),a(m.prototype),m.prototype.type=function(e){return this.set("Content-Type",d.types[e]||e),this},m.prototype.accept=function(e){return this.set("Accept",d.types[e]||e),this},m.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,(function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")}))},m.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},m.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},m.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},m.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},m.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},m.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},m.prototype.ca=m.prototype.agent,m.prototype.buffer=m.prototype.ca,m.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},m.prototype.pipe=m.prototype.write,m.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},m.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},m.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},m.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=d.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||d.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=d.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},d.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new d.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,d.get=function(e,t,n){var r=d("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.head=function(e,t,n){var r=d("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.options=function(e,t,n){var r=d("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.del=w,d.delete=w,d.patch=function(e,t,n){var r=d("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.post=function(e,t,n){var r=d("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.put=function(e,t,n){var r=d("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},388:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&s.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},597:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<i;u=r[++n])h(u)||!w(u)?s+=" "+u:s+=" "+a(u);return s},t.deprecate=function(e,r){if(g(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var i,s={};function a(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=c(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):h(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),j(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(k(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(m(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var l,w="",$=!1,E=["{","}"];return p(n)&&($=!0,E=["[","]"]),k(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),m(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+f(n)),0!==s.length||$&&0!=n.length?r<0?m(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=$?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)T(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))})),i}(e,n,r,a,s):s.map((function(t){return d(e,n,r,a,t,$)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,E)):E[0]+w+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),T(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(u.value)<0?(a=h(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),g(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function h(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function g(e){return void 0===e}function m(e){return w(e)&&"[object RegExp]"===$(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===$(e)}function j(e){return w(e)&&("[object Error]"===$(e)||e instanceof Error)}function k(e){return"function"==typeof e}function $(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(g(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=y,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=g,t.isRegExp=m,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[E((e=new Date).getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},548:()=>{},799:()=>{},545:()=>{},965:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>Uf});var e=n(585),t=n.n(e);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}(t.links);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":n.linkFirst=s.href;break;case"prev":n.linkPrev=s.href;break;case"next":n.linkNext=s.href;break;case"last":n.linkLast=s.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],(n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=X.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();l.prototype.linkFirst=null,l.prototype.linkPrev=null,l.prototype.linkNext=null,l.prototype.linkLast=null,l.prototype.apiClient=null,l.prototype.page=null,l.prototype.resultsPerPage=null,l.prototype.resultsTotal=null;var c=new Uint8Array(16);function f(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}const d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=[],y=0;y<256;++y)p.push((y+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&d.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return h(r)};var b,g=n(540),m=n.n(g),w=n(545),O=n.n(w),j=n(799),k=n.n(j),$=n(784),E=n.n($),P=n(548);function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function S(){S=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),F(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=T(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},S.apply(this,arguments)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=x(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x(r.key),r)}}function x(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:t+""}function U(e,t,n){M(e,t),t.set(e,n)}function M(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _(e,t){return e.get(N(e,t))}function V(e,t,n){return e.set(N(e,t),n),n}function N(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}m()(t());var J=new WeakMap,L=new WeakMap,W=new WeakMap,H=new WeakMap,B=new WeakMap,z=new WeakMap,q=new WeakMap,G=new WeakMap,K=new WeakSet,X=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),M(this,n=K),n.add(this),U(this,J,void 0),U(this,L,void 0),U(this,W,void 0),U(this,H,void 0),U(this,B,void 0),U(this,z,void 0),U(this,q,void 0),U(this,G,void 0),V(G,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyPath:{type:"apiKey",in:"header",name:"X_NTNX_AUTHN"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},V(B,this,3e4),V(z,this,3e4),V(q,this,18e5),this.readTimeout=_(z,this),this.connectTimeout=_(B,this),this.cache=!0,V(L,this,null),this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,V(W,this,null),this.username=null,this.password=null,V(H,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,i=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(i,"=([0-9]+)")));s&&(o=s[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===T(n)){var o,i;for(var s in n)if(n.hasOwnProperty(s)){o=s,i=n[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,o),l=e.convertToType(t[s],i);a[u]=l}return a}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],(o=[{key:"verifySsl",get:function(){return _(H,this)},set:function(e){this.requestAgent=e?null:new(O().Agent)({rejectUnauthorized:!1}),V(H,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=k().createWriteStream(e,{flags:"a"})),V(W,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&V(L,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),V(J,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==_(J,this)&&""!==this.host&&""!==this.port?r=_(J,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o.replace(/\{([\w-]+)\}/g,(function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)}))}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=A(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,o,i,s,a,u,l,c,f,d){var p=this,y=this.buildUrl(e,o),h=t()(r,y);if(h.oldCallback=h.callback,h.callback=function(e,t){if(t&&t.status){var n=t.status;n>=400&&401!==n&&408!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},N(K,this,te).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),h.query(N(K,this,ee).call(this,i)),h.set(this.defaultHeaders).set(N(K,this,ee).call(this,s)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==s["NTNX-Request-Id"]&&void 0!==s["NTNX-Request-Id"])){var b=v();h.set(N(K,this,ee).call(this,{"NTNX-Request-Id":b}))}var g="undefined"!=typeof window&&void 0!==window.document;g||h.set(N(K,this,ee).call(this,{"User-Agent":"Nutanix-lifecycle-js-client/4.0.1-beta.1"})),this.requestAgent&&h.agent(this.requestAgent);var m={};m.response=N(K,this,ie).call(this,this.connectTimeout,_(B,this)),m.deadline=N(K,this,ie).call(this,this.readTimeout,_(z,this)),h.timeout(m);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:N(K,this,Y).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),N(K,this,ue).call(this,_(G,this).INFO,null,"Request URL :",r,y),N(K,this,ue).call(this,_(G,this).DEBUG,N(K,this,fe),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(N(K,this,ee).call(this,a));else if("multipart/form-data"==w){var O=N(K,this,ee).call(this,a);for(var j in O)O.hasOwnProperty(j)&&(N(K,this,Z).call(this,O[j])?h.attach(j,O[j]):h.field(j,O[j]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(N(K,this,ue).call(this,_(G,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var $;try{$=n(965)}catch(e){N(K,this,ue).call(this,_(G,this).ERROR,null,"Error fetching steam/web")}u instanceof $.ReadableStream?u.pipeTo(new $.WritableStream({write:function(e){h.write(e)},close:function(){N(K,this,ue).call(this,_(G,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){N(K,this,ue).call(this,_(G,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise((function(t,n){h.on("error",(function(e){N(K,p,ue).call(p,_(G,p).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){N(K,p,de).call(p,r,e,i,d,t,n)}))}))}u&&h.send(u)}"Blob"==typeof d?h.responseType("blob"):"String"===d&&h.responseType("string"),N(K,this,ae).call(this,h),N(K,this,ue).call(this,_(G,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var P=s.hasOwnProperty("Accept")?s.Accept:N(K,this,Y).call(this,f);return s.hasOwnProperty("Accept")&&"application/octet-stream"===s.Accept||1==f.length&&"application/octet-stream"===f[0]?(h.accept("application/octet-stream"),h.buffer(!1),new Promise((function(e,t){var r=null;if(g){var o;try{o=n(965)}catch(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof o.WritableStream){var i=p.downloadDestination.getWriter();try{h.on("data",(function(e){i.write(e)}))}catch(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Issue while downloading file",e)}h.on("response",(function(t){N(K,p,ue).call(p,_(G,p).INFO,null,"Response Status :",t.status),N(K,p,ue).call(p,_(G,p).DEBUG,N(K,p,fe),"Response Headers :",t.headers);var n=N(K,p,re).call(p,t,d);e({data:n,response:t})})).on("error",(function(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Caught the following error :",e),t(e)}))}else{var s="Incompatible downloadDestination for Browser Environment, must be WritableStream";N(K,p,ue).call(p,_(G,p).ERROR,null,s),t(s)}}else{null!==p.downloadDestination&&void 0!==p.downloadDestination&&"string"==typeof p.downloadDestination||(N(K,p,ue).call(p,_(G,p).ERROR,null,"Incompatible downloadDestination must be string, is",p.downloadDestination),N(K,p,ue).call(p,_(G,p).ERROR,null,"Downloading file to base directory"),p.downloadDestination="."),r=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt";var a=k().createWriteStream(r);N(K,p,ue).call(p,_(G,p).INFO,null,"Streaming response to : ",r),h.pipe(a),h.on("response",(function(n){N(K,p,ue).call(p,_(G,p).INFO,null,"Response Status :",n.status),N(K,p,ue).call(p,_(G,p).DEBUG,N(K,p,fe),"Response Headers :",n.headers);var o=N(K,p,re).call(p,n,d);n.ok||(N(K,p,ue).call(p,_(G,p).ERROR,null,o),t(D(D({},n.error),{},{data:o})));var i="";if(void 0!==n.headers["content-disposition"]&&null!==n.headers["content-disposition"]){var s=n.headers["content-disposition"].match(S(/.*filename="(.*)".*/,{filename:1})),u=E().parse(s.groups.filename);i=p.downloadDestination+"/"+u.name+"_"+Date.now()+u.ext,void 0===o&&((o=new d).data={path:E().parse(i),$objectType:"Path"})}a.on("finish",(function(){N(K,p,ue).call(p,_(G,p).INFO,null,"Finished streaming response"),0!==i.length?(N(K,p,ue).call(p,_(G,p).INFO,null,"Content-Disposition header found [",i,"] is final filename"),a.close(),k().rename(r,i,(function(){e({data:o,response:n})}))):(N(K,p,ue).call(p,_(G,p).ERROR,null,"Content-Disposition header not found [",r,"] is final filename"),e({data:o,response:n}))})).on("error",(function(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Caught the following error :",e),error.data=N(K,p,ne).call(p,error),t(e)}))})).on("error",(function(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Caught the following error :",err),null!==e.response&&void 0!==e.response?e.data=N(K,p,re).call(p,e.response,d):e.data=N(K,p,ne).call(p,e),t(e)}))}}))):(P&&h.accept(P),new Promise((function(t,n){h.on("error",(function(e){N(K,p,ue).call(p,_(G,p).DEBUG,null,"Caught the following error :",e)})).retry(p.maxRetryAttempts,p.retryInterval,[]).then((function(r){N(K,p,de).call(p,r,e,i,d,t,n)})).catch((function(e){N(K,p,ue).call(p,_(G,p).DEBUG,null,"Caught error during the request!"),N(K,p,ue).call(p,_(G,p).ERROR,null,e),null!==e.response&&void 0!==e.response?e.data=N(K,p,re).call(p,e.response,d):e.data=N(K,p,ne).call(p,e),n(e)}))})))}}])&&C(r.prototype,o),i&&C(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function Q(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function Y(e){for(var t=0;t<e.length;t++)if(N(K,this,Q).call(this,e[t]))return e[t];return e[0]}function Z(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof P.Blob&&e instanceof P.Blob||"function"==typeof File&&e instanceof File}function ee(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];N(K,this,Z).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function te(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),N(K,n,ue).call(n,_(G,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}N(K,n,ue).call(n,_(G,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),N(K,n,ue).call(n,_(G,n).DEBUG,null,"oauth2 applied to request");break;default:throw N(K,n,ue).call(n,_(G,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function ne(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function re(e,t){if(null==e||null==t||204==e.status)return null;var n=e.body;return(null==n||"object"===T(n)&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),b.convertToType(n,t)}function oe(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function ie(e,t){return e<=0?e=t:e>_(q,this)&&(e=_(q,this)),e}function se(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=A(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}V(L,this,t),N(K,this,ue).call(this,_(G,this).DEBUG,null,"Retained cookie :",t)}else V(L,this,null)}function ae(e){null!=_(L,this)&&e.set(N(K,this,ee).call(this,{Cookie:_(L,this)}))}function ue(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===T(e)&&"key"in e&&"value"in e&&"symbol"===T(e.value)||(e=_(G,this).INFO),!N(K,this,le).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var i=r.join(" ");i=N(K,this,ce).call(this)+" "+e.key+" - "+i,void 0!==_(W,this)&&null!==_(W,this)&&"function"==typeof _(W,this).log?_(W,this).log(i):console.log(i)}}function le(e){return!this.debug&&e===_(G,this).DEBUG}function ce(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function fe(e){if("object"!==T(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function de(e,t,n,r,o,i){try{N(K,this,ue).call(this,_(G,this).INFO,null,"Response Status :",e.status),N(K,this,ue).call(this,_(G,this).DEBUG,N(K,this,fe),"Response Headers :",e.headers),N(K,this,se).call(this,e||{});var s=N(K,this,re).call(this,e,r);N(K,this,ue).call(this,_(G,this).DEBUG,null,"Response Body :",s),e.ok?(this.addEtagToReservedMap(e,s),N(K,this,oe).call(this,s,t,n),o({data:s,response:e})):(N(K,this,ue).call(this,_(G,this).ERROR,null,s),i(D(D({},e.error),{},{data:s})))}catch(e){N(K,this,ue).call(this,_(G,this).DEBUG,null,"Caught error while processing response!"),N(K,this,ue).call(this,_(G,this).ERROR,null,e),e.data=N(K,this,ne).call(this,e),i(e)}}b=X,X.instance=new X;var pe={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return pe[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===pe.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(pe);const ye=pe;function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,be(r.key),r)}}function be(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==he(t)?t:t+""}var ge=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n},(t=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&ve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ke(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ke(r.key),r)}}function ke(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==me(t)?t:t+""}var $e=new WeakSet,Ee=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=$e),n.add(t),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Oe(Oe(Oe({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("value","undefined or null"):new ge("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Oe({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&je(t.prototype,n),r&&je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=De(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,De(r.key),r)}}function De(e){var t=function(e,t){if("object"!=Te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Te(t)?t:t+""}function Ae(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ee.prototype.name=void 0,Ee.prototype.value=!1,Ee.prototype.$reserved=void 0,Ee.prototype.$objectType=void 0,Ee.prototype.$unknownFields=void 0;var Re=new WeakSet,Ce=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Re),n.add(t),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fe(Fe(Fe({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ae(Re,this,xe).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ae(Re,this,xe).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("value","undefined or null"):new ge("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)n.setValue([]);else{for(i=[],s=(r=t.value)[0].hasOwnProperty("$objectType")?r[0].$objectType:Te(r[0]),o=0;o<r.length;o++)switch(s){case"string":case"number":i.push(r[o]);break;default:throw"Unknown list of type "+s+" in data"}n.setValue(i)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:Te(t.value)){case"string":case"boolean":case"number":n.setValue(t.value);break;case"object":n.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Fe({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Ie(t.prototype,n),r&&Ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xe(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Te(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}Ce.prototype.name=void 0,Ce.prototype.value=void 0,Ce.prototype.$reserved=void 0,Ce.prototype.$objectType=void 0,Ce.prototype.$unknownFields=void 0;var Ue={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ue).find((function(t){return Ue[t]===e}));return null==t?Ue.$UNKNOWN:Ue[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ue.$UNKNOWN:case Ue.$REDACTED:case Ue.INFO:case Ue.WARNING:case Ue.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(Ue);const Me=Ue;function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Le(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Le(r.key),r)}}function Le(e){var t=function(e,t){if("object"!=_e(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_e(t)?t:t+""}var We=new WeakSet,He=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=We),n.add(t),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ne(Ne(Ne(Ne(Ne({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("severity","undefined or null"):new ge("locale","undefined or null"):new ge("message","undefined or null"):new ge("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(Me.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ne({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Je(t.prototype,n),r&&Je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ke(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ke(r.key),r)}}function Ke(e){var t=function(e,t){if("object"!=Be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Be(t)?t:t+""}He.prototype.code=void 0,He.prototype.message=void 0,He.prototype.locale="en_US",He.prototype.severity=void 0,He.prototype.$reserved=void 0,He.prototype.$objectType=void 0,He.prototype.$unknownFields=void 0;var Xe=new WeakSet,Qe=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Xe),n.add(t),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qe(qe(qe({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("rel","undefined or null"):new ge("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=qe({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Ge(t.prototype,n),r&&Ge(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ye(e){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ye(e)}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=nt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nt(r.key),r)}}function nt(e){var t=function(e,t){if("object"!=Ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ye(t)?t:t+""}Qe.prototype.href=void 0,Qe.prototype.rel=void 0,Qe.prototype.$reserved=void 0,Qe.prototype.$objectType=void 0,Qe.prototype.$unknownFields=void 0;var rt=new WeakSet,ot=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=rt),n.add(t),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return et(et(et(et(et(et({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"flags"!==t||void 0!==this.flags&&null!==this.flags?"links"!==t||void 0!==this.links&&null!==this.links?"totalAvailableResults"!==t||void 0!==this.totalAvailableResults&&null!==this.totalAvailableResults?"messages"!==t||void 0!==this.messages&&null!==this.messages?"extraInfo"!==t||void 0!==this.extraInfo&&null!==this.extraInfo?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("extraInfo","undefined or null"):new ge("messages","undefined or null"):new ge("totalAvailableResults","undefined or null"):new ge("links","undefined or null"):new ge("flags","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(s=[],r=t.flags,i=0;i<r.length;i++)o=Ee.constructFromObject(r[i],void 0),s.push(o);n.setFlags(s)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(s=[],r=t.links,i=0;i<r.length;i++)o=Qe.constructFromObject(r[i],void 0),s.push(o);n.setLinks(s)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&n.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(s=[],r=t.messages,i=0;i<r.length;i++)o=He.constructFromObject(r[i],void 0),s.push(o);n.setMessages(s)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(s=[],r=t.extraInfo,i=0;i<r.length;i++)o=Ce.constructFromObject(r[i],void 0),s.push(o);n.setExtraInfo(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=et({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&tt(t.prototype,n),r&&tt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ct(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ct(r.key),r)}}function ct(e){var t=function(e,t){if("object"!=it(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==it(t)?t:t+""}function ft(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ot.prototype.flags=void 0,ot.prototype.links=void 0,ot.prototype.totalAvailableResults=void 0,ot.prototype.messages=void 0,ot.prototype.extraInfo=void 0,ot.prototype.$reserved=void 0,ot.prototype.$objectType=void 0,ot.prototype.$unknownFields=void 0;var dt=new WeakSet,pt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=dt),n.add(t),this.$objectType="lifecycle.v4.error.AppMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ut(ut(ut(ut(ut(ut(ut({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:ft(dt,this,yt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:ft(dt,this,yt).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("argumentsMap","undefined or null"):new ge("errorGroup","undefined or null"):new ge("locale","undefined or null"):new ge("code","undefined or null"):new ge("severity","undefined or null"):new ge("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(Me.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ut({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&lt(t.prototype,n),r&&lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function yt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===it(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ht(e){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ht(e)}function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=mt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mt(r.key),r)}}function mt(e){var t=function(e,t){if("object"!=ht(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ht(t)?t:t+""}pt.prototype.message=void 0,pt.prototype.severity=void 0,pt.prototype.code=void 0,pt.prototype.locale="en_US",pt.prototype.errorGroup=void 0,pt.prototype.argumentsMap=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var wt=new WeakSet,Ot=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=wt),n.add(t),this.$objectType="lifecycle.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bt(bt(bt(bt({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("attributePath","undefined or null"):new ge("message","undefined or null"):new ge("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=bt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&gt(t.prototype,n),r&&gt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jt(e){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(e)}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Pt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pt(r.key),r)}}function Pt(e){var t=function(e,t){if("object"!=jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jt(t)?t:t+""}Ot.prototype.location=void 0,Ot.prototype.message=void 0,Ot.prototype.attributePath=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;var Tt=new WeakSet,St=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Tt),n.add(t),this.$objectType="lifecycle.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $t($t($t($t($t($t({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:this.getTimestamp()}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("validationErrorMessages","undefined or null"):new ge("path","undefined or null"):new ge("error","undefined or null"):new ge("statusCode","undefined or null"):new ge("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&n.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&n.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(s=[],r=t.validationErrorMessages,i=0;i<r.length;i++)o=Ot.constructFromObject(r[i],void 0),s.push(o);n.setValidationErrorMessages(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=$t({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Et(t.prototype,n),r&&Et(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ct(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ct(r.key),r)}}function Ct(e){var t=function(e,t){if("object"!=It(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==It(t)?t:t+""}function xt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}St.prototype.timestamp=void 0,St.prototype.statusCode=void 0,St.prototype.error=void 0,St.prototype.path=void 0,St.prototype.validationErrorMessages=void 0,St.prototype.$reserved=void 0,St.prototype.$objectType=void 0,St.prototype.$unknownFields=void 0;var Ut=new WeakSet,Mt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ut),n.add(t),this.$objectType="lifecycle.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return At(At({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):xt(Ut,this,_t).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):xt(Ut,this,_t).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)n.setError([]);else{for(s=[],a=(r=t.error)[0].hasOwnProperty("$objectType")?r[0].$objectType:It(r[0]),i=0;i<r.length;i++){if("lifecycle.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";o=pt.constructFromObject(r[i],void 0),s.push(o)}n.setError(s)}else{if("lifecycle.v4.error.SchemaValidationError"!==(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:It(t.error)))throw"Unknown datatype "+a+" in data";n.setError(St.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var l in n.$unknownFields=At({},t.$unknownFields),t)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=t[l])}return n}}],n&&Rt(t.prototype,n),r&&Rt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function _t(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===It(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Vt(e){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(e)}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jt(r.key),r)}}function Jt(e){var t=function(e,t){if("object"!=Vt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vt(t)?t:t+""}Mt.prototype.error=void 0,Mt.prototype.$reserved=void 0,Mt.prototype.$objectType=void 0,Mt.prototype.$unknownFields=void 0;var Lt=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],null&&Nt(e.prototype,null),t&&Nt(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Wt(e){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(e)}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=qt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qt(r.key),r)}}function qt(e){var t=function(e,t){if("object"!=Wt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wt(t)?t:t+""}var Gt=new WeakSet,Kt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Gt),n.add(t),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?Bt(Bt({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new ge("tenantId","undefined or null");if(!Lt.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Bt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&zt(t.prototype,n),r&&zt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=en(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,en(r.key),r)}}function en(e){var t=function(e,t){if("object"!=Xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xt(t)?t:t+""}function tn(e,t,n){return t=rn(t),function(e,t){if(t&&("object"===Xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nn()?Reflect.construct(t,n||[],rn(e).constructor):t.apply(e,n))}function nn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nn=function(){return!!e})()}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rn(e)}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}Kt.prototype.tenantId=void 0,Kt.prototype.$reserved=void 0,Kt.prototype.$objectType=void 0,Kt.prototype.$unknownFields=void 0;var sn=new WeakSet,an=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=tn(this,t),r=sn),r.add(n),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&on(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return Yt(!1===e?Yt(Yt(Yt({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Yt({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new ge("extId","undefined or null");if(null==e){if(!Lt.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===ye.update&&!Lt.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"links"!==t||void 0!==this.links&&null!==this.links?new ge(t,"no such property exists"):new ge("links","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,Kt.constructFromObject(e,n,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&n.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(s=[],r=e.links,i=0;i<r.length;i++)o=Qe.constructFromObject(r[i],void 0),s.push(o);n.setLinks(s)}if(!a)for(var u in n.$unknownFields=Yt({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Zt(n.prototype,r),o&&Zt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Kt);an.prototype.extId=void 0,an.prototype.links=void 0;var un={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SOFTWARE:"SOFTWARE",FIRMWARE:"FIRMWARE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(un).find((function(t){return un[t]===e}));return null==t?un.$UNKNOWN:un[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case un.$UNKNOWN:case un.$REDACTED:case un.SOFTWARE:case un.FIRMWARE:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|SOFTWARE|FIRMWARE }")}}};Object.freeze(un);const ln=un;function cn(e){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cn(e)}function fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=yn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yn(r.key),r)}}function yn(e){var t=function(e,t){if("object"!=cn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cn(t)?t:t+""}function hn(e,t,n){return t=bn(t),function(e,t){if(t&&("object"===cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vn()?Reflect.construct(t,n||[],bn(e).constructor):t.apply(e,n))}function vn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vn=function(){return!!e})()}function bn(e){return bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bn(e)}function gn(e,t){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gn(e,t)}var mn=new WeakSet,wn=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=hn(this,t),r=mn),r.add(n),e.$objectType="lifecycle.v4.common.EntityBaseModel",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}(t,e),n=t,r=[{key:"getEntityClass",value:function(){return this.entityClass}},{key:"setEntityClass",value:function(e){this.entityClass=e}},{key:"getEntityModel",value:function(){return this.entityModel}},{key:"setEntityModel",value:function(e){this.entityModel=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getEntityVersion",value:function(){return this.entityVersion}},{key:"setEntityVersion",value:function(e){this.entityVersion=e}},{key:"getHardwareFamily",value:function(){return this.hardwareFamily}},{key:"setHardwareFamily",value:function(e){this.hardwareFamily=e}},{key:"toJson",value:function(e){return dn(!1===e?dn(dn(dn(dn(dn(dn(dn(dn({},void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):dn(dn(dn(dn(dn(dn({},void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"entityClass"!==t||void 0!==this.entityClass&&null!==this.entityClass?"entityModel"!==t||void 0!==this.entityModel&&null!==this.entityModel?"entityType"!==t||void 0!==this.entityType&&null!==this.entityType?"entityVersion"!==t||void 0!==this.entityVersion&&null!==this.entityVersion?"hardwareFamily"!==t||void 0!==this.hardwareFamily&&null!==this.hardwareFamily?new ge(t,"no such property exists"):new ge("hardwareFamily","undefined or null"):new ge("entityVersion","undefined or null"):new ge("entityType","undefined or null"):new ge("entityModel","undefined or null"):new ge("entityClass","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("entityClass")&&null!==e.entityClass&&void 0!==e.entityClass&&n.setEntityClass(e.entityClass),e.hasOwnProperty("entityModel")&&null!==e.entityModel&&void 0!==e.entityModel&&n.setEntityModel(e.entityModel),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&n.setEntityType(ln.constructFromObject(e.entityType)),e.hasOwnProperty("entityVersion")&&null!==e.entityVersion&&void 0!==e.entityVersion&&n.setEntityVersion(e.entityVersion),e.hasOwnProperty("hardwareFamily")&&null!==e.hardwareFamily&&void 0!==e.hardwareFamily&&n.setHardwareFamily(e.hardwareFamily),!r))for(var o in n.$unknownFields=dn({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}}],r&&pn(n.prototype,r),o&&pn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(an);wn.prototype.entityClass=void 0,wn.prototype.entityModel=void 0,wn.prototype.entityType=void 0,wn.prototype.entityVersion=void 0,wn.prototype.hardwareFamily=void 0;var On={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NODE:"NODE",CLUSTER:"CLUSTER",PC:"PC",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(On).find((function(t){return On[t]===e}));return null==t?On.$UNKNOWN:On[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case On.$UNKNOWN:case On.$REDACTED:case On.NODE:case On.CLUSTER:case On.PC:return;default:throw new Error("Invalid : must be LocationType.{ $UNKNOWN|$REDACTED|NODE|CLUSTER|PC }")}}};Object.freeze(On);const jn=On;function kn(e){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(e)}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Tn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tn(r.key),r)}}function Tn(e){var t=function(e,t){if("object"!=kn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kn(t)?t:t+""}var Sn=new WeakSet,Fn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Sn),n.add(t),this.$objectType="lifecycle.v4.common.LocationInfo",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getUuid",value:function(){return this.uuid}},{key:"setUuid",value:function(e){this.uuid=e}},{key:"getLocationType",value:function(){return this.locationType}},{key:"setLocationType",value:function(e){this.locationType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return En(En(!1===e?En({},void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}):{},void 0!==this.getLocationType()&&null!==this.getLocationType()?{locationType:this.getLocationType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new ge("uuid","undefined or null");if(!Lt.validatePattern(this.uuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("uuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"locationType"!==t||void 0!==this.locationType&&null!==this.locationType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("locationType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("uuid")&&null!==t.uuid&&void 0!==t.uuid&&n.setUuid(t.uuid),t.hasOwnProperty("locationType")&&null!==t.locationType&&void 0!==t.locationType&&n.setLocationType(jn.constructFromObject(t.locationType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=En({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Pn(t.prototype,n),r&&Pn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Fn.prototype.uuid=void 0,Fn.prototype.locationType=void 0,Fn.prototype.$reserved=void 0,Fn.prototype.$objectType=void 0,Fn.prototype.$unknownFields=void 0;var In={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RECOMMENDED:"RECOMMENDED",CRITICAL:"CRITICAL",LATEST:"LATEST",DEPRECATED:"DEPRECATED",EMERGENCY:"EMERGENCY",AVAILABLE:"AVAILABLE",LTS:"LTS",STS:"STS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(In).find((function(t){return In[t]===e}));return null==t?In.$UNKNOWN:In[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case In.$UNKNOWN:case In.$REDACTED:case In.RECOMMENDED:case In.CRITICAL:case In.LATEST:case In.DEPRECATED:case In.EMERGENCY:case In.AVAILABLE:case In.LTS:case In.STS:return;default:throw new Error("Invalid : must be AvailableVersionStatus.{ $UNKNOWN|$REDACTED|RECOMMENDED|CRITICAL|LATEST|DEPRECATED|EMERGENCY|AVAILABLE|LTS|STS }")}}};Object.freeze(In);const Dn=In;function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Un(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Un(r.key),r)}}function Un(e){var t=function(e,t){if("object"!=An(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=An(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==An(t)?t:t+""}function Mn(e,t,n){return t=Vn(t),function(e,t){if(t&&("object"===An(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_n()?Reflect.construct(t,n||[],Vn(e).constructor):t.apply(e,n))}function _n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_n=function(){return!!e})()}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vn(e)}function Nn(e,t){return Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nn(e,t)}var Jn=new WeakSet,Ln=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Mn(this,t),r=Jn),r.add(n),e.$objectType="lifecycle.v4.resources.DependentEntity",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(e,t)}(t,e),n=t,r=[{key:"getDependentVersions",value:function(){return this.dependentVersions}},{key:"setDependentVersions",value:function(e){this.dependentVersions=e}},{key:"toJson",value:function(e){return Cn(!1===e?Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn({},void 0!==this.getDependentVersions()&&null!==this.getDependentVersions()?{dependentVersions:this.getDependentVersions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Cn(Cn(Cn(Cn(Cn(Cn({},void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("dependentVersions"===t){if(void 0===this.dependentVersions||null===this.dependentVersions)return new ge("dependentVersions","undefined or null");if(!Lt.validateMaxItems(this.dependentVersions,100))return new ge("dependentVersions","does not satisfy required maxItems constraint: 100")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("dependentVersions")&&null!==e.dependentVersions&&void 0!==e.dependentVersions){for(s=[],r=e.dependentVersions,i=0;i<r.length;i++)o=Ce.constructFromObject(r[i],void 0),s.push(o);n.setDependentVersions(s)}if(!a)for(var u in n.$unknownFields=Cn({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&xn(n.prototype,r),o&&xn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function Wn(e){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=qn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qn(r.key),r)}}function qn(e){var t=function(e,t){if("object"!=Wn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wn(t)?t:t+""}Ln.prototype.dependentVersions=void 0;var Gn=new WeakSet,Kn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Gn),n.add(t),this.$objectType="lifecycle.v4.resources.AvailableVersion",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getAvailableVersionUuid",value:function(){return this.availableVersionUuid}},{key:"setAvailableVersionUuid",value:function(e){this.availableVersionUuid=e}},{key:"getOrder",value:function(){return this.order}},{key:"setOrder",value:function(e){this.order=e}},{key:"getDisablementReason",value:function(){return this.disablementReason}},{key:"setDisablementReason",value:function(e){this.disablementReason=e}},{key:"getReleaseNotes",value:function(){return this.releaseNotes}},{key:"setReleaseNotes",value:function(e){this.releaseNotes=e}},{key:"getReleaseDate",value:function(){return this.releaseDate}},{key:"setReleaseDate",value:function(e){this.releaseDate=e}},{key:"getCustomMessage",value:function(){return this.customMessage}},{key:"setCustomMessage",value:function(e){this.customMessage=e}},{key:"getChildEntities",value:function(){return this.childEntities}},{key:"setChildEntities",value:function(e){this.childEntities=e}},{key:"getGroupUuid",value:function(){return this.groupUuid}},{key:"setGroupUuid",value:function(e){this.groupUuid=e}},{key:"getDependencies",value:function(){return this.dependencies}},{key:"setDependencies",value:function(e){this.dependencies=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Bn(Bn(Bn(!1===e?Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getAvailableVersionUuid()&&null!==this.getAvailableVersionUuid()?{availableVersionUuid:this.getAvailableVersionUuid()}:{}),void 0!==this.getOrder()&&null!==this.getOrder()?{order:this.getOrder()}:{}),void 0!==this.getDisablementReason()&&null!==this.getDisablementReason()?{disablementReason:this.getDisablementReason()}:{}),void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getReleaseDate()&&null!==this.getReleaseDate()?{releaseDate:this.getReleaseDate()}:{}),void 0!==this.getCustomMessage()&&null!==this.getCustomMessage()?{customMessage:this.getCustomMessage()}:{}),void 0!==this.getChildEntities()&&null!==this.getChildEntities()?{childEntities:this.getChildEntities()}:{}):Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getAvailableVersionUuid()&&null!==this.getAvailableVersionUuid()?{availableVersionUuid:this.getAvailableVersionUuid()}:{}),void 0!==this.getOrder()&&null!==this.getOrder()?{order:this.getOrder()}:{}),void 0!==this.getDisablementReason()&&null!==this.getDisablementReason()?{disablementReason:this.getDisablementReason()}:{}),void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getReleaseDate()&&null!==this.getReleaseDate()?{releaseDate:this.getReleaseDate()}:{}),void 0!==this.getCustomMessage()&&null!==this.getCustomMessage()?{customMessage:this.getCustomMessage()}:{}),void 0!==this.getGroupUuid()&&null!==this.getGroupUuid()?{groupUuid:this.getGroupUuid()}:{}),void 0!==this.getDependencies()&&null!==this.getDependencies()?{dependencies:this.getDependencies().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("version"===t){if(void 0===this.version||null===this.version)return new ge("version","undefined or null");if(!Lt.validateMaxLength(this.version,128))return new ge("version","does not satisfy required maxLength constraint: 128")}if("status"===t&&(void 0===this.status||null===this.status))return new ge("status","undefined or null");if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new ge("isEnabled","undefined or null");if("availableVersionUuid"===t){if(void 0===this.availableVersionUuid||null===this.availableVersionUuid)return new ge("availableVersionUuid","undefined or null");if(!Lt.validatePattern(this.availableVersionUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("availableVersionUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("order"===t){if(void 0===this.order||null===this.order)return new ge("order","undefined or null");if(!Lt.validateMaximum(this.order,1e4))return new ge("order","does not satisfy required maximum constraint: 10000");if(!Lt.validateMinimum(this.order,1))return new ge("order","does not satisfy required minimum constraint: 1")}if("disablementReason"===t){if(void 0===this.disablementReason||null===this.disablementReason)return new ge("disablementReason","undefined or null");if(!Lt.validateMaxLength(this.disablementReason,512))return new ge("disablementReason","does not satisfy required maxLength constraint: 512")}if("releaseNotes"===t){if(void 0===this.releaseNotes||null===this.releaseNotes)return new ge("releaseNotes","undefined or null");if(!Lt.validateMaxLength(this.releaseNotes,1024))return new ge("releaseNotes","does not satisfy required maxLength constraint: 1024")}if("releaseDate"===t&&(void 0===this.releaseDate||null===this.releaseDate))return new ge("releaseDate","undefined or null");if("customMessage"===t){if(void 0===this.customMessage||null===this.customMessage)return new ge("customMessage","undefined or null");if(!Lt.validateMaxLength(this.customMessage,512))return new ge("customMessage","does not satisfy required maxLength constraint: 512")}if("childEntities"===t){if(void 0===this.childEntities||null===this.childEntities)return new ge("childEntities","undefined or null");if(!Lt.validateMaxItems(this.childEntities,100))return new ge("childEntities","does not satisfy required maxItems constraint: 100")}if("groupUuid"===t){if(void 0===this.groupUuid||null===this.groupUuid)return new ge("groupUuid","undefined or null");if(!Lt.validatePattern(this.groupUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("groupUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("dependencies"===t){if(void 0===this.dependencies||null===this.dependencies)return new ge("dependencies","undefined or null");if(!Lt.validateMaxItems(this.dependencies,100))return new ge("dependencies","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("version")&&null!==t.version&&void 0!==t.version&&n.setVersion(t.version),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(Dn.constructFromObject(t.status)),t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&n.setIsEnabled(t.isEnabled),t.hasOwnProperty("availableVersionUuid")&&null!==t.availableVersionUuid&&void 0!==t.availableVersionUuid&&n.setAvailableVersionUuid(t.availableVersionUuid),t.hasOwnProperty("order")&&null!==t.order&&void 0!==t.order&&n.setOrder(t.order),t.hasOwnProperty("disablementReason")&&null!==t.disablementReason&&void 0!==t.disablementReason&&n.setDisablementReason(t.disablementReason),t.hasOwnProperty("releaseNotes")&&null!==t.releaseNotes&&void 0!==t.releaseNotes&&n.setReleaseNotes(t.releaseNotes),t.hasOwnProperty("releaseDate")&&null!==t.releaseDate&&void 0!==t.releaseDate&&n.setReleaseDate(t.releaseDate),t.hasOwnProperty("customMessage")&&null!==t.customMessage&&void 0!==t.customMessage&&n.setCustomMessage(t.customMessage),t.hasOwnProperty("childEntities")&&null!==t.childEntities&&void 0!==t.childEntities){for(s=[],r=t.childEntities,i=0;i<r.length;i++)s.push(r[i]);n.setChildEntities(s)}if(t.hasOwnProperty("groupUuid")&&null!==t.groupUuid&&void 0!==t.groupUuid&&n.setGroupUuid(t.groupUuid),t.hasOwnProperty("dependencies")&&null!==t.dependencies&&void 0!==t.dependencies){for(s=[],r=t.dependencies,i=0;i<r.length;i++)o=Ln.constructFromObject(r[i],void 0),s.push(o);n.setDependencies(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Bn({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&zn(t.prototype,n),r&&zn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xn(e){return Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xn(e)}function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=er(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,er(r.key),r)}}function er(e){var t=function(e,t){if("object"!=Xn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xn(t)?t:t+""}function tr(e,t,n){return t=rr(t),function(e,t){if(t&&("object"===Xn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nr()?Reflect.construct(t,n||[],rr(e).constructor):t.apply(e,n))}function nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nr=function(){return!!e})()}function rr(e){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rr(e)}function or(e,t){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},or(e,t)}Kn.prototype.version=void 0,Kn.prototype.status=void 0,Kn.prototype.isEnabled=!0,Kn.prototype.availableVersionUuid=void 0,Kn.prototype.order=void 0,Kn.prototype.disablementReason=void 0,Kn.prototype.releaseNotes=void 0,Kn.prototype.releaseDate=void 0,Kn.prototype.customMessage=void 0,Kn.prototype.childEntities=void 0,Kn.prototype.groupUuid=void 0,Kn.prototype.dependencies=void 0,Kn.prototype.$reserved=void 0,Kn.prototype.$objectType=void 0,Kn.prototype.$unknownFields=void 0;var ir=new WeakSet,sr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=tr(this,t),r=ir),r.add(n),e.$objectType="lifecycle.v4.resources.Entity",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&or(e,t)}(t,e),n=t,r=[{key:"getEntityDescription",value:function(){return this.entityDescription}},{key:"setEntityDescription",value:function(e){this.entityDescription=e}},{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"getTargetVersion",value:function(){return this.targetVersion}},{key:"setTargetVersion",value:function(e){this.targetVersion=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getDeviceId",value:function(){return this.deviceId}},{key:"setDeviceId",value:function(e){this.deviceId=e}},{key:"getGroupUuid",value:function(){return this.groupUuid}},{key:"setGroupUuid",value:function(e){this.groupUuid=e}},{key:"getEntityDetails",value:function(){return this.entityDetails}},{key:"setEntityDetails",value:function(e){this.entityDetails=e}},{key:"getChildEntities",value:function(){return this.childEntities}},{key:"setChildEntities",value:function(e){this.childEntities=e}},{key:"getAvailableVersions",value:function(){return this.availableVersions}},{key:"setAvailableVersions",value:function(e){this.availableVersions=e}},{key:"getSubEntities",value:function(){return this.subEntities}},{key:"setSubEntities",value:function(e){this.subEntities=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return Yn(!1===e?Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn({},void 0!==this.getEntityDescription()&&null!==this.getEntityDescription()?{entityDescription:this.getEntityDescription()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getTargetVersion()&&null!==this.getTargetVersion()?{targetVersion:this.getTargetVersion()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getDeviceId()&&null!==this.getDeviceId()?{deviceId:this.getDeviceId()}:{}),void 0!==this.getGroupUuid()&&null!==this.getGroupUuid()?{groupUuid:this.getGroupUuid()}:{}),void 0!==this.getEntityDetails()&&null!==this.getEntityDetails()?{entityDetails:this.getEntityDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getChildEntities()&&null!==this.getChildEntities()?{childEntities:this.getChildEntities()}:{}),void 0!==this.getAvailableVersions()&&null!==this.getAvailableVersions()?{availableVersions:this.getAvailableVersions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSubEntities()&&null!==this.getSubEntities()?{subEntities:this.getSubEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn({},void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getSubEntities()&&null!==this.getSubEntities()?{subEntities:this.getSubEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("entityDescription"===t){if(void 0===this.entityDescription||null===this.entityDescription)return new ge("entityDescription","undefined or null");if(!Lt.validateMaxLength(this.entityDescription,256))return new ge("entityDescription","does not satisfy required maxLength constraint: 256")}if("locationInfo"===t&&(void 0===this.locationInfo||null===this.locationInfo))return new ge("locationInfo","undefined or null");if("targetVersion"===t&&(void 0===this.targetVersion||null===this.targetVersion))return new ge("targetVersion","undefined or null");if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new ge("lastUpdatedTime","undefined or null");if("deviceId"===t&&(void 0===this.deviceId||null===this.deviceId))return new ge("deviceId","undefined or null");if("groupUuid"===t){if(void 0===this.groupUuid||null===this.groupUuid)return new ge("groupUuid","undefined or null");if(!Lt.validatePattern(this.groupUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("groupUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("entityDetails"===t){if(void 0===this.entityDetails||null===this.entityDetails)return new ge("entityDetails","undefined or null");if(!Lt.validateMaxItems(this.entityDetails,100))return new ge("entityDetails","does not satisfy required maxItems constraint: 100")}if("childEntities"===t){if(void 0===this.childEntities||null===this.childEntities)return new ge("childEntities","undefined or null");if(!Lt.validateMaxItems(this.childEntities,100))return new ge("childEntities","does not satisfy required maxItems constraint: 100")}if("availableVersions"===t){if(void 0===this.availableVersions||null===this.availableVersions)return new ge("availableVersions","undefined or null");if(!Lt.validateMaxItems(this.availableVersions,100))return new ge("availableVersions","does not satisfy required maxItems constraint: 100")}if("subEntities"===t){if(void 0===this.subEntities||null===this.subEntities)return new ge("subEntities","undefined or null");if(!Lt.validateMaxItems(this.subEntities,100))return new ge("subEntities","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new ge("clusterExtId","undefined or null");if(!Lt.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("entityDescription")&&null!==e.entityDescription&&void 0!==e.entityDescription&&n.setEntityDescription(e.entityDescription),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(Fn.constructFromObject(e.locationInfo)),e.hasOwnProperty("targetVersion")&&null!==e.targetVersion&&void 0!==e.targetVersion&&n.setTargetVersion(e.targetVersion),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("deviceId")&&null!==e.deviceId&&void 0!==e.deviceId&&n.setDeviceId(e.deviceId),e.hasOwnProperty("groupUuid")&&null!==e.groupUuid&&void 0!==e.groupUuid&&n.setGroupUuid(e.groupUuid),e.hasOwnProperty("entityDetails")&&null!==e.entityDetails&&void 0!==e.entityDetails){for(s=[],r=e.entityDetails,i=0;i<r.length;i++)o=Ce.constructFromObject(r[i],void 0),s.push(o);n.setEntityDetails(s)}if(e.hasOwnProperty("childEntities")&&null!==e.childEntities&&void 0!==e.childEntities){for(s=[],r=e.childEntities,i=0;i<r.length;i++)s.push(r[i]);n.setChildEntities(s)}if(e.hasOwnProperty("availableVersions")&&null!==e.availableVersions&&void 0!==e.availableVersions){for(s=[],r=e.availableVersions,i=0;i<r.length;i++)o=Kn.constructFromObject(r[i],void 0),s.push(o);n.setAvailableVersions(s)}if(e.hasOwnProperty("subEntities")&&null!==e.subEntities&&void 0!==e.subEntities){for(s=[],r=e.subEntities,i=0;i<r.length;i++)o=wn.constructFromObject(r[i],void 0),s.push(o);n.setSubEntities(s)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),!a)for(var u in n.$unknownFields=Yn({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Zn(n.prototype,r),o&&Zn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ur(e){return ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ur(e)}function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=dr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dr(r.key),r)}}function dr(e){var t=function(e,t){if("object"!=ur(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ur(t)?t:t+""}function pr(e,t,n){return t=hr(t),function(e,t){if(t&&("object"===ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,yr()?Reflect.construct(t,n||[],hr(e).constructor):t.apply(e,n))}function yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yr=function(){return!!e})()}function hr(e){return hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hr(e)}function vr(e,t){return vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vr(e,t)}function br(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}sr.prototype.entityDescription=void 0,sr.prototype.locationInfo=void 0,sr.prototype.targetVersion=void 0,sr.prototype.lastUpdatedTime=void 0,sr.prototype.deviceId=void 0,sr.prototype.groupUuid=void 0,sr.prototype.entityDetails=void 0,sr.prototype.childEntities=void 0,sr.prototype.availableVersions=void 0,sr.prototype.subEntities=void 0,sr.prototype.clusterExtId=void 0;var gr=new WeakSet,mr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=pr(this,t),r=gr),r.add(n),e.$objectType="lifecycle.v4.resources.GetEntityByIdApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vr(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return cr(cr(cr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):br(gr,this,wr).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):br(gr,this,wr).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ur(e.data)){case"lifecycle.v4.resources.Entity":n.setData(sr.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=cr({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&fr(n.prototype,r),o&&fr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function wr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ar(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ar(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===ur(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jr(e){return jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(e)}function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Pr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pr(r.key),r)}}function Pr(e){var t=function(e,t){if("object"!=jr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=jr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jr(t)?t:t+""}function Tr(e,t,n){return t=Fr(t),function(e,t){if(t&&("object"===jr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sr()?Reflect.construct(t,n||[],Fr(e).constructor):t.apply(e,n))}function Sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sr=function(){return!!e})()}function Fr(e){return Fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fr(e)}function Ir(e,t){return Ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ir(e,t)}function Dr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}mr.prototype.metadata=void 0,mr.prototype.data=void 0,mr.prototype.$reserved=void 0,mr.prototype.$objectType=void 0,mr.prototype.$unknownFields=void 0;var Ar=new WeakSet,Rr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Tr(this,t),r=Ar),r.add(n),e.$objectType="lifecycle.v4.resources.ListEntitiesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ir(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $r($r($r({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Dr(Ar,this,Cr).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Dr(Ar,this,Cr).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:jr(r[0]),i=0;i<r.length;i++){if("lifecycle.v4.resources.Entity"!==a)throw"Unknown list of type "+a+" in data";o=sr.constructFromObject(r[i],void 0),s.push(o)}n.setData(s)}else{if("lifecycle.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:jr(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Mt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=$r({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&Er(n.prototype,r),o&&Er(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Cr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Or(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===jr(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function xr(e){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(e)}function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Vr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vr(r.key),r)}}function Vr(e){var t=function(e,t){if("object"!=xr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xr(t)?t:t+""}function Nr(e,t){return e.get(Jr(e,t))}function Jr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Rr.prototype.metadata=void 0,Rr.prototype.data=void 0,Rr.prototype.$reserved=void 0,Rr.prototype.$objectType=void 0,Rr.prototype.$unknownFields=void 0;var Lr=new WeakMap,Wr=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=Lr),i.set(o,s),this.apiClient=t||X.instance,n=Lr,r=new Set,n.set(Jr(n,this),r),Nr(Lr,this).add("authorization"),Nr(Lr,this).add("cookie"),Nr(Lr,this).add("host"),Nr(Lr,this).add("user-agent")},t=[{key:"getEntityById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getEntityById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Nr(Lr,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Mr({},o),s=mr;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/entities/{extId}","GET",r,{},i,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listEntities",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Mr(Mr(Mr(Mr(Mr({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){Nr(Lr,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Mr({},o),s=Rr;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/entities","GET",{},r,i,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&_r(e.prototype,t),n&&_r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Hr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CONNECTED_SITE:"CONNECTED_SITE",DARKSITE_WEB_SERVER:"DARKSITE_WEB_SERVER",DARKSITE_DIRECT_UPLOAD:"DARKSITE_DIRECT_UPLOAD",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Hr).find((function(t){return Hr[t]===e}));return null==t?Hr.$UNKNOWN:Hr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Hr.$UNKNOWN:case Hr.$REDACTED:case Hr.CONNECTED_SITE:case Hr.DARKSITE_WEB_SERVER:case Hr.DARKSITE_DIRECT_UPLOAD:return;default:throw new Error("Invalid : must be ConnectivityType.{ $UNKNOWN|$REDACTED|CONNECTED_SITE|DARKSITE_WEB_SERVER|DARKSITE_DIRECT_UPLOAD }")}}};Object.freeze(Hr);const Br=Hr;function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Xr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xr(r.key),r)}}function Xr(e){var t=function(e,t){if("object"!=zr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zr(t)?t:t+""}function Qr(e,t,n){return t=Zr(t),function(e,t){if(t&&("object"===zr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yr()?Reflect.construct(t,n||[],Zr(e).constructor):t.apply(e,n))}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yr=function(){return!!e})()}function Zr(e){return Zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zr(e)}function eo(e,t){return eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eo(e,t)}var to=new WeakSet,no=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Qr(this,t),r=to),r.add(n),e.$objectType="lifecycle.v4.resources.Config",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eo(e,t)}(t,e),n=t,r=[{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(e){this.url=e}},{key:"getIsAutoInventoryEnabled",value:function(){return this.isAutoInventoryEnabled}},{key:"setIsAutoInventoryEnabled",value:function(e){this.isAutoInventoryEnabled=e}},{key:"getAutoInventorySchedule",value:function(){return this.autoInventorySchedule}},{key:"setAutoInventorySchedule",value:function(e){this.autoInventorySchedule=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getDisplayVersion",value:function(){return this.displayVersion}},{key:"setDisplayVersion",value:function(e){this.displayVersion=e}},{key:"getConnectivityType",value:function(){return this.connectivityType}},{key:"setConnectivityType",value:function(e){this.connectivityType=e}},{key:"getIsHttpsEnabled",value:function(){return this.isHttpsEnabled}},{key:"setIsHttpsEnabled",value:function(e){this.isHttpsEnabled=e}},{key:"getSupportedSoftwareEntities",value:function(){return this.supportedSoftwareEntities}},{key:"setSupportedSoftwareEntities",value:function(e){this.supportedSoftwareEntities=e}},{key:"getDeprecatedSoftwareEntities",value:function(){return this.deprecatedSoftwareEntities}},{key:"setDeprecatedSoftwareEntities",value:function(e){this.deprecatedSoftwareEntities=e}},{key:"getIsFrameworkBundleUploaded",value:function(){return this.isFrameworkBundleUploaded}},{key:"setIsFrameworkBundleUploaded",value:function(e){this.isFrameworkBundleUploaded=e}},{key:"getHasModuleAutoUpgradeEnabled",value:function(){return this.hasModuleAutoUpgradeEnabled}},{key:"setHasModuleAutoUpgradeEnabled",value:function(e){this.hasModuleAutoUpgradeEnabled=e}},{key:"toJson",value:function(e){return Gr(!1===e?Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getIsAutoInventoryEnabled()&&null!==this.getIsAutoInventoryEnabled()?{isAutoInventoryEnabled:this.getIsAutoInventoryEnabled()}:{}),void 0!==this.getAutoInventorySchedule()&&null!==this.getAutoInventorySchedule()?{autoInventorySchedule:this.getAutoInventorySchedule()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getDisplayVersion()&&null!==this.getDisplayVersion()?{displayVersion:this.getDisplayVersion()}:{}),void 0!==this.getConnectivityType()&&null!==this.getConnectivityType()?{connectivityType:this.getConnectivityType()}:{}),void 0!==this.getIsHttpsEnabled()&&null!==this.getIsHttpsEnabled()?{isHttpsEnabled:this.getIsHttpsEnabled()}:{}),void 0!==this.getSupportedSoftwareEntities()&&null!==this.getSupportedSoftwareEntities()?{supportedSoftwareEntities:this.getSupportedSoftwareEntities()}:{}),void 0!==this.getDeprecatedSoftwareEntities()&&null!==this.getDeprecatedSoftwareEntities()?{deprecatedSoftwareEntities:this.getDeprecatedSoftwareEntities()}:{}),void 0!==this.getIsFrameworkBundleUploaded()&&null!==this.getIsFrameworkBundleUploaded()?{isFrameworkBundleUploaded:this.getIsFrameworkBundleUploaded()}:{}),void 0!==this.getHasModuleAutoUpgradeEnabled()&&null!==this.getHasModuleAutoUpgradeEnabled()?{hasModuleAutoUpgradeEnabled:this.getHasModuleAutoUpgradeEnabled()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Gr(Gr(Gr(Gr(Gr(Gr(Gr({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getIsAutoInventoryEnabled()&&null!==this.getIsAutoInventoryEnabled()?{isAutoInventoryEnabled:this.getIsAutoInventoryEnabled()}:{}),void 0!==this.getAutoInventorySchedule()&&null!==this.getAutoInventorySchedule()?{autoInventorySchedule:this.getAutoInventorySchedule()}:{}),void 0!==this.getConnectivityType()&&null!==this.getConnectivityType()?{connectivityType:this.getConnectivityType()}:{}),void 0!==this.getIsHttpsEnabled()&&null!==this.getIsHttpsEnabled()?{isHttpsEnabled:this.getIsHttpsEnabled()}:{}),void 0!==this.getHasModuleAutoUpgradeEnabled()&&null!==this.getHasModuleAutoUpgradeEnabled()?{hasModuleAutoUpgradeEnabled:this.getHasModuleAutoUpgradeEnabled()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("url"===t){if(void 0===this.url||null===this.url)return new ge("url","undefined or null");if(!Lt.validatePattern(this.url,/^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new ge("url","does not satisfy required pattern: /^((http[s]?|nfs):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}if("isAutoInventoryEnabled"===t&&(void 0===this.isAutoInventoryEnabled||null===this.isAutoInventoryEnabled))return new ge("isAutoInventoryEnabled","undefined or null");if("autoInventorySchedule"===t){if(void 0===this.autoInventorySchedule||null===this.autoInventorySchedule)return new ge("autoInventorySchedule","undefined or null");if(!Lt.validatePattern(this.autoInventorySchedule,/^([01]\\d|2[0-3]):([0-5]\\d)$/))return new ge("autoInventorySchedule","does not satisfy required pattern: /^([01]\\d|2[0-3]):([0-5]\\d)$/")}if("version"===t){if(void 0===this.version||null===this.version)return new ge("version","undefined or null");if(!Lt.validateMaxLength(this.version,128))return new ge("version","does not satisfy required maxLength constraint: 128")}if("displayVersion"===t){if(void 0===this.displayVersion||null===this.displayVersion)return new ge("displayVersion","undefined or null");if(!Lt.validateMaxLength(this.displayVersion,128))return new ge("displayVersion","does not satisfy required maxLength constraint: 128")}if("connectivityType"===t&&(void 0===this.connectivityType||null===this.connectivityType))return new ge("connectivityType","undefined or null");if("isHttpsEnabled"===t&&(void 0===this.isHttpsEnabled||null===this.isHttpsEnabled))return new ge("isHttpsEnabled","undefined or null");if("supportedSoftwareEntities"===t){if(void 0===this.supportedSoftwareEntities||null===this.supportedSoftwareEntities)return new ge("supportedSoftwareEntities","undefined or null");if(!Lt.validateMaxItems(this.supportedSoftwareEntities,100))return new ge("supportedSoftwareEntities","does not satisfy required maxItems constraint: 100")}if("deprecatedSoftwareEntities"===t){if(void 0===this.deprecatedSoftwareEntities||null===this.deprecatedSoftwareEntities)return new ge("deprecatedSoftwareEntities","undefined or null");if(!Lt.validateMaxItems(this.deprecatedSoftwareEntities,100))return new ge("deprecatedSoftwareEntities","does not satisfy required maxItems constraint: 100")}return"isFrameworkBundleUploaded"!==t||void 0!==this.isFrameworkBundleUploaded&&null!==this.isFrameworkBundleUploaded?"hasModuleAutoUpgradeEnabled"!==t||void 0!==this.hasModuleAutoUpgradeEnabled&&null!==this.hasModuleAutoUpgradeEnabled?new ge(t,"no such property exists"):new ge("hasModuleAutoUpgradeEnabled","undefined or null"):new ge("isFrameworkBundleUploaded","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("url")&&null!==e.url&&void 0!==e.url&&n.setUrl(e.url),e.hasOwnProperty("isAutoInventoryEnabled")&&null!==e.isAutoInventoryEnabled&&void 0!==e.isAutoInventoryEnabled&&n.setIsAutoInventoryEnabled(e.isAutoInventoryEnabled),e.hasOwnProperty("autoInventorySchedule")&&null!==e.autoInventorySchedule&&void 0!==e.autoInventorySchedule&&n.setAutoInventorySchedule(e.autoInventorySchedule),e.hasOwnProperty("version")&&null!==e.version&&void 0!==e.version&&n.setVersion(e.version),e.hasOwnProperty("displayVersion")&&null!==e.displayVersion&&void 0!==e.displayVersion&&n.setDisplayVersion(e.displayVersion),e.hasOwnProperty("connectivityType")&&null!==e.connectivityType&&void 0!==e.connectivityType&&n.setConnectivityType(Br.constructFromObject(e.connectivityType)),e.hasOwnProperty("isHttpsEnabled")&&null!==e.isHttpsEnabled&&void 0!==e.isHttpsEnabled&&n.setIsHttpsEnabled(e.isHttpsEnabled),e.hasOwnProperty("supportedSoftwareEntities")&&null!==e.supportedSoftwareEntities&&void 0!==e.supportedSoftwareEntities){for(i=[],r=e.supportedSoftwareEntities,o=0;o<r.length;o++)i.push(r[o]);n.setSupportedSoftwareEntities(i)}if(e.hasOwnProperty("deprecatedSoftwareEntities")&&null!==e.deprecatedSoftwareEntities&&void 0!==e.deprecatedSoftwareEntities){for(i=[],r=e.deprecatedSoftwareEntities,o=0;o<r.length;o++)i.push(r[o]);n.setDeprecatedSoftwareEntities(i)}if(e.hasOwnProperty("isFrameworkBundleUploaded")&&null!==e.isFrameworkBundleUploaded&&void 0!==e.isFrameworkBundleUploaded&&n.setIsFrameworkBundleUploaded(e.isFrameworkBundleUploaded),e.hasOwnProperty("hasModuleAutoUpgradeEnabled")&&null!==e.hasModuleAutoUpgradeEnabled&&void 0!==e.hasModuleAutoUpgradeEnabled&&n.setHasModuleAutoUpgradeEnabled(e.hasModuleAutoUpgradeEnabled),!s)for(var a in n.$unknownFields=Gr({},e.$unknownFields),e)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=e[a])}return n}}],r&&Kr(n.prototype,r),o&&Kr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(an);function ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oo(e){return oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oo(e)}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function so(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=uo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ao(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uo(r.key),r)}}function uo(e){var t=function(e,t){if("object"!=oo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=oo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oo(t)?t:t+""}function lo(e,t,n){return t=fo(t),function(e,t){if(t&&("object"===oo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,co()?Reflect.construct(t,n||[],fo(e).constructor):t.apply(e,n))}function co(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(co=function(){return!!e})()}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fo(e)}function po(e,t){return po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},po(e,t)}function yo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}no.prototype.url=void 0,no.prototype.isAutoInventoryEnabled=!1,no.prototype.autoInventorySchedule=void 0,no.prototype.version=void 0,no.prototype.displayVersion=void 0,no.prototype.connectivityType=void 0,no.prototype.isHttpsEnabled=!1,no.prototype.supportedSoftwareEntities=void 0,no.prototype.deprecatedSoftwareEntities=void 0,no.prototype.isFrameworkBundleUploaded=!1,no.prototype.hasModuleAutoUpgradeEnabled=!1;var ho=new WeakSet,vo=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=lo(this,t),r=ho),r.add(n),e.$objectType="lifecycle.v4.resources.GetConfigApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&po(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return so(so(so({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):yo(ho,this,bo).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):yo(ho,this,bo).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:oo(e.data)){case"lifecycle.v4.resources.Config":n.setData(no.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=so({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&ao(n.prototype,r),o&&ao(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function bo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ro(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===oo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function go(e){return go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(e)}function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=jo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jo(r.key),r)}}function jo(e){var t=function(e,t){if("object"!=go(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==go(t)?t:t+""}vo.prototype.metadata=void 0,vo.prototype.data=void 0,vo.prototype.$reserved=void 0,vo.prototype.$objectType=void 0,vo.prototype.$unknownFields=void 0;var ko=new WeakSet,$o=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=ko),n.add(t),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return wo(wo({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new ge("extId","undefined or null");if(!Lt.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new ge("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=wo({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Oo(t.prototype,n),r&&Oo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Io(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Io(r.key),r)}}function Io(e){var t=function(e,t){if("object"!=Po(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Po(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Po(t)?t:t+""}function Do(e,t,n){return t=Ro(t),function(e,t){if(t&&("object"===Po(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ao()?Reflect.construct(t,n||[],Ro(e).constructor):t.apply(e,n))}function Ao(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ao=function(){return!!e})()}function Ro(e){return Ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ro(e)}function Co(e,t){return Co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Co(e,t)}function xo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$o.prototype.extId=void 0,$o.prototype.$reserved=void 0,$o.prototype.$objectType=void 0,$o.prototype.$unknownFields=void 0;var Uo=new WeakSet,Mo=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Do(this,t),r=Uo),r.add(n),e.$objectType="lifecycle.v4.resources.UpdateConfigApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Co(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return So(So(So({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):xo(Uo,this,_o).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):xo(Uo,this,_o).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Po(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=So({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Fo(n.prototype,r),o&&Fo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function _o(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Po(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Wo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wo(r.key),r)}}function Wo(e){var t=function(e,t){if("object"!=Vo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vo(t)?t:t+""}function Ho(e,t){return e.get(Bo(e,t))}function Bo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Mo.prototype.metadata=void 0,Mo.prototype.data=void 0,Mo.prototype.$reserved=void 0,Mo.prototype.$objectType=void 0,Mo.prototype.$unknownFields=void 0;var zo=new WeakMap,qo=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=zo),i.set(o,s),this.apiClient=t||X.instance,n=zo,r=new Set,n.set(Bo(n,this),r),Ho(zo,this).add("authorization"),Ho(zo,this).add("cookie"),Ho(zo,this).add("host"),Ho(zo,this).add("user-agent")},t=[{key:"getConfig",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};e=e||{};var r={};Object.keys(n).forEach((function(e){Ho(zo,t).has(e.toLowerCase())||(r[e]=n[e])}));var o=Jo({"X-Cluster-Id":e["X-Cluster-Id"]},r),i=vo;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/config","GET",{},{},o,{},null,["basicAuthScheme"],[],["application/json"],i)}},{key:"updateConfig",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;o=e instanceof no&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){Ho(zo,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=Jo({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=Mo;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/config","PUT",{},{},s,{},o,["basicAuthScheme"],["application/json"],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&Lo(e.prototype,t),n&&Lo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Go={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SHASUM:"SHASUM",HEX_MD5:"HEX_MD5",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Go).find((function(t){return Go[t]===e}));return null==t?Go.$UNKNOWN:Go[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Go.$UNKNOWN:case Go.$REDACTED:case Go.SHASUM:case Go.HEX_MD5:return;default:throw new Error("Invalid : must be CheckSumType.{ $UNKNOWN|$REDACTED|SHASUM|HEX_MD5 }")}}};Object.freeze(Go);const Ko=Go;function Xo(e){return Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xo(e)}function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ei(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ei(r.key),r)}}function ei(e){var t=function(e,t){if("object"!=Xo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xo(t)?t:t+""}var ti=new WeakSet,ni=function(){function e(t,n,r){var o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=ti),i.add(o),this.sizeBytes=t,this.checksumType=n,this.checksum=r,this.$objectType="lifecycle.v4.resources.ImageFile",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getFileLocationId",value:function(){return this.fileLocationId}},{key:"setFileLocationId",value:function(e){this.fileLocationId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getSizeBytes",value:function(){return this.sizeBytes}},{key:"setSizeBytes",value:function(e){this.sizeBytes=e}},{key:"getFilePath",value:function(){return this.filePath}},{key:"setFilePath",value:function(e){this.filePath=e}},{key:"getChecksumType",value:function(){return this.checksumType}},{key:"setChecksumType",value:function(e){this.checksumType=e}},{key:"getChecksum",value:function(){return this.checksum}},{key:"setChecksum",value:function(e){this.checksum=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Yo(Yo(Yo(!1===e?Yo(Yo(Yo(Yo({},void 0!==this.getFileLocationId()&&null!==this.getFileLocationId()?{fileLocationId:this.getFileLocationId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getFilePath()&&null!==this.getFilePath()?{filePath:this.getFilePath()}:{}):Yo(Yo({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getChecksumType()&&null!==this.getChecksumType()?{checksumType:this.getChecksumType()}:{}),void 0!==this.getChecksum()&&null!==this.getChecksum()?{checksum:this.getChecksum()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["sizeBytes","checksumType","checksum"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("fileLocationId"===t){if(void 0===this.fileLocationId||null===this.fileLocationId)return new ge("fileLocationId","undefined or null");if(!Lt.validatePattern(this.fileLocationId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("fileLocationId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("name"===t){if(void 0===this.name||null===this.name)return new ge("name","undefined or null");if(!Lt.validateMaxLength(this.name,128))return new ge("name","does not satisfy required maxLength constraint: 128")}if("sizeBytes"===t&&(void 0===this.sizeBytes||null===this.sizeBytes))return new ge("sizeBytes","undefined or null");if("filePath"===t){if(void 0===this.filePath||null===this.filePath)return new ge("filePath","undefined or null");if(!Lt.validateMaxLength(this.filePath,256))return new ge("filePath","does not satisfy required maxLength constraint: 256")}if("checksumType"===t&&(void 0===this.checksumType||null===this.checksumType))return new ge("checksumType","undefined or null");if("checksum"===t){if(void 0===this.checksum||null===this.checksum)return new ge("checksum","undefined or null");if(!Lt.validateMaxLength(this.checksum,128))return new ge("checksum","does not satisfy required maxLength constraint: 128")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("fileLocationId")&&null!==t.fileLocationId&&void 0!==t.fileLocationId&&n.setFileLocationId(t.fileLocationId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("sizeBytes")&&null!==t.sizeBytes&&void 0!==t.sizeBytes&&n.setSizeBytes(t.sizeBytes),t.hasOwnProperty("filePath")&&null!==t.filePath&&void 0!==t.filePath&&n.setFilePath(t.filePath),t.hasOwnProperty("checksumType")&&null!==t.checksumType&&void 0!==t.checksumType&&n.setChecksumType(Ko.constructFromObject(t.checksumType)),t.hasOwnProperty("checksum")&&null!==t.checksum&&void 0!==t.checksum&&n.setChecksum(t.checksum),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Yo({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Zo(t.prototype,n),r&&Zo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ri(e){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(e)}function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ai(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ai(r.key),r)}}function ai(e){var t=function(e,t){if("object"!=ri(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ri(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ri(t)?t:t+""}function ui(e,t,n){return t=ci(t),function(e,t){if(t&&("object"===ri(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,li()?Reflect.construct(t,n||[],ci(e).constructor):t.apply(e,n))}function li(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(li=function(){return!!e})()}function ci(e){return ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ci(e)}function fi(e,t){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fi(e,t)}ni.prototype.fileLocationId=void 0,ni.prototype.name=void 0,ni.prototype.sizeBytes=void 0,ni.prototype.filePath=void 0,ni.prototype.checksumType=void 0,ni.prototype.checksum=void 0,ni.prototype.$reserved=void 0,ni.prototype.$objectType=void 0,ni.prototype.$unknownFields=void 0;var di=new WeakSet,pi=function(e){function t(e,n){var r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=r=ui(this,t),i=di),i.add(o),r.specVersion=e,r.files=n,r.$objectType="lifecycle.v4.resources.Image",r.$reserved={$fv:"v4.r0.b1"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fi(e,t)}(t,e),n=t,r=[{key:"getReleaseNotes",value:function(){return this.releaseNotes}},{key:"setReleaseNotes",value:function(e){this.releaseNotes=e}},{key:"getSpecVersion",value:function(){return this.specVersion}},{key:"setSpecVersion",value:function(e){this.specVersion=e}},{key:"getIsQualified",value:function(){return this.isQualified}},{key:"setIsQualified",value:function(e){this.isQualified=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getFiles",value:function(){return this.files}},{key:"setFiles",value:function(e){this.files=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return ii(!1===e?ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii({},void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getSpecVersion()&&null!==this.getSpecVersion()?{specVersion:this.getSpecVersion()}:{}),void 0!==this.getIsQualified()&&null!==this.getIsQualified()?{isQualified:this.getIsQualified()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getFiles()&&null!==this.getFiles()?{files:this.getFiles().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii({},void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getSpecVersion()&&null!==this.getSpecVersion()?{specVersion:this.getSpecVersion()}:{}),void 0!==this.getIsQualified()&&null!==this.getIsQualified()?{isQualified:this.getIsQualified()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getFiles()&&null!==this.getFiles()?{files:this.getFiles().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["specVersion","files"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("releaseNotes"===t){if(void 0===this.releaseNotes||null===this.releaseNotes)return new ge("releaseNotes","undefined or null");if(!Lt.validateMaxLength(this.releaseNotes,1024))return new ge("releaseNotes","does not satisfy required maxLength constraint: 1024")}if("specVersion"===t){if(void 0===this.specVersion||null===this.specVersion)return new ge("specVersion","undefined or null");if(!Lt.validateMaxLength(this.specVersion,128))return new ge("specVersion","does not satisfy required maxLength constraint: 128")}if("isQualified"===t&&(void 0===this.isQualified||null===this.isQualified))return new ge("isQualified","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new ge("status","undefined or null");if("files"===t){if(void 0===this.files||null===this.files)return new ge("files","undefined or null");if(!Lt.validateMaxItems(this.files,100))return new ge("files","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new ge("clusterExtId","undefined or null");if(!Lt.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("releaseNotes")&&null!==e.releaseNotes&&void 0!==e.releaseNotes&&n.setReleaseNotes(e.releaseNotes),e.hasOwnProperty("specVersion")&&null!==e.specVersion&&void 0!==e.specVersion&&n.setSpecVersion(e.specVersion),e.hasOwnProperty("isQualified")&&null!==e.isQualified&&void 0!==e.isQualified&&n.setIsQualified(e.isQualified),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&n.setStatus(Dn.constructFromObject(e.status)),e.hasOwnProperty("files")&&null!==e.files&&void 0!==e.files){for(s=[],r=e.files,i=0;i<r.length;i++)o=ni.constructFromObject(r[i],void 0),s.push(o);n.setFiles(s)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),!a)for(var u in n.$unknownFields=ii({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&si(n.prototype,r),o&&si(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hi(e){return hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hi(e)}function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=mi(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mi(r.key),r)}}function mi(e){var t=function(e,t){if("object"!=hi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hi(t)?t:t+""}function wi(e,t,n){return t=ji(t),function(e,t){if(t&&("object"===hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oi()?Reflect.construct(t,n||[],ji(e).constructor):t.apply(e,n))}function Oi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oi=function(){return!!e})()}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ji(e)}function ki(e,t){return ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ki(e,t)}function $i(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}pi.prototype.releaseNotes=void 0,pi.prototype.specVersion=void 0,pi.prototype.isQualified=!1,pi.prototype.status=void 0,pi.prototype.files=void 0,pi.prototype.clusterExtId=void 0;var Ei=new WeakSet,Pi=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=wi(this,t),r=Ei),r.add(n),e.$objectType="lifecycle.v4.resources.ListImagesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ki(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bi(bi(bi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):$i(Ei,this,Ti).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):$i(Ei,this,Ti).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:hi(r[0]),i=0;i<r.length;i++){if("lifecycle.v4.resources.Image"!==a)throw"Unknown list of type "+a+" in data";o=pi.constructFromObject(r[i],void 0),s.push(o)}n.setData(s)}else{if("lifecycle.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hi(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Mt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=bi({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&gi(n.prototype,r),o&&gi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ti(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===hi(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Si(e){return Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Si(e)}function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ai(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Di(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ai(r.key),r)}}function Ai(e){var t=function(e,t){if("object"!=Si(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Si(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Si(t)?t:t+""}function Ri(e,t){return e.get(Ci(e,t))}function Ci(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Pi.prototype.metadata=void 0,Pi.prototype.data=void 0,Pi.prototype.$reserved=void 0,Pi.prototype.$objectType=void 0,Pi.prototype.$unknownFields=void 0;var xi=new WeakMap,Ui=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=xi),i.set(o,s),this.apiClient=t||X.instance,n=xi,r=new Set,n.set(Ci(n,this),r),Ri(xi,this).add("authorization"),Ri(xi,this).add("cookie"),Ri(xi,this).add("host"),Ri(xi,this).add("user-agent")},t=[{key:"listImages",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Ii(Ii(Ii(Ii(Ii({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){Ri(xi,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Ii({},o),s=Pi;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/images","GET",{},r,i,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&Di(e.prototype,t),n&&Di(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Mi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _i(e){return _i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_i(e)}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Li(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Li(r.key),r)}}function Li(e){var t=function(e,t){if("object"!=_i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_i(t)?t:t+""}function Wi(e,t,n){return t=Bi(t),function(e,t){if(t&&("object"===_i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Hi()?Reflect.construct(t,n||[],Bi(e).constructor):t.apply(e,n))}function Hi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hi=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bi(e)}function zi(e,t){return zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zi(e,t)}function qi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Gi=new WeakSet,Ki=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Wi(this,t),r=Gi),r.add(n),e.$objectType="lifecycle.v4.operations.InventoryApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zi(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ni(Ni(Ni({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):qi(Gi,this,Xi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):qi(Gi,this,Xi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:_i(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Ni({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Ji(n.prototype,r),o&&Ji(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Xi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===_i(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Qi(e){return Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qi(e)}function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,es(r.key),r)}}function es(e){var t=function(e,t){if("object"!=Qi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qi(t)?t:t+""}function ts(e,t){return e.get(ns(e,t))}function ns(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ki.prototype.metadata=void 0,Ki.prototype.data=void 0,Ki.prototype.$reserved=void 0,Ki.prototype.$objectType=void 0,Ki.prototype.$unknownFields=void 0;var rs=new WeakMap,os=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=rs),i.set(o,s),this.apiClient=t||X.instance,n=rs,r=new Set,n.set(ns(n,this),r),ts(rs,this).add("authorization"),ts(rs,this).add("cookie"),ts(rs,this).add("host"),ts(rs,this).add("user-agent")},t=[{key:"performInventory",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};e=e||{};var r={};Object.keys(n).forEach((function(e){ts(rs,t).has(e.toLowerCase())||(r[e]=n[e])}));var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=es(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":e["X-Cluster-Id"]},r),i=Ki;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/inventory","POST",{},{},o,{},null,["basicAuthScheme"],[],["application/json"],i)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&Zi(e.prototype,t),n&&Zi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),is={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ESX:"ESX",AHV:"AHV",HYPERV:"HYPERV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(is).find((function(t){return is[t]===e}));return null==t?is.$UNKNOWN:is[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case is.$UNKNOWN:case is.$REDACTED:case is.ESX:case is.AHV:case is.HYPERV:return;default:throw new Error("Invalid : must be HypervisorType.{ $UNKNOWN|$REDACTED|ESX|AHV|HYPERV }")}}};Object.freeze(is);const ss=is;var as={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENTITY:"ENTITY",LOCATION:"LOCATION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(as).find((function(t){return as[t]===e}));return null==t?as.$UNKNOWN:as[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case as.$UNKNOWN:case as.$REDACTED:case as.ENTITY:case as.LOCATION:return;default:throw new Error("Invalid : must be NotificationType.{ $UNKNOWN|$REDACTED|ENTITY|LOCATION }")}}};Object.freeze(as);const us=as;var ls={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WARNING:"WARNING",NOTICE:"NOTICE",INFO:"INFO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ls).find((function(t){return ls[t]===e}));return null==t?ls.$UNKNOWN:ls[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ls.$UNKNOWN:case ls.$REDACTED:case ls.WARNING:case ls.NOTICE:case ls.INFO:return;default:throw new Error("Invalid : must be SeverityLevel.{ $UNKNOWN|$REDACTED|WARNING|NOTICE|INFO }")}}};Object.freeze(ls);const cs=ls;function fs(e){return fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fs(e)}function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=hs(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ys(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hs(r.key),r)}}function hs(e){var t=function(e,t){if("object"!=fs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=fs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fs(t)?t:t+""}var vs=new WeakSet,bs=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=vs),n.add(t),this.$objectType="lifecycle.v4.resources.NotificationDetail",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getSeverityLevel",value:function(){return this.severityLevel}},{key:"setSeverityLevel",value:function(e){this.severityLevel=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ps(ps(ps({},void 0!==this.getSeverityLevel()&&null!==this.getSeverityLevel()?{severityLevel:this.getSeverityLevel()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("severityLevel"===t&&(void 0===this.severityLevel||null===this.severityLevel))return new ge("severityLevel","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new ge("message","undefined or null");if(!Lt.validateMaxLength(this.message,512))return new ge("message","does not satisfy required maxLength constraint: 512")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("severityLevel")&&null!==t.severityLevel&&void 0!==t.severityLevel&&n.setSeverityLevel(cs.constructFromObject(t.severityLevel)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ps({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&ys(t.prototype,n),r&&ys(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gs(e){return gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gs(e)}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=js(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,js(r.key),r)}}function js(e){var t=function(e,t){if("object"!=gs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=gs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gs(t)?t:t+""}function ks(e,t,n){return t=Es(t),function(e,t){if(t&&("object"===gs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$s()?Reflect.construct(t,n||[],Es(e).constructor):t.apply(e,n))}function $s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($s=function(){return!!e})()}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Es(e)}function Ps(e,t){return Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ps(e,t)}bs.prototype.severityLevel=void 0,bs.prototype.message=void 0,bs.prototype.$reserved=void 0,bs.prototype.$objectType=void 0,bs.prototype.$unknownFields=void 0;var Ts=new WeakSet,Ss=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=ks(this,t),r=Ts),r.add(n),e.$objectType="lifecycle.v4.resources.NotificationItem",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ps(e,t)}(t,e),n=t,r=[{key:"getNotificationType",value:function(){return this.notificationType}},{key:"setNotificationType",value:function(e){this.notificationType=e}},{key:"getDetails",value:function(){return this.details}},{key:"setDetails",value:function(e){this.details=e}},{key:"getToVersion",value:function(){return this.toVersion}},{key:"setToVersion",value:function(e){this.toVersion=e}},{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"getHypervisorType",value:function(){return this.hypervisorType}},{key:"setHypervisorType",value:function(e){this.hypervisorType=e}},{key:"toJson",value:function(e){return ws(!1===e?ws(ws(ws(ws(ws(ws(ws(ws(ws(ws(ws(ws(ws({},void 0!==this.getNotificationType()&&null!==this.getNotificationType()?{notificationType:this.getNotificationType()}:{}),void 0!==this.getDetails()&&null!==this.getDetails()?{details:this.getDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getToVersion()&&null!==this.getToVersion()?{toVersion:this.getToVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ws(ws(ws(ws(ws(ws(ws(ws(ws(ws(ws({},void 0!==this.getNotificationType()&&null!==this.getNotificationType()?{notificationType:this.getNotificationType()}:{}),void 0!==this.getDetails()&&null!==this.getDetails()?{details:this.getDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getToVersion()&&null!==this.getToVersion()?{toVersion:this.getToVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("notificationType"===t&&(void 0===this.notificationType||null===this.notificationType))return new ge("notificationType","undefined or null");if("details"===t&&(void 0===this.details||null===this.details))return new ge("details","undefined or null");if("toVersion"===t){if(void 0===this.toVersion||null===this.toVersion)return new ge("toVersion","undefined or null");if(!Lt.validateMaxLength(this.toVersion,128))return new ge("toVersion","does not satisfy required maxLength constraint: 128")}return"locationInfo"!==t||void 0!==this.locationInfo&&null!==this.locationInfo?"hypervisorType"!==t||void 0!==this.hypervisorType&&null!==this.hypervisorType?new ge(t,"no such property exists"):new ge("hypervisorType","undefined or null"):new ge("locationInfo","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("notificationType")&&null!==e.notificationType&&void 0!==e.notificationType&&n.setNotificationType(us.constructFromObject(e.notificationType)),e.hasOwnProperty("details")&&null!==e.details&&void 0!==e.details){for(s=[],r=e.details,i=0;i<r.length;i++)o=bs.constructFromObject(r[i],void 0),s.push(o);n.setDetails(s)}if(e.hasOwnProperty("toVersion")&&null!==e.toVersion&&void 0!==e.toVersion&&n.setToVersion(e.toVersion),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(Fn.constructFromObject(e.locationInfo)),e.hasOwnProperty("hypervisorType")&&null!==e.hypervisorType&&void 0!==e.hypervisorType&&n.setHypervisorType(ss.constructFromObject(e.hypervisorType)),!a)for(var u in n.$unknownFields=ws({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Os(n.prototype,r),o&&Os(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function Fs(e){return Fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fs(e)}function Is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Is(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Rs(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function As(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rs(r.key),r)}}function Rs(e){var t=function(e,t){if("object"!=Fs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Fs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fs(t)?t:t+""}function Cs(e,t,n){return t=Us(t),function(e,t){if(t&&("object"===Fs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xs()?Reflect.construct(t,n||[],Us(e).constructor):t.apply(e,n))}function xs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xs=function(){return!!e})()}function Us(e){return Us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Us(e)}function Ms(e,t){return Ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ms(e,t)}Ss.prototype.notificationType=void 0,Ss.prototype.details=void 0,Ss.prototype.toVersion=void 0,Ss.prototype.locationInfo=void 0,Ss.prototype.hypervisorType=void 0;var _s=new WeakSet,Vs=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Cs(this,t),r=_s),r.add(n),e.$objectType="lifecycle.v4.resources.Notification",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ms(e,t)}(t,e),n=t,r=[{key:"getNotifications",value:function(){return this.notifications}},{key:"setNotifications",value:function(e){this.notifications=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return Ds(!1===e?Ds(Ds(Ds(Ds(Ds({},void 0!==this.getNotifications()&&null!==this.getNotifications()?{notifications:this.getNotifications().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ds(Ds(Ds({},void 0!==this.getNotifications()&&null!==this.getNotifications()?{notifications:this.getNotifications().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("notifications"===t){if(void 0===this.notifications||null===this.notifications)return new ge("notifications","undefined or null");if(!Lt.validateMaxItems(this.notifications,2048))return new ge("notifications","does not satisfy required maxItems constraint: 2048")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new ge("clusterExtId","undefined or null");if(!Lt.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("notifications")&&null!==e.notifications&&void 0!==e.notifications){for(s=[],r=e.notifications,i=0;i<r.length;i++)o=Ss.constructFromObject(r[i],void 0),s.push(o);n.setNotifications(s)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),!a)for(var u in n.$unknownFields=Ds({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&As(n.prototype,r),o&&As(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(an);function Ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Js(e){return Js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Js(e)}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Bs(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bs(r.key),r)}}function Bs(e){var t=function(e,t){if("object"!=Js(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Js(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Js(t)?t:t+""}function zs(e,t,n){return t=Gs(t),function(e,t){if(t&&("object"===Js(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qs()?Reflect.construct(t,n||[],Gs(e).constructor):t.apply(e,n))}function qs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qs=function(){return!!e})()}function Gs(e){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gs(e)}function Ks(e,t){return Ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ks(e,t)}function Xs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vs.prototype.notifications=void 0,Vs.prototype.clusterExtId=void 0;var Qs=new WeakSet,Ys=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=zs(this,t),r=Qs),r.add(n),e.$objectType="lifecycle.v4.resources.GetNotificationsByIdApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ks(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ws(Ws(Ws({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Xs(Qs,this,Zs).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Xs(Qs,this,Zs).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Js(e.data)){case"lifecycle.v4.resources.Notification":n.setData(Vs.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Ws({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Hs(n.prototype,r),o&&Hs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Zs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ns(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ns(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Js(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ta(e){return ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(e)}function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ia(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ia(r.key),r)}}function ia(e){var t=function(e,t){if("object"!=ta(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ta(t)?t:t+""}function sa(e,t,n){return t=ua(t),function(e,t){if(t&&("object"===ta(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,aa()?Reflect.construct(t,n||[],ua(e).constructor):t.apply(e,n))}function aa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aa=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ua(e)}function la(e,t){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},la(e,t)}function ca(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ys.prototype.metadata=void 0,Ys.prototype.data=void 0,Ys.prototype.$reserved=void 0,Ys.prototype.$objectType=void 0,Ys.prototype.$unknownFields=void 0;var fa=new WeakSet,da=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=sa(this,t),r=fa),r.add(n),e.$objectType="lifecycle.v4.operations.ComputeNotificationsApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&la(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ra(ra(ra({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ca(fa,this,pa).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ca(fa,this,pa).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ta(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=ra({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&oa(n.prototype,r),o&&oa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function pa(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ea(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ea(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===ta(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ya(e){return ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ya(e)}function ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ga(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ga(r.key),r)}}function ga(e){var t=function(e,t){if("object"!=ya(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ya(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ya(t)?t:t+""}da.prototype.metadata=void 0,da.prototype.data=void 0,da.prototype.$reserved=void 0,da.prototype.$objectType=void 0,da.prototype.$unknownFields=void 0;var ma=new WeakSet,wa=function(){function e(t,n){var r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,o=ma),o.add(r),this.entityUuid=t,this.toVersion=n,this.$objectType="lifecycle.v4.common.EntityUpdateSpec",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getEntityUuid",value:function(){return this.entityUuid}},{key:"setEntityUuid",value:function(e){this.entityUuid=e}},{key:"getToVersion",value:function(){return this.toVersion}},{key:"setToVersion",value:function(e){this.toVersion=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return va(va(va({},void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getToVersion()&&null!==this.getToVersion()?{toVersion:this.getToVersion()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["entityUuid","toVersion"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("entityUuid"===t){if(void 0===this.entityUuid||null===this.entityUuid)return new ge("entityUuid","undefined or null");if(!Lt.validatePattern(this.entityUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("entityUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"toVersion"!==t||void 0!==this.toVersion&&null!==this.toVersion?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("toVersion","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("entityUuid")&&null!==t.entityUuid&&void 0!==t.entityUuid&&n.setEntityUuid(t.entityUuid),t.hasOwnProperty("toVersion")&&null!==t.toVersion&&void 0!==t.toVersion&&n.setToVersion(t.toVersion),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=va({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&ba(t.prototype,n),r&&ba(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Oa(e){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(e)}function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ea(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ea(r.key),r)}}function Ea(e){var t=function(e,t){if("object"!=Oa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Oa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oa(t)?t:t+""}function Pa(e,t){return e.get(Ta(e,t))}function Ta(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}wa.prototype.entityUuid=void 0,wa.prototype.toVersion=void 0,wa.prototype.$reserved=void 0,wa.prototype.$objectType=void 0,wa.prototype.$unknownFields=void 0;var Sa=new WeakMap,Fa=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=Sa),i.set(o,s),this.apiClient=t||X.instance,n=Sa,r=new Set,n.set(Ta(n,this),r),Pa(Sa,this).add("authorization"),Pa(Sa,this).add("cookie"),Pa(Sa,this).add("host"),Pa(Sa,this).add("user-agent")},t=[{key:"computeNotifications",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;o=e instanceof Array&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){Pa(Sa,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=ka({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=da;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/compute-notifications","POST",{},{},s,{},o,["basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"getNotificationById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getNotificationById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Pa(Sa,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=ka({},o),s=Ys;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/notifications/{extId}","GET",r,{},i,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&$a(e.prototype,t),n&&$a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Ia(e){return Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ia(e)}function Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ca(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ca(r.key),r)}}function Ca(e){var t=function(e,t){if("object"!=Ia(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ia(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ia(t)?t:t+""}var xa=new WeakSet,Ua=function(){function e(t,n,r,o){var i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,s=xa),s.add(i),this.hypervisorType=t,this.ip=n,this.username=r,this.password=o,this.$objectType="lifecycle.v4.common.ManagementServer",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getHypervisorType",value:function(){return this.hypervisorType}},{key:"setHypervisorType",value:function(e){this.hypervisorType=e}},{key:"getIp",value:function(){return this.ip}},{key:"setIp",value:function(e){this.ip=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Aa(Aa(Aa(Aa(Aa({},void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getIp()&&null!==this.getIp()?{ip:this.getIp()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["hypervisorType","ip","username","password"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("hypervisorType"===t&&(void 0===this.hypervisorType||null===this.hypervisorType))return new ge("hypervisorType","undefined or null");if("ip"===t){if(void 0===this.ip||null===this.ip)return new ge("ip","undefined or null");if(!Lt.validatePattern(this.ip,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new ge("ip","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}return"username"!==t||void 0!==this.username&&null!==this.username?"password"!==t||void 0!==this.password&&null!==this.password?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("password","undefined or null"):new ge("username","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("hypervisorType")&&null!==t.hypervisorType&&void 0!==t.hypervisorType&&n.setHypervisorType(ss.constructFromObject(t.hypervisorType)),t.hasOwnProperty("ip")&&null!==t.ip&&void 0!==t.ip&&n.setIp(t.ip),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Aa({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Ra(t.prototype,n),r&&Ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Ua.prototype.hypervisorType=void 0,Ua.prototype.ip=void 0,Ua.prototype.username=void 0,Ua.prototype.password=void 0,Ua.prototype.$reserved=void 0,Ua.prototype.$objectType=void 0,Ua.prototype.$unknownFields=void 0;var Ma={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",POWER_OFF_UVMS:"POWER_OFF_UVMS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ma).find((function(t){return Ma[t]===e}));return null==t?Ma.$UNKNOWN:Ma[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ma.$UNKNOWN:case Ma.$REDACTED:case Ma.POWER_OFF_UVMS:return;default:throw new Error("Invalid : must be SystemAutoMgmtFlag.{ $UNKNOWN|$REDACTED|POWER_OFF_UVMS }")}}};Object.freeze(Ma);const _a=Ma;function Va(e){return Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Va(e)}function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Wa(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function La(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wa(r.key),r)}}function Wa(e){var t=function(e,t){if("object"!=Va(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Va(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Va(t)?t:t+""}var Ha=new WeakSet,Ba=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Ha),r.add(n),this.entityUpdateSpecs=t,this.$objectType="lifecycle.v4.common.PrechecksSpec",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getManagementServer",value:function(){return this.managementServer}},{key:"setManagementServer",value:function(e){this.managementServer=e}},{key:"getEntityUpdateSpecs",value:function(){return this.entityUpdateSpecs}},{key:"setEntityUpdateSpecs",value:function(e){this.entityUpdateSpecs=e}},{key:"getSkippedPrecheckFlags",value:function(){return this.skippedPrecheckFlags}},{key:"setSkippedPrecheckFlags",value:function(e){this.skippedPrecheckFlags=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ja(Ja(Ja(Ja({},void 0!==this.getManagementServer()&&null!==this.getManagementServer()?{managementServer:this.getManagementServer().toJson(!1)}:{}),void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSkippedPrecheckFlags()&&null!==this.getSkippedPrecheckFlags()?{skippedPrecheckFlags:this.getSkippedPrecheckFlags()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["entityUpdateSpecs"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("managementServer"===t&&(void 0===this.managementServer||null===this.managementServer))return new ge("managementServer","undefined or null");if("entityUpdateSpecs"===t){if(void 0===this.entityUpdateSpecs||null===this.entityUpdateSpecs)return new ge("entityUpdateSpecs","undefined or null");if(!Lt.validateMaxItems(this.entityUpdateSpecs,2048))return new ge("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}if("skippedPrecheckFlags"===t){if(void 0===this.skippedPrecheckFlags||null===this.skippedPrecheckFlags)return new ge("skippedPrecheckFlags","undefined or null");if(!Lt.validateMaxItems(this.skippedPrecheckFlags,20))return new ge("skippedPrecheckFlags","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("managementServer")&&null!==t.managementServer&&void 0!==t.managementServer&&n.setManagementServer(Ua.constructFromObject(t.managementServer)),t.hasOwnProperty("entityUpdateSpecs")&&null!==t.entityUpdateSpecs&&void 0!==t.entityUpdateSpecs){for(s=[],r=t.entityUpdateSpecs,i=0;i<r.length;i++)o=wa.constructFromObject(r[i],void 0),s.push(o);n.setEntityUpdateSpecs(s)}if(t.hasOwnProperty("skippedPrecheckFlags")&&null!==t.skippedPrecheckFlags&&void 0!==t.skippedPrecheckFlags){for(s=[],r=t.skippedPrecheckFlags,i=0;i<r.length;i++)o=_a.constructFromObject(r[i],void 0),s.push(o);n.setSkippedPrecheckFlags(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Ja({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&La(t.prototype,n),r&&La(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(e)}function Ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ga(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Qa(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qa(r.key),r)}}function Qa(e){var t=function(e,t){if("object"!=qa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qa(t)?t:t+""}function Ya(e,t,n){return t=eu(t),function(e,t){if(t&&("object"===qa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Za()?Reflect.construct(t,n||[],eu(e).constructor):t.apply(e,n))}function Za(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Za=function(){return!!e})()}function eu(e){return eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eu(e)}function tu(e,t){return tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tu(e,t)}function nu(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ba.prototype.managementServer=void 0,Ba.prototype.entityUpdateSpecs=void 0,Ba.prototype.skippedPrecheckFlags=void 0,Ba.prototype.$reserved=void 0,Ba.prototype.$objectType=void 0,Ba.prototype.$unknownFields=void 0;var ru=new WeakSet,ou=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ya(this,t),r=ru),r.add(n),e.$objectType="lifecycle.v4.operations.PrechecksApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tu(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ka(Ka(Ka({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):nu(ru,this,iu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):nu(ru,this,iu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:qa(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Ka({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Xa(n.prototype,r),o&&Xa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function iu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return za(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?za(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===qa(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function su(e){return su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},su(e)}function au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lu(r.key),r)}}function lu(e){var t=function(e,t){if("object"!=su(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==su(t)?t:t+""}function cu(e,t){return e.get(fu(e,t))}function fu(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ou.prototype.metadata=void 0,ou.prototype.data=void 0,ou.prototype.$reserved=void 0,ou.prototype.$objectType=void 0,ou.prototype.$unknownFields=void 0;var du=new WeakMap,pu=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=du),i.set(o,s),this.apiClient=t||X.instance,n=du,r=new Set,n.set(fu(n,this),r),cu(du,this).add("authorization"),cu(du,this).add("cookie"),cu(du,this).add("host"),cu(du,this).add("user-agent")},t=[{key:"performPrechecks",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;o=e instanceof Ba&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){cu(du,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=lu(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=ou;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/prechecks","POST",{},{},s,{},o,["basicAuthScheme"],["application/json"],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&uu(e.prototype,t),n&&uu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hu(e){return hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(e)}function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=mu(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mu(r.key),r)}}function mu(e){var t=function(e,t){if("object"!=hu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hu(t)?t:t+""}function wu(e,t,n){return t=ju(t),function(e,t){if(t&&("object"===hu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ou()?Reflect.construct(t,n||[],ju(e).constructor):t.apply(e,n))}function Ou(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ou=function(){return!!e})()}function ju(e){return ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ju(e)}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ku(e,t)}function $u(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Eu=new WeakSet,Pu=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=wu(this,t),r=Eu),r.add(n),e.$objectType="lifecycle.v4.operations.ComputeRecommendationsApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ku(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bu(bu(bu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):$u(Eu,this,Tu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):$u(Eu,this,Tu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hu(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=bu({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&gu(n.prototype,r),o&&gu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Tu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===hu(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Su(e){return Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Su(e)}function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fu(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Au(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Au(r.key),r)}}function Au(e){var t=function(e,t){if("object"!=Su(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}Pu.prototype.metadata=void 0,Pu.prototype.data=void 0,Pu.prototype.$reserved=void 0,Pu.prototype.$objectType=void 0,Pu.prototype.$unknownFields=void 0;var Ru=new WeakSet,Cu=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Ru),r.add(n),this.entityIdentifier=t,this.$objectType="lifecycle.v4.common.EntityDeploySpec",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getEntityIdentifier",value:function(){return this.entityIdentifier}},{key:"setEntityIdentifier",value:function(e){this.entityIdentifier=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Iu(Iu({},void 0!==this.getEntityIdentifier()&&null!==this.getEntityIdentifier()?{entityIdentifier:this.getEntityIdentifier().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["entityIdentifier"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"entityIdentifier"!==t||void 0!==this.entityIdentifier&&null!==this.entityIdentifier?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("entityIdentifier","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("entityIdentifier")&&null!==t.entityIdentifier&&void 0!==t.entityIdentifier&&n.setEntityIdentifier(wn.constructFromObject(t.entityIdentifier)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Iu({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Du(t.prototype,n),r&&Du(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xu(e){return xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xu(e)}function Uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uu(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Vu(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vu(r.key),r)}}function Vu(e){var t=function(e,t){if("object"!=xu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xu(t)?t:t+""}function Nu(e,t,n){return t=Lu(t),function(e,t){if(t&&("object"===xu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ju()?Reflect.construct(t,n||[],Lu(e).constructor):t.apply(e,n))}function Ju(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ju=function(){return!!e})()}function Lu(e){return Lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lu(e)}function Wu(e,t){return Wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wu(e,t)}Cu.prototype.entityIdentifier=void 0,Cu.prototype.$reserved=void 0,Cu.prototype.$objectType=void 0,Cu.prototype.$unknownFields=void 0;var Hu=new WeakSet,Bu=function(e){function t(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=n=Nu(this,t),o=Hu),o.add(r),n.version=e,n.$objectType="lifecycle.v4.resources.TargetEntity",n.$reserved={$fv:"v4.r0.b1"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wu(e,t)}(t,e),n=t,r=[{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"getDeviceId",value:function(){return this.deviceId}},{key:"setDeviceId",value:function(e){this.deviceId=e}},{key:"toJson",value:function(e){return Mu(!1===e?Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getDeviceId()&&null!==this.getDeviceId()?{deviceId:this.getDeviceId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getDeviceId()&&null!==this.getDeviceId()?{deviceId:this.getDeviceId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["version"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("version"===t){if(void 0===this.version||null===this.version)return new ge("version","undefined or null");if(!Lt.validateMaxLength(this.version,128))return new ge("version","does not satisfy required maxLength constraint: 128")}if("locationInfo"===t&&(void 0===this.locationInfo||null===this.locationInfo))return new ge("locationInfo","undefined or null");if("deviceId"===t){if(void 0===this.deviceId||null===this.deviceId)return new ge("deviceId","undefined or null");if(!Lt.validateMaxLength(this.deviceId,128))return new ge("deviceId","does not satisfy required maxLength constraint: 128")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("version")&&null!==e.version&&void 0!==e.version&&n.setVersion(e.version),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(Fn.constructFromObject(e.locationInfo)),e.hasOwnProperty("deviceId")&&null!==e.deviceId&&void 0!==e.deviceId&&n.setDeviceId(e.deviceId),!r))for(var o in n.$unknownFields=Mu({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}}],r&&_u(n.prototype,r),o&&_u(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qu(e){return qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qu(e)}function Gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gu(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Qu(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qu(r.key),r)}}function Qu(e){var t=function(e,t){if("object"!=qu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=qu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qu(t)?t:t+""}function Yu(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Bu.prototype.version=void 0,Bu.prototype.locationInfo=void 0,Bu.prototype.deviceId=void 0;var Zu=new WeakSet,el=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Zu),r.add(n),this.recommendationSpec=t,this.$objectType="lifecycle.v4.resources.RecommendationSpec",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getRecommendationSpec",value:function(){return this.recommendationSpec}},{key:"setRecommendationSpec",value:function(e){this.recommendationSpec=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ku(Ku({},!1===e?void 0!==this.getRecommendationSpec()&&null!==this.getRecommendationSpec()?{recommendationSpec:void 0!==this.getRecommendationSpec().toJson?this.getRecommendationSpec().toJson(!1):Array.isArray(this.getRecommendationSpec())?this.getRecommendationSpec().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Yu(Zu,this,tl).call(this,this.getRecommendationSpec(),!1)}:{}:void 0!==this.getRecommendationSpec()&&null!==this.getRecommendationSpec()?{recommendationSpec:void 0!==this.getRecommendationSpec().toJson?this.getRecommendationSpec().toJson():Array.isArray(this.getRecommendationSpec())?this.getRecommendationSpec().map((function(e){return void 0!==e.toJson?e.toJson():e})):Yu(Zu,this,tl).call(this,this.getRecommendationSpec())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["recommendationSpec"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"recommendationSpec"!==t||void 0!==this.recommendationSpec&&null!==this.recommendationSpec?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("recommendationSpec","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("recommendationSpec")&&null!==t.recommendationSpec&&void 0!==t.recommendationSpec){if(!Array.isArray(t.recommendationSpec))throw"Unknown datatype "+(a=t.recommendationSpec.hasOwnProperty("$objectType")?t.recommendationSpec.$objectType:qu(t.recommendationSpec))+" in data";if(0===t.recommendationSpec.length)n.setRecommendationSpec([]);else{if(s=[],(r=t.recommendationSpec)[0].hasOwnProperty("$objectType"))a=r[0].$objectType;else{a=qu(r[0]);try{Object.keys(ln).find((function(e){return ln[e]===r[0]}))&&(a="lifecycle.v4.common.EntityType")}catch(e){}}for(i=0;i<r.length;i++)switch(a){case"lifecycle.v4.common.EntityType":o=ln.constructFromObject(r[i],void 0),s.push(o);break;case"lifecycle.v4.resources.TargetEntity":o=Bu.constructFromObject(r[i],void 0),s.push(o);break;case"lifecycle.v4.common.EntityUpdateSpec":o=wa.constructFromObject(r[i],void 0),s.push(o);break;case"lifecycle.v4.common.EntityDeploySpec":o=Cu.constructFromObject(r[i],void 0),s.push(o);break;default:throw"Unknown list of type "+a+" in data"}n.setRecommendationSpec(s)}}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var l in n.$unknownFields=Ku({},t.$unknownFields),t)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=t[l])}return n}}],n&&Xu(t.prototype,n),r&&Xu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function tl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===qu(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function nl(e){return nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nl(e)}function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=sl(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function il(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sl(r.key),r)}}function sl(e){var t=function(e,t){if("object"!=nl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=nl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nl(t)?t:t+""}function al(e,t,n){return t=ll(t),function(e,t){if(t&&("object"===nl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ul()?Reflect.construct(t,n||[],ll(e).constructor):t.apply(e,n))}function ul(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ul=function(){return!!e})()}function ll(e){return ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ll(e)}function cl(e,t){return cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cl(e,t)}el.prototype.recommendationSpec=void 0,el.prototype.$reserved=void 0,el.prototype.$objectType=void 0,el.prototype.$unknownFields=void 0;var fl=new WeakSet,dl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=al(this,t),r=fl),r.add(n),e.$objectType="lifecycle.v4.resources.DeployableVersion",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cl(e,t)}(t,e),n=t,r=[{key:"getTargetVersion",value:function(){return this.targetVersion}},{key:"setTargetVersion",value:function(e){this.targetVersion=e}},{key:"getUpdateDependencies",value:function(){return this.updateDependencies}},{key:"setUpdateDependencies",value:function(e){this.updateDependencies=e}},{key:"toJson",value:function(e){return ol(!1===e?ol(ol(ol(ol(ol(ol(ol(ol(ol(ol({},void 0!==this.getTargetVersion()&&null!==this.getTargetVersion()?{targetVersion:this.getTargetVersion()}:{}),void 0!==this.getUpdateDependencies()&&null!==this.getUpdateDependencies()?{updateDependencies:this.getUpdateDependencies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ol(ol(ol(ol(ol(ol(ol(ol({},void 0!==this.getTargetVersion()&&null!==this.getTargetVersion()?{targetVersion:this.getTargetVersion()}:{}),void 0!==this.getUpdateDependencies()&&null!==this.getUpdateDependencies()?{updateDependencies:this.getUpdateDependencies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("targetVersion"===t){if(void 0===this.targetVersion||null===this.targetVersion)return new ge("targetVersion","undefined or null");if(!Lt.validateMaxLength(this.targetVersion,128))return new ge("targetVersion","does not satisfy required maxLength constraint: 128")}if("updateDependencies"===t){if(void 0===this.updateDependencies||null===this.updateDependencies)return new ge("updateDependencies","undefined or null");if(!Lt.validateMaxItems(this.updateDependencies,2048))return new ge("updateDependencies","does not satisfy required maxItems constraint: 2048")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("targetVersion")&&null!==e.targetVersion&&void 0!==e.targetVersion&&n.setTargetVersion(e.targetVersion),e.hasOwnProperty("updateDependencies")&&null!==e.updateDependencies&&void 0!==e.updateDependencies){for(s=[],r=e.updateDependencies,i=0;i<r.length;i++)o=wa.constructFromObject(r[i],void 0),s.push(o);n.setUpdateDependencies(s)}if(!a)for(var u in n.$unknownFields=ol({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&il(n.prototype,r),o&&il(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function pl(e){return pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pl(e)}function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=bl(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bl(r.key),r)}}function bl(e){var t=function(e,t){if("object"!=pl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=pl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pl(t)?t:t+""}function gl(e,t,n){return t=wl(t),function(e,t){if(t&&("object"===pl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ml()?Reflect.construct(t,n||[],wl(e).constructor):t.apply(e,n))}function ml(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ml=function(){return!!e})()}function wl(e){return wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wl(e)}function Ol(e,t){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ol(e,t)}dl.prototype.targetVersion=void 0,dl.prototype.updateDependencies=void 0;var jl=new WeakSet,kl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=gl(this,t),r=jl),r.add(n),e.$objectType="lifecycle.v4.resources.UpdatedTargetEntity",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ol(e,t)}(t,e),n=t,r=[{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"toJson",value:function(e){return hl(!1===e?hl(hl(hl(hl(hl(hl(hl(hl(hl({},void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):hl(hl(hl(hl(hl(hl(hl({},void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"locationInfo"!==t||void 0!==this.locationInfo&&null!==this.locationInfo?new ge(t,"no such property exists"):new ge("locationInfo","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(Fn.constructFromObject(e.locationInfo)),!r))for(var o in n.$unknownFields=hl({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}}],r&&vl(n.prototype,r),o&&vl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function $l(e){return $l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$l(e)}function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?El(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Sl(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sl(r.key),r)}}function Sl(e){var t=function(e,t){if("object"!=$l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=$l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$l(t)?t:t+""}kl.prototype.locationInfo=void 0;var Fl=new WeakSet,Il=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Fl),r.add(n),this.message=t,this.$objectType="lifecycle.v4.resources.UpdatedTargetEntityResult",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getTargetEntity",value:function(){return this.targetEntity}},{key:"setTargetEntity",value:function(e){this.targetEntity=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pl(Pl(Pl({},void 0!==this.getTargetEntity()&&null!==this.getTargetEntity()?{targetEntity:this.getTargetEntity().toJson(!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["message"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("targetEntity"===t&&(void 0===this.targetEntity||null===this.targetEntity))return new ge("targetEntity","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new ge("message","undefined or null");if(!Lt.validateMaxLength(this.message,512))return new ge("message","does not satisfy required maxLength constraint: 512")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("targetEntity")&&null!==t.targetEntity&&void 0!==t.targetEntity&&n.setTargetEntity(kl.constructFromObject(t.targetEntity)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Pl({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Tl(t.prototype,n),r&&Tl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Dl(e){return Dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dl(e)}function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=xl(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xl(r.key),r)}}function xl(e){var t=function(e,t){if("object"!=Dl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Dl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dl(t)?t:t+""}function Ul(e,t,n){return t=_l(t),function(e,t){if(t&&("object"===Dl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ml()?Reflect.construct(t,n||[],_l(e).constructor):t.apply(e,n))}function Ml(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ml=function(){return!!e})()}function _l(e){return _l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_l(e)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vl(e,t)}Il.prototype.targetEntity=void 0,Il.prototype.message=void 0,Il.prototype.$reserved=void 0,Il.prototype.$objectType=void 0,Il.prototype.$unknownFields=void 0;var Nl=new WeakSet,Jl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ul(this,t),r=Nl),r.add(n),e.$objectType="lifecycle.v4.resources.RecommendationResult",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}(t,e),n=t,r=[{key:"getEntityUpdateSpecs",value:function(){return this.entityUpdateSpecs}},{key:"setEntityUpdateSpecs",value:function(e){this.entityUpdateSpecs=e}},{key:"getSkippedEntities",value:function(){return this.skippedEntities}},{key:"setSkippedEntities",value:function(e){this.skippedEntities=e}},{key:"getModifiableEntities",value:function(){return this.modifiableEntities}},{key:"setModifiableEntities",value:function(e){this.modifiableEntities=e}},{key:"getAddableEntities",value:function(){return this.addableEntities}},{key:"setAddableEntities",value:function(e){this.addableEntities=e}},{key:"getDeployableVersions",value:function(){return this.deployableVersions}},{key:"setDeployableVersions",value:function(e){this.deployableVersions=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return Rl(!1===e?Rl(Rl(Rl(Rl(Rl(Rl(Rl(Rl(Rl({},void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSkippedEntities()&&null!==this.getSkippedEntities()?{skippedEntities:this.getSkippedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getModifiableEntities()&&null!==this.getModifiableEntities()?{modifiableEntities:this.getModifiableEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getAddableEntities()&&null!==this.getAddableEntities()?{addableEntities:this.getAddableEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDeployableVersions()&&null!==this.getDeployableVersions()?{deployableVersions:this.getDeployableVersions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Rl(Rl(Rl(Rl(Rl(Rl(Rl({},void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSkippedEntities()&&null!==this.getSkippedEntities()?{skippedEntities:this.getSkippedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getModifiableEntities()&&null!==this.getModifiableEntities()?{modifiableEntities:this.getModifiableEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getAddableEntities()&&null!==this.getAddableEntities()?{addableEntities:this.getAddableEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDeployableVersions()&&null!==this.getDeployableVersions()?{deployableVersions:this.getDeployableVersions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("entityUpdateSpecs"===t){if(void 0===this.entityUpdateSpecs||null===this.entityUpdateSpecs)return new ge("entityUpdateSpecs","undefined or null");if(!Lt.validateMaxItems(this.entityUpdateSpecs,2048))return new ge("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}if("skippedEntities"===t){if(void 0===this.skippedEntities||null===this.skippedEntities)return new ge("skippedEntities","undefined or null");if(!Lt.validateMaxItems(this.skippedEntities,2048))return new ge("skippedEntities","does not satisfy required maxItems constraint: 2048")}if("modifiableEntities"===t){if(void 0===this.modifiableEntities||null===this.modifiableEntities)return new ge("modifiableEntities","undefined or null");if(!Lt.validateMaxItems(this.modifiableEntities,2048))return new ge("modifiableEntities","does not satisfy required maxItems constraint: 2048")}if("addableEntities"===t){if(void 0===this.addableEntities||null===this.addableEntities)return new ge("addableEntities","undefined or null");if(!Lt.validateMaxItems(this.addableEntities,2048))return new ge("addableEntities","does not satisfy required maxItems constraint: 2048")}if("deployableVersions"===t){if(void 0===this.deployableVersions||null===this.deployableVersions)return new ge("deployableVersions","undefined or null");if(!Lt.validateMaxItems(this.deployableVersions,2048))return new ge("deployableVersions","does not satisfy required maxItems constraint: 2048")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new ge("clusterExtId","undefined or null");if(!Lt.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("entityUpdateSpecs")&&null!==e.entityUpdateSpecs&&void 0!==e.entityUpdateSpecs){for(s=[],r=e.entityUpdateSpecs,i=0;i<r.length;i++)o=wa.constructFromObject(r[i],void 0),s.push(o);n.setEntityUpdateSpecs(s)}if(e.hasOwnProperty("skippedEntities")&&null!==e.skippedEntities&&void 0!==e.skippedEntities){for(s=[],r=e.skippedEntities,i=0;i<r.length;i++)o=Il.constructFromObject(r[i],void 0),s.push(o);n.setSkippedEntities(s)}if(e.hasOwnProperty("modifiableEntities")&&null!==e.modifiableEntities&&void 0!==e.modifiableEntities){for(s=[],r=e.modifiableEntities,i=0;i<r.length;i++)o=Il.constructFromObject(r[i],void 0),s.push(o);n.setModifiableEntities(s)}if(e.hasOwnProperty("addableEntities")&&null!==e.addableEntities&&void 0!==e.addableEntities){for(s=[],r=e.addableEntities,i=0;i<r.length;i++)o=Il.constructFromObject(r[i],void 0),s.push(o);n.setAddableEntities(s)}if(e.hasOwnProperty("deployableVersions")&&null!==e.deployableVersions&&void 0!==e.deployableVersions){for(s=[],r=e.deployableVersions,i=0;i<r.length;i++)o=dl.constructFromObject(r[i],void 0),s.push(o);n.setDeployableVersions(s)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),!a)for(var u in n.$unknownFields=Rl({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Cl(n.prototype,r),o&&Cl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(an);function Ll(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wl(e){return Wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wl(e)}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ql(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ql(r.key),r)}}function ql(e){var t=function(e,t){if("object"!=Wl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wl(t)?t:t+""}function Gl(e,t,n){return t=Xl(t),function(e,t){if(t&&("object"===Wl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Kl()?Reflect.construct(t,n||[],Xl(e).constructor):t.apply(e,n))}function Kl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kl=function(){return!!e})()}function Xl(e){return Xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xl(e)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ql(e,t)}function Yl(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Jl.prototype.entityUpdateSpecs=void 0,Jl.prototype.skippedEntities=void 0,Jl.prototype.modifiableEntities=void 0,Jl.prototype.addableEntities=void 0,Jl.prototype.deployableVersions=void 0,Jl.prototype.clusterExtId=void 0;var Zl=new WeakSet,ec=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Gl(this,t),r=Zl),r.add(n),e.$objectType="lifecycle.v4.resources.GetRecommendationByIdApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ql(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Bl(Bl(Bl({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Yl(Zl,this,tc).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Yl(Zl,this,tc).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Wl(e.data)){case"lifecycle.v4.resources.RecommendationResult":n.setData(Jl.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Bl({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&zl(n.prototype,r),o&&zl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function tc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ll(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ll(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Wl(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function nc(e){return nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nc(e)}function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=sc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sc(r.key),r)}}function sc(e){var t=function(e,t){if("object"!=nc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=nc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nc(t)?t:t+""}function ac(e,t){return e.get(uc(e,t))}function uc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ec.prototype.metadata=void 0,ec.prototype.data=void 0,ec.prototype.$reserved=void 0,ec.prototype.$objectType=void 0,ec.prototype.$unknownFields=void 0;var lc=new WeakMap,cc=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=lc),i.set(o,s),this.apiClient=t||X.instance,n=lc,r=new Set,n.set(uc(n,this),r),ac(lc,this).add("authorization"),ac(lc,this).add("cookie"),ac(lc,this).add("host"),ac(lc,this).add("user-agent")},t=[{key:"computeRecommendations",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;o=e instanceof el&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){ac(lc,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=oc({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=Pu;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/compute-recommendations","POST",{},{},s,{},o,["basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"getRecommendationById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getRecommendationById");var r={extId:e},o={};Object.keys(n).forEach((function(e){ac(lc,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=oc({},o),s=ec;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/recommendations/{extId}","GET",r,{},i,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&ic(e.prototype,t),n&&ic(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function fc(e){return fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fc(e)}function dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=hc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hc(r.key),r)}}function hc(e){var t=function(e,t){if("object"!=fc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fc(t)?t:t+""}var vc=new WeakSet,bc=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=vc),n.add(t),this.$objectType="lifecycle.v4.resources.FrameworkVersionInfo",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getCurrentVersion",value:function(){return this.currentVersion}},{key:"setCurrentVersion",value:function(e){this.currentVersion=e}},{key:"getAvailableVersion",value:function(){return this.availableVersion}},{key:"setAvailableVersion",value:function(e){this.availableVersion=e}},{key:"getIsUpdateNeeded",value:function(){return this.isUpdateNeeded}},{key:"setIsUpdateNeeded",value:function(e){this.isUpdateNeeded=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pc(pc(pc(pc({},void 0!==this.getCurrentVersion()&&null!==this.getCurrentVersion()?{currentVersion:this.getCurrentVersion()}:{}),void 0!==this.getAvailableVersion()&&null!==this.getAvailableVersion()?{availableVersion:this.getAvailableVersion()}:{}),void 0!==this.getIsUpdateNeeded()&&null!==this.getIsUpdateNeeded()?{isUpdateNeeded:this.getIsUpdateNeeded()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("currentVersion"===t){if(void 0===this.currentVersion||null===this.currentVersion)return new ge("currentVersion","undefined or null");if(!Lt.validateMaxLength(this.currentVersion,128))return new ge("currentVersion","does not satisfy required maxLength constraint: 128")}if("availableVersion"===t){if(void 0===this.availableVersion||null===this.availableVersion)return new ge("availableVersion","undefined or null");if(!Lt.validateMaxLength(this.availableVersion,128))return new ge("availableVersion","does not satisfy required maxLength constraint: 128")}return"isUpdateNeeded"!==t||void 0!==this.isUpdateNeeded&&null!==this.isUpdateNeeded?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("isUpdateNeeded","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("currentVersion")&&null!==t.currentVersion&&void 0!==t.currentVersion&&n.setCurrentVersion(t.currentVersion),t.hasOwnProperty("availableVersion")&&null!==t.availableVersion&&void 0!==t.availableVersion&&n.setAvailableVersion(t.availableVersion),t.hasOwnProperty("isUpdateNeeded")&&null!==t.isUpdateNeeded&&void 0!==t.isUpdateNeeded&&n.setIsUpdateNeeded(t.isUpdateNeeded),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=pc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&yc(t.prototype,n),r&&yc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();bc.prototype.currentVersion=void 0,bc.prototype.availableVersion=void 0,bc.prototype.isUpdateNeeded=!1,bc.prototype.$reserved=void 0,bc.prototype.$objectType=void 0,bc.prototype.$unknownFields=void 0;var gc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INVENTORY:"INVENTORY",PRECHECKS:"PRECHECKS",UPGRADE:"UPGRADE",NONE:"NONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(gc).find((function(t){return gc[t]===e}));return null==t?gc.$UNKNOWN:gc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case gc.$UNKNOWN:case gc.$REDACTED:case gc.INVENTORY:case gc.PRECHECKS:case gc.UPGRADE:case gc.NONE:return;default:throw new Error("Invalid : must be OperationType.{ $UNKNOWN|$REDACTED|INVENTORY|PRECHECKS|UPGRADE|NONE }")}}};Object.freeze(gc);const mc=gc;function wc(e){return wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wc(e)}function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=$c(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$c(r.key),r)}}function $c(e){var t=function(e,t){if("object"!=wc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=wc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wc(t)?t:t+""}var Ec=new WeakSet,Pc=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ec),n.add(t),this.$objectType="lifecycle.v4.resources.InProgressOpInfo",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getOperationId",value:function(){return this.operationId}},{key:"setOperationId",value:function(e){this.operationId=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return jc(jc(jc({},void 0!==this.getOperationId()&&null!==this.getOperationId()?{operationId:this.getOperationId()}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("operationId"===t){if(void 0===this.operationId||null===this.operationId)return new ge("operationId","undefined or null");if(!Lt.validatePattern(this.operationId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("operationId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"operationType"!==t||void 0!==this.operationType&&null!==this.operationType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("operationType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("operationId")&&null!==t.operationId&&void 0!==t.operationId&&n.setOperationId(t.operationId),t.hasOwnProperty("operationType")&&null!==t.operationType&&void 0!==t.operationType&&n.setOperationType(mc.constructFromObject(t.operationType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=jc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&kc(t.prototype,n),r&&kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Tc(e){return Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tc(e)}function Sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Dc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dc(r.key),r)}}function Dc(e){var t=function(e,t){if("object"!=Tc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Tc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tc(t)?t:t+""}Pc.prototype.operationId=void 0,Pc.prototype.operationType=void 0,Pc.prototype.$reserved=void 0,Pc.prototype.$objectType=void 0,Pc.prototype.$unknownFields=void 0;var Ac=new WeakSet,Rc=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ac),n.add(t),this.$objectType="lifecycle.v4.resources.StatusInfo",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getFrameworkVersion",value:function(){return this.frameworkVersion}},{key:"setFrameworkVersion",value:function(e){this.frameworkVersion=e}},{key:"getInProgressOperation",value:function(){return this.inProgressOperation}},{key:"setInProgressOperation",value:function(e){this.inProgressOperation=e}},{key:"getIsCancelIntentSet",value:function(){return this.isCancelIntentSet}},{key:"setIsCancelIntentSet",value:function(e){this.isCancelIntentSet=e}},{key:"getUploadTaskUuid",value:function(){return this.uploadTaskUuid}},{key:"setUploadTaskUuid",value:function(e){this.uploadTaskUuid=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fc(Fc(Fc(Fc(Fc({},void 0!==this.getFrameworkVersion()&&null!==this.getFrameworkVersion()?{frameworkVersion:this.getFrameworkVersion().toJson(!1)}:{}),void 0!==this.getInProgressOperation()&&null!==this.getInProgressOperation()?{inProgressOperation:this.getInProgressOperation().toJson(!1)}:{}),void 0!==this.getIsCancelIntentSet()&&null!==this.getIsCancelIntentSet()?{isCancelIntentSet:this.getIsCancelIntentSet()}:{}),void 0!==this.getUploadTaskUuid()&&null!==this.getUploadTaskUuid()?{uploadTaskUuid:this.getUploadTaskUuid()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("frameworkVersion"===t&&(void 0===this.frameworkVersion||null===this.frameworkVersion))return new ge("frameworkVersion","undefined or null");if("inProgressOperation"===t&&(void 0===this.inProgressOperation||null===this.inProgressOperation))return new ge("inProgressOperation","undefined or null");if("isCancelIntentSet"===t&&(void 0===this.isCancelIntentSet||null===this.isCancelIntentSet))return new ge("isCancelIntentSet","undefined or null");if("uploadTaskUuid"===t){if(void 0===this.uploadTaskUuid||null===this.uploadTaskUuid)return new ge("uploadTaskUuid","undefined or null");if(!Lt.validatePattern(this.uploadTaskUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new ge("uploadTaskUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("frameworkVersion")&&null!==t.frameworkVersion&&void 0!==t.frameworkVersion&&n.setFrameworkVersion(bc.constructFromObject(t.frameworkVersion)),t.hasOwnProperty("inProgressOperation")&&null!==t.inProgressOperation&&void 0!==t.inProgressOperation&&n.setInProgressOperation(Pc.constructFromObject(t.inProgressOperation)),t.hasOwnProperty("isCancelIntentSet")&&null!==t.isCancelIntentSet&&void 0!==t.isCancelIntentSet&&n.setIsCancelIntentSet(t.isCancelIntentSet),t.hasOwnProperty("uploadTaskUuid")&&null!==t.uploadTaskUuid&&void 0!==t.uploadTaskUuid&&n.setUploadTaskUuid(t.uploadTaskUuid),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Fc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Ic(t.prototype,n),r&&Ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xc(e){return xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xc(e)}function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Vc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vc(r.key),r)}}function Vc(e){var t=function(e,t){if("object"!=xc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xc(t)?t:t+""}function Nc(e,t,n){return t=Lc(t),function(e,t){if(t&&("object"===xc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Jc()?Reflect.construct(t,n||[],Lc(e).constructor):t.apply(e,n))}function Jc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jc=function(){return!!e})()}function Lc(e){return Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lc(e)}function Wc(e,t){return Wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wc(e,t)}function Hc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Rc.prototype.frameworkVersion=void 0,Rc.prototype.inProgressOperation=void 0,Rc.prototype.isCancelIntentSet=!1,Rc.prototype.uploadTaskUuid=void 0,Rc.prototype.$reserved=void 0,Rc.prototype.$objectType=void 0,Rc.prototype.$unknownFields=void 0;var Bc=new WeakSet,zc=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Nc(this,t),r=Bc),r.add(n),e.$objectType="lifecycle.v4.resources.GetStatusApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Mc(Mc(Mc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Hc(Bc,this,qc).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Hc(Bc,this,qc).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:xc(e.data)){case"lifecycle.v4.resources.StatusInfo":n.setData(Rc.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Mc({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&_c(n.prototype,r),o&&_c(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function qc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===xc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Gc(e){return Gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gc(e)}function Kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qc(r.key),r)}}function Qc(e){var t=function(e,t){if("object"!=Gc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gc(t)?t:t+""}function Yc(e,t){return e.get(Zc(e,t))}function Zc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}zc.prototype.metadata=void 0,zc.prototype.data=void 0,zc.prototype.$reserved=void 0,zc.prototype.$objectType=void 0,zc.prototype.$unknownFields=void 0;var ef=new WeakMap,tf=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=ef),i.set(o,s),this.apiClient=t||X.instance,n=ef,r=new Set,n.set(Zc(n,this),r),Yc(ef,this).add("authorization"),Yc(ef,this).add("cookie"),Yc(ef,this).add("host"),Yc(ef,this).add("user-agent")},t=[{key:"getStatus",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};e=e||{};var r={};Object.keys(n).forEach((function(e){Yc(ef,t).has(e.toLowerCase())||(r[e]=n[e])}));var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Qc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":e["X-Cluster-Id"]},r),i=zc;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/status","GET",{},{},o,{},null,["basicAuthScheme"],[],["application/json"],i)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&Xc(e.prototype,t),n&&Xc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function nf(e){return nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nf(e)}function rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=af(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,af(r.key),r)}}function af(e){var t=function(e,t){if("object"!=nf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=nf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nf(t)?t:t+""}function uf(e,t,n){return t=cf(t),function(e,t){if(t&&("object"===nf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lf()?Reflect.construct(t,n||[],cf(e).constructor):t.apply(e,n))}function lf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lf=function(){return!!e})()}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cf(e)}function ff(e,t){return ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ff(e,t)}var df=new WeakSet,pf=function(e){function t(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=n=uf(this,t,[e]),o=df),o.add(r),n.$objectType="lifecycle.v4.common.UpgradeSpec",n.$reserved={$fv:"v4.r0.b1"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ff(e,t)}(t,e),n=t,r=[{key:"getAutoHandleFlags",value:function(){return this.autoHandleFlags}},{key:"setAutoHandleFlags",value:function(e){this.autoHandleFlags=e}},{key:"getMaxWaitTimeInSecs",value:function(){return this.maxWaitTimeInSecs}},{key:"setMaxWaitTimeInSecs",value:function(e){this.maxWaitTimeInSecs=e}},{key:"toJson",value:function(e){return of(of(of(of(of(of({},void 0!==this.getAutoHandleFlags()&&null!==this.getAutoHandleFlags()?{autoHandleFlags:this.getAutoHandleFlags()}:{}),void 0!==this.getMaxWaitTimeInSecs()&&null!==this.getMaxWaitTimeInSecs()?{maxWaitTimeInSecs:this.getMaxWaitTimeInSecs()}:{}),void 0!==this.getManagementServer()&&null!==this.getManagementServer()?{managementServer:this.getManagementServer().toJson(!1)}:{}),void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSkippedPrecheckFlags()&&null!==this.getSkippedPrecheckFlags()?{skippedPrecheckFlags:this.getSkippedPrecheckFlags()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["entityUpdateSpecs"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("autoHandleFlags"===t){if(void 0===this.autoHandleFlags||null===this.autoHandleFlags)return new ge("autoHandleFlags","undefined or null");if(!Lt.validateMaxItems(this.autoHandleFlags,20))return new ge("autoHandleFlags","does not satisfy required maxItems constraint: 20")}if("maxWaitTimeInSecs"===t){if(void 0===this.maxWaitTimeInSecs||null===this.maxWaitTimeInSecs)return new ge("maxWaitTimeInSecs","undefined or null");if(!Lt.validateMaximum(this.maxWaitTimeInSecs,86400))return new ge("maxWaitTimeInSecs","does not satisfy required maximum constraint: 86400");if(!Lt.validateMinimum(this.maxWaitTimeInSecs,60))return new ge("maxWaitTimeInSecs","does not satisfy required minimum constraint: 60")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,Ba.constructFromObject(e,n,!0),e.hasOwnProperty("autoHandleFlags")&&null!==e.autoHandleFlags&&void 0!==e.autoHandleFlags){for(s=[],r=e.autoHandleFlags,i=0;i<r.length;i++)o=_a.constructFromObject(r[i],void 0),s.push(o);n.setAutoHandleFlags(s)}if(e.hasOwnProperty("maxWaitTimeInSecs")&&null!==e.maxWaitTimeInSecs&&void 0!==e.maxWaitTimeInSecs&&n.setMaxWaitTimeInSecs(e.maxWaitTimeInSecs),!a)for(var u in n.$unknownFields=of({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&sf(n.prototype,r),o&&sf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ba);function yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hf(e){return hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hf(e)}function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=mf(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mf(r.key),r)}}function mf(e){var t=function(e,t){if("object"!=hf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hf(t)?t:t+""}function wf(e,t,n){return t=jf(t),function(e,t){if(t&&("object"===hf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Of()?Reflect.construct(t,n||[],jf(e).constructor):t.apply(e,n))}function Of(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Of=function(){return!!e})()}function jf(e){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jf(e)}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kf(e,t)}function $f(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}pf.prototype.autoHandleFlags=void 0,pf.prototype.maxWaitTimeInSecs=void 0;var Ef=new WeakSet,Pf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=wf(this,t),r=Ef),r.add(n),e.$objectType="lifecycle.v4.operations.UpgradeApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bf(bf(bf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):$f(Ef,this,Tf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):$f(Ef,this,Tf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hf(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=bf({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&gf(n.prototype,r),o&&gf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Tf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===hf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Sf(e){return Sf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sf(e)}function Ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function If(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Df(r.key),r)}}function Df(e){var t=function(e,t){if("object"!=Sf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Sf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sf(t)?t:t+""}function Af(e,t){return e.get(Rf(e,t))}function Rf(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Pf.prototype.metadata=void 0,Pf.prototype.data=void 0,Pf.prototype.$reserved=void 0,Pf.prototype.$objectType=void 0,Pf.prototype.$unknownFields=void 0;var Cf=new WeakMap,xf=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=Cf),i.set(o,s),this.apiClient=t||X.instance,n=Cf,r=new Set,n.set(Rf(n,this),r),Af(Cf,this).add("authorization"),Af(Cf,this).add("cookie"),Af(Cf,this).add("host"),Af(Cf,this).add("user-agent")},t=[{key:"performUpgrade",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;o=e instanceof pf&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){Af(Cf,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ff(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Df(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=Pf;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/upgrade","POST",{},{},s,{},o,["basicAuthScheme"],["application/json"],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&If(e.prototype,t),n&&If(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();const Uf={ApiClient:X,EntitiesApi:Wr,ConfigApi:qo,ImagesApi:Ui,InventoryApi:os,NotificationsApi:Fa,PrechecksApi:pu,RecommendationsApi:cc,StatusApi:tf,UpgradesApi:xf,Flag:Ee,KVPair:Ce,Message:He,MessageSeverity:Me,TenantAwareModel:Kt,ApiLink:Qe,ApiResponseMetadata:ot,ExternalizableAbstractModel:an,AvailableVersionStatus:Dn,CheckSumType:Ko,EntityBaseModel:wn,EntityDeploySpec:Cu,EntityType:ln,EntityUpdateSpec:wa,HypervisorType:ss,LocationInfo:Fn,LocationType:jn,ManagementServer:Ua,NotificationType:us,OperationType:mc,PrechecksSpec:Ba,SystemAutoMgmtFlag:_a,UpgradeSpec:pf,AppMessage:pt,ErrorResponse:Mt,SchemaValidationError:St,SchemaValidationErrorMessage:Ot,ComputeNotificationsApiResponse:da,ComputeRecommendationsApiResponse:Pu,InventoryApiResponse:Ki,PrechecksApiResponse:ou,UpgradeApiResponse:Pf,AvailableVersion:Kn,Config:no,ConnectivityType:Br,DependentEntity:Ln,DeployableVersion:dl,Entity:sr,FrameworkVersionInfo:bc,GetConfigApiResponse:vo,GetEntityByIdApiResponse:mr,GetNotificationsByIdApiResponse:Ys,GetRecommendationByIdApiResponse:ec,GetStatusApiResponse:zc,Image:pi,ImageFile:ni,InProgressOpInfo:Pc,ListEntitiesApiResponse:Rr,ListImagesApiResponse:Pi,Notification:Vs,NotificationDetail:bs,NotificationItem:Ss,RecommendationResult:Jl,RecommendationSpec:el,SeverityLevel:cs,StatusInfo:Rc,TargetEntity:Bu,UpdateConfigApiResponse:Mo,UpdatedTargetEntity:kl,UpdatedTargetEntityResult:Il,TaskReference:$o}})(),r.default})()));