Skip to content

Commit eee2d08

Browse files
committed
Merge 'cloud_detect-Node.js-2023-08-31-online-2189-2026_01_15_17_22_09' into 'master'
cloud_detect-Node.js-2023-08-31-online-2189-2026_01_15_17_22_09 See merge request: !16
2 parents da225c8 + 0fad459 commit eee2d08

File tree

106 files changed

+5978
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+5978
-0
lines changed

service/clouddetect/package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "@volcengine/clouddetect",
3+
"version": "1.0.1",
4+
"description": "swagger client for @volcengine/clouddetect",
5+
"license": "Apache-2.0",
6+
"main": "./dist/cjs/index.js",
7+
"module": "./dist/esm/index.mjs",
8+
"types": "./dist/esm/index.d.ts",
9+
"exports": {
10+
".": {
11+
"types": "./dist/esm/index.d.ts",
12+
"import": "./dist/esm/index.mjs",
13+
"require": "./dist/cjs/index.js"
14+
},
15+
"./package.json": "./package.json"
16+
},
17+
"engines": {
18+
"node": ">=18"
19+
},
20+
"scripts": {
21+
"build": "rslib build",
22+
"dev": "rslib build --watch",
23+
"clean": "rm -rf dist",
24+
"test": "jest"
25+
},
26+
"dependencies": {
27+
"@volcengine/sdk-core": "workspace:*"
28+
},
29+
"devDependencies": {
30+
"@types/node": "^20.8.0",
31+
"typescript": "^5.2.2"
32+
},
33+
"sideEffects": false,
34+
"publishConfig": {
35+
"registry": "https://registry.npmjs.org"
36+
}
37+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
import { defineConfig } from "@rslib/core";
3+
4+
export default defineConfig({
5+
lib: [
6+
{
7+
format: "esm",
8+
syntax: "es2020",
9+
dts: true,
10+
output: {
11+
distPath: {
12+
root: "./dist/esm",
13+
},
14+
},
15+
},
16+
{
17+
format: "cjs",
18+
syntax: "es2020",
19+
output: {
20+
distPath: {
21+
root: "./dist/cjs",
22+
},
23+
},
24+
},
25+
],
26+
});

service/clouddetect/src/api.ts

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* cloud_detect
5+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6+
*
7+
* OpenAPI spec version: common-version
8+
*
9+
*
10+
* NOTE: This class is auto generated by the swagger code generator program.
11+
* https://github.com/swagger-api/swagger-codegen.git
12+
* Do not edit the class manually.
13+
*/
14+
15+
import { Client, ClientConfig, Command, buildRequestConfigFromMetaPath, CommandOutput } from '@volcengine/sdk-core';
16+
17+
import { DeleteTaskRequest } from './types/index';
18+
import { DeleteTaskResponse } from './types/index';
19+
import { GetTaskRequest } from './types/index';
20+
import { GetTaskResponse } from './types/index';
21+
import { GetTaskResultRequest } from './types/index';
22+
import { GetTaskResultResponse } from './types/index';
23+
import { ListNodesRequest } from './types/index';
24+
import { ListNodesResponse } from './types/index';
25+
import { ListTaskRequest } from './types/index';
26+
import { ListTaskResponse } from './types/index';
27+
import { RestartTaskRequest } from './types/index';
28+
import { RestartTaskResponse } from './types/index';
29+
import { StopTaskRequest } from './types/index';
30+
import { StopTaskResponse } from './types/index';
31+
32+
// ============================================================================
33+
// Output Type Definitions
34+
// ============================================================================
35+
export type DeleteTaskCommandOutput = CommandOutput<DeleteTaskResponse>;
36+
export type GetTaskCommandOutput = CommandOutput<GetTaskResponse>;
37+
export type GetTaskResultCommandOutput = CommandOutput<GetTaskResultResponse>;
38+
export type ListNodesCommandOutput = CommandOutput<ListNodesResponse>;
39+
export type ListTaskCommandOutput = CommandOutput<ListTaskResponse>;
40+
export type RestartTaskCommandOutput = CommandOutput<RestartTaskResponse>;
41+
export type StopTaskCommandOutput = CommandOutput<StopTaskResponse>;
42+
43+
// ============================================================================
44+
// CommandOutputMap Extensions via Declaration Merging
45+
// ============================================================================
46+
declare module '@volcengine/sdk-core' {
47+
interface CommandOutputMap {
48+
DeleteTaskCommand: DeleteTaskCommandOutput;
49+
GetTaskCommand: GetTaskCommandOutput;
50+
GetTaskResultCommand: GetTaskResultCommandOutput;
51+
ListNodesCommand: ListNodesCommandOutput;
52+
ListTaskCommand: ListTaskCommandOutput;
53+
RestartTaskCommand: RestartTaskCommandOutput;
54+
StopTaskCommand: StopTaskCommandOutput;
55+
}
56+
}
57+
58+
/**
59+
* CLOUDDETECTClient Service Client
60+
*/
61+
export class CLOUDDETECTClient extends Client {
62+
constructor(config: ClientConfig = {}) {
63+
super({
64+
protocol: 'https',
65+
region: 'cn-beijing',
66+
...config,
67+
});
68+
}
69+
}
70+
71+
/**
72+
* Command to DeleteTask
73+
*/
74+
export class DeleteTaskCommand extends Command<
75+
DeleteTaskRequest,
76+
DeleteTaskCommandOutput,
77+
'DeleteTaskCommand'
78+
> {
79+
static readonly metaPath = '/DeleteTask/2023-08-31/cloud_detect/post/application_json/';
80+
81+
constructor(input: DeleteTaskRequest) {
82+
super(input);
83+
this.requestConfig = buildRequestConfigFromMetaPath(DeleteTaskCommand.metaPath);
84+
}
85+
}
86+
/**
87+
* Command to GetTask
88+
*/
89+
export class GetTaskCommand extends Command<
90+
GetTaskRequest,
91+
GetTaskCommandOutput,
92+
'GetTaskCommand'
93+
> {
94+
static readonly metaPath = '/GetTask/2023-08-31/cloud_detect/post/application_json/';
95+
96+
constructor(input: GetTaskRequest) {
97+
super(input);
98+
this.requestConfig = buildRequestConfigFromMetaPath(GetTaskCommand.metaPath);
99+
}
100+
}
101+
/**
102+
* Command to GetTaskResult
103+
*/
104+
export class GetTaskResultCommand extends Command<
105+
GetTaskResultRequest,
106+
GetTaskResultCommandOutput,
107+
'GetTaskResultCommand'
108+
> {
109+
static readonly metaPath = '/GetTaskResult/2023-08-31/cloud_detect/post/application_json/';
110+
111+
constructor(input: GetTaskResultRequest) {
112+
super(input);
113+
this.requestConfig = buildRequestConfigFromMetaPath(GetTaskResultCommand.metaPath);
114+
}
115+
}
116+
/**
117+
* Command to ListNodes
118+
*/
119+
export class ListNodesCommand extends Command<
120+
ListNodesRequest,
121+
ListNodesCommandOutput,
122+
'ListNodesCommand'
123+
> {
124+
static readonly metaPath = '/ListNodes/2023-08-31/cloud_detect/post/application_json/';
125+
126+
constructor(input: ListNodesRequest) {
127+
super(input);
128+
this.requestConfig = buildRequestConfigFromMetaPath(ListNodesCommand.metaPath);
129+
}
130+
}
131+
/**
132+
* Command to ListTask
133+
*/
134+
export class ListTaskCommand extends Command<
135+
ListTaskRequest,
136+
ListTaskCommandOutput,
137+
'ListTaskCommand'
138+
> {
139+
static readonly metaPath = '/ListTask/2023-08-31/cloud_detect/post/application_json/';
140+
141+
constructor(input: ListTaskRequest) {
142+
super(input);
143+
this.requestConfig = buildRequestConfigFromMetaPath(ListTaskCommand.metaPath);
144+
}
145+
}
146+
/**
147+
* Command to RestartTask
148+
*/
149+
export class RestartTaskCommand extends Command<
150+
RestartTaskRequest,
151+
RestartTaskCommandOutput,
152+
'RestartTaskCommand'
153+
> {
154+
static readonly metaPath = '/RestartTask/2023-08-31/cloud_detect/post/application_json/';
155+
156+
constructor(input: RestartTaskRequest) {
157+
super(input);
158+
this.requestConfig = buildRequestConfigFromMetaPath(RestartTaskCommand.metaPath);
159+
}
160+
}
161+
/**
162+
* Command to StopTask
163+
*/
164+
export class StopTaskCommand extends Command<
165+
StopTaskRequest,
166+
StopTaskCommandOutput,
167+
'StopTaskCommand'
168+
> {
169+
static readonly metaPath = '/StopTask/2023-08-31/cloud_detect/post/application_json/';
170+
171+
constructor(input: StopTaskRequest) {
172+
super(input);
173+
this.requestConfig = buildRequestConfigFromMetaPath(StopTaskCommand.metaPath);
174+
}
175+
}
176+
177+
export default {
178+
CLOUDDETECTClient,
179+
DeleteTaskCommand,
180+
GetTaskCommand,
181+
GetTaskResultCommand,
182+
ListNodesCommand,
183+
ListTaskCommand,
184+
RestartTaskCommand,
185+
StopTaskCommand,
186+
};

service/clouddetect/src/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// tslint:disable
2+
/**
3+
* cloud_detect
4+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5+
*
6+
* OpenAPI spec version: common-version
7+
*
8+
*
9+
* NOTE: This class is auto generated by the swagger code generator program.
10+
* https://github.com/swagger-api/swagger-codegen.git
11+
* Do not edit the class manually.
12+
*/
13+
14+
export * from "./api";
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* cloud_detect
5+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6+
*
7+
* OpenAPI spec version: common-version
8+
*
9+
*
10+
* NOTE: This class is auto generated by the swagger code generator program.
11+
* https://github.com/swagger-api/swagger-codegen.git
12+
* Do not edit the class manually.
13+
*/
14+
15+
/**
16+
*
17+
*
18+
* @export
19+
* @interface AlarmListForGetTaskOutput
20+
*/
21+
export interface AlarmListForGetTaskOutput {
22+
23+
/**
24+
* @type {number}
25+
* @memberof AlarmListForGetTaskOutput
26+
*/
27+
ID?: number;
28+
29+
/**
30+
* @type {string}
31+
* @memberof AlarmListForGetTaskOutput
32+
*/
33+
Name?: string;
34+
35+
/**
36+
* @type {number}
37+
* @memberof AlarmListForGetTaskOutput
38+
*/
39+
Status?: number;
40+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* cloud_detect
5+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6+
*
7+
* OpenAPI spec version: common-version
8+
*
9+
*
10+
* NOTE: This class is auto generated by the swagger code generator program.
11+
* https://github.com/swagger-api/swagger-codegen.git
12+
* Do not edit the class manually.
13+
*/
14+
15+
/**
16+
*
17+
*
18+
* @export
19+
* @interface AlarmListForListTaskOutput
20+
*/
21+
export interface AlarmListForListTaskOutput {
22+
23+
/**
24+
* @type {number}
25+
* @memberof AlarmListForListTaskOutput
26+
*/
27+
ID?: number;
28+
29+
/**
30+
* @type {string}
31+
* @memberof AlarmListForListTaskOutput
32+
*/
33+
Name?: string;
34+
35+
/**
36+
* @type {number}
37+
* @memberof AlarmListForListTaskOutput
38+
*/
39+
Status?: number;
40+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* cloud_detect
5+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6+
*
7+
* OpenAPI spec version: common-version
8+
*
9+
*
10+
* NOTE: This class is auto generated by the swagger code generator program.
11+
* https://github.com/swagger-api/swagger-codegen.git
12+
* Do not edit the class manually.
13+
*/
14+
15+
/**
16+
*
17+
*
18+
* @export
19+
* @interface AssertionForGetTaskResultOutput
20+
*/
21+
export interface AssertionForGetTaskResultOutput {
22+
23+
/**
24+
* @type {string}
25+
* @memberof AssertionForGetTaskResultOutput
26+
*/
27+
ConditionMessage?: string;
28+
29+
/**
30+
* @type {string}
31+
* @memberof AssertionForGetTaskResultOutput
32+
*/
33+
ResultValue?: string;
34+
35+
/**
36+
* @type {boolean}
37+
* @memberof AssertionForGetTaskResultOutput
38+
*/
39+
Success?: boolean;
40+
}

0 commit comments

Comments
 (0)