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.
- package/dist/NamirasoftCredentialServer.js +1 -1
- package/dist/NamirasoftCredentialServerAWS.d.ts +1 -0
- package/dist/NamirasoftCredentialServerAWS.js +8 -0
- package/dist/NamirasoftCredentialServerAWS.js.map +1 -1
- package/dist/NamirasoftCredentialServerAzure.d.ts +1 -0
- package/dist/NamirasoftCredentialServerAzure.js +8 -0
- package/dist/NamirasoftCredentialServerAzure.js.map +1 -1
- package/dist/NamirasoftCredentialServerGCP.d.ts +1 -0
- package/dist/NamirasoftCredentialServerGCP.js +8 -0
- package/dist/NamirasoftCredentialServerGCP.js.map +1 -1
- package/dist/command/AWSCategoryCreateCommand.js +1 -1
- package/dist/command/AWSCategoryCreateCommand.js.map +1 -1
- package/dist/command/AWSCategoryDeleteCommand.js +1 -1
- package/dist/command/AWSCategoryDeleteCommand.js.map +1 -1
- package/dist/command/AWSCategoryGetCommand.js +1 -1
- package/dist/command/AWSCategoryGetCommand.js.map +1 -1
- package/dist/command/AWSCategoryListCommand.js +1 -1
- package/dist/command/AWSCategoryListCommand.js.map +1 -1
- package/dist/command/AWSCommand.js +2 -0
- package/dist/command/AWSCommand.js.map +1 -1
- package/dist/command/AWSCreateCommand.js +2 -2
- package/dist/command/AWSCreateCommand.js.map +1 -1
- package/dist/command/AWSDeleteCommand.js +1 -1
- package/dist/command/AWSDeleteCommand.js.map +1 -1
- package/dist/command/AWSFieldCreateCommand.js +1 -1
- package/dist/command/AWSFieldCreateCommand.js.map +1 -1
- package/dist/command/AWSFieldDeleteCommand.js +1 -1
- package/dist/command/AWSFieldDeleteCommand.js.map +1 -1
- package/dist/command/AWSFieldGetCommand.js +1 -1
- package/dist/command/AWSFieldGetCommand.js.map +1 -1
- package/dist/command/AWSFieldListCommand.js +1 -1
- package/dist/command/AWSFieldListCommand.js.map +1 -1
- package/dist/command/AWSFieldUpdateCommand.js +1 -1
- package/dist/command/AWSFieldUpdateCommand.js.map +1 -1
- package/dist/command/AWSGetCommand.js +1 -1
- package/dist/command/AWSGetCommand.js.map +1 -1
- package/dist/command/AWSListCommand.js +1 -1
- package/dist/command/AWSListCommand.js.map +1 -1
- package/dist/command/AWSTagCreateCommand.js +1 -1
- package/dist/command/AWSTagCreateCommand.js.map +1 -1
- package/dist/command/AWSTagDeleteCommand.js +1 -1
- package/dist/command/AWSTagDeleteCommand.js.map +1 -1
- package/dist/command/AWSTagGetCommand.js +1 -1
- package/dist/command/AWSTagGetCommand.js.map +1 -1
- package/dist/command/AWSTagListCommand.js +1 -1
- package/dist/command/AWSTagListCommand.js.map +1 -1
- package/dist/command/AWSTagUpdateCommand.js +1 -1
- package/dist/command/AWSTagUpdateCommand.js.map +1 -1
- package/dist/command/AWSUpdateCommand.js +2 -2
- package/dist/command/AWSUpdateCommand.js.map +1 -1
- package/dist/command/AWS_GetForCommand.d.ts +5 -0
- package/dist/command/AWS_GetForCommand.js +38 -0
- package/dist/command/AWS_GetForCommand.js.map +1 -0
- package/dist/command/AzureCategoryCreateCommand.js +1 -1
- package/dist/command/AzureCategoryCreateCommand.js.map +1 -1
- package/dist/command/AzureCategoryDeleteCommand.js +1 -1
- package/dist/command/AzureCategoryDeleteCommand.js.map +1 -1
- package/dist/command/AzureCategoryGetCommand.js +1 -1
- package/dist/command/AzureCategoryGetCommand.js.map +1 -1
- package/dist/command/AzureCategoryListCommand.js +1 -1
- package/dist/command/AzureCategoryListCommand.js.map +1 -1
- package/dist/command/AzureCommand.js +2 -0
- package/dist/command/AzureCommand.js.map +1 -1
- package/dist/command/AzureCreateCommand.js +2 -2
- package/dist/command/AzureCreateCommand.js.map +1 -1
- package/dist/command/AzureDeleteCommand.js +1 -1
- package/dist/command/AzureDeleteCommand.js.map +1 -1
- package/dist/command/AzureFieldCreateCommand.js +1 -1
- package/dist/command/AzureFieldCreateCommand.js.map +1 -1
- package/dist/command/AzureFieldDeleteCommand.js +1 -1
- package/dist/command/AzureFieldDeleteCommand.js.map +1 -1
- package/dist/command/AzureFieldGetCommand.js +1 -1
- package/dist/command/AzureFieldGetCommand.js.map +1 -1
- package/dist/command/AzureFieldListCommand.js +1 -1
- package/dist/command/AzureFieldListCommand.js.map +1 -1
- package/dist/command/AzureFieldUpdateCommand.js +1 -1
- package/dist/command/AzureFieldUpdateCommand.js.map +1 -1
- package/dist/command/AzureGetCommand.js +1 -1
- package/dist/command/AzureGetCommand.js.map +1 -1
- package/dist/command/AzureListCommand.js +1 -1
- package/dist/command/AzureListCommand.js.map +1 -1
- package/dist/command/AzureTagCreateCommand.js +1 -1
- package/dist/command/AzureTagCreateCommand.js.map +1 -1
- package/dist/command/AzureTagDeleteCommand.js +1 -1
- package/dist/command/AzureTagDeleteCommand.js.map +1 -1
- package/dist/command/AzureTagGetCommand.js +1 -1
- package/dist/command/AzureTagGetCommand.js.map +1 -1
- package/dist/command/AzureTagListCommand.js +1 -1
- package/dist/command/AzureTagListCommand.js.map +1 -1
- package/dist/command/AzureTagUpdateCommand.js +1 -1
- package/dist/command/AzureTagUpdateCommand.js.map +1 -1
- package/dist/command/AzureUpdateCommand.js +2 -2
- package/dist/command/AzureUpdateCommand.js.map +1 -1
- package/dist/command/Azure_GetForCommand.d.ts +5 -0
- package/dist/command/Azure_GetForCommand.js +38 -0
- package/dist/command/Azure_GetForCommand.js.map +1 -0
- package/dist/command/GCPCategoryCreateCommand.js +1 -1
- package/dist/command/GCPCategoryCreateCommand.js.map +1 -1
- package/dist/command/GCPCategoryDeleteCommand.js +1 -1
- package/dist/command/GCPCategoryDeleteCommand.js.map +1 -1
- package/dist/command/GCPCategoryGetCommand.js +1 -1
- package/dist/command/GCPCategoryGetCommand.js.map +1 -1
- package/dist/command/GCPCategoryListCommand.js +1 -1
- package/dist/command/GCPCategoryListCommand.js.map +1 -1
- package/dist/command/GCPCommand.js +2 -0
- package/dist/command/GCPCommand.js.map +1 -1
- package/dist/command/GCPCreateCommand.js +2 -2
- package/dist/command/GCPCreateCommand.js.map +1 -1
- package/dist/command/GCPDeleteCommand.js +1 -1
- package/dist/command/GCPDeleteCommand.js.map +1 -1
- package/dist/command/GCPFieldCreateCommand.js +1 -1
- package/dist/command/GCPFieldCreateCommand.js.map +1 -1
- package/dist/command/GCPFieldDeleteCommand.js +1 -1
- package/dist/command/GCPFieldDeleteCommand.js.map +1 -1
- package/dist/command/GCPFieldGetCommand.js +1 -1
- package/dist/command/GCPFieldGetCommand.js.map +1 -1
- package/dist/command/GCPFieldListCommand.js +1 -1
- package/dist/command/GCPFieldListCommand.js.map +1 -1
- package/dist/command/GCPFieldUpdateCommand.js +1 -1
- package/dist/command/GCPFieldUpdateCommand.js.map +1 -1
- package/dist/command/GCPGetCommand.js +1 -1
- package/dist/command/GCPGetCommand.js.map +1 -1
- package/dist/command/GCPListCommand.js +1 -1
- package/dist/command/GCPListCommand.js.map +1 -1
- package/dist/command/GCPTagCreateCommand.js +1 -1
- package/dist/command/GCPTagCreateCommand.js.map +1 -1
- package/dist/command/GCPTagDeleteCommand.js +1 -1
- package/dist/command/GCPTagDeleteCommand.js.map +1 -1
- package/dist/command/GCPTagGetCommand.js +1 -1
- package/dist/command/GCPTagGetCommand.js.map +1 -1
- package/dist/command/GCPTagListCommand.js +1 -1
- package/dist/command/GCPTagListCommand.js.map +1 -1
- package/dist/command/GCPTagUpdateCommand.js +1 -1
- package/dist/command/GCPTagUpdateCommand.js.map +1 -1
- package/dist/command/GCPUpdateCommand.js +2 -2
- package/dist/command/GCPUpdateCommand.js.map +1 -1
- package/dist/command/GCP_GetForCommand.d.ts +5 -0
- package/dist/command/GCP_GetForCommand.js +38 -0
- package/dist/command/GCP_GetForCommand.js.map +1 -0
- package/dist/command/HealthzGetCommand.js +1 -1
- package/dist/command/HealthzGetCommand.js.map +1 -1
- package/dist/command/ValueListCommand.js +1 -1
- package/dist/command/ValueListCommand.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/AWSMetaTable.js +2 -2
- package/dist/meta/AWSMetaTable.js.map +1 -1
- package/dist/meta/AzureMetaTable.js +2 -2
- package/dist/meta/AzureMetaTable.js.map +1 -1
- package/dist/meta/GCPMetaTable.js +2 -2
- package/dist/meta/GCPMetaTable.js.map +1 -1
- package/dist/meta/NamirasoftCredentialMetaDatabase.js +1 -1
- package/dist/meta/NamirasoftCredentialMetaDatabase.js.map +1 -1
- package/dist/row/AWSCreateRow.d.ts +1 -1
- package/dist/row/AWSFullRow.d.ts +2 -2
- package/dist/row/AWSRow.d.ts +2 -2
- package/dist/row/AWSUpdateRow.d.ts +1 -1
- package/dist/row/AzureCreateRow.d.ts +1 -1
- package/dist/row/AzureFullRow.d.ts +2 -2
- package/dist/row/AzureRow.d.ts +2 -2
- package/dist/row/AzureUpdateRow.d.ts +1 -1
- package/dist/row/GCPCreateRow.d.ts +1 -1
- package/dist/row/GCPFullRow.d.ts +2 -2
- package/dist/row/GCPRow.d.ts +2 -2
- package/dist/row/GCPUpdateRow.d.ts +1 -1
- package/logo.png +0 -0
- package/package.json +5 -5
- package/src/NamirasoftCredentialServer.ts +1 -1
- package/src/NamirasoftCredentialServerAWS.ts +7 -0
- package/src/NamirasoftCredentialServerAzure.ts +7 -0
- package/src/NamirasoftCredentialServerGCP.ts +7 -0
- package/src/command/AWSCategoryCreateCommand.ts +2 -2
- package/src/command/AWSCategoryDeleteCommand.ts +2 -2
- package/src/command/AWSCategoryGetCommand.ts +2 -2
- package/src/command/AWSCategoryListCommand.ts +2 -2
- package/src/command/AWSCommand.ts +2 -0
- package/src/command/AWSCreateCommand.ts +3 -3
- package/src/command/AWSDeleteCommand.ts +2 -2
- package/src/command/AWSFieldCreateCommand.ts +2 -2
- package/src/command/AWSFieldDeleteCommand.ts +2 -2
- package/src/command/AWSFieldGetCommand.ts +2 -2
- package/src/command/AWSFieldListCommand.ts +2 -2
- package/src/command/AWSFieldUpdateCommand.ts +2 -2
- package/src/command/AWSGetCommand.ts +2 -2
- package/src/command/AWSListCommand.ts +2 -2
- package/src/command/AWSTagCreateCommand.ts +2 -2
- package/src/command/AWSTagDeleteCommand.ts +2 -2
- package/src/command/AWSTagGetCommand.ts +2 -2
- package/src/command/AWSTagListCommand.ts +2 -2
- package/src/command/AWSTagUpdateCommand.ts +2 -2
- package/src/command/AWSUpdateCommand.ts +3 -3
- package/src/command/AWS_GetForCommand.ts +45 -0
- package/src/command/AzureCategoryCreateCommand.ts +2 -2
- package/src/command/AzureCategoryDeleteCommand.ts +2 -2
- package/src/command/AzureCategoryGetCommand.ts +2 -2
- package/src/command/AzureCategoryListCommand.ts +2 -2
- package/src/command/AzureCommand.ts +2 -0
- package/src/command/AzureCreateCommand.ts +3 -3
- package/src/command/AzureDeleteCommand.ts +2 -2
- package/src/command/AzureFieldCreateCommand.ts +2 -2
- package/src/command/AzureFieldDeleteCommand.ts +2 -2
- package/src/command/AzureFieldGetCommand.ts +2 -2
- package/src/command/AzureFieldListCommand.ts +2 -2
- package/src/command/AzureFieldUpdateCommand.ts +2 -2
- package/src/command/AzureGetCommand.ts +2 -2
- package/src/command/AzureListCommand.ts +2 -2
- package/src/command/AzureTagCreateCommand.ts +2 -2
- package/src/command/AzureTagDeleteCommand.ts +2 -2
- package/src/command/AzureTagGetCommand.ts +2 -2
- package/src/command/AzureTagListCommand.ts +2 -2
- package/src/command/AzureTagUpdateCommand.ts +2 -2
- package/src/command/AzureUpdateCommand.ts +3 -3
- package/src/command/Azure_GetForCommand.ts +45 -0
- package/src/command/GCPCategoryCreateCommand.ts +2 -2
- package/src/command/GCPCategoryDeleteCommand.ts +2 -2
- package/src/command/GCPCategoryGetCommand.ts +2 -2
- package/src/command/GCPCategoryListCommand.ts +2 -2
- package/src/command/GCPCommand.ts +2 -0
- package/src/command/GCPCreateCommand.ts +3 -3
- package/src/command/GCPDeleteCommand.ts +2 -2
- package/src/command/GCPFieldCreateCommand.ts +2 -2
- package/src/command/GCPFieldDeleteCommand.ts +2 -2
- package/src/command/GCPFieldGetCommand.ts +2 -2
- package/src/command/GCPFieldListCommand.ts +2 -2
- package/src/command/GCPFieldUpdateCommand.ts +2 -2
- package/src/command/GCPGetCommand.ts +2 -2
- package/src/command/GCPListCommand.ts +2 -2
- package/src/command/GCPTagCreateCommand.ts +2 -2
- package/src/command/GCPTagDeleteCommand.ts +2 -2
- package/src/command/GCPTagGetCommand.ts +2 -2
- package/src/command/GCPTagListCommand.ts +2 -2
- package/src/command/GCPTagUpdateCommand.ts +2 -2
- package/src/command/GCPUpdateCommand.ts +3 -3
- package/src/command/GCP_GetForCommand.ts +45 -0
- package/src/command/HealthzGetCommand.ts +2 -2
- package/src/command/ValueListCommand.ts +2 -2
- package/src/index.ts +3 -0
- package/src/meta/AWSMetaTable.ts +2 -2
- package/src/meta/AzureMetaTable.ts +2 -2
- package/src/meta/GCPMetaTable.ts +2 -2
- package/src/meta/NamirasoftCredentialMetaDatabase.ts +1 -1
- package/src/row/AWSCreateRow.ts +1 -1
- package/src/row/AWSFullRow.ts +2 -2
- package/src/row/AWSRow.ts +2 -2
- package/src/row/AWSUpdateRow.ts +1 -1
- package/src/row/AzureCreateRow.ts +1 -1
- package/src/row/AzureFullRow.ts +2 -2
- package/src/row/AzureRow.ts +2 -2
- package/src/row/AzureUpdateRow.ts +1 -1
- package/src/row/GCPCreateRow.ts +1 -1
- package/src/row/GCPFullRow.ts +2 -2
- package/src/row/GCPRow.ts +2 -2
- 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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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:
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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:
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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:
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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");
|