@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,36 +3,21 @@
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 _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
8
8
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
9
9
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
- 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); }
12
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
13
- 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."); }
14
- 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; } }
15
- 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; }
16
- 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; } }
17
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
18
- 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; }
19
- 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; }
20
- 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; }
21
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
22
- 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); } }
23
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
24
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
25
- 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); }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
26
11
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
27
12
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
28
13
  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"); } /*
29
14
  * Nutanix Security APIs
30
15
  *
31
- * OpenAPI spec version: 4.0.1
16
+ * OpenAPI spec version: 4.1.2
32
17
  *
33
18
  * NOTE: This class is auto generated by the Open API Dev Platform.
34
19
  *
35
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
20
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
36
21
  *
37
22
  * Do not edit the class manually.
38
23
  *
@@ -40,7 +25,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
40
25
  /**
41
26
  * The AzureAccessInformation model module.
42
27
  * @module Ntnx/AzureAccessInformation
43
- * @version 4.0.1
28
+ * @version 4.1.2
44
29
  * @class AzureAccessInformation
45
30
  *
46
31
  * @param { string } endpointUrl Endpoint URL for the Azure Key Vault.
@@ -56,7 +41,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
56
41
  * @param { Date } credentialExpiryDate When the client secret is going to expire.
57
42
  */
58
43
  var _AzureAccessInformation_brand = /*#__PURE__*/new WeakSet();
59
- var AzureAccessInformation = exports["default"] = /*#__PURE__*/function () {
44
+ class AzureAccessInformation {
60
45
  /**
61
46
  * Constructs a new <code>AzureAccessInformation</code>.
62
47
  * Access information for the Azure Key Vault.
@@ -74,8 +59,7 @@ var AzureAccessInformation = exports["default"] = /*#__PURE__*/function () {
74
59
  *
75
60
  * @param { Date } credentialExpiryDate When the client secret is going to expire.
76
61
  */
77
- function AzureAccessInformation(endpointUrl, keyId, tenantId, clientId, clientSecret, credentialExpiryDate) {
78
- _classCallCheck(this, AzureAccessInformation);
62
+ constructor(endpointUrl, keyId, tenantId, clientId, clientSecret, credentialExpiryDate) {
79
63
  /*
80
64
  * toJson method for a map type which supports map with primitive keys and values of object types
81
65
  * @param {Object} obj
@@ -92,7 +76,7 @@ var AzureAccessInformation = exports["default"] = /*#__PURE__*/function () {
92
76
  this.$objectType = "security.v4.config.AzureAccessInformation";
93
77
  /** @type {object<string, any>} */
94
78
  this.$reserved = {
95
- '$fv': "v4.r0"
79
+ '$fv': "v4.r1"
96
80
  };
97
81
  /** @type {object<string, any>} */
98
82
  this.$unknownFields = {};
@@ -106,393 +90,357 @@ var AzureAccessInformation = exports["default"] = /*#__PURE__*/function () {
106
90
  * @param callFromChild {Boolean} Flag to recognise calling instance
107
91
  * @return {module:Ntnx/AzureAccessInformation} The populated <code>AzureAccessInformation</code> instance.
108
92
  */
109
- return _createClass(AzureAccessInformation, [{
110
- key: "getEndpointUrl",
111
- value:
112
- /**
113
- * Returns Endpoint URL for the Azure Key Vault.
114
- * @return {string}
115
- */
116
- function getEndpointUrl() {
117
- return this.endpointUrl;
93
+ static constructFromObject(data, obj = null, callFromChild = false) {
94
+ let items, item, i, itemArr, discriminator;
95
+ if (data) {
96
+ obj = obj || new AzureAccessInformation();
97
+ if (data.hasOwnProperty('endpointUrl') && data.endpointUrl !== null && data.endpointUrl !== undefined) {
98
+ obj.setEndpointUrl(data['endpointUrl']);
99
+ }
100
+ if (data.hasOwnProperty('keyId') && data.keyId !== null && data.keyId !== undefined) {
101
+ obj.setKeyId(data['keyId']);
102
+ }
103
+ if (data.hasOwnProperty('tenantId') && data.tenantId !== null && data.tenantId !== undefined) {
104
+ obj.setTenantId(data['tenantId']);
105
+ }
106
+ if (data.hasOwnProperty('clientId') && data.clientId !== null && data.clientId !== undefined) {
107
+ obj.setClientId(data['clientId']);
108
+ }
109
+ if (data.hasOwnProperty('clientSecret') && data.clientSecret !== null && data.clientSecret !== undefined) {
110
+ obj.setClientSecret(data['clientSecret']);
111
+ }
112
+ if (data.hasOwnProperty('truncatedClientSecret') && data.truncatedClientSecret !== null && data.truncatedClientSecret !== undefined) {
113
+ obj.setTruncatedClientSecret(data['truncatedClientSecret']);
114
+ }
115
+ if (data.hasOwnProperty('credentialExpiryDate') && data.credentialExpiryDate !== null && data.credentialExpiryDate !== undefined) {
116
+ obj.setCredentialExpiryDate(data['credentialExpiryDate']);
117
+ }
118
+ if (data.hasOwnProperty('$reserved')) {
119
+ obj.$reserved = data['$reserved'];
120
+ }
121
+ if (data.hasOwnProperty('$objectType')) {
122
+ obj.$objectType = data['$objectType'];
123
+ }
124
+ if (data.hasOwnProperty('$unknownFields')) {
125
+ obj.$unknownFields = data['$unknownFields'];
126
+ }
127
+ if (!callFromChild) {
128
+ obj.$unknownFields = {
129
+ ...data.$unknownFields
130
+ };
131
+ for (const property in data) {
132
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
133
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
134
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
135
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
136
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
137
+ obj.$unknownFields[property] = data[property];
138
+ }
139
+ }
140
+ }
118
141
  }
142
+ return obj;
143
+ }
119
144
 
120
- /**
121
- * Sets Endpoint URL for the Azure Key Vault.
122
- * @param {string} endpointUrl Endpoint URL for the Azure Key Vault.
123
- */
124
- }, {
125
- key: "setEndpointUrl",
126
- value: function setEndpointUrl(endpointUrl) {
127
- this.endpointUrl = endpointUrl;
128
- }
145
+ /**
146
+ * Converts a given snake_case string to camelCase.
147
+ * @param {string} snakeStr - The input string in snake_case format.
148
+ * @returns {string} - The converted string in camelCase format.
149
+ */
150
+ static snakeToCamel(snakeStr) {
151
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
152
+ }
129
153
 
130
- /**
131
- * Returns Master key identifier for the Azure Key Vault.
132
- * @return {string}
133
- */
134
- }, {
135
- key: "getKeyId",
136
- value: function getKeyId() {
137
- return this.keyId;
138
- }
154
+ /**
155
+ * Returns Endpoint URL for the Azure Key Vault.
156
+ * @return {string}
157
+ */
158
+ getEndpointUrl() {
159
+ return this.endpointUrl;
160
+ }
139
161
 
140
- /**
141
- * Sets Master key identifier for the Azure Key Vault.
142
- * @param {string} keyId Master key identifier for the Azure Key Vault.
143
- */
144
- }, {
145
- key: "setKeyId",
146
- value: function setKeyId(keyId) {
147
- this.keyId = keyId;
148
- }
162
+ /**
163
+ * Sets Endpoint URL for the Azure Key Vault.
164
+ * @param {string} endpointUrl Endpoint URL for the Azure Key Vault.
165
+ */
166
+ setEndpointUrl(endpointUrl) {
167
+ this.endpointUrl = endpointUrl;
168
+ }
149
169
 
150
- /**
151
- * Returns Tetant identifier for the Azure Key Vault.
152
- * @return {string}
153
- */
154
- }, {
155
- key: "getTenantId",
156
- value: function getTenantId() {
157
- return this.tenantId;
158
- }
170
+ /**
171
+ * Returns Master key identifier for the Azure Key Vault.
172
+ * @return {string}
173
+ */
174
+ getKeyId() {
175
+ return this.keyId;
176
+ }
159
177
 
160
- /**
161
- * Sets Tetant identifier for the Azure Key Vault.
162
- * @param {string} tenantId Tetant identifier for the Azure Key Vault.
163
- */
164
- }, {
165
- key: "setTenantId",
166
- value: function setTenantId(tenantId) {
167
- this.tenantId = tenantId;
168
- }
178
+ /**
179
+ * Sets Master key identifier for the Azure Key Vault.
180
+ * @param {string} keyId Master key identifier for the Azure Key Vault.
181
+ */
182
+ setKeyId(keyId) {
183
+ this.keyId = keyId;
184
+ }
169
185
 
170
- /**
171
- * Returns Client identifier for the Azure Key Vault.
172
- * @return {string}
173
- */
174
- }, {
175
- key: "getClientId",
176
- value: function getClientId() {
177
- return this.clientId;
178
- }
186
+ /**
187
+ * Returns Tetant identifier for the Azure Key Vault.
188
+ * @return {string}
189
+ */
190
+ getTenantId() {
191
+ return this.tenantId;
192
+ }
179
193
 
180
- /**
181
- * Sets Client identifier for the Azure Key Vault.
182
- * @param {string} clientId Client identifier for the Azure Key Vault.
183
- */
184
- }, {
185
- key: "setClientId",
186
- value: function setClientId(clientId) {
187
- this.clientId = clientId;
188
- }
194
+ /**
195
+ * Sets Tetant identifier for the Azure Key Vault.
196
+ * @param {string} tenantId Tetant identifier for the Azure Key Vault.
197
+ */
198
+ setTenantId(tenantId) {
199
+ this.tenantId = tenantId;
200
+ }
189
201
 
190
- /**
191
- * Returns Client secret for the Azure Key Vault.
192
- * @return {String}
193
- */
194
- }, {
195
- key: "getClientSecret",
196
- value: function getClientSecret() {
197
- return this.clientSecret;
198
- }
202
+ /**
203
+ * Returns Client identifier for the Azure Key Vault.
204
+ * @return {string}
205
+ */
206
+ getClientId() {
207
+ return this.clientId;
208
+ }
199
209
 
200
- /**
201
- * Sets Client secret for the Azure Key Vault.
202
- * @param {String} clientSecret Client secret for the Azure Key Vault.
203
- */
204
- }, {
205
- key: "setClientSecret",
206
- value: function setClientSecret(clientSecret) {
207
- this.clientSecret = clientSecret;
208
- }
210
+ /**
211
+ * Sets Client identifier for the Azure Key Vault.
212
+ * @param {string} clientId Client identifier for the Azure Key Vault.
213
+ */
214
+ setClientId(clientId) {
215
+ this.clientId = clientId;
216
+ }
209
217
 
210
- /**
211
- * Returns Truncated client secret for the Azure Key Vault.
212
- * @return {string}
213
- */
214
- }, {
215
- key: "getTruncatedClientSecret",
216
- value: function getTruncatedClientSecret() {
217
- return this.truncatedClientSecret;
218
- }
218
+ /**
219
+ * Returns Client secret for the Azure Key Vault.
220
+ * @return {String}
221
+ */
222
+ getClientSecret() {
223
+ return this.clientSecret;
224
+ }
219
225
 
220
- /**
221
- * Sets Truncated client secret for the Azure Key Vault.
222
- * @param {string} truncatedClientSecret Truncated client secret for the Azure Key Vault.
223
- */
224
- }, {
225
- key: "setTruncatedClientSecret",
226
- value: function setTruncatedClientSecret(truncatedClientSecret) {
227
- this.truncatedClientSecret = truncatedClientSecret;
228
- }
226
+ /**
227
+ * Sets Client secret for the Azure Key Vault.
228
+ * @param {String} clientSecret Client secret for the Azure Key Vault.
229
+ */
230
+ setClientSecret(clientSecret) {
231
+ this.clientSecret = clientSecret;
232
+ }
229
233
 
230
- /**
231
- * Returns When the client secret is going to expire.
232
- * @return {Date}
233
- */
234
- }, {
235
- key: "getCredentialExpiryDate",
236
- value: function getCredentialExpiryDate() {
237
- return this.credentialExpiryDate;
238
- }
234
+ /**
235
+ * Returns Truncated client secret for the Azure Key Vault.
236
+ * @return {string}
237
+ */
238
+ getTruncatedClientSecret() {
239
+ return this.truncatedClientSecret;
240
+ }
239
241
 
240
- /**
241
- * Sets When the client secret is going to expire.
242
- * @param {Date} credentialExpiryDate When the client secret is going to expire.
243
- */
244
- }, {
245
- key: "setCredentialExpiryDate",
246
- value: function setCredentialExpiryDate(credentialExpiryDate) {
247
- this.credentialExpiryDate = credentialExpiryDate;
248
- }
249
- }, {
250
- key: "get$Reserved",
251
- value: function get$Reserved() {
252
- return this.$reserved;
253
- }
254
- }, {
255
- key: "get$ObjectType",
256
- value: function get$ObjectType() {
257
- return this.$objectType;
258
- }
259
- }, {
260
- key: "get$UnknownFields",
261
- value: function get$UnknownFields() {
262
- return this.$unknownFields;
263
- }
264
- }, {
265
- key: "toJson",
266
- value: function toJson(forMutation) {
267
- if (forMutation === false) {
268
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getEndpointUrl() !== 'undefined' && this.getEndpointUrl() !== null ? {
242
+ /**
243
+ * Sets Truncated client secret for the Azure Key Vault.
244
+ * @param {string} truncatedClientSecret Truncated client secret for the Azure Key Vault.
245
+ */
246
+ setTruncatedClientSecret(truncatedClientSecret) {
247
+ this.truncatedClientSecret = truncatedClientSecret;
248
+ }
249
+
250
+ /**
251
+ * Returns When the client secret is going to expire.
252
+ * @return {Date}
253
+ */
254
+ getCredentialExpiryDate() {
255
+ return this.credentialExpiryDate;
256
+ }
257
+
258
+ /**
259
+ * Sets When the client secret is going to expire.
260
+ * @param {Date} credentialExpiryDate When the client secret is going to expire.
261
+ */
262
+ setCredentialExpiryDate(credentialExpiryDate) {
263
+ this.credentialExpiryDate = credentialExpiryDate;
264
+ }
265
+ get$Reserved() {
266
+ return this.$reserved;
267
+ }
268
+ get$ObjectType() {
269
+ return this.$objectType;
270
+ }
271
+ get$UnknownFields() {
272
+ return this.$unknownFields;
273
+ }
274
+ toJson(forMutation) {
275
+ if (forMutation === false) {
276
+ return {
277
+ ...(typeof this.getEndpointUrl() !== 'undefined' && this.getEndpointUrl() !== null ? {
269
278
  'endpointUrl': this.getEndpointUrl()
270
- } : {}), typeof this.getKeyId() !== 'undefined' && this.getKeyId() !== null ? {
279
+ } : {}),
280
+ ...(typeof this.getKeyId() !== 'undefined' && this.getKeyId() !== null ? {
271
281
  'keyId': this.getKeyId()
272
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
282
+ } : {}),
283
+ ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
273
284
  'tenantId': this.getTenantId()
274
- } : {}), typeof this.getClientId() !== 'undefined' && this.getClientId() !== null ? {
285
+ } : {}),
286
+ ...(typeof this.getClientId() !== 'undefined' && this.getClientId() !== null ? {
275
287
  'clientId': this.getClientId()
276
- } : {}), typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
288
+ } : {}),
289
+ ...(typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
277
290
  'clientSecret': this.getClientSecret()
278
- } : {}), typeof this.getTruncatedClientSecret() !== 'undefined' && this.getTruncatedClientSecret() !== null ? {
291
+ } : {}),
292
+ ...(typeof this.getTruncatedClientSecret() !== 'undefined' && this.getTruncatedClientSecret() !== null ? {
279
293
  'truncatedClientSecret': this.getTruncatedClientSecret()
280
- } : {}), typeof this.getCredentialExpiryDate() !== 'undefined' && this.getCredentialExpiryDate() !== null ? {
294
+ } : {}),
295
+ ...(typeof this.getCredentialExpiryDate() !== 'undefined' && this.getCredentialExpiryDate() !== null ? {
281
296
  'credentialExpiryDate': _assertClassBrand(_AzureAccessInformation_brand, this, _handleDateType).call(this, this.getCredentialExpiryDate(), true)
282
- } : {}), {}, {
283
- '$reserved': this.get$Reserved(),
284
- '$objectType': this.get$ObjectType(),
285
- '$unknownFields': this.get$UnknownFields()
286
- });
287
- }
288
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getEndpointUrl() !== 'undefined' && this.getEndpointUrl() !== null ? {
297
+ } : {}),
298
+ '$reserved': this.get$Reserved(),
299
+ '$objectType': this.get$ObjectType(),
300
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
301
+ '$unknownFields': {}
302
+ };
303
+ }
304
+ return {
305
+ ...(typeof this.getEndpointUrl() !== 'undefined' && this.getEndpointUrl() !== null ? {
289
306
  'endpointUrl': this.getEndpointUrl()
290
- } : {}), typeof this.getKeyId() !== 'undefined' && this.getKeyId() !== null ? {
307
+ } : {}),
308
+ ...(typeof this.getKeyId() !== 'undefined' && this.getKeyId() !== null ? {
291
309
  'keyId': this.getKeyId()
292
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
310
+ } : {}),
311
+ ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
293
312
  'tenantId': this.getTenantId()
294
- } : {}), typeof this.getClientId() !== 'undefined' && this.getClientId() !== null ? {
313
+ } : {}),
314
+ ...(typeof this.getClientId() !== 'undefined' && this.getClientId() !== null ? {
295
315
  'clientId': this.getClientId()
296
- } : {}), typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
316
+ } : {}),
317
+ ...(typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
297
318
  'clientSecret': this.getClientSecret()
298
- } : {}), typeof this.getCredentialExpiryDate() !== 'undefined' && this.getCredentialExpiryDate() !== null ? {
319
+ } : {}),
320
+ ...(typeof this.getCredentialExpiryDate() !== 'undefined' && this.getCredentialExpiryDate() !== null ? {
299
321
  'credentialExpiryDate': _assertClassBrand(_AzureAccessInformation_brand, this, _handleDateType).call(this, this.getCredentialExpiryDate(), true)
300
- } : {}), {}, {
301
- '$reserved': this.get$Reserved(),
302
- '$objectType': this.get$ObjectType(),
303
- '$unknownFields': this.get$UnknownFields()
304
- });
322
+ } : {}),
323
+ '$reserved': this.get$Reserved(),
324
+ '$objectType': this.get$ObjectType(),
325
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
326
+ '$unknownFields': {}
327
+ };
328
+ }
329
+ validate(scope, properties) {
330
+ let propList = [];
331
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
332
+ //cases validate() and validate(scope)
333
+ propList = ["endpointUrl", "keyId", "tenantId", "clientId", "clientSecret", "credentialExpiryDate"];
334
+ } else if (arguments.length === 1) {
335
+ //case validate(properties)
336
+ propList = arguments[0];
337
+ scope = null;
338
+ } else {
339
+ //case validate(scope, properties)
340
+ propList = arguments[1];
305
341
  }
306
- }, {
307
- key: "validate",
308
- value: function validate(scope, properties) {
309
- var _this = this;
310
- var propList = [];
311
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
312
- //cases validate() and validate(scope)
313
- propList = ["endpointUrl", "keyId", "tenantId", "clientId", "clientSecret", "credentialExpiryDate"];
314
- } else if (arguments.length === 1) {
315
- //case validate(properties)
316
- propList = arguments[0];
317
- scope = null;
342
+ let res = [];
343
+ let err = null;
344
+ propList.forEach(property => {
345
+ err = this.validateProperty(property, scope);
346
+ if (err) {
347
+ res.push(err);
348
+ }
349
+ });
350
+ return new Promise(function (resolve, reject) {
351
+ if (res.length !== 0) {
352
+ reject(err);
318
353
  } else {
319
- //case validate(scope, properties)
320
- propList = arguments[1];
354
+ resolve();
355
+ }
356
+ });
357
+ }
358
+ validateProperty(scope, property) {
359
+ if (property === "endpointUrl") {
360
+ if (typeof this.endpointUrl === 'undefined' || this.endpointUrl === null) {
361
+ return new _ValidationError.default("endpointUrl", "undefined or null");
362
+ }
363
+ if (!_ValidationUtils.default.validateMaxLength(this.endpointUrl, 1024)) {
364
+ return new _ValidationError.default("endpointUrl", "does not satisfy required maxLength constraint: 1024");
365
+ }
366
+ if (!_ValidationUtils.default.validatePattern(this.endpointUrl, /^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/)) {
367
+ return new _ValidationError.default("endpointUrl", "does not satisfy required pattern: /^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/");
321
368
  }
322
- var res = [];
323
- var err = null;
324
- propList.forEach(function (property) {
325
- err = _this.validateProperty(property, scope);
326
- if (err) {
327
- res.push(err);
328
- }
329
- });
330
- return new Promise(function (resolve, reject) {
331
- if (res.length !== 0) {
332
- reject(err);
333
- } else {
334
- resolve();
335
- }
336
- });
337
369
  }
338
- }, {
339
- key: "validateProperty",
340
- value: function validateProperty(scope, property) {
341
- if (property === "endpointUrl") {
342
- if (typeof this.endpointUrl === 'undefined' || this.endpointUrl === null) {
343
- return new _ValidationError["default"]("endpointUrl", "undefined or null");
344
- }
345
- if (!_ValidationUtils["default"].validateMaxLength(this.endpointUrl, 1024)) {
346
- return new _ValidationError["default"]("endpointUrl", "does not satisfy required maxLength constraint: 1024");
347
- }
348
- if (!_ValidationUtils["default"].validatePattern(this.endpointUrl, /^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/)) {
349
- return new _ValidationError["default"]("endpointUrl", "does not satisfy required pattern: /^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/");
350
- }
370
+ if (property === "keyId") {
371
+ if (typeof this.keyId === 'undefined' || this.keyId === null) {
372
+ return new _ValidationError.default("keyId", "undefined or null");
351
373
  }
352
- if (property === "keyId") {
353
- if (typeof this.keyId === 'undefined' || this.keyId === null) {
354
- return new _ValidationError["default"]("keyId", "undefined or null");
355
- }
356
- if (!_ValidationUtils["default"].validateMaxLength(this.keyId, 256)) {
357
- return new _ValidationError["default"]("keyId", "does not satisfy required maxLength constraint: 256");
358
- }
374
+ if (!_ValidationUtils.default.validateMaxLength(this.keyId, 256)) {
375
+ return new _ValidationError.default("keyId", "does not satisfy required maxLength constraint: 256");
359
376
  }
360
- if (property === "tenantId") {
361
- if (typeof this.tenantId === 'undefined' || this.tenantId === null) {
362
- return new _ValidationError["default"]("tenantId", "undefined or null");
363
- }
364
- if (!_ValidationUtils["default"].validateMaxLength(this.tenantId, 256)) {
365
- return new _ValidationError["default"]("tenantId", "does not satisfy required maxLength constraint: 256");
366
- }
377
+ }
378
+ if (property === "tenantId") {
379
+ if (typeof this.tenantId === 'undefined' || this.tenantId === null) {
380
+ return new _ValidationError.default("tenantId", "undefined or null");
367
381
  }
368
- if (property === "clientId") {
369
- if (typeof this.clientId === 'undefined' || this.clientId === null) {
370
- return new _ValidationError["default"]("clientId", "undefined or null");
371
- }
372
- if (!_ValidationUtils["default"].validateMaxLength(this.clientId, 256)) {
373
- return new _ValidationError["default"]("clientId", "does not satisfy required maxLength constraint: 256");
374
- }
382
+ if (!_ValidationUtils.default.validateMaxLength(this.tenantId, 256)) {
383
+ return new _ValidationError.default("tenantId", "does not satisfy required maxLength constraint: 256");
375
384
  }
376
- if (property === "clientSecret") {
377
- if (typeof this.clientSecret === 'undefined' || this.clientSecret === null) {
378
- return new _ValidationError["default"]("clientSecret", "undefined or null");
379
- }
385
+ }
386
+ if (property === "clientId") {
387
+ if (typeof this.clientId === 'undefined' || this.clientId === null) {
388
+ return new _ValidationError.default("clientId", "undefined or null");
380
389
  }
381
- if (property === "truncatedClientSecret") {
382
- if (typeof this.truncatedClientSecret === 'undefined' || this.truncatedClientSecret === null) {
383
- return new _ValidationError["default"]("truncatedClientSecret", "undefined or null");
384
- }
385
- if (!_ValidationUtils["default"].validateMaxLength(this.truncatedClientSecret, 256)) {
386
- return new _ValidationError["default"]("truncatedClientSecret", "does not satisfy required maxLength constraint: 256");
387
- }
388
- if (!_ValidationUtils["default"].validateMinLength(this.truncatedClientSecret, 8)) {
389
- return new _ValidationError["default"]("truncatedClientSecret", "does not satisfy required minLength constraint: 8");
390
- }
390
+ if (!_ValidationUtils.default.validateMaxLength(this.clientId, 256)) {
391
+ return new _ValidationError.default("clientId", "does not satisfy required maxLength constraint: 256");
391
392
  }
392
- if (property === "credentialExpiryDate") {
393
- if (typeof this.credentialExpiryDate === 'undefined' || this.credentialExpiryDate === null) {
394
- return new _ValidationError["default"]("credentialExpiryDate", "undefined or null");
395
- }
393
+ }
394
+ if (property === "clientSecret") {
395
+ if (typeof this.clientSecret === 'undefined' || this.clientSecret === null) {
396
+ return new _ValidationError.default("clientSecret", "undefined or null");
396
397
  }
397
- if (property === "$reserved") {
398
- if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
399
- return new _ValidationError["default"]("$reserved", "undefined or null");
400
- }
398
+ }
399
+ if (property === "truncatedClientSecret") {
400
+ if (typeof this.truncatedClientSecret === 'undefined' || this.truncatedClientSecret === null) {
401
+ return new _ValidationError.default("truncatedClientSecret", "undefined or null");
401
402
  }
402
- if (property === "$objectType") {
403
- if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
404
- return new _ValidationError["default"]("$objectType", "undefined or null");
405
- }
403
+ if (!_ValidationUtils.default.validateMaxLength(this.truncatedClientSecret, 256)) {
404
+ return new _ValidationError.default("truncatedClientSecret", "does not satisfy required maxLength constraint: 256");
406
405
  }
407
- if (property === "$unknownFields") {
408
- if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
409
- return new _ValidationError["default"]("$unknownFields", "undefined or null");
410
- }
406
+ if (!_ValidationUtils.default.validateMinLength(this.truncatedClientSecret, 8)) {
407
+ return new _ValidationError.default("truncatedClientSecret", "does not satisfy required minLength constraint: 8");
411
408
  }
412
- return new _ValidationError["default"](property, "no such property exists");
413
409
  }
414
- }], [{
415
- key: "constructFromObject",
416
- value: function constructFromObject(data) {
417
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
418
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
419
- var items, item, i, itemArr, discriminator;
420
- if (data) {
421
- obj = obj || new AzureAccessInformation();
422
- if (data.hasOwnProperty('endpointUrl') && data.endpointUrl !== null && data.endpointUrl !== undefined) {
423
- obj.setEndpointUrl(data['endpointUrl']);
424
- }
425
- if (data.hasOwnProperty('keyId') && data.keyId !== null && data.keyId !== undefined) {
426
- obj.setKeyId(data['keyId']);
427
- }
428
- if (data.hasOwnProperty('tenantId') && data.tenantId !== null && data.tenantId !== undefined) {
429
- obj.setTenantId(data['tenantId']);
430
- }
431
- if (data.hasOwnProperty('clientId') && data.clientId !== null && data.clientId !== undefined) {
432
- obj.setClientId(data['clientId']);
433
- }
434
- if (data.hasOwnProperty('clientSecret') && data.clientSecret !== null && data.clientSecret !== undefined) {
435
- obj.setClientSecret(data['clientSecret']);
436
- }
437
- if (data.hasOwnProperty('truncatedClientSecret') && data.truncatedClientSecret !== null && data.truncatedClientSecret !== undefined) {
438
- obj.setTruncatedClientSecret(data['truncatedClientSecret']);
439
- }
440
- if (data.hasOwnProperty('credentialExpiryDate') && data.credentialExpiryDate !== null && data.credentialExpiryDate !== undefined) {
441
- obj.setCredentialExpiryDate(data['credentialExpiryDate']);
442
- }
443
- if (data.hasOwnProperty('$reserved')) {
444
- obj.$reserved = data['$reserved'];
445
- }
446
- if (data.hasOwnProperty('$objectType')) {
447
- obj.$objectType = data['$objectType'];
448
- }
449
- if (data.hasOwnProperty('$unknownFields')) {
450
- obj.$unknownFields = data['$unknownFields'];
451
- }
452
- if (!callFromChild) {
453
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
454
- for (var property in data) {
455
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
456
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
457
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
458
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
459
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
460
- obj.$unknownFields[property] = data[property];
461
- }
462
- }
463
- }
410
+ if (property === "credentialExpiryDate") {
411
+ if (typeof this.credentialExpiryDate === 'undefined' || this.credentialExpiryDate === null) {
412
+ return new _ValidationError.default("credentialExpiryDate", "undefined or null");
464
413
  }
465
- return obj;
466
414
  }
467
-
468
- /**
469
- * Converts a given snake_case string to camelCase.
470
- * @param {string} snakeStr - The input string in snake_case format.
471
- * @returns {string} - The converted string in camelCase format.
472
- */
473
- }, {
474
- key: "snakeToCamel",
475
- value: function snakeToCamel(snakeStr) {
476
- return snakeStr.replace(/(_\w)/g, function (match) {
477
- return match[1].toUpperCase();
478
- });
415
+ if (property === "$reserved") {
416
+ if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
417
+ return new _ValidationError.default("$reserved", "undefined or null");
418
+ }
479
419
  }
480
- }]);
481
- }();
420
+ if (property === "$objectType") {
421
+ if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
422
+ return new _ValidationError.default("$objectType", "undefined or null");
423
+ }
424
+ }
425
+ if (property === "$unknownFields") {
426
+ if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
427
+ return new _ValidationError.default("$unknownFields", "undefined or null");
428
+ }
429
+ }
430
+ return new _ValidationError.default(property, "no such property exists");
431
+ }
432
+ }
433
+
482
434
  /**
483
435
  * Endpoint URL for the Azure Key Vault.
484
436
  * @memberof AzureAccessInformation
485
437
  */
438
+ exports.default = AzureAccessInformation;
486
439
  function _toJsonMapType(obj, forMutation) {
487
440
  if (obj instanceof Map) {
488
- return Object.fromEntries(Array.from(obj, function (_ref) {
489
- var _ref2 = _slicedToArray(_ref, 2),
490
- k = _ref2[0],
491
- v = _ref2[1];
492
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
493
- }));
494
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
495
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
441
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
442
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
443
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
496
444
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
497
445
  }));
498
446
  }
@@ -549,4 +497,6 @@ AzureAccessInformation.prototype.truncatedClientSecret = undefined;
549
497
  AzureAccessInformation.prototype.credentialExpiryDate = undefined;
550
498
  AzureAccessInformation.prototype.$reserved = undefined;
551
499
  AzureAccessInformation.prototype.$objectType = undefined;
552
- AzureAccessInformation.prototype.$unknownFields = undefined;
500
+ AzureAccessInformation.prototype.$unknownFields = undefined;
501
+
502
+ // Implement OneOfsecurity.v4.config.KeyManagementServeraccessInformation interface: