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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/README.md +17 -5
  2. package/dist/Ntnx-Security-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Security-js-client.js +626 -532
  4. package/dist/es/ApiClient.d.ts +29 -7
  5. package/dist/es/ApiClient.js +854 -667
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +144 -183
  8. package/dist/es/apis/approvalpolicies-endpoints.d.ts +2 -2
  9. package/dist/es/apis/approvalpolicies-endpoints.js +221 -235
  10. package/dist/es/apis/credentials-endpoints.d.ts +2 -2
  11. package/dist/es/apis/credentials-endpoints.js +210 -224
  12. package/dist/es/apis/keymanagementservers-endpoints.d.ts +1 -1
  13. package/dist/es/apis/keymanagementservers-endpoints.js +190 -210
  14. package/dist/es/apis/securitysummaries-endpoints.d.ts +56 -0
  15. package/dist/es/apis/securitysummaries-endpoints.js +140 -0
  16. package/dist/es/apis/stigs-endpoints.d.ts +4 -3
  17. package/dist/es/apis/stigs-endpoints.js +108 -111
  18. package/dist/es/apis/vulnerabilities-endpoints.d.ts +46 -0
  19. package/dist/es/apis/vulnerabilities-endpoints.js +107 -0
  20. package/dist/es/index.d.ts +31 -15
  21. package/dist/es/index.js +361 -297
  22. package/dist/es/models/common/v1/config/BasicAuth.d.ts +2 -8
  23. package/dist/es/models/common/v1/config/BasicAuth.js +170 -211
  24. package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
  25. package/dist/es/models/common/v1/config/FQDN.js +141 -180
  26. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  27. package/dist/es/models/common/v1/config/Flag.js +170 -211
  28. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  29. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  30. package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
  31. package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
  32. package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
  33. package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
  34. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  35. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  36. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  37. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  38. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  39. package/dist/es/models/common/v1/config/Message.js +213 -258
  40. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  41. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  42. package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
  43. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  44. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  45. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  46. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  47. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  48. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  49. package/dist/es/models/iam/v4/authn/BucketsAccessKey.d.ts +1 -26
  50. package/dist/es/models/iam/v4/authn/BucketsAccessKey.js +385 -453
  51. package/dist/es/models/iam/v4/authn/BucketsAccessKeyStatusType.js +7 -9
  52. package/dist/es/models/iam/v4/authn/CreationType.js +7 -9
  53. package/dist/es/models/iam/v4/authn/User.d.ts +1 -67
  54. package/dist/es/models/iam/v4/authn/User.js +714 -810
  55. package/dist/es/models/iam/v4/authn/UserStatusType.js +7 -9
  56. package/dist/es/models/iam/v4/authn/UserType.js +7 -9
  57. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  58. package/dist/es/models/prism/v4/config/TaskReference.js +143 -181
  59. package/dist/es/models/security/v4/common/Cluster.d.ts +2 -8
  60. package/dist/es/models/security/v4/common/Cluster.js +171 -212
  61. package/dist/es/models/security/v4/common/ClusterProjection.d.ts +1 -1
  62. package/dist/es/models/security/v4/common/ClusterProjection.js +74 -103
  63. package/dist/es/models/security/v4/common/Timescale.js +9 -29
  64. package/dist/es/models/security/v4/config/AzureAccessInformation.d.ts +2 -13
  65. package/dist/es/models/security/v4/config/AzureAccessInformation.js +311 -361
  66. package/dist/es/models/security/v4/config/BasicAuthCredential.d.ts +2 -13
  67. package/dist/es/models/security/v4/config/BasicAuthCredential.js +138 -177
  68. package/dist/es/models/security/v4/config/BmcCredential.d.ts +1 -14
  69. package/dist/es/models/security/v4/config/BmcCredential.js +121 -163
  70. package/dist/es/models/security/v4/config/CreateCredentialApiResponse.d.ts +2 -43
  71. package/dist/es/models/security/v4/config/CreateCredentialApiResponse.js +187 -242
  72. package/dist/es/models/security/v4/config/CreateKeyManagementServerApiResponse.d.ts +2 -43
  73. package/dist/es/models/security/v4/config/CreateKeyManagementServerApiResponse.js +187 -242
  74. package/dist/es/models/security/v4/config/Credential.d.ts +1 -18
  75. package/dist/es/models/security/v4/config/Credential.js +200 -251
  76. package/dist/es/models/security/v4/config/DeleteCredentialApiResponse.d.ts +2 -43
  77. package/dist/es/models/security/v4/config/DeleteCredentialApiResponse.js +190 -245
  78. package/dist/es/models/security/v4/config/DeleteKeyManagementServerApiResponse.d.ts +2 -43
  79. package/dist/es/models/security/v4/config/DeleteKeyManagementServerApiResponse.js +187 -242
  80. package/dist/es/models/security/v4/config/EndpointInfo.d.ts +70 -0
  81. package/dist/es/models/security/v4/config/EndpointInfo.js +278 -0
  82. package/dist/es/models/security/v4/config/ExternalSshAccessConfig.d.ts +2 -10
  83. package/dist/es/models/security/v4/config/ExternalSshAccessConfig.js +218 -265
  84. package/dist/es/models/security/v4/config/ExternalSshAccessConfigProjection.d.ts +10 -0
  85. package/dist/es/models/security/v4/config/ExternalSshAccessConfigProjection.js +121 -0
  86. package/dist/es/models/security/v4/config/GetCredentialApiResponse.d.ts +2 -43
  87. package/dist/es/models/security/v4/config/GetCredentialApiResponse.js +187 -242
  88. package/dist/es/models/security/v4/config/GetKeyManagementServerApiResponse.d.ts +2 -43
  89. package/dist/es/models/security/v4/config/GetKeyManagementServerApiResponse.js +187 -242
  90. package/dist/es/models/security/v4/config/IntersightConnectionType.js +7 -9
  91. package/dist/es/models/security/v4/config/IntersightCredential.d.ts +1 -16
  92. package/dist/es/models/security/v4/config/IntersightCredential.js +172 -218
  93. package/dist/es/models/security/v4/config/KeyBasedAuth.d.ts +2 -8
  94. package/dist/es/models/security/v4/config/KeyBasedAuth.js +176 -217
  95. package/dist/es/models/security/v4/config/KeyBasedAuthCredential.d.ts +2 -13
  96. package/dist/es/models/security/v4/config/KeyBasedAuthCredential.js +138 -177
  97. package/dist/es/models/security/v4/config/KeyManagementServer.d.ts +20 -33
  98. package/dist/es/models/security/v4/config/KeyManagementServer.js +206 -199
  99. package/dist/es/models/security/v4/config/KmipAccessInformation.d.ts +118 -0
  100. package/dist/es/models/security/v4/config/KmipAccessInformation.js +428 -0
  101. package/dist/es/models/security/v4/config/ListCredentialsApiResponse.d.ts +2 -43
  102. package/dist/es/models/security/v4/config/ListCredentialsApiResponse.js +209 -264
  103. package/dist/es/models/security/v4/config/ListKeyManagementServersApiResponse.d.ts +2 -43
  104. package/dist/es/models/security/v4/config/ListKeyManagementServersApiResponse.js +209 -264
  105. package/dist/es/models/security/v4/config/ScheduleType.js +11 -13
  106. package/dist/es/models/security/v4/config/SecurityConfig.d.ts +1 -25
  107. package/dist/es/models/security/v4/config/SecurityConfig.js +350 -421
  108. package/dist/es/models/security/v4/config/SecurityConfigProjection.d.ts +1 -32
  109. package/dist/es/models/security/v4/config/SecurityConfigProjection.js +169 -202
  110. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySetting.d.ts +1 -23
  111. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySetting.js +303 -359
  112. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySettingProjection.d.ts +10 -0
  113. package/dist/es/models/security/v4/config/SecurityConfigVisibilitySettingProjection.js +123 -0
  114. package/dist/es/models/security/v4/config/UpdateCredentialApiResponse.d.ts +2 -45
  115. package/dist/es/models/security/v4/config/UpdateCredentialApiResponse.js +187 -242
  116. package/dist/es/models/security/v4/config/UpdateKeyManagementServerApiResponse.d.ts +2 -43
  117. package/dist/es/models/security/v4/config/UpdateKeyManagementServerApiResponse.js +187 -242
  118. package/dist/es/models/security/v4/config/VcenterCredential.d.ts +1 -39
  119. package/dist/es/models/security/v4/config/VcenterCredential.js +145 -189
  120. package/dist/es/models/security/v4/error/AppMessage.d.ts +2 -12
  121. package/dist/es/models/security/v4/error/AppMessage.js +264 -313
  122. package/dist/es/models/security/v4/error/ErrorResponse.d.ts +2 -7
  123. package/dist/es/models/security/v4/error/ErrorResponse.js +178 -218
  124. package/dist/es/models/security/v4/error/SchemaValidationError.d.ts +2 -18
  125. package/dist/es/models/security/v4/error/SchemaValidationError.js +249 -300
  126. package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  127. package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.js +191 -234
  128. package/dist/es/models/security/v4/management/ApprovalPolicy.d.ts +1 -100
  129. package/dist/es/models/security/v4/management/ApprovalPolicy.js +302 -366
  130. package/dist/es/models/security/v4/management/ApprovalPolicyProjection.d.ts +14 -0
  131. package/dist/es/models/security/v4/management/ApprovalPolicyProjection.js +133 -0
  132. package/dist/es/models/security/v4/management/ApproverGroup.d.ts +2 -74
  133. package/dist/es/models/security/v4/management/ApproverGroup.js +206 -253
  134. package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +2 -43
  135. package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.js +187 -242
  136. package/dist/es/models/security/v4/management/AssociatePoliciesSpec.d.ts +2 -13
  137. package/dist/es/models/security/v4/management/AssociatePoliciesSpec.js +149 -192
  138. package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +2 -43
  139. package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.js +187 -242
  140. package/dist/es/models/security/v4/management/EventType.js +7 -9
  141. package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +2 -43
  142. package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.js +187 -242
  143. package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +8 -48
  144. package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.js +214 -264
  145. package/dist/es/models/security/v4/management/PolicyType.js +7 -9
  146. package/dist/es/models/security/v4/management/SecuredEntityType.js +7 -9
  147. package/dist/es/models/security/v4/management/SecuredPolicy.d.ts +2 -8
  148. package/dist/es/models/security/v4/management/SecuredPolicy.js +166 -207
  149. package/dist/es/models/security/v4/management/SecurityValidationSpec.d.ts +2 -14
  150. package/dist/es/models/security/v4/management/SecurityValidationSpec.js +332 -385
  151. package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +2 -43
  152. package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +187 -242
  153. package/dist/es/models/security/v4/report/IssueSummary.d.ts +9 -21
  154. package/dist/es/models/security/v4/report/IssueSummary.js +178 -223
  155. package/dist/es/models/security/v4/report/ListSecuritySummariesApiResponse.d.ts +59 -0
  156. package/dist/es/models/security/v4/report/ListSecuritySummariesApiResponse.js +315 -0
  157. package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.d.ts +2 -43
  158. package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.js +213 -268
  159. package/dist/es/models/security/v4/report/ListStigsApiResponse.d.ts +2 -43
  160. package/dist/es/models/security/v4/report/ListStigsApiResponse.js +213 -268
  161. package/dist/es/models/security/v4/report/ListVulnerabilitiesApiResponse.d.ts +59 -0
  162. package/dist/es/models/security/v4/report/ListVulnerabilitiesApiResponse.js +315 -0
  163. package/dist/es/models/security/v4/report/RefreshSecuritySummariesApiResponse.d.ts +58 -0
  164. package/dist/es/models/security/v4/report/RefreshSecuritySummariesApiResponse.js +288 -0
  165. package/dist/es/models/security/v4/report/SecurityConfigSummary.d.ts +55 -0
  166. package/dist/es/models/security/v4/report/SecurityConfigSummary.js +324 -0
  167. package/dist/es/models/security/v4/report/SecuritySummary.d.ts +83 -0
  168. package/dist/es/models/security/v4/report/SecuritySummary.js +438 -0
  169. package/dist/es/models/security/v4/report/SecuritySummaryProjection.d.ts +21 -0
  170. package/dist/es/models/security/v4/report/SecuritySummaryProjection.js +303 -0
  171. package/dist/es/models/security/v4/report/Severity.js +7 -9
  172. package/dist/es/models/security/v4/report/SoftwareType.js +7 -9
  173. package/dist/es/models/security/v4/report/Stig.d.ts +1 -25
  174. package/dist/es/models/security/v4/report/Stig.js +371 -439
  175. package/dist/es/models/security/v4/report/StigProjection.d.ts +1 -1
  176. package/dist/es/models/security/v4/report/StigProjection.js +74 -103
  177. package/dist/es/models/security/v4/report/StigSecuritySummary.d.ts +44 -0
  178. package/dist/es/models/security/v4/report/StigSecuritySummary.js +291 -0
  179. package/dist/es/models/security/v4/report/StigStatus.js +7 -9
  180. package/dist/es/models/security/v4/report/StigSummary.d.ts +1 -22
  181. package/dist/es/models/security/v4/report/StigSummary.js +193 -245
  182. package/dist/es/models/security/v4/report/StigSummaryProjection.d.ts +1 -26
  183. package/dist/es/models/security/v4/report/StigSummaryProjection.js +138 -176
  184. package/dist/es/models/security/v4/report/TrendValue.d.ts +10 -16
  185. package/dist/es/models/security/v4/report/TrendValue.js +170 -211
  186. package/dist/es/models/security/v4/report/Vulnerability.d.ts +4 -37
  187. package/dist/es/models/security/v4/report/Vulnerability.js +283 -379
  188. package/dist/es/models/security/v4/report/VulnerabilityDetail.d.ts +68 -0
  189. package/dist/es/models/security/v4/report/VulnerabilityDetail.js +310 -0
  190. package/dist/es/models/security/v4/report/VulnerabilityProjection.d.ts +1 -1
  191. package/dist/es/models/security/v4/report/VulnerabilityProjection.js +74 -103
  192. package/dist/es/models/security/v4/report/VulnerabilitySummary.d.ts +12 -61
  193. package/dist/es/models/security/v4/report/VulnerabilitySummary.js +147 -302
  194. package/dist/es/models/validation/ValidationError.js +26 -42
  195. package/dist/es/models/validation/ValidationScopes.js +3 -3
  196. package/dist/es/utils/ValidationUtils.js +39 -69
  197. package/dist/lib/ApiClient.d.ts +29 -7
  198. package/dist/lib/ApiClient.js +854 -667
  199. package/dist/lib/Paginable.d.ts +1 -1
  200. package/dist/lib/Paginable.js +144 -183
  201. package/dist/lib/apis/approvalpolicies-endpoints.d.ts +2 -2
  202. package/dist/lib/apis/approvalpolicies-endpoints.js +221 -235
  203. package/dist/lib/apis/credentials-endpoints.d.ts +2 -2
  204. package/dist/lib/apis/credentials-endpoints.js +210 -224
  205. package/dist/lib/apis/keymanagementservers-endpoints.d.ts +1 -1
  206. package/dist/lib/apis/keymanagementservers-endpoints.js +190 -210
  207. package/dist/lib/apis/securitysummaries-endpoints.d.ts +56 -0
  208. package/dist/lib/apis/securitysummaries-endpoints.js +140 -0
  209. package/dist/lib/apis/stigs-endpoints.d.ts +4 -3
  210. package/dist/lib/apis/stigs-endpoints.js +108 -111
  211. package/dist/lib/apis/vulnerabilities-endpoints.d.ts +46 -0
  212. package/dist/lib/apis/vulnerabilities-endpoints.js +107 -0
  213. package/dist/lib/index.d.ts +31 -15
  214. package/dist/lib/index.js +361 -297
  215. package/dist/lib/models/common/v1/config/BasicAuth.d.ts +2 -8
  216. package/dist/lib/models/common/v1/config/BasicAuth.js +170 -211
  217. package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
  218. package/dist/lib/models/common/v1/config/FQDN.js +141 -180
  219. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  220. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  221. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  222. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  223. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
  224. package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
  225. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
  226. package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
  227. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  228. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  229. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  230. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  231. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  232. package/dist/lib/models/common/v1/config/Message.js +213 -258
  233. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  234. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  235. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  236. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  237. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  238. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  239. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  240. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  241. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  242. package/dist/lib/models/iam/v4/authn/BucketsAccessKey.d.ts +1 -26
  243. package/dist/lib/models/iam/v4/authn/BucketsAccessKey.js +385 -453
  244. package/dist/lib/models/iam/v4/authn/BucketsAccessKeyStatusType.js +7 -9
  245. package/dist/lib/models/iam/v4/authn/CreationType.js +7 -9
  246. package/dist/lib/models/iam/v4/authn/User.d.ts +1 -67
  247. package/dist/lib/models/iam/v4/authn/User.js +714 -810
  248. package/dist/lib/models/iam/v4/authn/UserStatusType.js +7 -9
  249. package/dist/lib/models/iam/v4/authn/UserType.js +7 -9
  250. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  251. package/dist/lib/models/prism/v4/config/TaskReference.js +143 -181
  252. package/dist/lib/models/security/v4/common/Cluster.d.ts +2 -8
  253. package/dist/lib/models/security/v4/common/Cluster.js +171 -212
  254. package/dist/lib/models/security/v4/common/ClusterProjection.d.ts +1 -1
  255. package/dist/lib/models/security/v4/common/ClusterProjection.js +74 -103
  256. package/dist/lib/models/security/v4/common/Timescale.js +9 -29
  257. package/dist/lib/models/security/v4/config/AzureAccessInformation.d.ts +2 -13
  258. package/dist/lib/models/security/v4/config/AzureAccessInformation.js +311 -361
  259. package/dist/lib/models/security/v4/config/BasicAuthCredential.d.ts +2 -13
  260. package/dist/lib/models/security/v4/config/BasicAuthCredential.js +138 -177
  261. package/dist/lib/models/security/v4/config/BmcCredential.d.ts +1 -14
  262. package/dist/lib/models/security/v4/config/BmcCredential.js +121 -163
  263. package/dist/lib/models/security/v4/config/CreateCredentialApiResponse.d.ts +2 -43
  264. package/dist/lib/models/security/v4/config/CreateCredentialApiResponse.js +187 -242
  265. package/dist/lib/models/security/v4/config/CreateKeyManagementServerApiResponse.d.ts +2 -43
  266. package/dist/lib/models/security/v4/config/CreateKeyManagementServerApiResponse.js +187 -242
  267. package/dist/lib/models/security/v4/config/Credential.d.ts +1 -18
  268. package/dist/lib/models/security/v4/config/Credential.js +200 -251
  269. package/dist/lib/models/security/v4/config/DeleteCredentialApiResponse.d.ts +2 -43
  270. package/dist/lib/models/security/v4/config/DeleteCredentialApiResponse.js +190 -245
  271. package/dist/lib/models/security/v4/config/DeleteKeyManagementServerApiResponse.d.ts +2 -43
  272. package/dist/lib/models/security/v4/config/DeleteKeyManagementServerApiResponse.js +187 -242
  273. package/dist/lib/models/security/v4/config/EndpointInfo.d.ts +70 -0
  274. package/dist/lib/models/security/v4/config/EndpointInfo.js +278 -0
  275. package/dist/lib/models/security/v4/config/ExternalSshAccessConfig.d.ts +2 -10
  276. package/dist/lib/models/security/v4/config/ExternalSshAccessConfig.js +218 -265
  277. package/dist/lib/models/security/v4/config/ExternalSshAccessConfigProjection.d.ts +10 -0
  278. package/dist/lib/models/security/v4/config/ExternalSshAccessConfigProjection.js +121 -0
  279. package/dist/lib/models/security/v4/config/GetCredentialApiResponse.d.ts +2 -43
  280. package/dist/lib/models/security/v4/config/GetCredentialApiResponse.js +187 -242
  281. package/dist/lib/models/security/v4/config/GetKeyManagementServerApiResponse.d.ts +2 -43
  282. package/dist/lib/models/security/v4/config/GetKeyManagementServerApiResponse.js +187 -242
  283. package/dist/lib/models/security/v4/config/IntersightConnectionType.js +7 -9
  284. package/dist/lib/models/security/v4/config/IntersightCredential.d.ts +1 -16
  285. package/dist/lib/models/security/v4/config/IntersightCredential.js +172 -218
  286. package/dist/lib/models/security/v4/config/KeyBasedAuth.d.ts +2 -8
  287. package/dist/lib/models/security/v4/config/KeyBasedAuth.js +176 -217
  288. package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.d.ts +2 -13
  289. package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.js +138 -177
  290. package/dist/lib/models/security/v4/config/KeyManagementServer.d.ts +20 -33
  291. package/dist/lib/models/security/v4/config/KeyManagementServer.js +206 -199
  292. package/dist/lib/models/security/v4/config/KmipAccessInformation.d.ts +118 -0
  293. package/dist/lib/models/security/v4/config/KmipAccessInformation.js +428 -0
  294. package/dist/lib/models/security/v4/config/ListCredentialsApiResponse.d.ts +2 -43
  295. package/dist/lib/models/security/v4/config/ListCredentialsApiResponse.js +209 -264
  296. package/dist/lib/models/security/v4/config/ListKeyManagementServersApiResponse.d.ts +2 -43
  297. package/dist/lib/models/security/v4/config/ListKeyManagementServersApiResponse.js +209 -264
  298. package/dist/lib/models/security/v4/config/ScheduleType.js +11 -13
  299. package/dist/lib/models/security/v4/config/SecurityConfig.d.ts +1 -25
  300. package/dist/lib/models/security/v4/config/SecurityConfig.js +350 -421
  301. package/dist/lib/models/security/v4/config/SecurityConfigProjection.d.ts +1 -32
  302. package/dist/lib/models/security/v4/config/SecurityConfigProjection.js +169 -202
  303. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySetting.d.ts +1 -23
  304. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySetting.js +303 -359
  305. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySettingProjection.d.ts +10 -0
  306. package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySettingProjection.js +123 -0
  307. package/dist/lib/models/security/v4/config/UpdateCredentialApiResponse.d.ts +2 -45
  308. package/dist/lib/models/security/v4/config/UpdateCredentialApiResponse.js +187 -242
  309. package/dist/lib/models/security/v4/config/UpdateKeyManagementServerApiResponse.d.ts +2 -43
  310. package/dist/lib/models/security/v4/config/UpdateKeyManagementServerApiResponse.js +187 -242
  311. package/dist/lib/models/security/v4/config/VcenterCredential.d.ts +1 -39
  312. package/dist/lib/models/security/v4/config/VcenterCredential.js +145 -189
  313. package/dist/lib/models/security/v4/error/AppMessage.d.ts +2 -12
  314. package/dist/lib/models/security/v4/error/AppMessage.js +264 -313
  315. package/dist/lib/models/security/v4/error/ErrorResponse.d.ts +2 -7
  316. package/dist/lib/models/security/v4/error/ErrorResponse.js +178 -218
  317. package/dist/lib/models/security/v4/error/SchemaValidationError.d.ts +2 -18
  318. package/dist/lib/models/security/v4/error/SchemaValidationError.js +249 -300
  319. package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  320. package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.js +191 -234
  321. package/dist/lib/models/security/v4/management/ApprovalPolicy.d.ts +1 -100
  322. package/dist/lib/models/security/v4/management/ApprovalPolicy.js +302 -366
  323. package/dist/lib/models/security/v4/management/ApprovalPolicyProjection.d.ts +14 -0
  324. package/dist/lib/models/security/v4/management/ApprovalPolicyProjection.js +133 -0
  325. package/dist/lib/models/security/v4/management/ApproverGroup.d.ts +2 -74
  326. package/dist/lib/models/security/v4/management/ApproverGroup.js +206 -253
  327. package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +2 -43
  328. package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.js +187 -242
  329. package/dist/lib/models/security/v4/management/AssociatePoliciesSpec.d.ts +2 -13
  330. package/dist/lib/models/security/v4/management/AssociatePoliciesSpec.js +149 -192
  331. package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +2 -43
  332. package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.js +187 -242
  333. package/dist/lib/models/security/v4/management/EventType.js +7 -9
  334. package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +2 -43
  335. package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.js +187 -242
  336. package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +8 -48
  337. package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.js +214 -264
  338. package/dist/lib/models/security/v4/management/PolicyType.js +7 -9
  339. package/dist/lib/models/security/v4/management/SecuredEntityType.js +7 -9
  340. package/dist/lib/models/security/v4/management/SecuredPolicy.d.ts +2 -8
  341. package/dist/lib/models/security/v4/management/SecuredPolicy.js +166 -207
  342. package/dist/lib/models/security/v4/management/SecurityValidationSpec.d.ts +2 -14
  343. package/dist/lib/models/security/v4/management/SecurityValidationSpec.js +332 -385
  344. package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +2 -43
  345. package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +187 -242
  346. package/dist/lib/models/security/v4/report/IssueSummary.d.ts +9 -21
  347. package/dist/lib/models/security/v4/report/IssueSummary.js +178 -223
  348. package/dist/lib/models/security/v4/report/ListSecuritySummariesApiResponse.d.ts +59 -0
  349. package/dist/lib/models/security/v4/report/ListSecuritySummariesApiResponse.js +315 -0
  350. package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.d.ts +2 -43
  351. package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.js +213 -268
  352. package/dist/lib/models/security/v4/report/ListStigsApiResponse.d.ts +2 -43
  353. package/dist/lib/models/security/v4/report/ListStigsApiResponse.js +213 -268
  354. package/dist/lib/models/security/v4/report/ListVulnerabilitiesApiResponse.d.ts +59 -0
  355. package/dist/lib/models/security/v4/report/ListVulnerabilitiesApiResponse.js +315 -0
  356. package/dist/lib/models/security/v4/report/RefreshSecuritySummariesApiResponse.d.ts +58 -0
  357. package/dist/lib/models/security/v4/report/RefreshSecuritySummariesApiResponse.js +288 -0
  358. package/dist/lib/models/security/v4/report/SecurityConfigSummary.d.ts +55 -0
  359. package/dist/lib/models/security/v4/report/SecurityConfigSummary.js +324 -0
  360. package/dist/lib/models/security/v4/report/SecuritySummary.d.ts +83 -0
  361. package/dist/lib/models/security/v4/report/SecuritySummary.js +438 -0
  362. package/dist/lib/models/security/v4/report/SecuritySummaryProjection.d.ts +21 -0
  363. package/dist/lib/models/security/v4/report/SecuritySummaryProjection.js +303 -0
  364. package/dist/lib/models/security/v4/report/Severity.js +7 -9
  365. package/dist/lib/models/security/v4/report/SoftwareType.js +7 -9
  366. package/dist/lib/models/security/v4/report/Stig.d.ts +1 -25
  367. package/dist/lib/models/security/v4/report/Stig.js +371 -439
  368. package/dist/lib/models/security/v4/report/StigProjection.d.ts +1 -1
  369. package/dist/lib/models/security/v4/report/StigProjection.js +74 -103
  370. package/dist/lib/models/security/v4/report/StigSecuritySummary.d.ts +44 -0
  371. package/dist/lib/models/security/v4/report/StigSecuritySummary.js +291 -0
  372. package/dist/lib/models/security/v4/report/StigStatus.js +7 -9
  373. package/dist/lib/models/security/v4/report/StigSummary.d.ts +1 -22
  374. package/dist/lib/models/security/v4/report/StigSummary.js +193 -245
  375. package/dist/lib/models/security/v4/report/StigSummaryProjection.d.ts +1 -26
  376. package/dist/lib/models/security/v4/report/StigSummaryProjection.js +138 -176
  377. package/dist/lib/models/security/v4/report/TrendValue.d.ts +10 -16
  378. package/dist/lib/models/security/v4/report/TrendValue.js +170 -211
  379. package/dist/lib/models/security/v4/report/Vulnerability.d.ts +4 -37
  380. package/dist/lib/models/security/v4/report/Vulnerability.js +283 -379
  381. package/dist/lib/models/security/v4/report/VulnerabilityDetail.d.ts +68 -0
  382. package/dist/lib/models/security/v4/report/VulnerabilityDetail.js +310 -0
  383. package/dist/lib/models/security/v4/report/VulnerabilityProjection.d.ts +1 -1
  384. package/dist/lib/models/security/v4/report/VulnerabilityProjection.js +74 -103
  385. package/dist/lib/models/security/v4/report/VulnerabilitySummary.d.ts +12 -61
  386. package/dist/lib/models/security/v4/report/VulnerabilitySummary.js +147 -302
  387. package/dist/lib/models/validation/ValidationError.js +26 -42
  388. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  389. package/dist/lib/utils/ValidationUtils.js +39 -69
  390. package/package.json +1 -1
  391. package/dist/es/models/security/v4/config/PasswordStatus.d.ts +0 -19
  392. package/dist/es/models/security/v4/config/PasswordStatus.js +0 -97
  393. package/dist/es/models/security/v4/config/PasswordVerificationStatus.d.ts +0 -19
  394. package/dist/es/models/security/v4/config/PasswordVerificationStatus.js +0 -91
  395. package/dist/es/models/security/v4/config/VerifyPassword.d.ts +0 -36
  396. package/dist/es/models/security/v4/config/VerifyPassword.js +0 -271
  397. package/dist/es/models/security/v4/config/VerifyPasswordSpec.d.ts +0 -62
  398. package/dist/es/models/security/v4/config/VerifyPasswordSpec.js +0 -279
  399. package/dist/es/models/security/v4/report/Summary.d.ts +0 -149
  400. package/dist/es/models/security/v4/report/Summary.js +0 -490
  401. package/dist/es/models/security/v4/report/SummaryProjection.d.ts +0 -97
  402. package/dist/es/models/security/v4/report/SummaryProjection.js +0 -329
  403. package/dist/es/models/security/v4/report/VulnerabilitySummaryProjection.d.ts +0 -10
  404. package/dist/es/models/security/v4/report/VulnerabilitySummaryProjection.js +0 -153
  405. package/dist/lib/models/security/v4/config/PasswordStatus.d.ts +0 -19
  406. package/dist/lib/models/security/v4/config/PasswordStatus.js +0 -97
  407. package/dist/lib/models/security/v4/config/PasswordVerificationStatus.d.ts +0 -19
  408. package/dist/lib/models/security/v4/config/PasswordVerificationStatus.js +0 -91
  409. package/dist/lib/models/security/v4/config/VerifyPassword.d.ts +0 -36
  410. package/dist/lib/models/security/v4/config/VerifyPassword.js +0 -271
  411. package/dist/lib/models/security/v4/config/VerifyPasswordSpec.d.ts +0 -62
  412. package/dist/lib/models/security/v4/config/VerifyPasswordSpec.js +0 -279
  413. package/dist/lib/models/security/v4/report/Summary.d.ts +0 -149
  414. package/dist/lib/models/security/v4/report/Summary.js +0 -490
  415. package/dist/lib/models/security/v4/report/SummaryProjection.d.ts +0 -97
  416. package/dist/lib/models/security/v4/report/SummaryProjection.js +0 -329
  417. package/dist/lib/models/security/v4/report/VulnerabilitySummaryProjection.d.ts +0 -10
  418. package/dist/lib/models/security/v4/report/VulnerabilitySummaryProjection.js +0 -153
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
  var _KVPair = _interopRequireDefault(require("../../../common/v1/config/KVPair"));
8
8
  var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
9
9
  var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
@@ -15,39 +15,17 @@ var _UserType = _interopRequireDefault(require("./UserType"));
15
15
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
16
16
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
17
17
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
18
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
20
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
21
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
23
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
25
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
26
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
27
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
29
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
30
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
31
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
32
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
34
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
35
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
36
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
37
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
38
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
39
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
40
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
41
19
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
42
20
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
43
21
  function _assertClassBrand(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"); } /*
44
22
  * Nutanix Security APIs
45
23
  *
46
- * OpenAPI spec version: 4.0.1
24
+ * OpenAPI spec version: 4.1.2
47
25
  *
48
26
  * NOTE: This class is auto generated by the Open API Dev Platform.
49
27
  *
50
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
28
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
51
29
  *
52
30
  * Do not edit the class manually.
53
31
  *
@@ -55,37 +33,34 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
55
33
  /**
56
34
  * The User model module.
57
35
  * @module Ntnx/User
58
- * @version 4.0.1
36
+ * @version 4.1.2
59
37
  * @class User
60
38
  * @extends ExternalizableAbstractModel
61
39
  */
62
40
  var _User_brand = /*#__PURE__*/new WeakSet();
63
- var User = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
41
+ class User extends _ExternalizableAbstractModel.default {
64
42
  /**
65
43
  * Constructs a new <code>User</code>.
66
44
  * Information of the user.
67
45
  * @alias module:Ntnx/User
68
46
  * @extends module:Ntnx/ExternalizableAbstractModel
69
47
  */
70
- function User() {
71
- var _this;
72
- _classCallCheck(this, User);
73
- _this = _callSuper(this, User);
48
+ constructor() {
49
+ super();
74
50
  /*
75
51
  * toJson method for a map type which supports map with primitive keys and values of object types
76
52
  * @param {Object} obj
77
53
  * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
78
54
  * Otherwise, just returns the input object.
79
55
  */
80
- _classPrivateMethodInitSpec(_this, _User_brand);
81
- _this.$objectType = "iam.v4.authn.User";
56
+ _classPrivateMethodInitSpec(this, _User_brand);
57
+ this.$objectType = "iam.v4.authn.User";
82
58
  /** @type {object<string, any>} */
83
- _this.$reserved = {
84
- '$fv': "v4.r1.b1"
59
+ this.$reserved = {
60
+ '$fv': "v4.r1.b2"
85
61
  };
86
62
  /** @type {object<string, any>} */
87
- _this.$unknownFields = {};
88
- return _this;
63
+ this.$unknownFields = {};
89
64
  }
90
65
 
91
66
  /**
@@ -96,891 +71,820 @@ var User = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
96
71
  * @param callFromChild {Boolean} Flag to recognise calling instance
97
72
  * @return {module:Ntnx/User} The populated <code>User</code> instance.
98
73
  */
99
- _inherits(User, _ExternalizableAbstra);
100
- return _createClass(User, [{
101
- key: "getUsername",
102
- value:
103
- /**
104
- * Returns Identifier of the user.
105
- * @return {string}
106
- */
107
- function getUsername() {
108
- return this.username;
74
+ static constructFromObject(data, obj = null, callFromChild = false) {
75
+ let items, item, i, itemArr, discriminator;
76
+ if (data) {
77
+ obj = obj || new User();
78
+ _ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
79
+ if (data.hasOwnProperty('username') && data.username !== null && data.username !== undefined) {
80
+ obj.setUsername(data['username']);
81
+ }
82
+ if (data.hasOwnProperty('userType') && data.userType !== null && data.userType !== undefined) {
83
+ obj.setUserType(_UserType.default.constructFromObject(data['userType']));
84
+ }
85
+ if (data.hasOwnProperty('idpId') && data.idpId !== null && data.idpId !== undefined) {
86
+ obj.setIdpId(data['idpId']);
87
+ }
88
+ if (data.hasOwnProperty('displayName') && data.displayName !== null && data.displayName !== undefined) {
89
+ obj.setDisplayName(data['displayName']);
90
+ }
91
+ if (data.hasOwnProperty('firstName') && data.firstName !== null && data.firstName !== undefined) {
92
+ obj.setFirstName(data['firstName']);
93
+ }
94
+ if (data.hasOwnProperty('middleInitial') && data.middleInitial !== null && data.middleInitial !== undefined) {
95
+ obj.setMiddleInitial(data['middleInitial']);
96
+ }
97
+ if (data.hasOwnProperty('lastName') && data.lastName !== null && data.lastName !== undefined) {
98
+ obj.setLastName(data['lastName']);
99
+ }
100
+ if (data.hasOwnProperty('emailId') && data.emailId !== null && data.emailId !== undefined) {
101
+ obj.setEmailId(data['emailId']);
102
+ }
103
+ if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {
104
+ obj.setLocale(data['locale']);
105
+ }
106
+ if (data.hasOwnProperty('region') && data.region !== null && data.region !== undefined) {
107
+ obj.setRegion(data['region']);
108
+ }
109
+ if (data.hasOwnProperty('password') && data.password !== null && data.password !== undefined) {
110
+ obj.setPassword(data['password']);
111
+ }
112
+ if (data.hasOwnProperty('isForceResetPasswordEnabled') && data.isForceResetPasswordEnabled !== null && data.isForceResetPasswordEnabled !== undefined) {
113
+ obj.setIsForceResetPasswordEnabled(data['isForceResetPasswordEnabled']);
114
+ }
115
+ if (data.hasOwnProperty('additionalAttributes') && data.additionalAttributes !== null && data.additionalAttributes !== undefined) {
116
+ itemArr = [];
117
+ items = data.additionalAttributes;
118
+ for (i = 0; i < items.length; i++) {
119
+ item = _KVPair.default.constructFromObject(items[i], undefined);
120
+ itemArr.push(item);
121
+ }
122
+ obj.setAdditionalAttributes(itemArr);
123
+ }
124
+ if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {
125
+ obj.setStatus(_UserStatusType.default.constructFromObject(data['status']));
126
+ }
127
+ if (data.hasOwnProperty('bucketsAccessKeys') && data.bucketsAccessKeys !== null && data.bucketsAccessKeys !== undefined) {
128
+ itemArr = [];
129
+ items = data.bucketsAccessKeys;
130
+ for (i = 0; i < items.length; i++) {
131
+ item = _BucketsAccessKey.default.constructFromObject(items[i], undefined);
132
+ itemArr.push(item);
133
+ }
134
+ obj.setBucketsAccessKeys(itemArr);
135
+ }
136
+ if (data.hasOwnProperty('lastLoginTime') && data.lastLoginTime !== null && data.lastLoginTime !== undefined) {
137
+ obj.setLastLoginTime(data['lastLoginTime']);
138
+ }
139
+ if (data.hasOwnProperty('createdTime') && data.createdTime !== null && data.createdTime !== undefined) {
140
+ obj.setCreatedTime(data['createdTime']);
141
+ }
142
+ if (data.hasOwnProperty('lastUpdatedTime') && data.lastUpdatedTime !== null && data.lastUpdatedTime !== undefined) {
143
+ obj.setLastUpdatedTime(data['lastUpdatedTime']);
144
+ }
145
+ if (data.hasOwnProperty('createdBy') && data.createdBy !== null && data.createdBy !== undefined) {
146
+ obj.setCreatedBy(data['createdBy']);
147
+ }
148
+ if (data.hasOwnProperty('lastUpdatedBy') && data.lastUpdatedBy !== null && data.lastUpdatedBy !== undefined) {
149
+ obj.setLastUpdatedBy(data['lastUpdatedBy']);
150
+ }
151
+ if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
152
+ obj.setDescription(data['description']);
153
+ }
154
+ if (data.hasOwnProperty('creationType') && data.creationType !== null && data.creationType !== undefined) {
155
+ obj.setCreationType(_CreationType.default.constructFromObject(data['creationType']));
156
+ }
157
+ if (!callFromChild) {
158
+ obj.$unknownFields = {
159
+ ...data.$unknownFields
160
+ };
161
+ for (const property in data) {
162
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
163
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
164
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
165
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
166
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
167
+ obj.$unknownFields[property] = data[property];
168
+ }
169
+ }
170
+ }
109
171
  }
172
+ return obj;
173
+ }
110
174
 
111
- /**
112
- * Sets Identifier of the user.
113
- * @param {string} username Identifier of the user.
114
- */
115
- }, {
116
- key: "setUsername",
117
- value: function setUsername(username) {
118
- this.username = username;
119
- }
175
+ /**
176
+ * Converts a given snake_case string to camelCase.
177
+ * @param {string} snakeStr - The input string in snake_case format.
178
+ * @returns {string} - The converted string in camelCase format.
179
+ */
180
+ static snakeToCamel(snakeStr) {
181
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
182
+ }
120
183
 
121
- /**
122
- * @return {UserType}
123
- */
124
- }, {
125
- key: "getUserType",
126
- value: function getUserType() {
127
- return this.userType;
128
- }
184
+ /**
185
+ * Returns Identifier of the user.
186
+ * @return {string}
187
+ */
188
+ getUsername() {
189
+ return this.username;
190
+ }
129
191
 
130
- /**
131
- * @param {UserType} userType
132
- */
133
- }, {
134
- key: "setUserType",
135
- value: function setUserType(userType) {
136
- this.userType = userType;
137
- }
192
+ /**
193
+ * Sets Identifier of the user.
194
+ * @param {string} username Identifier of the user.
195
+ */
196
+ setUsername(username) {
197
+ this.username = username;
198
+ }
138
199
 
139
- /**
140
- * Returns Identifier of the IDP for the user.
141
- * @return {string}
142
- */
143
- }, {
144
- key: "getIdpId",
145
- value: function getIdpId() {
146
- return this.idpId;
147
- }
200
+ /**
201
+ * @return {UserType}
202
+ */
203
+ getUserType() {
204
+ return this.userType;
205
+ }
148
206
 
149
- /**
150
- * Sets Identifier of the IDP for the user.
151
- * @param {string} idpId Identifier of the IDP for the user.
152
- */
153
- }, {
154
- key: "setIdpId",
155
- value: function setIdpId(idpId) {
156
- this.idpId = idpId;
157
- }
207
+ /**
208
+ * @param {UserType} userType
209
+ */
210
+ setUserType(userType) {
211
+ this.userType = userType;
212
+ }
158
213
 
159
- /**
160
- * Returns Display name of the user. For LDAP and SAML users, this is set from AD config.
161
- * @return {string}
162
- */
163
- }, {
164
- key: "getDisplayName",
165
- value: function getDisplayName() {
166
- return this.displayName;
167
- }
214
+ /**
215
+ * Returns Identifier of the IDP for the user.
216
+ * @return {string}
217
+ */
218
+ getIdpId() {
219
+ return this.idpId;
220
+ }
168
221
 
169
- /**
170
- * Sets Display name of the user. For LDAP and SAML users, this is set from AD config.
171
- * @param {string} displayName Display name of the user. For LDAP and SAML users, this is set from AD config.
172
- */
173
- }, {
174
- key: "setDisplayName",
175
- value: function setDisplayName(displayName) {
176
- this.displayName = displayName;
177
- }
222
+ /**
223
+ * Sets Identifier of the IDP for the user.
224
+ * @param {string} idpId Identifier of the IDP for the user.
225
+ */
226
+ setIdpId(idpId) {
227
+ this.idpId = idpId;
228
+ }
178
229
 
179
- /**
180
- * Returns First name of the user.
181
- * @return {string}
182
- */
183
- }, {
184
- key: "getFirstName",
185
- value: function getFirstName() {
186
- return this.firstName;
187
- }
230
+ /**
231
+ * Returns Display name of the user. For LDAP and SAML users, this is set from AD config.
232
+ * @return {string}
233
+ */
234
+ getDisplayName() {
235
+ return this.displayName;
236
+ }
188
237
 
189
- /**
190
- * Sets First name of the user.
191
- * @param {string} firstName First name of the user.
192
- */
193
- }, {
194
- key: "setFirstName",
195
- value: function setFirstName(firstName) {
196
- this.firstName = firstName;
197
- }
238
+ /**
239
+ * Sets Display name of the user. For LDAP and SAML users, this is set from AD config.
240
+ * @param {string} displayName Display name of the user. For LDAP and SAML users, this is set from AD config.
241
+ */
242
+ setDisplayName(displayName) {
243
+ this.displayName = displayName;
244
+ }
198
245
 
199
- /**
200
- * Returns Middle name of the user.
201
- * @return {string}
202
- */
203
- }, {
204
- key: "getMiddleInitial",
205
- value: function getMiddleInitial() {
206
- return this.middleInitial;
207
- }
246
+ /**
247
+ * Returns First name of the user.
248
+ * @return {string}
249
+ */
250
+ getFirstName() {
251
+ return this.firstName;
252
+ }
208
253
 
209
- /**
210
- * Sets Middle name of the user.
211
- * @param {string} middleInitial Middle name of the user.
212
- */
213
- }, {
214
- key: "setMiddleInitial",
215
- value: function setMiddleInitial(middleInitial) {
216
- this.middleInitial = middleInitial;
217
- }
254
+ /**
255
+ * Sets First name of the user.
256
+ * @param {string} firstName First name of the user.
257
+ */
258
+ setFirstName(firstName) {
259
+ this.firstName = firstName;
260
+ }
218
261
 
219
- /**
220
- * Returns Last name of the user.
221
- * @return {string}
222
- */
223
- }, {
224
- key: "getLastName",
225
- value: function getLastName() {
226
- return this.lastName;
227
- }
262
+ /**
263
+ * Returns Middle name of the user.
264
+ * @return {string}
265
+ */
266
+ getMiddleInitial() {
267
+ return this.middleInitial;
268
+ }
228
269
 
229
- /**
230
- * Sets Last name of the user.
231
- * @param {string} lastName Last name of the user.
232
- */
233
- }, {
234
- key: "setLastName",
235
- value: function setLastName(lastName) {
236
- this.lastName = lastName;
237
- }
270
+ /**
271
+ * Sets Middle name of the user.
272
+ * @param {string} middleInitial Middle name of the user.
273
+ */
274
+ setMiddleInitial(middleInitial) {
275
+ this.middleInitial = middleInitial;
276
+ }
238
277
 
239
- /**
240
- * Returns Email ID of the user.
241
- * @return {string}
242
- */
243
- }, {
244
- key: "getEmailId",
245
- value: function getEmailId() {
246
- return this.emailId;
247
- }
278
+ /**
279
+ * Returns Last name of the user.
280
+ * @return {string}
281
+ */
282
+ getLastName() {
283
+ return this.lastName;
284
+ }
248
285
 
249
- /**
250
- * Sets Email ID of the user.
251
- * @param {string} emailId Email ID of the user.
252
- */
253
- }, {
254
- key: "setEmailId",
255
- value: function setEmailId(emailId) {
256
- this.emailId = emailId;
257
- }
286
+ /**
287
+ * Sets Last name of the user.
288
+ * @param {string} lastName Last name of the user.
289
+ */
290
+ setLastName(lastName) {
291
+ this.lastName = lastName;
292
+ }
258
293
 
259
- /**
260
- * Returns Default locale of the user.
261
- * @return {string}
262
- */
263
- }, {
264
- key: "getLocale",
265
- value: function getLocale() {
266
- return this.locale;
267
- }
294
+ /**
295
+ * Returns Email ID of the user.
296
+ * @return {string}
297
+ */
298
+ getEmailId() {
299
+ return this.emailId;
300
+ }
268
301
 
269
- /**
270
- * Sets Default locale of the user.
271
- * @param {string} locale Default locale of the user.
272
- */
273
- }, {
274
- key: "setLocale",
275
- value: function setLocale(locale) {
276
- this.locale = locale;
277
- }
302
+ /**
303
+ * Sets Email ID of the user.
304
+ * @param {string} emailId Email ID of the user.
305
+ */
306
+ setEmailId(emailId) {
307
+ this.emailId = emailId;
308
+ }
278
309
 
279
- /**
280
- * Returns Default region of the user.
281
- * @return {string}
282
- */
283
- }, {
284
- key: "getRegion",
285
- value: function getRegion() {
286
- return this.region;
287
- }
310
+ /**
311
+ * Returns Default locale of the user.
312
+ * @return {string}
313
+ */
314
+ getLocale() {
315
+ return this.locale;
316
+ }
288
317
 
289
- /**
290
- * Sets Default region of the user.
291
- * @param {string} region Default region of the user.
292
- */
293
- }, {
294
- key: "setRegion",
295
- value: function setRegion(region) {
296
- this.region = region;
297
- }
318
+ /**
319
+ * Sets Default locale of the user.
320
+ * @param {string} locale Default locale of the user.
321
+ */
322
+ setLocale(locale) {
323
+ this.locale = locale;
324
+ }
298
325
 
299
- /**
300
- * Returns Password of the user.
301
- * @return {string}
302
- */
303
- }, {
304
- key: "getPassword",
305
- value: function getPassword() {
306
- return this.password;
307
- }
326
+ /**
327
+ * Returns Default region of the user.
328
+ * @return {string}
329
+ */
330
+ getRegion() {
331
+ return this.region;
332
+ }
308
333
 
309
- /**
310
- * Sets Password of the user.
311
- * @param {string} password Password of the user.
312
- */
313
- }, {
314
- key: "setPassword",
315
- value: function setPassword(password) {
316
- this.password = password;
317
- }
334
+ /**
335
+ * Sets Default region of the user.
336
+ * @param {string} region Default region of the user.
337
+ */
338
+ setRegion(region) {
339
+ this.region = region;
340
+ }
318
341
 
319
- /**
320
- * Returns Flag to force the user to reset password.
321
- * @return {boolean}
322
- */
323
- }, {
324
- key: "getIsForceResetPasswordEnabled",
325
- value: function getIsForceResetPasswordEnabled() {
326
- return this.isForceResetPasswordEnabled;
327
- }
342
+ /**
343
+ * Returns Password of the user.
344
+ * @return {string}
345
+ */
346
+ getPassword() {
347
+ return this.password;
348
+ }
328
349
 
329
- /**
330
- * Sets Flag to force the user to reset password.
331
- * @param {boolean} isForceResetPasswordEnabled Flag to force the user to reset password.
332
- */
333
- }, {
334
- key: "setIsForceResetPasswordEnabled",
335
- value: function setIsForceResetPasswordEnabled(isForceResetPasswordEnabled) {
336
- this.isForceResetPasswordEnabled = isForceResetPasswordEnabled;
337
- }
350
+ /**
351
+ * Sets Password of the user.
352
+ * @param {string} password Password of the user.
353
+ */
354
+ setPassword(password) {
355
+ this.password = password;
356
+ }
338
357
 
339
- /**
340
- * Returns Indicates additional attributes of the user.
341
- * @return {KVPair[]}
342
- */
343
- }, {
344
- key: "getAdditionalAttributes",
345
- value: function getAdditionalAttributes() {
346
- return this.additionalAttributes;
347
- }
358
+ /**
359
+ * Returns Flag to force the user to reset password.
360
+ * @return {boolean}
361
+ */
362
+ getIsForceResetPasswordEnabled() {
363
+ return this.isForceResetPasswordEnabled;
364
+ }
348
365
 
349
- /**
350
- * Sets Indicates additional attributes of the user.
351
- * @param {KVPair[]} additionalAttributes Indicates additional attributes of the user.
352
- */
353
- }, {
354
- key: "setAdditionalAttributes",
355
- value: function setAdditionalAttributes(additionalAttributes) {
356
- this.additionalAttributes = additionalAttributes;
357
- }
366
+ /**
367
+ * Sets Flag to force the user to reset password.
368
+ * @param {boolean} isForceResetPasswordEnabled Flag to force the user to reset password.
369
+ */
370
+ setIsForceResetPasswordEnabled(isForceResetPasswordEnabled) {
371
+ this.isForceResetPasswordEnabled = isForceResetPasswordEnabled;
372
+ }
358
373
 
359
- /**
360
- * @return {UserStatusType}
361
- */
362
- }, {
363
- key: "getStatus",
364
- value: function getStatus() {
365
- return this.status;
366
- }
374
+ /**
375
+ * Returns Indicates additional attributes of the user.
376
+ * @return {KVPair[]}
377
+ */
378
+ getAdditionalAttributes() {
379
+ return this.additionalAttributes;
380
+ }
367
381
 
368
- /**
369
- * @param {UserStatusType} status
370
- */
371
- }, {
372
- key: "setStatus",
373
- value: function setStatus(status) {
374
- this.status = status;
375
- }
382
+ /**
383
+ * Sets Indicates additional attributes of the user.
384
+ * @param {KVPair[]} additionalAttributes Indicates additional attributes of the user.
385
+ */
386
+ setAdditionalAttributes(additionalAttributes) {
387
+ this.additionalAttributes = additionalAttributes;
388
+ }
376
389
 
377
- /**
378
- * Returns Bucket access keys for the user.
379
- * @return {BucketsAccessKey[]}
380
- */
381
- }, {
382
- key: "getBucketsAccessKeys",
383
- value: function getBucketsAccessKeys() {
384
- return this.bucketsAccessKeys;
385
- }
390
+ /**
391
+ * @return {UserStatusType}
392
+ */
393
+ getStatus() {
394
+ return this.status;
395
+ }
386
396
 
387
- /**
388
- * Sets Bucket access keys for the user.
389
- * @param {BucketsAccessKey[]} bucketsAccessKeys Bucket access keys for the user.
390
- */
391
- }, {
392
- key: "setBucketsAccessKeys",
393
- value: function setBucketsAccessKeys(bucketsAccessKeys) {
394
- this.bucketsAccessKeys = bucketsAccessKeys;
395
- }
397
+ /**
398
+ * @param {UserStatusType} status
399
+ */
400
+ setStatus(status) {
401
+ this.status = status;
402
+ }
396
403
 
397
- /**
398
- * Returns The last successful login time for the user.
399
- * @return {Date}
400
- */
401
- }, {
402
- key: "getLastLoginTime",
403
- value: function getLastLoginTime() {
404
- return this.lastLoginTime;
405
- }
404
+ /**
405
+ * Returns Bucket access keys for the user.
406
+ * @return {BucketsAccessKey[]}
407
+ */
408
+ getBucketsAccessKeys() {
409
+ return this.bucketsAccessKeys;
410
+ }
406
411
 
407
- /**
408
- * Sets The last successful login time for the user.
409
- * @param {Date} lastLoginTime The last successful login time for the user.
410
- */
411
- }, {
412
- key: "setLastLoginTime",
413
- value: function setLastLoginTime(lastLoginTime) {
414
- this.lastLoginTime = lastLoginTime;
415
- }
412
+ /**
413
+ * Sets Bucket access keys for the user.
414
+ * @param {BucketsAccessKey[]} bucketsAccessKeys Bucket access keys for the user.
415
+ */
416
+ setBucketsAccessKeys(bucketsAccessKeys) {
417
+ this.bucketsAccessKeys = bucketsAccessKeys;
418
+ }
416
419
 
417
- /**
418
- * Returns Creation time of the user.
419
- * @return {Date}
420
- */
421
- }, {
422
- key: "getCreatedTime",
423
- value: function getCreatedTime() {
424
- return this.createdTime;
425
- }
420
+ /**
421
+ * Returns The last successful login time for the user.
422
+ * @return {Date}
423
+ */
424
+ getLastLoginTime() {
425
+ return this.lastLoginTime;
426
+ }
426
427
 
427
- /**
428
- * Sets Creation time of the user.
429
- * @param {Date} createdTime Creation time of the user.
430
- */
431
- }, {
432
- key: "setCreatedTime",
433
- value: function setCreatedTime(createdTime) {
434
- this.createdTime = createdTime;
435
- }
428
+ /**
429
+ * Sets The last successful login time for the user.
430
+ * @param {Date} lastLoginTime The last successful login time for the user.
431
+ */
432
+ setLastLoginTime(lastLoginTime) {
433
+ this.lastLoginTime = lastLoginTime;
434
+ }
436
435
 
437
- /**
438
- * Returns The last updated time for the user.
439
- * @return {Date}
440
- */
441
- }, {
442
- key: "getLastUpdatedTime",
443
- value: function getLastUpdatedTime() {
444
- return this.lastUpdatedTime;
445
- }
436
+ /**
437
+ * Returns Creation time of the user.
438
+ * @return {Date}
439
+ */
440
+ getCreatedTime() {
441
+ return this.createdTime;
442
+ }
446
443
 
447
- /**
448
- * Sets The last updated time for the user.
449
- * @param {Date} lastUpdatedTime The last updated time for the user.
450
- */
451
- }, {
452
- key: "setLastUpdatedTime",
453
- value: function setLastUpdatedTime(lastUpdatedTime) {
454
- this.lastUpdatedTime = lastUpdatedTime;
455
- }
444
+ /**
445
+ * Sets Creation time of the user.
446
+ * @param {Date} createdTime Creation time of the user.
447
+ */
448
+ setCreatedTime(createdTime) {
449
+ this.createdTime = createdTime;
450
+ }
456
451
 
457
- /**
458
- * Returns User or Service who created the user.
459
- * @return {string}
460
- */
461
- }, {
462
- key: "getCreatedBy",
463
- value: function getCreatedBy() {
464
- return this.createdBy;
465
- }
452
+ /**
453
+ * Returns The last updated time for the user.
454
+ * @return {Date}
455
+ */
456
+ getLastUpdatedTime() {
457
+ return this.lastUpdatedTime;
458
+ }
466
459
 
467
- /**
468
- * Sets User or Service who created the user.
469
- * @param {string} createdBy User or Service who created the user.
470
- */
471
- }, {
472
- key: "setCreatedBy",
473
- value: function setCreatedBy(createdBy) {
474
- this.createdBy = createdBy;
475
- }
460
+ /**
461
+ * Sets The last updated time for the user.
462
+ * @param {Date} lastUpdatedTime The last updated time for the user.
463
+ */
464
+ setLastUpdatedTime(lastUpdatedTime) {
465
+ this.lastUpdatedTime = lastUpdatedTime;
466
+ }
476
467
 
477
- /**
478
- * Returns Last updated by this user ID.
479
- * @return {string}
480
- */
481
- }, {
482
- key: "getLastUpdatedBy",
483
- value: function getLastUpdatedBy() {
484
- return this.lastUpdatedBy;
485
- }
468
+ /**
469
+ * Returns User or Service who created the user.
470
+ * @return {string}
471
+ */
472
+ getCreatedBy() {
473
+ return this.createdBy;
474
+ }
486
475
 
487
- /**
488
- * Sets Last updated by this user ID.
489
- * @param {string} lastUpdatedBy Last updated by this user ID.
490
- */
491
- }, {
492
- key: "setLastUpdatedBy",
493
- value: function setLastUpdatedBy(lastUpdatedBy) {
494
- this.lastUpdatedBy = lastUpdatedBy;
495
- }
476
+ /**
477
+ * Sets User or Service who created the user.
478
+ * @param {string} createdBy User or Service who created the user.
479
+ */
480
+ setCreatedBy(createdBy) {
481
+ this.createdBy = createdBy;
482
+ }
496
483
 
497
- /**
498
- * Returns Description of the user.
499
- * @return {string}
500
- */
501
- }, {
502
- key: "getDescription",
503
- value: function getDescription() {
504
- return this.description;
505
- }
484
+ /**
485
+ * Returns Last updated by this user ID.
486
+ * @return {string}
487
+ */
488
+ getLastUpdatedBy() {
489
+ return this.lastUpdatedBy;
490
+ }
506
491
 
507
- /**
508
- * Sets Description of the user.
509
- * @param {string} description Description of the user.
510
- */
511
- }, {
512
- key: "setDescription",
513
- value: function setDescription(description) {
514
- this.description = description;
515
- }
492
+ /**
493
+ * Sets Last updated by this user ID.
494
+ * @param {string} lastUpdatedBy Last updated by this user ID.
495
+ */
496
+ setLastUpdatedBy(lastUpdatedBy) {
497
+ this.lastUpdatedBy = lastUpdatedBy;
498
+ }
516
499
 
517
- /**
518
- * @return {CreationType}
519
- */
520
- }, {
521
- key: "getCreationType",
522
- value: function getCreationType() {
523
- return this.creationType;
524
- }
500
+ /**
501
+ * Returns Description of the user.
502
+ * @return {string}
503
+ */
504
+ getDescription() {
505
+ return this.description;
506
+ }
525
507
 
526
- /**
527
- * @param {CreationType} creationType
528
- */
529
- }, {
530
- key: "setCreationType",
531
- value: function setCreationType(creationType) {
532
- this.creationType = creationType;
533
- }
534
- }, {
535
- key: "toJson",
536
- value: function toJson(forMutation) {
537
- if (forMutation === false) {
538
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getUsername() !== 'undefined' && this.getUsername() !== null ? {
508
+ /**
509
+ * Sets Description of the user.
510
+ * @param {string} description Description of the user.
511
+ */
512
+ setDescription(description) {
513
+ this.description = description;
514
+ }
515
+
516
+ /**
517
+ * @return {CreationType}
518
+ */
519
+ getCreationType() {
520
+ return this.creationType;
521
+ }
522
+
523
+ /**
524
+ * @param {CreationType} creationType
525
+ */
526
+ setCreationType(creationType) {
527
+ this.creationType = creationType;
528
+ }
529
+ toJson(forMutation) {
530
+ if (forMutation === false) {
531
+ return {
532
+ ...(typeof this.getUsername() !== 'undefined' && this.getUsername() !== null ? {
539
533
  'username': this.getUsername()
540
- } : {}), typeof this.getUserType() !== 'undefined' && this.getUserType() !== null ? {
534
+ } : {}),
535
+ ...(typeof this.getUserType() !== 'undefined' && this.getUserType() !== null ? {
541
536
  'userType': this.getUserType()
542
- } : {}), typeof this.getIdpId() !== 'undefined' && this.getIdpId() !== null ? {
537
+ } : {}),
538
+ ...(typeof this.getIdpId() !== 'undefined' && this.getIdpId() !== null ? {
543
539
  'idpId': this.getIdpId()
544
- } : {}), typeof this.getDisplayName() !== 'undefined' && this.getDisplayName() !== null ? {
540
+ } : {}),
541
+ ...(typeof this.getDisplayName() !== 'undefined' && this.getDisplayName() !== null ? {
545
542
  'displayName': this.getDisplayName()
546
- } : {}), typeof this.getFirstName() !== 'undefined' && this.getFirstName() !== null ? {
543
+ } : {}),
544
+ ...(typeof this.getFirstName() !== 'undefined' && this.getFirstName() !== null ? {
547
545
  'firstName': this.getFirstName()
548
- } : {}), typeof this.getMiddleInitial() !== 'undefined' && this.getMiddleInitial() !== null ? {
546
+ } : {}),
547
+ ...(typeof this.getMiddleInitial() !== 'undefined' && this.getMiddleInitial() !== null ? {
549
548
  'middleInitial': this.getMiddleInitial()
550
- } : {}), typeof this.getLastName() !== 'undefined' && this.getLastName() !== null ? {
549
+ } : {}),
550
+ ...(typeof this.getLastName() !== 'undefined' && this.getLastName() !== null ? {
551
551
  'lastName': this.getLastName()
552
- } : {}), typeof this.getEmailId() !== 'undefined' && this.getEmailId() !== null ? {
552
+ } : {}),
553
+ ...(typeof this.getEmailId() !== 'undefined' && this.getEmailId() !== null ? {
553
554
  'emailId': this.getEmailId()
554
- } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {
555
+ } : {}),
556
+ ...(typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {
555
557
  'locale': this.getLocale()
556
- } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
558
+ } : {}),
559
+ ...(typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
557
560
  'region': this.getRegion()
558
- } : {}), typeof this.getPassword() !== 'undefined' && this.getPassword() !== null ? {
561
+ } : {}),
562
+ ...(typeof this.getPassword() !== 'undefined' && this.getPassword() !== null ? {
559
563
  'password': this.getPassword()
560
- } : {}), typeof this.getIsForceResetPasswordEnabled() !== 'undefined' && this.getIsForceResetPasswordEnabled() !== null ? {
564
+ } : {}),
565
+ ...(typeof this.getIsForceResetPasswordEnabled() !== 'undefined' && this.getIsForceResetPasswordEnabled() !== null ? {
561
566
  'isForceResetPasswordEnabled': this.getIsForceResetPasswordEnabled()
562
- } : {}), typeof this.getAdditionalAttributes() !== 'undefined' && this.getAdditionalAttributes() !== null ? {
563
- 'additionalAttributes': this.getAdditionalAttributes().map(function (item) {
564
- return item.toJson(false);
565
- })
566
- } : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
567
+ } : {}),
568
+ ...(typeof this.getAdditionalAttributes() !== 'undefined' && this.getAdditionalAttributes() !== null ? {
569
+ 'additionalAttributes': this.getAdditionalAttributes().map(item => item.toJson(false))
570
+ } : {}),
571
+ ...(typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
567
572
  'status': this.getStatus()
568
- } : {}), typeof this.getBucketsAccessKeys() !== 'undefined' && this.getBucketsAccessKeys() !== null ? {
569
- 'bucketsAccessKeys': this.getBucketsAccessKeys().map(function (item) {
570
- return item.toJson(false);
571
- })
572
- } : {}), typeof this.getLastLoginTime() !== 'undefined' && this.getLastLoginTime() !== null ? {
573
+ } : {}),
574
+ ...(typeof this.getBucketsAccessKeys() !== 'undefined' && this.getBucketsAccessKeys() !== null ? {
575
+ 'bucketsAccessKeys': this.getBucketsAccessKeys().map(item => item.toJson(false))
576
+ } : {}),
577
+ ...(typeof this.getLastLoginTime() !== 'undefined' && this.getLastLoginTime() !== null ? {
573
578
  'lastLoginTime': _assertClassBrand(_User_brand, this, _handleDateType).call(this, this.getLastLoginTime(), false)
574
- } : {}), typeof this.getCreatedTime() !== 'undefined' && this.getCreatedTime() !== null ? {
579
+ } : {}),
580
+ ...(typeof this.getCreatedTime() !== 'undefined' && this.getCreatedTime() !== null ? {
575
581
  'createdTime': _assertClassBrand(_User_brand, this, _handleDateType).call(this, this.getCreatedTime(), false)
576
- } : {}), typeof this.getLastUpdatedTime() !== 'undefined' && this.getLastUpdatedTime() !== null ? {
582
+ } : {}),
583
+ ...(typeof this.getLastUpdatedTime() !== 'undefined' && this.getLastUpdatedTime() !== null ? {
577
584
  'lastUpdatedTime': _assertClassBrand(_User_brand, this, _handleDateType).call(this, this.getLastUpdatedTime(), false)
578
- } : {}), typeof this.getCreatedBy() !== 'undefined' && this.getCreatedBy() !== null ? {
585
+ } : {}),
586
+ ...(typeof this.getCreatedBy() !== 'undefined' && this.getCreatedBy() !== null ? {
579
587
  'createdBy': this.getCreatedBy()
580
- } : {}), typeof this.getLastUpdatedBy() !== 'undefined' && this.getLastUpdatedBy() !== null ? {
588
+ } : {}),
589
+ ...(typeof this.getLastUpdatedBy() !== 'undefined' && this.getLastUpdatedBy() !== null ? {
581
590
  'lastUpdatedBy': this.getLastUpdatedBy()
582
- } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
591
+ } : {}),
592
+ ...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
583
593
  'description': this.getDescription()
584
- } : {}), typeof this.getCreationType() !== 'undefined' && this.getCreationType() !== null ? {
594
+ } : {}),
595
+ ...(typeof this.getCreationType() !== 'undefined' && this.getCreationType() !== null ? {
585
596
  'creationType': this.getCreationType()
586
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
597
+ } : {}),
598
+ ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
587
599
  'extId': this.getExtId()
588
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
589
- 'links': this.getLinks().map(function (item) {
590
- return item.toJson(false);
591
- })
592
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
600
+ } : {}),
601
+ ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
602
+ 'links': this.getLinks().map(item => item.toJson(false))
603
+ } : {}),
604
+ ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
593
605
  'tenantId': this.getTenantId()
594
- } : {}), {}, {
595
- '$reserved': this.get$Reserved(),
596
- '$objectType': this.get$ObjectType(),
597
- '$unknownFields': this.get$UnknownFields()
598
- });
599
- }
600
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getUsername() !== 'undefined' && this.getUsername() !== null ? {
606
+ } : {}),
607
+ '$reserved': this.get$Reserved(),
608
+ '$objectType': this.get$ObjectType(),
609
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
610
+ '$unknownFields': {}
611
+ };
612
+ }
613
+ return {
614
+ ...(typeof this.getUsername() !== 'undefined' && this.getUsername() !== null ? {
601
615
  'username': this.getUsername()
602
- } : {}), typeof this.getUserType() !== 'undefined' && this.getUserType() !== null ? {
616
+ } : {}),
617
+ ...(typeof this.getUserType() !== 'undefined' && this.getUserType() !== null ? {
603
618
  'userType': this.getUserType()
604
- } : {}), typeof this.getIdpId() !== 'undefined' && this.getIdpId() !== null ? {
619
+ } : {}),
620
+ ...(typeof this.getIdpId() !== 'undefined' && this.getIdpId() !== null ? {
605
621
  'idpId': this.getIdpId()
606
- } : {}), typeof this.getDisplayName() !== 'undefined' && this.getDisplayName() !== null ? {
622
+ } : {}),
623
+ ...(typeof this.getDisplayName() !== 'undefined' && this.getDisplayName() !== null ? {
607
624
  'displayName': this.getDisplayName()
608
- } : {}), typeof this.getFirstName() !== 'undefined' && this.getFirstName() !== null ? {
625
+ } : {}),
626
+ ...(typeof this.getFirstName() !== 'undefined' && this.getFirstName() !== null ? {
609
627
  'firstName': this.getFirstName()
610
- } : {}), typeof this.getMiddleInitial() !== 'undefined' && this.getMiddleInitial() !== null ? {
628
+ } : {}),
629
+ ...(typeof this.getMiddleInitial() !== 'undefined' && this.getMiddleInitial() !== null ? {
611
630
  'middleInitial': this.getMiddleInitial()
612
- } : {}), typeof this.getLastName() !== 'undefined' && this.getLastName() !== null ? {
631
+ } : {}),
632
+ ...(typeof this.getLastName() !== 'undefined' && this.getLastName() !== null ? {
613
633
  'lastName': this.getLastName()
614
- } : {}), typeof this.getEmailId() !== 'undefined' && this.getEmailId() !== null ? {
634
+ } : {}),
635
+ ...(typeof this.getEmailId() !== 'undefined' && this.getEmailId() !== null ? {
615
636
  'emailId': this.getEmailId()
616
- } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {
637
+ } : {}),
638
+ ...(typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {
617
639
  'locale': this.getLocale()
618
- } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
640
+ } : {}),
641
+ ...(typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
619
642
  'region': this.getRegion()
620
- } : {}), typeof this.getPassword() !== 'undefined' && this.getPassword() !== null ? {
643
+ } : {}),
644
+ ...(typeof this.getPassword() !== 'undefined' && this.getPassword() !== null ? {
621
645
  'password': this.getPassword()
622
- } : {}), typeof this.getIsForceResetPasswordEnabled() !== 'undefined' && this.getIsForceResetPasswordEnabled() !== null ? {
646
+ } : {}),
647
+ ...(typeof this.getIsForceResetPasswordEnabled() !== 'undefined' && this.getIsForceResetPasswordEnabled() !== null ? {
623
648
  'isForceResetPasswordEnabled': this.getIsForceResetPasswordEnabled()
624
- } : {}), typeof this.getAdditionalAttributes() !== 'undefined' && this.getAdditionalAttributes() !== null ? {
625
- 'additionalAttributes': this.getAdditionalAttributes().map(function (item) {
626
- return item.toJson(false);
627
- })
628
- } : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
649
+ } : {}),
650
+ ...(typeof this.getAdditionalAttributes() !== 'undefined' && this.getAdditionalAttributes() !== null ? {
651
+ 'additionalAttributes': this.getAdditionalAttributes().map(item => item.toJson(false))
652
+ } : {}),
653
+ ...(typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
629
654
  'status': this.getStatus()
630
- } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
655
+ } : {}),
656
+ ...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
631
657
  'description': this.getDescription()
632
- } : {}), typeof this.getCreationType() !== 'undefined' && this.getCreationType() !== null ? {
658
+ } : {}),
659
+ ...(typeof this.getCreationType() !== 'undefined' && this.getCreationType() !== null ? {
633
660
  'creationType': this.getCreationType()
634
- } : {}), {}, {
635
- '$reserved': this.get$Reserved(),
636
- '$objectType': this.get$ObjectType(),
637
- '$unknownFields': this.get$UnknownFields()
638
- });
661
+ } : {}),
662
+ '$reserved': this.get$Reserved(),
663
+ '$objectType': this.get$ObjectType(),
664
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
665
+ '$unknownFields': {}
666
+ };
667
+ }
668
+ validate(scope, properties) {
669
+ let propList = [];
670
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
671
+ //cases validate() and validate(scope)
672
+ propList = [];
673
+ } else if (arguments.length === 1) {
674
+ //case validate(properties)
675
+ propList = arguments[0];
676
+ scope = null;
677
+ } else {
678
+ //case validate(scope, properties)
679
+ propList = arguments[1];
639
680
  }
640
- }, {
641
- key: "validate",
642
- value: function validate(scope, properties) {
643
- var _this2 = this;
644
- var propList = [];
645
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
646
- //cases validate() and validate(scope)
647
- propList = [];
648
- } else if (arguments.length === 1) {
649
- //case validate(properties)
650
- propList = arguments[0];
651
- scope = null;
681
+ let res = [];
682
+ let err = null;
683
+ propList.forEach(property => {
684
+ err = this.validateProperty(property, scope);
685
+ if (err) {
686
+ res.push(err);
687
+ }
688
+ });
689
+ return new Promise(function (resolve, reject) {
690
+ if (res.length !== 0) {
691
+ reject(err);
652
692
  } else {
653
- //case validate(scope, properties)
654
- propList = arguments[1];
655
- }
656
- var res = [];
657
- var err = null;
658
- propList.forEach(function (property) {
659
- err = _this2.validateProperty(property, scope);
660
- if (err) {
661
- res.push(err);
662
- }
663
- });
664
- return new Promise(function (resolve, reject) {
665
- if (res.length !== 0) {
666
- reject(err);
667
- } else {
668
- resolve();
669
- }
670
- });
693
+ resolve();
694
+ }
695
+ });
696
+ }
697
+ validateProperty(scope, property) {
698
+ if (property === "username") {
699
+ if (typeof this.username === 'undefined' || this.username === null) {
700
+ return new _ValidationError.default("username", "undefined or null");
701
+ }
702
+ if (!_ValidationUtils.default.validateMaxLength(this.username, 255)) {
703
+ return new _ValidationError.default("username", "does not satisfy required maxLength constraint: 255");
704
+ }
705
+ if (!_ValidationUtils.default.validateMinLength(this.username, 1)) {
706
+ return new _ValidationError.default("username", "does not satisfy required minLength constraint: 1");
707
+ }
708
+ if (!_ValidationUtils.default.validatePattern(this.username, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
709
+ return new _ValidationError.default("username", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
710
+ }
671
711
  }
672
- }, {
673
- key: "validateProperty",
674
- value: function validateProperty(scope, property) {
675
- if (property === "username") {
676
- if (typeof this.username === 'undefined' || this.username === null) {
677
- return new _ValidationError["default"]("username", "undefined or null");
678
- }
679
- if (!_ValidationUtils["default"].validateMaxLength(this.username, 255)) {
680
- return new _ValidationError["default"]("username", "does not satisfy required maxLength constraint: 255");
681
- }
682
- if (!_ValidationUtils["default"].validateMinLength(this.username, 1)) {
683
- return new _ValidationError["default"]("username", "does not satisfy required minLength constraint: 1");
684
- }
685
- if (!_ValidationUtils["default"].validatePattern(this.username, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
686
- return new _ValidationError["default"]("username", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
687
- }
712
+ if (property === "userType") {
713
+ if (typeof this.userType === 'undefined' || this.userType === null) {
714
+ return new _ValidationError.default("userType", "undefined or null");
688
715
  }
689
- if (property === "userType") {
690
- if (typeof this.userType === 'undefined' || this.userType === null) {
691
- return new _ValidationError["default"]("userType", "undefined or null");
692
- }
716
+ }
717
+ if (property === "idpId") {
718
+ if (typeof this.idpId === 'undefined' || this.idpId === null) {
719
+ return new _ValidationError.default("idpId", "undefined or null");
693
720
  }
694
- if (property === "idpId") {
695
- if (typeof this.idpId === 'undefined' || this.idpId === null) {
696
- return new _ValidationError["default"]("idpId", "undefined or null");
697
- }
698
- if (!_ValidationUtils["default"].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}$/)) {
699
- return new _ValidationError["default"]("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}$/");
700
- }
721
+ if (!_ValidationUtils.default.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}$/)) {
722
+ return new _ValidationError.default("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}$/");
701
723
  }
702
- if (property === "displayName") {
703
- if (typeof this.displayName === 'undefined' || this.displayName === null) {
704
- return new _ValidationError["default"]("displayName", "undefined or null");
705
- }
706
- if (!_ValidationUtils["default"].validateMaxLength(this.displayName, 255)) {
707
- return new _ValidationError["default"]("displayName", "does not satisfy required maxLength constraint: 255");
708
- }
709
- if (!_ValidationUtils["default"].validateMinLength(this.displayName, 1)) {
710
- return new _ValidationError["default"]("displayName", "does not satisfy required minLength constraint: 1");
711
- }
712
- if (!_ValidationUtils["default"].validatePattern(this.displayName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
713
- return new _ValidationError["default"]("displayName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
714
- }
724
+ }
725
+ if (property === "displayName") {
726
+ if (typeof this.displayName === 'undefined' || this.displayName === null) {
727
+ return new _ValidationError.default("displayName", "undefined or null");
715
728
  }
716
- if (property === "firstName") {
717
- if (typeof this.firstName === 'undefined' || this.firstName === null) {
718
- return new _ValidationError["default"]("firstName", "undefined or null");
719
- }
720
- if (!_ValidationUtils["default"].validateMaxLength(this.firstName, 255)) {
721
- return new _ValidationError["default"]("firstName", "does not satisfy required maxLength constraint: 255");
722
- }
723
- if (!_ValidationUtils["default"].validateMinLength(this.firstName, 1)) {
724
- return new _ValidationError["default"]("firstName", "does not satisfy required minLength constraint: 1");
725
- }
726
- if (!_ValidationUtils["default"].validatePattern(this.firstName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
727
- return new _ValidationError["default"]("firstName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
728
- }
729
+ if (!_ValidationUtils.default.validateMaxLength(this.displayName, 255)) {
730
+ return new _ValidationError.default("displayName", "does not satisfy required maxLength constraint: 255");
729
731
  }
730
- if (property === "middleInitial") {
731
- if (typeof this.middleInitial === 'undefined' || this.middleInitial === null) {
732
- return new _ValidationError["default"]("middleInitial", "undefined or null");
733
- }
734
- if (!_ValidationUtils["default"].validateMaxLength(this.middleInitial, 255)) {
735
- return new _ValidationError["default"]("middleInitial", "does not satisfy required maxLength constraint: 255");
736
- }
737
- if (!_ValidationUtils["default"].validateMinLength(this.middleInitial, 1)) {
738
- return new _ValidationError["default"]("middleInitial", "does not satisfy required minLength constraint: 1");
739
- }
740
- if (!_ValidationUtils["default"].validatePattern(this.middleInitial, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
741
- return new _ValidationError["default"]("middleInitial", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
742
- }
732
+ if (!_ValidationUtils.default.validateMinLength(this.displayName, 1)) {
733
+ return new _ValidationError.default("displayName", "does not satisfy required minLength constraint: 1");
743
734
  }
744
- if (property === "lastName") {
745
- if (typeof this.lastName === 'undefined' || this.lastName === null) {
746
- return new _ValidationError["default"]("lastName", "undefined or null");
747
- }
748
- if (!_ValidationUtils["default"].validateMaxLength(this.lastName, 255)) {
749
- return new _ValidationError["default"]("lastName", "does not satisfy required maxLength constraint: 255");
750
- }
751
- if (!_ValidationUtils["default"].validateMinLength(this.lastName, 1)) {
752
- return new _ValidationError["default"]("lastName", "does not satisfy required minLength constraint: 1");
753
- }
754
- if (!_ValidationUtils["default"].validatePattern(this.lastName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
755
- return new _ValidationError["default"]("lastName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
756
- }
735
+ if (!_ValidationUtils.default.validatePattern(this.displayName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
736
+ return new _ValidationError.default("displayName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
757
737
  }
758
- if (property === "emailId") {
759
- if (typeof this.emailId === 'undefined' || this.emailId === null) {
760
- return new _ValidationError["default"]("emailId", "undefined or null");
761
- }
762
- if (!_ValidationUtils["default"].validateMaxLength(this.emailId, 255)) {
763
- return new _ValidationError["default"]("emailId", "does not satisfy required maxLength constraint: 255");
764
- }
765
- if (!_ValidationUtils["default"].validatePattern(this.emailId, /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/)) {
766
- return new _ValidationError["default"]("emailId", "does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/");
767
- }
738
+ }
739
+ if (property === "firstName") {
740
+ if (typeof this.firstName === 'undefined' || this.firstName === null) {
741
+ return new _ValidationError.default("firstName", "undefined or null");
768
742
  }
769
- if (property === "locale") {
770
- if (typeof this.locale === 'undefined' || this.locale === null) {
771
- return new _ValidationError["default"]("locale", "undefined or null");
772
- }
743
+ if (!_ValidationUtils.default.validateMaxLength(this.firstName, 255)) {
744
+ return new _ValidationError.default("firstName", "does not satisfy required maxLength constraint: 255");
773
745
  }
774
- if (property === "region") {
775
- if (typeof this.region === 'undefined' || this.region === null) {
776
- return new _ValidationError["default"]("region", "undefined or null");
777
- }
746
+ if (!_ValidationUtils.default.validateMinLength(this.firstName, 1)) {
747
+ return new _ValidationError.default("firstName", "does not satisfy required minLength constraint: 1");
778
748
  }
779
- if (property === "password") {
780
- if (typeof this.password === 'undefined' || this.password === null) {
781
- return new _ValidationError["default"]("password", "undefined or null");
782
- }
749
+ if (!_ValidationUtils.default.validatePattern(this.firstName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
750
+ return new _ValidationError.default("firstName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
783
751
  }
784
- if (property === "isForceResetPasswordEnabled") {
785
- if (typeof this.isForceResetPasswordEnabled === 'undefined' || this.isForceResetPasswordEnabled === null) {
786
- return new _ValidationError["default"]("isForceResetPasswordEnabled", "undefined or null");
787
- }
752
+ }
753
+ if (property === "middleInitial") {
754
+ if (typeof this.middleInitial === 'undefined' || this.middleInitial === null) {
755
+ return new _ValidationError.default("middleInitial", "undefined or null");
788
756
  }
789
- if (property === "additionalAttributes") {
790
- if (typeof this.additionalAttributes === 'undefined' || this.additionalAttributes === null) {
791
- return new _ValidationError["default"]("additionalAttributes", "undefined or null");
792
- }
793
- if (!_ValidationUtils["default"].validateMaxItems(this.additionalAttributes, 10)) {
794
- return new _ValidationError["default"]("additionalAttributes", "does not satisfy required maxItems constraint: 10");
795
- }
757
+ if (!_ValidationUtils.default.validateMaxLength(this.middleInitial, 255)) {
758
+ return new _ValidationError.default("middleInitial", "does not satisfy required maxLength constraint: 255");
796
759
  }
797
- if (property === "status") {
798
- if (typeof this.status === 'undefined' || this.status === null) {
799
- return new _ValidationError["default"]("status", "undefined or null");
800
- }
760
+ if (!_ValidationUtils.default.validateMinLength(this.middleInitial, 1)) {
761
+ return new _ValidationError.default("middleInitial", "does not satisfy required minLength constraint: 1");
801
762
  }
802
- if (property === "bucketsAccessKeys") {
803
- if (typeof this.bucketsAccessKeys === 'undefined' || this.bucketsAccessKeys === null) {
804
- return new _ValidationError["default"]("bucketsAccessKeys", "undefined or null");
805
- }
806
- if (!_ValidationUtils["default"].validateMaxItems(this.bucketsAccessKeys, 5)) {
807
- return new _ValidationError["default"]("bucketsAccessKeys", "does not satisfy required maxItems constraint: 5");
808
- }
763
+ if (!_ValidationUtils.default.validatePattern(this.middleInitial, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
764
+ return new _ValidationError.default("middleInitial", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
809
765
  }
810
- if (property === "lastLoginTime") {
811
- if (typeof this.lastLoginTime === 'undefined' || this.lastLoginTime === null) {
812
- return new _ValidationError["default"]("lastLoginTime", "undefined or null");
813
- }
766
+ }
767
+ if (property === "lastName") {
768
+ if (typeof this.lastName === 'undefined' || this.lastName === null) {
769
+ return new _ValidationError.default("lastName", "undefined or null");
814
770
  }
815
- if (property === "createdTime") {
816
- if (typeof this.createdTime === 'undefined' || this.createdTime === null) {
817
- return new _ValidationError["default"]("createdTime", "undefined or null");
818
- }
771
+ if (!_ValidationUtils.default.validateMaxLength(this.lastName, 255)) {
772
+ return new _ValidationError.default("lastName", "does not satisfy required maxLength constraint: 255");
819
773
  }
820
- if (property === "lastUpdatedTime") {
821
- if (typeof this.lastUpdatedTime === 'undefined' || this.lastUpdatedTime === null) {
822
- return new _ValidationError["default"]("lastUpdatedTime", "undefined or null");
823
- }
774
+ if (!_ValidationUtils.default.validateMinLength(this.lastName, 1)) {
775
+ return new _ValidationError.default("lastName", "does not satisfy required minLength constraint: 1");
824
776
  }
825
- if (property === "createdBy") {
826
- if (typeof this.createdBy === 'undefined' || this.createdBy === null) {
827
- return new _ValidationError["default"]("createdBy", "undefined or null");
828
- }
829
- if (!_ValidationUtils["default"].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}$/)) {
830
- return new _ValidationError["default"]("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}$/");
831
- }
777
+ if (!_ValidationUtils.default.validatePattern(this.lastName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
778
+ return new _ValidationError.default("lastName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
832
779
  }
833
- if (property === "lastUpdatedBy") {
834
- if (typeof this.lastUpdatedBy === 'undefined' || this.lastUpdatedBy === null) {
835
- return new _ValidationError["default"]("lastUpdatedBy", "undefined or null");
836
- }
837
- if (!_ValidationUtils["default"].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}$/)) {
838
- return new _ValidationError["default"]("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}$/");
839
- }
780
+ }
781
+ if (property === "emailId") {
782
+ if (typeof this.emailId === 'undefined' || this.emailId === null) {
783
+ return new _ValidationError.default("emailId", "undefined or null");
840
784
  }
841
- if (property === "description") {
842
- if (typeof this.description === 'undefined' || this.description === null) {
843
- return new _ValidationError["default"]("description", "undefined or null");
844
- }
785
+ if (!_ValidationUtils.default.validateMaxLength(this.emailId, 255)) {
786
+ return new _ValidationError.default("emailId", "does not satisfy required maxLength constraint: 255");
845
787
  }
846
- if (property === "creationType") {
847
- if (typeof this.creationType === 'undefined' || this.creationType === null) {
848
- return new _ValidationError["default"]("creationType", "undefined or null");
849
- }
788
+ if (!_ValidationUtils.default.validatePattern(this.emailId, /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/)) {
789
+ return new _ValidationError.default("emailId", "does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/");
850
790
  }
851
- return new _ValidationError["default"](property, "no such property exists");
852
791
  }
853
- }], [{
854
- key: "constructFromObject",
855
- value: function constructFromObject(data) {
856
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
857
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
858
- var items, item, i, itemArr, discriminator;
859
- if (data) {
860
- obj = obj || new User();
861
- _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
862
- if (data.hasOwnProperty('username') && data.username !== null && data.username !== undefined) {
863
- obj.setUsername(data['username']);
864
- }
865
- if (data.hasOwnProperty('userType') && data.userType !== null && data.userType !== undefined) {
866
- obj.setUserType(_UserType["default"].constructFromObject(data['userType']));
867
- }
868
- if (data.hasOwnProperty('idpId') && data.idpId !== null && data.idpId !== undefined) {
869
- obj.setIdpId(data['idpId']);
870
- }
871
- if (data.hasOwnProperty('displayName') && data.displayName !== null && data.displayName !== undefined) {
872
- obj.setDisplayName(data['displayName']);
873
- }
874
- if (data.hasOwnProperty('firstName') && data.firstName !== null && data.firstName !== undefined) {
875
- obj.setFirstName(data['firstName']);
876
- }
877
- if (data.hasOwnProperty('middleInitial') && data.middleInitial !== null && data.middleInitial !== undefined) {
878
- obj.setMiddleInitial(data['middleInitial']);
879
- }
880
- if (data.hasOwnProperty('lastName') && data.lastName !== null && data.lastName !== undefined) {
881
- obj.setLastName(data['lastName']);
882
- }
883
- if (data.hasOwnProperty('emailId') && data.emailId !== null && data.emailId !== undefined) {
884
- obj.setEmailId(data['emailId']);
885
- }
886
- if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {
887
- obj.setLocale(data['locale']);
888
- }
889
- if (data.hasOwnProperty('region') && data.region !== null && data.region !== undefined) {
890
- obj.setRegion(data['region']);
891
- }
892
- if (data.hasOwnProperty('password') && data.password !== null && data.password !== undefined) {
893
- obj.setPassword(data['password']);
894
- }
895
- if (data.hasOwnProperty('isForceResetPasswordEnabled') && data.isForceResetPasswordEnabled !== null && data.isForceResetPasswordEnabled !== undefined) {
896
- obj.setIsForceResetPasswordEnabled(data['isForceResetPasswordEnabled']);
897
- }
898
- if (data.hasOwnProperty('additionalAttributes') && data.additionalAttributes !== null && data.additionalAttributes !== undefined) {
899
- itemArr = [];
900
- items = data.additionalAttributes;
901
- for (i = 0; i < items.length; i++) {
902
- item = _KVPair["default"].constructFromObject(items[i], undefined);
903
- itemArr.push(item);
904
- }
905
- obj.setAdditionalAttributes(itemArr);
906
- }
907
- if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {
908
- obj.setStatus(_UserStatusType["default"].constructFromObject(data['status']));
909
- }
910
- if (data.hasOwnProperty('bucketsAccessKeys') && data.bucketsAccessKeys !== null && data.bucketsAccessKeys !== undefined) {
911
- itemArr = [];
912
- items = data.bucketsAccessKeys;
913
- for (i = 0; i < items.length; i++) {
914
- item = _BucketsAccessKey["default"].constructFromObject(items[i], undefined);
915
- itemArr.push(item);
916
- }
917
- obj.setBucketsAccessKeys(itemArr);
918
- }
919
- if (data.hasOwnProperty('lastLoginTime') && data.lastLoginTime !== null && data.lastLoginTime !== undefined) {
920
- obj.setLastLoginTime(data['lastLoginTime']);
921
- }
922
- if (data.hasOwnProperty('createdTime') && data.createdTime !== null && data.createdTime !== undefined) {
923
- obj.setCreatedTime(data['createdTime']);
924
- }
925
- if (data.hasOwnProperty('lastUpdatedTime') && data.lastUpdatedTime !== null && data.lastUpdatedTime !== undefined) {
926
- obj.setLastUpdatedTime(data['lastUpdatedTime']);
927
- }
928
- if (data.hasOwnProperty('createdBy') && data.createdBy !== null && data.createdBy !== undefined) {
929
- obj.setCreatedBy(data['createdBy']);
930
- }
931
- if (data.hasOwnProperty('lastUpdatedBy') && data.lastUpdatedBy !== null && data.lastUpdatedBy !== undefined) {
932
- obj.setLastUpdatedBy(data['lastUpdatedBy']);
933
- }
934
- if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
935
- obj.setDescription(data['description']);
936
- }
937
- if (data.hasOwnProperty('creationType') && data.creationType !== null && data.creationType !== undefined) {
938
- obj.setCreationType(_CreationType["default"].constructFromObject(data['creationType']));
939
- }
940
- if (!callFromChild) {
941
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
942
- for (var property in data) {
943
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
944
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
945
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
946
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
947
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
948
- obj.$unknownFields[property] = data[property];
949
- }
950
- }
951
- }
792
+ if (property === "locale") {
793
+ if (typeof this.locale === 'undefined' || this.locale === null) {
794
+ return new _ValidationError.default("locale", "undefined or null");
952
795
  }
953
- return obj;
954
796
  }
955
-
956
- /**
957
- * Converts a given snake_case string to camelCase.
958
- * @param {string} snakeStr - The input string in snake_case format.
959
- * @returns {string} - The converted string in camelCase format.
960
- */
961
- }, {
962
- key: "snakeToCamel",
963
- value: function snakeToCamel(snakeStr) {
964
- return snakeStr.replace(/(_\w)/g, function (match) {
965
- return match[1].toUpperCase();
966
- });
797
+ if (property === "region") {
798
+ if (typeof this.region === 'undefined' || this.region === null) {
799
+ return new _ValidationError.default("region", "undefined or null");
800
+ }
801
+ }
802
+ if (property === "password") {
803
+ if (typeof this.password === 'undefined' || this.password === null) {
804
+ return new _ValidationError.default("password", "undefined or null");
805
+ }
806
+ }
807
+ if (property === "isForceResetPasswordEnabled") {
808
+ if (typeof this.isForceResetPasswordEnabled === 'undefined' || this.isForceResetPasswordEnabled === null) {
809
+ return new _ValidationError.default("isForceResetPasswordEnabled", "undefined or null");
810
+ }
811
+ }
812
+ if (property === "additionalAttributes") {
813
+ if (typeof this.additionalAttributes === 'undefined' || this.additionalAttributes === null) {
814
+ return new _ValidationError.default("additionalAttributes", "undefined or null");
815
+ }
816
+ if (!_ValidationUtils.default.validateMaxItems(this.additionalAttributes, 10)) {
817
+ return new _ValidationError.default("additionalAttributes", "does not satisfy required maxItems constraint: 10");
818
+ }
819
+ }
820
+ if (property === "status") {
821
+ if (typeof this.status === 'undefined' || this.status === null) {
822
+ return new _ValidationError.default("status", "undefined or null");
823
+ }
824
+ }
825
+ if (property === "bucketsAccessKeys") {
826
+ if (typeof this.bucketsAccessKeys === 'undefined' || this.bucketsAccessKeys === null) {
827
+ return new _ValidationError.default("bucketsAccessKeys", "undefined or null");
828
+ }
829
+ if (!_ValidationUtils.default.validateMaxItems(this.bucketsAccessKeys, 5)) {
830
+ return new _ValidationError.default("bucketsAccessKeys", "does not satisfy required maxItems constraint: 5");
831
+ }
967
832
  }
968
- }]);
969
- }(_ExternalizableAbstractModel["default"]);
833
+ if (property === "lastLoginTime") {
834
+ if (typeof this.lastLoginTime === 'undefined' || this.lastLoginTime === null) {
835
+ return new _ValidationError.default("lastLoginTime", "undefined or null");
836
+ }
837
+ }
838
+ if (property === "createdTime") {
839
+ if (typeof this.createdTime === 'undefined' || this.createdTime === null) {
840
+ return new _ValidationError.default("createdTime", "undefined or null");
841
+ }
842
+ }
843
+ if (property === "lastUpdatedTime") {
844
+ if (typeof this.lastUpdatedTime === 'undefined' || this.lastUpdatedTime === null) {
845
+ return new _ValidationError.default("lastUpdatedTime", "undefined or null");
846
+ }
847
+ }
848
+ if (property === "createdBy") {
849
+ if (typeof this.createdBy === 'undefined' || this.createdBy === null) {
850
+ return new _ValidationError.default("createdBy", "undefined or null");
851
+ }
852
+ if (!_ValidationUtils.default.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}$/)) {
853
+ return new _ValidationError.default("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}$/");
854
+ }
855
+ }
856
+ if (property === "lastUpdatedBy") {
857
+ if (typeof this.lastUpdatedBy === 'undefined' || this.lastUpdatedBy === null) {
858
+ return new _ValidationError.default("lastUpdatedBy", "undefined or null");
859
+ }
860
+ if (!_ValidationUtils.default.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}$/)) {
861
+ return new _ValidationError.default("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}$/");
862
+ }
863
+ }
864
+ if (property === "description") {
865
+ if (typeof this.description === 'undefined' || this.description === null) {
866
+ return new _ValidationError.default("description", "undefined or null");
867
+ }
868
+ }
869
+ if (property === "creationType") {
870
+ if (typeof this.creationType === 'undefined' || this.creationType === null) {
871
+ return new _ValidationError.default("creationType", "undefined or null");
872
+ }
873
+ }
874
+ return new _ValidationError.default(property, "no such property exists");
875
+ }
876
+ }
877
+
970
878
  /**
971
879
  * Identifier of the user.
972
880
  * @memberof User
973
881
  */
882
+ exports.default = User;
974
883
  function _toJsonMapType(obj, forMutation) {
975
884
  if (obj instanceof Map) {
976
- return Object.fromEntries(Array.from(obj, function (_ref) {
977
- var _ref2 = _slicedToArray(_ref, 2),
978
- k = _ref2[0],
979
- v = _ref2[1];
980
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
981
- }));
982
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
983
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
885
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
886
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
887
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
984
888
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
985
889
  }));
986
890
  }
@@ -1127,14 +1031,14 @@ User.prototype.creationType = undefined;
1127
1031
  * A globally unique identifier of an instance that is suitable for external consumption.
1128
1032
  * @memberof User
1129
1033
  */
1130
- _ExternalizableAbstractModel["default"].prototype.extId = undefined;
1034
+ _ExternalizableAbstractModel.default.prototype.extId = undefined;
1131
1035
  /**
1132
1036
  * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
1133
1037
  * @memberof User
1134
1038
  */
1135
- _ExternalizableAbstractModel["default"].prototype.links = undefined;
1039
+ _ExternalizableAbstractModel.default.prototype.links = undefined;
1136
1040
  /**
1137
1041
  * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
1138
1042
  * @memberof User
1139
1043
  */
1140
- _TenantAwareModel["default"].prototype.tenantId = undefined;
1044
+ _TenantAwareModel.default.prototype.tenantId = undefined;