@nutanix-scratch/security-js-client 4.1.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 (384) hide show
  1. package/README.md +3 -3
  2. package/dist/Ntnx-Security-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Security-js-client.js +119 -119
  4. package/dist/es/ApiClient.d.ts +1 -1
  5. package/dist/es/ApiClient.js +4 -4
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +3 -3
  8. package/dist/es/apis/approvalpolicies-endpoints.d.ts +2 -2
  9. package/dist/es/apis/approvalpolicies-endpoints.js +9 -9
  10. package/dist/es/apis/credentials-endpoints.d.ts +2 -2
  11. package/dist/es/apis/credentials-endpoints.js +9 -9
  12. package/dist/es/apis/keymanagementservers-endpoints.d.ts +1 -1
  13. package/dist/es/apis/keymanagementservers-endpoints.js +8 -8
  14. package/dist/es/apis/securitysummaries-endpoints.d.ts +2 -2
  15. package/dist/es/apis/securitysummaries-endpoints.js +6 -6
  16. package/dist/es/apis/stigs-endpoints.d.ts +3 -3
  17. package/dist/es/apis/stigs-endpoints.js +7 -7
  18. package/dist/es/apis/vulnerabilities-endpoints.d.ts +2 -2
  19. package/dist/es/apis/vulnerabilities-endpoints.js +5 -5
  20. package/dist/es/models/common/v1/config/BasicAuth.d.ts +1 -1
  21. package/dist/es/models/common/v1/config/BasicAuth.js +3 -3
  22. package/dist/es/models/common/v1/config/FQDN.d.ts +1 -1
  23. package/dist/es/models/common/v1/config/FQDN.js +3 -3
  24. package/dist/es/models/common/v1/config/Flag.d.ts +1 -1
  25. package/dist/es/models/common/v1/config/Flag.js +3 -3
  26. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +1 -1
  27. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +3 -3
  28. package/dist/es/models/common/v1/config/IPv4Address.d.ts +1 -1
  29. package/dist/es/models/common/v1/config/IPv4Address.js +3 -3
  30. package/dist/es/models/common/v1/config/IPv6Address.d.ts +1 -1
  31. package/dist/es/models/common/v1/config/IPv6Address.js +3 -3
  32. package/dist/es/models/common/v1/config/KVPair.d.ts +1 -1
  33. package/dist/es/models/common/v1/config/KVPair.js +3 -3
  34. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
  35. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +3 -3
  36. package/dist/es/models/common/v1/config/Message.d.ts +1 -1
  37. package/dist/es/models/common/v1/config/Message.js +3 -3
  38. package/dist/es/models/common/v1/config/MessageSeverity.js +2 -2
  39. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +1 -1
  40. package/dist/es/models/common/v1/config/TenantAwareModel.js +3 -3
  41. package/dist/es/models/common/v1/response/ApiLink.d.ts +1 -1
  42. package/dist/es/models/common/v1/response/ApiLink.js +3 -3
  43. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
  44. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +3 -3
  45. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
  46. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +3 -3
  47. package/dist/es/models/iam/v4/authn/BucketsAccessKey.d.ts +1 -1
  48. package/dist/es/models/iam/v4/authn/BucketsAccessKey.js +3 -3
  49. package/dist/es/models/iam/v4/authn/BucketsAccessKeyStatusType.js +2 -2
  50. package/dist/es/models/iam/v4/authn/CreationType.js +2 -2
  51. package/dist/es/models/iam/v4/authn/User.d.ts +1 -1
  52. package/dist/es/models/iam/v4/authn/User.js +3 -3
  53. package/dist/es/models/iam/v4/authn/UserStatusType.js +2 -2
  54. package/dist/es/models/iam/v4/authn/UserType.js +2 -2
  55. package/dist/es/models/prism/v4/config/TaskReference.d.ts +1 -1
  56. package/dist/es/models/prism/v4/config/TaskReference.js +4 -4
  57. package/dist/es/models/security/v4/common/Cluster.d.ts +1 -1
  58. package/dist/es/models/security/v4/common/Cluster.js +3 -3
  59. package/dist/es/models/security/v4/common/ClusterProjection.d.ts +1 -1
  60. package/dist/es/models/security/v4/common/ClusterProjection.js +3 -3
  61. package/dist/es/models/security/v4/common/Timescale.js +2 -2
  62. package/dist/es/models/security/v4/config/AzureAccessInformation.d.ts +1 -1
  63. package/dist/es/models/security/v4/config/AzureAccessInformation.js +3 -3
  64. package/dist/es/models/security/v4/config/BasicAuthCredential.d.ts +1 -1
  65. package/dist/es/models/security/v4/config/BasicAuthCredential.js +3 -3
  66. package/dist/es/models/security/v4/config/BmcCredential.d.ts +1 -1
  67. package/dist/es/models/security/v4/config/BmcCredential.js +3 -3
  68. package/dist/es/models/security/v4/config/CreateCredentialApiResponse.d.ts +1 -1
  69. package/dist/es/models/security/v4/config/CreateCredentialApiResponse.js +3 -3
  70. package/dist/es/models/security/v4/config/CreateKeyManagementServerApiResponse.d.ts +1 -1
  71. package/dist/es/models/security/v4/config/CreateKeyManagementServerApiResponse.js +3 -3
  72. package/dist/es/models/security/v4/config/Credential.d.ts +1 -1
  73. package/dist/es/models/security/v4/config/Credential.js +3 -3
  74. package/dist/es/models/security/v4/config/DeleteCredentialApiResponse.d.ts +1 -1
  75. package/dist/es/models/security/v4/config/DeleteCredentialApiResponse.js +3 -3
  76. package/dist/es/models/security/v4/config/DeleteKeyManagementServerApiResponse.d.ts +1 -1
  77. package/dist/es/models/security/v4/config/DeleteKeyManagementServerApiResponse.js +3 -3
  78. package/dist/es/models/security/v4/config/EndpointInfo.d.ts +1 -1
  79. package/dist/es/models/security/v4/config/EndpointInfo.js +3 -3
  80. package/dist/es/models/security/v4/config/ExternalSshAccessConfig.d.ts +1 -1
  81. package/dist/es/models/security/v4/config/ExternalSshAccessConfig.js +3 -3
  82. package/dist/es/models/security/v4/config/ExternalSshAccessConfigProjection.d.ts +1 -1
  83. package/dist/es/models/security/v4/config/ExternalSshAccessConfigProjection.js +3 -3
  84. package/dist/es/models/security/v4/config/GetCredentialApiResponse.d.ts +1 -1
  85. package/dist/es/models/security/v4/config/GetCredentialApiResponse.js +3 -3
  86. package/dist/es/models/security/v4/config/GetKeyManagementServerApiResponse.d.ts +1 -1
  87. package/dist/es/models/security/v4/config/GetKeyManagementServerApiResponse.js +3 -3
  88. package/dist/es/models/security/v4/config/IntersightConnectionType.js +2 -2
  89. package/dist/es/models/security/v4/config/IntersightCredential.d.ts +1 -1
  90. package/dist/es/models/security/v4/config/IntersightCredential.js +3 -3
  91. package/dist/es/models/security/v4/config/KeyBasedAuth.d.ts +1 -1
  92. package/dist/es/models/security/v4/config/KeyBasedAuth.js +3 -3
  93. package/dist/es/models/security/v4/config/KeyBasedAuthCredential.d.ts +1 -1
  94. package/dist/es/models/security/v4/config/KeyBasedAuthCredential.js +3 -3
  95. package/dist/es/models/security/v4/config/KeyManagementServer.d.ts +1 -1
  96. package/dist/es/models/security/v4/config/KeyManagementServer.js +3 -3
  97. package/dist/es/models/security/v4/config/KmipAccessInformation.d.ts +1 -1
  98. package/dist/es/models/security/v4/config/KmipAccessInformation.js +3 -3
  99. package/dist/es/models/security/v4/config/ListCredentialsApiResponse.d.ts +1 -1
  100. package/dist/es/models/security/v4/config/ListCredentialsApiResponse.js +3 -3
  101. package/dist/es/models/security/v4/config/ListKeyManagementServersApiResponse.d.ts +1 -1
  102. package/dist/es/models/security/v4/config/ListKeyManagementServersApiResponse.js +3 -3
  103. package/dist/es/models/security/v4/config/ScheduleType.js +2 -2
  104. package/dist/es/models/security/v4/config/SecurityConfig.d.ts +1 -1
  105. package/dist/es/models/security/v4/config/SecurityConfig.js +3 -3
  106. package/dist/es/models/security/v4/config/SecurityConfigProjection.d.ts +1 -1
  107. package/dist/es/models/security/v4/config/SecurityConfigProjection.js +3 -3
  108. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySetting.d.ts +1 -1
  109. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySetting.js +3 -3
  110. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySettingProjection.d.ts +1 -1
  111. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySettingProjection.js +3 -3
  112. package/dist/es/models/security/v4/config/UpdateCredentialApiResponse.d.ts +1 -1
  113. package/dist/es/models/security/v4/config/UpdateCredentialApiResponse.js +3 -3
  114. package/dist/es/models/security/v4/config/UpdateKeyManagementServerApiResponse.d.ts +1 -1
  115. package/dist/es/models/security/v4/config/UpdateKeyManagementServerApiResponse.js +3 -3
  116. package/dist/es/models/security/v4/config/VcenterCredential.d.ts +1 -1
  117. package/dist/es/models/security/v4/config/VcenterCredential.js +3 -3
  118. package/dist/es/models/security/v4/error/AppMessage.d.ts +1 -1
  119. package/dist/es/models/security/v4/error/AppMessage.js +3 -3
  120. package/dist/es/models/security/v4/error/ErrorResponse.d.ts +1 -1
  121. package/dist/es/models/security/v4/error/ErrorResponse.js +3 -3
  122. package/dist/es/models/security/v4/error/SchemaValidationError.d.ts +1 -1
  123. package/dist/es/models/security/v4/error/SchemaValidationError.js +3 -3
  124. package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
  125. package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.js +3 -3
  126. package/dist/es/models/security/v4/management/ApprovalPolicy.d.ts +1 -1
  127. package/dist/es/models/security/v4/management/ApprovalPolicy.js +3 -3
  128. package/dist/es/models/security/v4/management/ApprovalPolicyProjection.d.ts +1 -1
  129. package/dist/es/models/security/v4/management/ApprovalPolicyProjection.js +3 -3
  130. package/dist/es/models/security/v4/management/ApproverGroup.d.ts +1 -1
  131. package/dist/es/models/security/v4/management/ApproverGroup.js +3 -3
  132. package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +1 -1
  133. package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.js +3 -3
  134. package/dist/es/models/security/v4/management/AssociatePoliciesSpec.d.ts +1 -1
  135. package/dist/es/models/security/v4/management/AssociatePoliciesSpec.js +3 -3
  136. package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +1 -1
  137. package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.js +3 -3
  138. package/dist/es/models/security/v4/management/EventType.js +2 -2
  139. package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +1 -1
  140. package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.js +3 -3
  141. package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +1 -1
  142. package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.js +3 -3
  143. package/dist/es/models/security/v4/management/PolicyType.js +2 -2
  144. package/dist/es/models/security/v4/management/SecuredEntityType.js +2 -2
  145. package/dist/es/models/security/v4/management/SecuredPolicy.d.ts +1 -1
  146. package/dist/es/models/security/v4/management/SecuredPolicy.js +3 -3
  147. package/dist/es/models/security/v4/management/SecurityValidationSpec.d.ts +1 -1
  148. package/dist/es/models/security/v4/management/SecurityValidationSpec.js +3 -3
  149. package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +1 -1
  150. package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +3 -3
  151. package/dist/es/models/security/v4/report/IssueSummary.d.ts +1 -1
  152. package/dist/es/models/security/v4/report/IssueSummary.js +3 -3
  153. package/dist/es/models/security/v4/report/ListSecuritySummariesApiResponse.d.ts +1 -1
  154. package/dist/es/models/security/v4/report/ListSecuritySummariesApiResponse.js +3 -3
  155. package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.d.ts +1 -1
  156. package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.js +3 -3
  157. package/dist/es/models/security/v4/report/ListStigsApiResponse.d.ts +1 -1
  158. package/dist/es/models/security/v4/report/ListStigsApiResponse.js +3 -3
  159. package/dist/es/models/security/v4/report/ListVulnerabilitiesApiResponse.d.ts +1 -1
  160. package/dist/es/models/security/v4/report/ListVulnerabilitiesApiResponse.js +3 -3
  161. package/dist/es/models/security/v4/report/RefreshSecuritySummariesApiResponse.d.ts +1 -1
  162. package/dist/es/models/security/v4/report/RefreshSecuritySummariesApiResponse.js +3 -3
  163. package/dist/es/models/security/v4/report/SecurityConfigSummary.d.ts +1 -1
  164. package/dist/es/models/security/v4/report/SecurityConfigSummary.js +3 -3
  165. package/dist/es/models/security/v4/report/SecuritySummary.d.ts +1 -1
  166. package/dist/es/models/security/v4/report/SecuritySummary.js +3 -3
  167. package/dist/es/models/security/v4/report/SecuritySummaryProjection.d.ts +1 -1
  168. package/dist/es/models/security/v4/report/SecuritySummaryProjection.js +3 -3
  169. package/dist/es/models/security/v4/report/Severity.js +2 -2
  170. package/dist/es/models/security/v4/report/SoftwareType.js +2 -2
  171. package/dist/es/models/security/v4/report/Stig.d.ts +1 -1
  172. package/dist/es/models/security/v4/report/Stig.js +3 -3
  173. package/dist/es/models/security/v4/report/StigProjection.d.ts +1 -1
  174. package/dist/es/models/security/v4/report/StigProjection.js +3 -3
  175. package/dist/es/models/security/v4/report/StigSecuritySummary.d.ts +1 -1
  176. package/dist/es/models/security/v4/report/StigSecuritySummary.js +3 -3
  177. package/dist/es/models/security/v4/report/StigStatus.js +2 -2
  178. package/dist/es/models/security/v4/report/StigSummary.d.ts +1 -1
  179. package/dist/es/models/security/v4/report/StigSummary.js +3 -3
  180. package/dist/es/models/security/v4/report/StigSummaryProjection.d.ts +1 -1
  181. package/dist/es/models/security/v4/report/StigSummaryProjection.js +3 -3
  182. package/dist/es/models/security/v4/report/TrendValue.d.ts +1 -1
  183. package/dist/es/models/security/v4/report/TrendValue.js +3 -3
  184. package/dist/es/models/security/v4/report/Vulnerability.d.ts +1 -1
  185. package/dist/es/models/security/v4/report/Vulnerability.js +3 -3
  186. package/dist/es/models/security/v4/report/VulnerabilityDetail.d.ts +1 -1
  187. package/dist/es/models/security/v4/report/VulnerabilityDetail.js +3 -3
  188. package/dist/es/models/security/v4/report/VulnerabilityProjection.d.ts +1 -1
  189. package/dist/es/models/security/v4/report/VulnerabilityProjection.js +3 -3
  190. package/dist/es/models/security/v4/report/VulnerabilitySummary.d.ts +1 -1
  191. package/dist/es/models/security/v4/report/VulnerabilitySummary.js +3 -3
  192. package/dist/es/models/validation/ValidationError.js +2 -2
  193. package/dist/es/utils/ValidationUtils.js +2 -2
  194. package/dist/lib/ApiClient.d.ts +1 -1
  195. package/dist/lib/ApiClient.js +4 -4
  196. package/dist/lib/Paginable.d.ts +1 -1
  197. package/dist/lib/Paginable.js +3 -3
  198. package/dist/lib/apis/approvalpolicies-endpoints.d.ts +2 -2
  199. package/dist/lib/apis/approvalpolicies-endpoints.js +9 -9
  200. package/dist/lib/apis/credentials-endpoints.d.ts +2 -2
  201. package/dist/lib/apis/credentials-endpoints.js +9 -9
  202. package/dist/lib/apis/keymanagementservers-endpoints.d.ts +1 -1
  203. package/dist/lib/apis/keymanagementservers-endpoints.js +8 -8
  204. package/dist/lib/apis/securitysummaries-endpoints.d.ts +2 -2
  205. package/dist/lib/apis/securitysummaries-endpoints.js +6 -6
  206. package/dist/lib/apis/stigs-endpoints.d.ts +3 -3
  207. package/dist/lib/apis/stigs-endpoints.js +7 -7
  208. package/dist/lib/apis/vulnerabilities-endpoints.d.ts +2 -2
  209. package/dist/lib/apis/vulnerabilities-endpoints.js +5 -5
  210. package/dist/lib/models/common/v1/config/BasicAuth.d.ts +1 -1
  211. package/dist/lib/models/common/v1/config/BasicAuth.js +3 -3
  212. package/dist/lib/models/common/v1/config/FQDN.d.ts +1 -1
  213. package/dist/lib/models/common/v1/config/FQDN.js +3 -3
  214. package/dist/lib/models/common/v1/config/Flag.d.ts +1 -1
  215. package/dist/lib/models/common/v1/config/Flag.js +3 -3
  216. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +1 -1
  217. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +3 -3
  218. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +1 -1
  219. package/dist/lib/models/common/v1/config/IPv4Address.js +3 -3
  220. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +1 -1
  221. package/dist/lib/models/common/v1/config/IPv6Address.js +3 -3
  222. package/dist/lib/models/common/v1/config/KVPair.d.ts +1 -1
  223. package/dist/lib/models/common/v1/config/KVPair.js +3 -3
  224. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
  225. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +3 -3
  226. package/dist/lib/models/common/v1/config/Message.d.ts +1 -1
  227. package/dist/lib/models/common/v1/config/Message.js +3 -3
  228. package/dist/lib/models/common/v1/config/MessageSeverity.js +2 -2
  229. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +1 -1
  230. package/dist/lib/models/common/v1/config/TenantAwareModel.js +3 -3
  231. package/dist/lib/models/common/v1/response/ApiLink.d.ts +1 -1
  232. package/dist/lib/models/common/v1/response/ApiLink.js +3 -3
  233. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
  234. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +3 -3
  235. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
  236. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +3 -3
  237. package/dist/lib/models/iam/v4/authn/BucketsAccessKey.d.ts +1 -1
  238. package/dist/lib/models/iam/v4/authn/BucketsAccessKey.js +3 -3
  239. package/dist/lib/models/iam/v4/authn/BucketsAccessKeyStatusType.js +2 -2
  240. package/dist/lib/models/iam/v4/authn/CreationType.js +2 -2
  241. package/dist/lib/models/iam/v4/authn/User.d.ts +1 -1
  242. package/dist/lib/models/iam/v4/authn/User.js +3 -3
  243. package/dist/lib/models/iam/v4/authn/UserStatusType.js +2 -2
  244. package/dist/lib/models/iam/v4/authn/UserType.js +2 -2
  245. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +1 -1
  246. package/dist/lib/models/prism/v4/config/TaskReference.js +4 -4
  247. package/dist/lib/models/security/v4/common/Cluster.d.ts +1 -1
  248. package/dist/lib/models/security/v4/common/Cluster.js +3 -3
  249. package/dist/lib/models/security/v4/common/ClusterProjection.d.ts +1 -1
  250. package/dist/lib/models/security/v4/common/ClusterProjection.js +3 -3
  251. package/dist/lib/models/security/v4/common/Timescale.js +2 -2
  252. package/dist/lib/models/security/v4/config/AzureAccessInformation.d.ts +1 -1
  253. package/dist/lib/models/security/v4/config/AzureAccessInformation.js +3 -3
  254. package/dist/lib/models/security/v4/config/BasicAuthCredential.d.ts +1 -1
  255. package/dist/lib/models/security/v4/config/BasicAuthCredential.js +3 -3
  256. package/dist/lib/models/security/v4/config/BmcCredential.d.ts +1 -1
  257. package/dist/lib/models/security/v4/config/BmcCredential.js +3 -3
  258. package/dist/lib/models/security/v4/config/CreateCredentialApiResponse.d.ts +1 -1
  259. package/dist/lib/models/security/v4/config/CreateCredentialApiResponse.js +3 -3
  260. package/dist/lib/models/security/v4/config/CreateKeyManagementServerApiResponse.d.ts +1 -1
  261. package/dist/lib/models/security/v4/config/CreateKeyManagementServerApiResponse.js +3 -3
  262. package/dist/lib/models/security/v4/config/Credential.d.ts +1 -1
  263. package/dist/lib/models/security/v4/config/Credential.js +3 -3
  264. package/dist/lib/models/security/v4/config/DeleteCredentialApiResponse.d.ts +1 -1
  265. package/dist/lib/models/security/v4/config/DeleteCredentialApiResponse.js +3 -3
  266. package/dist/lib/models/security/v4/config/DeleteKeyManagementServerApiResponse.d.ts +1 -1
  267. package/dist/lib/models/security/v4/config/DeleteKeyManagementServerApiResponse.js +3 -3
  268. package/dist/lib/models/security/v4/config/EndpointInfo.d.ts +1 -1
  269. package/dist/lib/models/security/v4/config/EndpointInfo.js +3 -3
  270. package/dist/lib/models/security/v4/config/ExternalSshAccessConfig.d.ts +1 -1
  271. package/dist/lib/models/security/v4/config/ExternalSshAccessConfig.js +3 -3
  272. package/dist/lib/models/security/v4/config/ExternalSshAccessConfigProjection.d.ts +1 -1
  273. package/dist/lib/models/security/v4/config/ExternalSshAccessConfigProjection.js +3 -3
  274. package/dist/lib/models/security/v4/config/GetCredentialApiResponse.d.ts +1 -1
  275. package/dist/lib/models/security/v4/config/GetCredentialApiResponse.js +3 -3
  276. package/dist/lib/models/security/v4/config/GetKeyManagementServerApiResponse.d.ts +1 -1
  277. package/dist/lib/models/security/v4/config/GetKeyManagementServerApiResponse.js +3 -3
  278. package/dist/lib/models/security/v4/config/IntersightConnectionType.js +2 -2
  279. package/dist/lib/models/security/v4/config/IntersightCredential.d.ts +1 -1
  280. package/dist/lib/models/security/v4/config/IntersightCredential.js +3 -3
  281. package/dist/lib/models/security/v4/config/KeyBasedAuth.d.ts +1 -1
  282. package/dist/lib/models/security/v4/config/KeyBasedAuth.js +3 -3
  283. package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.d.ts +1 -1
  284. package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.js +3 -3
  285. package/dist/lib/models/security/v4/config/KeyManagementServer.d.ts +1 -1
  286. package/dist/lib/models/security/v4/config/KeyManagementServer.js +3 -3
  287. package/dist/lib/models/security/v4/config/KmipAccessInformation.d.ts +1 -1
  288. package/dist/lib/models/security/v4/config/KmipAccessInformation.js +3 -3
  289. package/dist/lib/models/security/v4/config/ListCredentialsApiResponse.d.ts +1 -1
  290. package/dist/lib/models/security/v4/config/ListCredentialsApiResponse.js +3 -3
  291. package/dist/lib/models/security/v4/config/ListKeyManagementServersApiResponse.d.ts +1 -1
  292. package/dist/lib/models/security/v4/config/ListKeyManagementServersApiResponse.js +3 -3
  293. package/dist/lib/models/security/v4/config/ScheduleType.js +2 -2
  294. package/dist/lib/models/security/v4/config/SecurityConfig.d.ts +1 -1
  295. package/dist/lib/models/security/v4/config/SecurityConfig.js +3 -3
  296. package/dist/lib/models/security/v4/config/SecurityConfigProjection.d.ts +1 -1
  297. package/dist/lib/models/security/v4/config/SecurityConfigProjection.js +3 -3
  298. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySetting.d.ts +1 -1
  299. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySetting.js +3 -3
  300. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySettingProjection.d.ts +1 -1
  301. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySettingProjection.js +3 -3
  302. package/dist/lib/models/security/v4/config/UpdateCredentialApiResponse.d.ts +1 -1
  303. package/dist/lib/models/security/v4/config/UpdateCredentialApiResponse.js +3 -3
  304. package/dist/lib/models/security/v4/config/UpdateKeyManagementServerApiResponse.d.ts +1 -1
  305. package/dist/lib/models/security/v4/config/UpdateKeyManagementServerApiResponse.js +3 -3
  306. package/dist/lib/models/security/v4/config/VcenterCredential.d.ts +1 -1
  307. package/dist/lib/models/security/v4/config/VcenterCredential.js +3 -3
  308. package/dist/lib/models/security/v4/error/AppMessage.d.ts +1 -1
  309. package/dist/lib/models/security/v4/error/AppMessage.js +3 -3
  310. package/dist/lib/models/security/v4/error/ErrorResponse.d.ts +1 -1
  311. package/dist/lib/models/security/v4/error/ErrorResponse.js +3 -3
  312. package/dist/lib/models/security/v4/error/SchemaValidationError.d.ts +1 -1
  313. package/dist/lib/models/security/v4/error/SchemaValidationError.js +3 -3
  314. package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
  315. package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.js +3 -3
  316. package/dist/lib/models/security/v4/management/ApprovalPolicy.d.ts +1 -1
  317. package/dist/lib/models/security/v4/management/ApprovalPolicy.js +3 -3
  318. package/dist/lib/models/security/v4/management/ApprovalPolicyProjection.d.ts +1 -1
  319. package/dist/lib/models/security/v4/management/ApprovalPolicyProjection.js +3 -3
  320. package/dist/lib/models/security/v4/management/ApproverGroup.d.ts +1 -1
  321. package/dist/lib/models/security/v4/management/ApproverGroup.js +3 -3
  322. package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +1 -1
  323. package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.js +3 -3
  324. package/dist/lib/models/security/v4/management/AssociatePoliciesSpec.d.ts +1 -1
  325. package/dist/lib/models/security/v4/management/AssociatePoliciesSpec.js +3 -3
  326. package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +1 -1
  327. package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.js +3 -3
  328. package/dist/lib/models/security/v4/management/EventType.js +2 -2
  329. package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +1 -1
  330. package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.js +3 -3
  331. package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +1 -1
  332. package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.js +3 -3
  333. package/dist/lib/models/security/v4/management/PolicyType.js +2 -2
  334. package/dist/lib/models/security/v4/management/SecuredEntityType.js +2 -2
  335. package/dist/lib/models/security/v4/management/SecuredPolicy.d.ts +1 -1
  336. package/dist/lib/models/security/v4/management/SecuredPolicy.js +3 -3
  337. package/dist/lib/models/security/v4/management/SecurityValidationSpec.d.ts +1 -1
  338. package/dist/lib/models/security/v4/management/SecurityValidationSpec.js +3 -3
  339. package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +1 -1
  340. package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +3 -3
  341. package/dist/lib/models/security/v4/report/IssueSummary.d.ts +1 -1
  342. package/dist/lib/models/security/v4/report/IssueSummary.js +3 -3
  343. package/dist/lib/models/security/v4/report/ListSecuritySummariesApiResponse.d.ts +1 -1
  344. package/dist/lib/models/security/v4/report/ListSecuritySummariesApiResponse.js +3 -3
  345. package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.d.ts +1 -1
  346. package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.js +3 -3
  347. package/dist/lib/models/security/v4/report/ListStigsApiResponse.d.ts +1 -1
  348. package/dist/lib/models/security/v4/report/ListStigsApiResponse.js +3 -3
  349. package/dist/lib/models/security/v4/report/ListVulnerabilitiesApiResponse.d.ts +1 -1
  350. package/dist/lib/models/security/v4/report/ListVulnerabilitiesApiResponse.js +3 -3
  351. package/dist/lib/models/security/v4/report/RefreshSecuritySummariesApiResponse.d.ts +1 -1
  352. package/dist/lib/models/security/v4/report/RefreshSecuritySummariesApiResponse.js +3 -3
  353. package/dist/lib/models/security/v4/report/SecurityConfigSummary.d.ts +1 -1
  354. package/dist/lib/models/security/v4/report/SecurityConfigSummary.js +3 -3
  355. package/dist/lib/models/security/v4/report/SecuritySummary.d.ts +1 -1
  356. package/dist/lib/models/security/v4/report/SecuritySummary.js +3 -3
  357. package/dist/lib/models/security/v4/report/SecuritySummaryProjection.d.ts +1 -1
  358. package/dist/lib/models/security/v4/report/SecuritySummaryProjection.js +3 -3
  359. package/dist/lib/models/security/v4/report/Severity.js +2 -2
  360. package/dist/lib/models/security/v4/report/SoftwareType.js +2 -2
  361. package/dist/lib/models/security/v4/report/Stig.d.ts +1 -1
  362. package/dist/lib/models/security/v4/report/Stig.js +3 -3
  363. package/dist/lib/models/security/v4/report/StigProjection.d.ts +1 -1
  364. package/dist/lib/models/security/v4/report/StigProjection.js +3 -3
  365. package/dist/lib/models/security/v4/report/StigSecuritySummary.d.ts +1 -1
  366. package/dist/lib/models/security/v4/report/StigSecuritySummary.js +3 -3
  367. package/dist/lib/models/security/v4/report/StigStatus.js +2 -2
  368. package/dist/lib/models/security/v4/report/StigSummary.d.ts +1 -1
  369. package/dist/lib/models/security/v4/report/StigSummary.js +3 -3
  370. package/dist/lib/models/security/v4/report/StigSummaryProjection.d.ts +1 -1
  371. package/dist/lib/models/security/v4/report/StigSummaryProjection.js +3 -3
  372. package/dist/lib/models/security/v4/report/TrendValue.d.ts +1 -1
  373. package/dist/lib/models/security/v4/report/TrendValue.js +3 -3
  374. package/dist/lib/models/security/v4/report/Vulnerability.d.ts +1 -1
  375. package/dist/lib/models/security/v4/report/Vulnerability.js +3 -3
  376. package/dist/lib/models/security/v4/report/VulnerabilityDetail.d.ts +1 -1
  377. package/dist/lib/models/security/v4/report/VulnerabilityDetail.js +3 -3
  378. package/dist/lib/models/security/v4/report/VulnerabilityProjection.d.ts +1 -1
  379. package/dist/lib/models/security/v4/report/VulnerabilityProjection.js +3 -3
  380. package/dist/lib/models/security/v4/report/VulnerabilitySummary.d.ts +1 -1
  381. package/dist/lib/models/security/v4/report/VulnerabilitySummary.js +3 -3
  382. package/dist/lib/models/validation/ValidationError.js +2 -2
  383. package/dist/lib/utils/ValidationUtils.js +2 -2
  384. package/package.json +1 -1
@@ -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())}(Object("undefined"==typeof self?this:self),()=>(()=>{var e={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}},98(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},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)}}},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,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}},545(){},548(){},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}},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,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},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))}},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},799(){},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}},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}},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}},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.1"}))),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.r2"},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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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,["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})());
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})());