@huaweicloud/huaweicloud-sdk-cbr 3.1.37 → 3.1.38
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/v1/CbrClient.d.ts +192 -0
- package/v1/CbrClient.js +390 -0
- package/v1/model/AddAgentPathRequest.d.ts +10 -0
- package/v1/model/AddAgentPathRequest.js +28 -0
- package/v1/model/AddAgentPathResponse.d.ts +8 -0
- package/v1/model/AddAgentPathResponse.js +35 -0
- package/v1/model/Agent.d.ts +48 -0
- package/v1/model/Agent.js +158 -0
- package/v1/model/AgentAddPathReq.d.ts +7 -0
- package/v1/model/AgentAddPathReq.js +24 -0
- package/v1/model/AgentRegister.d.ts +31 -0
- package/v1/model/AgentRegister.js +111 -0
- package/v1/model/AgentRegisterReq.d.ts +6 -0
- package/v1/model/AgentRegisterReq.js +14 -0
- package/v1/model/AgentRemovePathReq.d.ts +7 -0
- package/v1/model/AgentRemovePathReq.js +24 -0
- package/v1/model/AgentUpdate.d.ts +12 -0
- package/v1/model/AgentUpdate.js +22 -0
- package/v1/model/AgentUpdateReq.d.ts +6 -0
- package/v1/model/AgentUpdateReq.js +14 -0
- package/v1/model/ListAgentRequest.d.ts +13 -0
- package/v1/model/ListAgentRequest.js +35 -0
- package/v1/model/ListAgentResponse.d.ts +13 -0
- package/v1/model/ListAgentResponse.js +43 -0
- package/v1/model/Path.d.ts +15 -0
- package/v1/model/Path.js +45 -0
- package/v1/model/RegisterAgentRequest.d.ts +6 -0
- package/v1/model/RegisterAgentRequest.js +13 -0
- package/v1/model/RegisterAgentResponse.d.ts +7 -0
- package/v1/model/RegisterAgentResponse.js +31 -0
- package/v1/model/RemoveAgentPathRequest.d.ts +10 -0
- package/v1/model/RemoveAgentPathRequest.js +28 -0
- package/v1/model/RemoveAgentPathResponse.d.ts +10 -0
- package/v1/model/RemoveAgentPathResponse.js +45 -0
- package/v1/model/ShowAgentRequest.d.ts +7 -0
- package/v1/model/ShowAgentRequest.js +24 -0
- package/v1/model/ShowAgentResponse.d.ts +7 -0
- package/v1/model/ShowAgentResponse.js +31 -0
- package/v1/model/UnregisterAgentRequest.d.ts +7 -0
- package/v1/model/UnregisterAgentRequest.js +24 -0
- package/v1/model/UnregisterAgentResponse.d.ts +4 -0
- package/v1/model/UnregisterAgentResponse.js +27 -0
- package/v1/model/UpdateAgentRequest.d.ts +10 -0
- package/v1/model/UpdateAgentRequest.js +28 -0
- package/v1/model/UpdateAgentResponse.d.ts +7 -0
- package/v1/model/UpdateAgentResponse.js +31 -0
- package/v1/public-api.d.ts +22 -0
- package/v1/public-api.js +22 -0
@@ -0,0 +1,158 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Agent = void 0;
|
4
|
+
var Agent = /** @class */ (function () {
|
5
|
+
function Agent(agentId) {
|
6
|
+
this['agent_id'] = agentId;
|
7
|
+
}
|
8
|
+
Agent.prototype.withCreatedAt = function (createdAt) {
|
9
|
+
this['created_at'] = createdAt;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
Object.defineProperty(Agent.prototype, "createdAt", {
|
13
|
+
get: function () {
|
14
|
+
return this['created_at'];
|
15
|
+
},
|
16
|
+
set: function (createdAt) {
|
17
|
+
this['created_at'] = createdAt;
|
18
|
+
},
|
19
|
+
enumerable: false,
|
20
|
+
configurable: true
|
21
|
+
});
|
22
|
+
Agent.prototype.withUpdatedAt = function (updatedAt) {
|
23
|
+
this['updated_at'] = updatedAt;
|
24
|
+
return this;
|
25
|
+
};
|
26
|
+
Object.defineProperty(Agent.prototype, "updatedAt", {
|
27
|
+
get: function () {
|
28
|
+
return this['updated_at'];
|
29
|
+
},
|
30
|
+
set: function (updatedAt) {
|
31
|
+
this['updated_at'] = updatedAt;
|
32
|
+
},
|
33
|
+
enumerable: false,
|
34
|
+
configurable: true
|
35
|
+
});
|
36
|
+
Agent.prototype.withAgentId = function (agentId) {
|
37
|
+
this['agent_id'] = agentId;
|
38
|
+
return this;
|
39
|
+
};
|
40
|
+
Object.defineProperty(Agent.prototype, "agentId", {
|
41
|
+
get: function () {
|
42
|
+
return this['agent_id'];
|
43
|
+
},
|
44
|
+
set: function (agentId) {
|
45
|
+
this['agent_id'] = agentId;
|
46
|
+
},
|
47
|
+
enumerable: false,
|
48
|
+
configurable: true
|
49
|
+
});
|
50
|
+
Agent.prototype.withAgentVersion = function (agentVersion) {
|
51
|
+
this['agent_version'] = agentVersion;
|
52
|
+
return this;
|
53
|
+
};
|
54
|
+
Object.defineProperty(Agent.prototype, "agentVersion", {
|
55
|
+
get: function () {
|
56
|
+
return this['agent_version'];
|
57
|
+
},
|
58
|
+
set: function (agentVersion) {
|
59
|
+
this['agent_version'] = agentVersion;
|
60
|
+
},
|
61
|
+
enumerable: false,
|
62
|
+
configurable: true
|
63
|
+
});
|
64
|
+
Agent.prototype.withAgentType = function (agentType) {
|
65
|
+
this['agent_type'] = agentType;
|
66
|
+
return this;
|
67
|
+
};
|
68
|
+
Object.defineProperty(Agent.prototype, "agentType", {
|
69
|
+
get: function () {
|
70
|
+
return this['agent_type'];
|
71
|
+
},
|
72
|
+
set: function (agentType) {
|
73
|
+
this['agent_type'] = agentType;
|
74
|
+
},
|
75
|
+
enumerable: false,
|
76
|
+
configurable: true
|
77
|
+
});
|
78
|
+
Agent.prototype.withHostName = function (hostName) {
|
79
|
+
this['host_name'] = hostName;
|
80
|
+
return this;
|
81
|
+
};
|
82
|
+
Object.defineProperty(Agent.prototype, "hostName", {
|
83
|
+
get: function () {
|
84
|
+
return this['host_name'];
|
85
|
+
},
|
86
|
+
set: function (hostName) {
|
87
|
+
this['host_name'] = hostName;
|
88
|
+
},
|
89
|
+
enumerable: false,
|
90
|
+
configurable: true
|
91
|
+
});
|
92
|
+
Agent.prototype.withHostNickname = function (hostNickname) {
|
93
|
+
this['host_nickname'] = hostNickname;
|
94
|
+
return this;
|
95
|
+
};
|
96
|
+
Object.defineProperty(Agent.prototype, "hostNickname", {
|
97
|
+
get: function () {
|
98
|
+
return this['host_nickname'];
|
99
|
+
},
|
100
|
+
set: function (hostNickname) {
|
101
|
+
this['host_nickname'] = hostNickname;
|
102
|
+
},
|
103
|
+
enumerable: false,
|
104
|
+
configurable: true
|
105
|
+
});
|
106
|
+
Agent.prototype.withHostIp = function (hostIp) {
|
107
|
+
this['host_ip'] = hostIp;
|
108
|
+
return this;
|
109
|
+
};
|
110
|
+
Object.defineProperty(Agent.prototype, "hostIp", {
|
111
|
+
get: function () {
|
112
|
+
return this['host_ip'];
|
113
|
+
},
|
114
|
+
set: function (hostIp) {
|
115
|
+
this['host_ip'] = hostIp;
|
116
|
+
},
|
117
|
+
enumerable: false,
|
118
|
+
configurable: true
|
119
|
+
});
|
120
|
+
Agent.prototype.withHostOs = function (hostOs) {
|
121
|
+
this['host_os'] = hostOs;
|
122
|
+
return this;
|
123
|
+
};
|
124
|
+
Object.defineProperty(Agent.prototype, "hostOs", {
|
125
|
+
get: function () {
|
126
|
+
return this['host_os'];
|
127
|
+
},
|
128
|
+
set: function (hostOs) {
|
129
|
+
this['host_os'] = hostOs;
|
130
|
+
},
|
131
|
+
enumerable: false,
|
132
|
+
configurable: true
|
133
|
+
});
|
134
|
+
Agent.prototype.withStatus = function (status) {
|
135
|
+
this['status'] = status;
|
136
|
+
return this;
|
137
|
+
};
|
138
|
+
Agent.prototype.withLastActiveTime = function (lastActiveTime) {
|
139
|
+
this['last_active_time'] = lastActiveTime;
|
140
|
+
return this;
|
141
|
+
};
|
142
|
+
Object.defineProperty(Agent.prototype, "lastActiveTime", {
|
143
|
+
get: function () {
|
144
|
+
return this['last_active_time'];
|
145
|
+
},
|
146
|
+
set: function (lastActiveTime) {
|
147
|
+
this['last_active_time'] = lastActiveTime;
|
148
|
+
},
|
149
|
+
enumerable: false,
|
150
|
+
configurable: true
|
151
|
+
});
|
152
|
+
Agent.prototype.withPaths = function (paths) {
|
153
|
+
this['paths'] = paths;
|
154
|
+
return this;
|
155
|
+
};
|
156
|
+
return Agent;
|
157
|
+
}());
|
158
|
+
exports.Agent = Agent;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AgentAddPathReq = void 0;
|
4
|
+
var AgentAddPathReq = /** @class */ (function () {
|
5
|
+
function AgentAddPathReq(addPath) {
|
6
|
+
this['add_path'] = addPath;
|
7
|
+
}
|
8
|
+
AgentAddPathReq.prototype.withAddPath = function (addPath) {
|
9
|
+
this['add_path'] = addPath;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
Object.defineProperty(AgentAddPathReq.prototype, "addPath", {
|
13
|
+
get: function () {
|
14
|
+
return this['add_path'];
|
15
|
+
},
|
16
|
+
set: function (addPath) {
|
17
|
+
this['add_path'] = addPath;
|
18
|
+
},
|
19
|
+
enumerable: false,
|
20
|
+
configurable: true
|
21
|
+
});
|
22
|
+
return AgentAddPathReq;
|
23
|
+
}());
|
24
|
+
exports.AgentAddPathReq = AgentAddPathReq;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
export declare class AgentRegister {
|
2
|
+
private 'agent_id';
|
3
|
+
private 'host_name';
|
4
|
+
private 'host_ip';
|
5
|
+
private 'host_os';
|
6
|
+
private 'host_nickname'?;
|
7
|
+
private 'agent_version'?;
|
8
|
+
private 'agent_type'?;
|
9
|
+
constructor(agentId?: any, hostName?: any, hostIp?: any, hostOs?: any);
|
10
|
+
withAgentId(agentId: string): AgentRegister;
|
11
|
+
set agentId(agentId: string | undefined);
|
12
|
+
get agentId(): string | undefined;
|
13
|
+
withHostName(hostName: string): AgentRegister;
|
14
|
+
set hostName(hostName: string | undefined);
|
15
|
+
get hostName(): string | undefined;
|
16
|
+
withHostIp(hostIp: string): AgentRegister;
|
17
|
+
set hostIp(hostIp: string | undefined);
|
18
|
+
get hostIp(): string | undefined;
|
19
|
+
withHostOs(hostOs: string): AgentRegister;
|
20
|
+
set hostOs(hostOs: string | undefined);
|
21
|
+
get hostOs(): string | undefined;
|
22
|
+
withHostNickname(hostNickname: string): AgentRegister;
|
23
|
+
set hostNickname(hostNickname: string | undefined);
|
24
|
+
get hostNickname(): string | undefined;
|
25
|
+
withAgentVersion(agentVersion: string): AgentRegister;
|
26
|
+
set agentVersion(agentVersion: string | undefined);
|
27
|
+
get agentVersion(): string | undefined;
|
28
|
+
withAgentType(agentType: string): AgentRegister;
|
29
|
+
set agentType(agentType: string | undefined);
|
30
|
+
get agentType(): string | undefined;
|
31
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AgentRegister = void 0;
|
4
|
+
var AgentRegister = /** @class */ (function () {
|
5
|
+
function AgentRegister(agentId, hostName, hostIp, hostOs) {
|
6
|
+
this['agent_id'] = agentId;
|
7
|
+
this['host_name'] = hostName;
|
8
|
+
this['host_ip'] = hostIp;
|
9
|
+
this['host_os'] = hostOs;
|
10
|
+
}
|
11
|
+
AgentRegister.prototype.withAgentId = function (agentId) {
|
12
|
+
this['agent_id'] = agentId;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
Object.defineProperty(AgentRegister.prototype, "agentId", {
|
16
|
+
get: function () {
|
17
|
+
return this['agent_id'];
|
18
|
+
},
|
19
|
+
set: function (agentId) {
|
20
|
+
this['agent_id'] = agentId;
|
21
|
+
},
|
22
|
+
enumerable: false,
|
23
|
+
configurable: true
|
24
|
+
});
|
25
|
+
AgentRegister.prototype.withHostName = function (hostName) {
|
26
|
+
this['host_name'] = hostName;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
Object.defineProperty(AgentRegister.prototype, "hostName", {
|
30
|
+
get: function () {
|
31
|
+
return this['host_name'];
|
32
|
+
},
|
33
|
+
set: function (hostName) {
|
34
|
+
this['host_name'] = hostName;
|
35
|
+
},
|
36
|
+
enumerable: false,
|
37
|
+
configurable: true
|
38
|
+
});
|
39
|
+
AgentRegister.prototype.withHostIp = function (hostIp) {
|
40
|
+
this['host_ip'] = hostIp;
|
41
|
+
return this;
|
42
|
+
};
|
43
|
+
Object.defineProperty(AgentRegister.prototype, "hostIp", {
|
44
|
+
get: function () {
|
45
|
+
return this['host_ip'];
|
46
|
+
},
|
47
|
+
set: function (hostIp) {
|
48
|
+
this['host_ip'] = hostIp;
|
49
|
+
},
|
50
|
+
enumerable: false,
|
51
|
+
configurable: true
|
52
|
+
});
|
53
|
+
AgentRegister.prototype.withHostOs = function (hostOs) {
|
54
|
+
this['host_os'] = hostOs;
|
55
|
+
return this;
|
56
|
+
};
|
57
|
+
Object.defineProperty(AgentRegister.prototype, "hostOs", {
|
58
|
+
get: function () {
|
59
|
+
return this['host_os'];
|
60
|
+
},
|
61
|
+
set: function (hostOs) {
|
62
|
+
this['host_os'] = hostOs;
|
63
|
+
},
|
64
|
+
enumerable: false,
|
65
|
+
configurable: true
|
66
|
+
});
|
67
|
+
AgentRegister.prototype.withHostNickname = function (hostNickname) {
|
68
|
+
this['host_nickname'] = hostNickname;
|
69
|
+
return this;
|
70
|
+
};
|
71
|
+
Object.defineProperty(AgentRegister.prototype, "hostNickname", {
|
72
|
+
get: function () {
|
73
|
+
return this['host_nickname'];
|
74
|
+
},
|
75
|
+
set: function (hostNickname) {
|
76
|
+
this['host_nickname'] = hostNickname;
|
77
|
+
},
|
78
|
+
enumerable: false,
|
79
|
+
configurable: true
|
80
|
+
});
|
81
|
+
AgentRegister.prototype.withAgentVersion = function (agentVersion) {
|
82
|
+
this['agent_version'] = agentVersion;
|
83
|
+
return this;
|
84
|
+
};
|
85
|
+
Object.defineProperty(AgentRegister.prototype, "agentVersion", {
|
86
|
+
get: function () {
|
87
|
+
return this['agent_version'];
|
88
|
+
},
|
89
|
+
set: function (agentVersion) {
|
90
|
+
this['agent_version'] = agentVersion;
|
91
|
+
},
|
92
|
+
enumerable: false,
|
93
|
+
configurable: true
|
94
|
+
});
|
95
|
+
AgentRegister.prototype.withAgentType = function (agentType) {
|
96
|
+
this['agent_type'] = agentType;
|
97
|
+
return this;
|
98
|
+
};
|
99
|
+
Object.defineProperty(AgentRegister.prototype, "agentType", {
|
100
|
+
get: function () {
|
101
|
+
return this['agent_type'];
|
102
|
+
},
|
103
|
+
set: function (agentType) {
|
104
|
+
this['agent_type'] = agentType;
|
105
|
+
},
|
106
|
+
enumerable: false,
|
107
|
+
configurable: true
|
108
|
+
});
|
109
|
+
return AgentRegister;
|
110
|
+
}());
|
111
|
+
exports.AgentRegister = AgentRegister;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AgentRegisterReq = void 0;
|
4
|
+
var AgentRegisterReq = /** @class */ (function () {
|
5
|
+
function AgentRegisterReq(agent) {
|
6
|
+
this['agent'] = agent;
|
7
|
+
}
|
8
|
+
AgentRegisterReq.prototype.withAgent = function (agent) {
|
9
|
+
this['agent'] = agent;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
return AgentRegisterReq;
|
13
|
+
}());
|
14
|
+
exports.AgentRegisterReq = AgentRegisterReq;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare class AgentRemovePathReq {
|
2
|
+
private 'remove_path';
|
3
|
+
constructor(removePath?: any);
|
4
|
+
withRemovePath(removePath: Array<string>): AgentRemovePathReq;
|
5
|
+
set removePath(removePath: Array<string> | undefined);
|
6
|
+
get removePath(): Array<string> | undefined;
|
7
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AgentRemovePathReq = void 0;
|
4
|
+
var AgentRemovePathReq = /** @class */ (function () {
|
5
|
+
function AgentRemovePathReq(removePath) {
|
6
|
+
this['remove_path'] = removePath;
|
7
|
+
}
|
8
|
+
AgentRemovePathReq.prototype.withRemovePath = function (removePath) {
|
9
|
+
this['remove_path'] = removePath;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
Object.defineProperty(AgentRemovePathReq.prototype, "removePath", {
|
13
|
+
get: function () {
|
14
|
+
return this['remove_path'];
|
15
|
+
},
|
16
|
+
set: function (removePath) {
|
17
|
+
this['remove_path'] = removePath;
|
18
|
+
},
|
19
|
+
enumerable: false,
|
20
|
+
configurable: true
|
21
|
+
});
|
22
|
+
return AgentRemovePathReq;
|
23
|
+
}());
|
24
|
+
exports.AgentRemovePathReq = AgentRemovePathReq;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare class AgentUpdate {
|
2
|
+
status: AgentUpdateStatusEnum;
|
3
|
+
constructor(status?: any);
|
4
|
+
withStatus(status: AgentUpdateStatusEnum): AgentUpdate;
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* @export
|
8
|
+
* @enum {string}
|
9
|
+
*/
|
10
|
+
export declare enum AgentUpdateStatusEnum {
|
11
|
+
UNINSTALL = "uninstall"
|
12
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AgentUpdateStatusEnum = exports.AgentUpdate = void 0;
|
4
|
+
var AgentUpdate = /** @class */ (function () {
|
5
|
+
function AgentUpdate(status) {
|
6
|
+
this['status'] = status;
|
7
|
+
}
|
8
|
+
AgentUpdate.prototype.withStatus = function (status) {
|
9
|
+
this['status'] = status;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
return AgentUpdate;
|
13
|
+
}());
|
14
|
+
exports.AgentUpdate = AgentUpdate;
|
15
|
+
/**
|
16
|
+
* @export
|
17
|
+
* @enum {string}
|
18
|
+
*/
|
19
|
+
var AgentUpdateStatusEnum;
|
20
|
+
(function (AgentUpdateStatusEnum) {
|
21
|
+
AgentUpdateStatusEnum["UNINSTALL"] = "uninstall";
|
22
|
+
})(AgentUpdateStatusEnum = exports.AgentUpdateStatusEnum || (exports.AgentUpdateStatusEnum = {}));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AgentUpdateReq = void 0;
|
4
|
+
var AgentUpdateReq = /** @class */ (function () {
|
5
|
+
function AgentUpdateReq(agent) {
|
6
|
+
this['agent'] = agent;
|
7
|
+
}
|
8
|
+
AgentUpdateReq.prototype.withAgent = function (agent) {
|
9
|
+
this['agent'] = agent;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
return AgentUpdateReq;
|
13
|
+
}());
|
14
|
+
exports.AgentUpdateReq = AgentUpdateReq;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare class ListAgentRequest {
|
2
|
+
limit?: string;
|
3
|
+
offset?: number;
|
4
|
+
status?: string;
|
5
|
+
private 'agent_id'?;
|
6
|
+
constructor();
|
7
|
+
withLimit(limit: string): ListAgentRequest;
|
8
|
+
withOffset(offset: number): ListAgentRequest;
|
9
|
+
withStatus(status: string): ListAgentRequest;
|
10
|
+
withAgentId(agentId: string): ListAgentRequest;
|
11
|
+
set agentId(agentId: string | undefined);
|
12
|
+
get agentId(): string | undefined;
|
13
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ListAgentRequest = void 0;
|
4
|
+
var ListAgentRequest = /** @class */ (function () {
|
5
|
+
function ListAgentRequest() {
|
6
|
+
}
|
7
|
+
ListAgentRequest.prototype.withLimit = function (limit) {
|
8
|
+
this['limit'] = limit;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
ListAgentRequest.prototype.withOffset = function (offset) {
|
12
|
+
this['offset'] = offset;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
ListAgentRequest.prototype.withStatus = function (status) {
|
16
|
+
this['status'] = status;
|
17
|
+
return this;
|
18
|
+
};
|
19
|
+
ListAgentRequest.prototype.withAgentId = function (agentId) {
|
20
|
+
this['agent_id'] = agentId;
|
21
|
+
return this;
|
22
|
+
};
|
23
|
+
Object.defineProperty(ListAgentRequest.prototype, "agentId", {
|
24
|
+
get: function () {
|
25
|
+
return this['agent_id'];
|
26
|
+
},
|
27
|
+
set: function (agentId) {
|
28
|
+
this['agent_id'] = agentId;
|
29
|
+
},
|
30
|
+
enumerable: false,
|
31
|
+
configurable: true
|
32
|
+
});
|
33
|
+
return ListAgentRequest;
|
34
|
+
}());
|
35
|
+
exports.ListAgentRequest = ListAgentRequest;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Agent } from './Agent';
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
3
|
+
export declare class ListAgentResponse extends SdkResponse {
|
4
|
+
agents?: Array<Agent>;
|
5
|
+
count?: number;
|
6
|
+
limit?: number;
|
7
|
+
offset?: number;
|
8
|
+
constructor();
|
9
|
+
withAgents(agents: Array<Agent>): ListAgentResponse;
|
10
|
+
withCount(count: number): ListAgentResponse;
|
11
|
+
withLimit(limit: number): ListAgentResponse;
|
12
|
+
withOffset(offset: number): ListAgentResponse;
|
13
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.ListAgentResponse = void 0;
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
20
|
+
var ListAgentResponse = /** @class */ (function (_super) {
|
21
|
+
__extends(ListAgentResponse, _super);
|
22
|
+
function ListAgentResponse() {
|
23
|
+
return _super.call(this) || this;
|
24
|
+
}
|
25
|
+
ListAgentResponse.prototype.withAgents = function (agents) {
|
26
|
+
this['agents'] = agents;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
ListAgentResponse.prototype.withCount = function (count) {
|
30
|
+
this['count'] = count;
|
31
|
+
return this;
|
32
|
+
};
|
33
|
+
ListAgentResponse.prototype.withLimit = function (limit) {
|
34
|
+
this['limit'] = limit;
|
35
|
+
return this;
|
36
|
+
};
|
37
|
+
ListAgentResponse.prototype.withOffset = function (offset) {
|
38
|
+
this['offset'] = offset;
|
39
|
+
return this;
|
40
|
+
};
|
41
|
+
return ListAgentResponse;
|
42
|
+
}(SdkResponse_1.SdkResponse));
|
43
|
+
exports.ListAgentResponse = ListAgentResponse;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare class Path {
|
2
|
+
id?: string;
|
3
|
+
status?: string;
|
4
|
+
private 'agent_id'?;
|
5
|
+
private 'dir_path'?;
|
6
|
+
constructor();
|
7
|
+
withId(id: string): Path;
|
8
|
+
withStatus(status: string): Path;
|
9
|
+
withAgentId(agentId: string): Path;
|
10
|
+
set agentId(agentId: string | undefined);
|
11
|
+
get agentId(): string | undefined;
|
12
|
+
withDirPath(dirPath: string): Path;
|
13
|
+
set dirPath(dirPath: string | undefined);
|
14
|
+
get dirPath(): string | undefined;
|
15
|
+
}
|
package/v1/model/Path.js
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Path = void 0;
|
4
|
+
var Path = /** @class */ (function () {
|
5
|
+
function Path() {
|
6
|
+
}
|
7
|
+
Path.prototype.withId = function (id) {
|
8
|
+
this['id'] = id;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
Path.prototype.withStatus = function (status) {
|
12
|
+
this['status'] = status;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
Path.prototype.withAgentId = function (agentId) {
|
16
|
+
this['agent_id'] = agentId;
|
17
|
+
return this;
|
18
|
+
};
|
19
|
+
Object.defineProperty(Path.prototype, "agentId", {
|
20
|
+
get: function () {
|
21
|
+
return this['agent_id'];
|
22
|
+
},
|
23
|
+
set: function (agentId) {
|
24
|
+
this['agent_id'] = agentId;
|
25
|
+
},
|
26
|
+
enumerable: false,
|
27
|
+
configurable: true
|
28
|
+
});
|
29
|
+
Path.prototype.withDirPath = function (dirPath) {
|
30
|
+
this['dir_path'] = dirPath;
|
31
|
+
return this;
|
32
|
+
};
|
33
|
+
Object.defineProperty(Path.prototype, "dirPath", {
|
34
|
+
get: function () {
|
35
|
+
return this['dir_path'];
|
36
|
+
},
|
37
|
+
set: function (dirPath) {
|
38
|
+
this['dir_path'] = dirPath;
|
39
|
+
},
|
40
|
+
enumerable: false,
|
41
|
+
configurable: true
|
42
|
+
});
|
43
|
+
return Path;
|
44
|
+
}());
|
45
|
+
exports.Path = Path;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RegisterAgentRequest = void 0;
|
4
|
+
var RegisterAgentRequest = /** @class */ (function () {
|
5
|
+
function RegisterAgentRequest() {
|
6
|
+
}
|
7
|
+
RegisterAgentRequest.prototype.withBody = function (body) {
|
8
|
+
this['body'] = body;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
return RegisterAgentRequest;
|
12
|
+
}());
|
13
|
+
exports.RegisterAgentRequest = RegisterAgentRequest;
|