namirasoft-credential 1.4.0

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 (207) hide show
  1. package/dist/NamirasoftCredentialServer.d.ts +17 -0
  2. package/dist/NamirasoftCredentialServer.js +24 -0
  3. package/dist/NamirasoftCredentialServer.js.map +1 -0
  4. package/dist/NamirasoftCredentialServerAWS.d.ts +18 -0
  5. package/dist/NamirasoftCredentialServerAWS.js +64 -0
  6. package/dist/NamirasoftCredentialServerAWS.js.map +1 -0
  7. package/dist/NamirasoftCredentialServerAWSCategory.d.ts +16 -0
  8. package/dist/NamirasoftCredentialServerAWSCategory.js +56 -0
  9. package/dist/NamirasoftCredentialServerAWSCategory.js.map +1 -0
  10. package/dist/NamirasoftCredentialServerAWSField.d.ts +17 -0
  11. package/dist/NamirasoftCredentialServerAWSField.js +64 -0
  12. package/dist/NamirasoftCredentialServerAWSField.js.map +1 -0
  13. package/dist/NamirasoftCredentialServerAWSTag.d.ts +17 -0
  14. package/dist/NamirasoftCredentialServerAWSTag.js +64 -0
  15. package/dist/NamirasoftCredentialServerAWSTag.js.map +1 -0
  16. package/dist/NamirasoftCredentialServerBase.d.ts +5 -0
  17. package/dist/NamirasoftCredentialServerBase.js +11 -0
  18. package/dist/NamirasoftCredentialServerBase.js.map +1 -0
  19. package/dist/NamirasoftCredentialServerHealthz.d.ts +6 -0
  20. package/dist/NamirasoftCredentialServerHealthz.js +28 -0
  21. package/dist/NamirasoftCredentialServerHealthz.js.map +1 -0
  22. package/dist/NamirasoftCredentialServerValue.d.ts +6 -0
  23. package/dist/NamirasoftCredentialServerValue.js +29 -0
  24. package/dist/NamirasoftCredentialServerValue.js.map +1 -0
  25. package/dist/command/AWSCategoryCommand.d.ts +4 -0
  26. package/dist/command/AWSCategoryCommand.js +21 -0
  27. package/dist/command/AWSCategoryCommand.js.map +1 -0
  28. package/dist/command/AWSCategoryCreateCommand.d.ts +5 -0
  29. package/dist/command/AWSCategoryCreateCommand.js +49 -0
  30. package/dist/command/AWSCategoryCreateCommand.js.map +1 -0
  31. package/dist/command/AWSCategoryDeleteCommand.d.ts +5 -0
  32. package/dist/command/AWSCategoryDeleteCommand.js +38 -0
  33. package/dist/command/AWSCategoryDeleteCommand.js.map +1 -0
  34. package/dist/command/AWSCategoryGetCommand.d.ts +5 -0
  35. package/dist/command/AWSCategoryGetCommand.js +38 -0
  36. package/dist/command/AWSCategoryGetCommand.js.map +1 -0
  37. package/dist/command/AWSCategoryListCommand.d.ts +5 -0
  38. package/dist/command/AWSCategoryListCommand.js +38 -0
  39. package/dist/command/AWSCategoryListCommand.js.map +1 -0
  40. package/dist/command/AWSCommand.d.ts +4 -0
  41. package/dist/command/AWSCommand.js +23 -0
  42. package/dist/command/AWSCommand.js.map +1 -0
  43. package/dist/command/AWSCreateCommand.d.ts +5 -0
  44. package/dist/command/AWSCreateCommand.js +112 -0
  45. package/dist/command/AWSCreateCommand.js.map +1 -0
  46. package/dist/command/AWSDeleteCommand.d.ts +5 -0
  47. package/dist/command/AWSDeleteCommand.js +38 -0
  48. package/dist/command/AWSDeleteCommand.js.map +1 -0
  49. package/dist/command/AWSFieldCommand.d.ts +4 -0
  50. package/dist/command/AWSFieldCommand.js +23 -0
  51. package/dist/command/AWSFieldCommand.js.map +1 -0
  52. package/dist/command/AWSFieldCreateCommand.d.ts +5 -0
  53. package/dist/command/AWSFieldCreateCommand.js +58 -0
  54. package/dist/command/AWSFieldCreateCommand.js.map +1 -0
  55. package/dist/command/AWSFieldDeleteCommand.d.ts +5 -0
  56. package/dist/command/AWSFieldDeleteCommand.js +38 -0
  57. package/dist/command/AWSFieldDeleteCommand.js.map +1 -0
  58. package/dist/command/AWSFieldGetCommand.d.ts +5 -0
  59. package/dist/command/AWSFieldGetCommand.js +38 -0
  60. package/dist/command/AWSFieldGetCommand.js.map +1 -0
  61. package/dist/command/AWSFieldListCommand.d.ts +5 -0
  62. package/dist/command/AWSFieldListCommand.js +38 -0
  63. package/dist/command/AWSFieldListCommand.js.map +1 -0
  64. package/dist/command/AWSFieldUpdateCommand.d.ts +5 -0
  65. package/dist/command/AWSFieldUpdateCommand.js +58 -0
  66. package/dist/command/AWSFieldUpdateCommand.js.map +1 -0
  67. package/dist/command/AWSGetCommand.d.ts +5 -0
  68. package/dist/command/AWSGetCommand.js +38 -0
  69. package/dist/command/AWSGetCommand.js.map +1 -0
  70. package/dist/command/AWSListCommand.d.ts +5 -0
  71. package/dist/command/AWSListCommand.js +38 -0
  72. package/dist/command/AWSListCommand.js.map +1 -0
  73. package/dist/command/AWSTagCommand.d.ts +4 -0
  74. package/dist/command/AWSTagCommand.js +23 -0
  75. package/dist/command/AWSTagCommand.js.map +1 -0
  76. package/dist/command/AWSTagCreateCommand.d.ts +5 -0
  77. package/dist/command/AWSTagCreateCommand.js +58 -0
  78. package/dist/command/AWSTagCreateCommand.js.map +1 -0
  79. package/dist/command/AWSTagDeleteCommand.d.ts +5 -0
  80. package/dist/command/AWSTagDeleteCommand.js +38 -0
  81. package/dist/command/AWSTagDeleteCommand.js.map +1 -0
  82. package/dist/command/AWSTagGetCommand.d.ts +5 -0
  83. package/dist/command/AWSTagGetCommand.js +38 -0
  84. package/dist/command/AWSTagGetCommand.js.map +1 -0
  85. package/dist/command/AWSTagListCommand.d.ts +5 -0
  86. package/dist/command/AWSTagListCommand.js +38 -0
  87. package/dist/command/AWSTagListCommand.js.map +1 -0
  88. package/dist/command/AWSTagUpdateCommand.d.ts +5 -0
  89. package/dist/command/AWSTagUpdateCommand.js +58 -0
  90. package/dist/command/AWSTagUpdateCommand.js.map +1 -0
  91. package/dist/command/AWSUpdateCommand.d.ts +5 -0
  92. package/dist/command/AWSUpdateCommand.js +112 -0
  93. package/dist/command/AWSUpdateCommand.js.map +1 -0
  94. package/dist/command/HealthzCommand.d.ts +4 -0
  95. package/dist/command/HealthzCommand.js +15 -0
  96. package/dist/command/HealthzCommand.js.map +1 -0
  97. package/dist/command/HealthzGetCommand.d.ts +5 -0
  98. package/dist/command/HealthzGetCommand.js +38 -0
  99. package/dist/command/HealthzGetCommand.js.map +1 -0
  100. package/dist/command/ValueCommand.d.ts +4 -0
  101. package/dist/command/ValueCommand.js +15 -0
  102. package/dist/command/ValueCommand.js.map +1 -0
  103. package/dist/command/ValueListCommand.d.ts +5 -0
  104. package/dist/command/ValueListCommand.js +38 -0
  105. package/dist/command/ValueListCommand.js.map +1 -0
  106. package/dist/command/cli.d.ts +2 -0
  107. package/dist/command/cli.js +24 -0
  108. package/dist/command/cli.js.map +1 -0
  109. package/dist/index.d.ts +49 -0
  110. package/dist/index.js +66 -0
  111. package/dist/index.js.map +1 -0
  112. package/dist/meta/AWSCategoryMetaTable.d.ts +15 -0
  113. package/dist/meta/AWSCategoryMetaTable.js +38 -0
  114. package/dist/meta/AWSCategoryMetaTable.js.map +1 -0
  115. package/dist/meta/AWSFieldMetaTable.d.ts +16 -0
  116. package/dist/meta/AWSFieldMetaTable.js +39 -0
  117. package/dist/meta/AWSFieldMetaTable.js.map +1 -0
  118. package/dist/meta/AWSMetaTable.d.ts +18 -0
  119. package/dist/meta/AWSMetaTable.js +41 -0
  120. package/dist/meta/AWSMetaTable.js.map +1 -0
  121. package/dist/meta/AWSTagMetaTable.d.ts +16 -0
  122. package/dist/meta/AWSTagMetaTable.js +39 -0
  123. package/dist/meta/AWSTagMetaTable.js.map +1 -0
  124. package/dist/meta/NamirasoftCredentialMetaDatabase.d.ts +19 -0
  125. package/dist/meta/NamirasoftCredentialMetaDatabase.js +33 -0
  126. package/dist/meta/NamirasoftCredentialMetaDatabase.js.map +1 -0
  127. package/dist/row/AWSCategoryRow.d.ts +8 -0
  128. package/dist/row/AWSCategoryRow.js +3 -0
  129. package/dist/row/AWSCategoryRow.js.map +1 -0
  130. package/dist/row/AWSFieldRow.d.ts +9 -0
  131. package/dist/row/AWSFieldRow.js +3 -0
  132. package/dist/row/AWSFieldRow.js.map +1 -0
  133. package/dist/row/AWSFullRow.d.ts +17 -0
  134. package/dist/row/AWSFullRow.js +3 -0
  135. package/dist/row/AWSFullRow.js.map +1 -0
  136. package/dist/row/AWSInputRow.d.ts +13 -0
  137. package/dist/row/AWSInputRow.js +3 -0
  138. package/dist/row/AWSInputRow.js.map +1 -0
  139. package/dist/row/AWSRow.d.ts +11 -0
  140. package/dist/row/AWSRow.js +3 -0
  141. package/dist/row/AWSRow.js.map +1 -0
  142. package/dist/row/AWSTagRow.d.ts +9 -0
  143. package/dist/row/AWSTagRow.js +3 -0
  144. package/dist/row/AWSTagRow.js.map +1 -0
  145. package/dist/row/EntityCategoryInputRow.d.ts +3 -0
  146. package/dist/row/EntityCategoryInputRow.js +3 -0
  147. package/dist/row/EntityCategoryInputRow.js.map +1 -0
  148. package/dist/row/EntityFieldInputRow.d.ts +4 -0
  149. package/dist/row/EntityFieldInputRow.js +3 -0
  150. package/dist/row/EntityFieldInputRow.js.map +1 -0
  151. package/dist/row/EntityTagInputRow.d.ts +4 -0
  152. package/dist/row/EntityTagInputRow.js +3 -0
  153. package/dist/row/EntityTagInputRow.js.map +1 -0
  154. package/logo.png +0 -0
  155. package/package.json +28 -0
  156. package/src/NamirasoftCredentialServer.ts +48 -0
  157. package/src/NamirasoftCredentialServerAWS.ts +71 -0
  158. package/src/NamirasoftCredentialServerAWSCategory.ts +63 -0
  159. package/src/NamirasoftCredentialServerAWSField.ts +70 -0
  160. package/src/NamirasoftCredentialServerAWSTag.ts +70 -0
  161. package/src/NamirasoftCredentialServerBase.ts +30 -0
  162. package/src/NamirasoftCredentialServerHealthz.ts +36 -0
  163. package/src/NamirasoftCredentialServerValue.ts +37 -0
  164. package/src/command/AWSCategoryCommand.ts +38 -0
  165. package/src/command/AWSCategoryCreateCommand.ts +56 -0
  166. package/src/command/AWSCategoryDeleteCommand.ts +45 -0
  167. package/src/command/AWSCategoryGetCommand.ts +45 -0
  168. package/src/command/AWSCategoryListCommand.ts +45 -0
  169. package/src/command/AWSCommand.ts +40 -0
  170. package/src/command/AWSCreateCommand.ts +119 -0
  171. package/src/command/AWSDeleteCommand.ts +45 -0
  172. package/src/command/AWSFieldCommand.ts +40 -0
  173. package/src/command/AWSFieldCreateCommand.ts +65 -0
  174. package/src/command/AWSFieldDeleteCommand.ts +45 -0
  175. package/src/command/AWSFieldGetCommand.ts +45 -0
  176. package/src/command/AWSFieldListCommand.ts +45 -0
  177. package/src/command/AWSFieldUpdateCommand.ts +65 -0
  178. package/src/command/AWSGetCommand.ts +45 -0
  179. package/src/command/AWSListCommand.ts +45 -0
  180. package/src/command/AWSTagCommand.ts +40 -0
  181. package/src/command/AWSTagCreateCommand.ts +65 -0
  182. package/src/command/AWSTagDeleteCommand.ts +45 -0
  183. package/src/command/AWSTagGetCommand.ts +45 -0
  184. package/src/command/AWSTagListCommand.ts +45 -0
  185. package/src/command/AWSTagUpdateCommand.ts +65 -0
  186. package/src/command/AWSUpdateCommand.ts +119 -0
  187. package/src/command/HealthzCommand.ts +32 -0
  188. package/src/command/HealthzGetCommand.ts +45 -0
  189. package/src/command/ValueCommand.ts +32 -0
  190. package/src/command/ValueListCommand.ts +45 -0
  191. package/src/command/cli.ts +43 -0
  192. package/src/index.ts +69 -0
  193. package/src/meta/AWSCategoryMetaTable.ts +58 -0
  194. package/src/meta/AWSFieldMetaTable.ts +60 -0
  195. package/src/meta/AWSMetaTable.ts +64 -0
  196. package/src/meta/AWSTagMetaTable.ts +60 -0
  197. package/src/meta/NamirasoftCredentialMetaDatabase.ts +60 -0
  198. package/src/row/AWSCategoryRow.ts +29 -0
  199. package/src/row/AWSFieldRow.ts +30 -0
  200. package/src/row/AWSFullRow.ts +39 -0
  201. package/src/row/AWSInputRow.ts +35 -0
  202. package/src/row/AWSRow.ts +32 -0
  203. package/src/row/AWSTagRow.ts +30 -0
  204. package/src/row/EntityCategoryInputRow.ts +24 -0
  205. package/src/row/EntityFieldInputRow.ts +25 -0
  206. package/src/row/EntityTagInputRow.ts +25 -0
  207. package/tsconfig.json +42 -0
@@ -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 AWSFieldListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["filters", "page", "size", "sorts"], []);
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.a_w_s_field.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,65 @@
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 AWSFieldUpdateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["entity_id", "id"], [
31
+ {
32
+ name: "field_id",
33
+ short: "",
34
+ description: "Provides the value of 'field_id' in body",
35
+ optional: false,
36
+ args: ["field_id"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "value",
41
+ short: "",
42
+ description: "Provides the value of 'value' in body",
43
+ optional: true,
44
+ args: ["value"],
45
+ defaults: [""]
46
+ }
47
+ ]);
48
+ }
49
+ override async exec()
50
+ {
51
+ let token = this.app.storage.getNSAToken();
52
+ if (token == null)
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();
55
+ let manager = new TokenManager(storage, () => { });
56
+ manager.setValue(token, false);
57
+ let url = this.app.storage.getItem("ns-credential-server-url");
58
+ let server = new NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
59
+ let ans = await server.a_w_s_field.Update(this.arg_values[0], this.arg_values[1], {
60
+ field_id: this.option_values.field_id,
61
+ value: this.option_values.value
62
+ });
63
+ this.app.logger.success(JSON.stringify(ans));
64
+ }
65
+ };
@@ -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 AWSGetCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["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.aws.Get(this.arg_values[0]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -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 AWSListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["filters", "page", "size", "sorts"], []);
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.aws.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,40 @@
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 { AWSTagCreateCommand } from "./AWSTagCreateCommand";
22
+ import { AWSTagDeleteCommand } from "./AWSTagDeleteCommand";
23
+ import { AWSTagGetCommand } from "./AWSTagGetCommand";
24
+ import { AWSTagListCommand } from "./AWSTagListCommand";
25
+ import { AWSTagUpdateCommand } from "./AWSTagUpdateCommand";
26
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
27
+
28
+ export class AWSTagCommand extends BaseNavigatorCommand
29
+ {
30
+ constructor(argv: string[])
31
+ {
32
+ super(argv, {
33
+ "list": AWSTagListCommand,
34
+ "get": AWSTagGetCommand,
35
+ "create": AWSTagCreateCommand,
36
+ "update": AWSTagUpdateCommand,
37
+ "delete": AWSTagDeleteCommand,
38
+ });
39
+ }
40
+ };
@@ -0,0 +1,65 @@
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 AWSTagCreateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["entity_id"], [
31
+ {
32
+ name: "name",
33
+ short: "",
34
+ description: "Provides the value of 'name' in body",
35
+ optional: false,
36
+ args: ["name"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "value",
41
+ short: "",
42
+ description: "Provides the value of 'value' in body",
43
+ optional: true,
44
+ args: ["value"],
45
+ defaults: [""]
46
+ }
47
+ ]);
48
+ }
49
+ override async exec()
50
+ {
51
+ let token = this.app.storage.getNSAToken();
52
+ if (token == null)
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();
55
+ let manager = new TokenManager(storage, () => { });
56
+ manager.setValue(token, false);
57
+ let url = this.app.storage.getItem("ns-credential-server-url");
58
+ let server = new NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
59
+ let ans = await server.a_w_s_tag.Create(this.arg_values[0], {
60
+ name: this.option_values.name,
61
+ value: this.option_values.value
62
+ });
63
+ this.app.logger.success(JSON.stringify(ans));
64
+ }
65
+ };
@@ -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 AWSTagDeleteCommand 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.a_w_s_tag.Delete(this.arg_values[0], this.arg_values[1]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -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 AWSTagGetCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["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.a_w_s_tag.Get(this.arg_values[0]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -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 AWSTagListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["filters", "page", "size", "sorts"], []);
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.a_w_s_tag.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,65 @@
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 AWSTagUpdateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["entity_id", "id"], [
31
+ {
32
+ name: "name",
33
+ short: "",
34
+ description: "Provides the value of 'name' in body",
35
+ optional: false,
36
+ args: ["name"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "value",
41
+ short: "",
42
+ description: "Provides the value of 'value' in body",
43
+ optional: true,
44
+ args: ["value"],
45
+ defaults: [""]
46
+ }
47
+ ]);
48
+ }
49
+ override async exec()
50
+ {
51
+ let token = this.app.storage.getNSAToken();
52
+ if (token == null)
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();
55
+ let manager = new TokenManager(storage, () => { });
56
+ manager.setValue(token, false);
57
+ let url = this.app.storage.getItem("ns-credential-server-url");
58
+ let server = new NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
59
+ let ans = await server.a_w_s_tag.Update(this.arg_values[0], this.arg_values[1], {
60
+ name: this.option_values.name,
61
+ value: this.option_values.value
62
+ });
63
+ this.app.logger.success(JSON.stringify(ans));
64
+ }
65
+ };
@@ -0,0 +1,119 @@
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 AWSUpdateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], [
31
+ {
32
+ name: "workspace_id",
33
+ short: "",
34
+ description: "Provides the value of 'workspace_id' in body",
35
+ optional: true,
36
+ args: ["workspace_id"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "name",
41
+ short: "",
42
+ description: "Provides the value of 'name' in body",
43
+ optional: false,
44
+ args: ["name"],
45
+ defaults: [""]
46
+ },
47
+ {
48
+ name: "access_key",
49
+ short: "",
50
+ description: "Provides the value of 'access_key' in body",
51
+ optional: false,
52
+ args: ["access_key"],
53
+ defaults: [""]
54
+ },
55
+ {
56
+ name: "secret_key",
57
+ short: "",
58
+ description: "Provides the value of 'secret_key' in body",
59
+ optional: false,
60
+ args: ["secret_key"],
61
+ defaults: [""]
62
+ },
63
+ {
64
+ name: "description",
65
+ short: "",
66
+ description: "Provides the value of 'description' in body",
67
+ optional: false,
68
+ args: ["description"],
69
+ defaults: [""]
70
+ },
71
+ {
72
+ name: "aws_category",
73
+ short: "",
74
+ description: "Provides the value of 'aws_category' in body",
75
+ optional: false,
76
+ args: ["aws_category"],
77
+ defaults: [""]
78
+ },
79
+ {
80
+ name: "aws_field",
81
+ short: "",
82
+ description: "Provides the value of 'aws_field' in body",
83
+ optional: false,
84
+ args: ["aws_field"],
85
+ defaults: [""]
86
+ },
87
+ {
88
+ name: "aws_tag",
89
+ short: "",
90
+ description: "Provides the value of 'aws_tag' in body",
91
+ optional: false,
92
+ args: ["aws_tag"],
93
+ defaults: [""]
94
+ }
95
+ ]);
96
+ }
97
+ override async exec()
98
+ {
99
+ let token = this.app.storage.getNSAToken();
100
+ if (token == null)
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();
103
+ let manager = new TokenManager(storage, () => { });
104
+ manager.setValue(token, false);
105
+ let url = this.app.storage.getItem("ns-credential-server-url");
106
+ let server = new NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
107
+ let ans = await server.aws.Update(this.arg_values[0], {
108
+ workspace_id: this.option_values.workspace_id,
109
+ name: this.option_values.name,
110
+ access_key: this.option_values.access_key,
111
+ secret_key: this.option_values.secret_key,
112
+ description: this.option_values.description,
113
+ aws_category: this.option_values.aws_category,
114
+ aws_field: this.option_values.aws_field,
115
+ aws_tag: this.option_values.aws_tag
116
+ });
117
+ this.app.logger.success(JSON.stringify(ans));
118
+ }
119
+ };