@nutanix-scratch/security-js-client 4.0.1 → 4.1.2

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 (418) hide show
  1. package/README.md +17 -5
  2. package/dist/Ntnx-Security-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Security-js-client.js +626 -532
  4. package/dist/es/ApiClient.d.ts +29 -7
  5. package/dist/es/ApiClient.js +854 -667
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +144 -183
  8. package/dist/es/apis/approvalpolicies-endpoints.d.ts +2 -2
  9. package/dist/es/apis/approvalpolicies-endpoints.js +221 -235
  10. package/dist/es/apis/credentials-endpoints.d.ts +2 -2
  11. package/dist/es/apis/credentials-endpoints.js +210 -224
  12. package/dist/es/apis/keymanagementservers-endpoints.d.ts +1 -1
  13. package/dist/es/apis/keymanagementservers-endpoints.js +190 -210
  14. package/dist/es/apis/securitysummaries-endpoints.d.ts +56 -0
  15. package/dist/es/apis/securitysummaries-endpoints.js +140 -0
  16. package/dist/es/apis/stigs-endpoints.d.ts +4 -3
  17. package/dist/es/apis/stigs-endpoints.js +108 -111
  18. package/dist/es/apis/vulnerabilities-endpoints.d.ts +46 -0
  19. package/dist/es/apis/vulnerabilities-endpoints.js +107 -0
  20. package/dist/es/index.d.ts +31 -15
  21. package/dist/es/index.js +361 -297
  22. package/dist/es/models/common/v1/config/BasicAuth.d.ts +2 -8
  23. package/dist/es/models/common/v1/config/BasicAuth.js +170 -211
  24. package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
  25. package/dist/es/models/common/v1/config/FQDN.js +141 -180
  26. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  27. package/dist/es/models/common/v1/config/Flag.js +170 -211
  28. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  29. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  30. package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
  31. package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
  32. package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
  33. package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
  34. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  35. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  36. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  37. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  38. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  39. package/dist/es/models/common/v1/config/Message.js +213 -258
  40. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  41. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  42. package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
  43. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  44. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  45. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  46. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  47. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  48. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  49. package/dist/es/models/iam/v4/authn/BucketsAccessKey.d.ts +1 -26
  50. package/dist/es/models/iam/v4/authn/BucketsAccessKey.js +385 -453
  51. package/dist/es/models/iam/v4/authn/BucketsAccessKeyStatusType.js +7 -9
  52. package/dist/es/models/iam/v4/authn/CreationType.js +7 -9
  53. package/dist/es/models/iam/v4/authn/User.d.ts +1 -67
  54. package/dist/es/models/iam/v4/authn/User.js +714 -810
  55. package/dist/es/models/iam/v4/authn/UserStatusType.js +7 -9
  56. package/dist/es/models/iam/v4/authn/UserType.js +7 -9
  57. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  58. package/dist/es/models/prism/v4/config/TaskReference.js +143 -181
  59. package/dist/es/models/security/v4/common/Cluster.d.ts +2 -8
  60. package/dist/es/models/security/v4/common/Cluster.js +171 -212
  61. package/dist/es/models/security/v4/common/ClusterProjection.d.ts +1 -1
  62. package/dist/es/models/security/v4/common/ClusterProjection.js +74 -103
  63. package/dist/es/models/security/v4/common/Timescale.js +9 -29
  64. package/dist/es/models/security/v4/config/AzureAccessInformation.d.ts +2 -13
  65. package/dist/es/models/security/v4/config/AzureAccessInformation.js +311 -361
  66. package/dist/es/models/security/v4/config/BasicAuthCredential.d.ts +2 -13
  67. package/dist/es/models/security/v4/config/BasicAuthCredential.js +138 -177
  68. package/dist/es/models/security/v4/config/BmcCredential.d.ts +1 -14
  69. package/dist/es/models/security/v4/config/BmcCredential.js +121 -163
  70. package/dist/es/models/security/v4/config/CreateCredentialApiResponse.d.ts +2 -43
  71. package/dist/es/models/security/v4/config/CreateCredentialApiResponse.js +187 -242
  72. package/dist/es/models/security/v4/config/CreateKeyManagementServerApiResponse.d.ts +2 -43
  73. package/dist/es/models/security/v4/config/CreateKeyManagementServerApiResponse.js +187 -242
  74. package/dist/es/models/security/v4/config/Credential.d.ts +1 -18
  75. package/dist/es/models/security/v4/config/Credential.js +200 -251
  76. package/dist/es/models/security/v4/config/DeleteCredentialApiResponse.d.ts +2 -43
  77. package/dist/es/models/security/v4/config/DeleteCredentialApiResponse.js +190 -245
  78. package/dist/es/models/security/v4/config/DeleteKeyManagementServerApiResponse.d.ts +2 -43
  79. package/dist/es/models/security/v4/config/DeleteKeyManagementServerApiResponse.js +187 -242
  80. package/dist/es/models/security/v4/config/EndpointInfo.d.ts +70 -0
  81. package/dist/es/models/security/v4/config/EndpointInfo.js +278 -0
  82. package/dist/es/models/security/v4/config/ExternalSshAccessConfig.d.ts +2 -10
  83. package/dist/es/models/security/v4/config/ExternalSshAccessConfig.js +218 -265
  84. package/dist/es/models/security/v4/config/ExternalSshAccessConfigProjection.d.ts +10 -0
  85. package/dist/es/models/security/v4/config/ExternalSshAccessConfigProjection.js +121 -0
  86. package/dist/es/models/security/v4/config/GetCredentialApiResponse.d.ts +2 -43
  87. package/dist/es/models/security/v4/config/GetCredentialApiResponse.js +187 -242
  88. package/dist/es/models/security/v4/config/GetKeyManagementServerApiResponse.d.ts +2 -43
  89. package/dist/es/models/security/v4/config/GetKeyManagementServerApiResponse.js +187 -242
  90. package/dist/es/models/security/v4/config/IntersightConnectionType.js +7 -9
  91. package/dist/es/models/security/v4/config/IntersightCredential.d.ts +1 -16
  92. package/dist/es/models/security/v4/config/IntersightCredential.js +172 -218
  93. package/dist/es/models/security/v4/config/KeyBasedAuth.d.ts +2 -8
  94. package/dist/es/models/security/v4/config/KeyBasedAuth.js +176 -217
  95. package/dist/es/models/security/v4/config/KeyBasedAuthCredential.d.ts +2 -13
  96. package/dist/es/models/security/v4/config/KeyBasedAuthCredential.js +138 -177
  97. package/dist/es/models/security/v4/config/KeyManagementServer.d.ts +20 -33
  98. package/dist/es/models/security/v4/config/KeyManagementServer.js +206 -199
  99. package/dist/es/models/security/v4/config/KmipAccessInformation.d.ts +118 -0
  100. package/dist/es/models/security/v4/config/KmipAccessInformation.js +428 -0
  101. package/dist/es/models/security/v4/config/ListCredentialsApiResponse.d.ts +2 -43
  102. package/dist/es/models/security/v4/config/ListCredentialsApiResponse.js +209 -264
  103. package/dist/es/models/security/v4/config/ListKeyManagementServersApiResponse.d.ts +2 -43
  104. package/dist/es/models/security/v4/config/ListKeyManagementServersApiResponse.js +209 -264
  105. package/dist/es/models/security/v4/config/ScheduleType.js +11 -13
  106. package/dist/es/models/security/v4/config/SecurityConfig.d.ts +1 -25
  107. package/dist/es/models/security/v4/config/SecurityConfig.js +350 -421
  108. package/dist/es/models/security/v4/config/SecurityConfigProjection.d.ts +1 -32
  109. package/dist/es/models/security/v4/config/SecurityConfigProjection.js +169 -202
  110. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySetting.d.ts +1 -23
  111. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySetting.js +303 -359
  112. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySettingProjection.d.ts +10 -0
  113. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySettingProjection.js +123 -0
  114. package/dist/es/models/security/v4/config/UpdateCredentialApiResponse.d.ts +2 -45
  115. package/dist/es/models/security/v4/config/UpdateCredentialApiResponse.js +187 -242
  116. package/dist/es/models/security/v4/config/UpdateKeyManagementServerApiResponse.d.ts +2 -43
  117. package/dist/es/models/security/v4/config/UpdateKeyManagementServerApiResponse.js +187 -242
  118. package/dist/es/models/security/v4/config/VcenterCredential.d.ts +1 -39
  119. package/dist/es/models/security/v4/config/VcenterCredential.js +145 -189
  120. package/dist/es/models/security/v4/error/AppMessage.d.ts +2 -12
  121. package/dist/es/models/security/v4/error/AppMessage.js +264 -313
  122. package/dist/es/models/security/v4/error/ErrorResponse.d.ts +2 -7
  123. package/dist/es/models/security/v4/error/ErrorResponse.js +178 -218
  124. package/dist/es/models/security/v4/error/SchemaValidationError.d.ts +2 -18
  125. package/dist/es/models/security/v4/error/SchemaValidationError.js +249 -300
  126. package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  127. package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.js +191 -234
  128. package/dist/es/models/security/v4/management/ApprovalPolicy.d.ts +1 -100
  129. package/dist/es/models/security/v4/management/ApprovalPolicy.js +302 -366
  130. package/dist/es/models/security/v4/management/ApprovalPolicyProjection.d.ts +14 -0
  131. package/dist/es/models/security/v4/management/ApprovalPolicyProjection.js +133 -0
  132. package/dist/es/models/security/v4/management/ApproverGroup.d.ts +2 -74
  133. package/dist/es/models/security/v4/management/ApproverGroup.js +206 -253
  134. package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +2 -43
  135. package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.js +187 -242
  136. package/dist/es/models/security/v4/management/AssociatePoliciesSpec.d.ts +2 -13
  137. package/dist/es/models/security/v4/management/AssociatePoliciesSpec.js +149 -192
  138. package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +2 -43
  139. package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.js +187 -242
  140. package/dist/es/models/security/v4/management/EventType.js +7 -9
  141. package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +2 -43
  142. package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.js +187 -242
  143. package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +8 -48
  144. package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.js +214 -264
  145. package/dist/es/models/security/v4/management/PolicyType.js +7 -9
  146. package/dist/es/models/security/v4/management/SecuredEntityType.js +7 -9
  147. package/dist/es/models/security/v4/management/SecuredPolicy.d.ts +2 -8
  148. package/dist/es/models/security/v4/management/SecuredPolicy.js +166 -207
  149. package/dist/es/models/security/v4/management/SecurityValidationSpec.d.ts +2 -14
  150. package/dist/es/models/security/v4/management/SecurityValidationSpec.js +332 -385
  151. package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +2 -43
  152. package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +187 -242
  153. package/dist/es/models/security/v4/report/IssueSummary.d.ts +9 -21
  154. package/dist/es/models/security/v4/report/IssueSummary.js +178 -223
  155. package/dist/es/models/security/v4/report/ListSecuritySummariesApiResponse.d.ts +59 -0
  156. package/dist/es/models/security/v4/report/ListSecuritySummariesApiResponse.js +315 -0
  157. package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.d.ts +2 -43
  158. package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.js +213 -268
  159. package/dist/es/models/security/v4/report/ListStigsApiResponse.d.ts +2 -43
  160. package/dist/es/models/security/v4/report/ListStigsApiResponse.js +213 -268
  161. package/dist/es/models/security/v4/report/ListVulnerabilitiesApiResponse.d.ts +59 -0
  162. package/dist/es/models/security/v4/report/ListVulnerabilitiesApiResponse.js +315 -0
  163. package/dist/es/models/security/v4/report/RefreshSecuritySummariesApiResponse.d.ts +58 -0
  164. package/dist/es/models/security/v4/report/RefreshSecuritySummariesApiResponse.js +288 -0
  165. package/dist/es/models/security/v4/report/SecurityConfigSummary.d.ts +55 -0
  166. package/dist/es/models/security/v4/report/SecurityConfigSummary.js +324 -0
  167. package/dist/es/models/security/v4/report/SecuritySummary.d.ts +83 -0
  168. package/dist/es/models/security/v4/report/SecuritySummary.js +438 -0
  169. package/dist/es/models/security/v4/report/SecuritySummaryProjection.d.ts +21 -0
  170. package/dist/es/models/security/v4/report/SecuritySummaryProjection.js +303 -0
  171. package/dist/es/models/security/v4/report/Severity.js +7 -9
  172. package/dist/es/models/security/v4/report/SoftwareType.js +7 -9
  173. package/dist/es/models/security/v4/report/Stig.d.ts +1 -25
  174. package/dist/es/models/security/v4/report/Stig.js +371 -439
  175. package/dist/es/models/security/v4/report/StigProjection.d.ts +1 -1
  176. package/dist/es/models/security/v4/report/StigProjection.js +74 -103
  177. package/dist/es/models/security/v4/report/StigSecuritySummary.d.ts +44 -0
  178. package/dist/es/models/security/v4/report/StigSecuritySummary.js +291 -0
  179. package/dist/es/models/security/v4/report/StigStatus.js +7 -9
  180. package/dist/es/models/security/v4/report/StigSummary.d.ts +1 -22
  181. package/dist/es/models/security/v4/report/StigSummary.js +193 -245
  182. package/dist/es/models/security/v4/report/StigSummaryProjection.d.ts +1 -26
  183. package/dist/es/models/security/v4/report/StigSummaryProjection.js +138 -176
  184. package/dist/es/models/security/v4/report/TrendValue.d.ts +10 -16
  185. package/dist/es/models/security/v4/report/TrendValue.js +170 -211
  186. package/dist/es/models/security/v4/report/Vulnerability.d.ts +4 -37
  187. package/dist/es/models/security/v4/report/Vulnerability.js +283 -379
  188. package/dist/es/models/security/v4/report/VulnerabilityDetail.d.ts +68 -0
  189. package/dist/es/models/security/v4/report/VulnerabilityDetail.js +310 -0
  190. package/dist/es/models/security/v4/report/VulnerabilityProjection.d.ts +1 -1
  191. package/dist/es/models/security/v4/report/VulnerabilityProjection.js +74 -103
  192. package/dist/es/models/security/v4/report/VulnerabilitySummary.d.ts +12 -61
  193. package/dist/es/models/security/v4/report/VulnerabilitySummary.js +147 -302
  194. package/dist/es/models/validation/ValidationError.js +26 -42
  195. package/dist/es/models/validation/ValidationScopes.js +3 -3
  196. package/dist/es/utils/ValidationUtils.js +39 -69
  197. package/dist/lib/ApiClient.d.ts +29 -7
  198. package/dist/lib/ApiClient.js +854 -667
  199. package/dist/lib/Paginable.d.ts +1 -1
  200. package/dist/lib/Paginable.js +144 -183
  201. package/dist/lib/apis/approvalpolicies-endpoints.d.ts +2 -2
  202. package/dist/lib/apis/approvalpolicies-endpoints.js +221 -235
  203. package/dist/lib/apis/credentials-endpoints.d.ts +2 -2
  204. package/dist/lib/apis/credentials-endpoints.js +210 -224
  205. package/dist/lib/apis/keymanagementservers-endpoints.d.ts +1 -1
  206. package/dist/lib/apis/keymanagementservers-endpoints.js +190 -210
  207. package/dist/lib/apis/securitysummaries-endpoints.d.ts +56 -0
  208. package/dist/lib/apis/securitysummaries-endpoints.js +140 -0
  209. package/dist/lib/apis/stigs-endpoints.d.ts +4 -3
  210. package/dist/lib/apis/stigs-endpoints.js +108 -111
  211. package/dist/lib/apis/vulnerabilities-endpoints.d.ts +46 -0
  212. package/dist/lib/apis/vulnerabilities-endpoints.js +107 -0
  213. package/dist/lib/index.d.ts +31 -15
  214. package/dist/lib/index.js +361 -297
  215. package/dist/lib/models/common/v1/config/BasicAuth.d.ts +2 -8
  216. package/dist/lib/models/common/v1/config/BasicAuth.js +170 -211
  217. package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
  218. package/dist/lib/models/common/v1/config/FQDN.js +141 -180
  219. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  220. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  221. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  222. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  223. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
  224. package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
  225. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
  226. package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
  227. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  228. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  229. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  230. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  231. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  232. package/dist/lib/models/common/v1/config/Message.js +213 -258
  233. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  234. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  235. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  236. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  237. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  238. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  239. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  240. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  241. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  242. package/dist/lib/models/iam/v4/authn/BucketsAccessKey.d.ts +1 -26
  243. package/dist/lib/models/iam/v4/authn/BucketsAccessKey.js +385 -453
  244. package/dist/lib/models/iam/v4/authn/BucketsAccessKeyStatusType.js +7 -9
  245. package/dist/lib/models/iam/v4/authn/CreationType.js +7 -9
  246. package/dist/lib/models/iam/v4/authn/User.d.ts +1 -67
  247. package/dist/lib/models/iam/v4/authn/User.js +714 -810
  248. package/dist/lib/models/iam/v4/authn/UserStatusType.js +7 -9
  249. package/dist/lib/models/iam/v4/authn/UserType.js +7 -9
  250. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  251. package/dist/lib/models/prism/v4/config/TaskReference.js +143 -181
  252. package/dist/lib/models/security/v4/common/Cluster.d.ts +2 -8
  253. package/dist/lib/models/security/v4/common/Cluster.js +171 -212
  254. package/dist/lib/models/security/v4/common/ClusterProjection.d.ts +1 -1
  255. package/dist/lib/models/security/v4/common/ClusterProjection.js +74 -103
  256. package/dist/lib/models/security/v4/common/Timescale.js +9 -29
  257. package/dist/lib/models/security/v4/config/AzureAccessInformation.d.ts +2 -13
  258. package/dist/lib/models/security/v4/config/AzureAccessInformation.js +311 -361
  259. package/dist/lib/models/security/v4/config/BasicAuthCredential.d.ts +2 -13
  260. package/dist/lib/models/security/v4/config/BasicAuthCredential.js +138 -177
  261. package/dist/lib/models/security/v4/config/BmcCredential.d.ts +1 -14
  262. package/dist/lib/models/security/v4/config/BmcCredential.js +121 -163
  263. package/dist/lib/models/security/v4/config/CreateCredentialApiResponse.d.ts +2 -43
  264. package/dist/lib/models/security/v4/config/CreateCredentialApiResponse.js +187 -242
  265. package/dist/lib/models/security/v4/config/CreateKeyManagementServerApiResponse.d.ts +2 -43
  266. package/dist/lib/models/security/v4/config/CreateKeyManagementServerApiResponse.js +187 -242
  267. package/dist/lib/models/security/v4/config/Credential.d.ts +1 -18
  268. package/dist/lib/models/security/v4/config/Credential.js +200 -251
  269. package/dist/lib/models/security/v4/config/DeleteCredentialApiResponse.d.ts +2 -43
  270. package/dist/lib/models/security/v4/config/DeleteCredentialApiResponse.js +190 -245
  271. package/dist/lib/models/security/v4/config/DeleteKeyManagementServerApiResponse.d.ts +2 -43
  272. package/dist/lib/models/security/v4/config/DeleteKeyManagementServerApiResponse.js +187 -242
  273. package/dist/lib/models/security/v4/config/EndpointInfo.d.ts +70 -0
  274. package/dist/lib/models/security/v4/config/EndpointInfo.js +278 -0
  275. package/dist/lib/models/security/v4/config/ExternalSshAccessConfig.d.ts +2 -10
  276. package/dist/lib/models/security/v4/config/ExternalSshAccessConfig.js +218 -265
  277. package/dist/lib/models/security/v4/config/ExternalSshAccessConfigProjection.d.ts +10 -0
  278. package/dist/lib/models/security/v4/config/ExternalSshAccessConfigProjection.js +121 -0
  279. package/dist/lib/models/security/v4/config/GetCredentialApiResponse.d.ts +2 -43
  280. package/dist/lib/models/security/v4/config/GetCredentialApiResponse.js +187 -242
  281. package/dist/lib/models/security/v4/config/GetKeyManagementServerApiResponse.d.ts +2 -43
  282. package/dist/lib/models/security/v4/config/GetKeyManagementServerApiResponse.js +187 -242
  283. package/dist/lib/models/security/v4/config/IntersightConnectionType.js +7 -9
  284. package/dist/lib/models/security/v4/config/IntersightCredential.d.ts +1 -16
  285. package/dist/lib/models/security/v4/config/IntersightCredential.js +172 -218
  286. package/dist/lib/models/security/v4/config/KeyBasedAuth.d.ts +2 -8
  287. package/dist/lib/models/security/v4/config/KeyBasedAuth.js +176 -217
  288. package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.d.ts +2 -13
  289. package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.js +138 -177
  290. package/dist/lib/models/security/v4/config/KeyManagementServer.d.ts +20 -33
  291. package/dist/lib/models/security/v4/config/KeyManagementServer.js +206 -199
  292. package/dist/lib/models/security/v4/config/KmipAccessInformation.d.ts +118 -0
  293. package/dist/lib/models/security/v4/config/KmipAccessInformation.js +428 -0
  294. package/dist/lib/models/security/v4/config/ListCredentialsApiResponse.d.ts +2 -43
  295. package/dist/lib/models/security/v4/config/ListCredentialsApiResponse.js +209 -264
  296. package/dist/lib/models/security/v4/config/ListKeyManagementServersApiResponse.d.ts +2 -43
  297. package/dist/lib/models/security/v4/config/ListKeyManagementServersApiResponse.js +209 -264
  298. package/dist/lib/models/security/v4/config/ScheduleType.js +11 -13
  299. package/dist/lib/models/security/v4/config/SecurityConfig.d.ts +1 -25
  300. package/dist/lib/models/security/v4/config/SecurityConfig.js +350 -421
  301. package/dist/lib/models/security/v4/config/SecurityConfigProjection.d.ts +1 -32
  302. package/dist/lib/models/security/v4/config/SecurityConfigProjection.js +169 -202
  303. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySetting.d.ts +1 -23
  304. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySetting.js +303 -359
  305. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySettingProjection.d.ts +10 -0
  306. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySettingProjection.js +123 -0
  307. package/dist/lib/models/security/v4/config/UpdateCredentialApiResponse.d.ts +2 -45
  308. package/dist/lib/models/security/v4/config/UpdateCredentialApiResponse.js +187 -242
  309. package/dist/lib/models/security/v4/config/UpdateKeyManagementServerApiResponse.d.ts +2 -43
  310. package/dist/lib/models/security/v4/config/UpdateKeyManagementServerApiResponse.js +187 -242
  311. package/dist/lib/models/security/v4/config/VcenterCredential.d.ts +1 -39
  312. package/dist/lib/models/security/v4/config/VcenterCredential.js +145 -189
  313. package/dist/lib/models/security/v4/error/AppMessage.d.ts +2 -12
  314. package/dist/lib/models/security/v4/error/AppMessage.js +264 -313
  315. package/dist/lib/models/security/v4/error/ErrorResponse.d.ts +2 -7
  316. package/dist/lib/models/security/v4/error/ErrorResponse.js +178 -218
  317. package/dist/lib/models/security/v4/error/SchemaValidationError.d.ts +2 -18
  318. package/dist/lib/models/security/v4/error/SchemaValidationError.js +249 -300
  319. package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  320. package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.js +191 -234
  321. package/dist/lib/models/security/v4/management/ApprovalPolicy.d.ts +1 -100
  322. package/dist/lib/models/security/v4/management/ApprovalPolicy.js +302 -366
  323. package/dist/lib/models/security/v4/management/ApprovalPolicyProjection.d.ts +14 -0
  324. package/dist/lib/models/security/v4/management/ApprovalPolicyProjection.js +133 -0
  325. package/dist/lib/models/security/v4/management/ApproverGroup.d.ts +2 -74
  326. package/dist/lib/models/security/v4/management/ApproverGroup.js +206 -253
  327. package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +2 -43
  328. package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.js +187 -242
  329. package/dist/lib/models/security/v4/management/AssociatePoliciesSpec.d.ts +2 -13
  330. package/dist/lib/models/security/v4/management/AssociatePoliciesSpec.js +149 -192
  331. package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +2 -43
  332. package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.js +187 -242
  333. package/dist/lib/models/security/v4/management/EventType.js +7 -9
  334. package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +2 -43
  335. package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.js +187 -242
  336. package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +8 -48
  337. package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.js +214 -264
  338. package/dist/lib/models/security/v4/management/PolicyType.js +7 -9
  339. package/dist/lib/models/security/v4/management/SecuredEntityType.js +7 -9
  340. package/dist/lib/models/security/v4/management/SecuredPolicy.d.ts +2 -8
  341. package/dist/lib/models/security/v4/management/SecuredPolicy.js +166 -207
  342. package/dist/lib/models/security/v4/management/SecurityValidationSpec.d.ts +2 -14
  343. package/dist/lib/models/security/v4/management/SecurityValidationSpec.js +332 -385
  344. package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +2 -43
  345. package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +187 -242
  346. package/dist/lib/models/security/v4/report/IssueSummary.d.ts +9 -21
  347. package/dist/lib/models/security/v4/report/IssueSummary.js +178 -223
  348. package/dist/lib/models/security/v4/report/ListSecuritySummariesApiResponse.d.ts +59 -0
  349. package/dist/lib/models/security/v4/report/ListSecuritySummariesApiResponse.js +315 -0
  350. package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.d.ts +2 -43
  351. package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.js +213 -268
  352. package/dist/lib/models/security/v4/report/ListStigsApiResponse.d.ts +2 -43
  353. package/dist/lib/models/security/v4/report/ListStigsApiResponse.js +213 -268
  354. package/dist/lib/models/security/v4/report/ListVulnerabilitiesApiResponse.d.ts +59 -0
  355. package/dist/lib/models/security/v4/report/ListVulnerabilitiesApiResponse.js +315 -0
  356. package/dist/lib/models/security/v4/report/RefreshSecuritySummariesApiResponse.d.ts +58 -0
  357. package/dist/lib/models/security/v4/report/RefreshSecuritySummariesApiResponse.js +288 -0
  358. package/dist/lib/models/security/v4/report/SecurityConfigSummary.d.ts +55 -0
  359. package/dist/lib/models/security/v4/report/SecurityConfigSummary.js +324 -0
  360. package/dist/lib/models/security/v4/report/SecuritySummary.d.ts +83 -0
  361. package/dist/lib/models/security/v4/report/SecuritySummary.js +438 -0
  362. package/dist/lib/models/security/v4/report/SecuritySummaryProjection.d.ts +21 -0
  363. package/dist/lib/models/security/v4/report/SecuritySummaryProjection.js +303 -0
  364. package/dist/lib/models/security/v4/report/Severity.js +7 -9
  365. package/dist/lib/models/security/v4/report/SoftwareType.js +7 -9
  366. package/dist/lib/models/security/v4/report/Stig.d.ts +1 -25
  367. package/dist/lib/models/security/v4/report/Stig.js +371 -439
  368. package/dist/lib/models/security/v4/report/StigProjection.d.ts +1 -1
  369. package/dist/lib/models/security/v4/report/StigProjection.js +74 -103
  370. package/dist/lib/models/security/v4/report/StigSecuritySummary.d.ts +44 -0
  371. package/dist/lib/models/security/v4/report/StigSecuritySummary.js +291 -0
  372. package/dist/lib/models/security/v4/report/StigStatus.js +7 -9
  373. package/dist/lib/models/security/v4/report/StigSummary.d.ts +1 -22
  374. package/dist/lib/models/security/v4/report/StigSummary.js +193 -245
  375. package/dist/lib/models/security/v4/report/StigSummaryProjection.d.ts +1 -26
  376. package/dist/lib/models/security/v4/report/StigSummaryProjection.js +138 -176
  377. package/dist/lib/models/security/v4/report/TrendValue.d.ts +10 -16
  378. package/dist/lib/models/security/v4/report/TrendValue.js +170 -211
  379. package/dist/lib/models/security/v4/report/Vulnerability.d.ts +4 -37
  380. package/dist/lib/models/security/v4/report/Vulnerability.js +283 -379
  381. package/dist/lib/models/security/v4/report/VulnerabilityDetail.d.ts +68 -0
  382. package/dist/lib/models/security/v4/report/VulnerabilityDetail.js +310 -0
  383. package/dist/lib/models/security/v4/report/VulnerabilityProjection.d.ts +1 -1
  384. package/dist/lib/models/security/v4/report/VulnerabilityProjection.js +74 -103
  385. package/dist/lib/models/security/v4/report/VulnerabilitySummary.d.ts +12 -61
  386. package/dist/lib/models/security/v4/report/VulnerabilitySummary.js +147 -302
  387. package/dist/lib/models/validation/ValidationError.js +26 -42
  388. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  389. package/dist/lib/utils/ValidationUtils.js +39 -69
  390. package/package.json +1 -1
  391. package/dist/es/models/security/v4/config/PasswordStatus.d.ts +0 -19
  392. package/dist/es/models/security/v4/config/PasswordStatus.js +0 -97
  393. package/dist/es/models/security/v4/config/PasswordVerificationStatus.d.ts +0 -19
  394. package/dist/es/models/security/v4/config/PasswordVerificationStatus.js +0 -91
  395. package/dist/es/models/security/v4/config/VerifyPassword.d.ts +0 -36
  396. package/dist/es/models/security/v4/config/VerifyPassword.js +0 -271
  397. package/dist/es/models/security/v4/config/VerifyPasswordSpec.d.ts +0 -62
  398. package/dist/es/models/security/v4/config/VerifyPasswordSpec.js +0 -279
  399. package/dist/es/models/security/v4/report/Summary.d.ts +0 -149
  400. package/dist/es/models/security/v4/report/Summary.js +0 -490
  401. package/dist/es/models/security/v4/report/SummaryProjection.d.ts +0 -97
  402. package/dist/es/models/security/v4/report/SummaryProjection.js +0 -329
  403. package/dist/es/models/security/v4/report/VulnerabilitySummaryProjection.d.ts +0 -10
  404. package/dist/es/models/security/v4/report/VulnerabilitySummaryProjection.js +0 -153
  405. package/dist/lib/models/security/v4/config/PasswordStatus.d.ts +0 -19
  406. package/dist/lib/models/security/v4/config/PasswordStatus.js +0 -97
  407. package/dist/lib/models/security/v4/config/PasswordVerificationStatus.d.ts +0 -19
  408. package/dist/lib/models/security/v4/config/PasswordVerificationStatus.js +0 -91
  409. package/dist/lib/models/security/v4/config/VerifyPassword.d.ts +0 -36
  410. package/dist/lib/models/security/v4/config/VerifyPassword.js +0 -271
  411. package/dist/lib/models/security/v4/config/VerifyPasswordSpec.d.ts +0 -62
  412. package/dist/lib/models/security/v4/config/VerifyPasswordSpec.js +0 -279
  413. package/dist/lib/models/security/v4/report/Summary.d.ts +0 -149
  414. package/dist/lib/models/security/v4/report/Summary.js +0 -490
  415. package/dist/lib/models/security/v4/report/SummaryProjection.d.ts +0 -97
  416. package/dist/lib/models/security/v4/report/SummaryProjection.js +0 -329
  417. package/dist/lib/models/security/v4/report/VulnerabilitySummaryProjection.d.ts +0 -10
  418. package/dist/lib/models/security/v4/report/VulnerabilitySummaryProjection.js +0 -153
@@ -1 +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.Security=t())}("undefined"==typeof self?this:self,()=>(()=>{var e={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}},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}},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=d,a.stableStringify=d;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,d){var f;if(c+=1,"object"===t(e)&&null!==e){for(f=0;f<s.length;f++)if(s[f]===e)return void u(r,e,o,a);if(void 0!==d.depthLimit&&c>d.depthLimit)return void u(n,e,o,a);if(void 0!==d.edgesLimit&&i+1>d.edgesLimit)return void u(n,e,o,a);if(s.push(e),Array.isArray(e))for(f=0;f<e.length;f++)l(e[f],f,f,s,e,c,d);else{var p=Object.keys(e);for(f=0;f<p.length;f++){var y=p[f];l(e[y],y,f,s,e,c,d)}}s.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=s());var a,u=f(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 f(e,i,s,a,l,d,p){var y;if(d+=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&&d>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++)f(e[y],y,y,a,e,d,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];f(e[b],b,y,a,e,d,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)}}},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)}},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}},545:()=>{},548:()=>{},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 d(){}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 f=t=e.exports;t.Request=m,f.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=f("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}f.serializeObject=y,f.parseString=v,f.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"},f.serialize={"application/x-www-form-urlencoded":y,"application/json":s},f.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(g.prototype),g.prototype._parseBody=function(e){var t=f.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=f.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},f.Response=g,i(m.prototype),a(m.prototype),m.prototype.type=function(e){return this.set("Content-Type",f.types[e]||e),this},m.prototype.accept=function(e){return this.set("Accept",f.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||d,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=f.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||f.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=f.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)},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new f.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),c.prototype.del=c.prototype.delete,f.get=function(e,t,n){var r=f("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.head=function(e,t,n){var r=f("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.options=function(e,t,n){var r=f("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.del=w,f.delete=w,f.patch=function(e,t,n){var r=f("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.post=function(e,t,n){var r=f("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.put=function(e,t,n){var r=f("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},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}},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},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))}},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 d(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 f(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=f(o),u=a.device,l=a.isUnc,c=a.isAbsolute,d=a.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=d+"\\"+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=f(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 f(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,d=0;d<u;d++)if(i[d]!==s[d]){l=d;break}if(0==l)return t;var f=[];for(d=l;d<i.length;d++)f.push("..");return(f=f.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=d(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=d(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return d(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=d(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},799:()=>{},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 d(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 d(n)}var l,w="",$=!1,P=["{","}"];return p(n)&&($=!0,P=["[","]"]),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=" "+d(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)E(t,String(s))?i.push(f(e,t,n,r,String(s),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(f(e,t,n,r,o,!0))}),i}(e,n,r,a,s):s.map(function(t){return f(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,P)):P[0]+w+P[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(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")),E(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 P(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 T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[P((e=new Date).getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),T[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}},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}},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}},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:()=>ov});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=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){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;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,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=lt.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}],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={}.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&&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 d(){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 f=/^(?:[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&&f.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||d)();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=n(540),g=n.n(b),m=n(545),w=n.n(m),O=n(799),j=n.n(O),k=n(784),$=n.n(k),P=n(548),T={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return T[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===T.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(T);const E=T;function S(e){return S="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},S(e)}function F(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,I(r.key),r)}}function I(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}var C=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&&F(e.prototype,null),t&&F(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function D(e){return D="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},D(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,x(r.key),r)}}function x(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}var R=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()}}}])&&A(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function N(e){return N="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},N(e)}function _(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 U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L(e,t,n){return(t=V(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(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,V(r.key),r)}}function V(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}var J=new WeakSet,B=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,J),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},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 U(U(U({},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 E?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("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!C.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!C.validateMinLength(this.name,3))return new R("name","does not satisfy required minLength constraint: 3")}return"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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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=U({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&M(t.prototype,n),r&&M(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function K(e){return K="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},K(e)}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q(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 H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function z(e,t,n){return(t=Q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(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,Q(r.key),r)}}function Q(e){var t=function(e){if("object"!=K(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==K(t)?t:t+""}function Y(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")}B.prototype.name=void 0,B.prototype.value=!1,B.prototype.$reserved=void 0,B.prototype.$objectType=void 0,B.prototype.$unknownFields=void 0;var X=new WeakSet,Z=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,X),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMap",value:function(){return this.map}},{key:"setMap",value:function(e){this.map=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 H(H({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:Y(X,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:Y(X,this,ee).call(this,this.getMap())}:{}),{},{$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 E?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"map"!==t||void 0!==this.map&&null!==this.map?"$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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("map","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("map")&&null!==t.map&&void 0!==t.map&&n.setMap(t.map),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=H({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&G(t.prototype,n),r&&G(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ee(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.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)?W(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===K(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 te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e){return ne="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},ne(e)}function re(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?re(Object(n),!0).forEach(function(t){ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ie(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(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,ae(r.key),r)}}function ae(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function ue(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")}Z.prototype.map=void 0,Z.prototype.$reserved=void 0,Z.prototype.$objectType=void 0,Z.prototype.$unknownFields=void 0;var le=new WeakSet,ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,le),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},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()}:{}),!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}):ue(le,this,de).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}):ue(le,this,de).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 E?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("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!C.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!C.validateMinLength(this.name,3))return new R("name","does not satisfy required minLength constraint: 3")}return"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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&a.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)a.setValue([]);else{for(i=[],s=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),o=0;o<n.length;o++)switch(s){case"string":case"integer":case"number":i.push(n[o]);break;case"common.v1.config.MapOfStringWrapper":r=Z.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setValue(i)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":a.setValue(t.value);break;case"object":a.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=oe({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&se(t.prototype,n),r&&se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function de(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.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)?te(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===ne(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 fe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fe).find(function(t){return fe[t]===e});return null==t?fe.$UNKNOWN:fe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fe.$UNKNOWN:case fe.$REDACTED:case fe.INFO:case fe.WARNING:case fe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(fe);const pe=fe;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 he(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 ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(t){be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function be(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,me(r.key),r)}}function me(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}var we=new WeakSet,Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,we),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},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 ve(ve(ve(ve(ve({},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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("severity","undefined or null"):new R("locale","undefined or null"):new R("message","undefined or null"):new R("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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(pe.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=ve({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ge(t.prototype,n),r&&ge(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function je(e){return je="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},je(e)}function ke(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 $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach(function(t){Pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pe(e,t,n){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(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,Ee(r.key),r)}}function Ee(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}Oe.prototype.code=void 0,Oe.prototype.message=void 0,Oe.prototype.locale="en_US",Oe.prototype.severity=void 0,Oe.prototype.$reserved=void 0,Oe.prototype.$objectType=void 0,Oe.prototype.$unknownFields=void 0;var Se=new WeakSet,Fe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Se),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},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 $e($e($e({},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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("rel","undefined or null"):new R("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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=$e({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Te(t.prototype,n),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ie(e){return Ie="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},Ie(e)}function Ce(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 De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach(function(t){Ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ae(e,t,n){return(t=Re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(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,Re(r.key),r)}}function Re(e){var t=function(e){if("object"!=Ie(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ie(t)?t:t+""}Fe.prototype.href=void 0,Fe.prototype.rel=void 0,Fe.prototype.$reserved=void 0,Fe.prototype.$objectType=void 0,Fe.prototype.$unknownFields=void 0;var Ne,_e=new WeakSet,Ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,_e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},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 De(De(De(De(De(De({},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 E?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("flags"===t){if(void 0===this.flags||null===this.flags)return new R("flags","undefined or null");if(!C.validateMaxItems(this.flags,20))return new R("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new R("links","undefined or null");if(!C.validateMaxItems(this.links,20))return new R("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new R("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new R("messages","undefined or null");if(!C.validateMaxItems(this.messages,20))return new R("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new R("extraInfo","undefined or null");if(!C.validateMaxItems(this.extraInfo,20))return new R("extraInfo","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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(i=[],n=t.flags,o=0;o<n.length;o++)r=B.constructFromObject(n[o],void 0),i.push(r);s.setFlags(i)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(i=[],n=t.links,o=0;o<n.length;o++)r=Fe.constructFromObject(n[o],void 0),i.push(r);s.setLinks(i)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&s.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(i=[],n=t.messages,o=0;o<n.length;o++)r=Oe.constructFromObject(n[o],void 0),i.push(r);s.setMessages(i)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(i=[],n=t.extraInfo,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);s.setExtraInfo(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=De({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&xe(t.prototype,n),r&&xe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Le(){Le=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)),Me(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&&Me(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,n){if(""===n)return e;var r=i[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=Ke(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)})}return e[Symbol.replace].call(this,n,o)},Le.apply(this,arguments)}function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Me(e,t)}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 Je(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){Be(e,t,n[t])}):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 Be(e,t,n){return(t=ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e){return Ke="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},Ke(e)}function We(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 qe(e,t);var n={}.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)?qe(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 qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function He(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,ze(r.key),r)}}function ze(e){var t=function(e){if("object"!=Ke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ke(t)?t:t+""}function Ge(e,t,n){Qe(e,t),t.set(e,n)}function Qe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ye(e,t){return e.get(Ze(e,t))}function Xe(e,t,n){return e.set(Ze(e,t),n),n}function Ze(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")}Ue.prototype.flags=void 0,Ue.prototype.links=void 0,Ue.prototype.totalAvailableResults=void 0,Ue.prototype.messages=void 0,Ue.prototype.extraInfo=void 0,Ue.prototype.$reserved=void 0,Ue.prototype.$objectType=void 0,Ue.prototype.$unknownFields=void 0,g()(t());var et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,st=new WeakMap,at=new WeakMap,ut=new WeakSet,lt=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Qe(this,n=ut),n.add(this),Ge(this,et,void 0),Ge(this,tt,void 0),Ge(this,nt,void 0),Ge(this,rt,void 0),Ge(this,ot,void 0),Ge(this,it,void 0),Ge(this,st,void 0),Ge(this,at,void 0),Xe(at,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={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},Xe(ot,this,3e4),Xe(it,this,3e4),Xe(st,this,108e5),this.readTimeout=Ye(it,this),this.connectTimeout=Ye(ot,this),this.cache=!0,Xe(tt,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Xe(nt,this,null),this.username=null,this.password=null,Xe(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"verifySsl",get:function(){return Ye(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Xe(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Xe(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Xe(tt,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),Xe(et,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==Ye(et,this)&&""!==this.host&&""!==this.port?r=Ye(et,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:"setApiKey",value:function(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}},{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=We(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,d,f){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;if(n>=400&&401!==n&&408!==n&&429!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1),429===n){var r=t.headers["retry-after"];if(r){var o=1e3*parseInt(r,10);this._retryDelays[this._retries]=o}}}this.oldCallback(e,t)},Ze(ut,this,yt).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),h.query(Ze(ut,this,pt).call(this,i)),h.set(this.defaultHeaders).set(Ze(ut,this,pt).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(Ze(ut,this,pt).call(this,{"NTNX-Request-Id":b}))}var g="undefined"!=typeof window&&void 0!==window.document;g||(this.downloadDestination=".",h.set(Ze(ut,this,pt).call(this,{"User-Agent":"Nutanix-security-js-client/4.0.1"}))),this.requestAgent&&h.agent(this.requestAgent);var m={};m.response=Ze(ut,this,gt).call(this,this.connectTimeout,Ye(ot,this)),m.deadline=Ze(ut,this,gt).call(this,this.readTimeout,Ye(it,this)),h.timeout(m);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:Ze(ut,this,dt).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),Ze(ut,this,Ot).call(this,Ye(at,this).INFO,null,"Request URL :",r,y),Ze(ut,this,Ot).call(this,Ye(at,this).DEBUG,Ze(ut,this,kt),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(Ze(ut,this,pt).call(this,a));else if("multipart/form-data"==w){var O=Ze(ut,this,pt).call(this,a);for(var k in O)O.hasOwnProperty(k)&&(Ze(ut,this,ft).call(this,O[k])?h.attach(k,O[k]):h.field(k,O[k]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Ze(ut,this,Ot).call(this,Ye(at,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var $;try{$=n(965)}catch(e){Ze(ut,this,Ot).call(this,Ye(at,this).ERROR,null,"Error fetching steam/web")}u instanceof $.ReadableStream?u.pipeTo(new $.WritableStream({write:function(e){h.write(e)},close:function(){Ze(ut,this,Ot).call(this,Ye(at,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Ze(ut,this,Ot).call(this,Ye(at,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise(function(t,n){h.on("error",function(e){Ze(ut,p,Ot).call(p,Ye(at,p).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",function(r){Ze(ut,p,$t).call(p,r,e,i,f,t,n)})})}u&&h.send(u)}"Blob"==typeof f?h.responseType("blob"):"String"===f&&h.responseType("string"),Ze(ut,this,wt).call(this,h),Ze(ut,this,Ot).call(this,Ye(at,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var P=s.hasOwnProperty("Accept")&&null!=s.Accept?s.Accept:d.join(", "),T=["application/octet-stream","application/pdf","application/zip"];return P&&h.accept(P),new Promise(function(o,s){h.buffer(!1).redirects(0).retry(p.maxRetryAttempts,p.retryInterval,[]).withCredentials(p.withCredentials).on("error",function(e){Ze(ut,p,Ot).call(p,Ye(at,p).DEBUG,null,"Caught the following error :",e)}).end(function(a,u){if(a)Ze(ut,p,Ot).call(p,Ye(at,p).DEBUG,null,"Caught error during the request!"),Ze(ut,p,Ot).call(p,Ye(at,p).ERROR,null,a),null!==a.response&&void 0!==a.response?a.data=Ze(ut,p,vt).call(p,a.response,f):a.data=Ze(ut,p,ht).call(p,a),s(a);else{Ze(ut,p,Ot).call(p,Ye(at,p).INFO,null,"Response Status :",u.status),Ze(ut,p,Ot).call(p,Ye(at,p).DEBUG,Ze(ut,p,kt),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),T.includes(l))if(g){var c;try{c=n(965)}catch(e){Ze(ut,p,Ot).call(p,Ye(at,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof c.WritableStream){var d=p.downloadDestination.getWriter();try{u.on("data",function(e){d.write(e)})}catch(e){Ze(ut,p,Ot).call(p,Ye(at,p).ERROR,null,"Issue while downloading file",e)}u.on("end",function(){Ze(ut,p,Ot).call(p,Ye(at,p).INFO,null,"Finished streaming response"),d.close();var e=Ze(ut,p,vt).call(p,u,f);o({data:e,response:u})}).on("error",function(e){Ze(ut,p,Ot).call(p,Ye(at,p).ERROR,null,"Caught the following error :",e),e.data=Ze(ut,p,ht).call(p,e),s(e)})}else{var y="Incompatible downloadDestination for Browser Environment, must be WritableStream";Ze(ut,p,Ot).call(p,Ye(at,p).ERROR,null,y),s(y)}}else{var v=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(v);Ze(ut,p,Pt).call(p,u,b,v,o,s,f)}else if(302==u.status){var m=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=p;Ze(ut,p,Ot).call(p,Ye(at,p).INFO,null,"Redirecting to :",u.headers.location);var O=t()(r,u.headers.location);O.set(h.header),u.headers.hasOwnProperty("x-redirect-token")&&(Ze(ut,p,Ot).call(p,Ye(at,p).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.withCredentials(p.withCredentials),O.buffer(!1);var k=j().createWriteStream(m);O.pipe(k),O.on("response",function(e){Ze(ut,w,Ot).call(w,Ye(at,w).INFO,null,"Received response after redirection :",e.status),Ze(ut,w,Pt).call(w,e,k,m,o,s,f)})}else Ze(ut,p,$t).call(p,u,e,i,f,o,s)}})})}}],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"===Ke(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&&He(r.prototype,o),i&&He(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function ct(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function dt(e){for(var t=0;t<e.length;t++)if(Ze(ut,this,ct).call(this,e[t]))return e[t];return e[0]}function ft(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 pt(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];Ze(ut,this,ft).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function yt(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||""),Ze(ut,n,Ot).call(n,Ye(at,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)}Ze(ut,n,Ot).call(n,Ye(at,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Ze(ut,n,Ot).call(n,Ye(at,n).DEBUG,null,"oauth2 applied to request");break;default:throw Ze(ut,n,Ot).call(n,Ye(at,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}})}function ht(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function vt(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(i=new t).data=new P.Blob([e.text],{type:e.headers["content-type"]});var n=new B;n.name="hasError",n.value=!1;var r=[n],o=new Ue;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===Ke(i)&&void 0===i.length&&!Object.keys(i).length)&&(i=e.text),Ne.convertToType(i,t)}function bt(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 gt(e,t){return e<=0?e=t:e>Ye(st,this)&&(e=Ye(st,this)),e}function mt(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=We(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))}Xe(tt,this,t),Ze(ut,this,Ot).call(this,Ye(at,this).DEBUG,null,"Retained cookie :",t)}else Xe(tt,this,null)}function wt(e){null!=Ye(tt,this)&&e.set(Ze(ut,this,pt).call(this,{Cookie:Ye(tt,this)}))}function Ot(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"===Ke(e)&&"key"in e&&"value"in e&&"symbol"===Ke(e.value)||(e=Ye(at,this).INFO),!Ze(ut,this,jt).call(this,e)){r=r.map(function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)});var i=r.join(" ");i=(new Date).toISOString()+" "+e.key+" - "+i,void 0!==Ye(nt,this)&&null!==Ye(nt,this)&&"function"==typeof Ye(nt,this).log?Ye(nt,this).log(i):console.log(i)}}function jt(e){return!this.debug&&e===Ye(at,this).DEBUG}function kt(e){if("object"!==Ke(e))return e;var t="\n";return e&&Object.keys(e).forEach(function(n){t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function $t(e,t,n,r,o,i){try{var s=Ze(ut,this,vt).call(this,e,r);Ze(ut,this,Ot).call(this,Ye(at,this).INFO,null,"Response Status :",e.status),Ze(ut,this,Ot).call(this,Ye(at,this).DEBUG,Ze(ut,this,kt),"Response Headers :",e.headers),Ze(ut,this,mt).call(this,e||{}),Ze(ut,this,Ot).call(this,Ye(at,this).DEBUG,null,"Response Body :",s),204==e.status&&null==s?o({data:s,response:e}):e.ok&&null!=s?(this.addEtagToReservedMap(e,s),Ze(ut,this,bt).call(this,s,t,n),o({data:s,response:e})):(Ze(ut,this,Ot).call(this,Ye(at,this).ERROR,null,s),i(Je(Je({},e.error),{},{data:s})))}catch(e){Ze(ut,this,Ot).call(this,Ye(at,this).DEBUG,null,"Caught error while processing response!"),Ze(ut,this,Ot).call(this,Ye(at,this).ERROR,null,e),e.data=Ze(ut,this,ht).call(this,e),i(e)}}function Pt(e,t,n,r,o,i){var s=this;Ze(ut,this,Ot).call(this,Ye(at,this).INFO,null,"Streaming response to : ",n);try{e.on("data",function(e){t.write(e)})}catch(e){Ze(ut,this,Ot).call(this,Ye(at,this).ERROR,null,"Issue while downloading file",e)}var a=new i,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var l=e.headers["content-disposition"].match(Le(/.*filename="(.*)".*/,{filename:1})),c=$().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,a.data={path:$().parse(u),$objectType:"Path"};var d=new B;d.name="hasError",d.value=!1;var f=[d],p=new Ue;p.flags=f,a.metadata=p}e.on("end",function(){Ze(ut,s,Ot).call(s,Ye(at,s).INFO,null,"Finished streaming response"),0!==u.length?(Ze(ut,s,Ot).call(s,Ye(at,s).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:a,response:e})):(Ze(ut,s,Ot).call(s,Ye(at,s).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:a,response:e}))}),e.on("error",function(e){Ze(ut,s,Ot).call(s,Ye(at,s).ERROR,null,"Caught the following error :",e),error.data=Ze(ut,s,ht).call(s,error),o(e)})}function Tt(e){return Tt="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},Tt(e)}function Et(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach(function(t){Ft(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ft(e,t,n){return(t=Ct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(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){if("object"!=Tt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tt(t)?t:t+""}Ne=lt,lt.instance=new lt;var Dt=new WeakSet,At=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Dt),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r1"},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 St(St({},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 E?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 R("extId","undefined or null");if(!C.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 R("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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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=St({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&It(t.prototype,n),r&&It(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 Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nt(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?Nt(Object(n),!0).forEach(function(t){Ut(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ut(e,t,n){return(t=Mt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Mt(r.key),r)}}function Mt(e){var t=function(e){if("object"!=xt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xt(t)?t:t+""}function Vt(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")}At.prototype.extId=void 0,At.prototype.$reserved=void 0,At.prototype.$objectType=void 0,At.prototype.$unknownFields=void 0;var Jt=new WeakSet,Bt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Jt),this.$objectType="security.v4.error.AppMessage",this.$reserved={$fv:"v4.r0"},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 _t(_t(_t(_t(_t(_t(_t({},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:Vt(Jt,this,Kt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Vt(Jt,this,Kt).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("argumentsMap","undefined or null"):new R("errorGroup","undefined or null"):new R("locale","undefined or null"):new R("code","undefined or null"):new R("severity","undefined or null"):new R("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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(pe.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=_t({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Lt(t.prototype,n),r&&Lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Kt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var n={}.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)?Rt(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===xt(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 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 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 Ht(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){zt(e,t,n[t])}):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,n){return(t=Qt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Qt(r.key),r)}}function Qt(e){var t=function(e){if("object"!=Wt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wt(t)?t:t+""}Bt.prototype.message=void 0,Bt.prototype.severity=void 0,Bt.prototype.code=void 0,Bt.prototype.locale="en_US",Bt.prototype.errorGroup=void 0,Bt.prototype.argumentsMap=void 0,Bt.prototype.$reserved=void 0,Bt.prototype.$objectType=void 0,Bt.prototype.$unknownFields=void 0;var Yt=new WeakSet,Xt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Yt),this.$objectType="security.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0"},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 Ht(Ht(Ht(Ht({},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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("attributePath","undefined or null"):new R("message","undefined or null"):new R("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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=Ht({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Gt(t.prototype,n),r&&Gt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Zt(e){return Zt="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},Zt(e)}function en(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 tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach(function(t){nn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nn(e,t,n){return(t=on(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(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,on(r.key),r)}}function on(e){var t=function(e){if("object"!=Zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zt(t)?t:t+""}function sn(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")}Xt.prototype.location=void 0,Xt.prototype.message=void 0,Xt.prototype.attributePath=void 0,Xt.prototype.$reserved=void 0,Xt.prototype.$objectType=void 0,Xt.prototype.$unknownFields=void 0;var an=new WeakSet,un=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,an),this.$objectType="security.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0"},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 tn(tn(tn(tn(tn(tn({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:sn(an,this,ln).call(this,this.getTimestamp(),!1)}:{}),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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("validationErrorMessages","undefined or null"):new R("path","undefined or null"):new R("error","undefined or null"):new R("statusCode","undefined or null"):new R("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&s.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&s.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&s.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&s.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(i=[],n=t.validationErrorMessages,o=0;o<n.length;o++)r=Xt.constructFromObject(n[o],void 0),i.push(r);s.setValidationErrorMessages(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=tn({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&rn(t.prototype,n),r&&rn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ln(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dn(e){return dn="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},dn(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 pn(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){yn(e,t,n[t])}):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 yn(e,t,n){return(t=vn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(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,vn(r.key),r)}}function vn(e){var t=function(e){if("object"!=dn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dn(t)?t:t+""}function bn(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")}un.prototype.timestamp=void 0,un.prototype.statusCode=void 0,un.prototype.error=void 0,un.prototype.path=void 0,un.prototype.validationErrorMessages=void 0,un.prototype.$reserved=void 0,un.prototype.$objectType=void 0,un.prototype.$unknownFields=void 0;var gn=new WeakSet,mn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,gn),this.$objectType="security.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0"},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 pn(pn({},!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}):bn(gn,this,wn).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}):bn(gn,this,wn).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)a.setError([]);else{for(i=[],s=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:dn(n[0]),o=0;o<n.length;o++){if("security.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Bt.constructFromObject(n[o],void 0),i.push(r)}a.setError(i)}else{if("security.v4.error.SchemaValidationError"!==(s=t.error.hasOwnProperty("$objectType")?t.error.$objectType:dn(t.error)))throw"Unknown datatype "+s+" in data";a.setError(un.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=pn({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&hn(t.prototype,n),r&&hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function wn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return cn(e,t);var n={}.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)?cn(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===dn(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 On(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jn(e){return jn="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},jn(e)}function kn(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 $n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach(function(t){Pn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pn(e,t,n){return(t=En(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(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){if("object"!=jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jn(t)?t:t+""}function Sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sn=function(){return!!e})()}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}function In(e,t){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},In(e,t)}function Cn(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")}mn.prototype.error=void 0,mn.prototype.$reserved=void 0,mn.prototype.$objectType=void 0,mn.prototype.$unknownFields=void 0;var Dn=new WeakSet,An=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Fn(t),function(e,t){if(t&&("object"==jn(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,Sn()?Reflect.construct(t,n||[],Fn(e).constructor):t.apply(e,n))}(this,t),Dn),e.$objectType="security.v4.config.UpdateCredentialApiResponse",e.$reserved={$fv:"v4.r0"},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&&In(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 $n($n($n({},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}):Cn(Dn,this,xn).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}):Cn(Dn,this,xn).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:jn(e.data)){case"prism.v4.config.TaskReference":r.setData(At.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=$n({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Tn(n.prototype,r),o&&Tn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function xn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return On(e,t);var n={}.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)?On(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===jn(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 Rn(e){return Rn="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},Rn(e)}function Nn(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 _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach(function(t){Un(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Un(e,t,n){return(t=Mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ln(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,Mn(r.key),r)}}function Mn(e){var t=function(e){if("object"!=Rn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rn(t)?t:t+""}An.prototype.metadata=void 0,An.prototype.data=void 0,An.prototype.$reserved=void 0,An.prototype.$objectType=void 0,An.prototype.$unknownFields=void 0;var Vn=new WeakSet,Jn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Vn),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},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?_n(_n({},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 E?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 R("tenantId","undefined or null");if(!C.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 R("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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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=_n({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ln(t.prototype,n),r&&Ln(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Bn(e){return Bn="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},Bn(e)}function Kn(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 Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach(function(t){qn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qn(e,t,n){return(t=zn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hn(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,zn(r.key),r)}}function zn(e){var t=function(e){if("object"!=Bn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bn(t)?t:t+""}function Gn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gn=function(){return!!e})()}function Qn(e){return Qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qn(e)}function Yn(e,t){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yn(e,t)}Jn.prototype.tenantId=void 0,Jn.prototype.$reserved=void 0,Jn.prototype.$objectType=void 0,Jn.prototype.$unknownFields=void 0;var Xn=new WeakSet,Zn=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Qn(t),function(e,t){if(t&&("object"==Bn(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,Gn()?Reflect.construct(t,n||[],Qn(e).constructor):t.apply(e,n))}(this,t),Xn),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0"},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&&Yn(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!1===e?Wn(Wn(Wn(Wn({},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()}:{}),{},{$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 E?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 R("extId","undefined or null");if(null==e){if(!C.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 R("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===E.update&&!C.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 R("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}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new R("links","undefined or null");if(!C.validateMaxItems(this.links,20))return new R("links","does not satisfy required maxItems constraint: 20")}return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Jn.constructFromObject(e,s,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&s.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=Fe.constructFromObject(n[o],void 0),i.push(r);s.setLinks(i)}if(!a)for(var u in s.$unknownFields=Wn({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Hn(n.prototype,r),o&&Hn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Jn);function er(e){return er="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},er(e)}function tr(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 nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach(function(t){rr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rr(e,t,n){return(t=ir(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(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,ir(r.key),r)}}function ir(e){var t=function(e){if("object"!=er(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=er(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==er(t)?t:t+""}Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var sr=new WeakSet,ar=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,sr),this.username=t,this.password=n,this.$objectType="common.v1.config.BasicAuth",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{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 nr(nr(nr({},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 E?r=["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("username"===t){if(void 0===this.username||null===this.username)return new R("username","undefined or null");if(!C.validateMaxLength(this.username,256))return new R("username","does not satisfy required maxLength constraint: 256");if(!C.validateMinLength(this.username,3))return new R("username","does not satisfy required minLength constraint: 3")}return"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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("password","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,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=nr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&or(t.prototype,n),r&&or(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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){dr(e,t,n[t])}):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 dr(e,t,n){return(t=pr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,pr(r.key),r)}}function pr(e){var t=function(e){if("object"!=ur(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ur(t)?t:t+""}ar.prototype.username=void 0,ar.prototype.password=void 0,ar.prototype.$reserved=void 0,ar.prototype.$objectType=void 0,ar.prototype.$unknownFields=void 0;var yr=new WeakSet,hr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,yr),this.credential=t,this.$objectType="security.v4.config.BasicAuthCredential",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCredential",value:function(){return this.credential}},{key:"setCredential",value:function(e){this.credential=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({},void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().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 E?r=["credential"]: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"credential"!==t||void 0!==this.credential&&null!==this.credential?"$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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("credential","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("credential")&&null!==t.credential&&void 0!==t.credential&&n.setCredential(ar.constructFromObject(t.credential)),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=cr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&fr(t.prototype,n),r&&fr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function vr(e){return vr="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},vr(e)}function br(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?br(Object(n),!0).forEach(function(t){mr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mr(e,t,n){return(t=Or(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wr(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,Or(r.key),r)}}function Or(e){var t=function(e){if("object"!=vr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vr(t)?t:t+""}function jr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jr=function(){return!!e})()}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kr(e)}function $r(e,t){return $r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$r(e,t)}hr.prototype.credential=void 0,hr.prototype.$reserved=void 0,hr.prototype.$objectType=void 0,hr.prototype.$unknownFields=void 0;var Pr=new WeakSet,Tr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(n=function(e,t,n){return t=kr(t),function(e,t){if(t&&("object"==vr(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,jr()?Reflect.construct(t,n||[],kr(e).constructor):t.apply(e,n))}(this,t,[e]),Pr),n.$objectType="security.v4.config.BmcCredential",n.$reserved={$fv:"v4.r0"},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&&$r(e,t)}(t,e),n=t,r=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"toJson",value:function(e){return gr(gr(!1===e?gr({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}):{},void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().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 E?r=["credential"]: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"type"!==t||void 0!==this.type&&null!==this.type?new R(t,"no such property exists"):new R("type","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,hr.constructFromObject(e,n,!0),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&n.setType(e.type),!r))for(var o in n.$unknownFields=gr({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&wr(n.prototype,r),o&&wr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(hr);Tr.prototype.type=void 0,hr.prototype.credential=void 0;var Er={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INTERSIGHT_SAAS:"INTERSIGHT_SAAS",INTERSIGHT_VIRTUAL_APPLIANCE:"INTERSIGHT_VIRTUAL_APPLIANCE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Er).find(function(t){return Er[t]===e});return null==t?Er.$UNKNOWN:Er[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Er.$UNKNOWN:case Er.$REDACTED:case Er.INTERSIGHT_SAAS:case Er.INTERSIGHT_VIRTUAL_APPLIANCE:return;default:throw new Error("Invalid : must be IntersightConnectionType.{ $UNKNOWN|$REDACTED|INTERSIGHT_SAAS|INTERSIGHT_VIRTUAL_APPLIANCE }")}}};Object.freeze(Er);const Sr=Er;function Fr(e){return Fr="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},Fr(e)}function Ir(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?Ir(Object(n),!0).forEach(function(t){Dr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dr(e,t,n){return(t=xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ar(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){if("object"!=Fr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fr(t)?t:t+""}var Rr=new WeakSet,Nr=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Rr),this.apiKey=t,this.secretKey=n,this.$objectType="security.v4.config.KeyBasedAuth",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getApiKey",value:function(){return this.apiKey}},{key:"setApiKey",value:function(e){this.apiKey=e}},{key:"getSecretKey",value:function(){return this.secretKey}},{key:"setSecretKey",value:function(e){this.secretKey=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.getApiKey()&&null!==this.getApiKey()?{apiKey:this.getApiKey()}:{}),void 0!==this.getSecretKey()&&null!==this.getSecretKey()?{secretKey:this.getSecretKey()}:{}),{},{$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 E?r=["apiKey","secretKey"]: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("apiKey"===t){if(void 0===this.apiKey||null===this.apiKey)return new R("apiKey","undefined or null");if(!C.validateMaxLength(this.apiKey,1024))return new R("apiKey","does not satisfy required maxLength constraint: 1024");if(!C.validateMinLength(this.apiKey,1))return new R("apiKey","does not satisfy required minLength constraint: 1")}if("secretKey"===t){if(void 0===this.secretKey||null===this.secretKey)return new R("secretKey","undefined or null");if(!C.validateMaxLength(this.secretKey,2048))return new R("secretKey","does not satisfy required maxLength constraint: 2048");if(!C.validateMinLength(this.secretKey,1))return new R("secretKey","does not satisfy required minLength constraint: 1")}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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("apiKey")&&null!==t.apiKey&&void 0!==t.apiKey&&n.setApiKey(t.apiKey),t.hasOwnProperty("secretKey")&&null!==t.secretKey&&void 0!==t.secretKey&&n.setSecretKey(t.secretKey),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=Cr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ar(t.prototype,n),r&&Ar(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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)}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 Lr(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){Mr(e,t,n[t])}):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 Mr(e,t,n){return(t=Jr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(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,Jr(r.key),r)}}function Jr(e){var t=function(e){if("object"!=_r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_r(t)?t:t+""}Nr.prototype.apiKey=void 0,Nr.prototype.secretKey=void 0,Nr.prototype.$reserved=void 0,Nr.prototype.$objectType=void 0,Nr.prototype.$unknownFields=void 0;var Br=new WeakSet,Kr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Br),this.credential=t,this.$objectType="security.v4.config.KeyBasedAuthCredential",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCredential",value:function(){return this.credential}},{key:"setCredential",value:function(e){this.credential=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 Lr(Lr({},void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().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 E?r=["credential"]: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"credential"!==t||void 0!==this.credential&&null!==this.credential?"$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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("credential","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("credential")&&null!==t.credential&&void 0!==t.credential&&n.setCredential(Nr.constructFromObject(t.credential)),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=Lr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Vr(t.prototype,n),r&&Vr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wr(e){return Wr="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},Wr(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 Hr(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){zr(e,t,n[t])}):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 zr(e,t,n){return(t=Qr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gr(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,Qr(r.key),r)}}function Qr(e){var t=function(e){if("object"!=Wr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wr(t)?t:t+""}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yr=function(){return!!e})()}function Xr(e){return Xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xr(e)}function Zr(e,t){return Zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zr(e,t)}Kr.prototype.credential=void 0,Kr.prototype.$reserved=void 0,Kr.prototype.$objectType=void 0,Kr.prototype.$unknownFields=void 0;var eo=new WeakSet,to=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(o=function(e,t,n){return t=Xr(t),function(e,t){if(t&&("object"==Wr(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||[],Xr(e).constructor):t.apply(e,n))}(this,t,[r]),eo),o.url=e,o.deploymentType=n,o.$objectType="security.v4.config.IntersightCredential",o.$reserved={$fv:"v4.r0"},o.$unknownFields={},o}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&&Zr(e,t)}(t,e),n=t,r=[{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(e){this.url=e}},{key:"getDeploymentType",value:function(){return this.deploymentType}},{key:"setDeploymentType",value:function(e){this.deploymentType=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"toJson",value:function(e){return Hr(Hr(!1===e?Hr(Hr(Hr({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getDeploymentType()&&null!==this.getDeploymentType()?{deploymentType:this.getDeploymentType()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}):Hr(Hr({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getDeploymentType()&&null!==this.getDeploymentType()?{deploymentType:this.getDeploymentType()}:{}),void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().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 E?r=["credential","url","deploymentType"]: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 R("url","undefined or null");if(!C.validatePattern(this.url,/^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new R("url","does not satisfy required pattern: /^((http[s]?|nfs):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}return"deploymentType"!==t||void 0!==this.deploymentType&&null!==this.deploymentType?"type"!==t||void 0!==this.type&&null!==this.type?new R(t,"no such property exists"):new R("type","undefined or null"):new R("deploymentType","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Kr.constructFromObject(e,n,!0),e.hasOwnProperty("url")&&null!==e.url&&void 0!==e.url&&n.setUrl(e.url),e.hasOwnProperty("deploymentType")&&null!==e.deploymentType&&void 0!==e.deploymentType&&n.setDeploymentType(Sr.constructFromObject(e.deploymentType)),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&n.setType(e.type),!r))for(var o in n.$unknownFields=Hr({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Gr(n.prototype,r),o&&Gr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Kr);function no(e){return no="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},no(e)}function ro(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 oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach(function(t){io(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function io(e,t,n){return(t=ao(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function so(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,ao(r.key),r)}}function ao(e){var t=function(e){if("object"!=no(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=no(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==no(t)?t:t+""}to.prototype.url=void 0,to.prototype.deploymentType=void 0,to.prototype.type=void 0,Kr.prototype.credential=void 0;var uo=new WeakSet,lo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,uo),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{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 oo(oo({},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 E?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("value"===t){if(void 0===this.value||null===this.value)return new R("value","undefined or null");if(!C.validatePattern(this.value,/^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/))return new R("value","does not satisfy required pattern: /^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/")}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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,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=oo({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&so(t.prototype,n),r&&so(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function co(e){return co="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},co(e)}function fo(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 po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach(function(t){yo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yo(e,t,n){return(t=vo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(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,vo(r.key),r)}}function vo(e){var t=function(e){if("object"!=co(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==co(t)?t:t+""}lo.prototype.value=void 0,lo.prototype.$reserved=void 0,lo.prototype.$objectType=void 0,lo.prototype.$unknownFields=void 0;var bo=new WeakSet,go=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,bo),this.value=t,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=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 po(po(po({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$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 E?r=["value"]: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("value"===t){if(void 0===this.value||null===this.value)return new R("value","undefined or null");if(!C.validatePattern(this.value,/^(?:(?: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 R("value","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]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new R("prefixLength","undefined or null");if(!C.validateMaximum(this.prefixLength,32))return new R("prefixLength","does not satisfy required maximum constraint: 32");if(!C.validateMinimum(this.prefixLength,0))return new R("prefixLength","does not satisfy required minimum constraint: 0")}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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),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=po({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ho(t.prototype,n),r&&ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function mo(e){return mo="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},mo(e)}function wo(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 Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach(function(t){jo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jo(e,t,n){return(t=$o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ko(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,$o(r.key),r)}}function $o(e){var t=function(e){if("object"!=mo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mo(t)?t:t+""}go.prototype.value=void 0,go.prototype.prefixLength=32,go.prototype.$reserved=void 0,go.prototype.$objectType=void 0,go.prototype.$unknownFields=void 0;var Po=new WeakSet,To=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Po),this.value=t,this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=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 Oo(Oo(Oo({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$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 E?r=["value"]: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("value"===t){if(void 0===this.value||null===this.value)return new R("value","undefined or null");if(!C.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new R("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new R("prefixLength","undefined or null");if(!C.validateMaximum(this.prefixLength,128))return new R("prefixLength","does not satisfy required maximum constraint: 128");if(!C.validateMinimum(this.prefixLength,0))return new R("prefixLength","does not satisfy required minimum constraint: 0")}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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),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=Oo({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ko(t.prototype,n),r&&ko(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Eo(e){return Eo="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},Eo(e)}function So(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 Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach(function(t){Io(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Io(e,t,n){return(t=Do(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Co(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,Do(r.key),r)}}function Do(e){var t=function(e){if("object"!=Eo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eo(t)?t:t+""}To.prototype.value=void 0,To.prototype.prefixLength=128,To.prototype.$reserved=void 0,To.prototype.$objectType=void 0,To.prototype.$unknownFields=void 0;var Ao=new WeakSet,xo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ao),this.$objectType="common.v1.config.IPAddressOrFQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"getFqdn",value:function(){return this.fqdn}},{key:"setFqdn",value:function(e){this.fqdn=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:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"hasFqdn",value:function(){return!(void 0===this.fqdn||null===this.fqdn)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()||this.hasFqdn()}},{key:"toJson",value:function(e){return Fo(Fo(Fo(Fo({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),void 0!==this.getFqdn()&&null!==this.getFqdn()?{fqdn:this.getFqdn().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 E?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"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"fqdn"!==t||void 0!==this.fqdn&&null!==this.fqdn?"$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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("fqdn","undefined or null"):new R("ipv6","undefined or null"):new R("ipv4","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(go.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(To.constructFromObject(t.ipv6)),t.hasOwnProperty("fqdn")&&null!==t.fqdn&&void 0!==t.fqdn&&n.setFqdn(lo.constructFromObject(t.fqdn)),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=Fo({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Co(t.prototype,n),r&&Co(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ro(e){return Ro="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},Ro(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 _o(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){Uo(e,t,n[t])}):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 Uo(e,t,n){return(t=Mo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Mo(r.key),r)}}function Mo(e){var t=function(e){if("object"!=Ro(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ro(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ro(t)?t:t+""}function Vo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vo=function(){return!!e})()}function Jo(e){return Jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jo(e)}function Bo(e,t){return Bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bo(e,t)}xo.prototype.ipv4=void 0,xo.prototype.ipv6=void 0,xo.prototype.fqdn=void 0,xo.prototype.$reserved=void 0,xo.prototype.$objectType=void 0,xo.prototype.$unknownFields=void 0;var Ko=new WeakSet,Wo=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=Jo(t),function(e,t){if(t&&("object"==Ro(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,Vo()?Reflect.construct(t,n||[],Jo(e).constructor):t.apply(e,n))}(this,t,[n]),Ko),r.address=e,r.$objectType="security.v4.config.VcenterCredential",r.$reserved={$fv:"v4.r0"},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&&Bo(e,t)}(t,e),n=t,r=[{key:"getAddress",value:function(){return this.address}},{key:"setAddress",value:function(e){this.address=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"toJson",value:function(e){return _o(_o(!1===e?_o(_o({},void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}):_o({},void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{}),void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().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 E?r=["credential","address"]: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"address"!==t||void 0!==this.address&&null!==this.address?"type"!==t||void 0!==this.type&&null!==this.type?new R(t,"no such property exists"):new R("type","undefined or null"):new R("address","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,hr.constructFromObject(e,n,!0),e.hasOwnProperty("address")&&null!==e.address&&void 0!==e.address&&n.setAddress(xo.constructFromObject(e.address)),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&n.setType(e.type),!r))for(var o in n.$unknownFields=_o({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Lo(n.prototype,r),o&&Lo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(hr);function qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ho(e){return Ho="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},Ho(e)}function zo(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 Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach(function(t){Qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qo(e,t,n){return(t=Xo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(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,Xo(r.key),r)}}function Xo(e){var t=function(e){if("object"!=Ho(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ho(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ho(t)?t:t+""}function Zo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zo=function(){return!!e})()}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ei(e)}function ti(e,t){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ti(e,t)}function ni(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")}Wo.prototype.address=void 0,Wo.prototype.type=void 0,hr.prototype.credential=void 0;var ri=new WeakSet,oi=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=ei(t),function(e,t){if(t&&("object"==Ho(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,Zo()?Reflect.construct(t,n||[],ei(e).constructor):t.apply(e,n))}(this,t),ri),r.name=e,r.credentialDetails=n,r.$objectType="security.v4.config.Credential",r.$reserved={$fv:"v4.r0"},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&&ti(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getCredentialDetails",value:function(){return this.credentialDetails}},{key:"setCredentialDetails",value:function(e){this.credentialDetails=e}},{key:"getIsValid",value:function(){return this.isValid}},{key:"setIsValid",value:function(e){this.isValid=e}},{key:"toJson",value:function(e){return Go(!1===e?Go(Go(Go(Go(Go(Go({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCredentialDetails()&&null!==this.getCredentialDetails()?{credentialDetails:void 0!==this.getCredentialDetails().toJson?this.getCredentialDetails().toJson(!1):Array.isArray(this.getCredentialDetails())?this.getCredentialDetails().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ni(ri,this,ii).call(this,this.getCredentialDetails(),!1)}:{}),void 0!==this.getIsValid()&&null!==this.getIsValid()?{isValid:this.getIsValid()}:{}),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()}:{}):Go(Go({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCredentialDetails()&&null!==this.getCredentialDetails()?{credentialDetails:void 0!==this.getCredentialDetails().toJson?this.getCredentialDetails().toJson():Array.isArray(this.getCredentialDetails())?this.getCredentialDetails().map(function(e){return void 0!==e.toJson?e.toJson():e}):ni(ri,this,ii).call(this,this.getCredentialDetails())}:{}),{},{$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 E?r=["name","credentialDetails"]: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("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!C.validateMaxLength(this.name,256))return new R("name","does not satisfy required maxLength constraint: 256");if(!C.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1")}return"credentialDetails"!==t||void 0!==this.credentialDetails&&null!==this.credentialDetails?"isValid"!==t||void 0!==this.isValid&&null!==this.isValid?new R(t,"no such property exists"):new R("isValid","undefined or null"):new R("credentialDetails","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,Zn.constructFromObject(e,r,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&r.setName(e.name),e.hasOwnProperty("credentialDetails")&&null!==e.credentialDetails&&void 0!==e.credentialDetails)switch(n=e.credentialDetails.hasOwnProperty("$objectType")?e.credentialDetails.$objectType:Ho(e.credentialDetails)){case"security.v4.config.BmcCredential":r.setCredentialDetails(Tr.constructFromObject(e.credentialDetails,void 0));break;case"security.v4.config.VcenterCredential":r.setCredentialDetails(Wo.constructFromObject(e.credentialDetails,void 0));break;case"security.v4.config.IntersightCredential":r.setCredentialDetails(to.constructFromObject(e.credentialDetails,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("isValid")&&null!==e.isValid&&void 0!==e.isValid&&r.setIsValid(e.isValid),!o)for(var i in r.$unknownFields=Go({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Yo(n.prototype,r),o&&Yo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function ii(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qo(e,t);var n={}.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)?qo(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Ho(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,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ai(e){return ai="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},ai(e)}function ui(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 li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach(function(t){ci(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ci(e,t,n){return(t=fi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,fi(r.key),r)}}function fi(e){var t=function(e){if("object"!=ai(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ai(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ai(t)?t:t+""}function pi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pi=function(){return!!e})()}function yi(e){return yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yi(e)}function hi(e,t){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hi(e,t)}function vi(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")}oi.prototype.name=void 0,oi.prototype.credentialDetails=void 0,oi.prototype.isValid=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var bi=new WeakSet,gi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=yi(t),function(e,t){if(t&&("object"==ai(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,pi()?Reflect.construct(t,n||[],yi(e).constructor):t.apply(e,n))}(this,t),bi),e.$objectType="security.v4.config.ListCredentialsApiResponse",e.$reserved={$fv:"v4.r0"},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&&hi(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 li(li(li({},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}):vi(bi,this,mi).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}):vi(bi,this,mi).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:ai(n[0]),o=0;o<n.length;o++){if("security.v4.config.Credential"!==s)throw"Unknown list of type "+s+" in data";r=oi.constructFromObject(n[o],void 0),i.push(r)}a.setData(i)}else{if("security.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ai(e.data)))throw"Unknown datatype "+s+" in data";a.setData(mn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=li({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&di(n.prototype,r),o&&di(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function mi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return si(e,t);var n={}.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)?si(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===ai(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 wi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oi(e){return Oi="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},Oi(e)}function ji(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 ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(n),!0).forEach(function(t){$i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $i(e,t,n){return(t=Ti(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pi(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,Ti(r.key),r)}}function Ti(e){var t=function(e){if("object"!=Oi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oi(t)?t:t+""}function Ei(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ei=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Si(e)}function Fi(e,t){return Fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fi(e,t)}function Ii(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")}gi.prototype.metadata=void 0,gi.prototype.data=void 0,gi.prototype.$reserved=void 0,gi.prototype.$objectType=void 0,gi.prototype.$unknownFields=void 0;var Ci=new WeakSet,Di=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Si(t),function(e,t){if(t&&("object"==Oi(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,Ei()?Reflect.construct(t,n||[],Si(e).constructor):t.apply(e,n))}(this,t),Ci),e.$objectType="security.v4.config.GetCredentialApiResponse",e.$reserved={$fv:"v4.r0"},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&&Fi(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 ki(ki(ki({},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}):Ii(Ci,this,Ai).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}):Ii(Ci,this,Ai).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Oi(e.data)){case"security.v4.config.Credential":r.setData(oi.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=ki({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Pi(n.prototype,r),o&&Pi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ai(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return wi(e,t);var n={}.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)?wi(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Oi(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 xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return 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 Ni(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 _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach(function(t){Ui(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ui(e,t,n){return(t=Mi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(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){if("object"!=Ri(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ri(t)?t:t+""}function Vi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vi=function(){return!!e})()}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ji(e)}function Bi(e,t){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bi(e,t)}function Ki(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")}Di.prototype.metadata=void 0,Di.prototype.data=void 0,Di.prototype.$reserved=void 0,Di.prototype.$objectType=void 0,Di.prototype.$unknownFields=void 0;var Wi=new WeakSet,qi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ji(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,Vi()?Reflect.construct(t,n||[],Ji(e).constructor):t.apply(e,n))}(this,t),Wi),e.$objectType="security.v4.config.DeleteCredentialApiResponse",e.$reserved={$fv:"v4.r0"},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&&Bi(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 _i(_i(_i({},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}):Ki(Wi,this,Hi).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}):Ki(Wi,this,Hi).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&r.setData(null),n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ri(e.data)){case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;case"":r.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=_i({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Li(n.prototype,r),o&&Li(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Hi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return xi(e,t);var n={}.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)?xi(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Ri(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 zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gi(e){return Gi="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},Gi(e)}function Qi(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 Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach(function(t){Xi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xi(e,t,n){return(t=es(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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){if("object"!=Gi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gi(t)?t:t+""}function ts(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ts=function(){return!!e})()}function ns(e){return ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ns(e)}function rs(e,t){return rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rs(e,t)}function os(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")}qi.prototype.metadata=void 0,qi.prototype.data=void 0,qi.prototype.$reserved=void 0,qi.prototype.$objectType=void 0,qi.prototype.$unknownFields=void 0;var is=new WeakSet,ss=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ns(t),function(e,t){if(t&&("object"==Gi(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,ts()?Reflect.construct(t,n||[],ns(e).constructor):t.apply(e,n))}(this,t),is),e.$objectType="security.v4.config.CreateCredentialApiResponse",e.$reserved={$fv:"v4.r0"},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&&rs(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 Yi(Yi(Yi({},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}):os(is,this,as).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}):os(is,this,as).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Gi(e.data)){case"prism.v4.config.TaskReference":r.setData(At.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Yi({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Zi(n.prototype,r),o&&Zi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function as(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return zi(e,t);var n={}.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)?zi(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Gi(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 us(e){return us="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},us(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 cs(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){ds(e,t,n[t])}):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 ds(e,t,n){return(t=ps(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fs(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,ps(r.key),r)}}function ps(e){var t=function(e){if("object"!=us(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=us(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==us(t)?t:t+""}function ys(e,t){return e.get(hs(e,t))}function hs(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")}ss.prototype.metadata=void 0,ss.prototype.data=void 0,ss.prototype.$reserved=void 0,ss.prototype.$objectType=void 0,ss.prototype.$unknownFields=void 0;var vs=new WeakMap,bs=function(){return e=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,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,vs,void 0),this.apiClient=t||lt.instance,n=vs,r=new Set,n.set(hs(n,this),r),ys(vs,this).add("authorization"),ys(vs,this).add("cookie"),ys(vs,this).add("host"),ys(vs,this).add("user-agent")},t=[{key:"createCredential",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof oi&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createCredential");var o={};Object.keys(r).forEach(function(e){ys(vs,n).has(e.toLowerCase())||(o[e]=r[e])});var i=cs({},o);lt.addEtagReferenceToHeader(e,i);var s=ss;return this.apiClient.callApi("/api/security/v4.0/config/credentials","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"deleteCredentialById",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 deleteCredentialById");var r={extId:e},o={};Object.keys(n).forEach(function(e){ys(vs,t).has(e.toLowerCase())||(o[e]=n[e])});var i=cs({},o),s=qi;return this.apiClient.callApi("/api/security/v4.0/config/credentials/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"getCredentialById",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 getCredentialById");var r={extId:e},o={};Object.keys(n).forEach(function(e){ys(vs,t).has(e.toLowerCase())||(o[e]=n[e])});var i=cs({},o),s=Di;return this.apiClient.callApi("/api/security/v4.0/config/credentials/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listCredentials",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=cs(cs(cs(cs(cs({},(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){ys(vs,t).has(e.toLowerCase())||(o[e]=n[e])});var i=cs({},o),s=gi;return this.apiClient.callApi("/api/security/v4.0/config/credentials","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"updateCredentialById",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof oi&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateCredentialById");if(null==n)throw new Error("Invalid body when calling updateCredentialById");var i={extId:e},s={};Object.keys(o).forEach(function(e){ys(vs,r).has(e.toLowerCase())||(s[e]=o[e])});var a=cs({},s);lt.addEtagReferenceToHeader(t,a);var u=An;return this.apiClient.callApi("/api/security/v4.0/config/credentials/{extId}","PUT",i,{},a,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&fs(e.prototype,t),n&&fs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function gs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ms(e){return ms="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},ms(e)}function ws(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 Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(n),!0).forEach(function(t){js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function js(e,t,n){return(t=$s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ks(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,$s(r.key),r)}}function $s(e){var t=function(e){if("object"!=ms(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ms(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ms(t)?t:t+""}function Ps(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ps=function(){return!!e})()}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ts(e)}function Es(e,t){return Es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Es(e,t)}function Ss(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 Fs=new WeakSet,Is=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ts(t),function(e,t){if(t&&("object"==ms(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,Ps()?Reflect.construct(t,n||[],Ts(e).constructor):t.apply(e,n))}(this,t),Fs),e.$objectType="security.v4.management.AssociatePoliciesApiResponse",e.$reserved={$fv:"v4.r0"},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&&Es(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 Os(Os(Os({},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}):Ss(Fs,this,Cs).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}):Ss(Fs,this,Cs).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ms(e.data)){case"prism.v4.config.TaskReference":r.setData(At.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Os({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ks(n.prototype,r),o&&ks(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Cs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return gs(e,t);var n={}.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)?gs(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===ms(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}Is.prototype.metadata=void 0,Is.prototype.data=void 0,Is.prototype.$reserved=void 0,Is.prototype.$objectType=void 0,Is.prototype.$unknownFields=void 0;var Ds={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PROTECTION_POLICY:"PROTECTION_POLICY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ds).find(function(t){return Ds[t]===e});return null==t?Ds.$UNKNOWN:Ds[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ds.$UNKNOWN:case Ds.$REDACTED:case Ds.PROTECTION_POLICY:return;default:throw new Error("Invalid : must be PolicyType.{ $UNKNOWN|$REDACTED|PROTECTION_POLICY }")}}};Object.freeze(Ds);const As=Ds;function xs(e){return xs="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},xs(e)}function Rs(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 Ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach(function(t){_s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _s(e,t,n){return(t=Ls(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Us(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,Ls(r.key),r)}}function Ls(e){var t=function(e){if("object"!=xs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xs(t)?t:t+""}var Ms=new WeakSet,Vs=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ms),this.policyExtId=t,this.policyType=n,this.$objectType="security.v4.management.SecuredPolicy",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getPolicyExtId",value:function(){return this.policyExtId}},{key:"setPolicyExtId",value:function(e){this.policyExtId=e}},{key:"getPolicyType",value:function(){return this.policyType}},{key:"setPolicyType",value:function(e){this.policyType=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 Ns(Ns(Ns({},void 0!==this.getPolicyExtId()&&null!==this.getPolicyExtId()?{policyExtId:this.getPolicyExtId()}:{}),void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{}),{},{$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 E?r=["policyExtId","policyType"]: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("policyExtId"===t){if(void 0===this.policyExtId||null===this.policyExtId)return new R("policyExtId","undefined or null");if(!C.validatePattern(this.policyExtId,/^[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 R("policyExtId","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"policyType"!==t||void 0!==this.policyType&&null!==this.policyType?"$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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("policyType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("policyExtId")&&null!==t.policyExtId&&void 0!==t.policyExtId&&n.setPolicyExtId(t.policyExtId),t.hasOwnProperty("policyType")&&null!==t.policyType&&void 0!==t.policyType&&n.setPolicyType(As.constructFromObject(t.policyType)),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=Ns({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Us(t.prototype,n),r&&Us(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 Bs(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 Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(n),!0).forEach(function(t){Ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ws(e,t,n){return(t=Hs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qs(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){if("object"!=Js(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Js(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Js(t)?t:t+""}Vs.prototype.policyExtId=void 0,Vs.prototype.policyType=void 0,Vs.prototype.$reserved=void 0,Vs.prototype.$objectType=void 0,Vs.prototype.$unknownFields=void 0;var zs=new WeakSet,Gs=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,zs),this.securedPolicies=t,this.$objectType="security.v4.management.AssociatePoliciesSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getSecuredPolicies",value:function(){return this.securedPolicies}},{key:"setSecuredPolicies",value:function(e){this.securedPolicies=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 Ks(Ks({},void 0!==this.getSecuredPolicies()&&null!==this.getSecuredPolicies()?{securedPolicies:this.getSecuredPolicies().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 E?r=["securedPolicies"]: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("securedPolicies"===t){if(void 0===this.securedPolicies||null===this.securedPolicies)return new R("securedPolicies","undefined or null");if(!C.validateMaxItems(this.securedPolicies,100))return new R("securedPolicies","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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("securedPolicies")&&null!==t.securedPolicies&&void 0!==t.securedPolicies){for(i=[],n=t.securedPolicies,o=0;o<n.length;o++)r=Vs.constructFromObject(n[o],void 0),i.push(r);s.setSecuredPolicies(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Ks({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&qs(t.prototype,n),r&&qs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Gs.prototype.securedPolicies=void 0,Gs.prototype.$reserved=void 0,Gs.prototype.$objectType=void 0,Gs.prototype.$unknownFields=void 0;var Qs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VALID:"VALID",REVOKED:"REVOKED",EXPIRED:"EXPIRED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Qs).find(function(t){return Qs[t]===e});return null==t?Qs.$UNKNOWN:Qs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Qs.$UNKNOWN:case Qs.$REDACTED:case Qs.VALID:case Qs.REVOKED:case Qs.EXPIRED:return;default:throw new Error("Invalid : must be BucketsAccessKeyStatusType.{ $UNKNOWN|$REDACTED|VALID|REVOKED|EXPIRED }")}}};Object.freeze(Qs);const Ys=Qs;var Xs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PREDEFINED:"PREDEFINED",USERDEFINED:"USERDEFINED",SERVICEDEFINED:"SERVICEDEFINED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Xs).find(function(t){return Xs[t]===e});return null==t?Xs.$UNKNOWN:Xs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xs.$UNKNOWN:case Xs.$REDACTED:case Xs.PREDEFINED:case Xs.USERDEFINED:case Xs.SERVICEDEFINED:return;default:throw new Error("Invalid : must be CreationType.{ $UNKNOWN|$REDACTED|PREDEFINED|USERDEFINED|SERVICEDEFINED }")}}};Object.freeze(Xs);const Zs=Xs;function ea(e){return ea="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},ea(e)}function ta(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 na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach(function(t){ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ra(e,t,n){return(t=ia(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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){if("object"!=ea(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ea(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ea(t)?t:t+""}function sa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sa=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aa(e)}function ua(e,t){return ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ua(e,t)}function la(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 ca=new WeakSet,da=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(n=function(e,t,n){return t=aa(t),function(e,t){if(t&&("object"==ea(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,sa()?Reflect.construct(t,n||[],aa(e).constructor):t.apply(e,n))}(this,t),ca),n.accessKeyName=e,n.$objectType="iam.v4.authn.BucketsAccessKey",n.$reserved={$fv:"v4.r1.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&&ua(e,t)}(t,e),n=t,r=[{key:"getAccessKeyName",value:function(){return this.accessKeyName}},{key:"setAccessKeyName",value:function(e){this.accessKeyName=e}},{key:"getSecretAccessKey",value:function(){return this.secretAccessKey}},{key:"setSecretAccessKey",value:function(e){this.secretAccessKey=e}},{key:"getUserId",value:function(){return this.userId}},{key:"setUserId",value:function(e){this.userId=e}},{key:"getCreatedTime",value:function(){return this.createdTime}},{key:"setCreatedTime",value:function(e){this.createdTime=e}},{key:"getLastUpdatedBy",value:function(){return this.lastUpdatedBy}},{key:"setLastUpdatedBy",value:function(e){this.lastUpdatedBy=e}},{key:"getAssignedTo",value:function(){return this.assignedTo}},{key:"setAssignedTo",value:function(e){this.assignedTo=e}},{key:"getCreationType",value:function(){return this.creationType}},{key:"setCreationType",value:function(e){this.creationType=e}},{key:"getExpiryTime",value:function(){return this.expiryTime}},{key:"setExpiryTime",value:function(e){this.expiryTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getCreatedBy",value:function(){return this.createdBy}},{key:"setCreatedBy",value:function(e){this.createdBy=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"toJson",value:function(e){return na(!1===e?na(na(na(na(na(na(na(na(na(na(na(na(na(na({},void 0!==this.getAccessKeyName()&&null!==this.getAccessKeyName()?{accessKeyName:this.getAccessKeyName()}:{}),void 0!==this.getSecretAccessKey()&&null!==this.getSecretAccessKey()?{secretAccessKey:this.getSecretAccessKey()}:{}),void 0!==this.getUserId()&&null!==this.getUserId()?{userId:this.getUserId()}:{}),void 0!==this.getCreatedTime()&&null!==this.getCreatedTime()?{createdTime:la(ca,this,fa).call(this,this.getCreatedTime(),!1)}:{}),void 0!==this.getLastUpdatedBy()&&null!==this.getLastUpdatedBy()?{lastUpdatedBy:this.getLastUpdatedBy()}:{}),void 0!==this.getAssignedTo()&&null!==this.getAssignedTo()?{assignedTo:this.getAssignedTo()}:{}),void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{}),void 0!==this.getExpiryTime()&&null!==this.getExpiryTime()?{expiryTime:la(ca,this,fa).call(this,this.getExpiryTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:la(ca,this,fa).call(this,this.getLastUpdatedTime(),!1)}:{}),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()}:{}):na(na(na(na(na({},void 0!==this.getAccessKeyName()&&null!==this.getAccessKeyName()?{accessKeyName:this.getAccessKeyName()}:{}),void 0!==this.getAssignedTo()&&null!==this.getAssignedTo()?{assignedTo:this.getAssignedTo()}:{}),void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{}),void 0!==this.getExpiryTime()&&null!==this.getExpiryTime()?{expiryTime:la(ca,this,fa).call(this,this.getExpiryTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),{},{$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 E?r=["accessKeyName"]: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("accessKeyName"===t){if(void 0===this.accessKeyName||null===this.accessKeyName)return new R("accessKeyName","undefined or null");if(!C.validateMaxLength(this.accessKeyName,255))return new R("accessKeyName","does not satisfy required maxLength constraint: 255");if(!C.validateMinLength(this.accessKeyName,1))return new R("accessKeyName","does not satisfy required minLength constraint: 1");if(!C.validatePattern(this.accessKeyName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("accessKeyName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("secretAccessKey"===t&&(void 0===this.secretAccessKey||null===this.secretAccessKey))return new R("secretAccessKey","undefined or null");if("userId"===t){if(void 0===this.userId||null===this.userId)return new R("userId","undefined or null");if(!C.validatePattern(this.userId,/^[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 R("userId","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("createdTime"===t&&(void 0===this.createdTime||null===this.createdTime))return new R("createdTime","undefined or null");if("lastUpdatedBy"===t){if(void 0===this.lastUpdatedBy||null===this.lastUpdatedBy)return new R("lastUpdatedBy","undefined or null");if(!C.validatePattern(this.lastUpdatedBy,/^[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 R("lastUpdatedBy","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("assignedTo"===t){if(void 0===this.assignedTo||null===this.assignedTo)return new R("assignedTo","undefined or null");if(!C.validateMaxLength(this.assignedTo,255))return new R("assignedTo","does not satisfy required maxLength constraint: 255");if(!C.validateMinLength(this.assignedTo,3))return new R("assignedTo","does not satisfy required minLength constraint: 3")}if("creationType"===t&&(void 0===this.creationType||null===this.creationType))return new R("creationType","undefined or null");if("expiryTime"===t&&(void 0===this.expiryTime||null===this.expiryTime))return new R("expiryTime","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("createdBy"===t){if(void 0===this.createdBy||null===this.createdBy)return new R("createdBy","undefined or null");if(!C.validatePattern(this.createdBy,/^[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 R("createdBy","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"lastUpdatedTime"!==t||void 0!==this.lastUpdatedTime&&null!==this.lastUpdatedTime?new R(t,"no such property exists"):new R("lastUpdatedTime","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Zn.constructFromObject(e,n,!0),e.hasOwnProperty("accessKeyName")&&null!==e.accessKeyName&&void 0!==e.accessKeyName&&n.setAccessKeyName(e.accessKeyName),e.hasOwnProperty("secretAccessKey")&&null!==e.secretAccessKey&&void 0!==e.secretAccessKey&&n.setSecretAccessKey(e.secretAccessKey),e.hasOwnProperty("userId")&&null!==e.userId&&void 0!==e.userId&&n.setUserId(e.userId),e.hasOwnProperty("createdTime")&&null!==e.createdTime&&void 0!==e.createdTime&&n.setCreatedTime(e.createdTime),e.hasOwnProperty("lastUpdatedBy")&&null!==e.lastUpdatedBy&&void 0!==e.lastUpdatedBy&&n.setLastUpdatedBy(e.lastUpdatedBy),e.hasOwnProperty("assignedTo")&&null!==e.assignedTo&&void 0!==e.assignedTo&&n.setAssignedTo(e.assignedTo),e.hasOwnProperty("creationType")&&null!==e.creationType&&void 0!==e.creationType&&n.setCreationType(Zs.constructFromObject(e.creationType)),e.hasOwnProperty("expiryTime")&&null!==e.expiryTime&&void 0!==e.expiryTime&&n.setExpiryTime(e.expiryTime),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&n.setStatus(Ys.constructFromObject(e.status)),e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&n.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),!r))for(var o in n.$unknownFields=na({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&oa(n.prototype,r),o&&oa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function fa(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}da.prototype.accessKeyName=void 0,da.prototype.secretAccessKey=void 0,da.prototype.userId=void 0,da.prototype.createdTime=void 0,da.prototype.lastUpdatedBy=void 0,da.prototype.assignedTo=void 0,da.prototype.creationType=void 0,da.prototype.expiryTime=void 0,da.prototype.status=void 0,da.prototype.createdBy=void 0,da.prototype.lastUpdatedTime=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var pa={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ACTIVE:"ACTIVE",INACTIVE:"INACTIVE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(pa).find(function(t){return pa[t]===e});return null==t?pa.$UNKNOWN:pa[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case pa.$UNKNOWN:case pa.$REDACTED:case pa.ACTIVE:case pa.INACTIVE:return;default:throw new Error("Invalid : must be UserStatusType.{ $UNKNOWN|$REDACTED|ACTIVE|INACTIVE }")}}};Object.freeze(pa);const ya=pa;var ha={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",LOCAL:"LOCAL",SAML:"SAML",LDAP:"LDAP",EXTERNAL:"EXTERNAL",SERVICE_ACCOUNT:"SERVICE_ACCOUNT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ha).find(function(t){return ha[t]===e});return null==t?ha.$UNKNOWN:ha[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ha.$UNKNOWN:case ha.$REDACTED:case ha.LOCAL:case ha.SAML:case ha.LDAP:case ha.EXTERNAL:case ha.SERVICE_ACCOUNT:return;default:throw new Error("Invalid : must be UserType.{ $UNKNOWN|$REDACTED|LOCAL|SAML|LDAP|EXTERNAL|SERVICE_ACCOUNT }")}}};Object.freeze(ha);const va=ha;function ba(e){return ba="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},ba(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 ma(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){wa(e,t,n[t])}):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 wa(e,t,n){return(t=ja(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,ja(r.key),r)}}function ja(e){var t=function(e){if("object"!=ba(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ba(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ba(t)?t:t+""}function ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ka=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$a(e)}function Pa(e,t){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pa(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")}var Ea=new WeakSet,Sa=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=$a(t),function(e,t){if(t&&("object"==ba(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,ka()?Reflect.construct(t,n||[],$a(e).constructor):t.apply(e,n))}(this,t),Ea),e.$objectType="iam.v4.authn.User",e.$reserved={$fv:"v4.r1.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&&Pa(e,t)}(t,e),n=t,r=[{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getUserType",value:function(){return this.userType}},{key:"setUserType",value:function(e){this.userType=e}},{key:"getIdpId",value:function(){return this.idpId}},{key:"setIdpId",value:function(e){this.idpId=e}},{key:"getDisplayName",value:function(){return this.displayName}},{key:"setDisplayName",value:function(e){this.displayName=e}},{key:"getFirstName",value:function(){return this.firstName}},{key:"setFirstName",value:function(e){this.firstName=e}},{key:"getMiddleInitial",value:function(){return this.middleInitial}},{key:"setMiddleInitial",value:function(e){this.middleInitial=e}},{key:"getLastName",value:function(){return this.lastName}},{key:"setLastName",value:function(e){this.lastName=e}},{key:"getEmailId",value:function(){return this.emailId}},{key:"setEmailId",value:function(e){this.emailId=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getRegion",value:function(){return this.region}},{key:"setRegion",value:function(e){this.region=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getIsForceResetPasswordEnabled",value:function(){return this.isForceResetPasswordEnabled}},{key:"setIsForceResetPasswordEnabled",value:function(e){this.isForceResetPasswordEnabled=e}},{key:"getAdditionalAttributes",value:function(){return this.additionalAttributes}},{key:"setAdditionalAttributes",value:function(e){this.additionalAttributes=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getBucketsAccessKeys",value:function(){return this.bucketsAccessKeys}},{key:"setBucketsAccessKeys",value:function(e){this.bucketsAccessKeys=e}},{key:"getLastLoginTime",value:function(){return this.lastLoginTime}},{key:"setLastLoginTime",value:function(e){this.lastLoginTime=e}},{key:"getCreatedTime",value:function(){return this.createdTime}},{key:"setCreatedTime",value:function(e){this.createdTime=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getCreatedBy",value:function(){return this.createdBy}},{key:"setCreatedBy",value:function(e){this.createdBy=e}},{key:"getLastUpdatedBy",value:function(){return this.lastUpdatedBy}},{key:"setLastUpdatedBy",value:function(e){this.lastUpdatedBy=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getCreationType",value:function(){return this.creationType}},{key:"setCreationType",value:function(e){this.creationType=e}},{key:"toJson",value:function(e){return ma(!1===e?ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma({},void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{}),void 0!==this.getIdpId()&&null!==this.getIdpId()?{idpId:this.getIdpId()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getFirstName()&&null!==this.getFirstName()?{firstName:this.getFirstName()}:{}),void 0!==this.getMiddleInitial()&&null!==this.getMiddleInitial()?{middleInitial:this.getMiddleInitial()}:{}),void 0!==this.getLastName()&&null!==this.getLastName()?{lastName:this.getLastName()}:{}),void 0!==this.getEmailId()&&null!==this.getEmailId()?{emailId:this.getEmailId()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getIsForceResetPasswordEnabled()&&null!==this.getIsForceResetPasswordEnabled()?{isForceResetPasswordEnabled:this.getIsForceResetPasswordEnabled()}:{}),void 0!==this.getAdditionalAttributes()&&null!==this.getAdditionalAttributes()?{additionalAttributes:this.getAdditionalAttributes().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getBucketsAccessKeys()&&null!==this.getBucketsAccessKeys()?{bucketsAccessKeys:this.getBucketsAccessKeys().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getLastLoginTime()&&null!==this.getLastLoginTime()?{lastLoginTime:Ta(Ea,this,Fa).call(this,this.getLastLoginTime(),!1)}:{}),void 0!==this.getCreatedTime()&&null!==this.getCreatedTime()?{createdTime:Ta(Ea,this,Fa).call(this,this.getCreatedTime(),!1)}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:Ta(Ea,this,Fa).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getLastUpdatedBy()&&null!==this.getLastUpdatedBy()?{lastUpdatedBy:this.getLastUpdatedBy()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{}),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()}:{}):ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma(ma({},void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{}),void 0!==this.getIdpId()&&null!==this.getIdpId()?{idpId:this.getIdpId()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getFirstName()&&null!==this.getFirstName()?{firstName:this.getFirstName()}:{}),void 0!==this.getMiddleInitial()&&null!==this.getMiddleInitial()?{middleInitial:this.getMiddleInitial()}:{}),void 0!==this.getLastName()&&null!==this.getLastName()?{lastName:this.getLastName()}:{}),void 0!==this.getEmailId()&&null!==this.getEmailId()?{emailId:this.getEmailId()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getIsForceResetPasswordEnabled()&&null!==this.getIsForceResetPasswordEnabled()?{isForceResetPasswordEnabled:this.getIsForceResetPasswordEnabled()}:{}),void 0!==this.getAdditionalAttributes()&&null!==this.getAdditionalAttributes()?{additionalAttributes:this.getAdditionalAttributes().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{}),{},{$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 E?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("username"===t){if(void 0===this.username||null===this.username)return new R("username","undefined or null");if(!C.validateMaxLength(this.username,255))return new R("username","does not satisfy required maxLength constraint: 255");if(!C.validateMinLength(this.username,1))return new R("username","does not satisfy required minLength constraint: 1");if(!C.validatePattern(this.username,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("username","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("userType"===t&&(void 0===this.userType||null===this.userType))return new R("userType","undefined or null");if("idpId"===t){if(void 0===this.idpId||null===this.idpId)return new R("idpId","undefined or null");if(!C.validatePattern(this.idpId,/^[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 R("idpId","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("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new R("displayName","undefined or null");if(!C.validateMaxLength(this.displayName,255))return new R("displayName","does not satisfy required maxLength constraint: 255");if(!C.validateMinLength(this.displayName,1))return new R("displayName","does not satisfy required minLength constraint: 1");if(!C.validatePattern(this.displayName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("displayName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("firstName"===t){if(void 0===this.firstName||null===this.firstName)return new R("firstName","undefined or null");if(!C.validateMaxLength(this.firstName,255))return new R("firstName","does not satisfy required maxLength constraint: 255");if(!C.validateMinLength(this.firstName,1))return new R("firstName","does not satisfy required minLength constraint: 1");if(!C.validatePattern(this.firstName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("firstName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("middleInitial"===t){if(void 0===this.middleInitial||null===this.middleInitial)return new R("middleInitial","undefined or null");if(!C.validateMaxLength(this.middleInitial,255))return new R("middleInitial","does not satisfy required maxLength constraint: 255");if(!C.validateMinLength(this.middleInitial,1))return new R("middleInitial","does not satisfy required minLength constraint: 1");if(!C.validatePattern(this.middleInitial,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("middleInitial","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("lastName"===t){if(void 0===this.lastName||null===this.lastName)return new R("lastName","undefined or null");if(!C.validateMaxLength(this.lastName,255))return new R("lastName","does not satisfy required maxLength constraint: 255");if(!C.validateMinLength(this.lastName,1))return new R("lastName","does not satisfy required minLength constraint: 1");if(!C.validatePattern(this.lastName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("lastName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("emailId"===t){if(void 0===this.emailId||null===this.emailId)return new R("emailId","undefined or null");if(!C.validateMaxLength(this.emailId,255))return new R("emailId","does not satisfy required maxLength constraint: 255");if(!C.validatePattern(this.emailId,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new R("emailId","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("locale"===t&&(void 0===this.locale||null===this.locale))return new R("locale","undefined or null");if("region"===t&&(void 0===this.region||null===this.region))return new R("region","undefined or null");if("password"===t&&(void 0===this.password||null===this.password))return new R("password","undefined or null");if("isForceResetPasswordEnabled"===t&&(void 0===this.isForceResetPasswordEnabled||null===this.isForceResetPasswordEnabled))return new R("isForceResetPasswordEnabled","undefined or null");if("additionalAttributes"===t){if(void 0===this.additionalAttributes||null===this.additionalAttributes)return new R("additionalAttributes","undefined or null");if(!C.validateMaxItems(this.additionalAttributes,10))return new R("additionalAttributes","does not satisfy required maxItems constraint: 10")}if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("bucketsAccessKeys"===t){if(void 0===this.bucketsAccessKeys||null===this.bucketsAccessKeys)return new R("bucketsAccessKeys","undefined or null");if(!C.validateMaxItems(this.bucketsAccessKeys,5))return new R("bucketsAccessKeys","does not satisfy required maxItems constraint: 5")}if("lastLoginTime"===t&&(void 0===this.lastLoginTime||null===this.lastLoginTime))return new R("lastLoginTime","undefined or null");if("createdTime"===t&&(void 0===this.createdTime||null===this.createdTime))return new R("createdTime","undefined or null");if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new R("lastUpdatedTime","undefined or null");if("createdBy"===t){if(void 0===this.createdBy||null===this.createdBy)return new R("createdBy","undefined or null");if(!C.validatePattern(this.createdBy,/^[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 R("createdBy","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("lastUpdatedBy"===t){if(void 0===this.lastUpdatedBy||null===this.lastUpdatedBy)return new R("lastUpdatedBy","undefined or null");if(!C.validatePattern(this.lastUpdatedBy,/^[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 R("lastUpdatedBy","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"description"!==t||void 0!==this.description&&null!==this.description?"creationType"!==t||void 0!==this.creationType&&null!==this.creationType?new R(t,"no such property exists"):new R("creationType","undefined or null"):new R("description","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Zn.constructFromObject(e,s,!0),e.hasOwnProperty("username")&&null!==e.username&&void 0!==e.username&&s.setUsername(e.username),e.hasOwnProperty("userType")&&null!==e.userType&&void 0!==e.userType&&s.setUserType(va.constructFromObject(e.userType)),e.hasOwnProperty("idpId")&&null!==e.idpId&&void 0!==e.idpId&&s.setIdpId(e.idpId),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&s.setDisplayName(e.displayName),e.hasOwnProperty("firstName")&&null!==e.firstName&&void 0!==e.firstName&&s.setFirstName(e.firstName),e.hasOwnProperty("middleInitial")&&null!==e.middleInitial&&void 0!==e.middleInitial&&s.setMiddleInitial(e.middleInitial),e.hasOwnProperty("lastName")&&null!==e.lastName&&void 0!==e.lastName&&s.setLastName(e.lastName),e.hasOwnProperty("emailId")&&null!==e.emailId&&void 0!==e.emailId&&s.setEmailId(e.emailId),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&s.setLocale(e.locale),e.hasOwnProperty("region")&&null!==e.region&&void 0!==e.region&&s.setRegion(e.region),e.hasOwnProperty("password")&&null!==e.password&&void 0!==e.password&&s.setPassword(e.password),e.hasOwnProperty("isForceResetPasswordEnabled")&&null!==e.isForceResetPasswordEnabled&&void 0!==e.isForceResetPasswordEnabled&&s.setIsForceResetPasswordEnabled(e.isForceResetPasswordEnabled),e.hasOwnProperty("additionalAttributes")&&null!==e.additionalAttributes&&void 0!==e.additionalAttributes){for(i=[],n=e.additionalAttributes,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);s.setAdditionalAttributes(i)}if(e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&s.setStatus(ya.constructFromObject(e.status)),e.hasOwnProperty("bucketsAccessKeys")&&null!==e.bucketsAccessKeys&&void 0!==e.bucketsAccessKeys){for(i=[],n=e.bucketsAccessKeys,o=0;o<n.length;o++)r=da.constructFromObject(n[o],void 0),i.push(r);s.setBucketsAccessKeys(i)}if(e.hasOwnProperty("lastLoginTime")&&null!==e.lastLoginTime&&void 0!==e.lastLoginTime&&s.setLastLoginTime(e.lastLoginTime),e.hasOwnProperty("createdTime")&&null!==e.createdTime&&void 0!==e.createdTime&&s.setCreatedTime(e.createdTime),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&s.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&s.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedBy")&&null!==e.lastUpdatedBy&&void 0!==e.lastUpdatedBy&&s.setLastUpdatedBy(e.lastUpdatedBy),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&s.setDescription(e.description),e.hasOwnProperty("creationType")&&null!==e.creationType&&void 0!==e.creationType&&s.setCreationType(Zs.constructFromObject(e.creationType)),!a)for(var u in s.$unknownFields=ma({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Oa(n.prototype,r),o&&Oa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function Fa(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}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 Ca(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 Da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach(function(t){Aa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Aa(e,t,n){return(t=Ra(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Ra(r.key),r)}}function Ra(e){var t=function(e){if("object"!=Ia(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ia(t)?t:t+""}Sa.prototype.username=void 0,Sa.prototype.userType=void 0,Sa.prototype.idpId=void 0,Sa.prototype.displayName=void 0,Sa.prototype.firstName=void 0,Sa.prototype.middleInitial=void 0,Sa.prototype.lastName=void 0,Sa.prototype.emailId=void 0,Sa.prototype.locale=void 0,Sa.prototype.region=void 0,Sa.prototype.password=void 0,Sa.prototype.isForceResetPasswordEnabled=void 0,Sa.prototype.additionalAttributes=void 0,Sa.prototype.status=void 0,Sa.prototype.bucketsAccessKeys=void 0,Sa.prototype.lastLoginTime=void 0,Sa.prototype.createdTime=void 0,Sa.prototype.lastUpdatedTime=void 0,Sa.prototype.createdBy=void 0,Sa.prototype.lastUpdatedBy=void 0,Sa.prototype.description=void 0,Sa.prototype.creationType=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Na=new WeakSet,_a=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Na),this.name=t,this.expiryHours=n,this.approvers=r,this.$objectType="security.v4.management.ApproverGroup",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExpiryHours",value:function(){return this.expiryHours}},{key:"setExpiryHours",value:function(e){this.expiryHours=e}},{key:"getApprovers",value:function(){return this.approvers}},{key:"setApprovers",value:function(e){this.approvers=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 Da(Da(Da(Da({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpiryHours()&&null!==this.getExpiryHours()?{expiryHours:this.getExpiryHours()}:{}),void 0!==this.getApprovers()&&null!==this.getApprovers()?{approvers:this.getApprovers().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 E?r=["name","expiryHours","approvers"]: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("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!C.validateMaxLength(this.name,199))return new R("name","does not satisfy required maxLength constraint: 199")}if("expiryHours"===t&&(void 0===this.expiryHours||null===this.expiryHours))return new R("expiryHours","undefined or null");if("approvers"===t){if(void 0===this.approvers||null===this.approvers)return new R("approvers","undefined or null");if(!C.validateMaxItems(this.approvers,10))return new R("approvers","does not satisfy required maxItems constraint: 10");if(!C.validateMinItems(this.approvers,3))return new R("approvers","does not satisfy required minItems constraint: 3")}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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&s.setName(t.name),t.hasOwnProperty("expiryHours")&&null!==t.expiryHours&&void 0!==t.expiryHours&&s.setExpiryHours(t.expiryHours),t.hasOwnProperty("approvers")&&null!==t.approvers&&void 0!==t.approvers){for(i=[],n=t.approvers,o=0;o<n.length;o++)r=Sa.constructFromObject(n[o],void 0),i.push(r);s.setApprovers(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Da({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&xa(t.prototype,n),r&&xa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ua(e){return Ua="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},Ua(e)}function La(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 Ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach(function(t){Va(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Va(e,t,n){return(t=Ba(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ja(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,Ba(r.key),r)}}function Ba(e){var t=function(e){if("object"!=Ua(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ua(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ua(t)?t:t+""}function Ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ka=function(){return!!e})()}function Wa(e){return Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wa(e)}function qa(e,t){return qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qa(e,t)}function Ha(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")}_a.prototype.name=void 0,_a.prototype.expiryHours=void 0,_a.prototype.approvers=void 0,_a.prototype.$reserved=void 0,_a.prototype.$objectType=void 0,_a.prototype.$unknownFields=void 0;var za=new WeakSet,Ga=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=Wa(t),function(e,t){if(t&&("object"==Ua(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,Ka()?Reflect.construct(t,n||[],Wa(e).constructor):t.apply(e,n))}(this,t),za),r.name=e,r.approverGroups=n,r.$objectType="security.v4.management.ApprovalPolicy",r.$reserved={$fv:"v4.r0"},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&&qa(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getApproverGroups",value:function(){return this.approverGroups}},{key:"setApproverGroups",value:function(e){this.approverGroups=e}},{key:"getSecuredPolicies",value:function(){return this.securedPolicies}},{key:"setSecuredPolicies",value:function(e){this.securedPolicies=e}},{key:"getLastUpdatedBy",value:function(){return this.lastUpdatedBy}},{key:"setLastUpdatedBy",value:function(e){this.lastUpdatedBy=e}},{key:"getLastUpdateTime",value:function(){return this.lastUpdateTime}},{key:"setLastUpdateTime",value:function(e){this.lastUpdateTime=e}},{key:"getIsUpdatePending",value:function(){return this.isUpdatePending}},{key:"setIsUpdatePending",value:function(e){this.isUpdatePending=e}},{key:"toJson",value:function(e){return Ma(!1===e?Ma(Ma(Ma(Ma(Ma(Ma(Ma(Ma(Ma(Ma({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getApproverGroups()&&null!==this.getApproverGroups()?{approverGroups:this.getApproverGroups().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSecuredPolicies()&&null!==this.getSecuredPolicies()?{securedPolicies:this.getSecuredPolicies().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getLastUpdatedBy()&&null!==this.getLastUpdatedBy()?{lastUpdatedBy:this.getLastUpdatedBy()}:{}),void 0!==this.getLastUpdateTime()&&null!==this.getLastUpdateTime()?{lastUpdateTime:Ha(za,this,Qa).call(this,this.getLastUpdateTime(),!1)}:{}),void 0!==this.getIsUpdatePending()&&null!==this.getIsUpdatePending()?{isUpdatePending:this.getIsUpdatePending()}:{}),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()}:{}):Ma(Ma(Ma({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getApproverGroups()&&null!==this.getApproverGroups()?{approverGroups:this.getApproverGroups().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 E?r=["name","approverGroups"]: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("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!C.validateMaxLength(this.name,199))return new R("name","does not satisfy required maxLength constraint: 199");if(!C.validateMinLength(this.name,4))return new R("name","does not satisfy required minLength constraint: 4")}if("description"===t){if(void 0===this.description||null===this.description)return new R("description","undefined or null");if(!C.validateMaxLength(this.description,499))return new R("description","does not satisfy required maxLength constraint: 499")}if("approverGroups"===t){if(void 0===this.approverGroups||null===this.approverGroups)return new R("approverGroups","undefined or null");if(!C.validateMaxItems(this.approverGroups,10))return new R("approverGroups","does not satisfy required maxItems constraint: 10");if(!C.validateMinItems(this.approverGroups,1))return new R("approverGroups","does not satisfy required minItems constraint: 1")}if("securedPolicies"===t){if(void 0===this.securedPolicies||null===this.securedPolicies)return new R("securedPolicies","undefined or null");if(!C.validateMaxItems(this.securedPolicies,100))return new R("securedPolicies","does not satisfy required maxItems constraint: 100")}return"lastUpdatedBy"!==t||void 0!==this.lastUpdatedBy&&null!==this.lastUpdatedBy?"lastUpdateTime"!==t||void 0!==this.lastUpdateTime&&null!==this.lastUpdateTime?"isUpdatePending"!==t||void 0!==this.isUpdatePending&&null!==this.isUpdatePending?new R(t,"no such property exists"):new R("isUpdatePending","undefined or null"):new R("lastUpdateTime","undefined or null"):new R("lastUpdatedBy","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Zn.constructFromObject(e,s,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&s.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&s.setDescription(e.description),e.hasOwnProperty("approverGroups")&&null!==e.approverGroups&&void 0!==e.approverGroups){for(i=[],n=e.approverGroups,o=0;o<n.length;o++)r=_a.constructFromObject(n[o],void 0),i.push(r);s.setApproverGroups(i)}if(e.hasOwnProperty("securedPolicies")&&null!==e.securedPolicies&&void 0!==e.securedPolicies){for(i=[],n=e.securedPolicies,o=0;o<n.length;o++)r=Vs.constructFromObject(n[o],void 0),i.push(r);s.setSecuredPolicies(i)}if(e.hasOwnProperty("lastUpdatedBy")&&null!==e.lastUpdatedBy&&void 0!==e.lastUpdatedBy&&s.setLastUpdatedBy(e.lastUpdatedBy),e.hasOwnProperty("lastUpdateTime")&&null!==e.lastUpdateTime&&void 0!==e.lastUpdateTime&&s.setLastUpdateTime(e.lastUpdateTime),e.hasOwnProperty("isUpdatePending")&&null!==e.isUpdatePending&&void 0!==e.isUpdatePending&&s.setIsUpdatePending(e.isUpdatePending),!a)for(var u in s.$unknownFields=Ma({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ja(n.prototype,r),o&&Ja(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function Qa(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xa(e){return Xa="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},Xa(e)}function Za(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 eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach(function(t){tu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tu(e,t,n){return(t=ru(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nu(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,ru(r.key),r)}}function ru(e){var t=function(e){if("object"!=Xa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xa(t)?t:t+""}function ou(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ou=function(){return!!e})()}function iu(e){return iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iu(e)}function su(e,t){return su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},su(e,t)}function au(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")}Ga.prototype.name=void 0,Ga.prototype.description=void 0,Ga.prototype.approverGroups=void 0,Ga.prototype.securedPolicies=void 0,Ga.prototype.lastUpdatedBy=void 0,Ga.prototype.lastUpdateTime=void 0,Ga.prototype.isUpdatePending=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var uu=new WeakSet,lu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=iu(t),function(e,t){if(t&&("object"==Xa(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||[],iu(e).constructor):t.apply(e,n))}(this,t),uu),e.$objectType="security.v4.management.GetApprovalPolicyApiResponse",e.$reserved={$fv:"v4.r0"},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&&su(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 eu(eu(eu({},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}):au(uu,this,cu).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}):au(uu,this,cu).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Xa(e.data)){case"security.v4.management.ApprovalPolicy":r.setData(Ga.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=eu({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&nu(n.prototype,r),o&&nu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function cu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ya(e,t);var n={}.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)?Ya(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Xa(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 du(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fu(e){return fu="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},fu(e)}function pu(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 yu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach(function(t){hu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hu(e,t,n){return(t=bu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vu(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,bu(r.key),r)}}function bu(e){var t=function(e){if("object"!=fu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fu(t)?t:t+""}function gu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(gu=function(){return!!e})()}function mu(e){return mu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mu(e)}function wu(e,t){return wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wu(e,t)}function Ou(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")}lu.prototype.metadata=void 0,lu.prototype.data=void 0,lu.prototype.$reserved=void 0,lu.prototype.$objectType=void 0,lu.prototype.$unknownFields=void 0;var ju=new WeakSet,ku=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=mu(t),function(e,t){if(t&&("object"==fu(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,gu()?Reflect.construct(t,n||[],mu(e).constructor):t.apply(e,n))}(this,t),ju),e.$objectType="security.v4.management.ListApprovalPoliciesApiResponse",e.$reserved={$fv:"v4.r0"},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&&wu(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 yu(yu(yu({},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}):Ou(ju,this,$u).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}):Ou(ju,this,$u).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:fu(n[0]),o=0;o<n.length;o++){if("security.v4.management.ApprovalPolicy"!==s)throw"Unknown list of type "+s+" in data";r=Ga.constructFromObject(n[o],void 0),i.push(r)}a.setData(i)}else{if("security.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:fu(e.data)))throw"Unknown datatype "+s+" in data";a.setData(mn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=yu({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&vu(n.prototype,r),o&&vu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function $u(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return du(e,t);var n={}.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)?du(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===fu(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 Pu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tu(e){return Tu="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},Tu(e)}function Eu(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 Su(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eu(Object(n),!0).forEach(function(t){Fu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fu(e,t,n){return(t=Cu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iu(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,Cu(r.key),r)}}function Cu(e){var t=function(e){if("object"!=Tu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tu(t)?t:t+""}function Du(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Du=function(){return!!e})()}function Au(e){return Au=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Au(e)}function xu(e,t){return xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xu(e,t)}function Ru(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")}ku.prototype.metadata=void 0,ku.prototype.data=void 0,ku.prototype.$reserved=void 0,ku.prototype.$objectType=void 0,ku.prototype.$unknownFields=void 0;var Nu=new WeakSet,_u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Au(t),function(e,t){if(t&&("object"==Tu(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,Du()?Reflect.construct(t,n||[],Au(e).constructor):t.apply(e,n))}(this,t),Nu),e.$objectType="security.v4.management.CreateApprovalPolicyApiResponse",e.$reserved={$fv:"v4.r0"},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&&xu(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 Su(Su(Su({},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}):Ru(Nu,this,Uu).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}):Ru(Nu,this,Uu).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Tu(e.data)){case"prism.v4.config.TaskReference":r.setData(At.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Su({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Iu(n.prototype,r),o&&Iu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Uu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Pu(e,t);var n={}.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)?Pu(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Tu(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 Lu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mu(e){return Mu="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},Mu(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 Ju(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){Bu(e,t,n[t])}):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 Bu(e,t,n){return(t=Wu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ku(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,Wu(r.key),r)}}function Wu(e){var t=function(e){if("object"!=Mu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mu(t)?t:t+""}function qu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qu=function(){return!!e})()}function Hu(e){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hu(e)}function zu(e,t){return zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zu(e,t)}function Gu(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")}_u.prototype.metadata=void 0,_u.prototype.data=void 0,_u.prototype.$reserved=void 0,_u.prototype.$objectType=void 0,_u.prototype.$unknownFields=void 0;var Qu=new WeakSet,Yu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Hu(t),function(e,t){if(t&&("object"==Mu(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,qu()?Reflect.construct(t,n||[],Hu(e).constructor):t.apply(e,n))}(this,t),Qu),e.$objectType="security.v4.management.UpdateApprovalPolicyApiResponse",e.$reserved={$fv:"v4.r0"},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&&zu(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 Ju(Ju(Ju({},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}):Gu(Qu,this,Xu).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}):Gu(Qu,this,Xu).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Mu(e.data)){case"prism.v4.config.TaskReference":r.setData(At.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ju({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ku(n.prototype,r),o&&Ku(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Xu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Lu(e,t);var n={}.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)?Lu(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Mu(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 Zu(e){return Zu="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},Zu(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 tl(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){nl(e,t,n[t])}):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 nl(e,t,n){return(t=ol(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(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,ol(r.key),r)}}function ol(e){var t=function(e){if("object"!=Zu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zu(t)?t:t+""}function il(e,t){return e.get(sl(e,t))}function sl(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")}Yu.prototype.metadata=void 0,Yu.prototype.data=void 0,Yu.prototype.$reserved=void 0,Yu.prototype.$objectType=void 0,Yu.prototype.$unknownFields=void 0;var al=new WeakMap,ul=function(){return e=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,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,al,void 0),this.apiClient=t||lt.instance,n=al,r=new Set,n.set(sl(n,this),r),il(al,this).add("authorization"),il(al,this).add("cookie"),il(al,this).add("host"),il(al,this).add("user-agent")},t=[{key:"associatePolicies",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Gs&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling associatePolicies");if(null==n)throw new Error("Invalid body when calling associatePolicies");var i={extId:e},s={};Object.keys(o).forEach(function(e){il(al,r).has(e.toLowerCase())||(s[e]=o[e])});var a=tl({},s);lt.addEtagReferenceToHeader(t,a);var u=Is;return this.apiClient.callApi("/api/security/v4.0/management/approval-policies/{extId}/$actions/associate-policies","POST",i,{},a,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"createApprovalPolicy",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof Ga&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createApprovalPolicy");var o={};Object.keys(r).forEach(function(e){il(al,n).has(e.toLowerCase())||(o[e]=r[e])});var i=tl({},o);lt.addEtagReferenceToHeader(e,i);var s=_u;return this.apiClient.callApi("/api/security/v4.0/management/approval-policies","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"getApprovalPolicyByExtId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'extId' when calling getApprovalPolicyByExtId");var o={extId:e},i=tl({},t.hasOwnProperty("$select")?{$select:t.$select}:{}),s={};Object.keys(r).forEach(function(e){il(al,n).has(e.toLowerCase())||(s[e]=r[e])});var a=tl({},s),u=lu;return this.apiClient.callApi("/api/security/v4.0/management/approval-policies/{extId}","GET",o,i,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}},{key:"listApprovalPolicies",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=tl(tl(tl({},(e=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){il(al,t).has(e.toLowerCase())||(o[e]=n[e])});var i=tl({},o),s=ku;return this.apiClient.callApi("/api/security/v4.0/management/approval-policies","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"updateApprovalPolicyByExtId",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Ga&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateApprovalPolicyByExtId");if(null==n)throw new Error("Invalid body when calling updateApprovalPolicyByExtId");var i={extId:e},s={};Object.keys(o).forEach(function(e){il(al,r).has(e.toLowerCase())||(s[e]=o[e])});var a=tl({},s);lt.addEtagReferenceToHeader(t,a);var u=Yu;return this.apiClient.callApi("/api/security/v4.0/management/approval-policies/{extId}","PUT",i,{},a,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&rl(e.prototype,t),n&&rl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function ll(e){return ll="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},ll(e)}function cl(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 dl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach(function(t){fl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fl(e,t,n){return(t=yl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pl(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,yl(r.key),r)}}function yl(e){var t=function(e){if("object"!=ll(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ll(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ll(t)?t:t+""}function hl(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 vl=new WeakSet,bl=function(){function e(t,n,r,o,i,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,vl),this.endpointUrl=t,this.keyId=n,this.tenantId=r,this.clientId=o,this.clientSecret=i,this.credentialExpiryDate=s,this.$objectType="security.v4.config.AzureAccessInformation",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEndpointUrl",value:function(){return this.endpointUrl}},{key:"setEndpointUrl",value:function(e){this.endpointUrl=e}},{key:"getKeyId",value:function(){return this.keyId}},{key:"setKeyId",value:function(e){this.keyId=e}},{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"getClientId",value:function(){return this.clientId}},{key:"setClientId",value:function(e){this.clientId=e}},{key:"getClientSecret",value:function(){return this.clientSecret}},{key:"setClientSecret",value:function(e){this.clientSecret=e}},{key:"getTruncatedClientSecret",value:function(){return this.truncatedClientSecret}},{key:"setTruncatedClientSecret",value:function(e){this.truncatedClientSecret=e}},{key:"getCredentialExpiryDate",value:function(){return this.credentialExpiryDate}},{key:"setCredentialExpiryDate",value:function(e){this.credentialExpiryDate=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 dl(dl(!1===e?dl(dl(dl(dl(dl(dl({},void 0!==this.getEndpointUrl()&&null!==this.getEndpointUrl()?{endpointUrl:this.getEndpointUrl()}:{}),void 0!==this.getKeyId()&&null!==this.getKeyId()?{keyId:this.getKeyId()}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),void 0!==this.getClientId()&&null!==this.getClientId()?{clientId:this.getClientId()}:{}),void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{}),void 0!==this.getTruncatedClientSecret()&&null!==this.getTruncatedClientSecret()?{truncatedClientSecret:this.getTruncatedClientSecret()}:{}):dl(dl(dl(dl(dl({},void 0!==this.getEndpointUrl()&&null!==this.getEndpointUrl()?{endpointUrl:this.getEndpointUrl()}:{}),void 0!==this.getKeyId()&&null!==this.getKeyId()?{keyId:this.getKeyId()}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),void 0!==this.getClientId()&&null!==this.getClientId()?{clientId:this.getClientId()}:{}),void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{}),void 0!==this.getCredentialExpiryDate()&&null!==this.getCredentialExpiryDate()?{credentialExpiryDate:hl(vl,this,gl).call(this,this.getCredentialExpiryDate(),!0)}:{}),{},{$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 E?r=["endpointUrl","keyId","tenantId","clientId","clientSecret","credentialExpiryDate"]: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("endpointUrl"===t){if(void 0===this.endpointUrl||null===this.endpointUrl)return new R("endpointUrl","undefined or null");if(!C.validateMaxLength(this.endpointUrl,1024))return new R("endpointUrl","does not satisfy required maxLength constraint: 1024");if(!C.validatePattern(this.endpointUrl,/^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new R("endpointUrl","does not satisfy required pattern: /^((http[s]?|nfs):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}if("keyId"===t){if(void 0===this.keyId||null===this.keyId)return new R("keyId","undefined or null");if(!C.validateMaxLength(this.keyId,256))return new R("keyId","does not satisfy required maxLength constraint: 256")}if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new R("tenantId","undefined or null");if(!C.validateMaxLength(this.tenantId,256))return new R("tenantId","does not satisfy required maxLength constraint: 256")}if("clientId"===t){if(void 0===this.clientId||null===this.clientId)return new R("clientId","undefined or null");if(!C.validateMaxLength(this.clientId,256))return new R("clientId","does not satisfy required maxLength constraint: 256")}if("clientSecret"===t&&(void 0===this.clientSecret||null===this.clientSecret))return new R("clientSecret","undefined or null");if("truncatedClientSecret"===t){if(void 0===this.truncatedClientSecret||null===this.truncatedClientSecret)return new R("truncatedClientSecret","undefined or null");if(!C.validateMaxLength(this.truncatedClientSecret,256))return new R("truncatedClientSecret","does not satisfy required maxLength constraint: 256");if(!C.validateMinLength(this.truncatedClientSecret,8))return new R("truncatedClientSecret","does not satisfy required minLength constraint: 8")}return"credentialExpiryDate"!==t||void 0!==this.credentialExpiryDate&&null!==this.credentialExpiryDate?"$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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("credentialExpiryDate","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("endpointUrl")&&null!==t.endpointUrl&&void 0!==t.endpointUrl&&n.setEndpointUrl(t.endpointUrl),t.hasOwnProperty("keyId")&&null!==t.keyId&&void 0!==t.keyId&&n.setKeyId(t.keyId),t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("clientId")&&null!==t.clientId&&void 0!==t.clientId&&n.setClientId(t.clientId),t.hasOwnProperty("clientSecret")&&null!==t.clientSecret&&void 0!==t.clientSecret&&n.setClientSecret(t.clientSecret),t.hasOwnProperty("truncatedClientSecret")&&null!==t.truncatedClientSecret&&void 0!==t.truncatedClientSecret&&n.setTruncatedClientSecret(t.truncatedClientSecret),t.hasOwnProperty("credentialExpiryDate")&&null!==t.credentialExpiryDate&&void 0!==t.credentialExpiryDate&&n.setCredentialExpiryDate(t.credentialExpiryDate),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=dl({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&pl(t.prototype,n),r&&pl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gl(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function ml(e){return ml="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},ml(e)}function wl(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?wl(Object(n),!0).forEach(function(t){jl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jl(e,t,n){return(t=$l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kl(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,$l(r.key),r)}}function $l(e){var t=function(e){if("object"!=ml(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ml(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ml(t)?t:t+""}function Pl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pl=function(){return!!e})()}function Tl(e){return Tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tl(e)}function El(e,t){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},El(e,t)}bl.prototype.endpointUrl=void 0,bl.prototype.keyId=void 0,bl.prototype.tenantId=void 0,bl.prototype.clientId=void 0,bl.prototype.clientSecret=void 0,bl.prototype.truncatedClientSecret=void 0,bl.prototype.credentialExpiryDate=void 0,bl.prototype.$reserved=void 0,bl.prototype.$objectType=void 0,bl.prototype.$unknownFields=void 0;var Sl=new WeakSet,Fl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Tl(t),function(e,t){if(t&&("object"==ml(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,Pl()?Reflect.construct(t,n||[],Tl(e).constructor):t.apply(e,n))}(this,t),Sl),e.$objectType="security.v4.config.KeyManagementServer",e.$reserved={$fv:"v4.r0"},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&&El(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getAccessInformation",value:function(){return this.accessInformation}},{key:"setAccessInformation",value:function(e){this.accessInformation=e}},{key:"toJson",value:function(e){return Ol(!1===e?Ol(Ol(Ol(Ol(Ol({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getAccessInformation()&&null!==this.getAccessInformation()?{accessInformation:this.getAccessInformation().toJson(!1)}:{}),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({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getAccessInformation()&&null!==this.getAccessInformation()?{accessInformation:this.getAccessInformation().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 E?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("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!C.validateMaxLength(this.name,256))return new R("name","does not satisfy required maxLength constraint: 256")}return"accessInformation"!==t||void 0!==this.accessInformation&&null!==this.accessInformation?new R(t,"no such property exists"):new R("accessInformation","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Zn.constructFromObject(e,n,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),e.hasOwnProperty("accessInformation")&&null!==e.accessInformation&&void 0!==e.accessInformation&&n.setAccessInformation(bl.constructFromObject(e.accessInformation)),!r))for(var o in n.$unknownFields=Ol({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&kl(n.prototype,r),o&&kl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function Il(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cl(e){return Cl="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},Cl(e)}function Dl(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 Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dl(Object(n),!0).forEach(function(t){xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xl(e,t,n){return(t=Nl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rl(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,Nl(r.key),r)}}function Nl(e){var t=function(e){if("object"!=Cl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cl(t)?t:t+""}function _l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_l=function(){return!!e})()}function Ul(e){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ul(e)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ll(e,t)}function Ml(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")}Fl.prototype.name=void 0,Fl.prototype.accessInformation=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Vl=new WeakSet,Jl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ul(t),function(e,t){if(t&&("object"==Cl(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,_l()?Reflect.construct(t,n||[],Ul(e).constructor):t.apply(e,n))}(this,t),Vl),e.$objectType="security.v4.config.UpdateKeyManagementServerApiResponse",e.$reserved={$fv:"v4.r0"},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&&Ll(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 Al(Al(Al({},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}):Ml(Vl,this,Bl).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}):Ml(Vl,this,Bl).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Cl(e.data)){case"prism.v4.config.TaskReference":r.setData(At.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Al({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Rl(n.prototype,r),o&&Rl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Bl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Il(e,t);var n={}.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)?Il(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Cl(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 Kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=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 ql(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?ql(Object(n),!0).forEach(function(t){zl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zl(e,t,n){return(t=Ql(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gl(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){if("object"!=Wl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wl(t)?t:t+""}function Yl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yl=function(){return!!e})()}function Xl(e){return Xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xl(e)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zl(e,t)}function ec(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.metadata=void 0,Jl.prototype.data=void 0,Jl.prototype.$reserved=void 0,Jl.prototype.$objectType=void 0,Jl.prototype.$unknownFields=void 0;var tc=new WeakSet,nc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(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,Yl()?Reflect.construct(t,n||[],Xl(e).constructor):t.apply(e,n))}(this,t),tc),e.$objectType="security.v4.config.GetKeyManagementServerApiResponse",e.$reserved={$fv:"v4.r0"},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&&Zl(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 Hl(Hl(Hl({},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}):ec(tc,this,rc).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}):ec(tc,this,rc).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Wl(e.data)){case"security.v4.config.KeyManagementServer":r.setData(Fl.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Hl({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Gl(n.prototype,r),o&&Gl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function rc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Kl(e,t);var n={}.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)?Kl(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"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 oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ic(e){return ic="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},ic(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 ac(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){uc(e,t,n[t])}):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 uc(e,t,n){return(t=cc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lc(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,cc(r.key),r)}}function cc(e){var t=function(e){if("object"!=ic(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ic(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ic(t)?t:t+""}function dc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dc=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fc(e)}function pc(e,t){return pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pc(e,t)}function yc(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")}nc.prototype.metadata=void 0,nc.prototype.data=void 0,nc.prototype.$reserved=void 0,nc.prototype.$objectType=void 0,nc.prototype.$unknownFields=void 0;var hc=new WeakSet,vc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=fc(t),function(e,t){if(t&&("object"==ic(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,dc()?Reflect.construct(t,n||[],fc(e).constructor):t.apply(e,n))}(this,t),hc),e.$objectType="security.v4.config.CreateKeyManagementServerApiResponse",e.$reserved={$fv:"v4.r0"},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&&pc(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 ac(ac(ac({},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}):yc(hc,this,bc).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}):yc(hc,this,bc).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ic(e.data)){case"prism.v4.config.TaskReference":r.setData(At.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=ac({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&lc(n.prototype,r),o&&lc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function bc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return oc(e,t);var n={}.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)?oc(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===ic(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,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mc(e){return mc="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},mc(e)}function wc(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?wc(Object(n),!0).forEach(function(t){jc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jc(e,t,n){return(t=$c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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){if("object"!=mc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mc(t)?t:t+""}function Pc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pc=function(){return!!e})()}function Tc(e){return Tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tc(e)}function Ec(e,t){return Ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ec(e,t)}function Sc(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")}vc.prototype.metadata=void 0,vc.prototype.data=void 0,vc.prototype.$reserved=void 0,vc.prototype.$objectType=void 0,vc.prototype.$unknownFields=void 0;var Fc=new WeakSet,Ic=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Tc(t),function(e,t){if(t&&("object"==mc(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,Pc()?Reflect.construct(t,n||[],Tc(e).constructor):t.apply(e,n))}(this,t),Fc),e.$objectType="security.v4.config.DeleteKeyManagementServerApiResponse",e.$reserved={$fv:"v4.r0"},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&&Ec(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 Oc(Oc(Oc({},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}):Sc(Fc,this,Cc).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}):Sc(Fc,this,Cc).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:mc(e.data)){case"prism.v4.config.TaskReference":r.setData(At.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(mn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Oc({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&kc(n.prototype,r),o&&kc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Cc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return gc(e,t);var n={}.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)?gc(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===mc(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 Dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ac(e){return Ac="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},Ac(e)}function xc(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 Rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(n),!0).forEach(function(t){Nc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nc(e,t,n){return(t=Uc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Uc(r.key),r)}}function Uc(e){var t=function(e){if("object"!=Ac(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ac(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ac(t)?t:t+""}function Lc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lc=function(){return!!e})()}function Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mc(e)}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vc(e,t)}function Jc(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")}Ic.prototype.metadata=void 0,Ic.prototype.data=void 0,Ic.prototype.$reserved=void 0,Ic.prototype.$objectType=void 0,Ic.prototype.$unknownFields=void 0;var Bc=new WeakSet,Kc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Mc(t),function(e,t){if(t&&("object"==Ac(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,Lc()?Reflect.construct(t,n||[],Mc(e).constructor):t.apply(e,n))}(this,t),Bc),e.$objectType="security.v4.config.ListKeyManagementServersApiResponse",e.$reserved={$fv:"v4.r0"},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&&Vc(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 Rc(Rc(Rc({},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}):Jc(Bc,this,Wc).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}):Jc(Bc,this,Wc).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ac(n[0]),o=0;o<n.length;o++){if("security.v4.config.KeyManagementServer"!==s)throw"Unknown list of type "+s+" in data";r=Fl.constructFromObject(n[o],void 0),i.push(r)}a.setData(i)}else{if("security.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ac(e.data)))throw"Unknown datatype "+s+" in data";a.setData(mn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Rc({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&_c(n.prototype,r),o&&_c(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Wc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Dc(e,t);var n={}.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)?Dc(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Ac(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 qc(e){return qc="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},qc(e)}function Hc(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 zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gc(e,t,n){return(t=Yc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qc(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,Yc(r.key),r)}}function Yc(e){var t=function(e){if("object"!=qc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qc(t)?t:t+""}function Xc(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")}Kc.prototype.metadata=void 0,Kc.prototype.data=void 0,Kc.prototype.$reserved=void 0,Kc.prototype.$objectType=void 0,Kc.prototype.$unknownFields=void 0;var ed=new WeakMap,td=function(){return e=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,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,ed,void 0),this.apiClient=t||lt.instance,n=ed,r=new Set,n.set(Zc(n,this),r),Xc(ed,this).add("authorization"),Xc(ed,this).add("cookie"),Xc(ed,this).add("host"),Xc(ed,this).add("user-agent")},t=[{key:"createKeyManagementServer",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof Fl&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createKeyManagementServer");var o={};Object.keys(r).forEach(function(e){Xc(ed,n).has(e.toLowerCase())||(o[e]=r[e])});var i=zc({},o);lt.addEtagReferenceToHeader(e,i);var s=vc;return this.apiClient.callApi("/api/security/v4.0/config/key-management-servers","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"deleteKeyManagementServerById",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 deleteKeyManagementServerById");var r={extId:e},o={};Object.keys(n).forEach(function(e){Xc(ed,t).has(e.toLowerCase())||(o[e]=n[e])});var i=zc({},o),s=Ic;return this.apiClient.callApi("/api/security/v4.0/config/key-management-servers/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"getKeyManagementServerById",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 getKeyManagementServerById");var r={extId:e},o={};Object.keys(n).forEach(function(e){Xc(ed,t).has(e.toLowerCase())||(o[e]=n[e])});var i=zc({},o),s=nc;return this.apiClient.callApi("/api/security/v4.0/config/key-management-servers/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listKeyManagementServers",value:function(){var e=this,t=arguments.length>0?arguments.length<=0?void 0:arguments[0]:{},n={};Object.keys(t).forEach(function(r){Xc(ed,e).has(r.toLowerCase())||(n[r]=t[r])});var r=zc({},n),o=Kc;return this.apiClient.callApi("/api/security/v4.0/config/key-management-servers","GET",{},{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}},{key:"updateKeyManagementServerById",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Fl&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateKeyManagementServerById");if(null==n)throw new Error("Invalid body when calling updateKeyManagementServerById");var i={extId:e},s={};Object.keys(o).forEach(function(e){Xc(ed,r).has(e.toLowerCase())||(s[e]=o[e])});var a=zc({},s);lt.addEtagReferenceToHeader(t,a);var u=Jl;return this.apiClient.callApi("/api/security/v4.0/config/key-management-servers/{extId}","PUT",i,{},a,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Qc(e.prototype,t),n&&Qc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),nd={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CRITICAL:"CRITICAL",HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(nd).find(function(t){return nd[t]===e});return null==t?nd.$UNKNOWN:nd[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case nd.$UNKNOWN:case nd.$REDACTED:case nd.CRITICAL:case nd.HIGH:case nd.MEDIUM:case nd.LOW:return;default:throw new Error("Invalid : must be Severity.{ $UNKNOWN|$REDACTED|CRITICAL|HIGH|MEDIUM|LOW }")}}};Object.freeze(nd);const rd=nd;var od={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",APPLICABLE:"APPLICABLE",NOT_APPLICABLE:"NOT_APPLICABLE",NEEDS_REVIEW:"NEEDS_REVIEW",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(od).find(function(t){return od[t]===e});return null==t?od.$UNKNOWN:od[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case od.$UNKNOWN:case od.$REDACTED:case od.APPLICABLE:case od.NOT_APPLICABLE:case od.NEEDS_REVIEW:return;default:throw new Error("Invalid : must be StigStatus.{ $UNKNOWN|$REDACTED|APPLICABLE|NOT_APPLICABLE|NEEDS_REVIEW }")}}};Object.freeze(od);const id=od;function sd(e){return sd="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},sd(e)}function ad(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 ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach(function(t){ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ld(e,t,n){return(t=dd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cd(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,dd(r.key),r)}}function dd(e){var t=function(e){if("object"!=sd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sd(t)?t:t+""}function fd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fd=function(){return!!e})()}function pd(e){return pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pd(e)}function yd(e,t){return yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yd(e,t)}var hd=new WeakSet,vd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=pd(t),function(e,t){if(t&&("object"==sd(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,fd()?Reflect.construct(t,n||[],pd(e).constructor):t.apply(e,n))}(this,t),hd),e.$objectType="security.v4.report.Stig",e.$reserved={$fv:"v4.r0"},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&&yd(e,t)}(t,e),n=t,r=[{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getRuleId",value:function(){return this.ruleId}},{key:"setRuleId",value:function(e){this.ruleId=e}},{key:"getStigVersion",value:function(){return this.stigVersion}},{key:"setStigVersion",value:function(e){this.stigVersion=e}},{key:"getIdentifiers",value:function(){return this.identifiers}},{key:"setIdentifiers",value:function(e){this.identifiers=e}},{key:"getAffectedClusters",value:function(){return this.affectedClusters}},{key:"setAffectedClusters",value:function(e){this.affectedClusters=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getComments",value:function(){return this.comments}},{key:"setComments",value:function(e){this.comments=e}},{key:"getFixText",value:function(){return this.fixText}},{key:"setFixText",value:function(e){this.fixText=e}},{key:"getBenchmarkId",value:function(){return this.benchmarkId}},{key:"setBenchmarkId",value:function(e){this.benchmarkId=e}},{key:"toJson",value:function(e){return ud(!1===e?ud(ud(ud(ud(ud(ud(ud(ud(ud(ud(ud(ud(ud({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getRuleId()&&null!==this.getRuleId()?{ruleId:this.getRuleId()}:{}),void 0!==this.getStigVersion()&&null!==this.getStigVersion()?{stigVersion:this.getStigVersion()}:{}),void 0!==this.getIdentifiers()&&null!==this.getIdentifiers()?{identifiers:this.getIdentifiers()}:{}),void 0!==this.getAffectedClusters()&&null!==this.getAffectedClusters()?{affectedClusters:this.getAffectedClusters()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getComments()&&null!==this.getComments()?{comments:this.getComments()}:{}),void 0!==this.getFixText()&&null!==this.getFixText()?{fixText:this.getFixText()}:{}),void 0!==this.getBenchmarkId()&&null!==this.getBenchmarkId()?{benchmarkId:this.getBenchmarkId()}:{}),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()}:{}):ud(ud({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),{},{$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 E?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("title"===t){if(void 0===this.title||null===this.title)return new R("title","undefined or null");if(!C.validateMaxLength(this.title,199))return new R("title","does not satisfy required maxLength constraint: 199")}if("ruleId"===t){if(void 0===this.ruleId||null===this.ruleId)return new R("ruleId","undefined or null");if(!C.validatePattern(this.ruleId,/^SV-\\d{6}r\\d{6}_rule$/))return new R("ruleId","does not satisfy required pattern: /^SV-\\d{6}r\\d{6}_rule$/")}if("stigVersion"===t){if(void 0===this.stigVersion||null===this.stigVersion)return new R("stigVersion","undefined or null");if(!C.validatePattern(this.stigVersion,/^RHEL-\\d{2}-\\d{6}$/))return new R("stigVersion","does not satisfy required pattern: /^RHEL-\\d{2}-\\d{6}$/")}if("identifiers"===t){if(void 0===this.identifiers||null===this.identifiers)return new R("identifiers","undefined or null");if(!C.validateMaxItems(this.identifiers,100))return new R("identifiers","does not satisfy required maxItems constraint: 100");if(!C.validateMinItems(this.identifiers,1))return new R("identifiers","does not satisfy required minItems constraint: 1")}if("affectedClusters"===t){if(void 0===this.affectedClusters||null===this.affectedClusters)return new R("affectedClusters","undefined or null");if(!C.validateMaxItems(this.affectedClusters,300))return new R("affectedClusters","does not satisfy required maxItems constraint: 300");if(!C.validateMinItems(this.affectedClusters,1))return new R("affectedClusters","does not satisfy required minItems constraint: 1")}if("severity"===t&&(void 0===this.severity||null===this.severity))return new R("severity","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("comments"===t){if(void 0===this.comments||null===this.comments)return new R("comments","undefined or null");if(!C.validateMaxLength(this.comments,499))return new R("comments","does not satisfy required maxLength constraint: 499")}if("fixText"===t){if(void 0===this.fixText||null===this.fixText)return new R("fixText","undefined or null");if(!C.validateMaxLength(this.fixText,499))return new R("fixText","does not satisfy required maxLength constraint: 499")}if("benchmarkId"===t){if(void 0===this.benchmarkId||null===this.benchmarkId)return new R("benchmarkId","undefined or null");if(!C.validatePattern(this.benchmarkId,/^RHEL_\\d+_V\\d+R\\d+$/))return new R("benchmarkId","does not satisfy required pattern: /^RHEL_\\d+_V\\d+R\\d+$/")}return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(i=i||new t,Zn.constructFromObject(e,i,!0),e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&i.setTitle(e.title),e.hasOwnProperty("ruleId")&&null!==e.ruleId&&void 0!==e.ruleId&&i.setRuleId(e.ruleId),e.hasOwnProperty("stigVersion")&&null!==e.stigVersion&&void 0!==e.stigVersion&&i.setStigVersion(e.stigVersion),e.hasOwnProperty("identifiers")&&null!==e.identifiers&&void 0!==e.identifiers){for(o=[],n=e.identifiers,r=0;r<n.length;r++)o.push(n[r]);i.setIdentifiers(o)}if(e.hasOwnProperty("affectedClusters")&&null!==e.affectedClusters&&void 0!==e.affectedClusters){for(o=[],n=e.affectedClusters,r=0;r<n.length;r++)o.push(n[r]);i.setAffectedClusters(o)}if(e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&i.setSeverity(rd.constructFromObject(e.severity)),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&i.setStatus(id.constructFromObject(e.status)),e.hasOwnProperty("comments")&&null!==e.comments&&void 0!==e.comments&&i.setComments(e.comments),e.hasOwnProperty("fixText")&&null!==e.fixText&&void 0!==e.fixText&&i.setFixText(e.fixText),e.hasOwnProperty("benchmarkId")&&null!==e.benchmarkId&&void 0!==e.benchmarkId&&i.setBenchmarkId(e.benchmarkId),!s)for(var a in i.$unknownFields=ud({},e.$unknownFields),e)Object.keys(i).includes(a)||Object.keys(i).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(i.$unknownFields[a]=e[a])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&cd(n.prototype,r),o&&cd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function bd(e){return bd="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},bd(e)}function gd(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 md(e,t,n){return(t=Od(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wd(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,Od(r.key),r)}}function Od(e){var t=function(e){if("object"!=bd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bd(t)?t:t+""}function jd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jd=function(){return!!e})()}function kd(e){return kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kd(e)}function $d(e,t){return $d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$d(e,t)}vd.prototype.title=void 0,vd.prototype.ruleId=void 0,vd.prototype.stigVersion=void 0,vd.prototype.identifiers=void 0,vd.prototype.affectedClusters=void 0,vd.prototype.severity=void 0,vd.prototype.status=void 0,vd.prototype.comments=void 0,vd.prototype.fixText=void 0,vd.prototype.benchmarkId=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Pd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=kd(t),function(e,t){if(t&&("object"==bd(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,jd()?Reflect.construct(t,n||[],kd(e).constructor):t.apply(e,n))}(this,t)).$objectType="security.v4.report.StigProjection",e.$reserved={$fv:"v4.r0"},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&&$d(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?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 new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,vd.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach(function(t){md(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&wd(n.prototype,r),o&&wd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(vd);function Td(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ed(e){return Ed="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},Ed(e)}function Sd(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 Fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach(function(t){Id(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Id(e,t,n){return(t=Dd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cd(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,Dd(r.key),r)}}function Dd(e){var t=function(e){if("object"!=Ed(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ed(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ed(t)?t:t+""}function Ad(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ad=function(){return!!e})()}function xd(e){return xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xd(e)}function Rd(e,t){return Rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rd(e,t)}function Nd(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 _d=new WeakSet,Ud=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=xd(t),function(e,t){if(t&&("object"==Ed(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,Ad()?Reflect.construct(t,n||[],xd(e).constructor):t.apply(e,n))}(this,t),_d),e.$objectType="security.v4.report.ListStigsApiResponse",e.$reserved={$fv:"v4.r0"},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&&Rd(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 Fd(Fd(Fd({},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}):Nd(_d,this,Ld).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}):Nd(_d,this,Ld).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ed(n[0]),o=0;o<n.length;o++)switch(s){case"security.v4.report.Stig":r=vd.constructFromObject(n[o],void 0),i.push(r);break;case"security.v4.report.StigProjection":r=Pd.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setData(i)}else{if("security.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ed(e.data)))throw"Unknown datatype "+s+" in data";a.setData(mn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Fd({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Cd(n.prototype,r),o&&Cd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ld(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Td(e,t);var n={}.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)?Td(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Ed(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 Md(e){return Md="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},Md(e)}function Vd(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 Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(n),!0).forEach(function(t){Bd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bd(e,t,n){return(t=Wd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kd(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,Wd(r.key),r)}}function Wd(e){var t=function(e){if("object"!=Md(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Md(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Md(t)?t:t+""}function qd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qd=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hd(e)}function zd(e,t){return zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zd(e,t)}Ud.prototype.metadata=void 0,Ud.prototype.data=void 0,Ud.prototype.$reserved=void 0,Ud.prototype.$objectType=void 0,Ud.prototype.$unknownFields=void 0;var Gd=new WeakSet,Qd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Hd(t),function(e,t){if(t&&("object"==Md(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,qd()?Reflect.construct(t,n||[],Hd(e).constructor):t.apply(e,n))}(this,t),Gd),e.$objectType="security.v4.report.StigSummary",e.$reserved={$fv:"v4.r0"},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&&zd(e,t)}(t,e),n=t,r=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getPassedCount",value:function(){return this.passedCount}},{key:"setPassedCount",value:function(e){this.passedCount=e}},{key:"getFailedCount",value:function(){return this.failedCount}},{key:"setFailedCount",value:function(e){this.failedCount=e}},{key:"getNotApplicableCount",value:function(){return this.notApplicableCount}},{key:"setNotApplicableCount",value:function(e){this.notApplicableCount=e}},{key:"toJson",value:function(e){return!1===e?Jd(Jd(Jd(Jd(Jd(Jd(Jd(Jd({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getPassedCount()&&null!==this.getPassedCount()?{passedCount:this.getPassedCount()}:{}),void 0!==this.getFailedCount()&&null!==this.getFailedCount()?{failedCount:this.getFailedCount()}:{}),void 0!==this.getNotApplicableCount()&&null!==this.getNotApplicableCount()?{notApplicableCount:this.getNotApplicableCount()}:{}),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()}:{}),{},{$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 E?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("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!C.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 R("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"passedCount"!==t||void 0!==this.passedCount&&null!==this.passedCount?"failedCount"!==t||void 0!==this.failedCount&&null!==this.failedCount?"notApplicableCount"!==t||void 0!==this.notApplicableCount&&null!==this.notApplicableCount?new R(t,"no such property exists"):new R("notApplicableCount","undefined or null"):new R("failedCount","undefined or null"):new R("passedCount","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Zn.constructFromObject(e,n,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),e.hasOwnProperty("passedCount")&&null!==e.passedCount&&void 0!==e.passedCount&&n.setPassedCount(e.passedCount),e.hasOwnProperty("failedCount")&&null!==e.failedCount&&void 0!==e.failedCount&&n.setFailedCount(e.failedCount),e.hasOwnProperty("notApplicableCount")&&null!==e.notApplicableCount&&void 0!==e.notApplicableCount&&n.setNotApplicableCount(e.notApplicableCount),!r))for(var o in n.$unknownFields=Jd({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Kd(n.prototype,r),o&&Kd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function Yd(e){return Yd="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},Yd(e)}function Xd(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 Zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xd(Object(n),!0).forEach(function(t){ef(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ef(e,t,n){return(t=nf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tf(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,nf(r.key),r)}}function nf(e){var t=function(e){if("object"!=Yd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yd(t)?t:t+""}Qd.prototype.clusterExtId=void 0,Qd.prototype.passedCount=void 0,Qd.prototype.failedCount=void 0,Qd.prototype.notApplicableCount=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var rf=new WeakSet,of=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,rf),this.$objectType="security.v4.common.Cluster",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getClusterName",value:function(){return this.clusterName}},{key:"setClusterName",value:function(e){this.clusterName=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 Zd(Zd(Zd({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{}),{},{$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 E?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("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!C.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 R("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}$/")}if("clusterName"===t){if(void 0===this.clusterName||null===this.clusterName)return new R("clusterName","undefined or null");if(!C.validateMaxLength(this.clusterName,199))return new R("clusterName","does not satisfy required maxLength constraint: 199")}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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("clusterName")&&null!==t.clusterName&&void 0!==t.clusterName&&n.setClusterName(t.clusterName),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=Zd({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&tf(t.prototype,n),r&&tf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 af(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 uf(e,t,n){return(t=cf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lf(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,cf(r.key),r)}}function cf(e){var t=function(e){if("object"!=sf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sf(t)?t:t+""}function df(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(df=function(){return!!e})()}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ff(e)}function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pf(e,t)}of.prototype.clusterExtId=void 0,of.prototype.clusterName=void 0,of.prototype.$reserved=void 0,of.prototype.$objectType=void 0,of.prototype.$unknownFields=void 0;var yf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=ff(t),function(e,t){if(t&&("object"==sf(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,df()?Reflect.construct(t,n||[],ff(e).constructor):t.apply(e,n))}(this,t)).$objectType="security.v4.common.ClusterProjection",e.$reserved={$fv:"v4.r0"},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&&pf(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?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 new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,of.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?af(Object(n),!0).forEach(function(t){uf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):af(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&lf(n.prototype,r),o&&lf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(of);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){gf(e,t,n[t])}):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,n){return(t=wf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mf(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,wf(r.key),r)}}function wf(e){var t=function(e){if("object"!=hf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hf(t)?t:t+""}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)}var $f=new WeakSet,Pf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(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))}(this,t),$f),e.$objectType="security.v4.report.StigSummaryProjection",e.$reserved={$fv:"v4.r0"},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:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return bf(!1===e?bf(bf(bf(bf(bf(bf(bf(bf({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getPassedCount()&&null!==this.getPassedCount()?{passedCount:this.getPassedCount()}:{}),void 0!==this.getFailedCount()&&null!==this.getFailedCount()?{failedCount:this.getFailedCount()}:{}),void 0!==this.getNotApplicableCount()&&null!==this.getNotApplicableCount()?{notApplicableCount:this.getNotApplicableCount()}:{}),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()}:{}):bf({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().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 E?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"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new R(t,"no such property exists"):new R("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Qd.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(yf.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=bf({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&mf(n.prototype,r),o&&mf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Qd);function Tf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ef(e){return Ef="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},Ef(e)}function Sf(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 Ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach(function(t){If(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function If(e,t,n){return(t=Df(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cf(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){if("object"!=Ef(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ef(t)?t:t+""}function Af(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Af=function(){return!!e})()}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xf(e)}function Rf(e,t){return Rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rf(e,t)}function Nf(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.clusterProjection=void 0,Qd.prototype.clusterExtId=void 0,Qd.prototype.passedCount=void 0,Qd.prototype.failedCount=void 0,Qd.prototype.notApplicableCount=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var _f=new WeakSet,Uf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=xf(t),function(e,t){if(t&&("object"==Ef(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,Af()?Reflect.construct(t,n||[],xf(e).constructor):t.apply(e,n))}(this,t),_f),e.$objectType="security.v4.report.ListStigSummariesApiResponse",e.$reserved={$fv:"v4.r0"},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&&Rf(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 Ff(Ff(Ff({},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}):Nf(_f,this,Lf).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}):Nf(_f,this,Lf).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 E?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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ef(n[0]),o=0;o<n.length;o++)switch(s){case"security.v4.report.StigSummary":r=Qd.constructFromObject(n[o],void 0),i.push(r);break;case"security.v4.report.StigSummaryProjection":r=Pf.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setData(i)}else{if("security.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ef(e.data)))throw"Unknown datatype "+s+" in data";a.setData(mn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Ff({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Cf(n.prototype,r),o&&Cf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Lf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=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}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Tf(e,t);var n={}.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)?Tf(e,t):void 0}}(n,r)||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.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]})):"object"===Ef(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 Mf(e){return Mf="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},Mf(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 Jf(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){Bf(e,t,n[t])}):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 Bf(e,t,n){return(t=Wf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kf(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,Wf(r.key),r)}}function Wf(e){var t=function(e){if("object"!=Mf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mf(t)?t:t+""}function qf(e,t){return e.get(Hf(e,t))}function Hf(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")}Uf.prototype.metadata=void 0,Uf.prototype.data=void 0,Uf.prototype.$reserved=void 0,Uf.prototype.$objectType=void 0,Uf.prototype.$unknownFields=void 0;var zf=new WeakMap,Gf=function(){return e=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,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,zf,void 0),this.apiClient=t||lt.instance,n=zf,r=new Set,n.set(Hf(n,this),r),qf(zf,this).add("authorization"),qf(zf,this).add("cookie"),qf(zf,this).add("host"),qf(zf,this).add("user-agent")},t=[{key:"listStigSummaries",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Jf(Jf(Jf(Jf(Jf(Jf({},(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("$expand")?{$expand:e.$expand}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach(function(e){qf(zf,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Jf({},o),s=Uf;return this.apiClient.callApi("/api/security/v4.0/report/stig-summaries","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listStigs",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Jf(Jf(Jf(Jf(Jf({},(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){qf(zf,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Jf({},o),s=Ud;return this.apiClient.callApi("/api/security/v4.0/report/stigs","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Kf(e.prototype,t),n&&Kf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Qf={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DAY:"DAY",WEEK:"WEEK",MONTH:"MONTH",QUARTER:"QUARTER",YEAR:"YEAR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Qf).find(function(t){return Qf[t]===e});return null==t?Qf.$UNKNOWN:Qf[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Qf.$UNKNOWN:case Qf.$REDACTED:case Qf.DAY:case Qf.WEEK:case Qf.MONTH:case Qf.QUARTER:case Qf.YEAR:return;default:throw new Error("Invalid : must be Timescale.{ $UNKNOWN|$REDACTED|DAY|WEEK|MONTH|QUARTER|YEAR }")}}};Object.freeze(Qf);const Yf=Qf;function Xf(e){return Xf="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},Xf(e)}function Zf(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 ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zf(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tp(e,t,n){return(t=rp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function np(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,rp(r.key),r)}}function rp(e){var t=function(e){if("object"!=Xf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xf(t)?t:t+""}function op(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 ip=new WeakSet,sp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ip),this.$objectType="security.v4.config.ExternalSshAccessConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIsSshEnabled",value:function(){return this.isSshEnabled}},{key:"setIsSshEnabled",value:function(e){this.isSshEnabled=e}},{key:"getSshExpiryTime",value:function(){return this.sshExpiryTime}},{key:"setSshExpiryTime",value:function(e){this.sshExpiryTime=e}},{key:"getSshlastEnabledTime",value:function(){return this.sshlastEnabledTime}},{key:"setSshlastEnabledTime",value:function(e){this.sshlastEnabledTime=e}},{key:"getSshEnableDurationHours",value:function(){return this.sshEnableDurationHours}},{key:"setSshEnableDurationHours",value:function(e){this.sshEnableDurationHours=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 ep(ep(!1===e?ep(ep(ep({},void 0!==this.getIsSshEnabled()&&null!==this.getIsSshEnabled()?{isSshEnabled:this.getIsSshEnabled()}:{}),void 0!==this.getSshExpiryTime()&&null!==this.getSshExpiryTime()?{sshExpiryTime:op(ip,this,ap).call(this,this.getSshExpiryTime(),!1)}:{}),void 0!==this.getSshlastEnabledTime()&&null!==this.getSshlastEnabledTime()?{sshlastEnabledTime:op(ip,this,ap).call(this,this.getSshlastEnabledTime(),!1)}:{}):ep({},void 0!==this.getIsSshEnabled()&&null!==this.getIsSshEnabled()?{isSshEnabled:this.getIsSshEnabled()}:{}),void 0!==this.getSshEnableDurationHours()&&null!==this.getSshEnableDurationHours()?{sshEnableDurationHours:this.getSshEnableDurationHours()}:{}),{},{$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 E?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("isSshEnabled"===t&&(void 0===this.isSshEnabled||null===this.isSshEnabled))return new R("isSshEnabled","undefined or null");if("sshExpiryTime"===t&&(void 0===this.sshExpiryTime||null===this.sshExpiryTime))return new R("sshExpiryTime","undefined or null");if("sshlastEnabledTime"===t&&(void 0===this.sshlastEnabledTime||null===this.sshlastEnabledTime))return new R("sshlastEnabledTime","undefined or null");if("sshEnableDurationHours"===t){if(void 0===this.sshEnableDurationHours||null===this.sshEnableDurationHours)return new R("sshEnableDurationHours","undefined or null");if(!C.validateMaximum(this.sshEnableDurationHours,72))return new R("sshEnableDurationHours","does not satisfy required maximum constraint: 72");if(!C.validateMinimum(this.sshEnableDurationHours,1))return new R("sshEnableDurationHours","does not satisfy required minimum constraint: 1")}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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("isSshEnabled")&&null!==t.isSshEnabled&&void 0!==t.isSshEnabled&&n.setIsSshEnabled(t.isSshEnabled),t.hasOwnProperty("sshExpiryTime")&&null!==t.sshExpiryTime&&void 0!==t.sshExpiryTime&&n.setSshExpiryTime(t.sshExpiryTime),t.hasOwnProperty("sshlastEnabledTime")&&null!==t.sshlastEnabledTime&&void 0!==t.sshlastEnabledTime&&n.setSshlastEnabledTime(t.sshlastEnabledTime),t.hasOwnProperty("sshEnableDurationHours")&&null!==t.sshEnableDurationHours&&void 0!==t.sshEnableDurationHours&&n.setSshEnableDurationHours(t.sshEnableDurationHours),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=ep({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&np(t.prototype,n),r&&np(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ap(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}sp.prototype.isSshEnabled=void 0,sp.prototype.sshExpiryTime=void 0,sp.prototype.sshlastEnabledTime=void 0,sp.prototype.sshEnableDurationHours=1,sp.prototype.$reserved=void 0,sp.prototype.$objectType=void 0,sp.prototype.$unknownFields=void 0;var up={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DEFAULT:"DEFAULT",SECURE:"SECURE",NOPASSWD:"NOPASSWD",MULTIPLE_ISSUES:"MULTIPLE_ISSUES",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(up).find(function(t){return up[t]===e});return null==t?up.$UNKNOWN:up[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case up.$UNKNOWN:case up.$REDACTED:case up.DEFAULT:case up.SECURE:case up.NOPASSWD:case up.MULTIPLE_ISSUES:return;default:throw new Error("Invalid : must be PasswordStatus.{ $UNKNOWN|$REDACTED|DEFAULT|SECURE|NOPASSWD|MULTIPLE_ISSUES }")}}};Object.freeze(up);const lp=up;var cp={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VERIFIED:"VERIFIED",NOT_VERIFIED:"NOT_VERIFIED",ACCOUNT_LOCKED:"ACCOUNT_LOCKED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(cp).find(function(t){return cp[t]===e});return null==t?cp.$UNKNOWN:cp[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case cp.$UNKNOWN:case cp.$REDACTED:case cp.VERIFIED:case cp.NOT_VERIFIED:case cp.ACCOUNT_LOCKED:return;default:throw new Error("Invalid : must be PasswordVerificationStatus.{ $UNKNOWN|$REDACTED|VERIFIED|NOT_VERIFIED|ACCOUNT_LOCKED }")}}};Object.freeze(cp);const dp=cp;var fp={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HOURLY:"HOURLY",DAILY:"DAILY",WEEKLY:"WEEKLY",MONTHLY:"MONTHLY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fp).find(function(t){return fp[t]===e});return null==t?fp.$UNKNOWN:fp[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fp.$UNKNOWN:case fp.$REDACTED:case fp.HOURLY:case fp.DAILY:case fp.WEEKLY:case fp.MONTHLY:return;default:throw new Error("Invalid : must be ScheduleType.{ $UNKNOWN|$REDACTED|HOURLY|DAILY|WEEKLY|MONTHLY }")}}};Object.freeze(fp);const pp=fp;function yp(e){return yp="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},yp(e)}function hp(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 vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach(function(t){bp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bp(e,t,n){return(t=mp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gp(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,mp(r.key),r)}}function mp(e){var t=function(e){if("object"!=yp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yp(t)?t:t+""}function wp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wp=function(){return!!e})()}function Op(e){return Op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Op(e)}function jp(e,t){return jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jp(e,t)}var kp=new WeakSet,$p=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Op(t),function(e,t){if(t&&("object"==yp(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,wp()?Reflect.construct(t,n||[],Op(e).constructor):t.apply(e,n))}(this,t),kp),e.$objectType="security.v4.config.SecurityConfig",e.$reserved={$fv:"v4.r0"},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&&jp(e,t)}(t,e),n=t,r=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getIsHighStrengthPasswordEnabled",value:function(){return this.isHighStrengthPasswordEnabled}},{key:"setIsHighStrengthPasswordEnabled",value:function(e){this.isHighStrengthPasswordEnabled=e}},{key:"getIsAideEnabled",value:function(){return this.isAideEnabled}},{key:"setIsAideEnabled",value:function(e){this.isAideEnabled=e}},{key:"getIsSecureBootEnabled",value:function(){return this.isSecureBootEnabled}},{key:"setIsSecureBootEnabled",value:function(e){this.isSecureBootEnabled=e}},{key:"getIsClusterLockdownEnabled",value:function(){return this.isClusterLockdownEnabled}},{key:"setIsClusterLockdownEnabled",value:function(e){this.isClusterLockdownEnabled=e}},{key:"getIsLogForwardingEnabled",value:function(){return this.isLogForwardingEnabled}},{key:"setIsLogForwardingEnabled",value:function(e){this.isLogForwardingEnabled=e}},{key:"getClusterScmaSchedule",value:function(){return this.clusterScmaSchedule}},{key:"setClusterScmaSchedule",value:function(e){this.clusterScmaSchedule=e}},{key:"getAhvScmaSchedule",value:function(){return this.ahvScmaSchedule}},{key:"setAhvScmaSchedule",value:function(e){this.ahvScmaSchedule=e}},{key:"getIsAhvDefenseConsentBannerEnabled",value:function(){return this.isAhvDefenseConsentBannerEnabled}},{key:"setIsAhvDefenseConsentBannerEnabled",value:function(e){this.isAhvDefenseConsentBannerEnabled=e}},{key:"getIsClusterDefenseConsentBannerEnabled",value:function(){return this.isClusterDefenseConsentBannerEnabled}},{key:"setIsClusterDefenseConsentBannerEnabled",value:function(e){this.isClusterDefenseConsentBannerEnabled=e}},{key:"toJson",value:function(e){return vp(!1===e?vp(vp(vp(vp(vp(vp(vp(vp(vp(vp(vp(vp(vp({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{}),void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{}),void 0!==this.getIsSecureBootEnabled()&&null!==this.getIsSecureBootEnabled()?{isSecureBootEnabled:this.getIsSecureBootEnabled()}:{}),void 0!==this.getIsClusterLockdownEnabled()&&null!==this.getIsClusterLockdownEnabled()?{isClusterLockdownEnabled:this.getIsClusterLockdownEnabled()}:{}),void 0!==this.getIsLogForwardingEnabled()&&null!==this.getIsLogForwardingEnabled()?{isLogForwardingEnabled:this.getIsLogForwardingEnabled()}:{}),void 0!==this.getClusterScmaSchedule()&&null!==this.getClusterScmaSchedule()?{clusterScmaSchedule:this.getClusterScmaSchedule()}:{}),void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{}),void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsClusterDefenseConsentBannerEnabled()&&null!==this.getIsClusterDefenseConsentBannerEnabled()?{isClusterDefenseConsentBannerEnabled:this.getIsClusterDefenseConsentBannerEnabled()}:{}),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()}:{}):vp(vp(vp(vp(vp(vp({},void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{}),void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{}),void 0!==this.getClusterScmaSchedule()&&null!==this.getClusterScmaSchedule()?{clusterScmaSchedule:this.getClusterScmaSchedule()}:{}),void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{}),void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsClusterDefenseConsentBannerEnabled()&&null!==this.getIsClusterDefenseConsentBannerEnabled()?{isClusterDefenseConsentBannerEnabled:this.getIsClusterDefenseConsentBannerEnabled()}:{}),{},{$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 E?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("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!C.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 R("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"isHighStrengthPasswordEnabled"!==t||void 0!==this.isHighStrengthPasswordEnabled&&null!==this.isHighStrengthPasswordEnabled?"isAideEnabled"!==t||void 0!==this.isAideEnabled&&null!==this.isAideEnabled?"isSecureBootEnabled"!==t||void 0!==this.isSecureBootEnabled&&null!==this.isSecureBootEnabled?"isClusterLockdownEnabled"!==t||void 0!==this.isClusterLockdownEnabled&&null!==this.isClusterLockdownEnabled?"isLogForwardingEnabled"!==t||void 0!==this.isLogForwardingEnabled&&null!==this.isLogForwardingEnabled?"clusterScmaSchedule"!==t||void 0!==this.clusterScmaSchedule&&null!==this.clusterScmaSchedule?"ahvScmaSchedule"!==t||void 0!==this.ahvScmaSchedule&&null!==this.ahvScmaSchedule?"isAhvDefenseConsentBannerEnabled"!==t||void 0!==this.isAhvDefenseConsentBannerEnabled&&null!==this.isAhvDefenseConsentBannerEnabled?"isClusterDefenseConsentBannerEnabled"!==t||void 0!==this.isClusterDefenseConsentBannerEnabled&&null!==this.isClusterDefenseConsentBannerEnabled?new R(t,"no such property exists"):new R("isClusterDefenseConsentBannerEnabled","undefined or null"):new R("isAhvDefenseConsentBannerEnabled","undefined or null"):new R("ahvScmaSchedule","undefined or null"):new R("clusterScmaSchedule","undefined or null"):new R("isLogForwardingEnabled","undefined or null"):new R("isClusterLockdownEnabled","undefined or null"):new R("isSecureBootEnabled","undefined or null"):new R("isAideEnabled","undefined or null"):new R("isHighStrengthPasswordEnabled","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Zn.constructFromObject(e,n,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),e.hasOwnProperty("isHighStrengthPasswordEnabled")&&null!==e.isHighStrengthPasswordEnabled&&void 0!==e.isHighStrengthPasswordEnabled&&n.setIsHighStrengthPasswordEnabled(e.isHighStrengthPasswordEnabled),e.hasOwnProperty("isAideEnabled")&&null!==e.isAideEnabled&&void 0!==e.isAideEnabled&&n.setIsAideEnabled(e.isAideEnabled),e.hasOwnProperty("isSecureBootEnabled")&&null!==e.isSecureBootEnabled&&void 0!==e.isSecureBootEnabled&&n.setIsSecureBootEnabled(e.isSecureBootEnabled),e.hasOwnProperty("isClusterLockdownEnabled")&&null!==e.isClusterLockdownEnabled&&void 0!==e.isClusterLockdownEnabled&&n.setIsClusterLockdownEnabled(e.isClusterLockdownEnabled),e.hasOwnProperty("isLogForwardingEnabled")&&null!==e.isLogForwardingEnabled&&void 0!==e.isLogForwardingEnabled&&n.setIsLogForwardingEnabled(e.isLogForwardingEnabled),e.hasOwnProperty("clusterScmaSchedule")&&null!==e.clusterScmaSchedule&&void 0!==e.clusterScmaSchedule&&n.setClusterScmaSchedule(pp.constructFromObject(e.clusterScmaSchedule)),e.hasOwnProperty("ahvScmaSchedule")&&null!==e.ahvScmaSchedule&&void 0!==e.ahvScmaSchedule&&n.setAhvScmaSchedule(pp.constructFromObject(e.ahvScmaSchedule)),e.hasOwnProperty("isAhvDefenseConsentBannerEnabled")&&null!==e.isAhvDefenseConsentBannerEnabled&&void 0!==e.isAhvDefenseConsentBannerEnabled&&n.setIsAhvDefenseConsentBannerEnabled(e.isAhvDefenseConsentBannerEnabled),e.hasOwnProperty("isClusterDefenseConsentBannerEnabled")&&null!==e.isClusterDefenseConsentBannerEnabled&&void 0!==e.isClusterDefenseConsentBannerEnabled&&n.setIsClusterDefenseConsentBannerEnabled(e.isClusterDefenseConsentBannerEnabled),!r))for(var o in n.$unknownFields=vp({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&gp(n.prototype,r),o&&gp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function Pp(e){return Pp="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},Pp(e)}function Tp(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 Ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tp(Object(n),!0).forEach(function(t){Sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sp(e,t,n){return(t=Ip(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fp(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,Ip(r.key),r)}}function Ip(e){var t=function(e){if("object"!=Pp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pp(t)?t:t+""}function Cp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cp=function(){return!!e})()}function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dp(e)}function Ap(e,t){return Ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ap(e,t)}$p.prototype.clusterExtId=void 0,$p.prototype.isHighStrengthPasswordEnabled=!1,$p.prototype.isAideEnabled=!1,$p.prototype.isSecureBootEnabled=!1,$p.prototype.isClusterLockdownEnabled=!1,$p.prototype.isLogForwardingEnabled=!1,$p.prototype.clusterScmaSchedule=void 0,$p.prototype.ahvScmaSchedule=void 0,$p.prototype.isAhvDefenseConsentBannerEnabled=!1,$p.prototype.isClusterDefenseConsentBannerEnabled=!1,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var xp=new WeakSet,Rp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Dp(t),function(e,t){if(t&&("object"==Pp(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,Cp()?Reflect.construct(t,n||[],Dp(e).constructor):t.apply(e,n))}(this,t),xp),e.$objectType="security.v4.config.SecurityConfigProjection",e.$reserved={$fv:"v4.r0"},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&&Ap(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return Ep(!1===e?Ep(Ep(Ep(Ep(Ep(Ep(Ep(Ep(Ep(Ep(Ep(Ep(Ep(Ep({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{}),void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{}),void 0!==this.getIsSecureBootEnabled()&&null!==this.getIsSecureBootEnabled()?{isSecureBootEnabled:this.getIsSecureBootEnabled()}:{}),void 0!==this.getIsClusterLockdownEnabled()&&null!==this.getIsClusterLockdownEnabled()?{isClusterLockdownEnabled:this.getIsClusterLockdownEnabled()}:{}),void 0!==this.getIsLogForwardingEnabled()&&null!==this.getIsLogForwardingEnabled()?{isLogForwardingEnabled:this.getIsLogForwardingEnabled()}:{}),void 0!==this.getClusterScmaSchedule()&&null!==this.getClusterScmaSchedule()?{clusterScmaSchedule:this.getClusterScmaSchedule()}:{}),void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{}),void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsClusterDefenseConsentBannerEnabled()&&null!==this.getIsClusterDefenseConsentBannerEnabled()?{isClusterDefenseConsentBannerEnabled:this.getIsClusterDefenseConsentBannerEnabled()}:{}),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()}:{}):Ep(Ep(Ep(Ep(Ep(Ep(Ep({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{}),void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{}),void 0!==this.getClusterScmaSchedule()&&null!==this.getClusterScmaSchedule()?{clusterScmaSchedule:this.getClusterScmaSchedule()}:{}),void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{}),void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsClusterDefenseConsentBannerEnabled()&&null!==this.getIsClusterDefenseConsentBannerEnabled()?{isClusterDefenseConsentBannerEnabled:this.getIsClusterDefenseConsentBannerEnabled()}:{}),{},{$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 E?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"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new R(t,"no such property exists"):new R("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,$p.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(yf.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=Ep({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Fp(n.prototype,r),o&&Fp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}($p);function Np(e){return Np="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},Np(e)}function _p(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 Up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_p(Object(n),!0).forEach(function(t){Lp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lp(e,t,n){return(t=Vp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mp(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,Vp(r.key),r)}}function Vp(e){var t=function(e){if("object"!=Np(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Np(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Np(t)?t:t+""}function Jp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jp=function(){return!!e})()}function Bp(e){return Bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bp(e)}function Kp(e,t){return Kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kp(e,t)}Rp.prototype.clusterProjection=void 0,$p.prototype.clusterExtId=void 0,$p.prototype.isHighStrengthPasswordEnabled=!1,$p.prototype.isAideEnabled=!1,$p.prototype.isSecureBootEnabled=!1,$p.prototype.isClusterLockdownEnabled=!1,$p.prototype.isLogForwardingEnabled=!1,$p.prototype.clusterScmaSchedule=void 0,$p.prototype.ahvScmaSchedule=void 0,$p.prototype.isAhvDefenseConsentBannerEnabled=!1,$p.prototype.isClusterDefenseConsentBannerEnabled=!1,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Wp=new WeakSet,qp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Bp(t),function(e,t){if(t&&("object"==Np(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,Jp()?Reflect.construct(t,n||[],Bp(e).constructor):t.apply(e,n))}(this,t),Wp),e.$objectType="security.v4.config.SecurityConfigVisibilitySetting",e.$reserved={$fv:"v4.r0"},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&&Kp(e,t)}(t,e),n=t,r=[{key:"getIsHighStrengthPasswordVisible",value:function(){return this.isHighStrengthPasswordVisible}},{key:"setIsHighStrengthPasswordVisible",value:function(e){this.isHighStrengthPasswordVisible=e}},{key:"getIsAideVisible",value:function(){return this.isAideVisible}},{key:"setIsAideVisible",value:function(e){this.isAideVisible=e}},{key:"getIsScmaVisible",value:function(){return this.isScmaVisible}},{key:"setIsScmaVisible",value:function(e){this.isScmaVisible=e}},{key:"getIsSecureBootVisible",value:function(){return this.isSecureBootVisible}},{key:"setIsSecureBootVisible",value:function(e){this.isSecureBootVisible=e}},{key:"getIsNetworkSegmentationVisible",value:function(){return this.isNetworkSegmentationVisible}},{key:"setIsNetworkSegmentationVisible",value:function(e){this.isNetworkSegmentationVisible=e}},{key:"getIsClusterLockdownVisible",value:function(){return this.isClusterLockdownVisible}},{key:"setIsClusterLockdownVisible",value:function(e){this.isClusterLockdownVisible=e}},{key:"getIsLogForwardingVisible",value:function(){return this.isLogForwardingVisible}},{key:"setIsLogForwardingVisible",value:function(e){this.isLogForwardingVisible=e}},{key:"getIsDefenseConsentBannerVisible",value:function(){return this.isDefenseConsentBannerVisible}},{key:"setIsDefenseConsentBannerVisible",value:function(e){this.isDefenseConsentBannerVisible=e}},{key:"toJson",value:function(e){return Up(!1===e?Up(Up(Up(Up(Up(Up(Up(Up(Up(Up(Up({},void 0!==this.getIsHighStrengthPasswordVisible()&&null!==this.getIsHighStrengthPasswordVisible()?{isHighStrengthPasswordVisible:this.getIsHighStrengthPasswordVisible()}:{}),void 0!==this.getIsAideVisible()&&null!==this.getIsAideVisible()?{isAideVisible:this.getIsAideVisible()}:{}),void 0!==this.getIsScmaVisible()&&null!==this.getIsScmaVisible()?{isScmaVisible:this.getIsScmaVisible()}:{}),void 0!==this.getIsSecureBootVisible()&&null!==this.getIsSecureBootVisible()?{isSecureBootVisible:this.getIsSecureBootVisible()}:{}),void 0!==this.getIsNetworkSegmentationVisible()&&null!==this.getIsNetworkSegmentationVisible()?{isNetworkSegmentationVisible:this.getIsNetworkSegmentationVisible()}:{}),void 0!==this.getIsClusterLockdownVisible()&&null!==this.getIsClusterLockdownVisible()?{isClusterLockdownVisible:this.getIsClusterLockdownVisible()}:{}),void 0!==this.getIsLogForwardingVisible()&&null!==this.getIsLogForwardingVisible()?{isLogForwardingVisible:this.getIsLogForwardingVisible()}:{}),void 0!==this.getIsDefenseConsentBannerVisible()&&null!==this.getIsDefenseConsentBannerVisible()?{isDefenseConsentBannerVisible:this.getIsDefenseConsentBannerVisible()}:{}),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()}:{}):Up(Up(Up(Up(Up(Up(Up(Up({},void 0!==this.getIsHighStrengthPasswordVisible()&&null!==this.getIsHighStrengthPasswordVisible()?{isHighStrengthPasswordVisible:this.getIsHighStrengthPasswordVisible()}:{}),void 0!==this.getIsAideVisible()&&null!==this.getIsAideVisible()?{isAideVisible:this.getIsAideVisible()}:{}),void 0!==this.getIsScmaVisible()&&null!==this.getIsScmaVisible()?{isScmaVisible:this.getIsScmaVisible()}:{}),void 0!==this.getIsSecureBootVisible()&&null!==this.getIsSecureBootVisible()?{isSecureBootVisible:this.getIsSecureBootVisible()}:{}),void 0!==this.getIsNetworkSegmentationVisible()&&null!==this.getIsNetworkSegmentationVisible()?{isNetworkSegmentationVisible:this.getIsNetworkSegmentationVisible()}:{}),void 0!==this.getIsClusterLockdownVisible()&&null!==this.getIsClusterLockdownVisible()?{isClusterLockdownVisible:this.getIsClusterLockdownVisible()}:{}),void 0!==this.getIsLogForwardingVisible()&&null!==this.getIsLogForwardingVisible()?{isLogForwardingVisible:this.getIsLogForwardingVisible()}:{}),void 0!==this.getIsDefenseConsentBannerVisible()&&null!==this.getIsDefenseConsentBannerVisible()?{isDefenseConsentBannerVisible:this.getIsDefenseConsentBannerVisible()}:{}),{},{$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 E?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"isHighStrengthPasswordVisible"!==t||void 0!==this.isHighStrengthPasswordVisible&&null!==this.isHighStrengthPasswordVisible?"isAideVisible"!==t||void 0!==this.isAideVisible&&null!==this.isAideVisible?"isScmaVisible"!==t||void 0!==this.isScmaVisible&&null!==this.isScmaVisible?"isSecureBootVisible"!==t||void 0!==this.isSecureBootVisible&&null!==this.isSecureBootVisible?"isNetworkSegmentationVisible"!==t||void 0!==this.isNetworkSegmentationVisible&&null!==this.isNetworkSegmentationVisible?"isClusterLockdownVisible"!==t||void 0!==this.isClusterLockdownVisible&&null!==this.isClusterLockdownVisible?"isLogForwardingVisible"!==t||void 0!==this.isLogForwardingVisible&&null!==this.isLogForwardingVisible?"isDefenseConsentBannerVisible"!==t||void 0!==this.isDefenseConsentBannerVisible&&null!==this.isDefenseConsentBannerVisible?new R(t,"no such property exists"):new R("isDefenseConsentBannerVisible","undefined or null"):new R("isLogForwardingVisible","undefined or null"):new R("isClusterLockdownVisible","undefined or null"):new R("isNetworkSegmentationVisible","undefined or null"):new R("isSecureBootVisible","undefined or null"):new R("isScmaVisible","undefined or null"):new R("isAideVisible","undefined or null"):new R("isHighStrengthPasswordVisible","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Zn.constructFromObject(e,n,!0),e.hasOwnProperty("isHighStrengthPasswordVisible")&&null!==e.isHighStrengthPasswordVisible&&void 0!==e.isHighStrengthPasswordVisible&&n.setIsHighStrengthPasswordVisible(e.isHighStrengthPasswordVisible),e.hasOwnProperty("isAideVisible")&&null!==e.isAideVisible&&void 0!==e.isAideVisible&&n.setIsAideVisible(e.isAideVisible),e.hasOwnProperty("isScmaVisible")&&null!==e.isScmaVisible&&void 0!==e.isScmaVisible&&n.setIsScmaVisible(e.isScmaVisible),e.hasOwnProperty("isSecureBootVisible")&&null!==e.isSecureBootVisible&&void 0!==e.isSecureBootVisible&&n.setIsSecureBootVisible(e.isSecureBootVisible),e.hasOwnProperty("isNetworkSegmentationVisible")&&null!==e.isNetworkSegmentationVisible&&void 0!==e.isNetworkSegmentationVisible&&n.setIsNetworkSegmentationVisible(e.isNetworkSegmentationVisible),e.hasOwnProperty("isClusterLockdownVisible")&&null!==e.isClusterLockdownVisible&&void 0!==e.isClusterLockdownVisible&&n.setIsClusterLockdownVisible(e.isClusterLockdownVisible),e.hasOwnProperty("isLogForwardingVisible")&&null!==e.isLogForwardingVisible&&void 0!==e.isLogForwardingVisible&&n.setIsLogForwardingVisible(e.isLogForwardingVisible),e.hasOwnProperty("isDefenseConsentBannerVisible")&&null!==e.isDefenseConsentBannerVisible&&void 0!==e.isDefenseConsentBannerVisible&&n.setIsDefenseConsentBannerVisible(e.isDefenseConsentBannerVisible),!r))for(var o in n.$unknownFields=Up({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Mp(n.prototype,r),o&&Mp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function Hp(e){return Hp="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},Hp(e)}function zp(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 Gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(n),!0).forEach(function(t){Qp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qp(e,t,n){return(t=Xp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yp(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,Xp(r.key),r)}}function Xp(e){var t=function(e){if("object"!=Hp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hp(t)?t:t+""}function Zp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zp=function(){return!!e})()}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ey(e)}function ty(e,t){return ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ty(e,t)}qp.prototype.isHighStrengthPasswordVisible=void 0,qp.prototype.isAideVisible=void 0,qp.prototype.isScmaVisible=void 0,qp.prototype.isSecureBootVisible=void 0,qp.prototype.isNetworkSegmentationVisible=void 0,qp.prototype.isClusterLockdownVisible=void 0,qp.prototype.isLogForwardingVisible=void 0,qp.prototype.isDefenseConsentBannerVisible=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var ny=new WeakSet,ry=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ey(t),function(e,t){if(t&&("object"==Hp(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,Zp()?Reflect.construct(t,n||[],ey(e).constructor):t.apply(e,n))}(this,t),ny),e.$objectType="security.v4.config.VerifyPassword",e.$reserved={$fv:"v4.r0"},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&&ty(e,t)}(t,e),n=t,r=[{key:"getVerificationStatus",value:function(){return this.verificationStatus}},{key:"setVerificationStatus",value:function(e){this.verificationStatus=e}},{key:"toJson",value:function(e){return Gp(!1===e?Gp(Gp(Gp(Gp({},void 0!==this.getVerificationStatus()&&null!==this.getVerificationStatus()?{verificationStatus:this.getVerificationStatus()}:{}),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()}:{}):Gp({},void 0!==this.getVerificationStatus()&&null!==this.getVerificationStatus()?{verificationStatus:this.getVerificationStatus()}:{}),{},{$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 E?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"verificationStatus"!==t||void 0!==this.verificationStatus&&null!==this.verificationStatus?new R(t,"no such property exists"):new R("verificationStatus","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Zn.constructFromObject(e,n,!0),e.hasOwnProperty("verificationStatus")&&null!==e.verificationStatus&&void 0!==e.verificationStatus&&n.setVerificationStatus(dp.constructFromObject(e.verificationStatus)),!r))for(var o in n.$unknownFields=Gp({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Yp(n.prototype,r),o&&Yp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function oy(e){return oy="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},oy(e)}function iy(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 sy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iy(Object(n),!0).forEach(function(t){ay(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ay(e,t,n){return(t=ly(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uy(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,ly(r.key),r)}}function ly(e){var t=function(e){if("object"!=oy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oy(t)?t:t+""}ry.prototype.verificationStatus=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var cy=new WeakSet,dy=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,cy),this.currentPassword=t,this.$objectType="security.v4.config.VerifyPasswordSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCurrentPassword",value:function(){return this.currentPassword}},{key:"setCurrentPassword",value:function(e){this.currentPassword=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 sy(sy({},void 0!==this.getCurrentPassword()&&null!==this.getCurrentPassword()?{currentPassword:this.getCurrentPassword()}:{}),{},{$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 E?r=["currentPassword"]: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"currentPassword"!==t||void 0!==this.currentPassword&&null!==this.currentPassword?"$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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("currentPassword","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("currentPassword")&&null!==t.currentPassword&&void 0!==t.currentPassword&&n.setCurrentPassword(t.currentPassword),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=sy({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&uy(t.prototype,n),r&&uy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();dy.prototype.currentPassword=void 0,dy.prototype.$reserved=void 0,dy.prototype.$objectType=void 0,dy.prototype.$unknownFields=void 0;var fy={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DELETE:"DELETE",UPDATE:"UPDATE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fy).find(function(t){return fy[t]===e});return null==t?fy.$UNKNOWN:fy[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fy.$UNKNOWN:case fy.$REDACTED:case fy.DELETE:case fy.UPDATE:return;default:throw new Error("Invalid : must be EventType.{ $UNKNOWN|$REDACTED|DELETE|UPDATE }")}}};Object.freeze(fy);const py=fy;var yy={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RECOVERY_POINT:"RECOVERY_POINT",APPROVAL_POLICY:"APPROVAL_POLICY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(yy).find(function(t){return yy[t]===e});return null==t?yy.$UNKNOWN:yy[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case yy.$UNKNOWN:case yy.$REDACTED:case yy.RECOVERY_POINT:case yy.APPROVAL_POLICY:return;default:throw new Error("Invalid : must be SecuredEntityType.{ $UNKNOWN|$REDACTED|RECOVERY_POINT|APPROVAL_POLICY }")}}};Object.freeze(yy);const hy=yy;function vy(e){return vy="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},vy(e)}function by(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 gy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?by(Object(n),!0).forEach(function(t){my(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function my(e,t,n){return(t=Oy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wy(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,Oy(r.key),r)}}function Oy(e){var t=function(e){if("object"!=vy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vy(t)?t:t+""}var jy=new WeakSet,ky=function(){function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,jy),this.securedEntityType=t,this.securedEntityName=n,this.securedEntityExtId=r,this.eventType=o,this.requesterExtId=i,this.$objectType="security.v4.management.SecurityValidationSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getSecuredEntityType",value:function(){return this.securedEntityType}},{key:"setSecuredEntityType",value:function(e){this.securedEntityType=e}},{key:"getSecuredEntityName",value:function(){return this.securedEntityName}},{key:"setSecuredEntityName",value:function(e){this.securedEntityName=e}},{key:"getSecuredEntityExtId",value:function(){return this.securedEntityExtId}},{key:"setSecuredEntityExtId",value:function(e){this.securedEntityExtId=e}},{key:"getEventType",value:function(){return this.eventType}},{key:"setEventType",value:function(e){this.eventType=e}},{key:"getSecuredPolicyExtId",value:function(){return this.securedPolicyExtId}},{key:"setSecuredPolicyExtId",value:function(e){this.securedPolicyExtId=e}},{key:"getSecuredEntityLocation",value:function(){return this.securedEntityLocation}},{key:"setSecuredEntityLocation",value:function(e){this.securedEntityLocation=e}},{key:"getRequesterExtId",value:function(){return this.requesterExtId}},{key:"setRequesterExtId",value:function(e){this.requesterExtId=e}},{key:"getFullyQualifiedSecuredEntityName",value:function(){return this.fullyQualifiedSecuredEntityName}},{key:"setFullyQualifiedSecuredEntityName",value:function(e){this.fullyQualifiedSecuredEntityName=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 gy(gy(gy(gy(gy(gy(gy(gy(gy({},void 0!==this.getSecuredEntityType()&&null!==this.getSecuredEntityType()?{securedEntityType:this.getSecuredEntityType()}:{}),void 0!==this.getSecuredEntityName()&&null!==this.getSecuredEntityName()?{securedEntityName:this.getSecuredEntityName()}:{}),void 0!==this.getSecuredEntityExtId()&&null!==this.getSecuredEntityExtId()?{securedEntityExtId:this.getSecuredEntityExtId()}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getSecuredPolicyExtId()&&null!==this.getSecuredPolicyExtId()?{securedPolicyExtId:this.getSecuredPolicyExtId()}:{}),void 0!==this.getSecuredEntityLocation()&&null!==this.getSecuredEntityLocation()?{securedEntityLocation:this.getSecuredEntityLocation()}:{}),void 0!==this.getRequesterExtId()&&null!==this.getRequesterExtId()?{requesterExtId:this.getRequesterExtId()}:{}),void 0!==this.getFullyQualifiedSecuredEntityName()&&null!==this.getFullyQualifiedSecuredEntityName()?{fullyQualifiedSecuredEntityName:this.getFullyQualifiedSecuredEntityName()}:{}),{},{$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 E?r=["securedEntityType","securedEntityName","securedEntityExtId","eventType","requesterExtId"]: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("securedEntityType"===t&&(void 0===this.securedEntityType||null===this.securedEntityType))return new R("securedEntityType","undefined or null");if("securedEntityName"===t){if(void 0===this.securedEntityName||null===this.securedEntityName)return new R("securedEntityName","undefined or null");if(!C.validateMaxLength(this.securedEntityName,199))return new R("securedEntityName","does not satisfy required maxLength constraint: 199");if(!C.validateMinLength(this.securedEntityName,4))return new R("securedEntityName","does not satisfy required minLength constraint: 4")}if("securedEntityExtId"===t){if(void 0===this.securedEntityExtId||null===this.securedEntityExtId)return new R("securedEntityExtId","undefined or null");if(!C.validatePattern(this.securedEntityExtId,/^[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 R("securedEntityExtId","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("eventType"===t&&(void 0===this.eventType||null===this.eventType))return new R("eventType","undefined or null");if("securedPolicyExtId"===t){if(void 0===this.securedPolicyExtId||null===this.securedPolicyExtId)return new R("securedPolicyExtId","undefined or null");if(!C.validatePattern(this.securedPolicyExtId,/^[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 R("securedPolicyExtId","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("securedEntityLocation"===t){if(void 0===this.securedEntityLocation||null===this.securedEntityLocation)return new R("securedEntityLocation","undefined or null");if(!C.validatePattern(this.securedEntityLocation,/^[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 R("securedEntityLocation","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("requesterExtId"===t){if(void 0===this.requesterExtId||null===this.requesterExtId)return new R("requesterExtId","undefined or null");if(!C.validatePattern(this.requesterExtId,/^[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 R("requesterExtId","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("fullyQualifiedSecuredEntityName"===t){if(void 0===this.fullyQualifiedSecuredEntityName||null===this.fullyQualifiedSecuredEntityName)return new R("fullyQualifiedSecuredEntityName","undefined or null");if(!C.validateMaxLength(this.fullyQualifiedSecuredEntityName,199))return new R("fullyQualifiedSecuredEntityName","does not satisfy required maxLength constraint: 199")}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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("securedEntityType")&&null!==t.securedEntityType&&void 0!==t.securedEntityType&&n.setSecuredEntityType(hy.constructFromObject(t.securedEntityType)),t.hasOwnProperty("securedEntityName")&&null!==t.securedEntityName&&void 0!==t.securedEntityName&&n.setSecuredEntityName(t.securedEntityName),t.hasOwnProperty("securedEntityExtId")&&null!==t.securedEntityExtId&&void 0!==t.securedEntityExtId&&n.setSecuredEntityExtId(t.securedEntityExtId),t.hasOwnProperty("eventType")&&null!==t.eventType&&void 0!==t.eventType&&n.setEventType(py.constructFromObject(t.eventType)),t.hasOwnProperty("securedPolicyExtId")&&null!==t.securedPolicyExtId&&void 0!==t.securedPolicyExtId&&n.setSecuredPolicyExtId(t.securedPolicyExtId),t.hasOwnProperty("securedEntityLocation")&&null!==t.securedEntityLocation&&void 0!==t.securedEntityLocation&&n.setSecuredEntityLocation(t.securedEntityLocation),t.hasOwnProperty("requesterExtId")&&null!==t.requesterExtId&&void 0!==t.requesterExtId&&n.setRequesterExtId(t.requesterExtId),t.hasOwnProperty("fullyQualifiedSecuredEntityName")&&null!==t.fullyQualifiedSecuredEntityName&&void 0!==t.fullyQualifiedSecuredEntityName&&n.setFullyQualifiedSecuredEntityName(t.fullyQualifiedSecuredEntityName),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=gy({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&wy(t.prototype,n),r&&wy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function $y(e){return $y="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},$y(e)}function Py(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 Ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Py(Object(n),!0).forEach(function(t){Ey(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Py(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ey(e,t,n){return(t=Fy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sy(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,Fy(r.key),r)}}function Fy(e){var t=function(e){if("object"!=$y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$y(t)?t:t+""}function Iy(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")}ky.prototype.securedEntityType=void 0,ky.prototype.securedEntityName=void 0,ky.prototype.securedEntityExtId=void 0,ky.prototype.eventType=void 0,ky.prototype.securedPolicyExtId=void 0,ky.prototype.securedEntityLocation=void 0,ky.prototype.requesterExtId=void 0,ky.prototype.fullyQualifiedSecuredEntityName=void 0,ky.prototype.$reserved=void 0,ky.prototype.$objectType=void 0,ky.prototype.$unknownFields=void 0;var Cy=new WeakSet,Dy=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Cy),this.$objectType="security.v4.report.TrendValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTrend",value:function(){return this.trend}},{key:"setTrend",value:function(e){this.trend=e}},{key:"getTrendDate",value:function(){return this.trendDate}},{key:"setTrendDate",value:function(e){this.trendDate=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 Ty(Ty(Ty({},void 0!==this.getTrend()&&null!==this.getTrend()?{trend:this.getTrend()}:{}),void 0!==this.getTrendDate()&&null!==this.getTrendDate()?{trendDate:Iy(Cy,this,Ay).call(this,this.getTrendDate(),!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 E?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"trend"!==t||void 0!==this.trend&&null!==this.trend?"trendDate"!==t||void 0!==this.trendDate&&null!==this.trendDate?"$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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("trendDate","undefined or null"):new R("trend","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("trend")&&null!==t.trend&&void 0!==t.trend&&n.setTrend(t.trend),t.hasOwnProperty("trendDate")&&null!==t.trendDate&&void 0!==t.trendDate&&n.setTrendDate(t.trendDate),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=Ty({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Sy(t.prototype,n),r&&Sy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ay(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function xy(e){return xy="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},xy(e)}function Ry(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 Ny(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ry(Object(n),!0).forEach(function(t){_y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _y(e,t,n){return(t=Ly(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uy(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,Ly(r.key),r)}}function Ly(e){var t=function(e){if("object"!=xy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xy(t)?t:t+""}Dy.prototype.trend=void 0,Dy.prototype.trendDate=void 0,Dy.prototype.$reserved=void 0,Dy.prototype.$objectType=void 0,Dy.prototype.$unknownFields=void 0;var My=new WeakSet,Vy=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,My),this.$objectType="security.v4.report.IssueSummary",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCurrentIssueCount",value:function(){return this.currentIssueCount}},{key:"setCurrentIssueCount",value:function(e){this.currentIssueCount=e}},{key:"getTrend",value:function(){return this.trend}},{key:"setTrend",value:function(e){this.trend=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 Ny(Ny(Ny({},void 0!==this.getCurrentIssueCount()&&null!==this.getCurrentIssueCount()?{currentIssueCount:this.getCurrentIssueCount()}:{}),void 0!==this.getTrend()&&null!==this.getTrend()?{trend:this.getTrend().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 E?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("currentIssueCount"===t&&(void 0===this.currentIssueCount||null===this.currentIssueCount))return new R("currentIssueCount","undefined or null");if("trend"===t){if(void 0===this.trend||null===this.trend)return new R("trend","undefined or null");if(!C.validateMaxItems(this.trend,31))return new R("trend","does not satisfy required maxItems constraint: 31")}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 R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("currentIssueCount")&&null!==t.currentIssueCount&&void 0!==t.currentIssueCount&&s.setCurrentIssueCount(t.currentIssueCount),t.hasOwnProperty("trend")&&null!==t.trend&&void 0!==t.trend){for(i=[],n=t.trend,o=0;o<n.length;o++)r=Dy.constructFromObject(n[o],void 0),i.push(r);s.setTrend(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Ny({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Uy(t.prototype,n),r&&Uy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Vy.prototype.currentIssueCount=void 0,Vy.prototype.trend=void 0,Vy.prototype.$reserved=void 0,Vy.prototype.$objectType=void 0,Vy.prototype.$unknownFields=void 0;var Jy={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PC:"PC",AOS:"AOS",AHV:"AHV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Jy).find(function(t){return Jy[t]===e});return null==t?Jy.$UNKNOWN:Jy[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Jy.$UNKNOWN:case Jy.$REDACTED:case Jy.PC:case Jy.AOS:case Jy.AHV:return;default:throw new Error("Invalid : must be SoftwareType.{ $UNKNOWN|$REDACTED|PC|AOS|AHV }")}}};Object.freeze(Jy);const By=Jy;function Ky(e){return Ky="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},Ky(e)}function Wy(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 qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wy(Object(n),!0).forEach(function(t){Hy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hy(e,t,n){return(t=Gy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zy(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,Gy(r.key),r)}}function Gy(e){var t=function(e){if("object"!=Ky(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ky(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ky(t)?t:t+""}function Qy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Qy=function(){return!!e})()}function Yy(e){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yy(e)}function Xy(e,t){return Xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xy(e,t)}function Zy(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 eh=new WeakSet,th=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Yy(t),function(e,t){if(t&&("object"==Ky(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,Qy()?Reflect.construct(t,n||[],Yy(e).constructor):t.apply(e,n))}(this,t),eh),e.$objectType="security.v4.report.Summary",e.$reserved={$fv:"v4.r0"},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&&Xy(e,t)}(t,e),n=t,r=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getSecurityConfigSummary",value:function(){return this.securityConfigSummary}},{key:"setSecurityConfigSummary",value:function(e){this.securityConfigSummary=e}},{key:"getStigSummary",value:function(){return this.stigSummary}},{key:"setStigSummary",value:function(e){this.stigSummary=e}},{key:"getVulnerabilitiesSummary",value:function(){return this.vulnerabilitiesSummary}},{key:"setVulnerabilitiesSummary",value:function(e){this.vulnerabilitiesSummary=e}},{key:"getPasswordSummary",value:function(){return this.passwordSummary}},{key:"setPasswordSummary",value:function(e){this.passwordSummary=e}},{key:"getTrendType",value:function(){return this.trendType}},{key:"setTrendType",value:function(e){this.trendType=e}},{key:"getLastRefreshTime",value:function(){return this.lastRefreshTime}},{key:"setLastRefreshTime",value:function(e){this.lastRefreshTime=e}},{key:"toJson",value:function(e){return qy(!1===e?qy(qy(qy(qy(qy(qy(qy(qy(qy(qy({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getSecurityConfigSummary()&&null!==this.getSecurityConfigSummary()?{securityConfigSummary:this.getSecurityConfigSummary().toJson(!1)}:{}),void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{}),void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{}),void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{}),void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{}),void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:Zy(eh,this,nh).call(this,this.getLastRefreshTime(),!1)}:{}),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()}:{}):qy(qy(qy(qy(qy(qy({},void 0!==this.getSecurityConfigSummary()&&null!==this.getSecurityConfigSummary()?{securityConfigSummary:this.getSecurityConfigSummary().toJson(!1)}:{}),void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{}),void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{}),void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{}),void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{}),void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:Zy(eh,this,nh).call(this,this.getLastRefreshTime(),!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 E?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("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!C.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 R("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"securityConfigSummary"!==t||void 0!==this.securityConfigSummary&&null!==this.securityConfigSummary?"stigSummary"!==t||void 0!==this.stigSummary&&null!==this.stigSummary?"vulnerabilitiesSummary"!==t||void 0!==this.vulnerabilitiesSummary&&null!==this.vulnerabilitiesSummary?"passwordSummary"!==t||void 0!==this.passwordSummary&&null!==this.passwordSummary?"trendType"!==t||void 0!==this.trendType&&null!==this.trendType?"lastRefreshTime"!==t||void 0!==this.lastRefreshTime&&null!==this.lastRefreshTime?new R(t,"no such property exists"):new R("lastRefreshTime","undefined or null"):new R("trendType","undefined or null"):new R("passwordSummary","undefined or null"):new R("vulnerabilitiesSummary","undefined or null"):new R("stigSummary","undefined or null"):new R("securityConfigSummary","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Zn.constructFromObject(e,n,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),e.hasOwnProperty("securityConfigSummary")&&null!==e.securityConfigSummary&&void 0!==e.securityConfigSummary&&n.setSecurityConfigSummary(Vy.constructFromObject(e.securityConfigSummary)),e.hasOwnProperty("stigSummary")&&null!==e.stigSummary&&void 0!==e.stigSummary&&n.setStigSummary(Vy.constructFromObject(e.stigSummary)),e.hasOwnProperty("vulnerabilitiesSummary")&&null!==e.vulnerabilitiesSummary&&void 0!==e.vulnerabilitiesSummary&&n.setVulnerabilitiesSummary(Vy.constructFromObject(e.vulnerabilitiesSummary)),e.hasOwnProperty("passwordSummary")&&null!==e.passwordSummary&&void 0!==e.passwordSummary&&n.setPasswordSummary(Vy.constructFromObject(e.passwordSummary)),e.hasOwnProperty("trendType")&&null!==e.trendType&&void 0!==e.trendType&&n.setTrendType(Yf.constructFromObject(e.trendType)),e.hasOwnProperty("lastRefreshTime")&&null!==e.lastRefreshTime&&void 0!==e.lastRefreshTime&&n.setLastRefreshTime(e.lastRefreshTime),!r))for(var o in n.$unknownFields=qy({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&zy(n.prototype,r),o&&zy(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function nh(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function rh(e){return rh="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},rh(e)}function oh(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 ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(n),!0).forEach(function(t){sh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sh(e,t,n){return(t=uh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ah(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,uh(r.key),r)}}function uh(e){var t=function(e){if("object"!=rh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rh(t)?t:t+""}function lh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lh=function(){return!!e})()}function ch(e){return ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ch(e)}function dh(e,t){return dh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dh(e,t)}function fh(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")}th.prototype.clusterExtId=void 0,th.prototype.securityConfigSummary=void 0,th.prototype.stigSummary=void 0,th.prototype.vulnerabilitiesSummary=void 0,th.prototype.passwordSummary=void 0,th.prototype.trendType=void 0,th.prototype.lastRefreshTime=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var ph=new WeakSet,yh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ch(t),function(e,t){if(t&&("object"==rh(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,lh()?Reflect.construct(t,n||[],ch(e).constructor):t.apply(e,n))}(this,t),ph),e.$objectType="security.v4.report.SummaryProjection",e.$reserved={$fv:"v4.r0"},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&&dh(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return ih(!1===e?ih(ih(ih(ih(ih(ih(ih(ih(ih(ih(ih({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getSecurityConfigSummary()&&null!==this.getSecurityConfigSummary()?{securityConfigSummary:this.getSecurityConfigSummary().toJson(!1)}:{}),void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{}),void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{}),void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{}),void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{}),void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:fh(ph,this,hh).call(this,this.getLastRefreshTime(),!1)}:{}),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()}:{}):ih(ih(ih(ih(ih(ih(ih({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getSecurityConfigSummary()&&null!==this.getSecurityConfigSummary()?{securityConfigSummary:this.getSecurityConfigSummary().toJson(!1)}:{}),void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{}),void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{}),void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{}),void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{}),void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:fh(ph,this,hh).call(this,this.getLastRefreshTime(),!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 E?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"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new R(t,"no such property exists"):new R("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,th.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(yf.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=ih({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ah(n.prototype,r),o&&ah(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(th);function hh(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function vh(e){return vh="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},vh(e)}function bh(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 gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bh(Object(n),!0).forEach(function(t){mh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mh(e,t,n){return(t=Oh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wh(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,Oh(r.key),r)}}function Oh(e){var t=function(e){if("object"!=vh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vh(t)?t:t+""}function jh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jh=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kh(e)}function $h(e,t){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$h(e,t)}function Ph(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")}yh.prototype.clusterProjection=void 0,th.prototype.clusterExtId=void 0,th.prototype.securityConfigSummary=void 0,th.prototype.stigSummary=void 0,th.prototype.vulnerabilitiesSummary=void 0,th.prototype.passwordSummary=void 0,th.prototype.trendType=void 0,th.prototype.lastRefreshTime=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Th=new WeakSet,Eh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=kh(t),function(e,t){if(t&&("object"==vh(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,jh()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}(this,t),Th),e.$objectType="security.v4.report.Vulnerability",e.$reserved={$fv:"v4.r0"},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&&$h(e,t)}(t,e),n=t,r=[{key:"getCesaId",value:function(){return this.cesaId}},{key:"setCesaId",value:function(e){this.cesaId=e}},{key:"getCveIds",value:function(){return this.cveIds}},{key:"setCveIds",value:function(e){this.cveIds=e}},{key:"getIsCritical",value:function(){return this.isCritical}},{key:"setIsCritical",value:function(e){this.isCritical=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getFixVersions",value:function(){return this.fixVersions}},{key:"setFixVersions",value:function(e){this.fixVersions=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getNxvdVersion",value:function(){return this.nxvdVersion}},{key:"setNxvdVersion",value:function(e){this.nxvdVersion=e}},{key:"getNxvdCreatedTime",value:function(){return this.nxvdCreatedTime}},{key:"setNxvdCreatedTime",value:function(e){this.nxvdCreatedTime=e}},{key:"toJson",value:function(e){return gh(!1===e?gh(gh(gh(gh(gh(gh(gh(gh(gh(gh(gh({},void 0!==this.getCesaId()&&null!==this.getCesaId()?{cesaId:this.getCesaId()}:{}),void 0!==this.getCveIds()&&null!==this.getCveIds()?{cveIds:this.getCveIds()}:{}),void 0!==this.getIsCritical()&&null!==this.getIsCritical()?{isCritical:this.getIsCritical()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getFixVersions()&&null!==this.getFixVersions()?{fixVersions:this.getFixVersions()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getNxvdVersion()&&null!==this.getNxvdVersion()?{nxvdVersion:this.getNxvdVersion()}:{}),void 0!==this.getNxvdCreatedTime()&&null!==this.getNxvdCreatedTime()?{nxvdCreatedTime:Ph(Th,this,Sh).call(this,this.getNxvdCreatedTime(),!1)}:{}),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()}:{}):gh({},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 E?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("cesaId"===t){if(void 0===this.cesaId||null===this.cesaId)return new R("cesaId","undefined or null");if(!C.validateMaxLength(this.cesaId,199))return new R("cesaId","does not satisfy required maxLength constraint: 199")}if("cveIds"===t){if(void 0===this.cveIds||null===this.cveIds)return new R("cveIds","undefined or null");if(!C.validateMaxItems(this.cveIds,1024))return new R("cveIds","does not satisfy required maxItems constraint: 1024")}if("isCritical"===t&&(void 0===this.isCritical||null===this.isCritical))return new R("isCritical","undefined or null");if("description"===t){if(void 0===this.description||null===this.description)return new R("description","undefined or null");if(!C.validateMaxLength(this.description,499))return new R("description","does not satisfy required maxLength constraint: 499")}if("fixVersions"===t){if(void 0===this.fixVersions||null===this.fixVersions)return new R("fixVersions","undefined or null");if(!C.validateMaxItems(this.fixVersions,50))return new R("fixVersions","does not satisfy required maxItems constraint: 50")}if("severity"===t&&(void 0===this.severity||null===this.severity))return new R("severity","undefined or null");if("nxvdVersion"===t){if(void 0===this.nxvdVersion||null===this.nxvdVersion)return new R("nxvdVersion","undefined or null");if(!C.validateMaxLength(this.nxvdVersion,199))return new R("nxvdVersion","does not satisfy required maxLength constraint: 199")}return"nxvdCreatedTime"!==t||void 0!==this.nxvdCreatedTime&&null!==this.nxvdCreatedTime?new R(t,"no such property exists"):new R("nxvdCreatedTime","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(i=i||new t,Zn.constructFromObject(e,i,!0),e.hasOwnProperty("cesaId")&&null!==e.cesaId&&void 0!==e.cesaId&&i.setCesaId(e.cesaId),e.hasOwnProperty("cveIds")&&null!==e.cveIds&&void 0!==e.cveIds){for(o=[],n=e.cveIds,r=0;r<n.length;r++)o.push(n[r]);i.setCveIds(o)}if(e.hasOwnProperty("isCritical")&&null!==e.isCritical&&void 0!==e.isCritical&&i.setIsCritical(e.isCritical),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&i.setDescription(e.description),e.hasOwnProperty("fixVersions")&&null!==e.fixVersions&&void 0!==e.fixVersions){for(o=[],n=e.fixVersions,r=0;r<n.length;r++)o.push(n[r]);i.setFixVersions(o)}if(e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&i.setSeverity(rd.constructFromObject(e.severity)),e.hasOwnProperty("nxvdVersion")&&null!==e.nxvdVersion&&void 0!==e.nxvdVersion&&i.setNxvdVersion(e.nxvdVersion),e.hasOwnProperty("nxvdCreatedTime")&&null!==e.nxvdCreatedTime&&void 0!==e.nxvdCreatedTime&&i.setNxvdCreatedTime(e.nxvdCreatedTime),!s)for(var a in i.$unknownFields=gh({},e.$unknownFields),e)Object.keys(i).includes(a)||Object.keys(i).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(i.$unknownFields[a]=e[a])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&wh(n.prototype,r),o&&wh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function Sh(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Fh(e){return Fh="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},Fh(e)}function Ih(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 Ch(e,t,n){return(t=Ah(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dh(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,Ah(r.key),r)}}function Ah(e){var t=function(e){if("object"!=Fh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fh(t)?t:t+""}function xh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xh=function(){return!!e})()}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rh(e)}function Nh(e,t){return Nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nh(e,t)}Eh.prototype.cesaId=void 0,Eh.prototype.cveIds=void 0,Eh.prototype.isCritical=void 0,Eh.prototype.description=void 0,Eh.prototype.fixVersions=void 0,Eh.prototype.severity=void 0,Eh.prototype.nxvdVersion=void 0,Eh.prototype.nxvdCreatedTime=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var _h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Rh(t),function(e,t){if(t&&("object"==Fh(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,xh()?Reflect.construct(t,n||[],Rh(e).constructor):t.apply(e,n))}(this,t)).$objectType="security.v4.report.VulnerabilityProjection",e.$reserved={$fv:"v4.r0"},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&&Nh(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?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 new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Eh.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ih(Object(n),!0).forEach(function(t){Ch(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ih(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Dh(n.prototype,r),o&&Dh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Eh);function Uh(e){return Uh="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},Uh(e)}function Lh(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 Mh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lh(Object(n),!0).forEach(function(t){Vh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vh(e,t,n){return(t=Bh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jh(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,Bh(r.key),r)}}function Bh(e){var t=function(e){if("object"!=Uh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uh(t)?t:t+""}function Kh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Kh=function(){return!!e})()}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wh(e)}function qh(e,t){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qh(e,t)}var Hh=new WeakSet,zh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Wh(t),function(e,t){if(t&&("object"==Uh(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,Kh()?Reflect.construct(t,n||[],Wh(e).constructor):t.apply(e,n))}(this,t),Hh),e.$objectType="security.v4.report.VulnerabilitySummary",e.$reserved={$fv:"v4.r0"},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&&qh(e,t)}(t,e),n=t,r=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getInstalledVersion",value:function(){return this.installedVersion}},{key:"setInstalledVersion",value:function(e){this.installedVersion=e}},{key:"getCveIds",value:function(){return this.cveIds}},{key:"setCveIds",value:function(e){this.cveIds=e}},{key:"getSoftwareType",value:function(){return this.softwareType}},{key:"setSoftwareType",value:function(e){this.softwareType=e}},{key:"toJson",value:function(e){return Mh(!1===e?Mh(Mh(Mh(Mh(Mh(Mh(Mh({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getInstalledVersion()&&null!==this.getInstalledVersion()?{installedVersion:this.getInstalledVersion()}:{}),void 0!==this.getCveIds()&&null!==this.getCveIds()?{cveIds:this.getCveIds()}:{}),void 0!==this.getSoftwareType()&&null!==this.getSoftwareType()?{softwareType:this.getSoftwareType()}:{}),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()}:{}):Mh({},void 0!==this.getSoftwareType()&&null!==this.getSoftwareType()?{softwareType:this.getSoftwareType()}:{}),{},{$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 E?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("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!C.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 R("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}$/")}if("installedVersion"===t){if(void 0===this.installedVersion||null===this.installedVersion)return new R("installedVersion","undefined or null");if(!C.validateMaxLength(this.installedVersion,199))return new R("installedVersion","does not satisfy required maxLength constraint: 199")}if("cveIds"===t){if(void 0===this.cveIds||null===this.cveIds)return new R("cveIds","undefined or null");if(!C.validateMaxItems(this.cveIds,1024))return new R("cveIds","does not satisfy required maxItems constraint: 1024")}return"softwareType"!==t||void 0!==this.softwareType&&null!==this.softwareType?new R(t,"no such property exists"):new R("softwareType","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(i=i||new t,Zn.constructFromObject(e,i,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&i.setClusterExtId(e.clusterExtId),e.hasOwnProperty("installedVersion")&&null!==e.installedVersion&&void 0!==e.installedVersion&&i.setInstalledVersion(e.installedVersion),e.hasOwnProperty("cveIds")&&null!==e.cveIds&&void 0!==e.cveIds){for(o=[],n=e.cveIds,r=0;r<n.length;r++)o.push(n[r]);i.setCveIds(o)}if(e.hasOwnProperty("softwareType")&&null!==e.softwareType&&void 0!==e.softwareType&&i.setSoftwareType(By.constructFromObject(e.softwareType)),!s)for(var a in i.$unknownFields=Mh({},e.$unknownFields),e)Object.keys(i).includes(a)||Object.keys(i).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(i.$unknownFields[a]=e[a])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Jh(n.prototype,r),o&&Jh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zn);function Gh(e){return Gh="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},Gh(e)}function Qh(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 Yh(e,t,n){return(t=Zh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xh(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,Zh(r.key),r)}}function Zh(e){var t=function(e){if("object"!=Gh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gh(t)?t:t+""}function ev(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ev=function(){return!!e})()}function tv(e){return tv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tv(e)}function nv(e,t){return nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nv(e,t)}zh.prototype.clusterExtId=void 0,zh.prototype.installedVersion=void 0,zh.prototype.cveIds=void 0,zh.prototype.softwareType=void 0,Zn.prototype.extId=void 0,Zn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var rv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=tv(t),function(e,t){if(t&&("object"==Gh(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,ev()?Reflect.construct(t,n||[],tv(e).constructor):t.apply(e,n))}(this,t)).$objectType="security.v4.report.VulnerabilitySummaryProjection",e.$reserved={$fv:"v4.r0"},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&&nv(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?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 new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,zh.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qh(Object(n),!0).forEach(function(t){Yh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Xh(n.prototype,r),o&&Xh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(zh);const ov={ApiClient:lt,CredentialsApi:bs,ApprovalPoliciesApi:ul,KeyManagementServersApi:td,STIGsApi:Gf,BasicAuth:ar,FQDN:lo,Flag:B,IPAddressOrFQDN:xo,IPv4Address:go,IPv6Address:To,KVPair:ce,MapOfStringWrapper:Z,Message:Oe,MessageSeverity:pe,TenantAwareModel:Jn,ApiLink:Fe,ApiResponseMetadata:Ue,ExternalizableAbstractModel:Zn,BucketsAccessKey:da,BucketsAccessKeyStatusType:Ys,CreationType:Zs,User:Sa,UserStatusType:ya,UserType:va,TaskReference:At,Cluster:of,ClusterProjection:yf,Timescale:Yf,AzureAccessInformation:bl,BasicAuthCredential:hr,BmcCredential:Tr,CreateCredentialApiResponse:ss,CreateKeyManagementServerApiResponse:vc,Credential:oi,DeleteCredentialApiResponse:qi,DeleteKeyManagementServerApiResponse:Ic,ExternalSshAccessConfig:sp,GetCredentialApiResponse:Di,GetKeyManagementServerApiResponse:nc,IntersightConnectionType:Sr,IntersightCredential:to,KeyBasedAuth:Nr,KeyBasedAuthCredential:Kr,KeyManagementServer:Fl,ListCredentialsApiResponse:gi,ListKeyManagementServersApiResponse:Kc,PasswordStatus:lp,PasswordVerificationStatus:dp,ScheduleType:pp,SecurityConfig:$p,SecurityConfigProjection:Rp,SecurityConfigVisibilitySetting:qp,UpdateCredentialApiResponse:An,UpdateKeyManagementServerApiResponse:Jl,VcenterCredential:Wo,VerifyPassword:ry,VerifyPasswordSpec:dy,AppMessage:Bt,ErrorResponse:mn,SchemaValidationError:un,SchemaValidationErrorMessage:Xt,ApprovalPolicy:Ga,ApproverGroup:_a,AssociatePoliciesApiResponse:Is,AssociatePoliciesSpec:Gs,CreateApprovalPolicyApiResponse:_u,EventType:py,GetApprovalPolicyApiResponse:lu,ListApprovalPoliciesApiResponse:ku,PolicyType:As,SecuredEntityType:hy,SecuredPolicy:Vs,SecurityValidationSpec:ky,UpdateApprovalPolicyApiResponse:Yu,IssueSummary:Vy,ListStigSummariesApiResponse:Uf,ListStigsApiResponse:Ud,Severity:rd,SoftwareType:By,Stig:vd,StigProjection:Pd,StigStatus:id,StigSummary:Qd,StigSummaryProjection:Pf,Summary:th,SummaryProjection:yh,TrendValue:Dy,Vulnerability:Eh,VulnerabilityProjection:_h,VulnerabilitySummary:zh,VulnerabilitySummaryProjection:rv}})(),r.default})());
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.Security=t())}(Object("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,s=this._callbacks["$"+e];if(!s)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<s.length;i++)if((n=s[i])===t||n.fn===t){s.splice(i,1);break}return 0===s.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],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){s=0;for(var i=(n=n.slice(0)).length;s<i;++s)n[s].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){e.exports=o,o.default=o,o.stable=u,o.stableStringify=u;var t="[...]",n="[Circular]",s=[],i=[];function r(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,n,o){var a;void 0===o&&(o=r()),l(e,"",0,[],void 0,0,o);try{a=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==s.length;){var d=s.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function a(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);void 0!==o.get?o.configurable?(Object.defineProperty(r,n,{value:e}),s.push([r,n,t,o])):i.push([t,n,e]):(r[n]=e,s.push([r,n,t]))}function l(e,s,i,r,o,d,u){var h;if(d+=1,"object"==typeof e&&null!==e){for(h=0;h<r.length;h++)if(r[h]===e)return void a(n,e,s,o);if(void 0!==u.depthLimit&&d>u.depthLimit)return void a(t,e,s,o);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void a(t,e,s,o);if(r.push(e),Array.isArray(e))for(h=0;h<e.length;h++)l(e[h],h,h,r,e,d,u);else{var c=Object.keys(e);for(h=0;h<c.length;h++){var p=c[h];l(e[p],p,h,r,e,d,u)}}r.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function u(e,t,n,o){void 0===o&&(o=r());var a,l=h(e,"",0,[],void 0,0,o)||e;try{a=0===i.length?JSON.stringify(l,t,n):JSON.stringify(l,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==s.length;){var d=s.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function h(e,i,r,o,l,u,c){var p;if(u+=1,"object"==typeof e&&null!==e){for(p=0;p<o.length;p++)if(o[p]===e)return void a(n,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&u>c.depthLimit)return void a(t,e,i,l);if(void 0!==c.edgesLimit&&r+1>c.edgesLimit)return void a(t,e,i,l);if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)h(e[p],p,p,o,e,u,c);else{var y={},v=Object.keys(e).sort(d);for(p=0;p<v.length;p++){var g=v[p];h(e[g],g,p,o,e,u,c),y[g]=e[g]}if(void 0===l)return y;s.push([l,i,e]),l[i]=y}o.pop()}}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var s=0;s<i.length;s++){var r=i[s];if(r[1]===t&&r[0]===n){n=r[2],i.splice(s,1);break}}return e.call(this,t,n)}}},784(e,t,n){"use strict";var s="win32"===process.platform,i=n(818);function r(e,t){for(var n=[],s=0;s<e.length;s++){var i=e[s];i&&"."!==i&&(".."===i?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(i))}return n}function o(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var s=t;s>=0&&!e[s];s--);return 0===n&&s===t?e:n>s?[]:e.slice(n,s+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,d={};function u(e){var t=a.exec(e),n=(t[1]||"")+(t[2]||""),s=t[3]||"",i=l.exec(s);return[n,i[1],i[2],i[3]]}function h(e){var t=a.exec(e),n=t[1]||"",s=!!n&&":"!==n[1];return{device:n,isUnc:s,isAbsolute:s||!!t[2],tail:t[3]}}function c(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}d.resolve=function(){for(var e="",t="",n=!1,s=arguments.length-1;s>=-1;s--){var o;if(s>=0?o=arguments[s]: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=h(o),l=a.device,d=a.isUnc,u=a.isAbsolute,p=a.tail;if((!l||!e||l.toLowerCase()===e.toLowerCase())&&(e||(e=l),n||(t=p+"\\"+t,n=u),e&&n))break}}return d&&(e=c(e)),e+(n?"\\":"")+(t=r(t.split(/[\\\/]+/),!n).join("\\"))||"."},d.normalize=function(e){var t=h(e),n=t.device,s=t.isUnc,i=t.isAbsolute,o=t.tail,a=/[\\\/]$/.test(o);return(o=r(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&a&&(o+="\\"),s&&(n=c(n)),n+(i?"\\":"")+o},d.isAbsolute=function(e){return h(e).isAbsolute},d.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 s=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(s=s.replace(/^[\\\/]{2,}/,"\\")),d.normalize(s)},d.relative=function(e,t){e=d.resolve(e),t=d.resolve(t);for(var n=e.toLowerCase(),s=t.toLowerCase(),i=o(t.split("\\")),r=o(n.split("\\")),a=o(s.split("\\")),l=Math.min(r.length,a.length),u=l,h=0;h<l;h++)if(r[h]!==a[h]){u=h;break}if(0==u)return t;var c=[];for(h=u;h<r.length;h++)c.push("..");return(c=c.concat(i.slice(u))).join("\\")},d._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=d.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},d.dirname=function(e){var t=u(e),n=t[0],s=t[1];return n||s?(s&&(s=s.substr(0,s.length-1)),n+s):"."},d.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},d.extname=function(e){return u(e)[3]},d.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var n=e.dir,s=e.base||"";return n?n[n.length-1]===d.sep?n+s:n+d.sep+s:s},d.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=u(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)}},d.sep="\\",d.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,y={};function v(e){return p.exec(e).slice(1)}y.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var s=n>=0?arguments[n]:process.cwd();if(!i.isString(s))throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,t="/"===s[0])}return(t?"/":"")+(e=r(e.split("/"),!t).join("/"))||"."},y.normalize=function(e){var t=y.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=r(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},y.isAbsolute=function(e){return"/"===e.charAt(0)},y.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 y.normalize(e)},y.relative=function(e,t){e=y.resolve(e).substr(1),t=y.resolve(t).substr(1);for(var n=o(e.split("/")),s=o(t.split("/")),i=Math.min(n.length,s.length),r=i,a=0;a<i;a++)if(n[a]!==s[a]){r=a;break}var l=[];for(a=r;a<n.length;a++)l.push("..");return(l=l.concat(s.slice(r))).join("/")},y._makeLong=function(e){return e},y.dirname=function(e){var t=v(e),n=t[0],s=t[1];return n||s?(s&&(s=s.substr(0,s.length-1)),n+s):"."},y.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},y.extname=function(e){return v(e)[3]},y.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+y.sep:"")+(e.base||"")},y.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof 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)}},y.sep="/",y.delimiter=":",e.exports=s?d:y,e.exports.posix=y,e.exports.win32=d},540(e){function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,s){if(s)return s(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){const e=t.status;if(e>=500)return!0;if((e>=400||e<200)&&-1===n.indexOf(e))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){let e;e=this._retries?this._retryDelays[this._retries-1]:0;const t=this;return setTimeout(function(){return t._retry()},e)}const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)}function n(e,t,n,s){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);const i=t.length,r=e-i;if(0!==r){if(r<0)throw new Error("Cannot have more delays than retries");{const e=t[i-1];for(let n=0;n<r+1;n++)t.push(e)}}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=s,this}e.exports=function(e){const s=e.Request;return s.prototype.oldRetry=s.prototype.retry,s.prototype.retry=n,s.prototype.callback=t,e}},619(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}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),s=0;s<t;s++)n[s]=arguments[s];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var s;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(s=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(s)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?t(e,n):void 0}}(s)||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 s(e){return s="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},s(e)}var i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var r=n(960),o=n(340),a=n(695),l=n(388),d=n(19),u=n(619);function h(){}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 c=t=e.exports;t.Request=m,c.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.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(!l(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&v(t,n,e[n]);return t.join("&")}function v(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach(function(n){v(e,t,n)});else if(l(n))for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&v(e,"".concat(t,"[").concat(s,"]"),n[s]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function g(e){for(var t,n,s={},i=e.split("&"),r=0,o=i.length;r<o;++r)-1===(n=(t=i[r]).indexOf("="))?s[decodeURIComponent(t)]="":s[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return s}function f(e){return/[/+]json($|[^-\w])/.test(e)}function w(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,s,i,r=e.split(/\r?\n/),o={},a=0,l=r.length;a<l;++a)-1!==(t=(n=r[a]).indexOf(":"))&&(s=n.slice(0,t).toLowerCase(),i=p(n.slice(t+1)),o[s]=i);return o}(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,s=null;try{s=new w(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",s);try{n._isResponseOK(s)||(e=new Error(s.statusText||s.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=s,e.status=s.status,n.callback(e,s)):n.callback(null,s)})}function $(e,t,n){var s=c("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s}c.serializeObject=y,c.parseString=g,c.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"},c.serialize={"application/x-www-form-urlencoded":y,"application/json":o},c.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},d(w.prototype),w.prototype._parseBody=function(e){var t=c.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&f(this.type)&&(t=c.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},w.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,s="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),i=new Error(s);return i.status=this.status,i.method=t,i.url=n,i},c.Response=w,r(m.prototype),a(m.prototype),m.prototype.type=function(e){return this.set("Content-Type",c.types[e]||e),this},m.prototype.accept=function(e){return this.set("Accept",c.types[e]||e),this},m.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===s(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 i.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"===s(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||h,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=c.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 s;try{s=t.status}catch(e){s=0}if(!s){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var s=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",s.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",s.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 i=this._header["content-type"],r=this._serializer||c.serialize[i?i.split(";")[0]:""];!r&&f(i)&&(r=c.serialize["application/json"]),r&&(n=r(n))}for(var o in this.header)null!==this.header[o]&&Object.prototype.hasOwnProperty.call(this.header,o)&&t.setRequestHeader(o,this.header[o]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},c.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var s=new c.Request(e,t);return this._setDefaults(s),n&&s.end(n),s}}),u.prototype.del=u.prototype.delete,c.get=function(e,t,n){var s=c("GET",e);return"function"==typeof t&&(n=t,t=null),t&&s.query(t),n&&s.end(n),s},c.head=function(e,t,n){var s=c("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&s.query(t),n&&s.end(n),s},c.options=function(e,t,n){var s=c("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s},c.del=$,c.delete=$,c.patch=function(e,t,n){var s=c("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s},c.post=function(e,t,n){var s=c("POST",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s},c.put=function(e,t,n){var s=c("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s}},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 s(e){return s="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},s(e)}var i=n(388);function r(e){if(e)return function(e){for(var t in r.prototype)Object.prototype.hasOwnProperty.call(r.prototype,t)&&(e[t]=r.prototype[t]);return e}(e)}e.exports=r,r.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},r.prototype.parse=function(e){return this._parser=e,this},r.prototype.responseType=function(e){return this._responseType=e,this},r.prototype.serialize=function(e){return this._serializer=e,this},r.prototype.timeout=function(e){if(!e||"object"!==s(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},r.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 o=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];r.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&&o.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},r.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()},r.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var s=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){s.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)}}),s.end(function(n,s){n?t(n):e(s)})})}return this._fullfilledPromise.then(e,t)},r.prototype.catch=function(e){return this.then(void 0,e)},r.prototype.use=function(e){return e(this),this},r.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},r.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},r.prototype.get=function(e){return this._header[e.toLowerCase()]},r.prototype.getHeader=r.prototype.get,r.prototype.set=function(e,t){if(i(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},r.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},r.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(i(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 s in t)Object.prototype.hasOwnProperty.call(t,s)&&this.field(e,t[s]);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},r.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},r.prototype._auth=function(e,t,n,s){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(s("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},r.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},r.prototype.redirects=function(e){return this._maxRedirects=e,this},r.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(e){var t=i(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&&i(this._data))for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(this._data[s]=e[s]);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},r.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},r.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("&")}}},r.prototype._appendQueryString=function(){console.warn("Unsupported")},r.prototype._timeoutError=function(e,t,n){if(!this._aborted){var s=new Error("".concat(e+t,"ms exceeded"));s.timeout=t,s.code="ECONNABORTED",s.errno=n,this.timedout=!0,this.timedoutError=s,this.abort(),this.callback(s)}},r.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 s=n(897);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.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=s.type(t);var n=s.params(t);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{e.link&&(this.links=s.parseLinks(e.link))}catch(e){}},i.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(/ *= */),s=n.shift(),i=n.shift();return s&&i&&(e[s]=i),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),s=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=s,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){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818(e,t,n){var s=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(o(arguments[n]));return t.join(" ")}n=1;for(var i=arguments,r=i.length,a=String(e).replace(s,function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}}),l=i[n];n<r;l=i[++n])y(l)||!m(l)?a+=" "+l:a+=" "+o(l);return a},t.deprecate=function(e,s){if(f(n.g.process))return function(){return t.deprecate(e,s).apply(this,arguments)};if(!0===process.noDeprecation)return e;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(s);process.traceDeprecation?console.trace(s):console.error(s),i=!0}return e.apply(this,arguments)}};var i,r={};function o(e,n){var s={seen:[],stylize:l};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),p(n)?s.showHidden=n:n&&t._extend(s,n),f(s.showHidden)&&(s.showHidden=!1),f(s.depth)&&(s.depth=2),f(s.colors)&&(s.colors=!1),f(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=a),d(s,e,s.depth)}function a(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function l(e,t){return e}function d(e,n,s){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(s,e);return g(i)||(i=d(e,i,s)),i}var r=function(e,t){if(f(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(r)return r;var o=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),b(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(n);if(0===o.length){if(k(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if($(n))return e.stylize(Date.prototype.toString.call(n),"date");if(b(n))return u(n)}var m,T="",F=!1,j=["{","}"];return c(n)&&(F=!0,j=["[","]"]),k(n)&&(T=" [Function"+(n.name?": "+n.name:"")+"]"),w(n)&&(T=" "+RegExp.prototype.toString.call(n)),$(n)&&(T=" "+Date.prototype.toUTCString.call(n)),b(n)&&(T=" "+u(n)),0!==o.length||F&&0!=n.length?s<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),m=F?function(e,t,n,s,i){for(var r=[],o=0,a=t.length;o<a;++o)E(t,String(o))?r.push(h(e,t,n,s,String(o),!0)):r.push("");return i.forEach(function(i){i.match(/^\d+$/)||r.push(h(e,t,n,s,i,!0))}),r}(e,n,s,a,o):o.map(function(t){return h(e,n,s,a,t,F)}),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]}(m,T,j)):j[0]+T+j[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,s,i,r){var o,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),E(s,i)||(o="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(a=r?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")),f(o)){if(r&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function c(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function f(e){return void 0===e}function w(e){return m(e)&&"[object RegExp]"===T(e)}function m(e){return"object"==typeof e&&null!==e}function $(e){return m(e)&&"[object Date]"===T(e)}function b(e){return m(e)&&("[object Error]"===T(e)||e instanceof Error)}function k(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(f(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!r[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;r[e]=function(){var s=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,s)}}else r[e]=function(){};return r[e]},t.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=c,t.isBoolean=p,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=f,t.isRegExp=w,t.isObject=m,t.isDate=$,t.isError=b,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(98);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[F((e=new Date).getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":"),[e.getDate(),j[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!m(t))return e;for(var n=Object.keys(t),s=n.length;s--;)e[n[s]]=t[n[s]];return e}},548(){},799(){},545(){},965(){}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.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 s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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 s={};return(()=>{"use strict";n.d(s,{default:()=>Gi});var e,t=n(585),i=n.n(t);class r{constructor(){}static constructFromObject(e,t){if(e){if(t=t||new r,e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links)for(const n of e.links)if(n.hasOwnProperty("rel")&&n.hasOwnProperty("href"))switch(n.rel){case"first":t.linkFirst=n.href;break;case"prev":t.linkPrev=n.href;break;case"next":t.linkNext=n.href;break;case"last":t.linkLast=n.href}e.hasOwnProperty("totalAvailableResults")&&(t.resultsTotal=e.totalAvailableResults)}return t}getFirstPage(){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)}getPrevPage(){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)}getNextPage(){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)}getLastPage(){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)}currentPage(){return null===this.page?0:this.page}countPages(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}isFirstPage(){return 0===this.currentPage()}isLastPage(){return this.currentPage()===this.countPages()-1}populatePaginationMetadata(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}_getLink(e){null===this.apiClient&&(this.apiClient=le.instance);const t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}r.prototype.linkFirst=null,r.prototype.linkPrev=null,r.prototype.linkNext=null,r.prototype.linkLast=null,r.prototype.apiClient=null,r.prototype.page=null,r.prototype.resultsPerPage=null,r.prototype.resultsTotal=null;var o=new Uint8Array(16);function a(){if(!e&&!(e="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 e(o)}const l=/^(?:[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 d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&l.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},c=function(e,t,n){var s=(e=e||{}).random||(e.rng||a)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=s[i];return t}return h(s)};var p=n(540),y=n.n(p),v=n(545),g=n.n(v),f=n(799),w=n.n(f),m=n(784),$=n.n(m),b=n(548);const k={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return k[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===k.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(k);const T=k;class F{static validateMaximum(e,t){return!(null===t||e>t)}static validateMinimum(e,t){return!(null===t||e<t)}static validateExclusiveMaximum(e,t){return!(null===t||e>t)}static validateExclusiveMinimum(e,t){return!(null===t||e>t)}static validateMultipleOf(e,t){return!(null===t||e%t===0)}static validateMaxLength(e,t){return!(null===t||e.length>t)}static validateMinLength(e,t){return!(null===t||e.length<t)}static validatePattern(e,t){return!(null===t||null===e.match(t))}static validateMaxItems(e,t){return!(null===t||e.length>t)}static validateMinItems(e,t){return!(null===t||e.length<t)}static validateUniqueItems(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}class j{constructor(e,t){this.name=e,this.message=t}getName(){return this.name}setName(e){this.name=e}getMessage(){return this.message}setMessage(e){this.message=e}toJson(){return{name:this.getName(),message:this.getMessage()}}}var E=new WeakSet;class O{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=E),t.add(e),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new O,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new j("name","undefined or null");if(!F.validateMaxLength(this.name,128))return new j("name","does not satisfy required maxLength constraint: 128");if(!F.validateMinLength(this.name,3))return new j("name","does not satisfy required minLength constraint: 3")}return"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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("value","undefined or null")}}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")}O.prototype.name=void 0,O.prototype.value=!1,O.prototype.$reserved=void 0,O.prototype.$objectType=void 0,O.prototype.$unknownFields=void 0;var P=new WeakSet;class C{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=P),t.add(e),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new C,e.hasOwnProperty("map")&&null!==e.map&&void 0!==e.map&&t.setMap(e.map),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMap(){return this.map}setMap(e){this.map=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMap()&&null!==this.getMap()?{map:I(P,this,S).call(this,this.getMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMap()&&null!==this.getMap()?{map:I(P,this,S).call(this,this.getMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("map","undefined or null")}}function S(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function A(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")}C.prototype.map=void 0,C.prototype.$reserved=void 0,C.prototype.$objectType=void 0,C.prototype.$unknownFields=void 0;var D=new WeakSet;class x{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=D),t.add(e),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o,a;if(e){if(t=t||new x,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)if(Array.isArray(e.value))if(0===e.value.length)t.setValue([]);else{for(o=[],s=e.value,a=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],r=0;r<s.length;r++)switch(a){case"string":case"integer":case"number":o.push(s[r]);break;case"common.v1.config.MapOfStringWrapper":i=C.constructFromObject(s[r],void 0),o.push(i);break;default:throw"Unknown list of type "+a+" in data"}t.setValue(o)}else switch(a=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,a){case"string":case"boolean":case"number":t.setValue(e.value);break;case"object":t.setValue(new Map(Object.entries(e.value)));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):A(D,this,U).call(this,this.getValue(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):A(D,this,U).call(this,this.getValue())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new j("name","undefined or null");if(!F.validateMaxLength(this.name,128))return new j("name","does not satisfy required maxLength constraint: 128");if(!F.validateMinLength(this.name,3))return new j("name","does not satisfy required minLength constraint: 3")}return"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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("value","undefined or null")}}function U(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}x.prototype.name=void 0,x.prototype.value=void 0,x.prototype.$reserved=void 0,x.prototype.$objectType=void 0,x.prototype.$unknownFields=void 0;const R={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(R).find(t=>R[t]===e);return null==t?R.$UNKNOWN:R[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case R.$UNKNOWN:case R.$REDACTED:case R.INFO:case R.WARNING:case R.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(R);const N=R;var L=new WeakSet;class J{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=L),t.add(e),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new J,e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCode(){return this.code}setCode(e){this.code=e}getMessage(){return this.message}setMessage(e){this.message=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("severity","undefined or null"):new j("locale","undefined or null"):new j("message","undefined or null"):new j("code","undefined or null")}}J.prototype.code=void 0,J.prototype.message=void 0,J.prototype.locale="en_US",J.prototype.severity=void 0,J.prototype.$reserved=void 0,J.prototype.$objectType=void 0,J.prototype.$unknownFields=void 0;var M=new WeakSet;class V{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=M),t.add(e),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new V,e.hasOwnProperty("href")&&null!==e.href&&void 0!==e.href&&t.setHref(e.href),e.hasOwnProperty("rel")&&null!==e.rel&&void 0!==e.rel&&t.setRel(e.rel),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getHref(){return this.href}setHref(e){this.href=e}getRel(){return this.rel}setRel(e){this.rel=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("rel","undefined or null"):new j("href","undefined or null")}}V.prototype.href=void 0,V.prototype.rel=void 0,V.prototype.$reserved=void 0,V.prototype.$objectType=void 0,V.prototype.$unknownFields=void 0;var B,_=new WeakSet;class K{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=_),t.add(e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new K,e.hasOwnProperty("flags")&&null!==e.flags&&void 0!==e.flags){for(o=[],s=e.flags,r=0;r<s.length;r++)i=O.constructFromObject(s[r],void 0),o.push(i);t.setFlags(o)}if(e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],s=e.links,r=0;r<s.length;r++)i=V.constructFromObject(s[r],void 0),o.push(i);t.setLinks(o)}if(e.hasOwnProperty("totalAvailableResults")&&null!==e.totalAvailableResults&&void 0!==e.totalAvailableResults&&t.setTotalAvailableResults(e.totalAvailableResults),e.hasOwnProperty("messages")&&null!==e.messages&&void 0!==e.messages){for(o=[],s=e.messages,r=0;r<s.length;r++)i=J.constructFromObject(s[r],void 0),o.push(i);t.setMessages(o)}if(e.hasOwnProperty("extraInfo")&&null!==e.extraInfo&&void 0!==e.extraInfo){for(o=[],s=e.extraInfo,r=0;r<s.length;r++)i=x.constructFromObject(s[r],void 0),o.push(i);t.setExtraInfo(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFlags(){return this.flags}setFlags(e){this.flags=e}getLinks(){return this.links}setLinks(e){this.links=e}getTotalAvailableResults(){return this.totalAvailableResults}setTotalAvailableResults(e){this.totalAvailableResults=e}getMessages(){return this.messages}setMessages(e){this.messages=e}getExtraInfo(){return this.extraInfo}setExtraInfo(e){this.extraInfo=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(e=>e.toJson(!1))}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{},...void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new j("flags","undefined or null");if(!F.validateMaxItems(this.flags,20))return new j("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new j("links","undefined or null");if(!F.validateMaxItems(this.links,20))return new j("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new j("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new j("messages","undefined or null");if(!F.validateMaxItems(this.messages,20))return new j("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new j("extraInfo","undefined or null");if(!F.validateMaxItems(this.extraInfo,20))return new j("extraInfo","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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}function W(e,t,n){q(e,t),t.set(e,n)}function q(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function H(e,t){return e.get(G(e,t))}function z(e,t,n){return e.set(G(e,t),n),n}function G(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")}K.prototype.flags=void 0,K.prototype.links=void 0,K.prototype.totalAvailableResults=void 0,K.prototype.messages=void 0,K.prototype.extraInfo=void 0,K.prototype.$reserved=void 0,K.prototype.$objectType=void 0,K.prototype.$unknownFields=void 0,y()(i());var X=new WeakMap,Q=new WeakMap,Y=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,se=new WeakMap,ie=new WeakMap,re=new WeakMap,oe=new WeakMap,ae=new WeakSet;class le{constructor(){var e;q(this,e=ae),e.add(this),W(this,X,void 0),W(this,Q,void 0),W(this,Y,void 0),W(this,Z,void 0),W(this,ee,void 0),W(this,te,void 0),W(this,ne,void 0),W(this,se,void 0),W(this,ie,void 0),W(this,re,void 0),W(this,oe,void 0),z(oe,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",z(se,this,"undefined"==typeof self?"localhost":self.location.hostname),this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},z(ee,this,3e4),z(te,this,3e4),z(ne,this,108e5),this.readTimeout=H(te,this),this.connectTimeout=H(ee,this),this.cache=!0,z(Q,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(i().agent)),this.requestAgent=null,z(re,this,null),this.allowVersionNegotiation=!0,z(ie,this,!1),this.debug=!1,z(Y,this,null),this.username=null,this.password=null,z(Z,this,!0),this.downloadDestination=null,this.loggerFile=null}set verifySsl(e){this.requestAgent=e?null:new(g().Agent)({rejectUnauthorized:e}),z(Z,this,e)}get verifySsl(){return H(Z,this)}set host(e){z(se,this,e),z(ie,this,!1),z(re,this,null)}get host(){return H(se,this)}set loggerFile(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=w().createWriteStream(e,{flags:"a"})),z(Y,this,new console.Console({stdout:e,stderr:e})))}addDefaultHeader(e,t){"Authorization"===e&&z(Q,this,null),this.defaultHeaders[e]=t}paramToString(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}buildUrl(e,t){if(e.match(/^\//)||(e="/"+e),void 0!==H(re,this)&&null!==H(re,this)&&null!==H(re,this).match(/v\d+\.\d+(\.[a|b]\d+)?/)&&"v4.1"!==H(re,this)){G(ae,this,Te).call(this,H(oe,this).INFO,null,"Changing uri",e,"to negotiated version",H(re,this));var n=new RegExp("(?<=/[-\\w]+/)v\\d+\\.\\d+(\\.[a|b]\\d+)?(?=/.*)","i");e=e.replace(n,H(re,this))}z(X,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);let s="";""!==H(X,this)&&""!==this.host&&""!==this.port?s=H(X,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(s=self.origin);var i=s+e;return i.replace(/\{([\w-]+)\}/g,(e,n)=>{var s;return s=t.hasOwnProperty(n)?this.paramToString(t[n]):e,encodeURIComponent(s)})}buildCollectionParam(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)}}setApiKey(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}addEtagToReservedMap(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){let s=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0)for(var n of t.getData())n.hasOwnProperty("$reserved")&&void 0!==n.get$Reserved()&&(n.get$Reserved().ETag=s);else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=s)}return t}static getEtag(e){let 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}static getValueForCaseInsensitiveKeyMatch(e,t){if(e&&t){const n=t.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===n);return s?e[s]:null}return null}getNegotiatedVersion(){return H(re,this)}negotiateVersion(e,t){return new Promise(n=>{!0===this.allowVersionNegotiation&&!1===H(ie,this)?this.callApiInternal("/api/security/unversioned/info","OPTIONS",{},{},{},{},null,t,[],["application/json"],Object).then(({data:t,response:s})=>{if(200===s.status&&t.hasOwnProperty("data")&&null!==t.data){const s=t.data,i="v4.1";if(G(ae,this,we).call(this,G(ae,this,me).call(this,s),G(ae,this,me).call(this,i)))return G(ae,this,Te).call(this,H(oe,this).WARN,null,"Server version",s,"is below minimum supported version",i,". Version negotiation will not be performed."),z(re,this,null),z(ie,this,!1),void n(e);z(re,this,G(ae,this,fe).call(this,"v4.1",s)),z(ie,this,!0),G(ae,this,Te).call(this,H(oe,this).INFO,null,"Negotiated Version with server :",H(re,this)),n(e)}else G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Could not fetch supported versions from server"),z(re,this,null),z(ie,this,!1),n(e)}).catch(t=>{G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Could not fetch supported versions from server"),z(re,this,null),z(ie,this,!1),n(e)}):n(e)})}callApi(e,t,n,s,i,r,o,a,l,d,u){return this.negotiateVersion(this,a).then(function(h){return h.callApiInternal(e,t,n,s,i,r,o,a,l,d,u)})}callApiInternal(e,t,s,r,o,a,l,d,u,h,p){var y=this.buildUrl(e,s);const v="undefined"!=typeof window&&void 0!==window.document;let g=["application/octet-stream","application/pdf","application/zip"];if(h&&h.length>0&&h.some(e=>g.includes(e))&&v&&this.downloadDestination)return new Promise((e,n)=>{const s=G(ae,this,Oe).call(this,y,t,r,o,l,d,u,h);fetch(s.url,s.options).then(t=>{if(!t.ok){const e=new Error(`HTTP error ${t.status}`);e.status=t.status,G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Error downloading file:",e),n(e)}if(!(this.downloadDestination instanceof WritableStream)){let e="Incompatible downloadDestination for Browser Environment, must be WritableStream";G(ae,this,Te).call(this,H(oe,this).ERROR,null,e),n(e)}const s=t.body.getReader(),i=this.downloadDestination.getWriter(),r=()=>s.read().then(({done:n,value:s})=>(n&&(i.close(),G(ae,this,Te).call(this,H(oe,this).INFO,null,"Finished streaming response"),e({data:{},response:t})),i.write(s).then(r)));return r()}).catch(e=>{G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Caught the following error :",e),n(e)})});var f=i()(t,y);if(f.oldCallback=f.callback,f.callback=function(e,t){if(t&&t.status){const e=t.status;if(e>=400&&408!==e&&429!==e&&503!==e&&504!==e&&(this._maxRetries=0),401===t.status&&this.header.Cookie&&(this.unset("Cookie"),this._maxRetries=1),429===e){let e=t.headers["retry-after"];if(e){let t=1e3*parseInt(e,10);this._retryDelays[this._retries]=t}}}this.oldCallback(e,t)},G(ae,this,pe).call(this,f,d),"GET"===t.toUpperCase()&&!1===this.cache&&(r._=(new Date).getTime()),f.query(G(ae,this,ce).call(this,r)),f.set(this.defaultHeaders).set(G(ae,this,ce).call(this,o)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==o["NTNX-Request-Id"]&&void 0!==o["NTNX-Request-Id"])){let e=c();f.set(G(ae,this,ce).call(this,{"NTNX-Request-Id":e}))}v||(this.downloadDestination=".",f.set(G(ae,this,ce).call(this,{"User-Agent":"Nutanix-security-js-client/4.1.2"}))),this.requestAgent&&f.agent(this.requestAgent);var m={};m.response=G(ae,this,$e).call(this,this.connectTimeout,H(ee,this)),m.deadline=G(ae,this,$e).call(this,this.readTimeout,H(te,this)),f.timeout(m);var $=o.hasOwnProperty("Content-Type")?o["Content-Type"]:G(ae,this,ue).call(this,u);if($?"multipart/form-data"!=$&&f.type($):f.header["Content-Type"]||f.type("application/json"),G(ae,this,Te).call(this,H(oe,this).INFO,null,"Request URL :",t,y),G(ae,this,Te).call(this,H(oe,this).DEBUG,G(ae,this,je),"Request Headers :",void 0===f.header?"":f.header),"application/x-www-form-urlencoded"===$)f.send(G(ae,this,ce).call(this,a));else if("multipart/form-data"==$){var b=G(ae,this,ce).call(this,a);for(var k in b)b.hasOwnProperty(k)&&(G(ae,this,he).call(this,b[k])?f.attach(k,b[k]):f.field(k,b[k]))}else{if("application/octet-stream"===$&&null!=l&&"function"==typeof l.pipe){if(G(ae,this,Te).call(this,H(oe,this).INFO,null,"Piping octet-stream request"),"function"==typeof l.pipe)l.pipe(f);else{let e;try{e=n(965)}catch(e){G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Error fetching steam/web")}l instanceof e.ReadableStream?l.pipeTo(new e.WritableStream({write(e){f.write(e)},close(){G(ae,this,Te).call(this,H(oe,this).INFO,null,"READABLE STREAM CLOSED")},abort(e){G(ae,this,Te).call(this,H(oe,this).ERROR,null,"READABLE STREAM ABORTED")}})):f.send(l)}return new Promise((t,n)=>{f.on("error",e=>{G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",s=>{G(ae,this,Ee).call(this,s,e,r,p,t,n)})})}["POST","PUT","PATCH"].includes(t.toUpperCase())&&l&&f.send(l)}"Blob"==typeof p?f.responseType("blob"):"String"===p&&f.responseType("string"),G(ae,this,ke).call(this,f),G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Request Body :",void 0===f._data?"":f._data);var T=o.hasOwnProperty("Accept")&&null!=o.Accept?o.Accept:h.join(", ");return T&&f.accept(T),new Promise((n,s)=>{f.buffer(!1).redirects(0).retry(this.maxRetryAttempts,this.retryInterval,[]).withCredentials(this.withCredentials).on("error",e=>{G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Caught the following error :",e)}).end((o,a)=>{if(o)G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Caught error during the request!"),G(ae,this,Te).call(this,H(oe,this).ERROR,null,o),404===o.status&&(z(ie,this,!1),z(re,this,null)),null!==o.response&&void 0!==o.response?o.data=G(ae,this,ve).call(this,o.response,p):o.data=G(ae,this,ye).call(this,o),s(o);else{G(ae,this,Te).call(this,H(oe,this).INFO,null,"Response Status :",a.status),G(ae,this,Te).call(this,H(oe,this).DEBUG,G(ae,this,je),"Response Headers :",a.headers);let o="";if(a.headers.hasOwnProperty("content-type")&&(o=a.headers["content-type"]),g.includes(o)){if(!v){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",t=w().createWriteStream(e);G(ae,this,Ie).call(this,a,t,e,n,s,p)}}else if(302==a.status){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",r=this;G(ae,this,Te).call(this,H(oe,this).INFO,null,"Redirecting to :",a.headers.location);var l=i()(t,a.headers.location);l.set(f.header),a.headers.hasOwnProperty("x-redirect-token")&&(G(ae,this,Te).call(this,H(oe,this).INFO,null,"Writing X-Redirect-Token into Cookie"),l.set("Cookie",a.headers["x-redirect-token"])),this.requestAgent&&l.agent(this.requestAgent),l.redirects(0),l.withCredentials(this.withCredentials),l.buffer(!1);let o=w().createWriteStream(e);l.pipe(o),l.on("response",function(t){G(ae,r,Te).call(r,H(oe,r).INFO,null,"Received response after redirection :",t.status),G(ae,r,Ie).call(r,t,o,e,n,s,p)})}else G(ae,this,Ee).call(this,a,e,r,p,n,s)}})})}static addEtagReferenceToHeader(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){let n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}static parseDate(e){return new Date(e)}static parseQueryParam(e,t,n,s){let i=null;if(void 0!==t&&t.hasOwnProperty(n)&&(i=t[n]),null===i&&("string"==typeof e||e instanceof String)){const t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp(`${t}=([0-9]+)`));s&&(i=s[1])}return null===i&&(i=s),i}static convertToType(e,t){if(null==e)return e;switch(t){case"Boolean":return Boolean(e);case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return le.parseDate(String(e));case"Blob":return e;default:if(t===Object)return e;if("function"==typeof t)return t.constructFromObject(e);if(Array.isArray(t)){var n=t[0];return e.map(e=>le.convertToType(e,n))}if("object"==typeof t){var s,i;for(var r in t)if(t.hasOwnProperty(r)){s=r,i=t[r];break}var o={};for(var r in e)if(e.hasOwnProperty(r)){var a=le.convertToType(r,s),l=le.convertToType(e[r],i);o[a]=l}return o}return e}}static constructFromObject(e,t,n){if(Array.isArray(e))for(var s=0;s<e.length;s++)e.hasOwnProperty(s)&&(t[s]=le.convertToType(e[s],n));else for(var i in e)e.hasOwnProperty(i)&&(t[i]=le.convertToType(e[i],n))}}function de(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ue(e){for(var t=0;t<e.length;t++)if(G(ae,this,de).call(this,e[t]))return e[t];return e[0]}function he(e){{let t;try{t=n(799)}catch(e){}if(t&&t.ReadStream&&e instanceof t.ReadStream)return!0}return"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof b.Blob&&e instanceof b.Blob||"function"==typeof File&&e instanceof File}function ce(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var s=e[n];G(ae,this,he).call(this,s)||Array.isArray(s)?t[n]=s:t[n]=this.paramToString(s)}return t}function pe(e,t){t.forEach(t=>{var n=this.authentications[t];switch(n.type){case"basic":n.username||n.password?e.auth(n.username||"",n.password||""):(this.username||this.password)&&e.auth(this.username||"",this.password||""),G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(n.apiKey){var s={};n.apiKeyPrefix?s[n.name]=n.apiKeyPrefix+" "+n.apiKey:s[n.name]=n.apiKey,"header"===n.in?e.set(s):e.query(s)}G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":n.accessToken&&e.set({Authorization:"Bearer "+n.accessToken}),G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"oauth2 applied to request");break;default:throw G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Unknown authentication type:",n.type),new Error("Unknown authentication type: "+n.type)}})}function ye(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ve(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(n=new t).data=new b.Blob([e.text],{type:e.headers["content-type"]});let s=new O;s.name="hasError",s.value=!1;let i=[s],r=new K;return r.flags=i,n.metadata=r,n}var n;return(null==(n=e.body)||"object"==typeof n&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),B.convertToType(n,t)}function ge(e,t,n){if(!(e instanceof r))return;const s=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),i=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,s,i)}function fe(e,t){if(!e||!t)return e;let n=G(ae,this,me).call(this,e),s=G(ae,this,me).call(this,t);return!n.family===s.family||G(ae,this,we).call(this,n,s)?e:t}function we(e,t){if(parseInt(e.revision)!=parseInt(t.revision))return parseInt(e.revision)<parseInt(t.revision);if("released"===e.versionType)return!1;let n=e.versionType.substring(0,1),s=t.versionType.substring(0,1),i=parseInt(e.versionType.substring(1)),r="released"===t.versionType?0:parseInt(t.versionType.substring(1));return n===s?i<r:"a"===n||"released"===t.versionType}function me(e){let t={};if("unversioned"===e)t.family="unversioned",t.versionType="released";else{let n=e.toString().split(".");"unversioned"===n[0]?(t.family="unversioned",t.versionType=n[1]):(t.family=n[0].substring(1),t.revision=n[1],2==n.length?t.versionType="released":t.versionType=n[2])}return t}function $e(e,t){return e<=0?e=t:e>H(ne,this)&&(e=H(ne,this)),e}function be(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){let t="",n=e.headers["set-cookie"];if(n.length>0){for(let e of n)e=e.split(";")[0],e.includes("=")&&(e.trim(),t=t.concat(e).concat(";"));""!==t&&(t=t.substr(0,t.length-1))}z(Q,this,t),G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Retained cookie :",t)}else z(Q,this,null)}function ke(e){null!=H(Q,this)&&e.set(G(ae,this,ce).call(this,{Cookie:H(Q,this)}))}function Te(e,t,...n){if("object"==typeof e&&"key"in e&&"value"in e&&"symbol"==typeof e.value||(e=H(oe,this).INFO),!G(ae,this,Fe).call(this,e)){n=n.map(e=>"string"==typeof e?e:t?t(e):JSON.stringify(e));let s=n.join(" ");s=(new Date).toISOString()+" "+e.key+" - "+s,void 0!==H(Y,this)&&null!==H(Y,this)&&"function"==typeof H(Y,this).log?H(Y,this).log(s):console.log(s)}}function Fe(e){return!this.debug&&e===H(oe,this).DEBUG}function je(e){if("object"!=typeof e)return e;let t="\n";return e&&Object.keys(e).forEach(n=>{t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function Ee(e,t,n,s,i,r){try{var o=G(ae,this,ve).call(this,e,s);G(ae,this,Te).call(this,H(oe,this).INFO,null,"Response Status :",e.status),G(ae,this,Te).call(this,H(oe,this).DEBUG,G(ae,this,je),"Response Headers :",e.headers),G(ae,this,be).call(this,e||{}),G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Response Body :",o),204==e.status&&null==o?i({data:o,response:e}):e.ok&&null!=o?(this.addEtagToReservedMap(e,o),G(ae,this,ge).call(this,o,t,n),i({data:o,response:e})):(G(ae,this,Te).call(this,H(oe,this).ERROR,null,o),r({...e.error,data:o}))}catch(e){G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Caught error while processing response!"),G(ae,this,Te).call(this,H(oe,this).ERROR,null,e),e.data=G(ae,this,ye).call(this,e),r(e)}}function Oe(e,t,n,s,i,r,o,a){let l={};r.forEach(e=>{const t=this.authentications[e];switch(t.type){case"basic":let e="",s="";if(t.username||t.password?(e=t.username||"",s=t.password||""):(this.username||this.password)&&(e=this.username||"",s=this.password||""),e||s){const t=btoa(`${e}:${s}`);l.Authorization=`Basic ${t}`}G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(t.apiKey){let e="";e=t.apiKeyPrefix?t.apiKeyPrefix+" "+t.apiKey:t.apiKey,"header"===t.in?l[t.name]="Bearer "+e:"query"===t.in&&(n[t.name]=e)}G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":t.accessToken&&(l.Authorization="Bearer "+t.accessToken),G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"oauth2 applied to request");break;default:throw G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Unknown authentication type:",t.type),new Error("Unknown authentication type: "+t.type)}}),"GET"===t.toUpperCase()&&!1===this.cache&&(n.cache="false");const d=G(ae,this,ce).call(this,n),u=Object.keys(d).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(d[e])}`).join("&");let h=e;u&&(h+=(h.includes("?")?"&":"?")+u);const p={...this.defaultHeaders,...G(ae,this,ce).call(this,s),...l};if(!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==s["NTNX-Request-Id"]&&void 0!==s["NTNX-Request-Id"])){let e=c();p["NTNX-Request-Id"]=e}null!=H(Q,this)&&(p.Cookie=G(ae,this,ce).call(this,{Cookie:H(Q,this)}));var y=s.hasOwnProperty("Content-Type")?s["Content-Type"]:G(ae,this,ue).call(this,o);p["Content-Type"]=y;var v=s.hasOwnProperty("Accept")&&null!=s.Accept?s.Accept:a.join(", ");return v&&(p.Accept=v),G(ae,this,Te).call(this,H(oe,this).INFO,null,"Request URL :",t,e),G(ae,this,Te).call(this,H(oe,this).DEBUG,G(ae,this,je),"Request Headers :",p),G(ae,this,Te).call(this,H(oe,this).DEBUG,null,"Request Body :",i||""),{url:h,options:{method:t,headers:p,body:i,credentials:this.withCredentials?"include":"same-origin"}}}function Ie(e,t,n,s,i,r){G(ae,this,Te).call(this,H(oe,this).INFO,null,"Streaming response to : ",n);try{e.on("data",e=>{t.write(e)})}catch(e){G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Issue while downloading file",e)}let o=new r,a="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){let t=e.headers["content-disposition"].match(/.*filename=\"(?<filename>.*)\".*/),n=$().parse(t.groups.filename);a=this.downloadDestination+"/"+n.name+"_"+Date.now()+n.ext,o.data={path:$().parse(a),$objectType:"Path"};let s=new O;s.name="hasError",s.value=!1;let i=[s],r=new K;r.flags=i,o.metadata=r}e.on("end",()=>{G(ae,this,Te).call(this,H(oe,this).INFO,null,"Finished streaming response"),0!==a.length?(G(ae,this,Te).call(this,H(oe,this).INFO,null,"Content-Disposition header found [",a,"] is final filename"),t.close(),w().renameSync(n,a),s({data:o,response:e})):(G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),s({data:o,response:e}))}),e.on("error",e=>{G(ae,this,Te).call(this,H(oe,this).ERROR,null,"Caught the following error :",e),error.data=G(ae,this,ye).call(this,error),i(e)})}B=le,le.instance=new le;var Pe=new WeakSet;class Ce{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Pe),t.add(e),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r3"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ce,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new j("extId","undefined or null");if(!F.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 j("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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}function Se(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")}Ce.prototype.extId=void 0,Ce.prototype.$reserved=void 0,Ce.prototype.$objectType=void 0,Ce.prototype.$unknownFields=void 0;var Ae=new WeakSet;class De{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ae),t.add(e),this.$objectType="security.v4.error.AppMessage",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new De,e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("errorGroup")&&null!==e.errorGroup&&void 0!==e.errorGroup&&t.setErrorGroup(e.errorGroup),e.hasOwnProperty("argumentsMap")&&null!==e.argumentsMap&&void 0!==e.argumentsMap&&t.setArgumentsMap(e.argumentsMap),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMessage(){return this.message}setMessage(e){this.message=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getCode(){return this.code}setCode(e){this.code=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getErrorGroup(){return this.errorGroup}setErrorGroup(e){this.errorGroup=e}getArgumentsMap(){return this.argumentsMap}setArgumentsMap(e){this.argumentsMap=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...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()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ae,this,xe).call(this,this.getArgumentsMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...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()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ae,this,xe).call(this,this.getArgumentsMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("argumentsMap","undefined or null"):new j("errorGroup","undefined or null"):new j("locale","undefined or null"):new j("code","undefined or null"):new j("severity","undefined or null"):new j("message","undefined or null")}}function xe(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}De.prototype.message=void 0,De.prototype.severity=void 0,De.prototype.code=void 0,De.prototype.locale="en_US",De.prototype.errorGroup=void 0,De.prototype.argumentsMap=void 0,De.prototype.$reserved=void 0,De.prototype.$objectType=void 0,De.prototype.$unknownFields=void 0;var Ue=new WeakSet;class Re{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ue),t.add(e),this.$objectType="security.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Re,e.hasOwnProperty("location")&&null!==e.location&&void 0!==e.location&&t.setLocation(e.location),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("attributePath")&&null!==e.attributePath&&void 0!==e.attributePath&&t.setAttributePath(e.attributePath),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getLocation(){return this.location}setLocation(e){this.location=e}getMessage(){return this.message}setMessage(e){this.message=e}getAttributePath(){return this.attributePath}setAttributePath(e){this.attributePath=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("attributePath","undefined or null"):new j("message","undefined or null"):new j("location","undefined or null")}}function Ne(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")}Re.prototype.location=void 0,Re.prototype.message=void 0,Re.prototype.attributePath=void 0,Re.prototype.$reserved=void 0,Re.prototype.$objectType=void 0,Re.prototype.$unknownFields=void 0;var Le=new WeakSet;class Je{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Le),t.add(e),this.$objectType="security.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new Je,e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("statusCode")&&null!==e.statusCode&&void 0!==e.statusCode&&t.setStatusCode(e.statusCode),e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error&&t.setError(e.error),e.hasOwnProperty("path")&&null!==e.path&&void 0!==e.path&&t.setPath(e.path),e.hasOwnProperty("validationErrorMessages")&&null!==e.validationErrorMessages&&void 0!==e.validationErrorMessages){for(o=[],s=e.validationErrorMessages,r=0;r<s.length;r++)i=Re.constructFromObject(s[r],void 0),o.push(i);t.setValidationErrorMessages(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}getStatusCode(){return this.statusCode}setStatusCode(e){this.statusCode=e}getError(){return this.error}setError(e){this.error=e}getPath(){return this.path}setPath(e){this.path=e}getValidationErrorMessages(){return this.validationErrorMessages}setValidationErrorMessages(e){this.validationErrorMessages=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Ne(Le,this,Me).call(this,this.getTimestamp(),!1)}:{},...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(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("validationErrorMessages","undefined or null"):new j("path","undefined or null"):new j("error","undefined or null"):new j("statusCode","undefined or null"):new j("timestamp","undefined or null")}}function Me(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ve(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")}Je.prototype.timestamp=void 0,Je.prototype.statusCode=void 0,Je.prototype.error=void 0,Je.prototype.path=void 0,Je.prototype.validationErrorMessages=void 0,Je.prototype.$reserved=void 0,Je.prototype.$objectType=void 0,Je.prototype.$unknownFields=void 0;var Be=new WeakSet;class _e{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Be),t.add(e),this.$objectType="security.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o,a;if(e){if(t=t||new _e,e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error)if(Array.isArray(e.error))if(0===e.error.length)t.setError([]);else{for(o=[],s=e.error,a=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],r=0;r<s.length;r++){if("security.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";i=De.constructFromObject(s[r],void 0),o.push(i)}t.setError(o)}else{if(a=e.error.hasOwnProperty("$objectType")?e.error.$objectType:typeof e.error,"security.v4.error.SchemaValidationError"!==a)throw"Unknown datatype "+a+" in data";t.setError(Je.constructFromObject(e.error,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getError(){return this.error}setError(e){this.error=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!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(e=>void 0!==e.toJson?e.toJson(!1):e):Ve(Be,this,Ke).call(this,this.getError(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson():e):Ve(Be,this,Ke).call(this,this.getError())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("error","undefined or null")}}function Ke(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function We(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")}_e.prototype.error=void 0,_e.prototype.$reserved=void 0,_e.prototype.$objectType=void 0,_e.prototype.$unknownFields=void 0;var qe=new WeakSet;class He extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=qe),t.add(e),this.$objectType="security.v4.config.UpdateCredentialApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new He,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ce.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):We(qe,this,ze).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):We(qe,this,ze).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function ze(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}He.prototype.metadata=void 0,He.prototype.data=void 0,He.prototype.$reserved=void 0,He.prototype.$objectType=void 0,He.prototype.$unknownFields=void 0;var Ge=new WeakSet;class Xe{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ge),t.add(e),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xe,e.hasOwnProperty("tenantId")&&null!==e.tenantId&&void 0!==e.tenantId&&t.setTenantId(e.tenantId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTenantId(){return this.tenantId}setTenantId(e){this.tenantId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new j("tenantId","undefined or null");if(!F.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 j("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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}Xe.prototype.tenantId=void 0,Xe.prototype.$reserved=void 0,Xe.prototype.$objectType=void 0,Xe.prototype.$unknownFields=void 0;var Qe=new WeakSet;class Ye extends Xe{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Qe),t.add(e),this.$objectType="common.v1.response.ExternalizableAbstractModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new Ye,Xe.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],s=e.links,r=0;r<s.length;r++)i=V.constructFromObject(s[r],void 0),o.push(i);t.setLinks(o)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getLinks(){return this.links}setLinks(e){this.links=e}toJson(e){return!1===e?{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new j("extId","undefined or null");if(null==e){if(!F.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 j("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===T.update&&!F.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 j("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}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new j("links","undefined or null");if(!F.validateMaxItems(this.links,20))return new j("links","does not satisfy required maxItems constraint: 20")}return new j(t,"no such property exists")}}Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var Ze=new WeakSet;class et{constructor(e,t){var n,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,s=Ze),s.add(n),this.username=e,this.password=t,this.$objectType="common.v1.config.BasicAuth",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new et,e.hasOwnProperty("username")&&null!==e.username&&void 0!==e.username&&t.setUsername(e.username),e.hasOwnProperty("password")&&null!==e.password&&void 0!==e.password&&t.setPassword(e.password),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getUsername(){return this.username}setUsername(e){this.username=e}getPassword(){return this.password}setPassword(e){this.password=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["username","password"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("username"===t){if(void 0===this.username||null===this.username)return new j("username","undefined or null");if(!F.validateMaxLength(this.username,256))return new j("username","does not satisfy required maxLength constraint: 256");if(!F.validateMinLength(this.username,3))return new j("username","does not satisfy required minLength constraint: 3")}return"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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("password","undefined or null")}}et.prototype.username=void 0,et.prototype.password=void 0,et.prototype.$reserved=void 0,et.prototype.$objectType=void 0,et.prototype.$unknownFields=void 0;var tt=new WeakSet;class nt{constructor(e){var t,n;(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.credential=e,this.$objectType="security.v4.config.BasicAuthCredential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new nt,e.hasOwnProperty("credential")&&null!==e.credential&&void 0!==e.credential&&t.setCredential(et.constructFromObject(e.credential)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCredential(){return this.credential}setCredential(e){this.credential=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["credential"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"credential"!==t||void 0!==this.credential&&null!==this.credential?"$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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("credential","undefined or null")}}nt.prototype.credential=void 0,nt.prototype.$reserved=void 0,nt.prototype.$objectType=void 0,nt.prototype.$unknownFields=void 0;var st=new WeakSet;class it extends nt{constructor(e){var t,n;super(e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=st),n.add(t),this.$objectType="security.v4.config.BmcCredential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new it,nt.constructFromObject(e,t,!0),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&t.setType(e.type),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getType(){return this.type}setType(e){this.type=e}toJson(e){return!1===e?{...void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{},...void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["credential"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"type"!==t||void 0!==this.type&&null!==this.type?new j(t,"no such property exists"):new j("type","undefined or null")}}it.prototype.type=void 0,nt.prototype.credential=void 0;const rt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INTERSIGHT_SAAS:"INTERSIGHT_SAAS",INTERSIGHT_VIRTUAL_APPLIANCE:"INTERSIGHT_VIRTUAL_APPLIANCE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(rt).find(t=>rt[t]===e);return null==t?rt.$UNKNOWN:rt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case rt.$UNKNOWN:case rt.$REDACTED:case rt.INTERSIGHT_SAAS:case rt.INTERSIGHT_VIRTUAL_APPLIANCE:return;default:throw new Error("Invalid : must be IntersightConnectionType.{ $UNKNOWN|$REDACTED|INTERSIGHT_SAAS|INTERSIGHT_VIRTUAL_APPLIANCE }")}}};Object.freeze(rt);const ot=rt;var at=new WeakSet;class lt{constructor(e,t){var n,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,s=at),s.add(n),this.apiKey=e,this.secretKey=t,this.$objectType="security.v4.config.KeyBasedAuth",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new lt,e.hasOwnProperty("apiKey")&&null!==e.apiKey&&void 0!==e.apiKey&&t.setApiKey(e.apiKey),e.hasOwnProperty("secretKey")&&null!==e.secretKey&&void 0!==e.secretKey&&t.setSecretKey(e.secretKey),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getApiKey(){return this.apiKey}setApiKey(e){this.apiKey=e}getSecretKey(){return this.secretKey}setSecretKey(e){this.secretKey=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getApiKey()&&null!==this.getApiKey()?{apiKey:this.getApiKey()}:{},...void 0!==this.getSecretKey()&&null!==this.getSecretKey()?{secretKey:this.getSecretKey()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["apiKey","secretKey"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("apiKey"===t){if(void 0===this.apiKey||null===this.apiKey)return new j("apiKey","undefined or null");if(!F.validateMaxLength(this.apiKey,1024))return new j("apiKey","does not satisfy required maxLength constraint: 1024");if(!F.validateMinLength(this.apiKey,1))return new j("apiKey","does not satisfy required minLength constraint: 1")}if("secretKey"===t){if(void 0===this.secretKey||null===this.secretKey)return new j("secretKey","undefined or null");if(!F.validateMaxLength(this.secretKey,2048))return new j("secretKey","does not satisfy required maxLength constraint: 2048");if(!F.validateMinLength(this.secretKey,1))return new j("secretKey","does not satisfy required minLength constraint: 1")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}lt.prototype.apiKey=void 0,lt.prototype.secretKey=void 0,lt.prototype.$reserved=void 0,lt.prototype.$objectType=void 0,lt.prototype.$unknownFields=void 0;var dt=new WeakSet;class ut{constructor(e){var t,n;(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.credential=e,this.$objectType="security.v4.config.KeyBasedAuthCredential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ut,e.hasOwnProperty("credential")&&null!==e.credential&&void 0!==e.credential&&t.setCredential(lt.constructFromObject(e.credential)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCredential(){return this.credential}setCredential(e){this.credential=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["credential"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"credential"!==t||void 0!==this.credential&&null!==this.credential?"$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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("credential","undefined or null")}}ut.prototype.credential=void 0,ut.prototype.$reserved=void 0,ut.prototype.$objectType=void 0,ut.prototype.$unknownFields=void 0;var ht=new WeakSet;class ct extends ut{constructor(e,t,n){var s,i;super(n),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(s=this,i=ht),i.add(s),this.url=e,this.deploymentType=t,this.$objectType="security.v4.config.IntersightCredential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ct,ut.constructFromObject(e,t,!0),e.hasOwnProperty("url")&&null!==e.url&&void 0!==e.url&&t.setUrl(e.url),e.hasOwnProperty("deploymentType")&&null!==e.deploymentType&&void 0!==e.deploymentType&&t.setDeploymentType(ot.constructFromObject(e.deploymentType)),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&t.setType(e.type),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getUrl(){return this.url}setUrl(e){this.url=e}getDeploymentType(){return this.deploymentType}setDeploymentType(e){this.deploymentType=e}getType(){return this.type}setType(e){this.type=e}toJson(e){return!1===e?{...void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{},...void 0!==this.getDeploymentType()&&null!==this.getDeploymentType()?{deploymentType:this.getDeploymentType()}:{},...void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{},...void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{},...void 0!==this.getDeploymentType()&&null!==this.getDeploymentType()?{deploymentType:this.getDeploymentType()}:{},...void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["credential","url","deploymentType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("url"===t){if(void 0===this.url||null===this.url)return new j("url","undefined or null");if(!F.validatePattern(this.url,/^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new j("url","does not satisfy required pattern: /^((http[s]?|nfs):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}return"deploymentType"!==t||void 0!==this.deploymentType&&null!==this.deploymentType?"type"!==t||void 0!==this.type&&null!==this.type?new j(t,"no such property exists"):new j("type","undefined or null"):new j("deploymentType","undefined or null")}}ct.prototype.url=void 0,ct.prototype.deploymentType=void 0,ct.prototype.type=void 0,ut.prototype.credential=void 0;var pt=new WeakSet;class yt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=pt),t.add(e),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new yt,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new j("value","undefined or null");if(!F.validatePattern(this.value,/^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/))return new j("value","does not satisfy required pattern: /^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}yt.prototype.value=void 0,yt.prototype.$reserved=void 0,yt.prototype.$objectType=void 0,yt.prototype.$unknownFields=void 0;var vt=new WeakSet;class gt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=vt),n.add(t),this.value=e,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new gt,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("prefixLength")&&null!==e.prefixLength&&void 0!==e.prefixLength&&t.setPrefixLength(e.prefixLength),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getPrefixLength(){return this.prefixLength}setPrefixLength(e){this.prefixLength=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},...void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["value"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new j("value","undefined or null");if(!F.validatePattern(this.value,/^(?:(?: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 j("value","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]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new j("prefixLength","undefined or null");if(!F.validateMaximum(this.prefixLength,32))return new j("prefixLength","does not satisfy required maximum constraint: 32");if(!F.validateMinimum(this.prefixLength,0))return new j("prefixLength","does not satisfy required minimum constraint: 0")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}gt.prototype.value=void 0,gt.prototype.prefixLength=32,gt.prototype.$reserved=void 0,gt.prototype.$objectType=void 0,gt.prototype.$unknownFields=void 0;var ft=new WeakSet;class wt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=ft),n.add(t),this.value=e,this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new wt,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("prefixLength")&&null!==e.prefixLength&&void 0!==e.prefixLength&&t.setPrefixLength(e.prefixLength),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getPrefixLength(){return this.prefixLength}setPrefixLength(e){this.prefixLength=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},...void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["value"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new j("value","undefined or null");if(!F.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new j("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new j("prefixLength","undefined or null");if(!F.validateMaximum(this.prefixLength,128))return new j("prefixLength","does not satisfy required maximum constraint: 128");if(!F.validateMinimum(this.prefixLength,0))return new j("prefixLength","does not satisfy required minimum constraint: 0")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}wt.prototype.value=void 0,wt.prototype.prefixLength=128,wt.prototype.$reserved=void 0,wt.prototype.$objectType=void 0,wt.prototype.$unknownFields=void 0;var mt=new WeakSet;class $t{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=mt),t.add(e),this.$objectType="common.v1.config.IPAddressOrFQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new $t,e.hasOwnProperty("ipv4")&&null!==e.ipv4&&void 0!==e.ipv4&&t.setIpv4(gt.constructFromObject(e.ipv4)),e.hasOwnProperty("ipv6")&&null!==e.ipv6&&void 0!==e.ipv6&&t.setIpv6(wt.constructFromObject(e.ipv6)),e.hasOwnProperty("fqdn")&&null!==e.fqdn&&void 0!==e.fqdn&&t.setFqdn(yt.constructFromObject(e.fqdn)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIpv4(){return this.ipv4}setIpv4(e){this.ipv4=e}getIpv6(){return this.ipv6}setIpv6(e){this.ipv6=e}getFqdn(){return this.fqdn}setFqdn(e){this.fqdn=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}hasIpv4(){return!(void 0===this.ipv4||null===this.ipv4)}hasIpv6(){return!(void 0===this.ipv6||null===this.ipv6)}hasFqdn(){return!(void 0===this.fqdn||null===this.fqdn)}isValid(){return this.hasIpv4()||this.hasIpv6()||this.hasFqdn()}toJson(e){return{...void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{},...void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{},...void 0!==this.getFqdn()&&null!==this.getFqdn()?{fqdn:this.getFqdn().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"fqdn"!==t||void 0!==this.fqdn&&null!==this.fqdn?"$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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("fqdn","undefined or null"):new j("ipv6","undefined or null"):new j("ipv4","undefined or null")}}$t.prototype.ipv4=void 0,$t.prototype.ipv6=void 0,$t.prototype.fqdn=void 0,$t.prototype.$reserved=void 0,$t.prototype.$objectType=void 0,$t.prototype.$unknownFields=void 0;var bt=new WeakSet;class kt extends nt{constructor(e,t){var n,s;super(t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,s=bt),s.add(n),this.address=e,this.$objectType="security.v4.config.VcenterCredential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new kt,nt.constructFromObject(e,t,!0),e.hasOwnProperty("address")&&null!==e.address&&void 0!==e.address&&t.setAddress($t.constructFromObject(e.address)),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&t.setType(e.type),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getAddress(){return this.address}setAddress(e){this.address=e}getType(){return this.type}setType(e){this.type=e}toJson(e){return!1===e?{...void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{},...void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{},...void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{},...void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["credential","address"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"address"!==t||void 0!==this.address&&null!==this.address?"type"!==t||void 0!==this.type&&null!==this.type?new j(t,"no such property exists"):new j("type","undefined or null"):new j("address","undefined or null")}}function Tt(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")}kt.prototype.address=void 0,kt.prototype.type=void 0,nt.prototype.credential=void 0;var Ft=new WeakSet;class jt extends Ye{constructor(e,t){var n,s;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,s=Ft),s.add(n),this.name=e,this.credentialDetails=t,this.$objectType="security.v4.config.Credential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new jt,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("credentialDetails")&&null!==e.credentialDetails&&void 0!==e.credentialDetails)switch(s=e.credentialDetails.hasOwnProperty("$objectType")?e.credentialDetails.$objectType:typeof e.credentialDetails,s){case"security.v4.config.BmcCredential":t.setCredentialDetails(it.constructFromObject(e.credentialDetails,void 0));break;case"security.v4.config.VcenterCredential":t.setCredentialDetails(kt.constructFromObject(e.credentialDetails,void 0));break;case"security.v4.config.IntersightCredential":t.setCredentialDetails(ct.constructFromObject(e.credentialDetails,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("isValid")&&null!==e.isValid&&void 0!==e.isValid&&t.setIsValid(e.isValid),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getCredentialDetails(){return this.credentialDetails}setCredentialDetails(e){this.credentialDetails=e}getIsValid(){return this.isValid}setIsValid(e){this.isValid=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getCredentialDetails()&&null!==this.getCredentialDetails()?{credentialDetails:void 0!==this.getCredentialDetails().toJson?this.getCredentialDetails().toJson(!1):Array.isArray(this.getCredentialDetails())?this.getCredentialDetails().map(e=>void 0!==e.toJson?e.toJson(!1):e):Tt(Ft,this,Et).call(this,this.getCredentialDetails(),!1)}:{},...void 0!==this.getIsValid()&&null!==this.getIsValid()?{isValid:this.getIsValid()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getCredentialDetails()&&null!==this.getCredentialDetails()?{credentialDetails:void 0!==this.getCredentialDetails().toJson?this.getCredentialDetails().toJson():Array.isArray(this.getCredentialDetails())?this.getCredentialDetails().map(e=>void 0!==e.toJson?e.toJson():e):Tt(Ft,this,Et).call(this,this.getCredentialDetails())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["name","credentialDetails"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new j("name","undefined or null");if(!F.validateMaxLength(this.name,256))return new j("name","does not satisfy required maxLength constraint: 256");if(!F.validateMinLength(this.name,1))return new j("name","does not satisfy required minLength constraint: 1")}return"credentialDetails"!==t||void 0!==this.credentialDetails&&null!==this.credentialDetails?"isValid"!==t||void 0!==this.isValid&&null!==this.isValid?new j(t,"no such property exists"):new j("isValid","undefined or null"):new j("credentialDetails","undefined or null")}}function Et(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ot(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")}jt.prototype.name=void 0,jt.prototype.credentialDetails=void 0,jt.prototype.isValid=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var It=new WeakSet;class Pt extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=It),t.add(e),this.$objectType="security.v4.config.ListCredentialsApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new Pt,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++){if("security.v4.config.Credential"!==l)throw"Unknown list of type "+l+" in data";i=jt.constructFromObject(s[o],void 0),a.push(i)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"security.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ot(It,this,Ct).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ot(It,this,Ct).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function Ct(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function St(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")}Pt.prototype.metadata=void 0,Pt.prototype.data=void 0,Pt.prototype.$reserved=void 0,Pt.prototype.$objectType=void 0,Pt.prototype.$unknownFields=void 0;var At=new WeakSet;class Dt extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=At),t.add(e),this.$objectType="security.v4.config.GetCredentialApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Dt,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"security.v4.config.Credential":t.setData(jt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):St(At,this,xt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):St(At,this,xt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function xt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ut(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")}Dt.prototype.metadata=void 0,Dt.prototype.data=void 0,Dt.prototype.$reserved=void 0,Dt.prototype.$objectType=void 0,Dt.prototype.$unknownFields=void 0;var Rt=new WeakSet;class Nt extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Rt),t.add(e),this.$objectType="security.v4.config.DeleteCredentialApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Nt,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ut(Rt,this,Lt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ut(Rt,this,Lt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function Lt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Jt(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")}Nt.prototype.metadata=void 0,Nt.prototype.data=void 0,Nt.prototype.$reserved=void 0,Nt.prototype.$objectType=void 0,Nt.prototype.$unknownFields=void 0;var Mt=new WeakSet;class Vt extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Mt),t.add(e),this.$objectType="security.v4.config.CreateCredentialApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Vt,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ce.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Jt(Mt,this,Bt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Jt(Mt,this,Bt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function Bt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function _t(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")}Vt.prototype.metadata=void 0,Vt.prototype.data=void 0,Vt.prototype.$reserved=void 0,Vt.prototype.$objectType=void 0,Vt.prototype.$unknownFields=void 0;var Kt=new WeakSet;class Wt extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Kt),t.add(e),this.$objectType="security.v4.management.AssociatePoliciesApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Wt,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ce.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):_t(Kt,this,qt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):_t(Kt,this,qt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function qt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Wt.prototype.metadata=void 0,Wt.prototype.data=void 0,Wt.prototype.$reserved=void 0,Wt.prototype.$objectType=void 0,Wt.prototype.$unknownFields=void 0;const Ht={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PROTECTION_POLICY:"PROTECTION_POLICY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ht).find(t=>Ht[t]===e);return null==t?Ht.$UNKNOWN:Ht[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ht.$UNKNOWN:case Ht.$REDACTED:case Ht.PROTECTION_POLICY:return;default:throw new Error("Invalid : must be PolicyType.{ $UNKNOWN|$REDACTED|PROTECTION_POLICY }")}}};Object.freeze(Ht);const zt=Ht;var Gt=new WeakSet;class Xt{constructor(e,t){var n,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,s=Gt),s.add(n),this.policyExtId=e,this.policyType=t,this.$objectType="security.v4.management.SecuredPolicy",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xt,e.hasOwnProperty("policyExtId")&&null!==e.policyExtId&&void 0!==e.policyExtId&&t.setPolicyExtId(e.policyExtId),e.hasOwnProperty("policyType")&&null!==e.policyType&&void 0!==e.policyType&&t.setPolicyType(zt.constructFromObject(e.policyType)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPolicyExtId(){return this.policyExtId}setPolicyExtId(e){this.policyExtId=e}getPolicyType(){return this.policyType}setPolicyType(e){this.policyType=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getPolicyExtId()&&null!==this.getPolicyExtId()?{policyExtId:this.getPolicyExtId()}:{},...void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["policyExtId","policyType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("policyExtId"===t){if(void 0===this.policyExtId||null===this.policyExtId)return new j("policyExtId","undefined or null");if(!F.validatePattern(this.policyExtId,/^[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 j("policyExtId","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"policyType"!==t||void 0!==this.policyType&&null!==this.policyType?"$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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("policyType","undefined or null")}}Xt.prototype.policyExtId=void 0,Xt.prototype.policyType=void 0,Xt.prototype.$reserved=void 0,Xt.prototype.$objectType=void 0,Xt.prototype.$unknownFields=void 0;var Qt=new WeakSet;class Yt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Qt),n.add(t),this.securedPolicies=e,this.$objectType="security.v4.management.AssociatePoliciesSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new Yt,e.hasOwnProperty("securedPolicies")&&null!==e.securedPolicies&&void 0!==e.securedPolicies){for(o=[],s=e.securedPolicies,r=0;r<s.length;r++)i=Xt.constructFromObject(s[r],void 0),o.push(i);t.setSecuredPolicies(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSecuredPolicies(){return this.securedPolicies}setSecuredPolicies(e){this.securedPolicies=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getSecuredPolicies()&&null!==this.getSecuredPolicies()?{securedPolicies:this.getSecuredPolicies().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["securedPolicies"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("securedPolicies"===t){if(void 0===this.securedPolicies||null===this.securedPolicies)return new j("securedPolicies","undefined or null");if(!F.validateMaxItems(this.securedPolicies,100))return new j("securedPolicies","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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}Yt.prototype.securedPolicies=void 0,Yt.prototype.$reserved=void 0,Yt.prototype.$objectType=void 0,Yt.prototype.$unknownFields=void 0;const Zt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VALID:"VALID",REVOKED:"REVOKED",EXPIRED:"EXPIRED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Zt).find(t=>Zt[t]===e);return null==t?Zt.$UNKNOWN:Zt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Zt.$UNKNOWN:case Zt.$REDACTED:case Zt.VALID:case Zt.REVOKED:case Zt.EXPIRED:return;default:throw new Error("Invalid : must be BucketsAccessKeyStatusType.{ $UNKNOWN|$REDACTED|VALID|REVOKED|EXPIRED }")}}};Object.freeze(Zt);const en=Zt,tn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PREDEFINED:"PREDEFINED",USERDEFINED:"USERDEFINED",SERVICEDEFINED:"SERVICEDEFINED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(tn).find(t=>tn[t]===e);return null==t?tn.$UNKNOWN:tn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case tn.$UNKNOWN:case tn.$REDACTED:case tn.PREDEFINED:case tn.USERDEFINED:case tn.SERVICEDEFINED:return;default:throw new Error("Invalid : must be CreationType.{ $UNKNOWN|$REDACTED|PREDEFINED|USERDEFINED|SERVICEDEFINED }")}}};Object.freeze(tn);const nn=tn;function sn(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 rn=new WeakSet;class on extends Ye{constructor(e){var t,n;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=rn),n.add(t),this.accessKeyName=e,this.$objectType="iam.v4.authn.BucketsAccessKey",this.$reserved={$fv:"v4.r1.b2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new on,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("accessKeyName")&&null!==e.accessKeyName&&void 0!==e.accessKeyName&&t.setAccessKeyName(e.accessKeyName),e.hasOwnProperty("secretAccessKey")&&null!==e.secretAccessKey&&void 0!==e.secretAccessKey&&t.setSecretAccessKey(e.secretAccessKey),e.hasOwnProperty("userId")&&null!==e.userId&&void 0!==e.userId&&t.setUserId(e.userId),e.hasOwnProperty("createdTime")&&null!==e.createdTime&&void 0!==e.createdTime&&t.setCreatedTime(e.createdTime),e.hasOwnProperty("lastUpdatedBy")&&null!==e.lastUpdatedBy&&void 0!==e.lastUpdatedBy&&t.setLastUpdatedBy(e.lastUpdatedBy),e.hasOwnProperty("assignedTo")&&null!==e.assignedTo&&void 0!==e.assignedTo&&t.setAssignedTo(e.assignedTo),e.hasOwnProperty("creationType")&&null!==e.creationType&&void 0!==e.creationType&&t.setCreationType(nn.constructFromObject(e.creationType)),e.hasOwnProperty("expiryTime")&&null!==e.expiryTime&&void 0!==e.expiryTime&&t.setExpiryTime(e.expiryTime),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&t.setStatus(en.constructFromObject(e.status)),e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&t.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&t.setLastUpdatedTime(e.lastUpdatedTime),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getAccessKeyName(){return this.accessKeyName}setAccessKeyName(e){this.accessKeyName=e}getSecretAccessKey(){return this.secretAccessKey}setSecretAccessKey(e){this.secretAccessKey=e}getUserId(){return this.userId}setUserId(e){this.userId=e}getCreatedTime(){return this.createdTime}setCreatedTime(e){this.createdTime=e}getLastUpdatedBy(){return this.lastUpdatedBy}setLastUpdatedBy(e){this.lastUpdatedBy=e}getAssignedTo(){return this.assignedTo}setAssignedTo(e){this.assignedTo=e}getCreationType(){return this.creationType}setCreationType(e){this.creationType=e}getExpiryTime(){return this.expiryTime}setExpiryTime(e){this.expiryTime=e}getStatus(){return this.status}setStatus(e){this.status=e}getCreatedBy(){return this.createdBy}setCreatedBy(e){this.createdBy=e}getLastUpdatedTime(){return this.lastUpdatedTime}setLastUpdatedTime(e){this.lastUpdatedTime=e}toJson(e){return!1===e?{...void 0!==this.getAccessKeyName()&&null!==this.getAccessKeyName()?{accessKeyName:this.getAccessKeyName()}:{},...void 0!==this.getSecretAccessKey()&&null!==this.getSecretAccessKey()?{secretAccessKey:this.getSecretAccessKey()}:{},...void 0!==this.getUserId()&&null!==this.getUserId()?{userId:this.getUserId()}:{},...void 0!==this.getCreatedTime()&&null!==this.getCreatedTime()?{createdTime:sn(rn,this,an).call(this,this.getCreatedTime(),!1)}:{},...void 0!==this.getLastUpdatedBy()&&null!==this.getLastUpdatedBy()?{lastUpdatedBy:this.getLastUpdatedBy()}:{},...void 0!==this.getAssignedTo()&&null!==this.getAssignedTo()?{assignedTo:this.getAssignedTo()}:{},...void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{},...void 0!==this.getExpiryTime()&&null!==this.getExpiryTime()?{expiryTime:sn(rn,this,an).call(this,this.getExpiryTime(),!1)}:{},...void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{},...void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{},...void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:sn(rn,this,an).call(this,this.getLastUpdatedTime(),!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getAccessKeyName()&&null!==this.getAccessKeyName()?{accessKeyName:this.getAccessKeyName()}:{},...void 0!==this.getAssignedTo()&&null!==this.getAssignedTo()?{assignedTo:this.getAssignedTo()}:{},...void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{},...void 0!==this.getExpiryTime()&&null!==this.getExpiryTime()?{expiryTime:sn(rn,this,an).call(this,this.getExpiryTime(),!1)}:{},...void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["accessKeyName"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("accessKeyName"===t){if(void 0===this.accessKeyName||null===this.accessKeyName)return new j("accessKeyName","undefined or null");if(!F.validateMaxLength(this.accessKeyName,255))return new j("accessKeyName","does not satisfy required maxLength constraint: 255");if(!F.validateMinLength(this.accessKeyName,1))return new j("accessKeyName","does not satisfy required minLength constraint: 1");if(!F.validatePattern(this.accessKeyName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new j("accessKeyName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("secretAccessKey"===t&&(void 0===this.secretAccessKey||null===this.secretAccessKey))return new j("secretAccessKey","undefined or null");if("userId"===t){if(void 0===this.userId||null===this.userId)return new j("userId","undefined or null");if(!F.validatePattern(this.userId,/^[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 j("userId","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("createdTime"===t&&(void 0===this.createdTime||null===this.createdTime))return new j("createdTime","undefined or null");if("lastUpdatedBy"===t){if(void 0===this.lastUpdatedBy||null===this.lastUpdatedBy)return new j("lastUpdatedBy","undefined or null");if(!F.validatePattern(this.lastUpdatedBy,/^[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 j("lastUpdatedBy","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("assignedTo"===t){if(void 0===this.assignedTo||null===this.assignedTo)return new j("assignedTo","undefined or null");if(!F.validateMaxLength(this.assignedTo,255))return new j("assignedTo","does not satisfy required maxLength constraint: 255");if(!F.validateMinLength(this.assignedTo,3))return new j("assignedTo","does not satisfy required minLength constraint: 3")}if("creationType"===t&&(void 0===this.creationType||null===this.creationType))return new j("creationType","undefined or null");if("expiryTime"===t&&(void 0===this.expiryTime||null===this.expiryTime))return new j("expiryTime","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new j("status","undefined or null");if("createdBy"===t){if(void 0===this.createdBy||null===this.createdBy)return new j("createdBy","undefined or null");if(!F.validatePattern(this.createdBy,/^[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 j("createdBy","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"lastUpdatedTime"!==t||void 0!==this.lastUpdatedTime&&null!==this.lastUpdatedTime?new j(t,"no such property exists"):new j("lastUpdatedTime","undefined or null")}}function an(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}on.prototype.accessKeyName=void 0,on.prototype.secretAccessKey=void 0,on.prototype.userId=void 0,on.prototype.createdTime=void 0,on.prototype.lastUpdatedBy=void 0,on.prototype.assignedTo=void 0,on.prototype.creationType=void 0,on.prototype.expiryTime=void 0,on.prototype.status=void 0,on.prototype.createdBy=void 0,on.prototype.lastUpdatedTime=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;const ln={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ACTIVE:"ACTIVE",INACTIVE:"INACTIVE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ln).find(t=>ln[t]===e);return null==t?ln.$UNKNOWN:ln[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ln.$UNKNOWN:case ln.$REDACTED:case ln.ACTIVE:case ln.INACTIVE:return;default:throw new Error("Invalid : must be UserStatusType.{ $UNKNOWN|$REDACTED|ACTIVE|INACTIVE }")}}};Object.freeze(ln);const dn=ln,un={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",LOCAL:"LOCAL",SAML:"SAML",LDAP:"LDAP",EXTERNAL:"EXTERNAL",SERVICE_ACCOUNT:"SERVICE_ACCOUNT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(un).find(t=>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.LOCAL:case un.SAML:case un.LDAP:case un.EXTERNAL:case un.SERVICE_ACCOUNT:return;default:throw new Error("Invalid : must be UserType.{ $UNKNOWN|$REDACTED|LOCAL|SAML|LDAP|EXTERNAL|SERVICE_ACCOUNT }")}}};Object.freeze(un);const hn=un;function cn(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 pn=new WeakSet;class yn extends Ye{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=pn),t.add(e),this.$objectType="iam.v4.authn.User",this.$reserved={$fv:"v4.r1.b2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new yn,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("username")&&null!==e.username&&void 0!==e.username&&t.setUsername(e.username),e.hasOwnProperty("userType")&&null!==e.userType&&void 0!==e.userType&&t.setUserType(hn.constructFromObject(e.userType)),e.hasOwnProperty("idpId")&&null!==e.idpId&&void 0!==e.idpId&&t.setIdpId(e.idpId),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("firstName")&&null!==e.firstName&&void 0!==e.firstName&&t.setFirstName(e.firstName),e.hasOwnProperty("middleInitial")&&null!==e.middleInitial&&void 0!==e.middleInitial&&t.setMiddleInitial(e.middleInitial),e.hasOwnProperty("lastName")&&null!==e.lastName&&void 0!==e.lastName&&t.setLastName(e.lastName),e.hasOwnProperty("emailId")&&null!==e.emailId&&void 0!==e.emailId&&t.setEmailId(e.emailId),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("region")&&null!==e.region&&void 0!==e.region&&t.setRegion(e.region),e.hasOwnProperty("password")&&null!==e.password&&void 0!==e.password&&t.setPassword(e.password),e.hasOwnProperty("isForceResetPasswordEnabled")&&null!==e.isForceResetPasswordEnabled&&void 0!==e.isForceResetPasswordEnabled&&t.setIsForceResetPasswordEnabled(e.isForceResetPasswordEnabled),e.hasOwnProperty("additionalAttributes")&&null!==e.additionalAttributes&&void 0!==e.additionalAttributes){for(o=[],s=e.additionalAttributes,r=0;r<s.length;r++)i=x.constructFromObject(s[r],void 0),o.push(i);t.setAdditionalAttributes(o)}if(e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&t.setStatus(dn.constructFromObject(e.status)),e.hasOwnProperty("bucketsAccessKeys")&&null!==e.bucketsAccessKeys&&void 0!==e.bucketsAccessKeys){for(o=[],s=e.bucketsAccessKeys,r=0;r<s.length;r++)i=on.constructFromObject(s[r],void 0),o.push(i);t.setBucketsAccessKeys(o)}if(e.hasOwnProperty("lastLoginTime")&&null!==e.lastLoginTime&&void 0!==e.lastLoginTime&&t.setLastLoginTime(e.lastLoginTime),e.hasOwnProperty("createdTime")&&null!==e.createdTime&&void 0!==e.createdTime&&t.setCreatedTime(e.createdTime),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&t.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&t.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedBy")&&null!==e.lastUpdatedBy&&void 0!==e.lastUpdatedBy&&t.setLastUpdatedBy(e.lastUpdatedBy),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("creationType")&&null!==e.creationType&&void 0!==e.creationType&&t.setCreationType(nn.constructFromObject(e.creationType)),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getUsername(){return this.username}setUsername(e){this.username=e}getUserType(){return this.userType}setUserType(e){this.userType=e}getIdpId(){return this.idpId}setIdpId(e){this.idpId=e}getDisplayName(){return this.displayName}setDisplayName(e){this.displayName=e}getFirstName(){return this.firstName}setFirstName(e){this.firstName=e}getMiddleInitial(){return this.middleInitial}setMiddleInitial(e){this.middleInitial=e}getLastName(){return this.lastName}setLastName(e){this.lastName=e}getEmailId(){return this.emailId}setEmailId(e){this.emailId=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getRegion(){return this.region}setRegion(e){this.region=e}getPassword(){return this.password}setPassword(e){this.password=e}getIsForceResetPasswordEnabled(){return this.isForceResetPasswordEnabled}setIsForceResetPasswordEnabled(e){this.isForceResetPasswordEnabled=e}getAdditionalAttributes(){return this.additionalAttributes}setAdditionalAttributes(e){this.additionalAttributes=e}getStatus(){return this.status}setStatus(e){this.status=e}getBucketsAccessKeys(){return this.bucketsAccessKeys}setBucketsAccessKeys(e){this.bucketsAccessKeys=e}getLastLoginTime(){return this.lastLoginTime}setLastLoginTime(e){this.lastLoginTime=e}getCreatedTime(){return this.createdTime}setCreatedTime(e){this.createdTime=e}getLastUpdatedTime(){return this.lastUpdatedTime}setLastUpdatedTime(e){this.lastUpdatedTime=e}getCreatedBy(){return this.createdBy}setCreatedBy(e){this.createdBy=e}getLastUpdatedBy(){return this.lastUpdatedBy}setLastUpdatedBy(e){this.lastUpdatedBy=e}getDescription(){return this.description}setDescription(e){this.description=e}getCreationType(){return this.creationType}setCreationType(e){this.creationType=e}toJson(e){return!1===e?{...void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{},...void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{},...void 0!==this.getIdpId()&&null!==this.getIdpId()?{idpId:this.getIdpId()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getFirstName()&&null!==this.getFirstName()?{firstName:this.getFirstName()}:{},...void 0!==this.getMiddleInitial()&&null!==this.getMiddleInitial()?{middleInitial:this.getMiddleInitial()}:{},...void 0!==this.getLastName()&&null!==this.getLastName()?{lastName:this.getLastName()}:{},...void 0!==this.getEmailId()&&null!==this.getEmailId()?{emailId:this.getEmailId()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{},...void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{},...void 0!==this.getIsForceResetPasswordEnabled()&&null!==this.getIsForceResetPasswordEnabled()?{isForceResetPasswordEnabled:this.getIsForceResetPasswordEnabled()}:{},...void 0!==this.getAdditionalAttributes()&&null!==this.getAdditionalAttributes()?{additionalAttributes:this.getAdditionalAttributes().map(e=>e.toJson(!1))}:{},...void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{},...void 0!==this.getBucketsAccessKeys()&&null!==this.getBucketsAccessKeys()?{bucketsAccessKeys:this.getBucketsAccessKeys().map(e=>e.toJson(!1))}:{},...void 0!==this.getLastLoginTime()&&null!==this.getLastLoginTime()?{lastLoginTime:cn(pn,this,vn).call(this,this.getLastLoginTime(),!1)}:{},...void 0!==this.getCreatedTime()&&null!==this.getCreatedTime()?{createdTime:cn(pn,this,vn).call(this,this.getCreatedTime(),!1)}:{},...void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:cn(pn,this,vn).call(this,this.getLastUpdatedTime(),!1)}:{},...void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{},...void 0!==this.getLastUpdatedBy()&&null!==this.getLastUpdatedBy()?{lastUpdatedBy:this.getLastUpdatedBy()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{},...void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{},...void 0!==this.getIdpId()&&null!==this.getIdpId()?{idpId:this.getIdpId()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getFirstName()&&null!==this.getFirstName()?{firstName:this.getFirstName()}:{},...void 0!==this.getMiddleInitial()&&null!==this.getMiddleInitial()?{middleInitial:this.getMiddleInitial()}:{},...void 0!==this.getLastName()&&null!==this.getLastName()?{lastName:this.getLastName()}:{},...void 0!==this.getEmailId()&&null!==this.getEmailId()?{emailId:this.getEmailId()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{},...void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{},...void 0!==this.getIsForceResetPasswordEnabled()&&null!==this.getIsForceResetPasswordEnabled()?{isForceResetPasswordEnabled:this.getIsForceResetPasswordEnabled()}:{},...void 0!==this.getAdditionalAttributes()&&null!==this.getAdditionalAttributes()?{additionalAttributes:this.getAdditionalAttributes().map(e=>e.toJson(!1))}:{},...void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("username"===t){if(void 0===this.username||null===this.username)return new j("username","undefined or null");if(!F.validateMaxLength(this.username,255))return new j("username","does not satisfy required maxLength constraint: 255");if(!F.validateMinLength(this.username,1))return new j("username","does not satisfy required minLength constraint: 1");if(!F.validatePattern(this.username,/^[^<>;'()&+%\/\\\\\"`]*$/))return new j("username","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("userType"===t&&(void 0===this.userType||null===this.userType))return new j("userType","undefined or null");if("idpId"===t){if(void 0===this.idpId||null===this.idpId)return new j("idpId","undefined or null");if(!F.validatePattern(this.idpId,/^[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 j("idpId","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("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new j("displayName","undefined or null");if(!F.validateMaxLength(this.displayName,255))return new j("displayName","does not satisfy required maxLength constraint: 255");if(!F.validateMinLength(this.displayName,1))return new j("displayName","does not satisfy required minLength constraint: 1");if(!F.validatePattern(this.displayName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new j("displayName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("firstName"===t){if(void 0===this.firstName||null===this.firstName)return new j("firstName","undefined or null");if(!F.validateMaxLength(this.firstName,255))return new j("firstName","does not satisfy required maxLength constraint: 255");if(!F.validateMinLength(this.firstName,1))return new j("firstName","does not satisfy required minLength constraint: 1");if(!F.validatePattern(this.firstName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new j("firstName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("middleInitial"===t){if(void 0===this.middleInitial||null===this.middleInitial)return new j("middleInitial","undefined or null");if(!F.validateMaxLength(this.middleInitial,255))return new j("middleInitial","does not satisfy required maxLength constraint: 255");if(!F.validateMinLength(this.middleInitial,1))return new j("middleInitial","does not satisfy required minLength constraint: 1");if(!F.validatePattern(this.middleInitial,/^[^<>;'()&+%\/\\\\\"`]*$/))return new j("middleInitial","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("lastName"===t){if(void 0===this.lastName||null===this.lastName)return new j("lastName","undefined or null");if(!F.validateMaxLength(this.lastName,255))return new j("lastName","does not satisfy required maxLength constraint: 255");if(!F.validateMinLength(this.lastName,1))return new j("lastName","does not satisfy required minLength constraint: 1");if(!F.validatePattern(this.lastName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new j("lastName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("emailId"===t){if(void 0===this.emailId||null===this.emailId)return new j("emailId","undefined or null");if(!F.validateMaxLength(this.emailId,255))return new j("emailId","does not satisfy required maxLength constraint: 255");if(!F.validatePattern(this.emailId,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new j("emailId","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("locale"===t&&(void 0===this.locale||null===this.locale))return new j("locale","undefined or null");if("region"===t&&(void 0===this.region||null===this.region))return new j("region","undefined or null");if("password"===t&&(void 0===this.password||null===this.password))return new j("password","undefined or null");if("isForceResetPasswordEnabled"===t&&(void 0===this.isForceResetPasswordEnabled||null===this.isForceResetPasswordEnabled))return new j("isForceResetPasswordEnabled","undefined or null");if("additionalAttributes"===t){if(void 0===this.additionalAttributes||null===this.additionalAttributes)return new j("additionalAttributes","undefined or null");if(!F.validateMaxItems(this.additionalAttributes,10))return new j("additionalAttributes","does not satisfy required maxItems constraint: 10")}if("status"===t&&(void 0===this.status||null===this.status))return new j("status","undefined or null");if("bucketsAccessKeys"===t){if(void 0===this.bucketsAccessKeys||null===this.bucketsAccessKeys)return new j("bucketsAccessKeys","undefined or null");if(!F.validateMaxItems(this.bucketsAccessKeys,5))return new j("bucketsAccessKeys","does not satisfy required maxItems constraint: 5")}if("lastLoginTime"===t&&(void 0===this.lastLoginTime||null===this.lastLoginTime))return new j("lastLoginTime","undefined or null");if("createdTime"===t&&(void 0===this.createdTime||null===this.createdTime))return new j("createdTime","undefined or null");if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new j("lastUpdatedTime","undefined or null");if("createdBy"===t){if(void 0===this.createdBy||null===this.createdBy)return new j("createdBy","undefined or null");if(!F.validatePattern(this.createdBy,/^[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 j("createdBy","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("lastUpdatedBy"===t){if(void 0===this.lastUpdatedBy||null===this.lastUpdatedBy)return new j("lastUpdatedBy","undefined or null");if(!F.validatePattern(this.lastUpdatedBy,/^[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 j("lastUpdatedBy","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"description"!==t||void 0!==this.description&&null!==this.description?"creationType"!==t||void 0!==this.creationType&&null!==this.creationType?new j(t,"no such property exists"):new j("creationType","undefined or null"):new j("description","undefined or null")}}function vn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}yn.prototype.username=void 0,yn.prototype.userType=void 0,yn.prototype.idpId=void 0,yn.prototype.displayName=void 0,yn.prototype.firstName=void 0,yn.prototype.middleInitial=void 0,yn.prototype.lastName=void 0,yn.prototype.emailId=void 0,yn.prototype.locale=void 0,yn.prototype.region=void 0,yn.prototype.password=void 0,yn.prototype.isForceResetPasswordEnabled=void 0,yn.prototype.additionalAttributes=void 0,yn.prototype.status=void 0,yn.prototype.bucketsAccessKeys=void 0,yn.prototype.lastLoginTime=void 0,yn.prototype.createdTime=void 0,yn.prototype.lastUpdatedTime=void 0,yn.prototype.createdBy=void 0,yn.prototype.lastUpdatedBy=void 0,yn.prototype.description=void 0,yn.prototype.creationType=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var gn=new WeakSet;class fn{constructor(e,t,n){var s,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,i=gn),i.add(s),this.name=e,this.expiryHours=t,this.approvers=n,this.$objectType="security.v4.management.ApproverGroup",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new fn,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("expiryHours")&&null!==e.expiryHours&&void 0!==e.expiryHours&&t.setExpiryHours(e.expiryHours),e.hasOwnProperty("approvers")&&null!==e.approvers&&void 0!==e.approvers){for(o=[],s=e.approvers,r=0;r<s.length;r++)i=yn.constructFromObject(s[r],void 0),o.push(i);t.setApprovers(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getExpiryHours(){return this.expiryHours}setExpiryHours(e){this.expiryHours=e}getApprovers(){return this.approvers}setApprovers(e){this.approvers=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getExpiryHours()&&null!==this.getExpiryHours()?{expiryHours:this.getExpiryHours()}:{},...void 0!==this.getApprovers()&&null!==this.getApprovers()?{approvers:this.getApprovers().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["name","expiryHours","approvers"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new j("name","undefined or null");if(!F.validateMaxLength(this.name,199))return new j("name","does not satisfy required maxLength constraint: 199")}if("expiryHours"===t&&(void 0===this.expiryHours||null===this.expiryHours))return new j("expiryHours","undefined or null");if("approvers"===t){if(void 0===this.approvers||null===this.approvers)return new j("approvers","undefined or null");if(!F.validateMaxItems(this.approvers,10))return new j("approvers","does not satisfy required maxItems constraint: 10");if(!F.validateMinItems(this.approvers,3))return new j("approvers","does not satisfy required minItems constraint: 3")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}function wn(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")}fn.prototype.name=void 0,fn.prototype.expiryHours=void 0,fn.prototype.approvers=void 0,fn.prototype.$reserved=void 0,fn.prototype.$objectType=void 0,fn.prototype.$unknownFields=void 0;var mn=new WeakSet;class $n extends Ye{constructor(e,t){var n,s;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,s=mn),s.add(n),this.name=e,this.approverGroups=t,this.$objectType="security.v4.management.ApprovalPolicy",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new $n,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("approverGroups")&&null!==e.approverGroups&&void 0!==e.approverGroups){for(o=[],s=e.approverGroups,r=0;r<s.length;r++)i=fn.constructFromObject(s[r],void 0),o.push(i);t.setApproverGroups(o)}if(e.hasOwnProperty("securedPolicies")&&null!==e.securedPolicies&&void 0!==e.securedPolicies){for(o=[],s=e.securedPolicies,r=0;r<s.length;r++)i=Xt.constructFromObject(s[r],void 0),o.push(i);t.setSecuredPolicies(o)}if(e.hasOwnProperty("lastUpdatedBy")&&null!==e.lastUpdatedBy&&void 0!==e.lastUpdatedBy&&t.setLastUpdatedBy(e.lastUpdatedBy),e.hasOwnProperty("lastUpdateTime")&&null!==e.lastUpdateTime&&void 0!==e.lastUpdateTime&&t.setLastUpdateTime(e.lastUpdateTime),e.hasOwnProperty("isUpdatePending")&&null!==e.isUpdatePending&&void 0!==e.isUpdatePending&&t.setIsUpdatePending(e.isUpdatePending),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getDescription(){return this.description}setDescription(e){this.description=e}getApproverGroups(){return this.approverGroups}setApproverGroups(e){this.approverGroups=e}getSecuredPolicies(){return this.securedPolicies}setSecuredPolicies(e){this.securedPolicies=e}getLastUpdatedBy(){return this.lastUpdatedBy}setLastUpdatedBy(e){this.lastUpdatedBy=e}getLastUpdateTime(){return this.lastUpdateTime}setLastUpdateTime(e){this.lastUpdateTime=e}getIsUpdatePending(){return this.isUpdatePending}setIsUpdatePending(e){this.isUpdatePending=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getApproverGroups()&&null!==this.getApproverGroups()?{approverGroups:this.getApproverGroups().map(e=>e.toJson(!1))}:{},...void 0!==this.getSecuredPolicies()&&null!==this.getSecuredPolicies()?{securedPolicies:this.getSecuredPolicies().map(e=>e.toJson(!1))}:{},...void 0!==this.getLastUpdatedBy()&&null!==this.getLastUpdatedBy()?{lastUpdatedBy:this.getLastUpdatedBy()}:{},...void 0!==this.getLastUpdateTime()&&null!==this.getLastUpdateTime()?{lastUpdateTime:wn(mn,this,bn).call(this,this.getLastUpdateTime(),!1)}:{},...void 0!==this.getIsUpdatePending()&&null!==this.getIsUpdatePending()?{isUpdatePending:this.getIsUpdatePending()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getApproverGroups()&&null!==this.getApproverGroups()?{approverGroups:this.getApproverGroups().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["name","approverGroups"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new j("name","undefined or null");if(!F.validateMaxLength(this.name,199))return new j("name","does not satisfy required maxLength constraint: 199");if(!F.validateMinLength(this.name,4))return new j("name","does not satisfy required minLength constraint: 4")}if("description"===t){if(void 0===this.description||null===this.description)return new j("description","undefined or null");if(!F.validateMaxLength(this.description,499))return new j("description","does not satisfy required maxLength constraint: 499")}if("approverGroups"===t){if(void 0===this.approverGroups||null===this.approverGroups)return new j("approverGroups","undefined or null");if(!F.validateMaxItems(this.approverGroups,10))return new j("approverGroups","does not satisfy required maxItems constraint: 10");if(!F.validateMinItems(this.approverGroups,1))return new j("approverGroups","does not satisfy required minItems constraint: 1")}if("securedPolicies"===t){if(void 0===this.securedPolicies||null===this.securedPolicies)return new j("securedPolicies","undefined or null");if(!F.validateMaxItems(this.securedPolicies,100))return new j("securedPolicies","does not satisfy required maxItems constraint: 100")}return"lastUpdatedBy"!==t||void 0!==this.lastUpdatedBy&&null!==this.lastUpdatedBy?"lastUpdateTime"!==t||void 0!==this.lastUpdateTime&&null!==this.lastUpdateTime?"isUpdatePending"!==t||void 0!==this.isUpdatePending&&null!==this.isUpdatePending?new j(t,"no such property exists"):new j("isUpdatePending","undefined or null"):new j("lastUpdateTime","undefined or null"):new j("lastUpdatedBy","undefined or null")}}function bn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function kn(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")}$n.prototype.name=void 0,$n.prototype.description=void 0,$n.prototype.approverGroups=void 0,$n.prototype.securedPolicies=void 0,$n.prototype.lastUpdatedBy=void 0,$n.prototype.lastUpdateTime=void 0,$n.prototype.isUpdatePending=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var Tn=new WeakSet;class Fn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Tn),t.add(e),this.$objectType="security.v4.management.GetApprovalPolicyApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Fn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"security.v4.management.ApprovalPolicy":t.setData($n.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):kn(Tn,this,jn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):kn(Tn,this,jn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function jn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Fn.prototype.metadata=void 0,Fn.prototype.data=void 0,Fn.prototype.$reserved=void 0,Fn.prototype.$objectType=void 0,Fn.prototype.$unknownFields=void 0;class En extends $n{constructor(e,t){super(e,t),this.$objectType="security.v4.management.ApprovalPolicyProjection",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new En,$n.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["name","approverGroups"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new j(t,"no such property exists")}}function On(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 In=new WeakSet;class Pn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=In),t.add(e),this.$objectType="security.v4.management.ListApprovalPoliciesApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new Pn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"security.v4.management.ApprovalPolicy":i=$n.constructFromObject(s[o],void 0),a.push(i);break;case"security.v4.management.ApprovalPolicyProjection":i=En.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"security.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):On(In,this,Cn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):On(In,this,Cn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function Cn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Sn(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")}Pn.prototype.metadata=void 0,Pn.prototype.data=void 0,Pn.prototype.$reserved=void 0,Pn.prototype.$objectType=void 0,Pn.prototype.$unknownFields=void 0;var An=new WeakSet;class Dn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=An),t.add(e),this.$objectType="security.v4.management.CreateApprovalPolicyApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Dn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ce.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Sn(An,this,xn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Sn(An,this,xn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function xn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Un(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")}Dn.prototype.metadata=void 0,Dn.prototype.data=void 0,Dn.prototype.$reserved=void 0,Dn.prototype.$objectType=void 0,Dn.prototype.$unknownFields=void 0;var Rn=new WeakSet;class Nn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Rn),t.add(e),this.$objectType="security.v4.management.UpdateApprovalPolicyApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Nn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ce.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Un(Rn,this,Ln).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Un(Rn,this,Ln).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function Ln(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Jn(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")}Nn.prototype.metadata=void 0,Nn.prototype.data=void 0,Nn.prototype.$reserved=void 0,Nn.prototype.$objectType=void 0,Nn.prototype.$unknownFields=void 0;var Mn=new WeakSet;class Vn{constructor(e,t,n,s,i,r){var o,a;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,a=Mn),a.add(o),this.endpointUrl=e,this.keyId=t,this.tenantId=n,this.clientId=s,this.clientSecret=i,this.credentialExpiryDate=r,this.$objectType="security.v4.config.AzureAccessInformation",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vn,e.hasOwnProperty("endpointUrl")&&null!==e.endpointUrl&&void 0!==e.endpointUrl&&t.setEndpointUrl(e.endpointUrl),e.hasOwnProperty("keyId")&&null!==e.keyId&&void 0!==e.keyId&&t.setKeyId(e.keyId),e.hasOwnProperty("tenantId")&&null!==e.tenantId&&void 0!==e.tenantId&&t.setTenantId(e.tenantId),e.hasOwnProperty("clientId")&&null!==e.clientId&&void 0!==e.clientId&&t.setClientId(e.clientId),e.hasOwnProperty("clientSecret")&&null!==e.clientSecret&&void 0!==e.clientSecret&&t.setClientSecret(e.clientSecret),e.hasOwnProperty("truncatedClientSecret")&&null!==e.truncatedClientSecret&&void 0!==e.truncatedClientSecret&&t.setTruncatedClientSecret(e.truncatedClientSecret),e.hasOwnProperty("credentialExpiryDate")&&null!==e.credentialExpiryDate&&void 0!==e.credentialExpiryDate&&t.setCredentialExpiryDate(e.credentialExpiryDate),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEndpointUrl(){return this.endpointUrl}setEndpointUrl(e){this.endpointUrl=e}getKeyId(){return this.keyId}setKeyId(e){this.keyId=e}getTenantId(){return this.tenantId}setTenantId(e){this.tenantId=e}getClientId(){return this.clientId}setClientId(e){this.clientId=e}getClientSecret(){return this.clientSecret}setClientSecret(e){this.clientSecret=e}getTruncatedClientSecret(){return this.truncatedClientSecret}setTruncatedClientSecret(e){this.truncatedClientSecret=e}getCredentialExpiryDate(){return this.credentialExpiryDate}setCredentialExpiryDate(e){this.credentialExpiryDate=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getEndpointUrl()&&null!==this.getEndpointUrl()?{endpointUrl:this.getEndpointUrl()}:{},...void 0!==this.getKeyId()&&null!==this.getKeyId()?{keyId:this.getKeyId()}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},...void 0!==this.getClientId()&&null!==this.getClientId()?{clientId:this.getClientId()}:{},...void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{},...void 0!==this.getTruncatedClientSecret()&&null!==this.getTruncatedClientSecret()?{truncatedClientSecret:this.getTruncatedClientSecret()}:{},...void 0!==this.getCredentialExpiryDate()&&null!==this.getCredentialExpiryDate()?{credentialExpiryDate:Jn(Mn,this,Bn).call(this,this.getCredentialExpiryDate(),!0)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEndpointUrl()&&null!==this.getEndpointUrl()?{endpointUrl:this.getEndpointUrl()}:{},...void 0!==this.getKeyId()&&null!==this.getKeyId()?{keyId:this.getKeyId()}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},...void 0!==this.getClientId()&&null!==this.getClientId()?{clientId:this.getClientId()}:{},...void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{},...void 0!==this.getCredentialExpiryDate()&&null!==this.getCredentialExpiryDate()?{credentialExpiryDate:Jn(Mn,this,Bn).call(this,this.getCredentialExpiryDate(),!0)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["endpointUrl","keyId","tenantId","clientId","clientSecret","credentialExpiryDate"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("endpointUrl"===t){if(void 0===this.endpointUrl||null===this.endpointUrl)return new j("endpointUrl","undefined or null");if(!F.validateMaxLength(this.endpointUrl,1024))return new j("endpointUrl","does not satisfy required maxLength constraint: 1024");if(!F.validatePattern(this.endpointUrl,/^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new j("endpointUrl","does not satisfy required pattern: /^((http[s]?|nfs):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}if("keyId"===t){if(void 0===this.keyId||null===this.keyId)return new j("keyId","undefined or null");if(!F.validateMaxLength(this.keyId,256))return new j("keyId","does not satisfy required maxLength constraint: 256")}if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new j("tenantId","undefined or null");if(!F.validateMaxLength(this.tenantId,256))return new j("tenantId","does not satisfy required maxLength constraint: 256")}if("clientId"===t){if(void 0===this.clientId||null===this.clientId)return new j("clientId","undefined or null");if(!F.validateMaxLength(this.clientId,256))return new j("clientId","does not satisfy required maxLength constraint: 256")}if("clientSecret"===t&&(void 0===this.clientSecret||null===this.clientSecret))return new j("clientSecret","undefined or null");if("truncatedClientSecret"===t){if(void 0===this.truncatedClientSecret||null===this.truncatedClientSecret)return new j("truncatedClientSecret","undefined or null");if(!F.validateMaxLength(this.truncatedClientSecret,256))return new j("truncatedClientSecret","does not satisfy required maxLength constraint: 256");if(!F.validateMinLength(this.truncatedClientSecret,8))return new j("truncatedClientSecret","does not satisfy required minLength constraint: 8")}return"credentialExpiryDate"!==t||void 0!==this.credentialExpiryDate&&null!==this.credentialExpiryDate?"$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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("credentialExpiryDate","undefined or null")}}function Bn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Vn.prototype.endpointUrl=void 0,Vn.prototype.keyId=void 0,Vn.prototype.tenantId=void 0,Vn.prototype.clientId=void 0,Vn.prototype.clientSecret=void 0,Vn.prototype.truncatedClientSecret=void 0,Vn.prototype.credentialExpiryDate=void 0,Vn.prototype.$reserved=void 0,Vn.prototype.$objectType=void 0,Vn.prototype.$unknownFields=void 0;var _n=new WeakSet;class Kn{constructor(e,t){var n,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,s=_n),s.add(n),this.ipAddress=e,this.port=t,this.$objectType="security.v4.config.EndpointInfo",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Kn,e.hasOwnProperty("ipAddress")&&null!==e.ipAddress&&void 0!==e.ipAddress&&t.setIpAddress($t.constructFromObject(e.ipAddress)),e.hasOwnProperty("port")&&null!==e.port&&void 0!==e.port&&t.setPort(e.port),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIpAddress(){return this.ipAddress}setIpAddress(e){this.ipAddress=e}getPort(){return this.port}setPort(e){this.port=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress().toJson(!1)}:{},...void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["ipAddress","port"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"ipAddress"!==t||void 0!==this.ipAddress&&null!==this.ipAddress?"port"!==t||void 0!==this.port&&null!==this.port?"$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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("port","undefined or null"):new j("ipAddress","undefined or null")}}Kn.prototype.ipAddress=void 0,Kn.prototype.port=void 0,Kn.prototype.$reserved=void 0,Kn.prototype.$objectType=void 0,Kn.prototype.$unknownFields=void 0;var Wn=new WeakSet;class qn{constructor(e,t,n,s,i){var r,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r=this,o=Wn),o.add(r),this.certPem=e,this.privateKey=t,this.caName=n,this.caPem=s,this.endpoints=i,this.$objectType="security.v4.config.KmipAccessInformation",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new qn,e.hasOwnProperty("certPem")&&null!==e.certPem&&void 0!==e.certPem&&t.setCertPem(e.certPem),e.hasOwnProperty("privateKey")&&null!==e.privateKey&&void 0!==e.privateKey&&t.setPrivateKey(e.privateKey),e.hasOwnProperty("caName")&&null!==e.caName&&void 0!==e.caName&&t.setCaName(e.caName),e.hasOwnProperty("caPem")&&null!==e.caPem&&void 0!==e.caPem&&t.setCaPem(e.caPem),e.hasOwnProperty("endpoints")&&null!==e.endpoints&&void 0!==e.endpoints){for(o=[],s=e.endpoints,r=0;r<s.length;r++)i=Kn.constructFromObject(s[r],void 0),o.push(i);t.setEndpoints(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCertPem(){return this.certPem}setCertPem(e){this.certPem=e}getPrivateKey(){return this.privateKey}setPrivateKey(e){this.privateKey=e}getCaName(){return this.caName}setCaName(e){this.caName=e}getCaPem(){return this.caPem}setCaPem(e){this.caPem=e}getEndpoints(){return this.endpoints}setEndpoints(e){this.endpoints=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCertPem()&&null!==this.getCertPem()?{certPem:this.getCertPem()}:{},...void 0!==this.getPrivateKey()&&null!==this.getPrivateKey()?{privateKey:this.getPrivateKey()}:{},...void 0!==this.getCaName()&&null!==this.getCaName()?{caName:this.getCaName()}:{},...void 0!==this.getCaPem()&&null!==this.getCaPem()?{caPem:this.getCaPem()}:{},...void 0!==this.getEndpoints()&&null!==this.getEndpoints()?{endpoints:this.getEndpoints().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["certPem","privateKey","caName","caPem","endpoints"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("certPem"===t){if(void 0===this.certPem||null===this.certPem)return new j("certPem","undefined or null");if(!F.validateMaxLength(this.certPem,32768))return new j("certPem","does not satisfy required maxLength constraint: 32768")}if("privateKey"===t){if(void 0===this.privateKey||null===this.privateKey)return new j("privateKey","undefined or null");if(!F.validateMaxLength(this.privateKey,32768))return new j("privateKey","does not satisfy required maxLength constraint: 32768")}if("caName"===t){if(void 0===this.caName||null===this.caName)return new j("caName","undefined or null");if(!F.validateMaxLength(this.caName,256))return new j("caName","does not satisfy required maxLength constraint: 256")}if("caPem"===t){if(void 0===this.caPem||null===this.caPem)return new j("caPem","undefined or null");if(!F.validateMaxLength(this.caPem,32768))return new j("caPem","does not satisfy required maxLength constraint: 32768")}if("endpoints"===t){if(void 0===this.endpoints||null===this.endpoints)return new j("endpoints","undefined or null");if(!F.validateMaxItems(this.endpoints,10))return new j("endpoints","does not satisfy required maxItems constraint: 10")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}function Hn(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")}qn.prototype.certPem=void 0,qn.prototype.privateKey=void 0,qn.prototype.caName=void 0,qn.prototype.caPem=void 0,qn.prototype.endpoints=void 0,qn.prototype.$reserved=void 0,qn.prototype.$objectType=void 0,qn.prototype.$unknownFields=void 0;var zn=new WeakSet;class Gn extends Ye{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=zn),t.add(e),this.$objectType="security.v4.config.KeyManagementServer",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Gn,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("accessInformation")&&null!==e.accessInformation&&void 0!==e.accessInformation)switch(s=e.accessInformation.hasOwnProperty("$objectType")?e.accessInformation.$objectType:typeof e.accessInformation,s){case"security.v4.config.AzureAccessInformation":t.setAccessInformation(Vn.constructFromObject(e.accessInformation,void 0));break;case"security.v4.config.KmipAccessInformation":t.setAccessInformation(qn.constructFromObject(e.accessInformation,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("creationTimestamp")&&null!==e.creationTimestamp&&void 0!==e.creationTimestamp&&t.setCreationTimestamp(e.creationTimestamp),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getAccessInformation(){return this.accessInformation}setAccessInformation(e){this.accessInformation=e}getCreationTimestamp(){return this.creationTimestamp}setCreationTimestamp(e){this.creationTimestamp=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getAccessInformation()&&null!==this.getAccessInformation()?{accessInformation:void 0!==this.getAccessInformation().toJson?this.getAccessInformation().toJson(!1):Array.isArray(this.getAccessInformation())?this.getAccessInformation().map(e=>void 0!==e.toJson?e.toJson(!1):e):Hn(zn,this,Xn).call(this,this.getAccessInformation(),!1)}:{},...void 0!==this.getCreationTimestamp()&&null!==this.getCreationTimestamp()?{creationTimestamp:Hn(zn,this,Qn).call(this,this.getCreationTimestamp(),!0)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getAccessInformation()&&null!==this.getAccessInformation()?{accessInformation:void 0!==this.getAccessInformation().toJson?this.getAccessInformation().toJson():Array.isArray(this.getAccessInformation())?this.getAccessInformation().map(e=>void 0!==e.toJson?e.toJson():e):Hn(zn,this,Xn).call(this,this.getAccessInformation())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new j("name","undefined or null");if(!F.validateMaxLength(this.name,256))return new j("name","does not satisfy required maxLength constraint: 256")}return"accessInformation"!==t||void 0!==this.accessInformation&&null!==this.accessInformation?"creationTimestamp"!==t||void 0!==this.creationTimestamp&&null!==this.creationTimestamp?new j(t,"no such property exists"):new j("creationTimestamp","undefined or null"):new j("accessInformation","undefined or null")}}function Xn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Qn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Yn(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")}Gn.prototype.name=void 0,Gn.prototype.accessInformation=void 0,Gn.prototype.creationTimestamp=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var Zn=new WeakSet;class es extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Zn),t.add(e),this.$objectType="security.v4.config.UpdateKeyManagementServerApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new es,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ce.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Yn(Zn,this,ts).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Yn(Zn,this,ts).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function ts(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}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")}es.prototype.metadata=void 0,es.prototype.data=void 0,es.prototype.$reserved=void 0,es.prototype.$objectType=void 0,es.prototype.$unknownFields=void 0;var ss=new WeakSet;class is extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ss),t.add(e),this.$objectType="security.v4.config.GetKeyManagementServerApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new is,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"security.v4.config.KeyManagementServer":t.setData(Gn.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ns(ss,this,rs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ns(ss,this,rs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function rs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function os(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")}is.prototype.metadata=void 0,is.prototype.data=void 0,is.prototype.$reserved=void 0,is.prototype.$objectType=void 0,is.prototype.$unknownFields=void 0;var as=new WeakSet;class ls extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=as),t.add(e),this.$objectType="security.v4.config.CreateKeyManagementServerApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new ls,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ce.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):os(as,this,ds).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):os(as,this,ds).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function ds(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function us(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")}ls.prototype.metadata=void 0,ls.prototype.data=void 0,ls.prototype.$reserved=void 0,ls.prototype.$objectType=void 0,ls.prototype.$unknownFields=void 0;var hs=new WeakSet;class cs extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hs),t.add(e),this.$objectType="security.v4.config.DeleteKeyManagementServerApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new cs,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ce.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):us(hs,this,ps).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):us(hs,this,ps).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function ps(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ys(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")}cs.prototype.metadata=void 0,cs.prototype.data=void 0,cs.prototype.$reserved=void 0,cs.prototype.$objectType=void 0,cs.prototype.$unknownFields=void 0;var vs=new WeakSet;class gs extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=vs),t.add(e),this.$objectType="security.v4.config.ListKeyManagementServersApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new gs,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++){if("security.v4.config.KeyManagementServer"!==l)throw"Unknown list of type "+l+" in data";i=Gn.constructFromObject(s[o],void 0),a.push(i)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"security.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ys(vs,this,fs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ys(vs,this,fs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function fs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}gs.prototype.metadata=void 0,gs.prototype.data=void 0,gs.prototype.$reserved=void 0,gs.prototype.$objectType=void 0,gs.prototype.$unknownFields=void 0;const ws={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CRITICAL:"CRITICAL",HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ws).find(t=>ws[t]===e);return null==t?ws.$UNKNOWN:ws[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ws.$UNKNOWN:case ws.$REDACTED:case ws.CRITICAL:case ws.HIGH:case ws.MEDIUM:case ws.LOW:return;default:throw new Error("Invalid : must be Severity.{ $UNKNOWN|$REDACTED|CRITICAL|HIGH|MEDIUM|LOW }")}}};Object.freeze(ws);const ms=ws,$s={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",APPLICABLE:"APPLICABLE",NOT_APPLICABLE:"NOT_APPLICABLE",NEEDS_REVIEW:"NEEDS_REVIEW",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys($s).find(t=>$s[t]===e);return null==t?$s.$UNKNOWN:$s[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case $s.$UNKNOWN:case $s.$REDACTED:case $s.APPLICABLE:case $s.NOT_APPLICABLE:case $s.NEEDS_REVIEW:return;default:throw new Error("Invalid : must be StigStatus.{ $UNKNOWN|$REDACTED|APPLICABLE|NOT_APPLICABLE|NEEDS_REVIEW }")}}};Object.freeze($s);const bs=$s;var ks=new WeakSet;class Ts extends Ye{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ks),t.add(e),this.$objectType="security.v4.report.Stig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r;if(e){if(t=t||new Ts,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&t.setTitle(e.title),e.hasOwnProperty("ruleId")&&null!==e.ruleId&&void 0!==e.ruleId&&t.setRuleId(e.ruleId),e.hasOwnProperty("stigVersion")&&null!==e.stigVersion&&void 0!==e.stigVersion&&t.setStigVersion(e.stigVersion),e.hasOwnProperty("identifiers")&&null!==e.identifiers&&void 0!==e.identifiers){for(r=[],s=e.identifiers,i=0;i<s.length;i++)r.push(s[i]);t.setIdentifiers(r)}if(e.hasOwnProperty("affectedClusters")&&null!==e.affectedClusters&&void 0!==e.affectedClusters){for(r=[],s=e.affectedClusters,i=0;i<s.length;i++)r.push(s[i]);t.setAffectedClusters(r)}if(e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(ms.constructFromObject(e.severity)),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&t.setStatus(bs.constructFromObject(e.status)),e.hasOwnProperty("comments")&&null!==e.comments&&void 0!==e.comments&&t.setComments(e.comments),e.hasOwnProperty("fixText")&&null!==e.fixText&&void 0!==e.fixText&&t.setFixText(e.fixText),e.hasOwnProperty("benchmarkId")&&null!==e.benchmarkId&&void 0!==e.benchmarkId&&t.setBenchmarkId(e.benchmarkId),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTitle(){return this.title}setTitle(e){this.title=e}getRuleId(){return this.ruleId}setRuleId(e){this.ruleId=e}getStigVersion(){return this.stigVersion}setStigVersion(e){this.stigVersion=e}getIdentifiers(){return this.identifiers}setIdentifiers(e){this.identifiers=e}getAffectedClusters(){return this.affectedClusters}setAffectedClusters(e){this.affectedClusters=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getStatus(){return this.status}setStatus(e){this.status=e}getComments(){return this.comments}setComments(e){this.comments=e}getFixText(){return this.fixText}setFixText(e){this.fixText=e}getBenchmarkId(){return this.benchmarkId}setBenchmarkId(e){this.benchmarkId=e}toJson(e){return!1===e?{...void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{},...void 0!==this.getRuleId()&&null!==this.getRuleId()?{ruleId:this.getRuleId()}:{},...void 0!==this.getStigVersion()&&null!==this.getStigVersion()?{stigVersion:this.getStigVersion()}:{},...void 0!==this.getIdentifiers()&&null!==this.getIdentifiers()?{identifiers:this.getIdentifiers()}:{},...void 0!==this.getAffectedClusters()&&null!==this.getAffectedClusters()?{affectedClusters:this.getAffectedClusters()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{},...void 0!==this.getComments()&&null!==this.getComments()?{comments:this.getComments()}:{},...void 0!==this.getFixText()&&null!==this.getFixText()?{fixText:this.getFixText()}:{},...void 0!==this.getBenchmarkId()&&null!==this.getBenchmarkId()?{benchmarkId:this.getBenchmarkId()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("title"===t){if(void 0===this.title||null===this.title)return new j("title","undefined or null");if(!F.validateMaxLength(this.title,199))return new j("title","does not satisfy required maxLength constraint: 199")}if("ruleId"===t){if(void 0===this.ruleId||null===this.ruleId)return new j("ruleId","undefined or null");if(!F.validatePattern(this.ruleId,/^SV-\\d{6}r\\d{6}_rule$/))return new j("ruleId","does not satisfy required pattern: /^SV-\\d{6}r\\d{6}_rule$/")}if("stigVersion"===t){if(void 0===this.stigVersion||null===this.stigVersion)return new j("stigVersion","undefined or null");if(!F.validatePattern(this.stigVersion,/^RHEL-\\d{2}-\\d{6}$/))return new j("stigVersion","does not satisfy required pattern: /^RHEL-\\d{2}-\\d{6}$/")}if("identifiers"===t){if(void 0===this.identifiers||null===this.identifiers)return new j("identifiers","undefined or null");if(!F.validateMaxItems(this.identifiers,100))return new j("identifiers","does not satisfy required maxItems constraint: 100");if(!F.validateMinItems(this.identifiers,1))return new j("identifiers","does not satisfy required minItems constraint: 1")}if("affectedClusters"===t){if(void 0===this.affectedClusters||null===this.affectedClusters)return new j("affectedClusters","undefined or null");if(!F.validateMaxItems(this.affectedClusters,300))return new j("affectedClusters","does not satisfy required maxItems constraint: 300");if(!F.validateMinItems(this.affectedClusters,1))return new j("affectedClusters","does not satisfy required minItems constraint: 1")}if("severity"===t&&(void 0===this.severity||null===this.severity))return new j("severity","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new j("status","undefined or null");if("comments"===t){if(void 0===this.comments||null===this.comments)return new j("comments","undefined or null");if(!F.validateMaxLength(this.comments,499))return new j("comments","does not satisfy required maxLength constraint: 499")}if("fixText"===t){if(void 0===this.fixText||null===this.fixText)return new j("fixText","undefined or null");if(!F.validateMaxLength(this.fixText,499))return new j("fixText","does not satisfy required maxLength constraint: 499")}if("benchmarkId"===t){if(void 0===this.benchmarkId||null===this.benchmarkId)return new j("benchmarkId","undefined or null");if(!F.validatePattern(this.benchmarkId,/^RHEL_\\d+_V\\d+R\\d+$/))return new j("benchmarkId","does not satisfy required pattern: /^RHEL_\\d+_V\\d+R\\d+$/")}return new j(t,"no such property exists")}}Ts.prototype.title=void 0,Ts.prototype.ruleId=void 0,Ts.prototype.stigVersion=void 0,Ts.prototype.identifiers=void 0,Ts.prototype.affectedClusters=void 0,Ts.prototype.severity=void 0,Ts.prototype.status=void 0,Ts.prototype.comments=void 0,Ts.prototype.fixText=void 0,Ts.prototype.benchmarkId=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;class Fs extends Ts{constructor(){super(),this.$objectType="security.v4.report.StigProjection",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Fs,Ts.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new j(t,"no such property exists")}}function js(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 Es=new WeakSet;class Os extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Es),t.add(e),this.$objectType="security.v4.report.ListStigsApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new Os,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"security.v4.report.Stig":i=Ts.constructFromObject(s[o],void 0),a.push(i);break;case"security.v4.report.StigProjection":i=Fs.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"security.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):js(Es,this,Is).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):js(Es,this,Is).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function Is(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Os.prototype.metadata=void 0,Os.prototype.data=void 0,Os.prototype.$reserved=void 0,Os.prototype.$objectType=void 0,Os.prototype.$unknownFields=void 0;var Ps=new WeakSet;class Cs extends Ye{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ps),t.add(e),this.$objectType="security.v4.report.StigSummary",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Cs,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("passedCount")&&null!==e.passedCount&&void 0!==e.passedCount&&t.setPassedCount(e.passedCount),e.hasOwnProperty("failedCount")&&null!==e.failedCount&&void 0!==e.failedCount&&t.setFailedCount(e.failedCount),e.hasOwnProperty("notApplicableCount")&&null!==e.notApplicableCount&&void 0!==e.notApplicableCount&&t.setNotApplicableCount(e.notApplicableCount),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}getPassedCount(){return this.passedCount}setPassedCount(e){this.passedCount=e}getFailedCount(){return this.failedCount}setFailedCount(e){this.failedCount=e}getNotApplicableCount(){return this.notApplicableCount}setNotApplicableCount(e){this.notApplicableCount=e}toJson(e){return!1===e?{...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getPassedCount()&&null!==this.getPassedCount()?{passedCount:this.getPassedCount()}:{},...void 0!==this.getFailedCount()&&null!==this.getFailedCount()?{failedCount:this.getFailedCount()}:{},...void 0!==this.getNotApplicableCount()&&null!==this.getNotApplicableCount()?{notApplicableCount:this.getNotApplicableCount()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new j("clusterExtId","undefined or null");if(!F.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 j("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"passedCount"!==t||void 0!==this.passedCount&&null!==this.passedCount?"failedCount"!==t||void 0!==this.failedCount&&null!==this.failedCount?"notApplicableCount"!==t||void 0!==this.notApplicableCount&&null!==this.notApplicableCount?new j(t,"no such property exists"):new j("notApplicableCount","undefined or null"):new j("failedCount","undefined or null"):new j("passedCount","undefined or null")}}Cs.prototype.clusterExtId=void 0,Cs.prototype.passedCount=void 0,Cs.prototype.failedCount=void 0,Cs.prototype.notApplicableCount=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var Ss=new WeakSet;class As{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ss),t.add(e),this.$objectType="security.v4.common.Cluster",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new As,e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("clusterName")&&null!==e.clusterName&&void 0!==e.clusterName&&t.setClusterName(e.clusterName),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}getClusterName(){return this.clusterName}setClusterName(e){this.clusterName=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new j("clusterExtId","undefined or null");if(!F.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 j("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}$/")}if("clusterName"===t){if(void 0===this.clusterName||null===this.clusterName)return new j("clusterName","undefined or null");if(!F.validateMaxLength(this.clusterName,199))return new j("clusterName","does not satisfy required maxLength constraint: 199")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}As.prototype.clusterExtId=void 0,As.prototype.clusterName=void 0,As.prototype.$reserved=void 0,As.prototype.$objectType=void 0,As.prototype.$unknownFields=void 0;class Ds extends As{constructor(){super(),this.$objectType="security.v4.common.ClusterProjection",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ds,As.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new j(t,"no such property exists")}}var xs=new WeakSet;class Us extends Cs{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=xs),t.add(e),this.$objectType="security.v4.report.StigSummaryProjection",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Us,Cs.constructFromObject(e,t,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&t.setClusterProjection(Ds.constructFromObject(e.clusterProjection)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterProjection(){return this.clusterProjection}setClusterProjection(e){this.clusterProjection=e}toJson(e){return!1===e?{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getPassedCount()&&null!==this.getPassedCount()?{passedCount:this.getPassedCount()}:{},...void 0!==this.getFailedCount()&&null!==this.getFailedCount()?{failedCount:this.getFailedCount()}:{},...void 0!==this.getNotApplicableCount()&&null!==this.getNotApplicableCount()?{notApplicableCount:this.getNotApplicableCount()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new j(t,"no such property exists"):new j("clusterProjection","undefined or null")}}function Rs(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")}Us.prototype.clusterProjection=void 0,Cs.prototype.clusterExtId=void 0,Cs.prototype.passedCount=void 0,Cs.prototype.failedCount=void 0,Cs.prototype.notApplicableCount=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var Ns=new WeakSet;class Ls extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ns),t.add(e),this.$objectType="security.v4.report.ListStigSummariesApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new Ls,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"security.v4.report.StigSummary":i=Cs.constructFromObject(s[o],void 0),a.push(i);break;case"security.v4.report.StigSummaryProjection":i=Us.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"security.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Rs(Ns,this,Js).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Rs(Ns,this,Js).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function Js(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Ls.prototype.metadata=void 0,Ls.prototype.data=void 0,Ls.prototype.$reserved=void 0,Ls.prototype.$objectType=void 0,Ls.prototype.$unknownFields=void 0;const Ms={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DAY:"DAY",WEEK:"WEEK",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ms).find(t=>Ms[t]===e);return null==t?Ms.$UNKNOWN:Ms[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ms.$UNKNOWN:case Ms.$REDACTED:case Ms.DAY:case Ms.WEEK:return;default:throw new Error("Invalid : must be Timescale.{ $UNKNOWN|$REDACTED|DAY|WEEK }")}}};Object.freeze(Ms);const Vs=Ms;function Bs(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 _s=new WeakSet;class Ks{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=_s),t.add(e),this.$objectType="security.v4.report.TrendValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ks,e.hasOwnProperty("count")&&null!==e.count&&void 0!==e.count&&t.setCount(e.count),e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCount(){return this.count}setCount(e){this.count=e}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCount()&&null!==this.getCount()?{count:this.getCount()}:{},...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Bs(_s,this,Ws).call(this,this.getTimestamp(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"count"!==t||void 0!==this.count&&null!==this.count?"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"$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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("timestamp","undefined or null"):new j("count","undefined or null")}}function Ws(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Ks.prototype.count=void 0,Ks.prototype.timestamp=void 0,Ks.prototype.$reserved=void 0,Ks.prototype.$objectType=void 0,Ks.prototype.$unknownFields=void 0;var qs=new WeakSet;class Hs{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=qs),t.add(e),this.$objectType="security.v4.report.IssueSummary",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new Hs,e.hasOwnProperty("currentIssueCount")&&null!==e.currentIssueCount&&void 0!==e.currentIssueCount&&t.setCurrentIssueCount(e.currentIssueCount),e.hasOwnProperty("trends")&&null!==e.trends&&void 0!==e.trends){for(o=[],s=e.trends,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setTrends(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCurrentIssueCount(){return this.currentIssueCount}setCurrentIssueCount(e){this.currentIssueCount=e}getTrends(){return this.trends}setTrends(e){this.trends=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCurrentIssueCount()&&null!==this.getCurrentIssueCount()?{currentIssueCount:this.getCurrentIssueCount()}:{},...void 0!==this.getTrends()&&null!==this.getTrends()?{trends:this.getTrends().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("currentIssueCount"===t&&(void 0===this.currentIssueCount||null===this.currentIssueCount))return new j("currentIssueCount","undefined or null");if("trends"===t){if(void 0===this.trends||null===this.trends)return new j("trends","undefined or null");if(!F.validateMaxItems(this.trends,31))return new j("trends","does not satisfy required maxItems constraint: 31")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}Hs.prototype.currentIssueCount=void 0,Hs.prototype.trends=void 0,Hs.prototype.$reserved=void 0,Hs.prototype.$objectType=void 0,Hs.prototype.$unknownFields=void 0;var zs=new WeakSet;class Gs extends Hs{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=zs),t.add(e),this.$objectType="security.v4.report.SecurityConfigSummary",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Gs,Hs.constructFromObject(e,t,!0),e.hasOwnProperty("isSecureBootEnabled")&&null!==e.isSecureBootEnabled&&void 0!==e.isSecureBootEnabled&&t.setIsSecureBootEnabled(e.isSecureBootEnabled),e.hasOwnProperty("isClusterLockdownEnabled")&&null!==e.isClusterLockdownEnabled&&void 0!==e.isClusterLockdownEnabled&&t.setIsClusterLockdownEnabled(e.isClusterLockdownEnabled),e.hasOwnProperty("isLogForwardingEnabled")&&null!==e.isLogForwardingEnabled&&void 0!==e.isLogForwardingEnabled&&t.setIsLogForwardingEnabled(e.isLogForwardingEnabled),e.hasOwnProperty("isConsentBannerEnabled")&&null!==e.isConsentBannerEnabled&&void 0!==e.isConsentBannerEnabled&&t.setIsConsentBannerEnabled(e.isConsentBannerEnabled),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIsSecureBootEnabled(){return this.isSecureBootEnabled}setIsSecureBootEnabled(e){this.isSecureBootEnabled=e}getIsClusterLockdownEnabled(){return this.isClusterLockdownEnabled}setIsClusterLockdownEnabled(e){this.isClusterLockdownEnabled=e}getIsLogForwardingEnabled(){return this.isLogForwardingEnabled}setIsLogForwardingEnabled(e){this.isLogForwardingEnabled=e}getIsConsentBannerEnabled(){return this.isConsentBannerEnabled}setIsConsentBannerEnabled(e){this.isConsentBannerEnabled=e}toJson(e){return!1===e?{...void 0!==this.getIsSecureBootEnabled()&&null!==this.getIsSecureBootEnabled()?{isSecureBootEnabled:this.getIsSecureBootEnabled()}:{},...void 0!==this.getIsClusterLockdownEnabled()&&null!==this.getIsClusterLockdownEnabled()?{isClusterLockdownEnabled:this.getIsClusterLockdownEnabled()}:{},...void 0!==this.getIsLogForwardingEnabled()&&null!==this.getIsLogForwardingEnabled()?{isLogForwardingEnabled:this.getIsLogForwardingEnabled()}:{},...void 0!==this.getIsConsentBannerEnabled()&&null!==this.getIsConsentBannerEnabled()?{isConsentBannerEnabled:this.getIsConsentBannerEnabled()}:{},...void 0!==this.getCurrentIssueCount()&&null!==this.getCurrentIssueCount()?{currentIssueCount:this.getCurrentIssueCount()}:{},...void 0!==this.getTrends()&&null!==this.getTrends()?{trends:this.getTrends().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getCurrentIssueCount()&&null!==this.getCurrentIssueCount()?{currentIssueCount:this.getCurrentIssueCount()}:{},...void 0!==this.getTrends()&&null!==this.getTrends()?{trends:this.getTrends().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"isSecureBootEnabled"!==t||void 0!==this.isSecureBootEnabled&&null!==this.isSecureBootEnabled?"isClusterLockdownEnabled"!==t||void 0!==this.isClusterLockdownEnabled&&null!==this.isClusterLockdownEnabled?"isLogForwardingEnabled"!==t||void 0!==this.isLogForwardingEnabled&&null!==this.isLogForwardingEnabled?"isConsentBannerEnabled"!==t||void 0!==this.isConsentBannerEnabled&&null!==this.isConsentBannerEnabled?new j(t,"no such property exists"):new j("isConsentBannerEnabled","undefined or null"):new j("isLogForwardingEnabled","undefined or null"):new j("isClusterLockdownEnabled","undefined or null"):new j("isSecureBootEnabled","undefined or null")}}Gs.prototype.isSecureBootEnabled=void 0,Gs.prototype.isClusterLockdownEnabled=void 0,Gs.prototype.isLogForwardingEnabled=void 0,Gs.prototype.isConsentBannerEnabled=void 0,Hs.prototype.currentIssueCount=void 0,Hs.prototype.trends=void 0;var Xs=new WeakSet;class Qs extends Hs{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Xs),t.add(e),this.$objectType="security.v4.report.StigSecuritySummary",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qs,Hs.constructFromObject(e,t,!0),e.hasOwnProperty("passedCount")&&null!==e.passedCount&&void 0!==e.passedCount&&t.setPassedCount(e.passedCount),e.hasOwnProperty("failedCount")&&null!==e.failedCount&&void 0!==e.failedCount&&t.setFailedCount(e.failedCount),e.hasOwnProperty("notApplicableCount")&&null!==e.notApplicableCount&&void 0!==e.notApplicableCount&&t.setNotApplicableCount(e.notApplicableCount),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPassedCount(){return this.passedCount}setPassedCount(e){this.passedCount=e}getFailedCount(){return this.failedCount}setFailedCount(e){this.failedCount=e}getNotApplicableCount(){return this.notApplicableCount}setNotApplicableCount(e){this.notApplicableCount=e}toJson(e){return!1===e?{...void 0!==this.getPassedCount()&&null!==this.getPassedCount()?{passedCount:this.getPassedCount()}:{},...void 0!==this.getFailedCount()&&null!==this.getFailedCount()?{failedCount:this.getFailedCount()}:{},...void 0!==this.getNotApplicableCount()&&null!==this.getNotApplicableCount()?{notApplicableCount:this.getNotApplicableCount()}:{},...void 0!==this.getCurrentIssueCount()&&null!==this.getCurrentIssueCount()?{currentIssueCount:this.getCurrentIssueCount()}:{},...void 0!==this.getTrends()&&null!==this.getTrends()?{trends:this.getTrends().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getCurrentIssueCount()&&null!==this.getCurrentIssueCount()?{currentIssueCount:this.getCurrentIssueCount()}:{},...void 0!==this.getTrends()&&null!==this.getTrends()?{trends:this.getTrends().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"passedCount"!==t||void 0!==this.passedCount&&null!==this.passedCount?"failedCount"!==t||void 0!==this.failedCount&&null!==this.failedCount?"notApplicableCount"!==t||void 0!==this.notApplicableCount&&null!==this.notApplicableCount?new j(t,"no such property exists"):new j("notApplicableCount","undefined or null"):new j("failedCount","undefined or null"):new j("passedCount","undefined or null")}}Qs.prototype.passedCount=void 0,Qs.prototype.failedCount=void 0,Qs.prototype.notApplicableCount=void 0,Hs.prototype.currentIssueCount=void 0,Hs.prototype.trends=void 0;const Ys={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PC:"PC",AOS:"AOS",AHV:"AHV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ys).find(t=>Ys[t]===e);return null==t?Ys.$UNKNOWN:Ys[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ys.$UNKNOWN:case Ys.$REDACTED:case Ys.PC:case Ys.AOS:case Ys.AHV:return;default:throw new Error("Invalid : must be SoftwareType.{ $UNKNOWN|$REDACTED|PC|AOS|AHV }")}}};Object.freeze(Ys);const Zs=Ys;var ei=new WeakSet;class ti{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ei),t.add(e),this.$objectType="security.v4.report.VulnerabilityDetail",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r;if(e){if(t=t||new ti,e.hasOwnProperty("installedVersion")&&null!==e.installedVersion&&void 0!==e.installedVersion&&t.setInstalledVersion(e.installedVersion),e.hasOwnProperty("cveIds")&&null!==e.cveIds&&void 0!==e.cveIds){for(r=[],s=e.cveIds,i=0;i<s.length;i++)r.push(s[i]);t.setCveIds(r)}if(e.hasOwnProperty("softwareType")&&null!==e.softwareType&&void 0!==e.softwareType&&t.setSoftwareType(Zs.constructFromObject(e.softwareType)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getInstalledVersion(){return this.installedVersion}setInstalledVersion(e){this.installedVersion=e}getCveIds(){return this.cveIds}setCveIds(e){this.cveIds=e}getSoftwareType(){return this.softwareType}setSoftwareType(e){this.softwareType=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getInstalledVersion()&&null!==this.getInstalledVersion()?{installedVersion:this.getInstalledVersion()}:{},...void 0!==this.getCveIds()&&null!==this.getCveIds()?{cveIds:this.getCveIds()}:{},...void 0!==this.getSoftwareType()&&null!==this.getSoftwareType()?{softwareType:this.getSoftwareType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getSoftwareType()&&null!==this.getSoftwareType()?{softwareType:this.getSoftwareType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("installedVersion"===t){if(void 0===this.installedVersion||null===this.installedVersion)return new j("installedVersion","undefined or null");if(!F.validateMaxLength(this.installedVersion,199))return new j("installedVersion","does not satisfy required maxLength constraint: 199")}if("cveIds"===t){if(void 0===this.cveIds||null===this.cveIds)return new j("cveIds","undefined or null");if(!F.validateMaxItems(this.cveIds,1024))return new j("cveIds","does not satisfy required maxItems constraint: 1024")}return"softwareType"!==t||void 0!==this.softwareType&&null!==this.softwareType?"$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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("softwareType","undefined or null")}}ti.prototype.installedVersion=void 0,ti.prototype.cveIds=void 0,ti.prototype.softwareType=void 0,ti.prototype.$reserved=void 0,ti.prototype.$objectType=void 0,ti.prototype.$unknownFields=void 0;var ni=new WeakSet;class si extends Hs{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ni),t.add(e),this.$objectType="security.v4.report.VulnerabilitySummary",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new si,Hs.constructFromObject(e,t,!0),e.hasOwnProperty("vulnerabilityDetails")&&null!==e.vulnerabilityDetails&&void 0!==e.vulnerabilityDetails){for(o=[],s=e.vulnerabilityDetails,r=0;r<s.length;r++)i=ti.constructFromObject(s[r],void 0),o.push(i);t.setVulnerabilityDetails(o)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVulnerabilityDetails(){return this.vulnerabilityDetails}setVulnerabilityDetails(e){this.vulnerabilityDetails=e}toJson(e){return{...void 0!==this.getVulnerabilityDetails()&&null!==this.getVulnerabilityDetails()?{vulnerabilityDetails:this.getVulnerabilityDetails().map(e=>e.toJson(!1))}:{},...void 0!==this.getCurrentIssueCount()&&null!==this.getCurrentIssueCount()?{currentIssueCount:this.getCurrentIssueCount()}:{},...void 0!==this.getTrends()&&null!==this.getTrends()?{trends:this.getTrends().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("vulnerabilityDetails"===t){if(void 0===this.vulnerabilityDetails||null===this.vulnerabilityDetails)return new j("vulnerabilityDetails","undefined or null");if(!F.validateMaxItems(this.vulnerabilityDetails,10))return new j("vulnerabilityDetails","does not satisfy required maxItems constraint: 10")}return new j(t,"no such property exists")}}function ii(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")}si.prototype.vulnerabilityDetails=void 0,Hs.prototype.currentIssueCount=void 0,Hs.prototype.trends=void 0;var ri=new WeakSet;class oi extends Ye{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ri),t.add(e),this.$objectType="security.v4.report.SecuritySummary",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new oi,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("securityConfigSummary")&&null!==e.securityConfigSummary&&void 0!==e.securityConfigSummary&&t.setSecurityConfigSummary(Gs.constructFromObject(e.securityConfigSummary)),e.hasOwnProperty("stigSummary")&&null!==e.stigSummary&&void 0!==e.stigSummary&&t.setStigSummary(Qs.constructFromObject(e.stigSummary)),e.hasOwnProperty("vulnerabilitiesSummary")&&null!==e.vulnerabilitiesSummary&&void 0!==e.vulnerabilitiesSummary&&t.setVulnerabilitiesSummary(si.constructFromObject(e.vulnerabilitiesSummary)),e.hasOwnProperty("passwordSummary")&&null!==e.passwordSummary&&void 0!==e.passwordSummary&&t.setPasswordSummary(Hs.constructFromObject(e.passwordSummary)),e.hasOwnProperty("trendType")&&null!==e.trendType&&void 0!==e.trendType&&t.setTrendType(Vs.constructFromObject(e.trendType)),e.hasOwnProperty("lastRefreshTime")&&null!==e.lastRefreshTime&&void 0!==e.lastRefreshTime&&t.setLastRefreshTime(e.lastRefreshTime),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}getSecurityConfigSummary(){return this.securityConfigSummary}setSecurityConfigSummary(e){this.securityConfigSummary=e}getStigSummary(){return this.stigSummary}setStigSummary(e){this.stigSummary=e}getVulnerabilitiesSummary(){return this.vulnerabilitiesSummary}setVulnerabilitiesSummary(e){this.vulnerabilitiesSummary=e}getPasswordSummary(){return this.passwordSummary}setPasswordSummary(e){this.passwordSummary=e}getTrendType(){return this.trendType}setTrendType(e){this.trendType=e}getLastRefreshTime(){return this.lastRefreshTime}setLastRefreshTime(e){this.lastRefreshTime=e}toJson(e){return!1===e?{...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getSecurityConfigSummary()&&null!==this.getSecurityConfigSummary()?{securityConfigSummary:this.getSecurityConfigSummary().toJson(!1)}:{},...void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{},...void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{},...void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{},...void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{},...void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:ii(ri,this,ai).call(this,this.getLastRefreshTime(),!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getSecurityConfigSummary()&&null!==this.getSecurityConfigSummary()?{securityConfigSummary:this.getSecurityConfigSummary().toJson(!1)}:{},...void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{},...void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{},...void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{},...void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{},...void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:ii(ri,this,ai).call(this,this.getLastRefreshTime(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new j("clusterExtId","undefined or null");if(!F.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 j("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"securityConfigSummary"!==t||void 0!==this.securityConfigSummary&&null!==this.securityConfigSummary?"stigSummary"!==t||void 0!==this.stigSummary&&null!==this.stigSummary?"vulnerabilitiesSummary"!==t||void 0!==this.vulnerabilitiesSummary&&null!==this.vulnerabilitiesSummary?"passwordSummary"!==t||void 0!==this.passwordSummary&&null!==this.passwordSummary?"trendType"!==t||void 0!==this.trendType&&null!==this.trendType?"lastRefreshTime"!==t||void 0!==this.lastRefreshTime&&null!==this.lastRefreshTime?new j(t,"no such property exists"):new j("lastRefreshTime","undefined or null"):new j("trendType","undefined or null"):new j("passwordSummary","undefined or null"):new j("vulnerabilitiesSummary","undefined or null"):new j("stigSummary","undefined or null"):new j("securityConfigSummary","undefined or null")}}function ai(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function li(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")}oi.prototype.clusterExtId=void 0,oi.prototype.securityConfigSummary=void 0,oi.prototype.stigSummary=void 0,oi.prototype.vulnerabilitiesSummary=void 0,oi.prototype.passwordSummary=void 0,oi.prototype.trendType=void 0,oi.prototype.lastRefreshTime=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var di=new WeakSet;class ui extends oi{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=di),t.add(e),this.$objectType="security.v4.report.SecuritySummaryProjection",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ui,oi.constructFromObject(e,t,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&t.setClusterProjection(Ds.constructFromObject(e.clusterProjection)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterProjection(){return this.clusterProjection}setClusterProjection(e){this.clusterProjection=e}toJson(e){return!1===e?{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getSecurityConfigSummary()&&null!==this.getSecurityConfigSummary()?{securityConfigSummary:this.getSecurityConfigSummary().toJson(!1)}:{},...void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{},...void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{},...void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{},...void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{},...void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:li(di,this,hi).call(this,this.getLastRefreshTime(),!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getSecurityConfigSummary()&&null!==this.getSecurityConfigSummary()?{securityConfigSummary:this.getSecurityConfigSummary().toJson(!1)}:{},...void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{},...void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{},...void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{},...void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{},...void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:li(di,this,hi).call(this,this.getLastRefreshTime(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new j(t,"no such property exists"):new j("clusterProjection","undefined or null")}}function hi(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}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")}ui.prototype.clusterProjection=void 0,oi.prototype.clusterExtId=void 0,oi.prototype.securityConfigSummary=void 0,oi.prototype.stigSummary=void 0,oi.prototype.vulnerabilitiesSummary=void 0,oi.prototype.passwordSummary=void 0,oi.prototype.trendType=void 0,oi.prototype.lastRefreshTime=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var pi=new WeakSet;class yi extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=pi),t.add(e),this.$objectType="security.v4.report.ListSecuritySummariesApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new yi,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"security.v4.report.SecuritySummary":i=oi.constructFromObject(s[o],void 0),a.push(i);break;case"security.v4.report.SecuritySummaryProjection":i=ui.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"security.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ci(pi,this,vi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ci(pi,this,vi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function vi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function gi(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")}yi.prototype.metadata=void 0,yi.prototype.data=void 0,yi.prototype.$reserved=void 0,yi.prototype.$objectType=void 0,yi.prototype.$unknownFields=void 0;var fi=new WeakSet;class wi extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=fi),t.add(e),this.$objectType="security.v4.report.RefreshSecuritySummariesApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new wi,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ce.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":t.setData(_e.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):gi(fi,this,mi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):gi(fi,this,mi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function mi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}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")}wi.prototype.metadata=void 0,wi.prototype.data=void 0,wi.prototype.$reserved=void 0,wi.prototype.$objectType=void 0,wi.prototype.$unknownFields=void 0;var bi=new WeakSet;class ki extends Ye{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=bi),t.add(e),this.$objectType="security.v4.report.Vulnerability",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r;if(e){if(t=t||new ki,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("cesaId")&&null!==e.cesaId&&void 0!==e.cesaId&&t.setCesaId(e.cesaId),e.hasOwnProperty("cveIds")&&null!==e.cveIds&&void 0!==e.cveIds){for(r=[],s=e.cveIds,i=0;i<s.length;i++)r.push(s[i]);t.setCveIds(r)}if(e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("fixVersions")&&null!==e.fixVersions&&void 0!==e.fixVersions){for(r=[],s=e.fixVersions,i=0;i<s.length;i++)r.push(s[i]);t.setFixVersions(r)}if(e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(ms.constructFromObject(e.severity)),e.hasOwnProperty("nxvdVersion")&&null!==e.nxvdVersion&&void 0!==e.nxvdVersion&&t.setNxvdVersion(e.nxvdVersion),e.hasOwnProperty("nxvdCreatedTime")&&null!==e.nxvdCreatedTime&&void 0!==e.nxvdCreatedTime&&t.setNxvdCreatedTime(e.nxvdCreatedTime),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCesaId(){return this.cesaId}setCesaId(e){this.cesaId=e}getCveIds(){return this.cveIds}setCveIds(e){this.cveIds=e}getDescription(){return this.description}setDescription(e){this.description=e}getFixVersions(){return this.fixVersions}setFixVersions(e){this.fixVersions=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getNxvdVersion(){return this.nxvdVersion}setNxvdVersion(e){this.nxvdVersion=e}getNxvdCreatedTime(){return this.nxvdCreatedTime}setNxvdCreatedTime(e){this.nxvdCreatedTime=e}toJson(e){return!1===e?{...void 0!==this.getCesaId()&&null!==this.getCesaId()?{cesaId:this.getCesaId()}:{},...void 0!==this.getCveIds()&&null!==this.getCveIds()?{cveIds:this.getCveIds()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getFixVersions()&&null!==this.getFixVersions()?{fixVersions:this.getFixVersions()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getNxvdVersion()&&null!==this.getNxvdVersion()?{nxvdVersion:this.getNxvdVersion()}:{},...void 0!==this.getNxvdCreatedTime()&&null!==this.getNxvdCreatedTime()?{nxvdCreatedTime:$i(bi,this,Ti).call(this,this.getNxvdCreatedTime(),!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("cesaId"===t){if(void 0===this.cesaId||null===this.cesaId)return new j("cesaId","undefined or null");if(!F.validateMaxLength(this.cesaId,199))return new j("cesaId","does not satisfy required maxLength constraint: 199")}if("cveIds"===t){if(void 0===this.cveIds||null===this.cveIds)return new j("cveIds","undefined or null");if(!F.validateMaxItems(this.cveIds,1024))return new j("cveIds","does not satisfy required maxItems constraint: 1024")}if("description"===t){if(void 0===this.description||null===this.description)return new j("description","undefined or null");if(!F.validateMaxLength(this.description,499))return new j("description","does not satisfy required maxLength constraint: 499")}if("fixVersions"===t){if(void 0===this.fixVersions||null===this.fixVersions)return new j("fixVersions","undefined or null");if(!F.validateMaxItems(this.fixVersions,50))return new j("fixVersions","does not satisfy required maxItems constraint: 50")}if("severity"===t&&(void 0===this.severity||null===this.severity))return new j("severity","undefined or null");if("nxvdVersion"===t){if(void 0===this.nxvdVersion||null===this.nxvdVersion)return new j("nxvdVersion","undefined or null");if(!F.validateMaxLength(this.nxvdVersion,199))return new j("nxvdVersion","does not satisfy required maxLength constraint: 199")}return"nxvdCreatedTime"!==t||void 0!==this.nxvdCreatedTime&&null!==this.nxvdCreatedTime?new j(t,"no such property exists"):new j("nxvdCreatedTime","undefined or null")}}function Ti(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}ki.prototype.cesaId=void 0,ki.prototype.cveIds=void 0,ki.prototype.description=void 0,ki.prototype.fixVersions=void 0,ki.prototype.severity=void 0,ki.prototype.nxvdVersion=void 0,ki.prototype.nxvdCreatedTime=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;class Fi extends ki{constructor(){super(),this.$objectType="security.v4.report.VulnerabilityProjection",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Fi,ki.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new j(t,"no such property exists")}}function ji(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 Ei=new WeakSet;class Oi extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ei),t.add(e),this.$objectType="security.v4.report.ListVulnerabilitiesApiResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new Oi,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(K.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"security.v4.report.Vulnerability":i=ki.constructFromObject(s[o],void 0),a.push(i);break;case"security.v4.report.VulnerabilityProjection":i=Fi.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"security.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ji(Ei,this,Ii).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ji(Ei,this,Ii).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null"):new j("data","undefined or null"):new j("metadata","undefined or null")}}function Ii(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Pi(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")}Oi.prototype.metadata=void 0,Oi.prototype.data=void 0,Oi.prototype.$reserved=void 0,Oi.prototype.$objectType=void 0,Oi.prototype.$unknownFields=void 0;var Ci=new WeakSet;class Si{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ci),t.add(e),this.$objectType="security.v4.config.ExternalSshAccessConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Si,e.hasOwnProperty("isSshEnabled")&&null!==e.isSshEnabled&&void 0!==e.isSshEnabled&&t.setIsSshEnabled(e.isSshEnabled),e.hasOwnProperty("sshExpiryTime")&&null!==e.sshExpiryTime&&void 0!==e.sshExpiryTime&&t.setSshExpiryTime(e.sshExpiryTime),e.hasOwnProperty("sshlastEnabledTime")&&null!==e.sshlastEnabledTime&&void 0!==e.sshlastEnabledTime&&t.setSshlastEnabledTime(e.sshlastEnabledTime),e.hasOwnProperty("sshEnableDurationHours")&&null!==e.sshEnableDurationHours&&void 0!==e.sshEnableDurationHours&&t.setSshEnableDurationHours(e.sshEnableDurationHours),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIsSshEnabled(){return this.isSshEnabled}setIsSshEnabled(e){this.isSshEnabled=e}getSshExpiryTime(){return this.sshExpiryTime}setSshExpiryTime(e){this.sshExpiryTime=e}getSshlastEnabledTime(){return this.sshlastEnabledTime}setSshlastEnabledTime(e){this.sshlastEnabledTime=e}getSshEnableDurationHours(){return this.sshEnableDurationHours}setSshEnableDurationHours(e){this.sshEnableDurationHours=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getIsSshEnabled()&&null!==this.getIsSshEnabled()?{isSshEnabled:this.getIsSshEnabled()}:{},...void 0!==this.getSshExpiryTime()&&null!==this.getSshExpiryTime()?{sshExpiryTime:Pi(Ci,this,Ai).call(this,this.getSshExpiryTime(),!1)}:{},...void 0!==this.getSshlastEnabledTime()&&null!==this.getSshlastEnabledTime()?{sshlastEnabledTime:Pi(Ci,this,Ai).call(this,this.getSshlastEnabledTime(),!1)}:{},...void 0!==this.getSshEnableDurationHours()&&null!==this.getSshEnableDurationHours()?{sshEnableDurationHours:this.getSshEnableDurationHours()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getIsSshEnabled()&&null!==this.getIsSshEnabled()?{isSshEnabled:this.getIsSshEnabled()}:{},...void 0!==this.getSshEnableDurationHours()&&null!==this.getSshEnableDurationHours()?{sshEnableDurationHours:this.getSshEnableDurationHours()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("isSshEnabled"===t&&(void 0===this.isSshEnabled||null===this.isSshEnabled))return new j("isSshEnabled","undefined or null");if("sshExpiryTime"===t&&(void 0===this.sshExpiryTime||null===this.sshExpiryTime))return new j("sshExpiryTime","undefined or null");if("sshlastEnabledTime"===t&&(void 0===this.sshlastEnabledTime||null===this.sshlastEnabledTime))return new j("sshlastEnabledTime","undefined or null");if("sshEnableDurationHours"===t){if(void 0===this.sshEnableDurationHours||null===this.sshEnableDurationHours)return new j("sshEnableDurationHours","undefined or null");if(!F.validateMaximum(this.sshEnableDurationHours,72))return new j("sshEnableDurationHours","does not satisfy required maximum constraint: 72");if(!F.validateMinimum(this.sshEnableDurationHours,1))return new j("sshEnableDurationHours","does not satisfy required minimum constraint: 1")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}function Ai(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Si.prototype.isSshEnabled=void 0,Si.prototype.sshExpiryTime=void 0,Si.prototype.sshlastEnabledTime=void 0,Si.prototype.sshEnableDurationHours=1,Si.prototype.$reserved=void 0,Si.prototype.$objectType=void 0,Si.prototype.$unknownFields=void 0;class Di extends Si{constructor(){super(),this.$objectType="security.v4.config.ExternalSshAccessConfigProjection",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Di,Si.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new j(t,"no such property exists")}}const xi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HOURLY:"HOURLY",DAILY:"DAILY",WEEKLY:"WEEKLY",MONTHLY:"MONTHLY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(xi).find(t=>xi[t]===e);return null==t?xi.$UNKNOWN:xi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xi.$UNKNOWN:case xi.$REDACTED:case xi.HOURLY:case xi.DAILY:case xi.WEEKLY:case xi.MONTHLY:return;default:throw new Error("Invalid : must be ScheduleType.{ $UNKNOWN|$REDACTED|HOURLY|DAILY|WEEKLY|MONTHLY }")}}};Object.freeze(xi);const Ui=xi;var Ri=new WeakSet;class Ni extends Ye{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ri),t.add(e),this.$objectType="security.v4.config.SecurityConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ni,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("isHighStrengthPasswordEnabled")&&null!==e.isHighStrengthPasswordEnabled&&void 0!==e.isHighStrengthPasswordEnabled&&t.setIsHighStrengthPasswordEnabled(e.isHighStrengthPasswordEnabled),e.hasOwnProperty("isAideEnabled")&&null!==e.isAideEnabled&&void 0!==e.isAideEnabled&&t.setIsAideEnabled(e.isAideEnabled),e.hasOwnProperty("isSecureBootEnabled")&&null!==e.isSecureBootEnabled&&void 0!==e.isSecureBootEnabled&&t.setIsSecureBootEnabled(e.isSecureBootEnabled),e.hasOwnProperty("isClusterLockdownEnabled")&&null!==e.isClusterLockdownEnabled&&void 0!==e.isClusterLockdownEnabled&&t.setIsClusterLockdownEnabled(e.isClusterLockdownEnabled),e.hasOwnProperty("isLogForwardingEnabled")&&null!==e.isLogForwardingEnabled&&void 0!==e.isLogForwardingEnabled&&t.setIsLogForwardingEnabled(e.isLogForwardingEnabled),e.hasOwnProperty("clusterScmaSchedule")&&null!==e.clusterScmaSchedule&&void 0!==e.clusterScmaSchedule&&t.setClusterScmaSchedule(Ui.constructFromObject(e.clusterScmaSchedule)),e.hasOwnProperty("ahvScmaSchedule")&&null!==e.ahvScmaSchedule&&void 0!==e.ahvScmaSchedule&&t.setAhvScmaSchedule(Ui.constructFromObject(e.ahvScmaSchedule)),e.hasOwnProperty("isAhvDefenseConsentBannerEnabled")&&null!==e.isAhvDefenseConsentBannerEnabled&&void 0!==e.isAhvDefenseConsentBannerEnabled&&t.setIsAhvDefenseConsentBannerEnabled(e.isAhvDefenseConsentBannerEnabled),e.hasOwnProperty("isClusterDefenseConsentBannerEnabled")&&null!==e.isClusterDefenseConsentBannerEnabled&&void 0!==e.isClusterDefenseConsentBannerEnabled&&t.setIsClusterDefenseConsentBannerEnabled(e.isClusterDefenseConsentBannerEnabled),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}getIsHighStrengthPasswordEnabled(){return this.isHighStrengthPasswordEnabled}setIsHighStrengthPasswordEnabled(e){this.isHighStrengthPasswordEnabled=e}getIsAideEnabled(){return this.isAideEnabled}setIsAideEnabled(e){this.isAideEnabled=e}getIsSecureBootEnabled(){return this.isSecureBootEnabled}setIsSecureBootEnabled(e){this.isSecureBootEnabled=e}getIsClusterLockdownEnabled(){return this.isClusterLockdownEnabled}setIsClusterLockdownEnabled(e){this.isClusterLockdownEnabled=e}getIsLogForwardingEnabled(){return this.isLogForwardingEnabled}setIsLogForwardingEnabled(e){this.isLogForwardingEnabled=e}getClusterScmaSchedule(){return this.clusterScmaSchedule}setClusterScmaSchedule(e){this.clusterScmaSchedule=e}getAhvScmaSchedule(){return this.ahvScmaSchedule}setAhvScmaSchedule(e){this.ahvScmaSchedule=e}getIsAhvDefenseConsentBannerEnabled(){return this.isAhvDefenseConsentBannerEnabled}setIsAhvDefenseConsentBannerEnabled(e){this.isAhvDefenseConsentBannerEnabled=e}getIsClusterDefenseConsentBannerEnabled(){return this.isClusterDefenseConsentBannerEnabled}setIsClusterDefenseConsentBannerEnabled(e){this.isClusterDefenseConsentBannerEnabled=e}toJson(e){return!1===e?{...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{},...void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{},...void 0!==this.getIsSecureBootEnabled()&&null!==this.getIsSecureBootEnabled()?{isSecureBootEnabled:this.getIsSecureBootEnabled()}:{},...void 0!==this.getIsClusterLockdownEnabled()&&null!==this.getIsClusterLockdownEnabled()?{isClusterLockdownEnabled:this.getIsClusterLockdownEnabled()}:{},...void 0!==this.getIsLogForwardingEnabled()&&null!==this.getIsLogForwardingEnabled()?{isLogForwardingEnabled:this.getIsLogForwardingEnabled()}:{},...void 0!==this.getClusterScmaSchedule()&&null!==this.getClusterScmaSchedule()?{clusterScmaSchedule:this.getClusterScmaSchedule()}:{},...void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{},...void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{},...void 0!==this.getIsClusterDefenseConsentBannerEnabled()&&null!==this.getIsClusterDefenseConsentBannerEnabled()?{isClusterDefenseConsentBannerEnabled:this.getIsClusterDefenseConsentBannerEnabled()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{},...void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{},...void 0!==this.getClusterScmaSchedule()&&null!==this.getClusterScmaSchedule()?{clusterScmaSchedule:this.getClusterScmaSchedule()}:{},...void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{},...void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{},...void 0!==this.getIsClusterDefenseConsentBannerEnabled()&&null!==this.getIsClusterDefenseConsentBannerEnabled()?{isClusterDefenseConsentBannerEnabled:this.getIsClusterDefenseConsentBannerEnabled()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new j("clusterExtId","undefined or null");if(!F.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 j("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"isHighStrengthPasswordEnabled"!==t||void 0!==this.isHighStrengthPasswordEnabled&&null!==this.isHighStrengthPasswordEnabled?"isAideEnabled"!==t||void 0!==this.isAideEnabled&&null!==this.isAideEnabled?"isSecureBootEnabled"!==t||void 0!==this.isSecureBootEnabled&&null!==this.isSecureBootEnabled?"isClusterLockdownEnabled"!==t||void 0!==this.isClusterLockdownEnabled&&null!==this.isClusterLockdownEnabled?"isLogForwardingEnabled"!==t||void 0!==this.isLogForwardingEnabled&&null!==this.isLogForwardingEnabled?"clusterScmaSchedule"!==t||void 0!==this.clusterScmaSchedule&&null!==this.clusterScmaSchedule?"ahvScmaSchedule"!==t||void 0!==this.ahvScmaSchedule&&null!==this.ahvScmaSchedule?"isAhvDefenseConsentBannerEnabled"!==t||void 0!==this.isAhvDefenseConsentBannerEnabled&&null!==this.isAhvDefenseConsentBannerEnabled?"isClusterDefenseConsentBannerEnabled"!==t||void 0!==this.isClusterDefenseConsentBannerEnabled&&null!==this.isClusterDefenseConsentBannerEnabled?new j(t,"no such property exists"):new j("isClusterDefenseConsentBannerEnabled","undefined or null"):new j("isAhvDefenseConsentBannerEnabled","undefined or null"):new j("ahvScmaSchedule","undefined or null"):new j("clusterScmaSchedule","undefined or null"):new j("isLogForwardingEnabled","undefined or null"):new j("isClusterLockdownEnabled","undefined or null"):new j("isSecureBootEnabled","undefined or null"):new j("isAideEnabled","undefined or null"):new j("isHighStrengthPasswordEnabled","undefined or null")}}Ni.prototype.clusterExtId=void 0,Ni.prototype.isHighStrengthPasswordEnabled=void 0,Ni.prototype.isAideEnabled=void 0,Ni.prototype.isSecureBootEnabled=void 0,Ni.prototype.isClusterLockdownEnabled=void 0,Ni.prototype.isLogForwardingEnabled=void 0,Ni.prototype.clusterScmaSchedule=void 0,Ni.prototype.ahvScmaSchedule=void 0,Ni.prototype.isAhvDefenseConsentBannerEnabled=void 0,Ni.prototype.isClusterDefenseConsentBannerEnabled=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var Li=new WeakSet;class Ji extends Ni{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Li),t.add(e),this.$objectType="security.v4.config.SecurityConfigProjection",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ji,Ni.constructFromObject(e,t,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&t.setClusterProjection(Ds.constructFromObject(e.clusterProjection)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterProjection(){return this.clusterProjection}setClusterProjection(e){this.clusterProjection=e}toJson(e){return!1===e?{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{},...void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{},...void 0!==this.getIsSecureBootEnabled()&&null!==this.getIsSecureBootEnabled()?{isSecureBootEnabled:this.getIsSecureBootEnabled()}:{},...void 0!==this.getIsClusterLockdownEnabled()&&null!==this.getIsClusterLockdownEnabled()?{isClusterLockdownEnabled:this.getIsClusterLockdownEnabled()}:{},...void 0!==this.getIsLogForwardingEnabled()&&null!==this.getIsLogForwardingEnabled()?{isLogForwardingEnabled:this.getIsLogForwardingEnabled()}:{},...void 0!==this.getClusterScmaSchedule()&&null!==this.getClusterScmaSchedule()?{clusterScmaSchedule:this.getClusterScmaSchedule()}:{},...void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{},...void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{},...void 0!==this.getIsClusterDefenseConsentBannerEnabled()&&null!==this.getIsClusterDefenseConsentBannerEnabled()?{isClusterDefenseConsentBannerEnabled:this.getIsClusterDefenseConsentBannerEnabled()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{},...void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{},...void 0!==this.getClusterScmaSchedule()&&null!==this.getClusterScmaSchedule()?{clusterScmaSchedule:this.getClusterScmaSchedule()}:{},...void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{},...void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{},...void 0!==this.getIsClusterDefenseConsentBannerEnabled()&&null!==this.getIsClusterDefenseConsentBannerEnabled()?{isClusterDefenseConsentBannerEnabled:this.getIsClusterDefenseConsentBannerEnabled()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new j(t,"no such property exists"):new j("clusterProjection","undefined or null")}}Ji.prototype.clusterProjection=void 0,Ni.prototype.clusterExtId=void 0,Ni.prototype.isHighStrengthPasswordEnabled=void 0,Ni.prototype.isAideEnabled=void 0,Ni.prototype.isSecureBootEnabled=void 0,Ni.prototype.isClusterLockdownEnabled=void 0,Ni.prototype.isLogForwardingEnabled=void 0,Ni.prototype.clusterScmaSchedule=void 0,Ni.prototype.ahvScmaSchedule=void 0,Ni.prototype.isAhvDefenseConsentBannerEnabled=void 0,Ni.prototype.isClusterDefenseConsentBannerEnabled=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;var Mi=new WeakSet;class Vi extends Ye{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Mi),t.add(e),this.$objectType="security.v4.config.SecurityConfigVisibilitySetting",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vi,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("isHighStrengthPasswordVisible")&&null!==e.isHighStrengthPasswordVisible&&void 0!==e.isHighStrengthPasswordVisible&&t.setIsHighStrengthPasswordVisible(e.isHighStrengthPasswordVisible),e.hasOwnProperty("isAideVisible")&&null!==e.isAideVisible&&void 0!==e.isAideVisible&&t.setIsAideVisible(e.isAideVisible),e.hasOwnProperty("isScmaVisible")&&null!==e.isScmaVisible&&void 0!==e.isScmaVisible&&t.setIsScmaVisible(e.isScmaVisible),e.hasOwnProperty("isSecureBootVisible")&&null!==e.isSecureBootVisible&&void 0!==e.isSecureBootVisible&&t.setIsSecureBootVisible(e.isSecureBootVisible),e.hasOwnProperty("isNetworkSegmentationVisible")&&null!==e.isNetworkSegmentationVisible&&void 0!==e.isNetworkSegmentationVisible&&t.setIsNetworkSegmentationVisible(e.isNetworkSegmentationVisible),e.hasOwnProperty("isClusterLockdownVisible")&&null!==e.isClusterLockdownVisible&&void 0!==e.isClusterLockdownVisible&&t.setIsClusterLockdownVisible(e.isClusterLockdownVisible),e.hasOwnProperty("isLogForwardingVisible")&&null!==e.isLogForwardingVisible&&void 0!==e.isLogForwardingVisible&&t.setIsLogForwardingVisible(e.isLogForwardingVisible),e.hasOwnProperty("isDefenseConsentBannerVisible")&&null!==e.isDefenseConsentBannerVisible&&void 0!==e.isDefenseConsentBannerVisible&&t.setIsDefenseConsentBannerVisible(e.isDefenseConsentBannerVisible),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIsHighStrengthPasswordVisible(){return this.isHighStrengthPasswordVisible}setIsHighStrengthPasswordVisible(e){this.isHighStrengthPasswordVisible=e}getIsAideVisible(){return this.isAideVisible}setIsAideVisible(e){this.isAideVisible=e}getIsScmaVisible(){return this.isScmaVisible}setIsScmaVisible(e){this.isScmaVisible=e}getIsSecureBootVisible(){return this.isSecureBootVisible}setIsSecureBootVisible(e){this.isSecureBootVisible=e}getIsNetworkSegmentationVisible(){return this.isNetworkSegmentationVisible}setIsNetworkSegmentationVisible(e){this.isNetworkSegmentationVisible=e}getIsClusterLockdownVisible(){return this.isClusterLockdownVisible}setIsClusterLockdownVisible(e){this.isClusterLockdownVisible=e}getIsLogForwardingVisible(){return this.isLogForwardingVisible}setIsLogForwardingVisible(e){this.isLogForwardingVisible=e}getIsDefenseConsentBannerVisible(){return this.isDefenseConsentBannerVisible}setIsDefenseConsentBannerVisible(e){this.isDefenseConsentBannerVisible=e}toJson(e){return!1===e?{...void 0!==this.getIsHighStrengthPasswordVisible()&&null!==this.getIsHighStrengthPasswordVisible()?{isHighStrengthPasswordVisible:this.getIsHighStrengthPasswordVisible()}:{},...void 0!==this.getIsAideVisible()&&null!==this.getIsAideVisible()?{isAideVisible:this.getIsAideVisible()}:{},...void 0!==this.getIsScmaVisible()&&null!==this.getIsScmaVisible()?{isScmaVisible:this.getIsScmaVisible()}:{},...void 0!==this.getIsSecureBootVisible()&&null!==this.getIsSecureBootVisible()?{isSecureBootVisible:this.getIsSecureBootVisible()}:{},...void 0!==this.getIsNetworkSegmentationVisible()&&null!==this.getIsNetworkSegmentationVisible()?{isNetworkSegmentationVisible:this.getIsNetworkSegmentationVisible()}:{},...void 0!==this.getIsClusterLockdownVisible()&&null!==this.getIsClusterLockdownVisible()?{isClusterLockdownVisible:this.getIsClusterLockdownVisible()}:{},...void 0!==this.getIsLogForwardingVisible()&&null!==this.getIsLogForwardingVisible()?{isLogForwardingVisible:this.getIsLogForwardingVisible()}:{},...void 0!==this.getIsDefenseConsentBannerVisible()&&null!==this.getIsDefenseConsentBannerVisible()?{isDefenseConsentBannerVisible:this.getIsDefenseConsentBannerVisible()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getIsHighStrengthPasswordVisible()&&null!==this.getIsHighStrengthPasswordVisible()?{isHighStrengthPasswordVisible:this.getIsHighStrengthPasswordVisible()}:{},...void 0!==this.getIsAideVisible()&&null!==this.getIsAideVisible()?{isAideVisible:this.getIsAideVisible()}:{},...void 0!==this.getIsScmaVisible()&&null!==this.getIsScmaVisible()?{isScmaVisible:this.getIsScmaVisible()}:{},...void 0!==this.getIsSecureBootVisible()&&null!==this.getIsSecureBootVisible()?{isSecureBootVisible:this.getIsSecureBootVisible()}:{},...void 0!==this.getIsNetworkSegmentationVisible()&&null!==this.getIsNetworkSegmentationVisible()?{isNetworkSegmentationVisible:this.getIsNetworkSegmentationVisible()}:{},...void 0!==this.getIsClusterLockdownVisible()&&null!==this.getIsClusterLockdownVisible()?{isClusterLockdownVisible:this.getIsClusterLockdownVisible()}:{},...void 0!==this.getIsLogForwardingVisible()&&null!==this.getIsLogForwardingVisible()?{isLogForwardingVisible:this.getIsLogForwardingVisible()}:{},...void 0!==this.getIsDefenseConsentBannerVisible()&&null!==this.getIsDefenseConsentBannerVisible()?{isDefenseConsentBannerVisible:this.getIsDefenseConsentBannerVisible()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"isHighStrengthPasswordVisible"!==t||void 0!==this.isHighStrengthPasswordVisible&&null!==this.isHighStrengthPasswordVisible?"isAideVisible"!==t||void 0!==this.isAideVisible&&null!==this.isAideVisible?"isScmaVisible"!==t||void 0!==this.isScmaVisible&&null!==this.isScmaVisible?"isSecureBootVisible"!==t||void 0!==this.isSecureBootVisible&&null!==this.isSecureBootVisible?"isNetworkSegmentationVisible"!==t||void 0!==this.isNetworkSegmentationVisible&&null!==this.isNetworkSegmentationVisible?"isClusterLockdownVisible"!==t||void 0!==this.isClusterLockdownVisible&&null!==this.isClusterLockdownVisible?"isLogForwardingVisible"!==t||void 0!==this.isLogForwardingVisible&&null!==this.isLogForwardingVisible?"isDefenseConsentBannerVisible"!==t||void 0!==this.isDefenseConsentBannerVisible&&null!==this.isDefenseConsentBannerVisible?new j(t,"no such property exists"):new j("isDefenseConsentBannerVisible","undefined or null"):new j("isLogForwardingVisible","undefined or null"):new j("isClusterLockdownVisible","undefined or null"):new j("isNetworkSegmentationVisible","undefined or null"):new j("isSecureBootVisible","undefined or null"):new j("isScmaVisible","undefined or null"):new j("isAideVisible","undefined or null"):new j("isHighStrengthPasswordVisible","undefined or null")}}Vi.prototype.isHighStrengthPasswordVisible=void 0,Vi.prototype.isAideVisible=void 0,Vi.prototype.isScmaVisible=void 0,Vi.prototype.isSecureBootVisible=void 0,Vi.prototype.isNetworkSegmentationVisible=void 0,Vi.prototype.isClusterLockdownVisible=void 0,Vi.prototype.isLogForwardingVisible=void 0,Vi.prototype.isDefenseConsentBannerVisible=void 0,Ye.prototype.extId=void 0,Ye.prototype.links=void 0,Xe.prototype.tenantId=void 0;class Bi extends Vi{constructor(){super(),this.$objectType="security.v4.config.SecurityConfigVisibilitySettingProjection",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Bi,Vi.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new j(t,"no such property exists")}}const _i={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DELETE:"DELETE",UPDATE:"UPDATE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(_i).find(t=>_i[t]===e);return null==t?_i.$UNKNOWN:_i[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case _i.$UNKNOWN:case _i.$REDACTED:case _i.DELETE:case _i.UPDATE:return;default:throw new Error("Invalid : must be EventType.{ $UNKNOWN|$REDACTED|DELETE|UPDATE }")}}};Object.freeze(_i);const Ki=_i,Wi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RECOVERY_POINT:"RECOVERY_POINT",APPROVAL_POLICY:"APPROVAL_POLICY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Wi).find(t=>Wi[t]===e);return null==t?Wi.$UNKNOWN:Wi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wi.$UNKNOWN:case Wi.$REDACTED:case Wi.RECOVERY_POINT:case Wi.APPROVAL_POLICY:return;default:throw new Error("Invalid : must be SecuredEntityType.{ $UNKNOWN|$REDACTED|RECOVERY_POINT|APPROVAL_POLICY }")}}};Object.freeze(Wi);const qi=Wi;var Hi=new WeakSet;class zi{constructor(e,t,n,s,i){var r,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r=this,o=Hi),o.add(r),this.securedEntityType=e,this.securedEntityName=t,this.securedEntityExtId=n,this.eventType=s,this.requesterExtId=i,this.$objectType="security.v4.management.SecurityValidationSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new zi,e.hasOwnProperty("securedEntityType")&&null!==e.securedEntityType&&void 0!==e.securedEntityType&&t.setSecuredEntityType(qi.constructFromObject(e.securedEntityType)),e.hasOwnProperty("securedEntityName")&&null!==e.securedEntityName&&void 0!==e.securedEntityName&&t.setSecuredEntityName(e.securedEntityName),e.hasOwnProperty("securedEntityExtId")&&null!==e.securedEntityExtId&&void 0!==e.securedEntityExtId&&t.setSecuredEntityExtId(e.securedEntityExtId),e.hasOwnProperty("eventType")&&null!==e.eventType&&void 0!==e.eventType&&t.setEventType(Ki.constructFromObject(e.eventType)),e.hasOwnProperty("securedPolicyExtId")&&null!==e.securedPolicyExtId&&void 0!==e.securedPolicyExtId&&t.setSecuredPolicyExtId(e.securedPolicyExtId),e.hasOwnProperty("securedEntityLocation")&&null!==e.securedEntityLocation&&void 0!==e.securedEntityLocation&&t.setSecuredEntityLocation(e.securedEntityLocation),e.hasOwnProperty("requesterExtId")&&null!==e.requesterExtId&&void 0!==e.requesterExtId&&t.setRequesterExtId(e.requesterExtId),e.hasOwnProperty("fullyQualifiedSecuredEntityName")&&null!==e.fullyQualifiedSecuredEntityName&&void 0!==e.fullyQualifiedSecuredEntityName&&t.setFullyQualifiedSecuredEntityName(e.fullyQualifiedSecuredEntityName),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSecuredEntityType(){return this.securedEntityType}setSecuredEntityType(e){this.securedEntityType=e}getSecuredEntityName(){return this.securedEntityName}setSecuredEntityName(e){this.securedEntityName=e}getSecuredEntityExtId(){return this.securedEntityExtId}setSecuredEntityExtId(e){this.securedEntityExtId=e}getEventType(){return this.eventType}setEventType(e){this.eventType=e}getSecuredPolicyExtId(){return this.securedPolicyExtId}setSecuredPolicyExtId(e){this.securedPolicyExtId=e}getSecuredEntityLocation(){return this.securedEntityLocation}setSecuredEntityLocation(e){this.securedEntityLocation=e}getRequesterExtId(){return this.requesterExtId}setRequesterExtId(e){this.requesterExtId=e}getFullyQualifiedSecuredEntityName(){return this.fullyQualifiedSecuredEntityName}setFullyQualifiedSecuredEntityName(e){this.fullyQualifiedSecuredEntityName=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getSecuredEntityType()&&null!==this.getSecuredEntityType()?{securedEntityType:this.getSecuredEntityType()}:{},...void 0!==this.getSecuredEntityName()&&null!==this.getSecuredEntityName()?{securedEntityName:this.getSecuredEntityName()}:{},...void 0!==this.getSecuredEntityExtId()&&null!==this.getSecuredEntityExtId()?{securedEntityExtId:this.getSecuredEntityExtId()}:{},...void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{},...void 0!==this.getSecuredPolicyExtId()&&null!==this.getSecuredPolicyExtId()?{securedPolicyExtId:this.getSecuredPolicyExtId()}:{},...void 0!==this.getSecuredEntityLocation()&&null!==this.getSecuredEntityLocation()?{securedEntityLocation:this.getSecuredEntityLocation()}:{},...void 0!==this.getRequesterExtId()&&null!==this.getRequesterExtId()?{requesterExtId:this.getRequesterExtId()}:{},...void 0!==this.getFullyQualifiedSecuredEntityName()&&null!==this.getFullyQualifiedSecuredEntityName()?{fullyQualifiedSecuredEntityName:this.getFullyQualifiedSecuredEntityName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?n=["securedEntityType","securedEntityName","securedEntityExtId","eventType","requesterExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("securedEntityType"===t&&(void 0===this.securedEntityType||null===this.securedEntityType))return new j("securedEntityType","undefined or null");if("securedEntityName"===t){if(void 0===this.securedEntityName||null===this.securedEntityName)return new j("securedEntityName","undefined or null");if(!F.validateMaxLength(this.securedEntityName,199))return new j("securedEntityName","does not satisfy required maxLength constraint: 199");if(!F.validateMinLength(this.securedEntityName,4))return new j("securedEntityName","does not satisfy required minLength constraint: 4")}if("securedEntityExtId"===t){if(void 0===this.securedEntityExtId||null===this.securedEntityExtId)return new j("securedEntityExtId","undefined or null");if(!F.validatePattern(this.securedEntityExtId,/^[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 j("securedEntityExtId","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("eventType"===t&&(void 0===this.eventType||null===this.eventType))return new j("eventType","undefined or null");if("securedPolicyExtId"===t){if(void 0===this.securedPolicyExtId||null===this.securedPolicyExtId)return new j("securedPolicyExtId","undefined or null");if(!F.validatePattern(this.securedPolicyExtId,/^[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 j("securedPolicyExtId","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("securedEntityLocation"===t){if(void 0===this.securedEntityLocation||null===this.securedEntityLocation)return new j("securedEntityLocation","undefined or null");if(!F.validatePattern(this.securedEntityLocation,/^[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 j("securedEntityLocation","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("requesterExtId"===t){if(void 0===this.requesterExtId||null===this.requesterExtId)return new j("requesterExtId","undefined or null");if(!F.validatePattern(this.requesterExtId,/^[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 j("requesterExtId","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("fullyQualifiedSecuredEntityName"===t){if(void 0===this.fullyQualifiedSecuredEntityName||null===this.fullyQualifiedSecuredEntityName)return new j("fullyQualifiedSecuredEntityName","undefined or null");if(!F.validateMaxLength(this.fullyQualifiedSecuredEntityName,199))return new j("fullyQualifiedSecuredEntityName","does not satisfy required maxLength constraint: 199")}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 j(t,"no such property exists"):new j("$unknownFields","undefined or null"):new j("$objectType","undefined or null"):new j("$reserved","undefined or null")}}zi.prototype.securedEntityType=void 0,zi.prototype.securedEntityName=void 0,zi.prototype.securedEntityExtId=void 0,zi.prototype.eventType=void 0,zi.prototype.securedPolicyExtId=void 0,zi.prototype.securedEntityLocation=void 0,zi.prototype.requesterExtId=void 0,zi.prototype.fullyQualifiedSecuredEntityName=void 0,zi.prototype.$reserved=void 0,zi.prototype.$objectType=void 0,zi.prototype.$unknownFields=void 0;const Gi={ApiClient:le,CredentialsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}createCredential(e,...t){let n=t.length>0?t[0]:{},s=null;if(s=e instanceof jt&&"function"==typeof e.toJson?e.toJson():e,null==s)throw new Error("Invalid body when calling createCredential");let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i};le.addEtagReferenceToHeader(e,r);const o=Vt;return this.apiClient.callApi("/api/security/v4.1/config/credentials","POST",{},{},r,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],o)}deleteCredentialById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteCredentialById");const s={extId:e};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Nt;return this.apiClient.callApi("/api/security/v4.1/config/credentials/{extId}","DELETE",s,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}getCredentialById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getCredentialById");const s={extId:e};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Dt;return this.apiClient.callApi("/api/security/v4.1/config/credentials/{extId}","GET",s,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}listCredentials(e,...t){let n=t.length>0?t[0]:{};const s={...(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}:{}};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Pt;return this.apiClient.callApi("/api/security/v4.1/config/credentials","GET",{},s,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}updateCredentialById(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof jt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateCredentialById");if(null==i)throw new Error("Invalid body when calling updateCredentialById");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=He;return this.apiClient.callApi("/api/security/v4.1/config/credentials/{extId}","PUT",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},ApprovalPoliciesApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}associatePolicies(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof Yt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling associatePolicies");if(null==i)throw new Error("Invalid body when calling associatePolicies");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=Wt;return this.apiClient.callApi("/api/security/v4.1/management/approval-policies/{extId}/$actions/associate-policies","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}createApprovalPolicy(e,...t){let n=t.length>0?t[0]:{},s=null;if(s=e instanceof $n&&"function"==typeof e.toJson?e.toJson():e,null==s)throw new Error("Invalid body when calling createApprovalPolicy");let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i};le.addEtagReferenceToHeader(e,r);const o=Dn;return this.apiClient.callApi("/api/security/v4.1/management/approval-policies","POST",{},{},r,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],o)}getApprovalPolicyByExtId(e,t,...n){let s=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'extId' when calling getApprovalPolicyByExtId");const i={extId:e},r={...t.hasOwnProperty("$select")?{$select:t.$select}:{}};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o},l=Fn;return this.apiClient.callApi("/api/security/v4.1/management/approval-policies/{extId}","GET",i,r,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}listApprovalPolicies(e,...t){let n=t.length>0?t[0]:{};const s={...(e=e||{}).hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Pn;return this.apiClient.callApi("/api/security/v4.1/management/approval-policies","GET",{},s,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}updateApprovalPolicyByExtId(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof $n&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateApprovalPolicyByExtId");if(null==i)throw new Error("Invalid body when calling updateApprovalPolicyByExtId");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=Nn;return this.apiClient.callApi("/api/security/v4.1/management/approval-policies/{extId}","PUT",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},KeyManagementServersApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}createKeyManagementServer(e,...t){let n=t.length>0?t[0]:{},s=null;if(s=e instanceof Gn&&"function"==typeof e.toJson?e.toJson():e,null==s)throw new Error("Invalid body when calling createKeyManagementServer");let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i};le.addEtagReferenceToHeader(e,r);const o=ls;return this.apiClient.callApi("/api/security/v4.1/config/key-management-servers","POST",{},{},r,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],o)}deleteKeyManagementServerById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteKeyManagementServerById");const s={extId:e};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=cs;return this.apiClient.callApi("/api/security/v4.1/config/key-management-servers/{extId}","DELETE",s,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}getKeyManagementServerById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getKeyManagementServerById");const s={extId:e};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=is;return this.apiClient.callApi("/api/security/v4.1/config/key-management-servers/{extId}","GET",s,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}listKeyManagementServers(...e){let t=e.length>0?e[0]:{},n={};Object.keys(t).forEach(e=>{this.#e.has(e.toLowerCase())||(n[e]=t[e])});const s={...n},i=gs;return this.apiClient.callApi("/api/security/v4.1/config/key-management-servers","GET",{},{},s,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],i)}updateKeyManagementServerById(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof Gn&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateKeyManagementServerById");if(null==i)throw new Error("Invalid body when calling updateKeyManagementServerById");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=es;return this.apiClient.callApi("/api/security/v4.1/config/key-management-servers/{extId}","PUT",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},STIGsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}listStigSummaries(e,...t){let n=t.length>0?t[0]:{};const s={...(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("$expand")?{$expand:e.$expand}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Ls;return this.apiClient.callApi("/api/security/v4.1/report/stig-summaries","GET",{},s,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}listStigs(e,...t){let n=t.length>0?t[0]:{};const s={...(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}:{}};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Os;return this.apiClient.callApi("/api/security/v4.1/report/stigs","GET",{},s,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}},SecuritySummariesApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}listSecuritySummaries(e,...t){let n=t.length>0?t[0]:{};const s={...(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("$expand")?{$expand:e.$expand}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=yi;return this.apiClient.callApi("/api/security/v4.1/report/security-summaries","GET",{},s,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}refreshSecuritySummaries(...e){let t=e.length>0?e[0]:{},n={};Object.keys(t).forEach(e=>{this.#e.has(e.toLowerCase())||(n[e]=t[e])});const s={...n},i=wi;return this.apiClient.callApi("/api/security/v4.1/report/security-summaries/$actions/refresh","POST",{},{},s,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],i)}},VulnerabilitiesApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}listVulnerabilities(e,...t){let n=t.length>0?t[0]:{};const s={...(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}:{}};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Oi;return this.apiClient.callApi("/api/security/v4.1/report/vulnerabilities","GET",{},s,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}},BasicAuth:et,FQDN:yt,Flag:O,IPAddressOrFQDN:$t,IPv4Address:gt,IPv6Address:wt,KVPair:x,MapOfStringWrapper:C,Message:J,MessageSeverity:N,TenantAwareModel:Xe,ApiLink:V,ApiResponseMetadata:K,ExternalizableAbstractModel:Ye,BucketsAccessKey:on,BucketsAccessKeyStatusType:en,CreationType:nn,User:yn,UserStatusType:dn,UserType:hn,TaskReference:Ce,Cluster:As,ClusterProjection:Ds,Timescale:Vs,AzureAccessInformation:Vn,BasicAuthCredential:nt,BmcCredential:it,CreateCredentialApiResponse:Vt,CreateKeyManagementServerApiResponse:ls,Credential:jt,DeleteCredentialApiResponse:Nt,DeleteKeyManagementServerApiResponse:cs,EndpointInfo:Kn,ExternalSshAccessConfig:Si,ExternalSshAccessConfigProjection:Di,GetCredentialApiResponse:Dt,GetKeyManagementServerApiResponse:is,IntersightConnectionType:ot,IntersightCredential:ct,KeyBasedAuth:lt,KeyBasedAuthCredential:ut,KeyManagementServer:Gn,KmipAccessInformation:qn,ListCredentialsApiResponse:Pt,ListKeyManagementServersApiResponse:gs,ScheduleType:Ui,SecurityConfig:Ni,SecurityConfigProjection:Ji,SecurityConfigVisibilitySetting:Vi,SecurityConfigVisibilitySettingProjection:Bi,UpdateCredentialApiResponse:He,UpdateKeyManagementServerApiResponse:es,VcenterCredential:kt,AppMessage:De,ErrorResponse:_e,SchemaValidationError:Je,SchemaValidationErrorMessage:Re,ApprovalPolicy:$n,ApprovalPolicyProjection:En,ApproverGroup:fn,AssociatePoliciesApiResponse:Wt,AssociatePoliciesSpec:Yt,CreateApprovalPolicyApiResponse:Dn,EventType:Ki,GetApprovalPolicyApiResponse:Fn,ListApprovalPoliciesApiResponse:Pn,PolicyType:zt,SecuredEntityType:qi,SecuredPolicy:Xt,SecurityValidationSpec:zi,UpdateApprovalPolicyApiResponse:Nn,IssueSummary:Hs,ListSecuritySummariesApiResponse:yi,ListStigSummariesApiResponse:Ls,ListStigsApiResponse:Os,ListVulnerabilitiesApiResponse:Oi,RefreshSecuritySummariesApiResponse:wi,SecurityConfigSummary:Gs,SecuritySummary:oi,SecuritySummaryProjection:ui,Severity:ms,SoftwareType:Zs,Stig:Ts,StigProjection:Fs,StigSecuritySummary:Qs,StigStatus:bs,StigSummary:Cs,StigSummaryProjection:Us,TrendValue:Ks,Vulnerability:ki,VulnerabilityDetail:ti,VulnerabilityProjection:Fi,VulnerabilitySummary:si}})(),s.default})());