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.
- package/dist/NamirasoftCredentialServer.d.ts +16 -0
- package/dist/NamirasoftCredentialServer.js +17 -1
- package/dist/NamirasoftCredentialServer.js.map +1 -1
- package/dist/NamirasoftCredentialServerAWS.d.ts +4 -3
- package/dist/NamirasoftCredentialServerAWS.js.map +1 -1
- package/dist/NamirasoftCredentialServerAzure.d.ts +19 -0
- package/dist/NamirasoftCredentialServerAzure.js +64 -0
- package/dist/NamirasoftCredentialServerAzure.js.map +1 -0
- package/dist/NamirasoftCredentialServerAzureCategory.d.ts +16 -0
- package/dist/NamirasoftCredentialServerAzureCategory.js +56 -0
- package/dist/NamirasoftCredentialServerAzureCategory.js.map +1 -0
- package/dist/NamirasoftCredentialServerAzureField.d.ts +17 -0
- package/dist/NamirasoftCredentialServerAzureField.js +64 -0
- package/dist/NamirasoftCredentialServerAzureField.js.map +1 -0
- package/dist/NamirasoftCredentialServerAzureTag.d.ts +17 -0
- package/dist/NamirasoftCredentialServerAzureTag.js +64 -0
- package/dist/NamirasoftCredentialServerAzureTag.js.map +1 -0
- package/dist/NamirasoftCredentialServerGCP.d.ts +19 -0
- package/dist/NamirasoftCredentialServerGCP.js +64 -0
- package/dist/NamirasoftCredentialServerGCP.js.map +1 -0
- package/dist/NamirasoftCredentialServerGCPCategory.d.ts +16 -0
- package/dist/NamirasoftCredentialServerGCPCategory.js +56 -0
- package/dist/NamirasoftCredentialServerGCPCategory.js.map +1 -0
- package/dist/NamirasoftCredentialServerGCPField.d.ts +17 -0
- package/dist/NamirasoftCredentialServerGCPField.js +64 -0
- package/dist/NamirasoftCredentialServerGCPField.js.map +1 -0
- package/dist/NamirasoftCredentialServerGCPTag.d.ts +17 -0
- package/dist/NamirasoftCredentialServerGCPTag.js +64 -0
- package/dist/NamirasoftCredentialServerGCPTag.js.map +1 -0
- package/dist/command/AWSUpdateCommand.js +2 -2
- package/dist/command/AWSUpdateCommand.js.map +1 -1
- package/dist/command/AzureCategoryCommand.d.ts +4 -0
- package/dist/command/AzureCategoryCommand.js +21 -0
- package/dist/command/AzureCategoryCommand.js.map +1 -0
- package/dist/command/AzureCategoryCreateCommand.d.ts +5 -0
- package/dist/command/AzureCategoryCreateCommand.js +49 -0
- package/dist/command/AzureCategoryCreateCommand.js.map +1 -0
- package/dist/command/AzureCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/AzureCategoryDeleteCommand.js +38 -0
- package/dist/command/AzureCategoryDeleteCommand.js.map +1 -0
- package/dist/command/AzureCategoryGetCommand.d.ts +5 -0
- package/dist/command/AzureCategoryGetCommand.js +38 -0
- package/dist/command/AzureCategoryGetCommand.js.map +1 -0
- package/dist/command/AzureCategoryListCommand.d.ts +5 -0
- package/dist/command/AzureCategoryListCommand.js +38 -0
- package/dist/command/AzureCategoryListCommand.js.map +1 -0
- package/dist/command/AzureCommand.d.ts +4 -0
- package/dist/command/AzureCommand.js +23 -0
- package/dist/command/AzureCommand.js.map +1 -0
- package/dist/command/AzureCreateCommand.d.ts +5 -0
- package/dist/command/AzureCreateCommand.js +121 -0
- package/dist/command/AzureCreateCommand.js.map +1 -0
- package/dist/command/AzureDeleteCommand.d.ts +5 -0
- package/dist/command/AzureDeleteCommand.js +38 -0
- package/dist/command/AzureDeleteCommand.js.map +1 -0
- package/dist/command/AzureFieldCommand.d.ts +4 -0
- package/dist/command/AzureFieldCommand.js +23 -0
- package/dist/command/AzureFieldCommand.js.map +1 -0
- package/dist/command/AzureFieldCreateCommand.d.ts +5 -0
- package/dist/command/AzureFieldCreateCommand.js +58 -0
- package/dist/command/AzureFieldCreateCommand.js.map +1 -0
- package/dist/command/AzureFieldDeleteCommand.d.ts +5 -0
- package/dist/command/AzureFieldDeleteCommand.js +38 -0
- package/dist/command/AzureFieldDeleteCommand.js.map +1 -0
- package/dist/command/AzureFieldGetCommand.d.ts +5 -0
- package/dist/command/AzureFieldGetCommand.js +38 -0
- package/dist/command/AzureFieldGetCommand.js.map +1 -0
- package/dist/command/AzureFieldListCommand.d.ts +5 -0
- package/dist/command/AzureFieldListCommand.js +38 -0
- package/dist/command/AzureFieldListCommand.js.map +1 -0
- package/dist/command/AzureFieldUpdateCommand.d.ts +5 -0
- package/dist/command/AzureFieldUpdateCommand.js +58 -0
- package/dist/command/AzureFieldUpdateCommand.js.map +1 -0
- package/dist/command/AzureGetCommand.d.ts +5 -0
- package/dist/command/AzureGetCommand.js +38 -0
- package/dist/command/AzureGetCommand.js.map +1 -0
- package/dist/command/AzureListCommand.d.ts +5 -0
- package/dist/command/AzureListCommand.js +38 -0
- package/dist/command/AzureListCommand.js.map +1 -0
- package/dist/command/AzureTagCommand.d.ts +4 -0
- package/dist/command/AzureTagCommand.js +23 -0
- package/dist/command/AzureTagCommand.js.map +1 -0
- package/dist/command/AzureTagCreateCommand.d.ts +5 -0
- package/dist/command/AzureTagCreateCommand.js +58 -0
- package/dist/command/AzureTagCreateCommand.js.map +1 -0
- package/dist/command/AzureTagDeleteCommand.d.ts +5 -0
- package/dist/command/AzureTagDeleteCommand.js +38 -0
- package/dist/command/AzureTagDeleteCommand.js.map +1 -0
- package/dist/command/AzureTagGetCommand.d.ts +5 -0
- package/dist/command/AzureTagGetCommand.js +38 -0
- package/dist/command/AzureTagGetCommand.js.map +1 -0
- package/dist/command/AzureTagListCommand.d.ts +5 -0
- package/dist/command/AzureTagListCommand.js +38 -0
- package/dist/command/AzureTagListCommand.js.map +1 -0
- package/dist/command/AzureTagUpdateCommand.d.ts +5 -0
- package/dist/command/AzureTagUpdateCommand.js +58 -0
- package/dist/command/AzureTagUpdateCommand.js.map +1 -0
- package/dist/command/AzureUpdateCommand.d.ts +5 -0
- package/dist/command/AzureUpdateCommand.js +121 -0
- package/dist/command/AzureUpdateCommand.js.map +1 -0
- package/dist/command/GCPCategoryCommand.d.ts +4 -0
- package/dist/command/GCPCategoryCommand.js +21 -0
- package/dist/command/GCPCategoryCommand.js.map +1 -0
- package/dist/command/GCPCategoryCreateCommand.d.ts +5 -0
- package/dist/command/GCPCategoryCreateCommand.js +49 -0
- package/dist/command/GCPCategoryCreateCommand.js.map +1 -0
- package/dist/command/GCPCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/GCPCategoryDeleteCommand.js +38 -0
- package/dist/command/GCPCategoryDeleteCommand.js.map +1 -0
- package/dist/command/GCPCategoryGetCommand.d.ts +5 -0
- package/dist/command/GCPCategoryGetCommand.js +38 -0
- package/dist/command/GCPCategoryGetCommand.js.map +1 -0
- package/dist/command/GCPCategoryListCommand.d.ts +5 -0
- package/dist/command/GCPCategoryListCommand.js +38 -0
- package/dist/command/GCPCategoryListCommand.js.map +1 -0
- package/dist/command/GCPCommand.d.ts +4 -0
- package/dist/command/GCPCommand.js +23 -0
- package/dist/command/GCPCommand.js.map +1 -0
- package/dist/command/GCPCreateCommand.d.ts +5 -0
- package/dist/command/GCPCreateCommand.js +103 -0
- package/dist/command/GCPCreateCommand.js.map +1 -0
- package/dist/command/GCPDeleteCommand.d.ts +5 -0
- package/dist/command/GCPDeleteCommand.js +38 -0
- package/dist/command/GCPDeleteCommand.js.map +1 -0
- package/dist/command/GCPFieldCommand.d.ts +4 -0
- package/dist/command/GCPFieldCommand.js +23 -0
- package/dist/command/GCPFieldCommand.js.map +1 -0
- package/dist/command/GCPFieldCreateCommand.d.ts +5 -0
- package/dist/command/GCPFieldCreateCommand.js +58 -0
- package/dist/command/GCPFieldCreateCommand.js.map +1 -0
- package/dist/command/GCPFieldDeleteCommand.d.ts +5 -0
- package/dist/command/GCPFieldDeleteCommand.js +38 -0
- package/dist/command/GCPFieldDeleteCommand.js.map +1 -0
- package/dist/command/GCPFieldGetCommand.d.ts +5 -0
- package/dist/command/GCPFieldGetCommand.js +38 -0
- package/dist/command/GCPFieldGetCommand.js.map +1 -0
- package/dist/command/GCPFieldListCommand.d.ts +5 -0
- package/dist/command/GCPFieldListCommand.js +38 -0
- package/dist/command/GCPFieldListCommand.js.map +1 -0
- package/dist/command/GCPFieldUpdateCommand.d.ts +5 -0
- package/dist/command/GCPFieldUpdateCommand.js +58 -0
- package/dist/command/GCPFieldUpdateCommand.js.map +1 -0
- package/dist/command/GCPGetCommand.d.ts +5 -0
- package/dist/command/GCPGetCommand.js +38 -0
- package/dist/command/GCPGetCommand.js.map +1 -0
- package/dist/command/GCPListCommand.d.ts +5 -0
- package/dist/command/GCPListCommand.js +38 -0
- package/dist/command/GCPListCommand.js.map +1 -0
- package/dist/command/GCPTagCommand.d.ts +4 -0
- package/dist/command/GCPTagCommand.js +23 -0
- package/dist/command/GCPTagCommand.js.map +1 -0
- package/dist/command/GCPTagCreateCommand.d.ts +5 -0
- package/dist/command/GCPTagCreateCommand.js +58 -0
- package/dist/command/GCPTagCreateCommand.js.map +1 -0
- package/dist/command/GCPTagDeleteCommand.d.ts +5 -0
- package/dist/command/GCPTagDeleteCommand.js +38 -0
- package/dist/command/GCPTagDeleteCommand.js.map +1 -0
- package/dist/command/GCPTagGetCommand.d.ts +5 -0
- package/dist/command/GCPTagGetCommand.js +38 -0
- package/dist/command/GCPTagGetCommand.js.map +1 -0
- package/dist/command/GCPTagListCommand.d.ts +5 -0
- package/dist/command/GCPTagListCommand.js +38 -0
- package/dist/command/GCPTagListCommand.js.map +1 -0
- package/dist/command/GCPTagUpdateCommand.d.ts +5 -0
- package/dist/command/GCPTagUpdateCommand.js +58 -0
- package/dist/command/GCPTagUpdateCommand.js.map +1 -0
- package/dist/command/GCPUpdateCommand.d.ts +5 -0
- package/dist/command/GCPUpdateCommand.js +103 -0
- package/dist/command/GCPUpdateCommand.js.map +1 -0
- package/dist/command/cli.js +16 -0
- package/dist/command/cli.js.map +1 -1
- package/dist/index.d.ts +78 -1
- package/dist/index.js +78 -1
- package/dist/index.js.map +1 -1
- package/dist/meta/AzureCategoryMetaTable.d.ts +15 -0
- package/dist/meta/AzureCategoryMetaTable.js +38 -0
- package/dist/meta/AzureCategoryMetaTable.js.map +1 -0
- package/dist/meta/AzureFieldMetaTable.d.ts +16 -0
- package/dist/meta/AzureFieldMetaTable.js +39 -0
- package/dist/meta/AzureFieldMetaTable.js.map +1 -0
- package/dist/meta/AzureMetaTable.d.ts +19 -0
- package/dist/meta/AzureMetaTable.js +42 -0
- package/dist/meta/AzureMetaTable.js.map +1 -0
- package/dist/meta/AzureTagMetaTable.d.ts +16 -0
- package/dist/meta/AzureTagMetaTable.js +39 -0
- package/dist/meta/AzureTagMetaTable.js.map +1 -0
- package/dist/meta/GCPCategoryMetaTable.d.ts +15 -0
- package/dist/meta/GCPCategoryMetaTable.js +38 -0
- package/dist/meta/GCPCategoryMetaTable.js.map +1 -0
- package/dist/meta/GCPFieldMetaTable.d.ts +16 -0
- package/dist/meta/GCPFieldMetaTable.js +39 -0
- package/dist/meta/GCPFieldMetaTable.js.map +1 -0
- package/dist/meta/GCPMetaTable.d.ts +17 -0
- package/dist/meta/GCPMetaTable.js +40 -0
- package/dist/meta/GCPMetaTable.js.map +1 -0
- package/dist/meta/GCPTagMetaTable.d.ts +16 -0
- package/dist/meta/GCPTagMetaTable.js +39 -0
- package/dist/meta/GCPTagMetaTable.js.map +1 -0
- package/dist/meta/NamirasoftCredentialMetaDatabase.d.ts +16 -0
- package/dist/meta/NamirasoftCredentialMetaDatabase.js +16 -0
- package/dist/meta/NamirasoftCredentialMetaDatabase.js.map +1 -1
- package/dist/row/{AWSInputRow.d.ts → AWSCreateRow.d.ts} +1 -1
- package/dist/row/AWSCreateRow.js +3 -0
- package/dist/row/AWSCreateRow.js.map +1 -0
- package/dist/row/AWSUpdateRow.d.ts +13 -0
- package/dist/row/AWSUpdateRow.js +3 -0
- package/dist/row/AWSUpdateRow.js.map +1 -0
- package/dist/row/AzureCategoryRow.d.ts +8 -0
- package/dist/row/AzureCategoryRow.js +3 -0
- package/dist/row/AzureCategoryRow.js.map +1 -0
- package/dist/row/AzureCreateRow.d.ts +14 -0
- package/dist/row/AzureCreateRow.js +3 -0
- package/dist/row/AzureCreateRow.js.map +1 -0
- package/dist/row/AzureFieldRow.d.ts +9 -0
- package/dist/row/AzureFieldRow.js +3 -0
- package/dist/row/AzureFieldRow.js.map +1 -0
- package/dist/row/AzureFullRow.d.ts +18 -0
- package/dist/row/AzureFullRow.js +3 -0
- package/dist/row/AzureFullRow.js.map +1 -0
- package/dist/row/AzureRow.d.ts +12 -0
- package/dist/row/{AWSInputRow.js → AzureRow.js} +1 -1
- package/dist/row/AzureRow.js.map +1 -0
- package/dist/row/AzureTagRow.d.ts +9 -0
- package/dist/row/AzureTagRow.js +3 -0
- package/dist/row/AzureTagRow.js.map +1 -0
- package/dist/row/AzureUpdateRow.d.ts +14 -0
- package/dist/row/AzureUpdateRow.js +3 -0
- package/dist/row/AzureUpdateRow.js.map +1 -0
- package/dist/row/GCPCategoryRow.d.ts +8 -0
- package/dist/row/GCPCategoryRow.js +3 -0
- package/dist/row/GCPCategoryRow.js.map +1 -0
- package/dist/row/GCPCreateRow.d.ts +12 -0
- package/dist/row/GCPCreateRow.js +3 -0
- package/dist/row/GCPCreateRow.js.map +1 -0
- package/dist/row/GCPFieldRow.d.ts +9 -0
- package/dist/row/GCPFieldRow.js +3 -0
- package/dist/row/GCPFieldRow.js.map +1 -0
- package/dist/row/GCPFullRow.d.ts +16 -0
- package/dist/row/GCPFullRow.js +3 -0
- package/dist/row/GCPFullRow.js.map +1 -0
- package/dist/row/GCPRow.d.ts +10 -0
- package/dist/row/GCPRow.js +3 -0
- package/dist/row/GCPRow.js.map +1 -0
- package/dist/row/GCPTagRow.d.ts +9 -0
- package/dist/row/GCPTagRow.js +3 -0
- package/dist/row/GCPTagRow.js.map +1 -0
- package/dist/row/GCPUpdateRow.d.ts +12 -0
- package/dist/row/GCPUpdateRow.js +3 -0
- package/dist/row/GCPUpdateRow.js.map +1 -0
- package/package.json +2 -2
- package/src/NamirasoftCredentialServer.ts +25 -1
- package/src/NamirasoftCredentialServerAWS.ts +4 -3
- package/src/NamirasoftCredentialServerAzure.ts +72 -0
- package/src/NamirasoftCredentialServerAzureCategory.ts +63 -0
- package/src/NamirasoftCredentialServerAzureField.ts +70 -0
- package/src/NamirasoftCredentialServerAzureTag.ts +70 -0
- package/src/NamirasoftCredentialServerGCP.ts +72 -0
- package/src/NamirasoftCredentialServerGCPCategory.ts +63 -0
- package/src/NamirasoftCredentialServerGCPField.ts +70 -0
- package/src/NamirasoftCredentialServerGCPTag.ts +70 -0
- package/src/command/AWSUpdateCommand.ts +2 -2
- package/src/command/AzureCategoryCommand.ts +38 -0
- package/src/command/AzureCategoryCreateCommand.ts +56 -0
- package/src/command/AzureCategoryDeleteCommand.ts +45 -0
- package/src/command/AzureCategoryGetCommand.ts +45 -0
- package/src/command/AzureCategoryListCommand.ts +45 -0
- package/src/command/AzureCommand.ts +40 -0
- package/src/command/AzureCreateCommand.ts +128 -0
- package/src/command/AzureDeleteCommand.ts +45 -0
- package/src/command/AzureFieldCommand.ts +40 -0
- package/src/command/AzureFieldCreateCommand.ts +65 -0
- package/src/command/AzureFieldDeleteCommand.ts +45 -0
- package/src/command/AzureFieldGetCommand.ts +45 -0
- package/src/command/AzureFieldListCommand.ts +45 -0
- package/src/command/AzureFieldUpdateCommand.ts +65 -0
- package/src/command/AzureGetCommand.ts +45 -0
- package/src/command/AzureListCommand.ts +45 -0
- package/src/command/AzureTagCommand.ts +40 -0
- package/src/command/AzureTagCreateCommand.ts +65 -0
- package/src/command/AzureTagDeleteCommand.ts +45 -0
- package/src/command/AzureTagGetCommand.ts +45 -0
- package/src/command/AzureTagListCommand.ts +45 -0
- package/src/command/AzureTagUpdateCommand.ts +65 -0
- package/src/command/AzureUpdateCommand.ts +128 -0
- package/src/command/GCPCategoryCommand.ts +38 -0
- package/src/command/GCPCategoryCreateCommand.ts +56 -0
- package/src/command/GCPCategoryDeleteCommand.ts +45 -0
- package/src/command/GCPCategoryGetCommand.ts +45 -0
- package/src/command/GCPCategoryListCommand.ts +45 -0
- package/src/command/GCPCommand.ts +40 -0
- package/src/command/GCPCreateCommand.ts +110 -0
- package/src/command/GCPDeleteCommand.ts +45 -0
- package/src/command/GCPFieldCommand.ts +40 -0
- package/src/command/GCPFieldCreateCommand.ts +65 -0
- package/src/command/GCPFieldDeleteCommand.ts +45 -0
- package/src/command/GCPFieldGetCommand.ts +45 -0
- package/src/command/GCPFieldListCommand.ts +45 -0
- package/src/command/GCPFieldUpdateCommand.ts +65 -0
- package/src/command/GCPGetCommand.ts +45 -0
- package/src/command/GCPListCommand.ts +45 -0
- package/src/command/GCPTagCommand.ts +40 -0
- package/src/command/GCPTagCreateCommand.ts +65 -0
- package/src/command/GCPTagDeleteCommand.ts +45 -0
- package/src/command/GCPTagGetCommand.ts +45 -0
- package/src/command/GCPTagListCommand.ts +45 -0
- package/src/command/GCPTagUpdateCommand.ts +65 -0
- package/src/command/GCPUpdateCommand.ts +110 -0
- package/src/command/cli.ts +16 -0
- package/src/index.ts +79 -2
- package/src/meta/AzureCategoryMetaTable.ts +58 -0
- package/src/meta/AzureFieldMetaTable.ts +60 -0
- package/src/meta/AzureMetaTable.ts +66 -0
- package/src/meta/AzureTagMetaTable.ts +60 -0
- package/src/meta/GCPCategoryMetaTable.ts +58 -0
- package/src/meta/GCPFieldMetaTable.ts +60 -0
- package/src/meta/GCPMetaTable.ts +62 -0
- package/src/meta/GCPTagMetaTable.ts +60 -0
- package/src/meta/NamirasoftCredentialMetaDatabase.ts +24 -0
- package/src/row/{AWSInputRow.ts → AWSCreateRow.ts} +1 -1
- package/src/row/AWSUpdateRow.ts +35 -0
- package/src/row/AzureCategoryRow.ts +29 -0
- package/src/row/AzureCreateRow.ts +36 -0
- package/src/row/AzureFieldRow.ts +30 -0
- package/src/row/AzureFullRow.ts +40 -0
- package/src/row/AzureRow.ts +33 -0
- package/src/row/AzureTagRow.ts +30 -0
- package/src/row/AzureUpdateRow.ts +36 -0
- package/src/row/GCPCategoryRow.ts +29 -0
- package/src/row/GCPCreateRow.ts +34 -0
- package/src/row/GCPFieldRow.ts +30 -0
- package/src/row/GCPFullRow.ts +38 -0
- package/src/row/GCPRow.ts +31 -0
- package/src/row/GCPTagRow.ts +30 -0
- package/src/row/GCPUpdateRow.ts +34 -0
- package/dist/row/AWSInputRow.js.map +0 -1
|
@@ -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 GCPGetCommand 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.gcp.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 GCPListCommand 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.gcp.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 { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { GCPTagCreateCommand } from "./GCPTagCreateCommand";
|
|
23
|
+
import { GCPTagDeleteCommand } from "./GCPTagDeleteCommand";
|
|
24
|
+
import { GCPTagGetCommand } from "./GCPTagGetCommand";
|
|
25
|
+
import { GCPTagListCommand } from "./GCPTagListCommand";
|
|
26
|
+
import { GCPTagUpdateCommand } from "./GCPTagUpdateCommand";
|
|
27
|
+
|
|
28
|
+
export class GCPTagCommand extends BaseNavigatorCommand
|
|
29
|
+
{
|
|
30
|
+
constructor(argv: string[])
|
|
31
|
+
{
|
|
32
|
+
super(argv, {
|
|
33
|
+
"list": GCPTagListCommand,
|
|
34
|
+
"get": GCPTagGetCommand,
|
|
35
|
+
"create": GCPTagCreateCommand,
|
|
36
|
+
"update": GCPTagUpdateCommand,
|
|
37
|
+
"delete": GCPTagDeleteCommand,
|
|
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 GCPTagCreateCommand 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.g_c_p_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 GCPTagDeleteCommand 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.g_c_p_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 GCPTagGetCommand 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.g_c_p_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 GCPTagListCommand 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.g_c_p_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 GCPTagUpdateCommand 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.g_c_p_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,110 @@
|
|
|
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 GCPUpdateCommand 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: "credentials",
|
|
49
|
+
short: "",
|
|
50
|
+
description: "Provides the value of 'credentials' in body",
|
|
51
|
+
optional: true,
|
|
52
|
+
args: ["credentials"],
|
|
53
|
+
defaults: [""]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "description",
|
|
57
|
+
short: "",
|
|
58
|
+
description: "Provides the value of 'description' in body",
|
|
59
|
+
optional: false,
|
|
60
|
+
args: ["description"],
|
|
61
|
+
defaults: [""]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "gcp_category",
|
|
65
|
+
short: "",
|
|
66
|
+
description: "Provides the value of 'gcp_category' in body",
|
|
67
|
+
optional: false,
|
|
68
|
+
args: ["gcp_category"],
|
|
69
|
+
defaults: [""]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "gcp_field",
|
|
73
|
+
short: "",
|
|
74
|
+
description: "Provides the value of 'gcp_field' in body",
|
|
75
|
+
optional: false,
|
|
76
|
+
args: ["gcp_field"],
|
|
77
|
+
defaults: [""]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "gcp_tag",
|
|
81
|
+
short: "",
|
|
82
|
+
description: "Provides the value of 'gcp_tag' in body",
|
|
83
|
+
optional: false,
|
|
84
|
+
args: ["gcp_tag"],
|
|
85
|
+
defaults: [""]
|
|
86
|
+
}
|
|
87
|
+
]);
|
|
88
|
+
}
|
|
89
|
+
override async exec()
|
|
90
|
+
{
|
|
91
|
+
let token = this.app.storage.getNSAToken();
|
|
92
|
+
if (token == null)
|
|
93
|
+
throw new Error("Token is not available. Please login first using:\nns-credential account config \nor \nns-credential account login.");
|
|
94
|
+
let storage = new IStorageMemory();
|
|
95
|
+
let manager = new TokenManager(storage, () => { });
|
|
96
|
+
manager.setValue(token, false);
|
|
97
|
+
let url = this.app.storage.getItem("ns-credential-server-url");
|
|
98
|
+
let server = new NamirasoftCredentialServer(url, manager, e => this.app.logger.error(e.message));
|
|
99
|
+
let ans = await server.gcp.Update(this.arg_values[0], {
|
|
100
|
+
workspace_id: this.option_values.workspace_id,
|
|
101
|
+
name: this.option_values.name,
|
|
102
|
+
credentials: this.option_values.credentials,
|
|
103
|
+
description: this.option_values.description,
|
|
104
|
+
gcp_category: this.option_values.gcp_category,
|
|
105
|
+
gcp_field: this.option_values.gcp_field,
|
|
106
|
+
gcp_tag: this.option_values.gcp_tag
|
|
107
|
+
});
|
|
108
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
109
|
+
}
|
|
110
|
+
};
|
package/src/command/cli.ts
CHANGED
|
@@ -25,7 +25,15 @@ import { AWSFieldCommand } from "./AWSFieldCommand";
|
|
|
25
25
|
import { AWSTagCommand } from "./AWSTagCommand";
|
|
26
26
|
import { AccountCommand } from "namirasoft-account";
|
|
27
27
|
import { Application, BaseStorage } from "namirasoft-node-cli";
|
|
28
|
+
import { AzureCategoryCommand } from "./AzureCategoryCommand";
|
|
29
|
+
import { AzureCommand } from "./AzureCommand";
|
|
30
|
+
import { AzureFieldCommand } from "./AzureFieldCommand";
|
|
31
|
+
import { AzureTagCommand } from "./AzureTagCommand";
|
|
28
32
|
import { ConfigCommand } from "namirasoft-node-cli";
|
|
33
|
+
import { GCPCategoryCommand } from "./GCPCategoryCommand";
|
|
34
|
+
import { GCPCommand } from "./GCPCommand";
|
|
35
|
+
import { GCPFieldCommand } from "./GCPFieldCommand";
|
|
36
|
+
import { GCPTagCommand } from "./GCPTagCommand";
|
|
29
37
|
import { HealthzCommand } from "./HealthzCommand";
|
|
30
38
|
import { ValueCommand } from "./ValueCommand";
|
|
31
39
|
|
|
@@ -37,6 +45,14 @@ let app = new Application("ns-credential", new BaseStorage(),
|
|
|
37
45
|
"awsfield": AWSFieldCommand,
|
|
38
46
|
"awstag": AWSTagCommand,
|
|
39
47
|
"aws": AWSCommand,
|
|
48
|
+
"azurecategory": AzureCategoryCommand,
|
|
49
|
+
"azurefield": AzureFieldCommand,
|
|
50
|
+
"azuretag": AzureTagCommand,
|
|
51
|
+
"azure": AzureCommand,
|
|
52
|
+
"gcpcategory": GCPCategoryCommand,
|
|
53
|
+
"gcpfield": GCPFieldCommand,
|
|
54
|
+
"gcptag": GCPTagCommand,
|
|
55
|
+
"gcp": GCPCommand,
|
|
40
56
|
"account": AccountCommand,
|
|
41
57
|
"config": (argv: string[]) => new ConfigCommand(argv, ["ns-credential-server-url"])
|
|
42
58
|
});
|
package/src/index.ts
CHANGED
|
@@ -23,7 +23,15 @@ export * from "./NamirasoftCredentialServerAWS";
|
|
|
23
23
|
export * from "./NamirasoftCredentialServerAWSCategory";
|
|
24
24
|
export * from "./NamirasoftCredentialServerAWSField";
|
|
25
25
|
export * from "./NamirasoftCredentialServerAWSTag";
|
|
26
|
+
export * from "./NamirasoftCredentialServerAzure";
|
|
27
|
+
export * from "./NamirasoftCredentialServerAzureCategory";
|
|
28
|
+
export * from "./NamirasoftCredentialServerAzureField";
|
|
29
|
+
export * from "./NamirasoftCredentialServerAzureTag";
|
|
26
30
|
export * from "./NamirasoftCredentialServerBase";
|
|
31
|
+
export * from "./NamirasoftCredentialServerGCP";
|
|
32
|
+
export * from "./NamirasoftCredentialServerGCPCategory";
|
|
33
|
+
export * from "./NamirasoftCredentialServerGCPField";
|
|
34
|
+
export * from "./NamirasoftCredentialServerGCPTag";
|
|
27
35
|
export * from "./NamirasoftCredentialServerHealthz";
|
|
28
36
|
export * from "./NamirasoftCredentialServerValue";
|
|
29
37
|
export * from "./command/AWSCategoryCommand";
|
|
@@ -49,6 +57,52 @@ export * from "./command/AWSTagGetCommand";
|
|
|
49
57
|
export * from "./command/AWSTagListCommand";
|
|
50
58
|
export * from "./command/AWSTagUpdateCommand";
|
|
51
59
|
export * from "./command/AWSUpdateCommand";
|
|
60
|
+
export * from "./command/AzureCategoryCommand";
|
|
61
|
+
export * from "./command/AzureCategoryCreateCommand";
|
|
62
|
+
export * from "./command/AzureCategoryDeleteCommand";
|
|
63
|
+
export * from "./command/AzureCategoryGetCommand";
|
|
64
|
+
export * from "./command/AzureCategoryListCommand";
|
|
65
|
+
export * from "./command/AzureCommand";
|
|
66
|
+
export * from "./command/AzureCreateCommand";
|
|
67
|
+
export * from "./command/AzureDeleteCommand";
|
|
68
|
+
export * from "./command/AzureFieldCommand";
|
|
69
|
+
export * from "./command/AzureFieldCreateCommand";
|
|
70
|
+
export * from "./command/AzureFieldDeleteCommand";
|
|
71
|
+
export * from "./command/AzureFieldGetCommand";
|
|
72
|
+
export * from "./command/AzureFieldListCommand";
|
|
73
|
+
export * from "./command/AzureFieldUpdateCommand";
|
|
74
|
+
export * from "./command/AzureGetCommand";
|
|
75
|
+
export * from "./command/AzureListCommand";
|
|
76
|
+
export * from "./command/AzureTagCommand";
|
|
77
|
+
export * from "./command/AzureTagCreateCommand";
|
|
78
|
+
export * from "./command/AzureTagDeleteCommand";
|
|
79
|
+
export * from "./command/AzureTagGetCommand";
|
|
80
|
+
export * from "./command/AzureTagListCommand";
|
|
81
|
+
export * from "./command/AzureTagUpdateCommand";
|
|
82
|
+
export * from "./command/AzureUpdateCommand";
|
|
83
|
+
export * from "./command/GCPCategoryCommand";
|
|
84
|
+
export * from "./command/GCPCategoryCreateCommand";
|
|
85
|
+
export * from "./command/GCPCategoryDeleteCommand";
|
|
86
|
+
export * from "./command/GCPCategoryGetCommand";
|
|
87
|
+
export * from "./command/GCPCategoryListCommand";
|
|
88
|
+
export * from "./command/GCPCommand";
|
|
89
|
+
export * from "./command/GCPCreateCommand";
|
|
90
|
+
export * from "./command/GCPDeleteCommand";
|
|
91
|
+
export * from "./command/GCPFieldCommand";
|
|
92
|
+
export * from "./command/GCPFieldCreateCommand";
|
|
93
|
+
export * from "./command/GCPFieldDeleteCommand";
|
|
94
|
+
export * from "./command/GCPFieldGetCommand";
|
|
95
|
+
export * from "./command/GCPFieldListCommand";
|
|
96
|
+
export * from "./command/GCPFieldUpdateCommand";
|
|
97
|
+
export * from "./command/GCPGetCommand";
|
|
98
|
+
export * from "./command/GCPListCommand";
|
|
99
|
+
export * from "./command/GCPTagCommand";
|
|
100
|
+
export * from "./command/GCPTagCreateCommand";
|
|
101
|
+
export * from "./command/GCPTagDeleteCommand";
|
|
102
|
+
export * from "./command/GCPTagGetCommand";
|
|
103
|
+
export * from "./command/GCPTagListCommand";
|
|
104
|
+
export * from "./command/GCPTagUpdateCommand";
|
|
105
|
+
export * from "./command/GCPUpdateCommand";
|
|
52
106
|
export * from "./command/HealthzCommand";
|
|
53
107
|
export * from "./command/HealthzGetCommand";
|
|
54
108
|
export * from "./command/ValueCommand";
|
|
@@ -57,13 +111,36 @@ export * from "./meta/AWSCategoryMetaTable";
|
|
|
57
111
|
export * from "./meta/AWSFieldMetaTable";
|
|
58
112
|
export * from "./meta/AWSMetaTable";
|
|
59
113
|
export * from "./meta/AWSTagMetaTable";
|
|
114
|
+
export * from "./meta/AzureCategoryMetaTable";
|
|
115
|
+
export * from "./meta/AzureFieldMetaTable";
|
|
116
|
+
export * from "./meta/AzureMetaTable";
|
|
117
|
+
export * from "./meta/AzureTagMetaTable";
|
|
118
|
+
export * from "./meta/GCPCategoryMetaTable";
|
|
119
|
+
export * from "./meta/GCPFieldMetaTable";
|
|
120
|
+
export * from "./meta/GCPMetaTable";
|
|
121
|
+
export * from "./meta/GCPTagMetaTable";
|
|
60
122
|
export * from "./meta/NamirasoftCredentialMetaDatabase";
|
|
61
123
|
export * from "./row/AWSCategoryRow";
|
|
124
|
+
export * from "./row/AWSCreateRow";
|
|
62
125
|
export * from "./row/AWSFieldRow";
|
|
63
126
|
export * from "./row/AWSFullRow";
|
|
64
|
-
export * from "./row/AWSInputRow";
|
|
65
127
|
export * from "./row/AWSRow";
|
|
66
128
|
export * from "./row/AWSTagRow";
|
|
129
|
+
export * from "./row/AWSUpdateRow";
|
|
130
|
+
export * from "./row/AzureCategoryRow";
|
|
131
|
+
export * from "./row/AzureCreateRow";
|
|
132
|
+
export * from "./row/AzureFieldRow";
|
|
133
|
+
export * from "./row/AzureFullRow";
|
|
134
|
+
export * from "./row/AzureRow";
|
|
135
|
+
export * from "./row/AzureTagRow";
|
|
136
|
+
export * from "./row/AzureUpdateRow";
|
|
67
137
|
export * from "./row/EntityCategoryInputRow";
|
|
68
138
|
export * from "./row/EntityFieldInputRow";
|
|
69
|
-
export * from "./row/EntityTagInputRow";
|
|
139
|
+
export * from "./row/EntityTagInputRow";
|
|
140
|
+
export * from "./row/GCPCategoryRow";
|
|
141
|
+
export * from "./row/GCPCreateRow";
|
|
142
|
+
export * from "./row/GCPFieldRow";
|
|
143
|
+
export * from "./row/GCPFullRow";
|
|
144
|
+
export * from "./row/GCPRow";
|
|
145
|
+
export * from "./row/GCPTagRow";
|
|
146
|
+
export * from "./row/GCPUpdateRow";
|