@nutanix-scratch/microseg-js-client 4.1.1 → 4.2.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 (444) hide show
  1. package/README.md +17 -5
  2. package/dist/Ntnx-Microseg-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Microseg-js-client.js +637 -543
  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/addressgroups-endpoints.d.ts +2 -2
  9. package/dist/es/apis/addressgroups-endpoints.js +210 -224
  10. package/dist/es/apis/directoryserverconfigs-endpoints.d.ts +2 -2
  11. package/dist/es/apis/directoryserverconfigs-endpoints.js +390 -407
  12. package/dist/es/apis/entitygroups-endpoints.d.ts +2 -2
  13. package/dist/es/apis/entitygroups-endpoints.js +210 -224
  14. package/dist/es/apis/networksecuritypolicies-endpoints.d.ts +3 -3
  15. package/dist/es/apis/networksecuritypolicies-endpoints.js +361 -371
  16. package/dist/es/apis/servicegroups-endpoints.d.ts +2 -2
  17. package/dist/es/apis/servicegroups-endpoints.js +210 -224
  18. package/dist/es/index.d.ts +17 -1
  19. package/dist/es/index.js +373 -309
  20. package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
  21. package/dist/es/models/common/v1/config/FQDN.js +141 -180
  22. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  23. package/dist/es/models/common/v1/config/Flag.js +170 -211
  24. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  25. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  26. package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
  27. package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
  28. package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
  29. package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
  30. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  31. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  32. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  33. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  34. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  35. package/dist/es/models/common/v1/config/Message.js +213 -258
  36. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  37. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  38. package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
  39. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  40. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  41. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  42. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  43. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  44. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  45. package/dist/es/models/microseg/v4/config/AdInfo.d.ts +2 -10
  46. package/dist/es/models/microseg/v4/config/AdInfo.js +219 -265
  47. package/dist/es/models/microseg/v4/config/AdStatus.js +7 -9
  48. package/dist/es/models/microseg/v4/config/AddressGroup.d.ts +47 -33
  49. package/dist/es/models/microseg/v4/config/AddressGroup.js +468 -365
  50. package/dist/es/models/microseg/v4/config/Addresses.d.ts +48 -0
  51. package/dist/es/models/microseg/v4/config/Addresses.js +248 -0
  52. package/dist/es/models/microseg/v4/config/AllToAllIsolationGroup.d.ts +2 -14
  53. package/dist/es/models/microseg/v4/config/AllToAllIsolationGroup.js +152 -195
  54. package/dist/es/models/microseg/v4/config/AllowType.js +7 -9
  55. package/dist/es/models/microseg/v4/config/AllowedConfig.d.ts +5 -18
  56. package/dist/es/models/microseg/v4/config/AllowedConfig.js +153 -196
  57. package/dist/es/models/microseg/v4/config/AllowedEntity.d.ts +22 -10
  58. package/dist/es/models/microseg/v4/config/AllowedEntity.js +301 -278
  59. package/dist/es/models/microseg/v4/config/AllowedSelectBy.js +15 -11
  60. package/dist/es/models/microseg/v4/config/AllowedType.js +15 -11
  61. package/dist/es/models/microseg/v4/config/ApplicationRuleSpec.d.ts +33 -59
  62. package/dist/es/models/microseg/v4/config/ApplicationRuleSpec.js +871 -851
  63. package/dist/es/models/microseg/v4/config/CategoryAssociatedEntityType.js +7 -9
  64. package/dist/es/models/microseg/v4/config/CategoryMapping.d.ts +1 -27
  65. package/dist/es/models/microseg/v4/config/CategoryMapping.js +211 -259
  66. package/dist/es/models/microseg/v4/config/CreateAddressGroupApiResponse.d.ts +2 -43
  67. package/dist/es/models/microseg/v4/config/CreateAddressGroupApiResponse.js +187 -242
  68. package/dist/es/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.d.ts +2 -43
  69. package/dist/es/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.js +187 -242
  70. package/dist/es/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.d.ts +2 -45
  71. package/dist/es/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.js +187 -242
  72. package/dist/es/models/microseg/v4/config/CreateEntityGroupApiResponse.d.ts +2 -43
  73. package/dist/es/models/microseg/v4/config/CreateEntityGroupApiResponse.js +187 -242
  74. package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.d.ts +2 -43
  75. package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.js +187 -242
  76. package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.d.ts +2 -43
  77. package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.js +187 -242
  78. package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.d.ts +2 -46
  79. package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.js +187 -242
  80. package/dist/es/models/microseg/v4/config/CreateServiceGroupApiResponse.d.ts +2 -43
  81. package/dist/es/models/microseg/v4/config/CreateServiceGroupApiResponse.js +187 -242
  82. package/dist/es/models/microseg/v4/config/DeleteAddressGroupApiResponse.d.ts +2 -43
  83. package/dist/es/models/microseg/v4/config/DeleteAddressGroupApiResponse.js +187 -242
  84. package/dist/es/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.d.ts +2 -43
  85. package/dist/es/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.js +187 -242
  86. package/dist/es/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.d.ts +2 -46
  87. package/dist/es/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.js +187 -242
  88. package/dist/es/models/microseg/v4/config/DeleteEntityGroupApiResponse.d.ts +2 -43
  89. package/dist/es/models/microseg/v4/config/DeleteEntityGroupApiResponse.js +187 -242
  90. package/dist/es/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.d.ts +2 -45
  91. package/dist/es/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.js +187 -242
  92. package/dist/es/models/microseg/v4/config/DeleteServiceGroupApiResponse.d.ts +2 -43
  93. package/dist/es/models/microseg/v4/config/DeleteServiceGroupApiResponse.js +187 -242
  94. package/dist/es/models/microseg/v4/config/DirectoryServerConfig.d.ts +1 -56
  95. package/dist/es/models/microseg/v4/config/DirectoryServerConfig.js +256 -314
  96. package/dist/es/models/microseg/v4/config/EntityGroup.d.ts +33 -33
  97. package/dist/es/models/microseg/v4/config/EntityGroup.js +348 -299
  98. package/dist/es/models/microseg/v4/config/ExceptConfig.d.ts +48 -0
  99. package/dist/es/models/microseg/v4/config/ExceptConfig.js +248 -0
  100. package/dist/es/models/microseg/v4/config/ExceptEntity.d.ts +87 -0
  101. package/dist/es/models/microseg/v4/config/ExceptEntity.js +382 -0
  102. package/dist/es/models/microseg/v4/config/ExceptSelectBy.d.ts +19 -0
  103. package/dist/es/models/microseg/v4/config/ExceptSelectBy.js +83 -0
  104. package/dist/es/models/microseg/v4/config/ExceptType.d.ts +19 -0
  105. package/dist/es/models/microseg/v4/config/ExceptType.js +77 -0
  106. package/dist/es/models/microseg/v4/config/GetAddressGroupApiResponse.d.ts +2 -43
  107. package/dist/es/models/microseg/v4/config/GetAddressGroupApiResponse.js +187 -242
  108. package/dist/es/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.d.ts +2 -43
  109. package/dist/es/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.js +187 -242
  110. package/dist/es/models/microseg/v4/config/GetDsCategoryMappingApiResponse.d.ts +2 -43
  111. package/dist/es/models/microseg/v4/config/GetDsCategoryMappingApiResponse.js +187 -242
  112. package/dist/es/models/microseg/v4/config/GetEntityGroupApiResponse.d.ts +2 -46
  113. package/dist/es/models/microseg/v4/config/GetEntityGroupApiResponse.js +187 -242
  114. package/dist/es/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.d.ts +2 -43
  115. package/dist/es/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.js +187 -242
  116. package/dist/es/models/microseg/v4/config/GetServiceGroupApiResponse.d.ts +2 -43
  117. package/dist/es/models/microseg/v4/config/GetServiceGroupApiResponse.js +187 -242
  118. package/dist/es/models/microseg/v4/config/IPv4Range.d.ts +2 -8
  119. package/dist/es/models/microseg/v4/config/IPv4Range.js +171 -212
  120. package/dist/es/models/microseg/v4/config/IPv6Range.d.ts +72 -0
  121. package/dist/es/models/microseg/v4/config/IPv6Range.js +287 -0
  122. package/dist/es/models/microseg/v4/config/IcmpTypeCodeSpec.d.ts +2 -9
  123. package/dist/es/models/microseg/v4/config/IcmpTypeCodeSpec.js +205 -248
  124. package/dist/es/models/microseg/v4/config/IcmpV6TypeCodeSpec.d.ts +73 -0
  125. package/dist/es/models/microseg/v4/config/IcmpV6TypeCodeSpec.js +324 -0
  126. package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleAction.js +7 -9
  127. package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleSpec.d.ts +14 -33
  128. package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleSpec.js +408 -427
  129. package/dist/es/models/microseg/v4/config/IpRange.d.ts +48 -0
  130. package/dist/es/models/microseg/v4/config/IpRange.js +248 -0
  131. package/dist/es/models/microseg/v4/config/IsolationGroup.d.ts +2 -9
  132. package/dist/es/models/microseg/v4/config/IsolationGroup.js +201 -244
  133. package/dist/es/models/microseg/v4/config/ListAddressGroupsApiResponse.d.ts +2 -43
  134. package/dist/es/models/microseg/v4/config/ListAddressGroupsApiResponse.js +209 -264
  135. package/dist/es/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.d.ts +2 -43
  136. package/dist/es/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.js +209 -264
  137. package/dist/es/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.d.ts +2 -43
  138. package/dist/es/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.js +209 -264
  139. package/dist/es/models/microseg/v4/config/ListEntityGroupsApiResponse.d.ts +2 -43
  140. package/dist/es/models/microseg/v4/config/ListEntityGroupsApiResponse.js +209 -264
  141. package/dist/es/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.d.ts +2 -43
  142. package/dist/es/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.js +212 -267
  143. package/dist/es/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.d.ts +2 -43
  144. package/dist/es/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.js +209 -264
  145. package/dist/es/models/microseg/v4/config/ListServiceGroupsApiResponse.d.ts +2 -43
  146. package/dist/es/models/microseg/v4/config/ListServiceGroupsApiResponse.js +209 -264
  147. package/dist/es/models/microseg/v4/config/MatchEntity.js +7 -9
  148. package/dist/es/models/microseg/v4/config/MatchField.js +7 -9
  149. package/dist/es/models/microseg/v4/config/MatchType.js +7 -9
  150. package/dist/es/models/microseg/v4/config/MatchingCriteria.d.ts +2 -10
  151. package/dist/es/models/microseg/v4/config/MatchingCriteria.js +212 -257
  152. package/dist/es/models/microseg/v4/config/MultiEnvIsolationRuleSpec.d.ts +2 -7
  153. package/dist/es/models/microseg/v4/config/MultiEnvIsolationRuleSpec.js +152 -195
  154. package/dist/es/models/microseg/v4/config/NetworkSecurityPolicy.d.ts +26 -51
  155. package/dist/es/models/microseg/v4/config/NetworkSecurityPolicy.js +663 -676
  156. package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyExportSpec.d.ts +2 -7
  157. package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyExportSpec.js +150 -189
  158. package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyRule.d.ts +1 -18
  159. package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyRule.js +201 -251
  160. package/dist/es/models/microseg/v4/config/RuleType.js +7 -9
  161. package/dist/es/models/microseg/v4/config/SecurityPolicyScope.js +7 -9
  162. package/dist/es/models/microseg/v4/config/SecurityPolicyState.js +7 -9
  163. package/dist/es/models/microseg/v4/config/SecurityPolicyType.js +7 -9
  164. package/dist/es/models/microseg/v4/config/ServiceGroup.d.ts +35 -42
  165. package/dist/es/models/microseg/v4/config/ServiceGroup.js +481 -436
  166. package/dist/es/models/microseg/v4/config/SyncPolicy.d.ts +1 -19
  167. package/dist/es/models/microseg/v4/config/SyncPolicy.js +216 -264
  168. package/dist/es/models/microseg/v4/config/TcpPortRangeSpec.d.ts +2 -8
  169. package/dist/es/models/microseg/v4/config/TcpPortRangeSpec.js +180 -221
  170. package/dist/es/models/microseg/v4/config/TwoEnvIsolationRuleSpec.d.ts +2 -8
  171. package/dist/es/models/microseg/v4/config/TwoEnvIsolationRuleSpec.js +186 -227
  172. package/dist/es/models/microseg/v4/config/UdpPortRangeSpec.d.ts +2 -8
  173. package/dist/es/models/microseg/v4/config/UdpPortRangeSpec.js +180 -221
  174. package/dist/es/models/microseg/v4/config/UpdateAddressGroupApiResponse.d.ts +2 -43
  175. package/dist/es/models/microseg/v4/config/UpdateAddressGroupApiResponse.js +187 -242
  176. package/dist/es/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.d.ts +2 -43
  177. package/dist/es/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.js +187 -242
  178. package/dist/es/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.d.ts +2 -43
  179. package/dist/es/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.js +187 -242
  180. package/dist/es/models/microseg/v4/config/UpdateEntityGroupApiResponse.d.ts +2 -43
  181. package/dist/es/models/microseg/v4/config/UpdateEntityGroupApiResponse.js +187 -242
  182. package/dist/es/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.d.ts +2 -43
  183. package/dist/es/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.js +187 -242
  184. package/dist/es/models/microseg/v4/config/UpdateServiceGroupApiResponse.d.ts +2 -43
  185. package/dist/es/models/microseg/v4/config/UpdateServiceGroupApiResponse.js +187 -242
  186. package/dist/es/models/microseg/v4/error/AppMessage.d.ts +2 -12
  187. package/dist/es/models/microseg/v4/error/AppMessage.js +264 -313
  188. package/dist/es/models/microseg/v4/error/ErrorResponse.d.ts +2 -7
  189. package/dist/es/models/microseg/v4/error/ErrorResponse.js +175 -218
  190. package/dist/es/models/microseg/v4/error/SchemaValidationError.d.ts +2 -18
  191. package/dist/es/models/microseg/v4/error/SchemaValidationError.js +249 -300
  192. package/dist/es/models/microseg/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  193. package/dist/es/models/microseg/v4/error/SchemaValidationErrorMessage.js +191 -234
  194. package/dist/es/models/microseg/v4/operation/DryRunSpec.d.ts +2 -8
  195. package/dist/es/models/microseg/v4/operation/DryRunSpec.js +173 -214
  196. package/dist/es/models/microseg/v4/operation/DryRunSummary.d.ts +1 -103
  197. package/dist/es/models/microseg/v4/operation/DryRunSummary.js +227 -287
  198. package/dist/es/models/microseg/v4/operation/PolicyCount.d.ts +2 -9
  199. package/dist/es/models/microseg/v4/operation/PolicyCount.js +191 -234
  200. package/dist/es/models/microseg/v4/operation/PolicyCountByType.d.ts +2 -15
  201. package/dist/es/models/microseg/v4/operation/PolicyCountByType.js +162 -203
  202. package/dist/es/models/microseg/v4/operation/PolicyMetadata.d.ts +2 -20
  203. package/dist/es/models/microseg/v4/operation/PolicyMetadata.js +326 -380
  204. package/dist/es/models/microseg/v4/operation/PolicyPreview.d.ts +1 -109
  205. package/dist/es/models/microseg/v4/operation/PolicyPreview.js +160 -208
  206. package/dist/es/models/microseg/v4/operation/PolicyUpgradeSummary.d.ts +2 -45
  207. package/dist/es/models/microseg/v4/operation/PolicyUpgradeSummary.js +202 -249
  208. package/dist/es/models/microseg/v4/operation/SecurityPolicyOptions.d.ts +5 -11
  209. package/dist/es/models/microseg/v4/operation/SecurityPolicyOptions.js +167 -208
  210. package/dist/es/models/microseg/v4/operation/SecurityPolicyType.js +7 -9
  211. package/dist/es/models/microseg/v4/operation/SubnetUpgradeSummary.d.ts +2 -9
  212. package/dist/es/models/microseg/v4/operation/SubnetUpgradeSummary.js +196 -239
  213. package/dist/es/models/microseg/v4/operation/TotalPolicyCount.d.ts +2 -28
  214. package/dist/es/models/microseg/v4/operation/TotalPolicyCount.js +171 -216
  215. package/dist/es/models/microseg/v4/operation/UpgradeJob.d.ts +2 -7
  216. package/dist/es/models/microseg/v4/operation/UpgradeJob.js +155 -198
  217. package/dist/es/models/microseg/v4/operation/UpgradeSpec.d.ts +2 -8
  218. package/dist/es/models/microseg/v4/operation/UpgradeSpec.js +166 -207
  219. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  220. package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
  221. package/dist/es/models/validation/ValidationError.js +26 -42
  222. package/dist/es/models/validation/ValidationScopes.js +3 -3
  223. package/dist/es/utils/ValidationUtils.js +39 -69
  224. package/dist/lib/ApiClient.d.ts +29 -7
  225. package/dist/lib/ApiClient.js +854 -667
  226. package/dist/lib/Paginable.d.ts +1 -1
  227. package/dist/lib/Paginable.js +144 -183
  228. package/dist/lib/apis/addressgroups-endpoints.d.ts +2 -2
  229. package/dist/lib/apis/addressgroups-endpoints.js +210 -224
  230. package/dist/lib/apis/directoryserverconfigs-endpoints.d.ts +2 -2
  231. package/dist/lib/apis/directoryserverconfigs-endpoints.js +390 -407
  232. package/dist/lib/apis/entitygroups-endpoints.d.ts +2 -2
  233. package/dist/lib/apis/entitygroups-endpoints.js +210 -224
  234. package/dist/lib/apis/networksecuritypolicies-endpoints.d.ts +3 -3
  235. package/dist/lib/apis/networksecuritypolicies-endpoints.js +361 -371
  236. package/dist/lib/apis/servicegroups-endpoints.d.ts +2 -2
  237. package/dist/lib/apis/servicegroups-endpoints.js +210 -224
  238. package/dist/lib/index.d.ts +17 -1
  239. package/dist/lib/index.js +373 -309
  240. package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
  241. package/dist/lib/models/common/v1/config/FQDN.js +141 -180
  242. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  243. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  244. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  245. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  246. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
  247. package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
  248. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
  249. package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
  250. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  251. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  252. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  253. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  254. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  255. package/dist/lib/models/common/v1/config/Message.js +213 -258
  256. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  257. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  258. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  259. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  260. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  261. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  262. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  263. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  264. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  265. package/dist/lib/models/microseg/v4/config/AdInfo.d.ts +2 -10
  266. package/dist/lib/models/microseg/v4/config/AdInfo.js +219 -265
  267. package/dist/lib/models/microseg/v4/config/AdStatus.js +7 -9
  268. package/dist/lib/models/microseg/v4/config/AddressGroup.d.ts +47 -33
  269. package/dist/lib/models/microseg/v4/config/AddressGroup.js +468 -365
  270. package/dist/lib/models/microseg/v4/config/Addresses.d.ts +48 -0
  271. package/dist/lib/models/microseg/v4/config/Addresses.js +248 -0
  272. package/dist/lib/models/microseg/v4/config/AllToAllIsolationGroup.d.ts +2 -14
  273. package/dist/lib/models/microseg/v4/config/AllToAllIsolationGroup.js +152 -195
  274. package/dist/lib/models/microseg/v4/config/AllowType.js +7 -9
  275. package/dist/lib/models/microseg/v4/config/AllowedConfig.d.ts +5 -18
  276. package/dist/lib/models/microseg/v4/config/AllowedConfig.js +153 -196
  277. package/dist/lib/models/microseg/v4/config/AllowedEntity.d.ts +22 -10
  278. package/dist/lib/models/microseg/v4/config/AllowedEntity.js +301 -278
  279. package/dist/lib/models/microseg/v4/config/AllowedSelectBy.js +15 -11
  280. package/dist/lib/models/microseg/v4/config/AllowedType.js +15 -11
  281. package/dist/lib/models/microseg/v4/config/ApplicationRuleSpec.d.ts +33 -59
  282. package/dist/lib/models/microseg/v4/config/ApplicationRuleSpec.js +871 -851
  283. package/dist/lib/models/microseg/v4/config/CategoryAssociatedEntityType.js +7 -9
  284. package/dist/lib/models/microseg/v4/config/CategoryMapping.d.ts +1 -27
  285. package/dist/lib/models/microseg/v4/config/CategoryMapping.js +211 -259
  286. package/dist/lib/models/microseg/v4/config/CreateAddressGroupApiResponse.d.ts +2 -43
  287. package/dist/lib/models/microseg/v4/config/CreateAddressGroupApiResponse.js +187 -242
  288. package/dist/lib/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.d.ts +2 -43
  289. package/dist/lib/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.js +187 -242
  290. package/dist/lib/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.d.ts +2 -45
  291. package/dist/lib/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.js +187 -242
  292. package/dist/lib/models/microseg/v4/config/CreateEntityGroupApiResponse.d.ts +2 -43
  293. package/dist/lib/models/microseg/v4/config/CreateEntityGroupApiResponse.js +187 -242
  294. package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.d.ts +2 -43
  295. package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.js +187 -242
  296. package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.d.ts +2 -43
  297. package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.js +187 -242
  298. package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.d.ts +2 -46
  299. package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.js +187 -242
  300. package/dist/lib/models/microseg/v4/config/CreateServiceGroupApiResponse.d.ts +2 -43
  301. package/dist/lib/models/microseg/v4/config/CreateServiceGroupApiResponse.js +187 -242
  302. package/dist/lib/models/microseg/v4/config/DeleteAddressGroupApiResponse.d.ts +2 -43
  303. package/dist/lib/models/microseg/v4/config/DeleteAddressGroupApiResponse.js +187 -242
  304. package/dist/lib/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.d.ts +2 -43
  305. package/dist/lib/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.js +187 -242
  306. package/dist/lib/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.d.ts +2 -46
  307. package/dist/lib/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.js +187 -242
  308. package/dist/lib/models/microseg/v4/config/DeleteEntityGroupApiResponse.d.ts +2 -43
  309. package/dist/lib/models/microseg/v4/config/DeleteEntityGroupApiResponse.js +187 -242
  310. package/dist/lib/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.d.ts +2 -45
  311. package/dist/lib/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.js +187 -242
  312. package/dist/lib/models/microseg/v4/config/DeleteServiceGroupApiResponse.d.ts +2 -43
  313. package/dist/lib/models/microseg/v4/config/DeleteServiceGroupApiResponse.js +187 -242
  314. package/dist/lib/models/microseg/v4/config/DirectoryServerConfig.d.ts +1 -56
  315. package/dist/lib/models/microseg/v4/config/DirectoryServerConfig.js +256 -314
  316. package/dist/lib/models/microseg/v4/config/EntityGroup.d.ts +33 -33
  317. package/dist/lib/models/microseg/v4/config/EntityGroup.js +348 -299
  318. package/dist/lib/models/microseg/v4/config/ExceptConfig.d.ts +48 -0
  319. package/dist/lib/models/microseg/v4/config/ExceptConfig.js +248 -0
  320. package/dist/lib/models/microseg/v4/config/ExceptEntity.d.ts +87 -0
  321. package/dist/lib/models/microseg/v4/config/ExceptEntity.js +382 -0
  322. package/dist/lib/models/microseg/v4/config/ExceptSelectBy.d.ts +19 -0
  323. package/dist/lib/models/microseg/v4/config/ExceptSelectBy.js +83 -0
  324. package/dist/lib/models/microseg/v4/config/ExceptType.d.ts +19 -0
  325. package/dist/lib/models/microseg/v4/config/ExceptType.js +77 -0
  326. package/dist/lib/models/microseg/v4/config/GetAddressGroupApiResponse.d.ts +2 -43
  327. package/dist/lib/models/microseg/v4/config/GetAddressGroupApiResponse.js +187 -242
  328. package/dist/lib/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.d.ts +2 -43
  329. package/dist/lib/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.js +187 -242
  330. package/dist/lib/models/microseg/v4/config/GetDsCategoryMappingApiResponse.d.ts +2 -43
  331. package/dist/lib/models/microseg/v4/config/GetDsCategoryMappingApiResponse.js +187 -242
  332. package/dist/lib/models/microseg/v4/config/GetEntityGroupApiResponse.d.ts +2 -46
  333. package/dist/lib/models/microseg/v4/config/GetEntityGroupApiResponse.js +187 -242
  334. package/dist/lib/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.d.ts +2 -43
  335. package/dist/lib/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.js +187 -242
  336. package/dist/lib/models/microseg/v4/config/GetServiceGroupApiResponse.d.ts +2 -43
  337. package/dist/lib/models/microseg/v4/config/GetServiceGroupApiResponse.js +187 -242
  338. package/dist/lib/models/microseg/v4/config/IPv4Range.d.ts +2 -8
  339. package/dist/lib/models/microseg/v4/config/IPv4Range.js +171 -212
  340. package/dist/lib/models/microseg/v4/config/IPv6Range.d.ts +72 -0
  341. package/dist/lib/models/microseg/v4/config/IPv6Range.js +287 -0
  342. package/dist/lib/models/microseg/v4/config/IcmpTypeCodeSpec.d.ts +2 -9
  343. package/dist/lib/models/microseg/v4/config/IcmpTypeCodeSpec.js +205 -248
  344. package/dist/lib/models/microseg/v4/config/IcmpV6TypeCodeSpec.d.ts +73 -0
  345. package/dist/lib/models/microseg/v4/config/IcmpV6TypeCodeSpec.js +324 -0
  346. package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleAction.js +7 -9
  347. package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleSpec.d.ts +14 -33
  348. package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleSpec.js +408 -427
  349. package/dist/lib/models/microseg/v4/config/IpRange.d.ts +48 -0
  350. package/dist/lib/models/microseg/v4/config/IpRange.js +248 -0
  351. package/dist/lib/models/microseg/v4/config/IsolationGroup.d.ts +2 -9
  352. package/dist/lib/models/microseg/v4/config/IsolationGroup.js +201 -244
  353. package/dist/lib/models/microseg/v4/config/ListAddressGroupsApiResponse.d.ts +2 -43
  354. package/dist/lib/models/microseg/v4/config/ListAddressGroupsApiResponse.js +209 -264
  355. package/dist/lib/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.d.ts +2 -43
  356. package/dist/lib/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.js +209 -264
  357. package/dist/lib/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.d.ts +2 -43
  358. package/dist/lib/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.js +209 -264
  359. package/dist/lib/models/microseg/v4/config/ListEntityGroupsApiResponse.d.ts +2 -43
  360. package/dist/lib/models/microseg/v4/config/ListEntityGroupsApiResponse.js +209 -264
  361. package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.d.ts +2 -43
  362. package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.js +212 -267
  363. package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.d.ts +2 -43
  364. package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.js +209 -264
  365. package/dist/lib/models/microseg/v4/config/ListServiceGroupsApiResponse.d.ts +2 -43
  366. package/dist/lib/models/microseg/v4/config/ListServiceGroupsApiResponse.js +209 -264
  367. package/dist/lib/models/microseg/v4/config/MatchEntity.js +7 -9
  368. package/dist/lib/models/microseg/v4/config/MatchField.js +7 -9
  369. package/dist/lib/models/microseg/v4/config/MatchType.js +7 -9
  370. package/dist/lib/models/microseg/v4/config/MatchingCriteria.d.ts +2 -10
  371. package/dist/lib/models/microseg/v4/config/MatchingCriteria.js +212 -257
  372. package/dist/lib/models/microseg/v4/config/MultiEnvIsolationRuleSpec.d.ts +2 -7
  373. package/dist/lib/models/microseg/v4/config/MultiEnvIsolationRuleSpec.js +152 -195
  374. package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicy.d.ts +26 -51
  375. package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicy.js +663 -676
  376. package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyExportSpec.d.ts +2 -7
  377. package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyExportSpec.js +150 -189
  378. package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyRule.d.ts +1 -18
  379. package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyRule.js +201 -251
  380. package/dist/lib/models/microseg/v4/config/RuleType.js +7 -9
  381. package/dist/lib/models/microseg/v4/config/SecurityPolicyScope.js +7 -9
  382. package/dist/lib/models/microseg/v4/config/SecurityPolicyState.js +7 -9
  383. package/dist/lib/models/microseg/v4/config/SecurityPolicyType.js +7 -9
  384. package/dist/lib/models/microseg/v4/config/ServiceGroup.d.ts +35 -42
  385. package/dist/lib/models/microseg/v4/config/ServiceGroup.js +481 -436
  386. package/dist/lib/models/microseg/v4/config/SyncPolicy.d.ts +1 -19
  387. package/dist/lib/models/microseg/v4/config/SyncPolicy.js +216 -264
  388. package/dist/lib/models/microseg/v4/config/TcpPortRangeSpec.d.ts +2 -8
  389. package/dist/lib/models/microseg/v4/config/TcpPortRangeSpec.js +180 -221
  390. package/dist/lib/models/microseg/v4/config/TwoEnvIsolationRuleSpec.d.ts +2 -8
  391. package/dist/lib/models/microseg/v4/config/TwoEnvIsolationRuleSpec.js +186 -227
  392. package/dist/lib/models/microseg/v4/config/UdpPortRangeSpec.d.ts +2 -8
  393. package/dist/lib/models/microseg/v4/config/UdpPortRangeSpec.js +180 -221
  394. package/dist/lib/models/microseg/v4/config/UpdateAddressGroupApiResponse.d.ts +2 -43
  395. package/dist/lib/models/microseg/v4/config/UpdateAddressGroupApiResponse.js +187 -242
  396. package/dist/lib/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.d.ts +2 -43
  397. package/dist/lib/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.js +187 -242
  398. package/dist/lib/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.d.ts +2 -43
  399. package/dist/lib/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.js +187 -242
  400. package/dist/lib/models/microseg/v4/config/UpdateEntityGroupApiResponse.d.ts +2 -43
  401. package/dist/lib/models/microseg/v4/config/UpdateEntityGroupApiResponse.js +187 -242
  402. package/dist/lib/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.d.ts +2 -43
  403. package/dist/lib/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.js +187 -242
  404. package/dist/lib/models/microseg/v4/config/UpdateServiceGroupApiResponse.d.ts +2 -43
  405. package/dist/lib/models/microseg/v4/config/UpdateServiceGroupApiResponse.js +187 -242
  406. package/dist/lib/models/microseg/v4/error/AppMessage.d.ts +2 -12
  407. package/dist/lib/models/microseg/v4/error/AppMessage.js +264 -313
  408. package/dist/lib/models/microseg/v4/error/ErrorResponse.d.ts +2 -7
  409. package/dist/lib/models/microseg/v4/error/ErrorResponse.js +175 -218
  410. package/dist/lib/models/microseg/v4/error/SchemaValidationError.d.ts +2 -18
  411. package/dist/lib/models/microseg/v4/error/SchemaValidationError.js +249 -300
  412. package/dist/lib/models/microseg/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  413. package/dist/lib/models/microseg/v4/error/SchemaValidationErrorMessage.js +191 -234
  414. package/dist/lib/models/microseg/v4/operation/DryRunSpec.d.ts +2 -8
  415. package/dist/lib/models/microseg/v4/operation/DryRunSpec.js +173 -214
  416. package/dist/lib/models/microseg/v4/operation/DryRunSummary.d.ts +1 -103
  417. package/dist/lib/models/microseg/v4/operation/DryRunSummary.js +227 -287
  418. package/dist/lib/models/microseg/v4/operation/PolicyCount.d.ts +2 -9
  419. package/dist/lib/models/microseg/v4/operation/PolicyCount.js +191 -234
  420. package/dist/lib/models/microseg/v4/operation/PolicyCountByType.d.ts +2 -15
  421. package/dist/lib/models/microseg/v4/operation/PolicyCountByType.js +162 -203
  422. package/dist/lib/models/microseg/v4/operation/PolicyMetadata.d.ts +2 -20
  423. package/dist/lib/models/microseg/v4/operation/PolicyMetadata.js +326 -380
  424. package/dist/lib/models/microseg/v4/operation/PolicyPreview.d.ts +1 -109
  425. package/dist/lib/models/microseg/v4/operation/PolicyPreview.js +160 -208
  426. package/dist/lib/models/microseg/v4/operation/PolicyUpgradeSummary.d.ts +2 -45
  427. package/dist/lib/models/microseg/v4/operation/PolicyUpgradeSummary.js +202 -249
  428. package/dist/lib/models/microseg/v4/operation/SecurityPolicyOptions.d.ts +5 -11
  429. package/dist/lib/models/microseg/v4/operation/SecurityPolicyOptions.js +167 -208
  430. package/dist/lib/models/microseg/v4/operation/SecurityPolicyType.js +7 -9
  431. package/dist/lib/models/microseg/v4/operation/SubnetUpgradeSummary.d.ts +2 -9
  432. package/dist/lib/models/microseg/v4/operation/SubnetUpgradeSummary.js +196 -239
  433. package/dist/lib/models/microseg/v4/operation/TotalPolicyCount.d.ts +2 -28
  434. package/dist/lib/models/microseg/v4/operation/TotalPolicyCount.js +171 -216
  435. package/dist/lib/models/microseg/v4/operation/UpgradeJob.d.ts +2 -7
  436. package/dist/lib/models/microseg/v4/operation/UpgradeJob.js +155 -198
  437. package/dist/lib/models/microseg/v4/operation/UpgradeSpec.d.ts +2 -8
  438. package/dist/lib/models/microseg/v4/operation/UpgradeSpec.js +166 -207
  439. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  440. package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
  441. package/dist/lib/models/validation/ValidationError.js +26 -42
  442. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  443. package/dist/lib/utils/ValidationUtils.js +39 -69
  444. package/package.json +1 -1
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- 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); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -18,38 +17,36 @@ var _CategoryMapping = _interopRequireDefault(require("../models/microseg/v4/con
18
17
  var _ListDirectoryServerConfigsApiResponse = _interopRequireDefault(require("../models/microseg/v4/config/ListDirectoryServerConfigsApiResponse"));
19
18
  var _CreateDsCategoryMappingApiResponse = _interopRequireDefault(require("../models/microseg/v4/config/CreateDsCategoryMappingApiResponse"));
20
19
  var _UpdateDirectoryServerConfigApiResponse = _interopRequireDefault(require("../models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse"));
21
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
22
- 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; }
23
- 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; }
24
- 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; }
25
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
26
- 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); } }
27
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
28
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
29
- 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); }
30
- function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
31
- function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
32
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
33
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
34
- 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"); } /*
20
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
21
+ /*
35
22
  * Nutanix Flow Management APIs
36
23
  *
37
- * OpenAPI spec version: 4.1.1
24
+ * OpenAPI spec version: 4.2.2
38
25
  *
39
26
  * NOTE: This class is auto generated by the Open API Dev Platform.
40
27
  *
41
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
28
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
42
29
  *
43
30
  * Do not edit the class manually.
44
31
  *
45
32
  */
33
+
46
34
  /**
47
35
  * DirectoryServerConfigs service.
48
- * @version 4.1.1
36
+ * @version 4.2.2
49
37
  * @class DirectoryServerConfigsApi
50
38
  */
51
- var _headersToSkip = /*#__PURE__*/new WeakMap();
52
- var DirectoryServerConfigsApi = exports.DirectoryServerConfigsApi = /*#__PURE__*/function () {
39
+ class DirectoryServerConfigsApi {
40
+ #headersToSkip;
41
+
42
+ /**
43
+ * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
44
+ * their own fetch methods into the SDK
45
+ */
46
+ static get ApiClient() {
47
+ return _ApiClient.ApiClient;
48
+ }
49
+
53
50
  /**
54
51
  * Constructs a new DirectoryServerConfigsApi.
55
52
  * @alias module:api/DirectoryServerConfigsApi
@@ -57,15 +54,13 @@ var DirectoryServerConfigsApi = exports.DirectoryServerConfigsApi = /*#__PURE__*
57
54
  * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
58
55
  * default to {@link module:ApiClient#instance} if unspecified.
59
56
  */
60
- function DirectoryServerConfigsApi(apiClient) {
61
- _classCallCheck(this, DirectoryServerConfigsApi);
62
- _classPrivateFieldInitSpec(this, _headersToSkip, void 0);
57
+ constructor(apiClient) {
63
58
  this.apiClient = apiClient || _ApiClient.ApiClient.instance;
64
- _classPrivateFieldSet(_headersToSkip, this, new Set());
65
- _classPrivateFieldGet(_headersToSkip, this).add('authorization');
66
- _classPrivateFieldGet(_headersToSkip, this).add('cookie');
67
- _classPrivateFieldGet(_headersToSkip, this).add('host');
68
- _classPrivateFieldGet(_headersToSkip, this).add('user-agent');
59
+ this.#headersToSkip = new Set();
60
+ this.#headersToSkip.add('authorization');
61
+ this.#headersToSkip.add('cookie');
62
+ this.#headersToSkip.add('host');
63
+ this.#headersToSkip.add('user-agent');
69
64
  }
70
65
 
71
66
  /**
@@ -75,406 +70,394 @@ var DirectoryServerConfigsApi = exports.DirectoryServerConfigsApi = /*#__PURE__*
75
70
  * @param {Object} args Additional Arguments
76
71
  * @return {Promise<CreateDsCategoryMappingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateDsCategoryMappingApiResponse } and HTTP response
77
72
  */
78
- return _createClass(DirectoryServerConfigsApi, [{
79
- key: "createCategoryMapping",
80
- value: function createCategoryMapping(body) {
81
- var _this = this;
82
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
83
- var postBody = null;
84
- if (body instanceof _CategoryMapping["default"] && typeof body.toJson === 'function') {
85
- postBody = body.toJson();
86
- } else {
87
- postBody = body;
88
- }
89
- // verify the required parameter 'body' is set
90
- if (typeof postBody === 'undefined' || postBody === null) {
91
- throw new Error("Invalid body when calling createCategoryMapping");
92
- }
93
- var pathParams = {};
94
- var queryParams = {};
95
- var headersToInclude = {};
96
- Object.keys(argMap).forEach(function (header) {
97
- if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
98
- headersToInclude[header] = argMap[header];
99
- }
100
- });
101
- var headerParams = _objectSpread({}, headersToInclude);
102
- var formParams = {};
103
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
104
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
105
- var contentTypes = ['application/json'];
106
- var accepts = ['application/json'];
107
- var returnType = _CreateDsCategoryMappingApiResponse["default"];
108
- return this.apiClient.callApi('/api/microseg/v4.1/config/category-mappings', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
73
+ createCategoryMapping(body, ...args) {
74
+ let argMap = args.length > 0 ? args[0] : {};
75
+ let postBody = null;
76
+ if (body instanceof _CategoryMapping.default && typeof body.toJson === 'function') {
77
+ postBody = body.toJson();
78
+ } else {
79
+ postBody = body;
109
80
  }
110
-
111
- /**
112
- * Configure Directory Servers
113
- * Configures various aspects of identity categorization.
114
- * @param { Partial<DirectoryServerConfig> } body specification
115
- * @param {Object} args Additional Arguments
116
- * @return {Promise<CreateDirectoryServerConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateDirectoryServerConfigApiResponse } and HTTP response
117
- */
118
- }, {
119
- key: "createDirectoryServerConfig",
120
- value: function createDirectoryServerConfig(body) {
121
- var _this2 = this;
122
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
123
- var postBody = null;
124
- if (body instanceof _DirectoryServerConfig["default"] && typeof body.toJson === 'function') {
125
- postBody = body.toJson();
126
- } else {
127
- postBody = body;
128
- }
129
- // verify the required parameter 'body' is set
130
- if (typeof postBody === 'undefined' || postBody === null) {
131
- throw new Error("Invalid body when calling createDirectoryServerConfig");
132
- }
133
- var pathParams = {};
134
- var queryParams = {};
135
- var headersToInclude = {};
136
- Object.keys(argMap).forEach(function (header) {
137
- if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
138
- headersToInclude[header] = argMap[header];
139
- }
140
- });
141
- var headerParams = _objectSpread({}, headersToInclude);
142
- var formParams = {};
143
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
144
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
145
- var contentTypes = ['application/json'];
146
- var accepts = ['application/json'];
147
- var returnType = _CreateDirectoryServerConfigApiResponse["default"];
148
- return this.apiClient.callApi('/api/microseg/v4.1/config/directory-server-configs', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
81
+ // verify the required parameter 'body' is set
82
+ if (typeof postBody === 'undefined' || postBody === null) {
83
+ throw new Error("Invalid body when calling createCategoryMapping");
149
84
  }
150
-
151
- /**
152
- * Delete a Directory Server by ExtID
153
- * Deletes the Directory Server with the provided ExtID.
154
- * @param { String } extId UUID to specify Directory Server.
155
- * @param {Object} args Additional Arguments
156
- * @return {Promise<DeleteDirectoryServerConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteDirectoryServerConfigApiResponse } and HTTP response
157
- */
158
- }, {
159
- key: "deleteDirectoryServerConfigById",
160
- value: function deleteDirectoryServerConfigById(extId) {
161
- var _this3 = this;
162
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
163
- var postBody = null;
164
- // verify the required parameter 'extId' is set
165
- if (typeof extId === 'undefined' || extId === null) {
166
- throw new Error("Missing the required parameter 'extId' when calling deleteDirectoryServerConfigById");
85
+ const pathParams = {};
86
+ const queryParams = {};
87
+ let headersToInclude = {};
88
+ Object.keys(argMap).forEach(header => {
89
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
90
+ headersToInclude[header] = argMap[header];
167
91
  }
168
- var pathParams = {
169
- 'extId': extId
170
- };
171
- var queryParams = {};
172
- var headersToInclude = {};
173
- Object.keys(argMap).forEach(function (header) {
174
- if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
175
- headersToInclude[header] = argMap[header];
176
- }
177
- });
178
- var headerParams = _objectSpread({}, headersToInclude);
179
- var formParams = {};
180
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
181
- var contentTypes = [];
182
- var accepts = ['application/json'];
183
- var returnType = _DeleteDirectoryServerConfigApiResponse["default"];
184
- return this.apiClient.callApi('/api/microseg/v4.1/config/directory-server-configs/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
185
- }
92
+ });
93
+ const headerParams = {
94
+ ...headersToInclude
95
+ };
96
+ const formParams = {};
97
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
98
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
99
+ const contentTypes = ['application/json'];
100
+ const accepts = ['application/json'];
101
+ const returnType = _CreateDsCategoryMappingApiResponse.default;
102
+ return this.apiClient.callApi('/api/microseg/v4.2/config/category-mappings', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
103
+ }
186
104
 
187
- /**
188
- * Delete a Directory Config by ExtID
189
- * Deletes the directory configuration with the provided ExtID.
190
- * @param { String } extId Category Mapping UUID.
191
- * @param {Object} args Additional Arguments
192
- * @return {Promise<DeleteDsCategoryMappingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteDsCategoryMappingApiResponse } and HTTP response
193
- */
194
- }, {
195
- key: "deleteDsCategoryMappingById",
196
- value: function deleteDsCategoryMappingById(extId) {
197
- var _this4 = this;
198
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
199
- var postBody = null;
200
- // verify the required parameter 'extId' is set
201
- if (typeof extId === 'undefined' || extId === null) {
202
- throw new Error("Missing the required parameter 'extId' when calling deleteDsCategoryMappingById");
203
- }
204
- var pathParams = {
205
- 'extId': extId
206
- };
207
- var queryParams = {};
208
- var headersToInclude = {};
209
- Object.keys(argMap).forEach(function (header) {
210
- if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
211
- headersToInclude[header] = argMap[header];
212
- }
213
- });
214
- var headerParams = _objectSpread({}, headersToInclude);
215
- var formParams = {};
216
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
217
- var contentTypes = [];
218
- var accepts = ['application/json'];
219
- var returnType = _DeleteDsCategoryMappingApiResponse["default"];
220
- return this.apiClient.callApi('/api/microseg/v4.1/config/category-mappings/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
105
+ /**
106
+ * Configure Directory Servers
107
+ * Configures various aspects of identity categorization.
108
+ * @param { Partial<DirectoryServerConfig> } body specification
109
+ * @param {Object} args Additional Arguments
110
+ * @return {Promise<CreateDirectoryServerConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateDirectoryServerConfigApiResponse } and HTTP response
111
+ */
112
+ createDirectoryServerConfig(body, ...args) {
113
+ let argMap = args.length > 0 ? args[0] : {};
114
+ let postBody = null;
115
+ if (body instanceof _DirectoryServerConfig.default && typeof body.toJson === 'function') {
116
+ postBody = body.toJson();
117
+ } else {
118
+ postBody = body;
221
119
  }
120
+ // verify the required parameter 'body' is set
121
+ if (typeof postBody === 'undefined' || postBody === null) {
122
+ throw new Error("Invalid body when calling createDirectoryServerConfig");
123
+ }
124
+ const pathParams = {};
125
+ const queryParams = {};
126
+ let headersToInclude = {};
127
+ Object.keys(argMap).forEach(header => {
128
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
129
+ headersToInclude[header] = argMap[header];
130
+ }
131
+ });
132
+ const headerParams = {
133
+ ...headersToInclude
134
+ };
135
+ const formParams = {};
136
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
137
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
138
+ const contentTypes = ['application/json'];
139
+ const accepts = ['application/json'];
140
+ const returnType = _CreateDirectoryServerConfigApiResponse.default;
141
+ return this.apiClient.callApi('/api/microseg/v4.2/config/directory-server-configs', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
142
+ }
222
143
 
223
- /**
224
- * Get details of Directory Server by ExtID
225
- * Gets the list of Directory Server configurations.
226
- * @param { String } extId UUID to specify Directory Server.
227
- * @param {Object} args Additional Arguments
228
- * @return {Promise<GetDirectoryServerConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetDirectoryServerConfigApiResponse } and HTTP response
229
- */
230
- }, {
231
- key: "getDirectoryServerConfigById",
232
- value: function getDirectoryServerConfigById(extId) {
233
- var _this5 = this;
234
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
235
- var postBody = null;
236
- // verify the required parameter 'extId' is set
237
- if (typeof extId === 'undefined' || extId === null) {
238
- throw new Error("Missing the required parameter 'extId' when calling getDirectoryServerConfigById");
144
+ /**
145
+ * Delete a Directory Server by ExtID
146
+ * Deletes the Directory Server with the provided ExtID.
147
+ * @param { String } extId UUID to specify Directory Server.
148
+ * @param {Object} args Additional Arguments
149
+ * @return {Promise<DeleteDirectoryServerConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteDirectoryServerConfigApiResponse } and HTTP response
150
+ */
151
+ deleteDirectoryServerConfigById(extId, ...args) {
152
+ let argMap = args.length > 0 ? args[0] : {};
153
+ const postBody = null;
154
+ // verify the required parameter 'extId' is set
155
+ if (typeof extId === 'undefined' || extId === null) {
156
+ throw new Error("Missing the required parameter 'extId' when calling deleteDirectoryServerConfigById");
157
+ }
158
+ const pathParams = {
159
+ 'extId': extId
160
+ };
161
+ const queryParams = {};
162
+ let headersToInclude = {};
163
+ Object.keys(argMap).forEach(header => {
164
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
165
+ headersToInclude[header] = argMap[header];
239
166
  }
240
- var pathParams = {
241
- 'extId': extId
242
- };
243
- var queryParams = {};
244
- var headersToInclude = {};
245
- Object.keys(argMap).forEach(function (header) {
246
- if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
247
- headersToInclude[header] = argMap[header];
248
- }
249
- });
250
- var headerParams = _objectSpread({}, headersToInclude);
251
- var formParams = {};
252
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
253
- var contentTypes = [];
254
- var accepts = ['application/json'];
255
- var returnType = _GetDirectoryServerConfigApiResponse["default"];
256
- return this.apiClient.callApi('/api/microseg/v4.1/config/directory-server-configs/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
167
+ });
168
+ const headerParams = {
169
+ ...headersToInclude
170
+ };
171
+ const formParams = {};
172
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
173
+ const contentTypes = [];
174
+ const accepts = ['application/json'];
175
+ const returnType = _DeleteDirectoryServerConfigApiResponse.default;
176
+ return this.apiClient.callApi('/api/microseg/v4.2/config/directory-server-configs/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
177
+ }
178
+
179
+ /**
180
+ * Delete a Directory Config by ExtID
181
+ * Deletes the directory configuration with the provided ExtID.
182
+ * @param { String } extId Category Mapping UUID.
183
+ * @param {Object} args Additional Arguments
184
+ * @return {Promise<DeleteDsCategoryMappingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteDsCategoryMappingApiResponse } and HTTP response
185
+ */
186
+ deleteDsCategoryMappingById(extId, ...args) {
187
+ let argMap = args.length > 0 ? args[0] : {};
188
+ const postBody = null;
189
+ // verify the required parameter 'extId' is set
190
+ if (typeof extId === 'undefined' || extId === null) {
191
+ throw new Error("Missing the required parameter 'extId' when calling deleteDsCategoryMappingById");
257
192
  }
193
+ const pathParams = {
194
+ 'extId': extId
195
+ };
196
+ const queryParams = {};
197
+ let headersToInclude = {};
198
+ Object.keys(argMap).forEach(header => {
199
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
200
+ headersToInclude[header] = argMap[header];
201
+ }
202
+ });
203
+ const headerParams = {
204
+ ...headersToInclude
205
+ };
206
+ const formParams = {};
207
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
208
+ const contentTypes = [];
209
+ const accepts = ['application/json'];
210
+ const returnType = _DeleteDsCategoryMappingApiResponse.default;
211
+ return this.apiClient.callApi('/api/microseg/v4.2/config/category-mappings/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
212
+ }
258
213
 
259
- /**
260
- * Get a Category to Directory Config information by ExtID
261
- * Gets the category to directory configuration information with the provided ExtID.
262
- * @param { String } extId Category Mapping UUID.
263
- * @param {Object} args Additional Arguments
264
- * @return {Promise<GetDsCategoryMappingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetDsCategoryMappingApiResponse } and HTTP response
265
- */
266
- }, {
267
- key: "getDsCategoryMappingById",
268
- value: function getDsCategoryMappingById(extId) {
269
- var _this6 = this;
270
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
271
- var postBody = null;
272
- // verify the required parameter 'extId' is set
273
- if (typeof extId === 'undefined' || extId === null) {
274
- throw new Error("Missing the required parameter 'extId' when calling getDsCategoryMappingById");
214
+ /**
215
+ * Get details of Directory Server by ExtID
216
+ * Gets the list of Directory Server configurations.
217
+ * @param { String } extId UUID to specify Directory Server.
218
+ * @param {Object} args Additional Arguments
219
+ * @return {Promise<GetDirectoryServerConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetDirectoryServerConfigApiResponse } and HTTP response
220
+ */
221
+ getDirectoryServerConfigById(extId, ...args) {
222
+ let argMap = args.length > 0 ? args[0] : {};
223
+ const postBody = null;
224
+ // verify the required parameter 'extId' is set
225
+ if (typeof extId === 'undefined' || extId === null) {
226
+ throw new Error("Missing the required parameter 'extId' when calling getDirectoryServerConfigById");
227
+ }
228
+ const pathParams = {
229
+ 'extId': extId
230
+ };
231
+ const queryParams = {};
232
+ let headersToInclude = {};
233
+ Object.keys(argMap).forEach(header => {
234
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
235
+ headersToInclude[header] = argMap[header];
275
236
  }
276
- var pathParams = {
277
- 'extId': extId
278
- };
279
- var queryParams = {};
280
- var headersToInclude = {};
281
- Object.keys(argMap).forEach(function (header) {
282
- if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
283
- headersToInclude[header] = argMap[header];
284
- }
285
- });
286
- var headerParams = _objectSpread({}, headersToInclude);
287
- var formParams = {};
288
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
289
- var contentTypes = [];
290
- var accepts = ['application/json'];
291
- var returnType = _GetDsCategoryMappingApiResponse["default"];
292
- return this.apiClient.callApi('/api/microseg/v4.1/config/category-mappings/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
237
+ });
238
+ const headerParams = {
239
+ ...headersToInclude
240
+ };
241
+ const formParams = {};
242
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
243
+ const contentTypes = [];
244
+ const accepts = ['application/json'];
245
+ const returnType = _GetDirectoryServerConfigApiResponse.default;
246
+ return this.apiClient.callApi('/api/microseg/v4.2/config/directory-server-configs/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
247
+ }
248
+
249
+ /**
250
+ * Get a Category to Directory Config information by ExtID
251
+ * Gets the category to directory configuration information with the provided ExtID.
252
+ * @param { String } extId Category Mapping UUID.
253
+ * @param {Object} args Additional Arguments
254
+ * @return {Promise<GetDsCategoryMappingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetDsCategoryMappingApiResponse } and HTTP response
255
+ */
256
+ getDsCategoryMappingById(extId, ...args) {
257
+ let argMap = args.length > 0 ? args[0] : {};
258
+ const postBody = null;
259
+ // verify the required parameter 'extId' is set
260
+ if (typeof extId === 'undefined' || extId === null) {
261
+ throw new Error("Missing the required parameter 'extId' when calling getDsCategoryMappingById");
293
262
  }
263
+ const pathParams = {
264
+ 'extId': extId
265
+ };
266
+ const queryParams = {};
267
+ let headersToInclude = {};
268
+ Object.keys(argMap).forEach(header => {
269
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
270
+ headersToInclude[header] = argMap[header];
271
+ }
272
+ });
273
+ const headerParams = {
274
+ ...headersToInclude
275
+ };
276
+ const formParams = {};
277
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
278
+ const contentTypes = [];
279
+ const accepts = ['application/json'];
280
+ const returnType = _GetDsCategoryMappingApiResponse.default;
281
+ return this.apiClient.callApi('/api/microseg/v4.2/config/category-mappings/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
282
+ }
294
283
 
295
- /**
296
- * List all the Directory Server Category Mappings
297
- * Gets the list of Directory Server Category Mappings.
298
- * @param {Object} opts Optional parameters defined for the operation
299
- * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
300
- * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
301
- * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
302
- * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
303
- * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
304
- * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
305
- * @param {Object} args Additional Arguments
306
- * @return {Promise<ListDsCategoryMappingsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListDsCategoryMappingsApiResponse } and HTTP response
307
- */
308
- }, {
309
- key: "listCategoryMappings",
310
- value: function listCategoryMappings(opts) {
311
- var _this7 = this;
312
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
313
- opts = opts || {};
314
- var postBody = null;
315
- var pathParams = {};
316
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
284
+ /**
285
+ * List all the Directory Server Category Mappings
286
+ * Gets the list of Directory Server Category Mappings.
287
+ * @param {Object} opts Optional parameters defined for the operation
288
+ * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
289
+ * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
290
+ * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
291
+ * For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
292
+ * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
293
+ * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
294
+ * @param {Object} args Additional Arguments
295
+ * @return {Promise<ListDsCategoryMappingsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListDsCategoryMappingsApiResponse } and HTTP response
296
+ */
297
+ listCategoryMappings(opts, ...args) {
298
+ let argMap = args.length > 0 ? args[0] : {};
299
+ opts = opts || {};
300
+ const postBody = null;
301
+ const pathParams = {};
302
+ const queryParams = {
303
+ ...(opts.hasOwnProperty('$page') ? {
317
304
  '$page': opts['$page']
318
- } : {}), opts.hasOwnProperty('$limit') ? {
305
+ } : {}),
306
+ ...(opts.hasOwnProperty('$limit') ? {
319
307
  '$limit': opts['$limit']
320
- } : {}), opts.hasOwnProperty('$filter') ? {
308
+ } : {}),
309
+ ...(opts.hasOwnProperty('$filter') ? {
321
310
  '$filter': opts['$filter']
322
- } : {}), opts.hasOwnProperty('$orderby') ? {
311
+ } : {}),
312
+ ...(opts.hasOwnProperty('$orderby') ? {
323
313
  '$orderby': opts['$orderby']
324
- } : {}), opts.hasOwnProperty('$select') ? {
314
+ } : {}),
315
+ ...(opts.hasOwnProperty('$select') ? {
325
316
  '$select': opts['$select']
326
- } : {});
327
- var headersToInclude = {};
328
- Object.keys(argMap).forEach(function (header) {
329
- if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
330
- headersToInclude[header] = argMap[header];
331
- }
332
- });
333
- var headerParams = _objectSpread({}, headersToInclude);
334
- var formParams = {};
335
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
336
- var contentTypes = [];
337
- var accepts = ['application/json'];
338
- var returnType = _ListDsCategoryMappingsApiResponse["default"];
339
- return this.apiClient.callApi('/api/microseg/v4.1/config/category-mappings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
340
- }
317
+ } : {})
318
+ };
319
+ let headersToInclude = {};
320
+ Object.keys(argMap).forEach(header => {
321
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
322
+ headersToInclude[header] = argMap[header];
323
+ }
324
+ });
325
+ const headerParams = {
326
+ ...headersToInclude
327
+ };
328
+ const formParams = {};
329
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
330
+ const contentTypes = [];
331
+ const accepts = ['application/json'];
332
+ const returnType = _ListDsCategoryMappingsApiResponse.default;
333
+ return this.apiClient.callApi('/api/microseg/v4.2/config/category-mappings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
334
+ }
341
335
 
342
- /**
343
- * List all the Directory Servers
344
- * Gets the list of Directory Servers.
345
- * @param {Object} opts Optional parameters defined for the operation
346
- * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
347
- * @param {Object} args Additional Arguments
348
- * @return {Promise<ListDirectoryServerConfigsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListDirectoryServerConfigsApiResponse } and HTTP response
349
- */
350
- }, {
351
- key: "listDirectoryServerConfigs",
352
- value: function listDirectoryServerConfigs(opts) {
353
- var _this8 = this;
354
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
355
- opts = opts || {};
356
- var postBody = null;
357
- var pathParams = {};
358
- var queryParams = _objectSpread({}, opts.hasOwnProperty('$select') ? {
336
+ /**
337
+ * List all the Directory Servers
338
+ * Gets the list of Directory Servers.
339
+ * @param {Object} opts Optional parameters defined for the operation
340
+ * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
341
+ * @param {Object} args Additional Arguments
342
+ * @return {Promise<ListDirectoryServerConfigsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListDirectoryServerConfigsApiResponse } and HTTP response
343
+ */
344
+ listDirectoryServerConfigs(opts, ...args) {
345
+ let argMap = args.length > 0 ? args[0] : {};
346
+ opts = opts || {};
347
+ const postBody = null;
348
+ const pathParams = {};
349
+ const queryParams = {
350
+ ...(opts.hasOwnProperty('$select') ? {
359
351
  '$select': opts['$select']
360
- } : {});
361
- var headersToInclude = {};
362
- Object.keys(argMap).forEach(function (header) {
363
- if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
364
- headersToInclude[header] = argMap[header];
365
- }
366
- });
367
- var headerParams = _objectSpread({}, headersToInclude);
368
- var formParams = {};
369
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
370
- var contentTypes = [];
371
- var accepts = ['application/json'];
372
- var returnType = _ListDirectoryServerConfigsApiResponse["default"];
373
- return this.apiClient.callApi('/api/microseg/v4.1/config/directory-server-configs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
374
- }
375
-
376
- /**
377
- * Update a Directory Server by ExtID
378
- * Updates the Directory Server Config with the provided ExtID.
379
- * @param { Partial<DirectoryServerConfig> } body specification
380
- * @param { String } extId UUID to specify Directory Server.
381
- * @param {Object} args Additional Arguments
382
- * @return {Promise<UpdateDirectoryServerConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateDirectoryServerConfigApiResponse } and HTTP response
383
- */
384
- }, {
385
- key: "updateDirectoryServerConfigById",
386
- value: function updateDirectoryServerConfigById(extId, body) {
387
- var _this9 = this;
388
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
389
- var postBody = null;
390
- if (body instanceof _DirectoryServerConfig["default"] && typeof body.toJson === 'function') {
391
- postBody = body.toJson();
392
- } else {
393
- postBody = body;
394
- }
395
- // verify the required parameter 'extId' is set
396
- if (typeof extId === 'undefined' || extId === null) {
397
- throw new Error("Missing the required parameter 'extId' when calling updateDirectoryServerConfigById");
352
+ } : {})
353
+ };
354
+ let headersToInclude = {};
355
+ Object.keys(argMap).forEach(header => {
356
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
357
+ headersToInclude[header] = argMap[header];
398
358
  }
399
- // verify the required parameter 'body' is set
400
- if (typeof postBody === 'undefined' || postBody === null) {
401
- throw new Error("Invalid body when calling updateDirectoryServerConfigById");
402
- }
403
- var pathParams = {
404
- 'extId': extId
405
- };
406
- var queryParams = {};
407
- var headersToInclude = {};
408
- Object.keys(argMap).forEach(function (header) {
409
- if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
410
- headersToInclude[header] = argMap[header];
411
- }
412
- });
413
- var headerParams = _objectSpread({}, headersToInclude);
414
- var formParams = {};
415
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
416
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
417
- var contentTypes = ['application/json'];
418
- var accepts = ['application/json'];
419
- var returnType = _UpdateDirectoryServerConfigApiResponse["default"];
420
- return this.apiClient.callApi('/api/microseg/v4.1/config/directory-server-configs/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
421
- }
359
+ });
360
+ const headerParams = {
361
+ ...headersToInclude
362
+ };
363
+ const formParams = {};
364
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
365
+ const contentTypes = [];
366
+ const accepts = ['application/json'];
367
+ const returnType = _ListDirectoryServerConfigsApiResponse.default;
368
+ return this.apiClient.callApi('/api/microseg/v4.2/config/directory-server-configs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
369
+ }
422
370
 
423
- /**
424
- * Update a Category to Directory Config mapping by ExtID
425
- * Updates the category to directory configuration mapping information with the provided ExtID.
426
- * @param { Required<Pick<CategoryMapping, 'name' | 'categoryName' | 'categoryValue' | 'adInfo'>> & Partial<CategoryMapping> } body specification
427
- * @param { String } extId Category Mapping UUID.
428
- * @param {Object} args Additional Arguments
429
- * @return {Promise<UpdateDsCategoryMappingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateDsCategoryMappingApiResponse } and HTTP response
430
- */
431
- }, {
432
- key: "updateDsCategoryMappingById",
433
- value: function updateDsCategoryMappingById(extId, body) {
434
- var _this0 = this;
435
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
436
- var postBody = null;
437
- if (body instanceof _CategoryMapping["default"] && typeof body.toJson === 'function') {
438
- postBody = body.toJson();
439
- } else {
440
- postBody = body;
441
- }
442
- // verify the required parameter 'extId' is set
443
- if (typeof extId === 'undefined' || extId === null) {
444
- throw new Error("Missing the required parameter 'extId' when calling updateDsCategoryMappingById");
445
- }
446
- // verify the required parameter 'body' is set
447
- if (typeof postBody === 'undefined' || postBody === null) {
448
- throw new Error("Invalid body when calling updateDsCategoryMappingById");
371
+ /**
372
+ * Update a Directory Server by ExtID
373
+ * Updates the Directory Server Config with the provided ExtID.
374
+ * @param { Partial<DirectoryServerConfig> } body specification
375
+ * @param { String } extId UUID to specify Directory Server.
376
+ * @param {Object} args Additional Arguments
377
+ * @return {Promise<UpdateDirectoryServerConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateDirectoryServerConfigApiResponse } and HTTP response
378
+ */
379
+ updateDirectoryServerConfigById(extId, body, ...args) {
380
+ let argMap = args.length > 0 ? args[0] : {};
381
+ let postBody = null;
382
+ if (body instanceof _DirectoryServerConfig.default && typeof body.toJson === 'function') {
383
+ postBody = body.toJson();
384
+ } else {
385
+ postBody = body;
386
+ }
387
+ // verify the required parameter 'extId' is set
388
+ if (typeof extId === 'undefined' || extId === null) {
389
+ throw new Error("Missing the required parameter 'extId' when calling updateDirectoryServerConfigById");
390
+ }
391
+ // verify the required parameter 'body' is set
392
+ if (typeof postBody === 'undefined' || postBody === null) {
393
+ throw new Error("Invalid body when calling updateDirectoryServerConfigById");
394
+ }
395
+ const pathParams = {
396
+ 'extId': extId
397
+ };
398
+ const queryParams = {};
399
+ let headersToInclude = {};
400
+ Object.keys(argMap).forEach(header => {
401
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
402
+ headersToInclude[header] = argMap[header];
449
403
  }
450
- var pathParams = {
451
- 'extId': extId
452
- };
453
- var queryParams = {};
454
- var headersToInclude = {};
455
- Object.keys(argMap).forEach(function (header) {
456
- if (!_classPrivateFieldGet(_headersToSkip, _this0).has(header.toLowerCase())) {
457
- headersToInclude[header] = argMap[header];
458
- }
459
- });
460
- var headerParams = _objectSpread({}, headersToInclude);
461
- var formParams = {};
462
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
463
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
464
- var contentTypes = ['application/json'];
465
- var accepts = ['application/json'];
466
- var returnType = _UpdateDsCategoryMappingApiResponse["default"];
467
- return this.apiClient.callApi('/api/microseg/v4.1/config/category-mappings/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
404
+ });
405
+ const headerParams = {
406
+ ...headersToInclude
407
+ };
408
+ const formParams = {};
409
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
410
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
411
+ const contentTypes = ['application/json'];
412
+ const accepts = ['application/json'];
413
+ const returnType = _UpdateDirectoryServerConfigApiResponse.default;
414
+ return this.apiClient.callApi('/api/microseg/v4.2/config/directory-server-configs/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
415
+ }
416
+
417
+ /**
418
+ * Update a Category to Directory Config mapping by ExtID
419
+ * Updates the category to directory configuration mapping information with the provided ExtID.
420
+ * @param { Required<Pick<CategoryMapping, 'name' | 'categoryName' | 'categoryValue' | 'adInfo'>> & Partial<CategoryMapping> } body specification
421
+ * @param { String } extId Category Mapping UUID.
422
+ * @param {Object} args Additional Arguments
423
+ * @return {Promise<UpdateDsCategoryMappingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateDsCategoryMappingApiResponse } and HTTP response
424
+ */
425
+ updateDsCategoryMappingById(extId, body, ...args) {
426
+ let argMap = args.length > 0 ? args[0] : {};
427
+ let postBody = null;
428
+ if (body instanceof _CategoryMapping.default && typeof body.toJson === 'function') {
429
+ postBody = body.toJson();
430
+ } else {
431
+ postBody = body;
432
+ }
433
+ // verify the required parameter 'extId' is set
434
+ if (typeof extId === 'undefined' || extId === null) {
435
+ throw new Error("Missing the required parameter 'extId' when calling updateDsCategoryMappingById");
468
436
  }
469
- }], [{
470
- key: "ApiClient",
471
- get:
472
- /**
473
- * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
474
- * their own fetch methods into the SDK
475
- */
476
- function get() {
477
- return _ApiClient.ApiClient;
437
+ // verify the required parameter 'body' is set
438
+ if (typeof postBody === 'undefined' || postBody === null) {
439
+ throw new Error("Invalid body when calling updateDsCategoryMappingById");
478
440
  }
479
- }]);
480
- }();
441
+ const pathParams = {
442
+ 'extId': extId
443
+ };
444
+ const queryParams = {};
445
+ let headersToInclude = {};
446
+ Object.keys(argMap).forEach(header => {
447
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
448
+ headersToInclude[header] = argMap[header];
449
+ }
450
+ });
451
+ const headerParams = {
452
+ ...headersToInclude
453
+ };
454
+ const formParams = {};
455
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
456
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
457
+ const contentTypes = ['application/json'];
458
+ const accepts = ['application/json'];
459
+ const returnType = _UpdateDsCategoryMappingApiResponse.default;
460
+ return this.apiClient.callApi('/api/microseg/v4.2/config/category-mappings/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
461
+ }
462
+ }
463
+ exports.DirectoryServerConfigsApi = DirectoryServerConfigsApi;