namirasoft-credential 1.4.2 → 1.4.5

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 (254) hide show
  1. package/dist/NamirasoftCredentialServer.js +1 -1
  2. package/dist/NamirasoftCredentialServerAWS.d.ts +1 -0
  3. package/dist/NamirasoftCredentialServerAWS.js +8 -0
  4. package/dist/NamirasoftCredentialServerAWS.js.map +1 -1
  5. package/dist/NamirasoftCredentialServerAzure.d.ts +1 -0
  6. package/dist/NamirasoftCredentialServerAzure.js +8 -0
  7. package/dist/NamirasoftCredentialServerAzure.js.map +1 -1
  8. package/dist/NamirasoftCredentialServerGCP.d.ts +1 -0
  9. package/dist/NamirasoftCredentialServerGCP.js +8 -0
  10. package/dist/NamirasoftCredentialServerGCP.js.map +1 -1
  11. package/dist/command/AWSCategoryCreateCommand.js +1 -1
  12. package/dist/command/AWSCategoryCreateCommand.js.map +1 -1
  13. package/dist/command/AWSCategoryDeleteCommand.js +1 -1
  14. package/dist/command/AWSCategoryDeleteCommand.js.map +1 -1
  15. package/dist/command/AWSCategoryGetCommand.js +1 -1
  16. package/dist/command/AWSCategoryGetCommand.js.map +1 -1
  17. package/dist/command/AWSCategoryListCommand.js +1 -1
  18. package/dist/command/AWSCategoryListCommand.js.map +1 -1
  19. package/dist/command/AWSCommand.js +2 -0
  20. package/dist/command/AWSCommand.js.map +1 -1
  21. package/dist/command/AWSCreateCommand.js +2 -2
  22. package/dist/command/AWSCreateCommand.js.map +1 -1
  23. package/dist/command/AWSDeleteCommand.js +1 -1
  24. package/dist/command/AWSDeleteCommand.js.map +1 -1
  25. package/dist/command/AWSFieldCreateCommand.js +1 -1
  26. package/dist/command/AWSFieldCreateCommand.js.map +1 -1
  27. package/dist/command/AWSFieldDeleteCommand.js +1 -1
  28. package/dist/command/AWSFieldDeleteCommand.js.map +1 -1
  29. package/dist/command/AWSFieldGetCommand.js +1 -1
  30. package/dist/command/AWSFieldGetCommand.js.map +1 -1
  31. package/dist/command/AWSFieldListCommand.js +1 -1
  32. package/dist/command/AWSFieldListCommand.js.map +1 -1
  33. package/dist/command/AWSFieldUpdateCommand.js +1 -1
  34. package/dist/command/AWSFieldUpdateCommand.js.map +1 -1
  35. package/dist/command/AWSGetCommand.js +1 -1
  36. package/dist/command/AWSGetCommand.js.map +1 -1
  37. package/dist/command/AWSListCommand.js +1 -1
  38. package/dist/command/AWSListCommand.js.map +1 -1
  39. package/dist/command/AWSTagCreateCommand.js +1 -1
  40. package/dist/command/AWSTagCreateCommand.js.map +1 -1
  41. package/dist/command/AWSTagDeleteCommand.js +1 -1
  42. package/dist/command/AWSTagDeleteCommand.js.map +1 -1
  43. package/dist/command/AWSTagGetCommand.js +1 -1
  44. package/dist/command/AWSTagGetCommand.js.map +1 -1
  45. package/dist/command/AWSTagListCommand.js +1 -1
  46. package/dist/command/AWSTagListCommand.js.map +1 -1
  47. package/dist/command/AWSTagUpdateCommand.js +1 -1
  48. package/dist/command/AWSTagUpdateCommand.js.map +1 -1
  49. package/dist/command/AWSUpdateCommand.js +2 -2
  50. package/dist/command/AWSUpdateCommand.js.map +1 -1
  51. package/dist/command/AWS_GetForCommand.d.ts +5 -0
  52. package/dist/command/AWS_GetForCommand.js +38 -0
  53. package/dist/command/AWS_GetForCommand.js.map +1 -0
  54. package/dist/command/AzureCategoryCreateCommand.js +1 -1
  55. package/dist/command/AzureCategoryCreateCommand.js.map +1 -1
  56. package/dist/command/AzureCategoryDeleteCommand.js +1 -1
  57. package/dist/command/AzureCategoryDeleteCommand.js.map +1 -1
  58. package/dist/command/AzureCategoryGetCommand.js +1 -1
  59. package/dist/command/AzureCategoryGetCommand.js.map +1 -1
  60. package/dist/command/AzureCategoryListCommand.js +1 -1
  61. package/dist/command/AzureCategoryListCommand.js.map +1 -1
  62. package/dist/command/AzureCommand.js +2 -0
  63. package/dist/command/AzureCommand.js.map +1 -1
  64. package/dist/command/AzureCreateCommand.js +2 -2
  65. package/dist/command/AzureCreateCommand.js.map +1 -1
  66. package/dist/command/AzureDeleteCommand.js +1 -1
  67. package/dist/command/AzureDeleteCommand.js.map +1 -1
  68. package/dist/command/AzureFieldCreateCommand.js +1 -1
  69. package/dist/command/AzureFieldCreateCommand.js.map +1 -1
  70. package/dist/command/AzureFieldDeleteCommand.js +1 -1
  71. package/dist/command/AzureFieldDeleteCommand.js.map +1 -1
  72. package/dist/command/AzureFieldGetCommand.js +1 -1
  73. package/dist/command/AzureFieldGetCommand.js.map +1 -1
  74. package/dist/command/AzureFieldListCommand.js +1 -1
  75. package/dist/command/AzureFieldListCommand.js.map +1 -1
  76. package/dist/command/AzureFieldUpdateCommand.js +1 -1
  77. package/dist/command/AzureFieldUpdateCommand.js.map +1 -1
  78. package/dist/command/AzureGetCommand.js +1 -1
  79. package/dist/command/AzureGetCommand.js.map +1 -1
  80. package/dist/command/AzureListCommand.js +1 -1
  81. package/dist/command/AzureListCommand.js.map +1 -1
  82. package/dist/command/AzureTagCreateCommand.js +1 -1
  83. package/dist/command/AzureTagCreateCommand.js.map +1 -1
  84. package/dist/command/AzureTagDeleteCommand.js +1 -1
  85. package/dist/command/AzureTagDeleteCommand.js.map +1 -1
  86. package/dist/command/AzureTagGetCommand.js +1 -1
  87. package/dist/command/AzureTagGetCommand.js.map +1 -1
  88. package/dist/command/AzureTagListCommand.js +1 -1
  89. package/dist/command/AzureTagListCommand.js.map +1 -1
  90. package/dist/command/AzureTagUpdateCommand.js +1 -1
  91. package/dist/command/AzureTagUpdateCommand.js.map +1 -1
  92. package/dist/command/AzureUpdateCommand.js +2 -2
  93. package/dist/command/AzureUpdateCommand.js.map +1 -1
  94. package/dist/command/Azure_GetForCommand.d.ts +5 -0
  95. package/dist/command/Azure_GetForCommand.js +38 -0
  96. package/dist/command/Azure_GetForCommand.js.map +1 -0
  97. package/dist/command/GCPCategoryCreateCommand.js +1 -1
  98. package/dist/command/GCPCategoryCreateCommand.js.map +1 -1
  99. package/dist/command/GCPCategoryDeleteCommand.js +1 -1
  100. package/dist/command/GCPCategoryDeleteCommand.js.map +1 -1
  101. package/dist/command/GCPCategoryGetCommand.js +1 -1
  102. package/dist/command/GCPCategoryGetCommand.js.map +1 -1
  103. package/dist/command/GCPCategoryListCommand.js +1 -1
  104. package/dist/command/GCPCategoryListCommand.js.map +1 -1
  105. package/dist/command/GCPCommand.js +2 -0
  106. package/dist/command/GCPCommand.js.map +1 -1
  107. package/dist/command/GCPCreateCommand.js +2 -2
  108. package/dist/command/GCPCreateCommand.js.map +1 -1
  109. package/dist/command/GCPDeleteCommand.js +1 -1
  110. package/dist/command/GCPDeleteCommand.js.map +1 -1
  111. package/dist/command/GCPFieldCreateCommand.js +1 -1
  112. package/dist/command/GCPFieldCreateCommand.js.map +1 -1
  113. package/dist/command/GCPFieldDeleteCommand.js +1 -1
  114. package/dist/command/GCPFieldDeleteCommand.js.map +1 -1
  115. package/dist/command/GCPFieldGetCommand.js +1 -1
  116. package/dist/command/GCPFieldGetCommand.js.map +1 -1
  117. package/dist/command/GCPFieldListCommand.js +1 -1
  118. package/dist/command/GCPFieldListCommand.js.map +1 -1
  119. package/dist/command/GCPFieldUpdateCommand.js +1 -1
  120. package/dist/command/GCPFieldUpdateCommand.js.map +1 -1
  121. package/dist/command/GCPGetCommand.js +1 -1
  122. package/dist/command/GCPGetCommand.js.map +1 -1
  123. package/dist/command/GCPListCommand.js +1 -1
  124. package/dist/command/GCPListCommand.js.map +1 -1
  125. package/dist/command/GCPTagCreateCommand.js +1 -1
  126. package/dist/command/GCPTagCreateCommand.js.map +1 -1
  127. package/dist/command/GCPTagDeleteCommand.js +1 -1
  128. package/dist/command/GCPTagDeleteCommand.js.map +1 -1
  129. package/dist/command/GCPTagGetCommand.js +1 -1
  130. package/dist/command/GCPTagGetCommand.js.map +1 -1
  131. package/dist/command/GCPTagListCommand.js +1 -1
  132. package/dist/command/GCPTagListCommand.js.map +1 -1
  133. package/dist/command/GCPTagUpdateCommand.js +1 -1
  134. package/dist/command/GCPTagUpdateCommand.js.map +1 -1
  135. package/dist/command/GCPUpdateCommand.js +2 -2
  136. package/dist/command/GCPUpdateCommand.js.map +1 -1
  137. package/dist/command/GCP_GetForCommand.d.ts +5 -0
  138. package/dist/command/GCP_GetForCommand.js +38 -0
  139. package/dist/command/GCP_GetForCommand.js.map +1 -0
  140. package/dist/command/HealthzGetCommand.js +1 -1
  141. package/dist/command/HealthzGetCommand.js.map +1 -1
  142. package/dist/command/ValueListCommand.js +1 -1
  143. package/dist/command/ValueListCommand.js.map +1 -1
  144. package/dist/index.d.ts +3 -0
  145. package/dist/index.js +3 -0
  146. package/dist/index.js.map +1 -1
  147. package/dist/meta/AWSMetaTable.js +2 -2
  148. package/dist/meta/AWSMetaTable.js.map +1 -1
  149. package/dist/meta/AzureMetaTable.js +2 -2
  150. package/dist/meta/AzureMetaTable.js.map +1 -1
  151. package/dist/meta/GCPMetaTable.js +2 -2
  152. package/dist/meta/GCPMetaTable.js.map +1 -1
  153. package/dist/meta/NamirasoftCredentialMetaDatabase.js +1 -1
  154. package/dist/meta/NamirasoftCredentialMetaDatabase.js.map +1 -1
  155. package/dist/row/AWSCreateRow.d.ts +1 -1
  156. package/dist/row/AWSFullRow.d.ts +2 -2
  157. package/dist/row/AWSRow.d.ts +2 -2
  158. package/dist/row/AWSUpdateRow.d.ts +1 -1
  159. package/dist/row/AzureCreateRow.d.ts +1 -1
  160. package/dist/row/AzureFullRow.d.ts +2 -2
  161. package/dist/row/AzureRow.d.ts +2 -2
  162. package/dist/row/AzureUpdateRow.d.ts +1 -1
  163. package/dist/row/GCPCreateRow.d.ts +1 -1
  164. package/dist/row/GCPFullRow.d.ts +2 -2
  165. package/dist/row/GCPRow.d.ts +2 -2
  166. package/dist/row/GCPUpdateRow.d.ts +1 -1
  167. package/logo.png +0 -0
  168. package/package.json +5 -5
  169. package/src/NamirasoftCredentialServer.ts +1 -1
  170. package/src/NamirasoftCredentialServerAWS.ts +7 -0
  171. package/src/NamirasoftCredentialServerAzure.ts +7 -0
  172. package/src/NamirasoftCredentialServerGCP.ts +7 -0
  173. package/src/command/AWSCategoryCreateCommand.ts +2 -2
  174. package/src/command/AWSCategoryDeleteCommand.ts +2 -2
  175. package/src/command/AWSCategoryGetCommand.ts +2 -2
  176. package/src/command/AWSCategoryListCommand.ts +2 -2
  177. package/src/command/AWSCommand.ts +2 -0
  178. package/src/command/AWSCreateCommand.ts +3 -3
  179. package/src/command/AWSDeleteCommand.ts +2 -2
  180. package/src/command/AWSFieldCreateCommand.ts +2 -2
  181. package/src/command/AWSFieldDeleteCommand.ts +2 -2
  182. package/src/command/AWSFieldGetCommand.ts +2 -2
  183. package/src/command/AWSFieldListCommand.ts +2 -2
  184. package/src/command/AWSFieldUpdateCommand.ts +2 -2
  185. package/src/command/AWSGetCommand.ts +2 -2
  186. package/src/command/AWSListCommand.ts +2 -2
  187. package/src/command/AWSTagCreateCommand.ts +2 -2
  188. package/src/command/AWSTagDeleteCommand.ts +2 -2
  189. package/src/command/AWSTagGetCommand.ts +2 -2
  190. package/src/command/AWSTagListCommand.ts +2 -2
  191. package/src/command/AWSTagUpdateCommand.ts +2 -2
  192. package/src/command/AWSUpdateCommand.ts +3 -3
  193. package/src/command/AWS_GetForCommand.ts +45 -0
  194. package/src/command/AzureCategoryCreateCommand.ts +2 -2
  195. package/src/command/AzureCategoryDeleteCommand.ts +2 -2
  196. package/src/command/AzureCategoryGetCommand.ts +2 -2
  197. package/src/command/AzureCategoryListCommand.ts +2 -2
  198. package/src/command/AzureCommand.ts +2 -0
  199. package/src/command/AzureCreateCommand.ts +3 -3
  200. package/src/command/AzureDeleteCommand.ts +2 -2
  201. package/src/command/AzureFieldCreateCommand.ts +2 -2
  202. package/src/command/AzureFieldDeleteCommand.ts +2 -2
  203. package/src/command/AzureFieldGetCommand.ts +2 -2
  204. package/src/command/AzureFieldListCommand.ts +2 -2
  205. package/src/command/AzureFieldUpdateCommand.ts +2 -2
  206. package/src/command/AzureGetCommand.ts +2 -2
  207. package/src/command/AzureListCommand.ts +2 -2
  208. package/src/command/AzureTagCreateCommand.ts +2 -2
  209. package/src/command/AzureTagDeleteCommand.ts +2 -2
  210. package/src/command/AzureTagGetCommand.ts +2 -2
  211. package/src/command/AzureTagListCommand.ts +2 -2
  212. package/src/command/AzureTagUpdateCommand.ts +2 -2
  213. package/src/command/AzureUpdateCommand.ts +3 -3
  214. package/src/command/Azure_GetForCommand.ts +45 -0
  215. package/src/command/GCPCategoryCreateCommand.ts +2 -2
  216. package/src/command/GCPCategoryDeleteCommand.ts +2 -2
  217. package/src/command/GCPCategoryGetCommand.ts +2 -2
  218. package/src/command/GCPCategoryListCommand.ts +2 -2
  219. package/src/command/GCPCommand.ts +2 -0
  220. package/src/command/GCPCreateCommand.ts +3 -3
  221. package/src/command/GCPDeleteCommand.ts +2 -2
  222. package/src/command/GCPFieldCreateCommand.ts +2 -2
  223. package/src/command/GCPFieldDeleteCommand.ts +2 -2
  224. package/src/command/GCPFieldGetCommand.ts +2 -2
  225. package/src/command/GCPFieldListCommand.ts +2 -2
  226. package/src/command/GCPFieldUpdateCommand.ts +2 -2
  227. package/src/command/GCPGetCommand.ts +2 -2
  228. package/src/command/GCPListCommand.ts +2 -2
  229. package/src/command/GCPTagCreateCommand.ts +2 -2
  230. package/src/command/GCPTagDeleteCommand.ts +2 -2
  231. package/src/command/GCPTagGetCommand.ts +2 -2
  232. package/src/command/GCPTagListCommand.ts +2 -2
  233. package/src/command/GCPTagUpdateCommand.ts +2 -2
  234. package/src/command/GCPUpdateCommand.ts +3 -3
  235. package/src/command/GCP_GetForCommand.ts +45 -0
  236. package/src/command/HealthzGetCommand.ts +2 -2
  237. package/src/command/ValueListCommand.ts +2 -2
  238. package/src/index.ts +3 -0
  239. package/src/meta/AWSMetaTable.ts +2 -2
  240. package/src/meta/AzureMetaTable.ts +2 -2
  241. package/src/meta/GCPMetaTable.ts +2 -2
  242. package/src/meta/NamirasoftCredentialMetaDatabase.ts +1 -1
  243. package/src/row/AWSCreateRow.ts +1 -1
  244. package/src/row/AWSFullRow.ts +2 -2
  245. package/src/row/AWSRow.ts +2 -2
  246. package/src/row/AWSUpdateRow.ts +1 -1
  247. package/src/row/AzureCreateRow.ts +1 -1
  248. package/src/row/AzureFullRow.ts +2 -2
  249. package/src/row/AzureRow.ts +2 -2
  250. package/src/row/AzureUpdateRow.ts +1 -1
  251. package/src/row/GCPCreateRow.ts +1 -1
  252. package/src/row/GCPFullRow.ts +2 -2
  253. package/src/row/GCPRow.ts +2 -2
  254. package/src/row/GCPUpdateRow.ts +1 -1
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AWSTagDeleteCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AWSTagGetCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AWSTagListCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -51,7 +51,7 @@ export class AWSTagUpdateCommand extends BaseFinalCommand
51
51
  let token = this.app.storage.getNSAToken();
52
52
  if (token == null)
53
53
  throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
54
- let storage = new IStorageMemory();
54
+ let storage = new IStorageMemoryDedicated();
55
55
  let manager = new TokenManager(storage, () => { });
56
56
  manager.setValue(token, false);
57
57
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -64,7 +64,7 @@ export class AWSUpdateCommand extends BaseFinalCommand
64
64
  name: "description",
65
65
  short: "",
66
66
  description: "Provides the value of 'description' in body",
67
- optional: false,
67
+ optional: true,
68
68
  args: ["description"],
69
69
  defaults: [""]
70
70
  },
@@ -99,7 +99,7 @@ export class AWSUpdateCommand extends BaseFinalCommand
99
99
  let token = this.app.storage.getNSAToken();
100
100
  if (token == null)
101
101
  throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
102
- let storage = new IStorageMemory();
102
+ let storage = new IStorageMemoryDedicated();
103
103
  let manager = new TokenManager(storage, () => { });
104
104
  manager.setValue(token, false);
105
105
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -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 { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class AWS_GetForCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["user_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 IStorageMemoryDedicated();
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.aws._GetFor(this.arg_values[0], this.arg_values[1]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -43,7 +43,7 @@ export class AzureCategoryCreateCommand extends BaseFinalCommand
43
43
  let token = this.app.storage.getNSAToken();
44
44
  if (token == null)
45
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();
46
+ let storage = new IStorageMemoryDedicated();
47
47
  let manager = new TokenManager(storage, () => { });
48
48
  manager.setValue(token, false);
49
49
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureCategoryDeleteCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureCategoryGetCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureCategoryListCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -23,6 +23,7 @@ import { AzureDeleteCommand } from "./AzureDeleteCommand";
23
23
  import { AzureGetCommand } from "./AzureGetCommand";
24
24
  import { AzureListCommand } from "./AzureListCommand";
25
25
  import { AzureUpdateCommand } from "./AzureUpdateCommand";
26
+ import { Azure_GetForCommand } from "./Azure_GetForCommand";
26
27
  import { BaseNavigatorCommand } from "namirasoft-node-cli";
27
28
 
28
29
  export class AzureCommand extends BaseNavigatorCommand
@@ -31,6 +32,7 @@ export class AzureCommand extends BaseNavigatorCommand
31
32
  {
32
33
  super(argv, {
33
34
  "list": AzureListCommand,
35
+ "_getfor": Azure_GetForCommand,
34
36
  "get": AzureGetCommand,
35
37
  "create": AzureCreateCommand,
36
38
  "update": AzureUpdateCommand,
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -72,7 +72,7 @@ export class AzureCreateCommand extends BaseFinalCommand
72
72
  name: "description",
73
73
  short: "",
74
74
  description: "Provides the value of 'description' in body",
75
- optional: false,
75
+ optional: true,
76
76
  args: ["description"],
77
77
  defaults: [""]
78
78
  },
@@ -107,7 +107,7 @@ export class AzureCreateCommand extends BaseFinalCommand
107
107
  let token = this.app.storage.getNSAToken();
108
108
  if (token == null)
109
109
  throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
110
- let storage = new IStorageMemory();
110
+ let storage = new IStorageMemoryDedicated();
111
111
  let manager = new TokenManager(storage, () => { });
112
112
  manager.setValue(token, false);
113
113
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureDeleteCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -51,7 +51,7 @@ export class AzureFieldCreateCommand extends BaseFinalCommand
51
51
  let token = this.app.storage.getNSAToken();
52
52
  if (token == null)
53
53
  throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
54
- let storage = new IStorageMemory();
54
+ let storage = new IStorageMemoryDedicated();
55
55
  let manager = new TokenManager(storage, () => { });
56
56
  manager.setValue(token, false);
57
57
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureFieldDeleteCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureFieldGetCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureFieldListCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -51,7 +51,7 @@ export class AzureFieldUpdateCommand extends BaseFinalCommand
51
51
  let token = this.app.storage.getNSAToken();
52
52
  if (token == null)
53
53
  throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
54
- let storage = new IStorageMemory();
54
+ let storage = new IStorageMemoryDedicated();
55
55
  let manager = new TokenManager(storage, () => { });
56
56
  manager.setValue(token, false);
57
57
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureGetCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureListCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -51,7 +51,7 @@ export class AzureTagCreateCommand extends BaseFinalCommand
51
51
  let token = this.app.storage.getNSAToken();
52
52
  if (token == null)
53
53
  throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
54
- let storage = new IStorageMemory();
54
+ let storage = new IStorageMemoryDedicated();
55
55
  let manager = new TokenManager(storage, () => { });
56
56
  manager.setValue(token, false);
57
57
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureTagDeleteCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureTagGetCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class AzureTagListCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -51,7 +51,7 @@ export class AzureTagUpdateCommand extends BaseFinalCommand
51
51
  let token = this.app.storage.getNSAToken();
52
52
  if (token == null)
53
53
  throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
54
- let storage = new IStorageMemory();
54
+ let storage = new IStorageMemoryDedicated();
55
55
  let manager = new TokenManager(storage, () => { });
56
56
  manager.setValue(token, false);
57
57
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -72,7 +72,7 @@ export class AzureUpdateCommand extends BaseFinalCommand
72
72
  name: "description",
73
73
  short: "",
74
74
  description: "Provides the value of 'description' in body",
75
- optional: false,
75
+ optional: true,
76
76
  args: ["description"],
77
77
  defaults: [""]
78
78
  },
@@ -107,7 +107,7 @@ export class AzureUpdateCommand extends BaseFinalCommand
107
107
  let token = this.app.storage.getNSAToken();
108
108
  if (token == null)
109
109
  throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
110
- let storage = new IStorageMemory();
110
+ let storage = new IStorageMemoryDedicated();
111
111
  let manager = new TokenManager(storage, () => { });
112
112
  manager.setValue(token, false);
113
113
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -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 { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class Azure_GetForCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["user_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 IStorageMemoryDedicated();
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._GetFor(this.arg_values[0], this.arg_values[1]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -43,7 +43,7 @@ export class GCPCategoryCreateCommand extends BaseFinalCommand
43
43
  let token = this.app.storage.getNSAToken();
44
44
  if (token == null)
45
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();
46
+ let storage = new IStorageMemoryDedicated();
47
47
  let manager = new TokenManager(storage, () => { });
48
48
  manager.setValue(token, false);
49
49
  let url = this.app.storage.getItem("ns-credential-server-url");
@@ -19,7 +19,7 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { BaseFinalCommand } from "namirasoft-node-cli";
22
- import { IStorageMemory } from "namirasoft-core";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
23
  import { NamirasoftCredentialServer } from "../NamirasoftCredentialServer";
24
24
  import { TokenManager } from "namirasoft-account";
25
25
 
@@ -34,7 +34,7 @@ export class GCPCategoryDeleteCommand extends BaseFinalCommand
34
34
  let token = this.app.storage.getNSAToken();
35
35
  if (token == null)
36
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();
37
+ let storage = new IStorageMemoryDedicated();
38
38
  let manager = new TokenManager(storage, () => { });
39
39
  manager.setValue(token, false);
40
40
  let url = this.app.storage.getItem("ns-credential-server-url");