namirasoft-expert 1.4.21 → 1.4.23
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/NamirasoftExpertServer.js +1 -1
- package/dist/NamirasoftExpertServerDescriptionCache.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionCache.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionCache.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionDatabase.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionDatabase.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionDatabase.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionDocker.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionDocker.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionDocker.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionKubernetes.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionKubernetes.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionKubernetes.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionMessaging.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionMessaging.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionMessaging.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionMetric.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionMetric.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionMetric.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionServer.d.ts +3 -3
- package/dist/NamirasoftExpertServerDescriptionServer.js +7 -7
- package/dist/NamirasoftExpertServerDescriptionServer.js.map +1 -1
- package/dist/NamirasoftExpertServerDescriptionStreaming.d.ts +5 -0
- package/dist/NamirasoftExpertServerDescriptionStreaming.js +8 -0
- package/dist/NamirasoftExpertServerDescriptionStreaming.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentCache.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentCache.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentCache.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentDatabase.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentDatabase.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentDatabase.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentDocker.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentDocker.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentDocker.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentKubernetes.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentKubernetes.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentKubernetes.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentMessaging.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentMessaging.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentMessaging.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentMetric.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentMetric.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentMetric.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleAssignmentStreaming.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleAssignmentStreaming.js +8 -0
- package/dist/NamirasoftExpertServerRoleAssignmentStreaming.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleCache.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleCache.js +8 -0
- package/dist/NamirasoftExpertServerRoleCache.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleDatabase.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleDatabase.js +8 -0
- package/dist/NamirasoftExpertServerRoleDatabase.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleDocker.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleDocker.js +8 -0
- package/dist/NamirasoftExpertServerRoleDocker.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleKubernetes.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleKubernetes.js +8 -0
- package/dist/NamirasoftExpertServerRoleKubernetes.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleMessaging.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleMessaging.js +8 -0
- package/dist/NamirasoftExpertServerRoleMessaging.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleMetric.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleMetric.js +8 -0
- package/dist/NamirasoftExpertServerRoleMetric.js.map +1 -1
- package/dist/NamirasoftExpertServerRoleStreaming.d.ts +5 -0
- package/dist/NamirasoftExpertServerRoleStreaming.js +8 -0
- package/dist/NamirasoftExpertServerRoleStreaming.js.map +1 -1
- package/dist/command/DescriptionCacheCommand.js +2 -0
- package/dist/command/DescriptionCacheCommand.js.map +1 -1
- package/dist/command/DescriptionCacheTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionCacheTrackCommand.js +38 -0
- package/dist/command/DescriptionCacheTrackCommand.js.map +1 -0
- package/dist/command/DescriptionDatabaseCommand.js +2 -0
- package/dist/command/DescriptionDatabaseCommand.js.map +1 -1
- package/dist/command/DescriptionDatabaseTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionDatabaseTrackCommand.js +38 -0
- package/dist/command/DescriptionDatabaseTrackCommand.js.map +1 -0
- package/dist/command/DescriptionDockerCommand.js +2 -0
- package/dist/command/DescriptionDockerCommand.js.map +1 -1
- package/dist/command/DescriptionDockerTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionDockerTrackCommand.js +38 -0
- package/dist/command/DescriptionDockerTrackCommand.js.map +1 -0
- package/dist/command/DescriptionKubernetesCommand.js +2 -0
- package/dist/command/DescriptionKubernetesCommand.js.map +1 -1
- package/dist/command/DescriptionKubernetesTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionKubernetesTrackCommand.js +38 -0
- package/dist/command/DescriptionKubernetesTrackCommand.js.map +1 -0
- package/dist/command/DescriptionMessagingCommand.js +2 -0
- package/dist/command/DescriptionMessagingCommand.js.map +1 -1
- package/dist/command/DescriptionMessagingTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionMessagingTrackCommand.js +38 -0
- package/dist/command/DescriptionMessagingTrackCommand.js.map +1 -0
- package/dist/command/DescriptionMetricCommand.js +2 -0
- package/dist/command/DescriptionMetricCommand.js.map +1 -1
- package/dist/command/DescriptionMetricTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionMetricTrackCommand.js +38 -0
- package/dist/command/DescriptionMetricTrackCommand.js.map +1 -0
- package/dist/command/DescriptionServerCommand.js +1 -1
- package/dist/command/DescriptionServerCommand.js.map +1 -1
- package/dist/command/DescriptionStreamingCommand.js +2 -0
- package/dist/command/DescriptionStreamingCommand.js.map +1 -1
- package/dist/command/DescriptionStreamingTrackCommand.d.ts +5 -0
- package/dist/command/DescriptionStreamingTrackCommand.js +38 -0
- package/dist/command/DescriptionStreamingTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentCacheCommand.js +2 -0
- package/dist/command/RoleAssignmentCacheCommand.js.map +1 -1
- package/dist/command/RoleAssignmentCacheTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentCacheTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentCacheTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentDatabaseCommand.js +2 -0
- package/dist/command/RoleAssignmentDatabaseCommand.js.map +1 -1
- package/dist/command/RoleAssignmentDatabaseTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentDatabaseTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentDatabaseTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentDockerCommand.js +2 -0
- package/dist/command/RoleAssignmentDockerCommand.js.map +1 -1
- package/dist/command/RoleAssignmentDockerTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentDockerTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentDockerTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentKubernetesCommand.js +2 -0
- package/dist/command/RoleAssignmentKubernetesCommand.js.map +1 -1
- package/dist/command/RoleAssignmentKubernetesTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentKubernetesTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentKubernetesTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentMessagingCommand.js +2 -0
- package/dist/command/RoleAssignmentMessagingCommand.js.map +1 -1
- package/dist/command/RoleAssignmentMessagingTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentMessagingTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentMessagingTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentMetricCommand.js +2 -0
- package/dist/command/RoleAssignmentMetricCommand.js.map +1 -1
- package/dist/command/RoleAssignmentMetricTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentMetricTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentMetricTrackCommand.js.map +1 -0
- package/dist/command/RoleAssignmentStreamingCommand.js +2 -0
- package/dist/command/RoleAssignmentStreamingCommand.js.map +1 -1
- package/dist/command/RoleAssignmentStreamingTrackCommand.d.ts +5 -0
- package/dist/command/RoleAssignmentStreamingTrackCommand.js +38 -0
- package/dist/command/RoleAssignmentStreamingTrackCommand.js.map +1 -0
- package/dist/command/RoleCacheCommand.js +2 -0
- package/dist/command/RoleCacheCommand.js.map +1 -1
- package/dist/command/RoleCacheTrackCommand.d.ts +5 -0
- package/dist/command/RoleCacheTrackCommand.js +38 -0
- package/dist/command/RoleCacheTrackCommand.js.map +1 -0
- package/dist/command/RoleDatabaseCommand.js +2 -0
- package/dist/command/RoleDatabaseCommand.js.map +1 -1
- package/dist/command/RoleDatabaseTrackCommand.d.ts +5 -0
- package/dist/command/RoleDatabaseTrackCommand.js +38 -0
- package/dist/command/RoleDatabaseTrackCommand.js.map +1 -0
- package/dist/command/RoleDockerCommand.js +2 -0
- package/dist/command/RoleDockerCommand.js.map +1 -1
- package/dist/command/RoleDockerTrackCommand.d.ts +5 -0
- package/dist/command/RoleDockerTrackCommand.js +38 -0
- package/dist/command/RoleDockerTrackCommand.js.map +1 -0
- package/dist/command/RoleKubernetesCommand.js +2 -0
- package/dist/command/RoleKubernetesCommand.js.map +1 -1
- package/dist/command/RoleKubernetesTrackCommand.d.ts +5 -0
- package/dist/command/RoleKubernetesTrackCommand.js +38 -0
- package/dist/command/RoleKubernetesTrackCommand.js.map +1 -0
- package/dist/command/RoleMessagingCommand.js +2 -0
- package/dist/command/RoleMessagingCommand.js.map +1 -1
- package/dist/command/RoleMessagingTrackCommand.d.ts +5 -0
- package/dist/command/RoleMessagingTrackCommand.js +38 -0
- package/dist/command/RoleMessagingTrackCommand.js.map +1 -0
- package/dist/command/RoleMetricCommand.js +2 -0
- package/dist/command/RoleMetricCommand.js.map +1 -1
- package/dist/command/RoleMetricTrackCommand.d.ts +5 -0
- package/dist/command/RoleMetricTrackCommand.js +38 -0
- package/dist/command/RoleMetricTrackCommand.js.map +1 -0
- package/dist/command/RoleStreamingCommand.js +2 -0
- package/dist/command/RoleStreamingCommand.js.map +1 -1
- package/dist/command/RoleStreamingTrackCommand.d.ts +5 -0
- package/dist/command/RoleStreamingTrackCommand.js +38 -0
- package/dist/command/RoleStreamingTrackCommand.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/NamirasoftExpertServer.ts +1 -1
- package/src/NamirasoftExpertServerDescriptionCache.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionDatabase.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionDocker.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionKubernetes.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionMessaging.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionMetric.ts +7 -0
- package/src/NamirasoftExpertServerDescriptionServer.ts +7 -7
- package/src/NamirasoftExpertServerDescriptionStreaming.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentCache.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentDatabase.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentDocker.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentKubernetes.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentMessaging.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentMetric.ts +7 -0
- package/src/NamirasoftExpertServerRoleAssignmentStreaming.ts +7 -0
- package/src/NamirasoftExpertServerRoleCache.ts +7 -0
- package/src/NamirasoftExpertServerRoleDatabase.ts +7 -0
- package/src/NamirasoftExpertServerRoleDocker.ts +7 -0
- package/src/NamirasoftExpertServerRoleKubernetes.ts +7 -0
- package/src/NamirasoftExpertServerRoleMessaging.ts +7 -0
- package/src/NamirasoftExpertServerRoleMetric.ts +7 -0
- package/src/NamirasoftExpertServerRoleStreaming.ts +7 -0
- package/src/command/DescriptionCacheCommand.ts +2 -0
- package/src/command/DescriptionCacheTrackCommand.ts +45 -0
- package/src/command/DescriptionDatabaseCommand.ts +2 -0
- package/src/command/DescriptionDatabaseTrackCommand.ts +45 -0
- package/src/command/DescriptionDockerCommand.ts +2 -0
- package/src/command/DescriptionDockerTrackCommand.ts +45 -0
- package/src/command/DescriptionKubernetesCommand.ts +2 -0
- package/src/command/DescriptionKubernetesTrackCommand.ts +45 -0
- package/src/command/DescriptionMessagingCommand.ts +2 -0
- package/src/command/DescriptionMessagingTrackCommand.ts +45 -0
- package/src/command/DescriptionMetricCommand.ts +2 -0
- package/src/command/DescriptionMetricTrackCommand.ts +45 -0
- package/src/command/DescriptionServerCommand.ts +1 -1
- package/src/command/DescriptionStreamingCommand.ts +2 -0
- package/src/command/DescriptionStreamingTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentCacheCommand.ts +2 -0
- package/src/command/RoleAssignmentCacheTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentDatabaseCommand.ts +2 -0
- package/src/command/RoleAssignmentDatabaseTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentDockerCommand.ts +2 -0
- package/src/command/RoleAssignmentDockerTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentKubernetesCommand.ts +2 -0
- package/src/command/RoleAssignmentKubernetesTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentMessagingCommand.ts +2 -0
- package/src/command/RoleAssignmentMessagingTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentMetricCommand.ts +2 -0
- package/src/command/RoleAssignmentMetricTrackCommand.ts +45 -0
- package/src/command/RoleAssignmentStreamingCommand.ts +2 -0
- package/src/command/RoleAssignmentStreamingTrackCommand.ts +45 -0
- package/src/command/RoleCacheCommand.ts +2 -0
- package/src/command/RoleCacheTrackCommand.ts +45 -0
- package/src/command/RoleDatabaseCommand.ts +2 -0
- package/src/command/RoleDatabaseTrackCommand.ts +45 -0
- package/src/command/RoleDockerCommand.ts +2 -0
- package/src/command/RoleDockerTrackCommand.ts +45 -0
- package/src/command/RoleKubernetesCommand.ts +2 -0
- package/src/command/RoleKubernetesTrackCommand.ts +45 -0
- package/src/command/RoleMessagingCommand.ts +2 -0
- package/src/command/RoleMessagingTrackCommand.ts +45 -0
- package/src/command/RoleMetricCommand.ts +2 -0
- package/src/command/RoleMetricTrackCommand.ts +45 -0
- package/src/command/RoleStreamingCommand.ts +2 -0
- package/src/command/RoleStreamingTrackCommand.ts +45 -0
- package/src/index.ts +21 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class DescriptionDockerTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.description_docker.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -22,6 +22,7 @@ import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
|
22
22
|
import { DescriptionKubernetesDeleteCommand } from "./DescriptionKubernetesDeleteCommand";
|
|
23
23
|
import { DescriptionKubernetesGenerateCommand } from "./DescriptionKubernetesGenerateCommand";
|
|
24
24
|
import { DescriptionKubernetesListCommand } from "./DescriptionKubernetesListCommand";
|
|
25
|
+
import { DescriptionKubernetesTrackCommand } from "./DescriptionKubernetesTrackCommand";
|
|
25
26
|
import { DescriptionKubernetesUpdateCommand } from "./DescriptionKubernetesUpdateCommand";
|
|
26
27
|
|
|
27
28
|
export class DescriptionKubernetesCommand extends BaseNavigatorCommand
|
|
@@ -31,6 +32,7 @@ export class DescriptionKubernetesCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": DescriptionKubernetesListCommand,
|
|
33
34
|
"generate": DescriptionKubernetesGenerateCommand,
|
|
35
|
+
"track": DescriptionKubernetesTrackCommand,
|
|
34
36
|
"update": DescriptionKubernetesUpdateCommand,
|
|
35
37
|
"delete": DescriptionKubernetesDeleteCommand,
|
|
36
38
|
});
|
|
@@ -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 { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class DescriptionKubernetesTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.description_kubernetes.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -22,6 +22,7 @@ import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
|
22
22
|
import { DescriptionMessagingDeleteCommand } from "./DescriptionMessagingDeleteCommand";
|
|
23
23
|
import { DescriptionMessagingGenerateCommand } from "./DescriptionMessagingGenerateCommand";
|
|
24
24
|
import { DescriptionMessagingListCommand } from "./DescriptionMessagingListCommand";
|
|
25
|
+
import { DescriptionMessagingTrackCommand } from "./DescriptionMessagingTrackCommand";
|
|
25
26
|
import { DescriptionMessagingUpdateCommand } from "./DescriptionMessagingUpdateCommand";
|
|
26
27
|
|
|
27
28
|
export class DescriptionMessagingCommand extends BaseNavigatorCommand
|
|
@@ -31,6 +32,7 @@ export class DescriptionMessagingCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": DescriptionMessagingListCommand,
|
|
33
34
|
"generate": DescriptionMessagingGenerateCommand,
|
|
35
|
+
"track": DescriptionMessagingTrackCommand,
|
|
34
36
|
"update": DescriptionMessagingUpdateCommand,
|
|
35
37
|
"delete": DescriptionMessagingDeleteCommand,
|
|
36
38
|
});
|
|
@@ -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 { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class DescriptionMessagingTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.description_messaging.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -22,6 +22,7 @@ import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
|
22
22
|
import { DescriptionMetricDeleteCommand } from "./DescriptionMetricDeleteCommand";
|
|
23
23
|
import { DescriptionMetricGenerateCommand } from "./DescriptionMetricGenerateCommand";
|
|
24
24
|
import { DescriptionMetricListCommand } from "./DescriptionMetricListCommand";
|
|
25
|
+
import { DescriptionMetricTrackCommand } from "./DescriptionMetricTrackCommand";
|
|
25
26
|
import { DescriptionMetricUpdateCommand } from "./DescriptionMetricUpdateCommand";
|
|
26
27
|
|
|
27
28
|
export class DescriptionMetricCommand extends BaseNavigatorCommand
|
|
@@ -31,6 +32,7 @@ export class DescriptionMetricCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": DescriptionMetricListCommand,
|
|
33
34
|
"generate": DescriptionMetricGenerateCommand,
|
|
35
|
+
"track": DescriptionMetricTrackCommand,
|
|
34
36
|
"update": DescriptionMetricUpdateCommand,
|
|
35
37
|
"delete": DescriptionMetricDeleteCommand,
|
|
36
38
|
});
|
|
@@ -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 { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class DescriptionMetricTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.description_metric.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -31,8 +31,8 @@ export class DescriptionServerCommand extends BaseNavigatorCommand
|
|
|
31
31
|
{
|
|
32
32
|
super(argv, {
|
|
33
33
|
"list": DescriptionServerListCommand,
|
|
34
|
-
"track": DescriptionServerTrackCommand,
|
|
35
34
|
"generate": DescriptionServerGenerateCommand,
|
|
35
|
+
"track": DescriptionServerTrackCommand,
|
|
36
36
|
"update": DescriptionServerUpdateCommand,
|
|
37
37
|
"delete": DescriptionServerDeleteCommand,
|
|
38
38
|
});
|
|
@@ -22,6 +22,7 @@ import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
|
22
22
|
import { DescriptionStreamingDeleteCommand } from "./DescriptionStreamingDeleteCommand";
|
|
23
23
|
import { DescriptionStreamingGenerateCommand } from "./DescriptionStreamingGenerateCommand";
|
|
24
24
|
import { DescriptionStreamingListCommand } from "./DescriptionStreamingListCommand";
|
|
25
|
+
import { DescriptionStreamingTrackCommand } from "./DescriptionStreamingTrackCommand";
|
|
25
26
|
import { DescriptionStreamingUpdateCommand } from "./DescriptionStreamingUpdateCommand";
|
|
26
27
|
|
|
27
28
|
export class DescriptionStreamingCommand extends BaseNavigatorCommand
|
|
@@ -31,6 +32,7 @@ export class DescriptionStreamingCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": DescriptionStreamingListCommand,
|
|
33
34
|
"generate": DescriptionStreamingGenerateCommand,
|
|
35
|
+
"track": DescriptionStreamingTrackCommand,
|
|
34
36
|
"update": DescriptionStreamingUpdateCommand,
|
|
35
37
|
"delete": DescriptionStreamingDeleteCommand,
|
|
36
38
|
});
|
|
@@ -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 { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class DescriptionStreamingTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.description_streaming.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleAssignmentCacheCreateCommand } from "./RoleAssignmentCacheCreateCom
|
|
|
23
23
|
import { RoleAssignmentCacheDeleteCommand } from "./RoleAssignmentCacheDeleteCommand";
|
|
24
24
|
import { RoleAssignmentCacheGenerateCommand } from "./RoleAssignmentCacheGenerateCommand";
|
|
25
25
|
import { RoleAssignmentCacheListCommand } from "./RoleAssignmentCacheListCommand";
|
|
26
|
+
import { RoleAssignmentCacheTrackCommand } from "./RoleAssignmentCacheTrackCommand";
|
|
26
27
|
|
|
27
28
|
export class RoleAssignmentCacheCommand extends BaseNavigatorCommand
|
|
28
29
|
{
|
|
@@ -31,6 +32,7 @@ export class RoleAssignmentCacheCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": RoleAssignmentCacheListCommand,
|
|
33
34
|
"generate": RoleAssignmentCacheGenerateCommand,
|
|
35
|
+
"track": RoleAssignmentCacheTrackCommand,
|
|
34
36
|
"create": RoleAssignmentCacheCreateCommand,
|
|
35
37
|
"delete": RoleAssignmentCacheDeleteCommand,
|
|
36
38
|
});
|
|
@@ -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 { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleAssignmentCacheTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_assignment_cache.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleAssignmentDatabaseCreateCommand } from "./RoleAssignmentDatabaseCre
|
|
|
23
23
|
import { RoleAssignmentDatabaseDeleteCommand } from "./RoleAssignmentDatabaseDeleteCommand";
|
|
24
24
|
import { RoleAssignmentDatabaseGenerateCommand } from "./RoleAssignmentDatabaseGenerateCommand";
|
|
25
25
|
import { RoleAssignmentDatabaseListCommand } from "./RoleAssignmentDatabaseListCommand";
|
|
26
|
+
import { RoleAssignmentDatabaseTrackCommand } from "./RoleAssignmentDatabaseTrackCommand";
|
|
26
27
|
|
|
27
28
|
export class RoleAssignmentDatabaseCommand extends BaseNavigatorCommand
|
|
28
29
|
{
|
|
@@ -31,6 +32,7 @@ export class RoleAssignmentDatabaseCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": RoleAssignmentDatabaseListCommand,
|
|
33
34
|
"generate": RoleAssignmentDatabaseGenerateCommand,
|
|
35
|
+
"track": RoleAssignmentDatabaseTrackCommand,
|
|
34
36
|
"create": RoleAssignmentDatabaseCreateCommand,
|
|
35
37
|
"delete": RoleAssignmentDatabaseDeleteCommand,
|
|
36
38
|
});
|
|
@@ -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 { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleAssignmentDatabaseTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_assignment_database.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleAssignmentDockerCreateCommand } from "./RoleAssignmentDockerCreateC
|
|
|
23
23
|
import { RoleAssignmentDockerDeleteCommand } from "./RoleAssignmentDockerDeleteCommand";
|
|
24
24
|
import { RoleAssignmentDockerGenerateCommand } from "./RoleAssignmentDockerGenerateCommand";
|
|
25
25
|
import { RoleAssignmentDockerListCommand } from "./RoleAssignmentDockerListCommand";
|
|
26
|
+
import { RoleAssignmentDockerTrackCommand } from "./RoleAssignmentDockerTrackCommand";
|
|
26
27
|
|
|
27
28
|
export class RoleAssignmentDockerCommand extends BaseNavigatorCommand
|
|
28
29
|
{
|
|
@@ -31,6 +32,7 @@ export class RoleAssignmentDockerCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": RoleAssignmentDockerListCommand,
|
|
33
34
|
"generate": RoleAssignmentDockerGenerateCommand,
|
|
35
|
+
"track": RoleAssignmentDockerTrackCommand,
|
|
34
36
|
"create": RoleAssignmentDockerCreateCommand,
|
|
35
37
|
"delete": RoleAssignmentDockerDeleteCommand,
|
|
36
38
|
});
|
|
@@ -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 { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleAssignmentDockerTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_assignment_docker.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleAssignmentKubernetesCreateCommand } from "./RoleAssignmentKubernete
|
|
|
23
23
|
import { RoleAssignmentKubernetesDeleteCommand } from "./RoleAssignmentKubernetesDeleteCommand";
|
|
24
24
|
import { RoleAssignmentKubernetesGenerateCommand } from "./RoleAssignmentKubernetesGenerateCommand";
|
|
25
25
|
import { RoleAssignmentKubernetesListCommand } from "./RoleAssignmentKubernetesListCommand";
|
|
26
|
+
import { RoleAssignmentKubernetesTrackCommand } from "./RoleAssignmentKubernetesTrackCommand";
|
|
26
27
|
|
|
27
28
|
export class RoleAssignmentKubernetesCommand extends BaseNavigatorCommand
|
|
28
29
|
{
|
|
@@ -31,6 +32,7 @@ export class RoleAssignmentKubernetesCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": RoleAssignmentKubernetesListCommand,
|
|
33
34
|
"generate": RoleAssignmentKubernetesGenerateCommand,
|
|
35
|
+
"track": RoleAssignmentKubernetesTrackCommand,
|
|
34
36
|
"create": RoleAssignmentKubernetesCreateCommand,
|
|
35
37
|
"delete": RoleAssignmentKubernetesDeleteCommand,
|
|
36
38
|
});
|
|
@@ -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 { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleAssignmentKubernetesTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_assignment_kubernetes.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleAssignmentMessagingCreateCommand } from "./RoleAssignmentMessagingC
|
|
|
23
23
|
import { RoleAssignmentMessagingDeleteCommand } from "./RoleAssignmentMessagingDeleteCommand";
|
|
24
24
|
import { RoleAssignmentMessagingGenerateCommand } from "./RoleAssignmentMessagingGenerateCommand";
|
|
25
25
|
import { RoleAssignmentMessagingListCommand } from "./RoleAssignmentMessagingListCommand";
|
|
26
|
+
import { RoleAssignmentMessagingTrackCommand } from "./RoleAssignmentMessagingTrackCommand";
|
|
26
27
|
|
|
27
28
|
export class RoleAssignmentMessagingCommand extends BaseNavigatorCommand
|
|
28
29
|
{
|
|
@@ -31,6 +32,7 @@ export class RoleAssignmentMessagingCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": RoleAssignmentMessagingListCommand,
|
|
33
34
|
"generate": RoleAssignmentMessagingGenerateCommand,
|
|
35
|
+
"track": RoleAssignmentMessagingTrackCommand,
|
|
34
36
|
"create": RoleAssignmentMessagingCreateCommand,
|
|
35
37
|
"delete": RoleAssignmentMessagingDeleteCommand,
|
|
36
38
|
});
|
|
@@ -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 { NamirasoftExpertServer } from "../NamirasoftExpertServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class RoleAssignmentMessagingTrackCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["thread_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-expert account config \nor \nns-expert account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-expert-server-url");
|
|
41
|
+
let server = new NamirasoftExpertServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.role_assignment_messaging.Track(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -23,6 +23,7 @@ import { RoleAssignmentMetricCreateCommand } from "./RoleAssignmentMetricCreateC
|
|
|
23
23
|
import { RoleAssignmentMetricDeleteCommand } from "./RoleAssignmentMetricDeleteCommand";
|
|
24
24
|
import { RoleAssignmentMetricGenerateCommand } from "./RoleAssignmentMetricGenerateCommand";
|
|
25
25
|
import { RoleAssignmentMetricListCommand } from "./RoleAssignmentMetricListCommand";
|
|
26
|
+
import { RoleAssignmentMetricTrackCommand } from "./RoleAssignmentMetricTrackCommand";
|
|
26
27
|
|
|
27
28
|
export class RoleAssignmentMetricCommand extends BaseNavigatorCommand
|
|
28
29
|
{
|
|
@@ -31,6 +32,7 @@ export class RoleAssignmentMetricCommand extends BaseNavigatorCommand
|
|
|
31
32
|
super(argv, {
|
|
32
33
|
"list": RoleAssignmentMetricListCommand,
|
|
33
34
|
"generate": RoleAssignmentMetricGenerateCommand,
|
|
35
|
+
"track": RoleAssignmentMetricTrackCommand,
|
|
34
36
|
"create": RoleAssignmentMetricCreateCommand,
|
|
35
37
|
"delete": RoleAssignmentMetricDeleteCommand,
|
|
36
38
|
});
|