namirasoft-credential 1.4.0 → 1.4.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 (335) hide show
  1. package/dist/NamirasoftCredentialServer.d.ts +16 -0
  2. package/dist/NamirasoftCredentialServer.js +17 -1
  3. package/dist/NamirasoftCredentialServer.js.map +1 -1
  4. package/dist/NamirasoftCredentialServerAWS.d.ts +4 -3
  5. package/dist/NamirasoftCredentialServerAWS.js.map +1 -1
  6. package/dist/NamirasoftCredentialServerAzure.d.ts +19 -0
  7. package/dist/NamirasoftCredentialServerAzure.js +64 -0
  8. package/dist/NamirasoftCredentialServerAzure.js.map +1 -0
  9. package/dist/NamirasoftCredentialServerAzureCategory.d.ts +16 -0
  10. package/dist/NamirasoftCredentialServerAzureCategory.js +56 -0
  11. package/dist/NamirasoftCredentialServerAzureCategory.js.map +1 -0
  12. package/dist/NamirasoftCredentialServerAzureField.d.ts +17 -0
  13. package/dist/NamirasoftCredentialServerAzureField.js +64 -0
  14. package/dist/NamirasoftCredentialServerAzureField.js.map +1 -0
  15. package/dist/NamirasoftCredentialServerAzureTag.d.ts +17 -0
  16. package/dist/NamirasoftCredentialServerAzureTag.js +64 -0
  17. package/dist/NamirasoftCredentialServerAzureTag.js.map +1 -0
  18. package/dist/NamirasoftCredentialServerGCP.d.ts +19 -0
  19. package/dist/NamirasoftCredentialServerGCP.js +64 -0
  20. package/dist/NamirasoftCredentialServerGCP.js.map +1 -0
  21. package/dist/NamirasoftCredentialServerGCPCategory.d.ts +16 -0
  22. package/dist/NamirasoftCredentialServerGCPCategory.js +56 -0
  23. package/dist/NamirasoftCredentialServerGCPCategory.js.map +1 -0
  24. package/dist/NamirasoftCredentialServerGCPField.d.ts +17 -0
  25. package/dist/NamirasoftCredentialServerGCPField.js +64 -0
  26. package/dist/NamirasoftCredentialServerGCPField.js.map +1 -0
  27. package/dist/NamirasoftCredentialServerGCPTag.d.ts +17 -0
  28. package/dist/NamirasoftCredentialServerGCPTag.js +64 -0
  29. package/dist/NamirasoftCredentialServerGCPTag.js.map +1 -0
  30. package/dist/command/AWSUpdateCommand.js +2 -2
  31. package/dist/command/AWSUpdateCommand.js.map +1 -1
  32. package/dist/command/AzureCategoryCommand.d.ts +4 -0
  33. package/dist/command/AzureCategoryCommand.js +21 -0
  34. package/dist/command/AzureCategoryCommand.js.map +1 -0
  35. package/dist/command/AzureCategoryCreateCommand.d.ts +5 -0
  36. package/dist/command/AzureCategoryCreateCommand.js +49 -0
  37. package/dist/command/AzureCategoryCreateCommand.js.map +1 -0
  38. package/dist/command/AzureCategoryDeleteCommand.d.ts +5 -0
  39. package/dist/command/AzureCategoryDeleteCommand.js +38 -0
  40. package/dist/command/AzureCategoryDeleteCommand.js.map +1 -0
  41. package/dist/command/AzureCategoryGetCommand.d.ts +5 -0
  42. package/dist/command/AzureCategoryGetCommand.js +38 -0
  43. package/dist/command/AzureCategoryGetCommand.js.map +1 -0
  44. package/dist/command/AzureCategoryListCommand.d.ts +5 -0
  45. package/dist/command/AzureCategoryListCommand.js +38 -0
  46. package/dist/command/AzureCategoryListCommand.js.map +1 -0
  47. package/dist/command/AzureCommand.d.ts +4 -0
  48. package/dist/command/AzureCommand.js +23 -0
  49. package/dist/command/AzureCommand.js.map +1 -0
  50. package/dist/command/AzureCreateCommand.d.ts +5 -0
  51. package/dist/command/AzureCreateCommand.js +121 -0
  52. package/dist/command/AzureCreateCommand.js.map +1 -0
  53. package/dist/command/AzureDeleteCommand.d.ts +5 -0
  54. package/dist/command/AzureDeleteCommand.js +38 -0
  55. package/dist/command/AzureDeleteCommand.js.map +1 -0
  56. package/dist/command/AzureFieldCommand.d.ts +4 -0
  57. package/dist/command/AzureFieldCommand.js +23 -0
  58. package/dist/command/AzureFieldCommand.js.map +1 -0
  59. package/dist/command/AzureFieldCreateCommand.d.ts +5 -0
  60. package/dist/command/AzureFieldCreateCommand.js +58 -0
  61. package/dist/command/AzureFieldCreateCommand.js.map +1 -0
  62. package/dist/command/AzureFieldDeleteCommand.d.ts +5 -0
  63. package/dist/command/AzureFieldDeleteCommand.js +38 -0
  64. package/dist/command/AzureFieldDeleteCommand.js.map +1 -0
  65. package/dist/command/AzureFieldGetCommand.d.ts +5 -0
  66. package/dist/command/AzureFieldGetCommand.js +38 -0
  67. package/dist/command/AzureFieldGetCommand.js.map +1 -0
  68. package/dist/command/AzureFieldListCommand.d.ts +5 -0
  69. package/dist/command/AzureFieldListCommand.js +38 -0
  70. package/dist/command/AzureFieldListCommand.js.map +1 -0
  71. package/dist/command/AzureFieldUpdateCommand.d.ts +5 -0
  72. package/dist/command/AzureFieldUpdateCommand.js +58 -0
  73. package/dist/command/AzureFieldUpdateCommand.js.map +1 -0
  74. package/dist/command/AzureGetCommand.d.ts +5 -0
  75. package/dist/command/AzureGetCommand.js +38 -0
  76. package/dist/command/AzureGetCommand.js.map +1 -0
  77. package/dist/command/AzureListCommand.d.ts +5 -0
  78. package/dist/command/AzureListCommand.js +38 -0
  79. package/dist/command/AzureListCommand.js.map +1 -0
  80. package/dist/command/AzureTagCommand.d.ts +4 -0
  81. package/dist/command/AzureTagCommand.js +23 -0
  82. package/dist/command/AzureTagCommand.js.map +1 -0
  83. package/dist/command/AzureTagCreateCommand.d.ts +5 -0
  84. package/dist/command/AzureTagCreateCommand.js +58 -0
  85. package/dist/command/AzureTagCreateCommand.js.map +1 -0
  86. package/dist/command/AzureTagDeleteCommand.d.ts +5 -0
  87. package/dist/command/AzureTagDeleteCommand.js +38 -0
  88. package/dist/command/AzureTagDeleteCommand.js.map +1 -0
  89. package/dist/command/AzureTagGetCommand.d.ts +5 -0
  90. package/dist/command/AzureTagGetCommand.js +38 -0
  91. package/dist/command/AzureTagGetCommand.js.map +1 -0
  92. package/dist/command/AzureTagListCommand.d.ts +5 -0
  93. package/dist/command/AzureTagListCommand.js +38 -0
  94. package/dist/command/AzureTagListCommand.js.map +1 -0
  95. package/dist/command/AzureTagUpdateCommand.d.ts +5 -0
  96. package/dist/command/AzureTagUpdateCommand.js +58 -0
  97. package/dist/command/AzureTagUpdateCommand.js.map +1 -0
  98. package/dist/command/AzureUpdateCommand.d.ts +5 -0
  99. package/dist/command/AzureUpdateCommand.js +121 -0
  100. package/dist/command/AzureUpdateCommand.js.map +1 -0
  101. package/dist/command/GCPCategoryCommand.d.ts +4 -0
  102. package/dist/command/GCPCategoryCommand.js +21 -0
  103. package/dist/command/GCPCategoryCommand.js.map +1 -0
  104. package/dist/command/GCPCategoryCreateCommand.d.ts +5 -0
  105. package/dist/command/GCPCategoryCreateCommand.js +49 -0
  106. package/dist/command/GCPCategoryCreateCommand.js.map +1 -0
  107. package/dist/command/GCPCategoryDeleteCommand.d.ts +5 -0
  108. package/dist/command/GCPCategoryDeleteCommand.js +38 -0
  109. package/dist/command/GCPCategoryDeleteCommand.js.map +1 -0
  110. package/dist/command/GCPCategoryGetCommand.d.ts +5 -0
  111. package/dist/command/GCPCategoryGetCommand.js +38 -0
  112. package/dist/command/GCPCategoryGetCommand.js.map +1 -0
  113. package/dist/command/GCPCategoryListCommand.d.ts +5 -0
  114. package/dist/command/GCPCategoryListCommand.js +38 -0
  115. package/dist/command/GCPCategoryListCommand.js.map +1 -0
  116. package/dist/command/GCPCommand.d.ts +4 -0
  117. package/dist/command/GCPCommand.js +23 -0
  118. package/dist/command/GCPCommand.js.map +1 -0
  119. package/dist/command/GCPCreateCommand.d.ts +5 -0
  120. package/dist/command/GCPCreateCommand.js +103 -0
  121. package/dist/command/GCPCreateCommand.js.map +1 -0
  122. package/dist/command/GCPDeleteCommand.d.ts +5 -0
  123. package/dist/command/GCPDeleteCommand.js +38 -0
  124. package/dist/command/GCPDeleteCommand.js.map +1 -0
  125. package/dist/command/GCPFieldCommand.d.ts +4 -0
  126. package/dist/command/GCPFieldCommand.js +23 -0
  127. package/dist/command/GCPFieldCommand.js.map +1 -0
  128. package/dist/command/GCPFieldCreateCommand.d.ts +5 -0
  129. package/dist/command/GCPFieldCreateCommand.js +58 -0
  130. package/dist/command/GCPFieldCreateCommand.js.map +1 -0
  131. package/dist/command/GCPFieldDeleteCommand.d.ts +5 -0
  132. package/dist/command/GCPFieldDeleteCommand.js +38 -0
  133. package/dist/command/GCPFieldDeleteCommand.js.map +1 -0
  134. package/dist/command/GCPFieldGetCommand.d.ts +5 -0
  135. package/dist/command/GCPFieldGetCommand.js +38 -0
  136. package/dist/command/GCPFieldGetCommand.js.map +1 -0
  137. package/dist/command/GCPFieldListCommand.d.ts +5 -0
  138. package/dist/command/GCPFieldListCommand.js +38 -0
  139. package/dist/command/GCPFieldListCommand.js.map +1 -0
  140. package/dist/command/GCPFieldUpdateCommand.d.ts +5 -0
  141. package/dist/command/GCPFieldUpdateCommand.js +58 -0
  142. package/dist/command/GCPFieldUpdateCommand.js.map +1 -0
  143. package/dist/command/GCPGetCommand.d.ts +5 -0
  144. package/dist/command/GCPGetCommand.js +38 -0
  145. package/dist/command/GCPGetCommand.js.map +1 -0
  146. package/dist/command/GCPListCommand.d.ts +5 -0
  147. package/dist/command/GCPListCommand.js +38 -0
  148. package/dist/command/GCPListCommand.js.map +1 -0
  149. package/dist/command/GCPTagCommand.d.ts +4 -0
  150. package/dist/command/GCPTagCommand.js +23 -0
  151. package/dist/command/GCPTagCommand.js.map +1 -0
  152. package/dist/command/GCPTagCreateCommand.d.ts +5 -0
  153. package/dist/command/GCPTagCreateCommand.js +58 -0
  154. package/dist/command/GCPTagCreateCommand.js.map +1 -0
  155. package/dist/command/GCPTagDeleteCommand.d.ts +5 -0
  156. package/dist/command/GCPTagDeleteCommand.js +38 -0
  157. package/dist/command/GCPTagDeleteCommand.js.map +1 -0
  158. package/dist/command/GCPTagGetCommand.d.ts +5 -0
  159. package/dist/command/GCPTagGetCommand.js +38 -0
  160. package/dist/command/GCPTagGetCommand.js.map +1 -0
  161. package/dist/command/GCPTagListCommand.d.ts +5 -0
  162. package/dist/command/GCPTagListCommand.js +38 -0
  163. package/dist/command/GCPTagListCommand.js.map +1 -0
  164. package/dist/command/GCPTagUpdateCommand.d.ts +5 -0
  165. package/dist/command/GCPTagUpdateCommand.js +58 -0
  166. package/dist/command/GCPTagUpdateCommand.js.map +1 -0
  167. package/dist/command/GCPUpdateCommand.d.ts +5 -0
  168. package/dist/command/GCPUpdateCommand.js +103 -0
  169. package/dist/command/GCPUpdateCommand.js.map +1 -0
  170. package/dist/command/cli.js +16 -0
  171. package/dist/command/cli.js.map +1 -1
  172. package/dist/index.d.ts +78 -1
  173. package/dist/index.js +78 -1
  174. package/dist/index.js.map +1 -1
  175. package/dist/meta/AzureCategoryMetaTable.d.ts +15 -0
  176. package/dist/meta/AzureCategoryMetaTable.js +38 -0
  177. package/dist/meta/AzureCategoryMetaTable.js.map +1 -0
  178. package/dist/meta/AzureFieldMetaTable.d.ts +16 -0
  179. package/dist/meta/AzureFieldMetaTable.js +39 -0
  180. package/dist/meta/AzureFieldMetaTable.js.map +1 -0
  181. package/dist/meta/AzureMetaTable.d.ts +19 -0
  182. package/dist/meta/AzureMetaTable.js +42 -0
  183. package/dist/meta/AzureMetaTable.js.map +1 -0
  184. package/dist/meta/AzureTagMetaTable.d.ts +16 -0
  185. package/dist/meta/AzureTagMetaTable.js +39 -0
  186. package/dist/meta/AzureTagMetaTable.js.map +1 -0
  187. package/dist/meta/GCPCategoryMetaTable.d.ts +15 -0
  188. package/dist/meta/GCPCategoryMetaTable.js +38 -0
  189. package/dist/meta/GCPCategoryMetaTable.js.map +1 -0
  190. package/dist/meta/GCPFieldMetaTable.d.ts +16 -0
  191. package/dist/meta/GCPFieldMetaTable.js +39 -0
  192. package/dist/meta/GCPFieldMetaTable.js.map +1 -0
  193. package/dist/meta/GCPMetaTable.d.ts +17 -0
  194. package/dist/meta/GCPMetaTable.js +40 -0
  195. package/dist/meta/GCPMetaTable.js.map +1 -0
  196. package/dist/meta/GCPTagMetaTable.d.ts +16 -0
  197. package/dist/meta/GCPTagMetaTable.js +39 -0
  198. package/dist/meta/GCPTagMetaTable.js.map +1 -0
  199. package/dist/meta/NamirasoftCredentialMetaDatabase.d.ts +16 -0
  200. package/dist/meta/NamirasoftCredentialMetaDatabase.js +16 -0
  201. package/dist/meta/NamirasoftCredentialMetaDatabase.js.map +1 -1
  202. package/dist/row/{AWSInputRow.d.ts → AWSCreateRow.d.ts} +1 -1
  203. package/dist/row/AWSCreateRow.js +3 -0
  204. package/dist/row/AWSCreateRow.js.map +1 -0
  205. package/dist/row/AWSUpdateRow.d.ts +13 -0
  206. package/dist/row/AWSUpdateRow.js +3 -0
  207. package/dist/row/AWSUpdateRow.js.map +1 -0
  208. package/dist/row/AzureCategoryRow.d.ts +8 -0
  209. package/dist/row/AzureCategoryRow.js +3 -0
  210. package/dist/row/AzureCategoryRow.js.map +1 -0
  211. package/dist/row/AzureCreateRow.d.ts +14 -0
  212. package/dist/row/AzureCreateRow.js +3 -0
  213. package/dist/row/AzureCreateRow.js.map +1 -0
  214. package/dist/row/AzureFieldRow.d.ts +9 -0
  215. package/dist/row/AzureFieldRow.js +3 -0
  216. package/dist/row/AzureFieldRow.js.map +1 -0
  217. package/dist/row/AzureFullRow.d.ts +18 -0
  218. package/dist/row/AzureFullRow.js +3 -0
  219. package/dist/row/AzureFullRow.js.map +1 -0
  220. package/dist/row/AzureRow.d.ts +12 -0
  221. package/dist/row/{AWSInputRow.js → AzureRow.js} +1 -1
  222. package/dist/row/AzureRow.js.map +1 -0
  223. package/dist/row/AzureTagRow.d.ts +9 -0
  224. package/dist/row/AzureTagRow.js +3 -0
  225. package/dist/row/AzureTagRow.js.map +1 -0
  226. package/dist/row/AzureUpdateRow.d.ts +14 -0
  227. package/dist/row/AzureUpdateRow.js +3 -0
  228. package/dist/row/AzureUpdateRow.js.map +1 -0
  229. package/dist/row/GCPCategoryRow.d.ts +8 -0
  230. package/dist/row/GCPCategoryRow.js +3 -0
  231. package/dist/row/GCPCategoryRow.js.map +1 -0
  232. package/dist/row/GCPCreateRow.d.ts +12 -0
  233. package/dist/row/GCPCreateRow.js +3 -0
  234. package/dist/row/GCPCreateRow.js.map +1 -0
  235. package/dist/row/GCPFieldRow.d.ts +9 -0
  236. package/dist/row/GCPFieldRow.js +3 -0
  237. package/dist/row/GCPFieldRow.js.map +1 -0
  238. package/dist/row/GCPFullRow.d.ts +16 -0
  239. package/dist/row/GCPFullRow.js +3 -0
  240. package/dist/row/GCPFullRow.js.map +1 -0
  241. package/dist/row/GCPRow.d.ts +10 -0
  242. package/dist/row/GCPRow.js +3 -0
  243. package/dist/row/GCPRow.js.map +1 -0
  244. package/dist/row/GCPTagRow.d.ts +9 -0
  245. package/dist/row/GCPTagRow.js +3 -0
  246. package/dist/row/GCPTagRow.js.map +1 -0
  247. package/dist/row/GCPUpdateRow.d.ts +12 -0
  248. package/dist/row/GCPUpdateRow.js +3 -0
  249. package/dist/row/GCPUpdateRow.js.map +1 -0
  250. package/package.json +2 -2
  251. package/src/NamirasoftCredentialServer.ts +25 -1
  252. package/src/NamirasoftCredentialServerAWS.ts +4 -3
  253. package/src/NamirasoftCredentialServerAzure.ts +72 -0
  254. package/src/NamirasoftCredentialServerAzureCategory.ts +63 -0
  255. package/src/NamirasoftCredentialServerAzureField.ts +70 -0
  256. package/src/NamirasoftCredentialServerAzureTag.ts +70 -0
  257. package/src/NamirasoftCredentialServerGCP.ts +72 -0
  258. package/src/NamirasoftCredentialServerGCPCategory.ts +63 -0
  259. package/src/NamirasoftCredentialServerGCPField.ts +70 -0
  260. package/src/NamirasoftCredentialServerGCPTag.ts +70 -0
  261. package/src/command/AWSUpdateCommand.ts +2 -2
  262. package/src/command/AzureCategoryCommand.ts +38 -0
  263. package/src/command/AzureCategoryCreateCommand.ts +56 -0
  264. package/src/command/AzureCategoryDeleteCommand.ts +45 -0
  265. package/src/command/AzureCategoryGetCommand.ts +45 -0
  266. package/src/command/AzureCategoryListCommand.ts +45 -0
  267. package/src/command/AzureCommand.ts +40 -0
  268. package/src/command/AzureCreateCommand.ts +128 -0
  269. package/src/command/AzureDeleteCommand.ts +45 -0
  270. package/src/command/AzureFieldCommand.ts +40 -0
  271. package/src/command/AzureFieldCreateCommand.ts +65 -0
  272. package/src/command/AzureFieldDeleteCommand.ts +45 -0
  273. package/src/command/AzureFieldGetCommand.ts +45 -0
  274. package/src/command/AzureFieldListCommand.ts +45 -0
  275. package/src/command/AzureFieldUpdateCommand.ts +65 -0
  276. package/src/command/AzureGetCommand.ts +45 -0
  277. package/src/command/AzureListCommand.ts +45 -0
  278. package/src/command/AzureTagCommand.ts +40 -0
  279. package/src/command/AzureTagCreateCommand.ts +65 -0
  280. package/src/command/AzureTagDeleteCommand.ts +45 -0
  281. package/src/command/AzureTagGetCommand.ts +45 -0
  282. package/src/command/AzureTagListCommand.ts +45 -0
  283. package/src/command/AzureTagUpdateCommand.ts +65 -0
  284. package/src/command/AzureUpdateCommand.ts +128 -0
  285. package/src/command/GCPCategoryCommand.ts +38 -0
  286. package/src/command/GCPCategoryCreateCommand.ts +56 -0
  287. package/src/command/GCPCategoryDeleteCommand.ts +45 -0
  288. package/src/command/GCPCategoryGetCommand.ts +45 -0
  289. package/src/command/GCPCategoryListCommand.ts +45 -0
  290. package/src/command/GCPCommand.ts +40 -0
  291. package/src/command/GCPCreateCommand.ts +110 -0
  292. package/src/command/GCPDeleteCommand.ts +45 -0
  293. package/src/command/GCPFieldCommand.ts +40 -0
  294. package/src/command/GCPFieldCreateCommand.ts +65 -0
  295. package/src/command/GCPFieldDeleteCommand.ts +45 -0
  296. package/src/command/GCPFieldGetCommand.ts +45 -0
  297. package/src/command/GCPFieldListCommand.ts +45 -0
  298. package/src/command/GCPFieldUpdateCommand.ts +65 -0
  299. package/src/command/GCPGetCommand.ts +45 -0
  300. package/src/command/GCPListCommand.ts +45 -0
  301. package/src/command/GCPTagCommand.ts +40 -0
  302. package/src/command/GCPTagCreateCommand.ts +65 -0
  303. package/src/command/GCPTagDeleteCommand.ts +45 -0
  304. package/src/command/GCPTagGetCommand.ts +45 -0
  305. package/src/command/GCPTagListCommand.ts +45 -0
  306. package/src/command/GCPTagUpdateCommand.ts +65 -0
  307. package/src/command/GCPUpdateCommand.ts +110 -0
  308. package/src/command/cli.ts +16 -0
  309. package/src/index.ts +79 -2
  310. package/src/meta/AzureCategoryMetaTable.ts +58 -0
  311. package/src/meta/AzureFieldMetaTable.ts +60 -0
  312. package/src/meta/AzureMetaTable.ts +66 -0
  313. package/src/meta/AzureTagMetaTable.ts +60 -0
  314. package/src/meta/GCPCategoryMetaTable.ts +58 -0
  315. package/src/meta/GCPFieldMetaTable.ts +60 -0
  316. package/src/meta/GCPMetaTable.ts +62 -0
  317. package/src/meta/GCPTagMetaTable.ts +60 -0
  318. package/src/meta/NamirasoftCredentialMetaDatabase.ts +24 -0
  319. package/src/row/{AWSInputRow.ts → AWSCreateRow.ts} +1 -1
  320. package/src/row/AWSUpdateRow.ts +35 -0
  321. package/src/row/AzureCategoryRow.ts +29 -0
  322. package/src/row/AzureCreateRow.ts +36 -0
  323. package/src/row/AzureFieldRow.ts +30 -0
  324. package/src/row/AzureFullRow.ts +40 -0
  325. package/src/row/AzureRow.ts +33 -0
  326. package/src/row/AzureTagRow.ts +30 -0
  327. package/src/row/AzureUpdateRow.ts +36 -0
  328. package/src/row/GCPCategoryRow.ts +29 -0
  329. package/src/row/GCPCreateRow.ts +34 -0
  330. package/src/row/GCPFieldRow.ts +30 -0
  331. package/src/row/GCPFullRow.ts +38 -0
  332. package/src/row/GCPRow.ts +31 -0
  333. package/src/row/GCPTagRow.ts +30 -0
  334. package/src/row/GCPUpdateRow.ts +34 -0
  335. package/dist/row/AWSInputRow.js.map +0 -1
@@ -0,0 +1,63 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { AzureCategoryRow } from "./row/AzureCategoryRow";
22
+ import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
23
+ import { FilterItem } from "namirasoft-core";
24
+ import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
25
+ import { NamirasoftCredentialServerBase } from "./NamirasoftCredentialServerBase";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftCredentialServerAzureCategory extends NamirasoftCredentialServerBase
29
+ {
30
+ constructor(server: NamirasoftCredentialServer)
31
+ {
32
+ super(server);
33
+ this.List = this.List.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.Create = this.Create.bind(this);
36
+ this.Delete = this.Delete.bind(this);
37
+ }
38
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: AzureCategoryRow[], count: number }>
39
+ {
40
+ let filters_string_value: string = FilterItem.stringify(filters);
41
+ let sorts_string_value: string = SortItem.stringify(sorts);
42
+ let path = `azure/category/list`;
43
+ let { data } = await this.server._get<{ rows: AzureCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
44
+ return data;
45
+ }
46
+ async Get(id: string): Promise<AzureCategoryRow>
47
+ {
48
+ let path = `azure/category/${id}`;
49
+ let { data } = await this.server._get<AzureCategoryRow>(path, {});
50
+ return data;
51
+ }
52
+ async Create(entity_id: string, body: EntityCategoryInputRow): Promise<AzureCategoryRow>
53
+ {
54
+ let path = `azure/category/${entity_id}`;
55
+ let { data } = await this.server._post<AzureCategoryRow>(path, {}, body);
56
+ return data;
57
+ }
58
+ async Delete(entity_id: string, id: number): Promise<void>
59
+ {
60
+ let path = `azure/category/${entity_id}/${id}`;
61
+ await this.server._delete<void>(path, {});
62
+ }
63
+ };
@@ -0,0 +1,70 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { AzureFieldRow } from "./row/AzureFieldRow";
22
+ import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
23
+ import { FilterItem } from "namirasoft-core";
24
+ import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
25
+ import { NamirasoftCredentialServerBase } from "./NamirasoftCredentialServerBase";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftCredentialServerAzureField extends NamirasoftCredentialServerBase
29
+ {
30
+ constructor(server: NamirasoftCredentialServer)
31
+ {
32
+ super(server);
33
+ this.List = this.List.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.Create = this.Create.bind(this);
36
+ this.Update = this.Update.bind(this);
37
+ this.Delete = this.Delete.bind(this);
38
+ }
39
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: AzureFieldRow[], count: number }>
40
+ {
41
+ let filters_string_value: string = FilterItem.stringify(filters);
42
+ let sorts_string_value: string = SortItem.stringify(sorts);
43
+ let path = `azure/field/list`;
44
+ let { data } = await this.server._get<{ rows: AzureFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
45
+ return data;
46
+ }
47
+ async Get(id: string): Promise<AzureFieldRow>
48
+ {
49
+ let path = `azure/field/${id}`;
50
+ let { data } = await this.server._get<AzureFieldRow>(path, {});
51
+ return data;
52
+ }
53
+ async Create(entity_id: string, body: EntityFieldInputRow): Promise<AzureFieldRow>
54
+ {
55
+ let path = `azure/field/${entity_id}`;
56
+ let { data } = await this.server._post<AzureFieldRow>(path, {}, body);
57
+ return data;
58
+ }
59
+ async Update(entity_id: string, id: number, body: EntityFieldInputRow): Promise<AzureFieldRow>
60
+ {
61
+ let path = `azure/field/${entity_id}/${id}`;
62
+ let { data } = await this.server._put<AzureFieldRow>(path, {}, body);
63
+ return data;
64
+ }
65
+ async Delete(entity_id: string, id: number): Promise<void>
66
+ {
67
+ let path = `azure/field/${entity_id}/${id}`;
68
+ await this.server._delete<void>(path, {});
69
+ }
70
+ };
@@ -0,0 +1,70 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { AzureTagRow } from "./row/AzureTagRow";
22
+ import { EntityTagInputRow } from "./row/EntityTagInputRow";
23
+ import { FilterItem } from "namirasoft-core";
24
+ import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
25
+ import { NamirasoftCredentialServerBase } from "./NamirasoftCredentialServerBase";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftCredentialServerAzureTag extends NamirasoftCredentialServerBase
29
+ {
30
+ constructor(server: NamirasoftCredentialServer)
31
+ {
32
+ super(server);
33
+ this.List = this.List.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.Create = this.Create.bind(this);
36
+ this.Update = this.Update.bind(this);
37
+ this.Delete = this.Delete.bind(this);
38
+ }
39
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: AzureTagRow[], count: number }>
40
+ {
41
+ let filters_string_value: string = FilterItem.stringify(filters);
42
+ let sorts_string_value: string = SortItem.stringify(sorts);
43
+ let path = `azure/tag/list`;
44
+ let { data } = await this.server._get<{ rows: AzureTagRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
45
+ return data;
46
+ }
47
+ async Get(id: string): Promise<AzureTagRow>
48
+ {
49
+ let path = `azure/tag/${id}`;
50
+ let { data } = await this.server._get<AzureTagRow>(path, {});
51
+ return data;
52
+ }
53
+ async Create(entity_id: string, body: EntityTagInputRow): Promise<AzureTagRow>
54
+ {
55
+ let path = `azure/tag/${entity_id}`;
56
+ let { data } = await this.server._post<AzureTagRow>(path, {}, body);
57
+ return data;
58
+ }
59
+ async Update(entity_id: string, id: number, body: EntityTagInputRow): Promise<AzureTagRow>
60
+ {
61
+ let path = `azure/tag/${entity_id}/${id}`;
62
+ let { data } = await this.server._put<AzureTagRow>(path, {}, body);
63
+ return data;
64
+ }
65
+ async Delete(entity_id: string, id: number): Promise<void>
66
+ {
67
+ let path = `azure/tag/${entity_id}/${id}`;
68
+ await this.server._delete<void>(path, {});
69
+ }
70
+ };
@@ -0,0 +1,72 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { FilterItem } from "namirasoft-core";
22
+ import { GCPCreateRow } from "./row/GCPCreateRow";
23
+ import { GCPFullRow } from "./row/GCPFullRow";
24
+ import { GCPRow } from "./row/GCPRow";
25
+ import { GCPUpdateRow } from "./row/GCPUpdateRow";
26
+ import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
27
+ import { NamirasoftCredentialServerBase } from "./NamirasoftCredentialServerBase";
28
+ import { SortItem } from "namirasoft-core";
29
+
30
+ export class NamirasoftCredentialServerGCP extends NamirasoftCredentialServerBase
31
+ {
32
+ constructor(server: NamirasoftCredentialServer)
33
+ {
34
+ super(server);
35
+ this.List = this.List.bind(this);
36
+ this.Get = this.Get.bind(this);
37
+ this.Create = this.Create.bind(this);
38
+ this.Update = this.Update.bind(this);
39
+ this.Delete = this.Delete.bind(this);
40
+ }
41
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: GCPRow[], count: number }>
42
+ {
43
+ let filters_string_value: string = FilterItem.stringify(filters);
44
+ let sorts_string_value: string = SortItem.stringify(sorts);
45
+ let path = `/gcp/list`;
46
+ let { data } = await this.server._get<{ rows: GCPRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
47
+ return data;
48
+ }
49
+ async Get(id: string): Promise<GCPFullRow>
50
+ {
51
+ let path = `/gcp/${id}`;
52
+ let { data } = await this.server._get<GCPFullRow>(path, {});
53
+ return data;
54
+ }
55
+ async Create(body: GCPCreateRow): Promise<GCPRow>
56
+ {
57
+ let path = `/gcp`;
58
+ let { data } = await this.server._post<GCPRow>(path, {}, body);
59
+ return data;
60
+ }
61
+ async Update(id: string, body: GCPUpdateRow): Promise<GCPRow>
62
+ {
63
+ let path = `/gcp/${id}`;
64
+ let { data } = await this.server._put<GCPRow>(path, {}, body);
65
+ return data;
66
+ }
67
+ async Delete(id: string): Promise<void>
68
+ {
69
+ let path = `/gcp/${id}`;
70
+ await this.server._delete<void>(path, {});
71
+ }
72
+ };
@@ -0,0 +1,63 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
22
+ import { FilterItem } from "namirasoft-core";
23
+ import { GCPCategoryRow } from "./row/GCPCategoryRow";
24
+ import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
25
+ import { NamirasoftCredentialServerBase } from "./NamirasoftCredentialServerBase";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftCredentialServerGCPCategory extends NamirasoftCredentialServerBase
29
+ {
30
+ constructor(server: NamirasoftCredentialServer)
31
+ {
32
+ super(server);
33
+ this.List = this.List.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.Create = this.Create.bind(this);
36
+ this.Delete = this.Delete.bind(this);
37
+ }
38
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: GCPCategoryRow[], count: number }>
39
+ {
40
+ let filters_string_value: string = FilterItem.stringify(filters);
41
+ let sorts_string_value: string = SortItem.stringify(sorts);
42
+ let path = `gcp/category/list`;
43
+ let { data } = await this.server._get<{ rows: GCPCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
44
+ return data;
45
+ }
46
+ async Get(id: string): Promise<GCPCategoryRow>
47
+ {
48
+ let path = `gcp/category/${id}`;
49
+ let { data } = await this.server._get<GCPCategoryRow>(path, {});
50
+ return data;
51
+ }
52
+ async Create(entity_id: string, body: EntityCategoryInputRow): Promise<GCPCategoryRow>
53
+ {
54
+ let path = `gcp/category/${entity_id}`;
55
+ let { data } = await this.server._post<GCPCategoryRow>(path, {}, body);
56
+ return data;
57
+ }
58
+ async Delete(entity_id: string, id: number): Promise<void>
59
+ {
60
+ let path = `gcp/category/${entity_id}/${id}`;
61
+ await this.server._delete<void>(path, {});
62
+ }
63
+ };
@@ -0,0 +1,70 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
22
+ import { FilterItem } from "namirasoft-core";
23
+ import { GCPFieldRow } from "./row/GCPFieldRow";
24
+ import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
25
+ import { NamirasoftCredentialServerBase } from "./NamirasoftCredentialServerBase";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftCredentialServerGCPField extends NamirasoftCredentialServerBase
29
+ {
30
+ constructor(server: NamirasoftCredentialServer)
31
+ {
32
+ super(server);
33
+ this.List = this.List.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.Create = this.Create.bind(this);
36
+ this.Update = this.Update.bind(this);
37
+ this.Delete = this.Delete.bind(this);
38
+ }
39
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: GCPFieldRow[], count: number }>
40
+ {
41
+ let filters_string_value: string = FilterItem.stringify(filters);
42
+ let sorts_string_value: string = SortItem.stringify(sorts);
43
+ let path = `gcp/field/list`;
44
+ let { data } = await this.server._get<{ rows: GCPFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
45
+ return data;
46
+ }
47
+ async Get(id: string): Promise<GCPFieldRow>
48
+ {
49
+ let path = `gcp/field/${id}`;
50
+ let { data } = await this.server._get<GCPFieldRow>(path, {});
51
+ return data;
52
+ }
53
+ async Create(entity_id: string, body: EntityFieldInputRow): Promise<GCPFieldRow>
54
+ {
55
+ let path = `gcp/field/${entity_id}`;
56
+ let { data } = await this.server._post<GCPFieldRow>(path, {}, body);
57
+ return data;
58
+ }
59
+ async Update(entity_id: string, id: number, body: EntityFieldInputRow): Promise<GCPFieldRow>
60
+ {
61
+ let path = `gcp/field/${entity_id}/${id}`;
62
+ let { data } = await this.server._put<GCPFieldRow>(path, {}, body);
63
+ return data;
64
+ }
65
+ async Delete(entity_id: string, id: number): Promise<void>
66
+ {
67
+ let path = `gcp/field/${entity_id}/${id}`;
68
+ await this.server._delete<void>(path, {});
69
+ }
70
+ };
@@ -0,0 +1,70 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { EntityTagInputRow } from "./row/EntityTagInputRow";
22
+ import { FilterItem } from "namirasoft-core";
23
+ import { GCPTagRow } from "./row/GCPTagRow";
24
+ import { NamirasoftCredentialServer } from "./NamirasoftCredentialServer";
25
+ import { NamirasoftCredentialServerBase } from "./NamirasoftCredentialServerBase";
26
+ import { SortItem } from "namirasoft-core";
27
+
28
+ export class NamirasoftCredentialServerGCPTag extends NamirasoftCredentialServerBase
29
+ {
30
+ constructor(server: NamirasoftCredentialServer)
31
+ {
32
+ super(server);
33
+ this.List = this.List.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.Create = this.Create.bind(this);
36
+ this.Update = this.Update.bind(this);
37
+ this.Delete = this.Delete.bind(this);
38
+ }
39
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: GCPTagRow[], count: number }>
40
+ {
41
+ let filters_string_value: string = FilterItem.stringify(filters);
42
+ let sorts_string_value: string = SortItem.stringify(sorts);
43
+ let path = `gcp/tag/list`;
44
+ let { data } = await this.server._get<{ rows: GCPTagRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
45
+ return data;
46
+ }
47
+ async Get(id: string): Promise<GCPTagRow>
48
+ {
49
+ let path = `gcp/tag/${id}`;
50
+ let { data } = await this.server._get<GCPTagRow>(path, {});
51
+ return data;
52
+ }
53
+ async Create(entity_id: string, body: EntityTagInputRow): Promise<GCPTagRow>
54
+ {
55
+ let path = `gcp/tag/${entity_id}`;
56
+ let { data } = await this.server._post<GCPTagRow>(path, {}, body);
57
+ return data;
58
+ }
59
+ async Update(entity_id: string, id: number, body: EntityTagInputRow): Promise<GCPTagRow>
60
+ {
61
+ let path = `gcp/tag/${entity_id}/${id}`;
62
+ let { data } = await this.server._put<GCPTagRow>(path, {}, body);
63
+ return data;
64
+ }
65
+ async Delete(entity_id: string, id: number): Promise<void>
66
+ {
67
+ let path = `gcp/tag/${entity_id}/${id}`;
68
+ await this.server._delete<void>(path, {});
69
+ }
70
+ };
@@ -48,7 +48,7 @@ export class AWSUpdateCommand extends BaseFinalCommand
48
48
  name: "access_key",
49
49
  short: "",
50
50
  description: "Provides the value of 'access_key' in body",
51
- optional: false,
51
+ optional: true,
52
52
  args: ["access_key"],
53
53
  defaults: [""]
54
54
  },
@@ -56,7 +56,7 @@ export class AWSUpdateCommand extends BaseFinalCommand
56
56
  name: "secret_key",
57
57
  short: "",
58
58
  description: "Provides the value of 'secret_key' in body",
59
- optional: false,
59
+ optional: true,
60
60
  args: ["secret_key"],
61
61
  defaults: [""]
62
62
  },
@@ -0,0 +1,38 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { AzureCategoryCreateCommand } from "./AzureCategoryCreateCommand";
22
+ import { AzureCategoryDeleteCommand } from "./AzureCategoryDeleteCommand";
23
+ import { AzureCategoryGetCommand } from "./AzureCategoryGetCommand";
24
+ import { AzureCategoryListCommand } from "./AzureCategoryListCommand";
25
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
26
+
27
+ export class AzureCategoryCommand extends BaseNavigatorCommand
28
+ {
29
+ constructor(argv: string[])
30
+ {
31
+ super(argv, {
32
+ "list": AzureCategoryListCommand,
33
+ "get": AzureCategoryGetCommand,
34
+ "create": AzureCategoryCreateCommand,
35
+ "delete": AzureCategoryDeleteCommand,
36
+ });
37
+ }
38
+ };
@@ -0,0 +1,56 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class AzureCategoryCreateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["entity_id"], [
31
+ {
32
+ name: "category_id",
33
+ short: "",
34
+ description: "Provides the value of 'category_id' in body",
35
+ optional: false,
36
+ args: ["category_id"],
37
+ defaults: [""]
38
+ }
39
+ ]);
40
+ }
41
+ override async exec()
42
+ {
43
+ let token = this.app.storage.getNSAToken();
44
+ if (token == null)
45
+ throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
46
+ let storage = new IStorageMemory();
47
+ let manager = new TokenManager(storage, () => { });
48
+ manager.setValue(token, false);
49
+ let url = this.app.storage.getItem("ns-credential-server-url");
50
+ let server = new NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
51
+ let ans = await server.azure_category.Create(this.arg_values[0], {
52
+ category_id: this.option_values.category_id
53
+ });
54
+ this.app.logger.success(JSON.stringify(ans));
55
+ }
56
+ };
@@ -0,0 +1,45 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class AzureCategoryDeleteCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["entity_id", "id"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-credential-server-url");
41
+ let server = new NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.azure_category.Delete(this.arg_values[0], this.arg_values[1]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };