@huaweicloud/huaweicloud-sdk-cbr 3.1.36 → 3.1.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/package.json +2 -2
  2. package/v1/CbrClient.d.ts +192 -0
  3. package/v1/CbrClient.js +390 -0
  4. package/v1/CbrRegion.d.ts +1 -0
  5. package/v1/CbrRegion.js +3 -1
  6. package/v1/model/AddAgentPathRequest.d.ts +10 -0
  7. package/v1/model/AddAgentPathRequest.js +28 -0
  8. package/v1/model/AddAgentPathResponse.d.ts +8 -0
  9. package/v1/model/AddAgentPathResponse.js +35 -0
  10. package/v1/model/Agent.d.ts +48 -0
  11. package/v1/model/Agent.js +158 -0
  12. package/v1/model/AgentAddPathReq.d.ts +7 -0
  13. package/v1/model/AgentAddPathReq.js +24 -0
  14. package/v1/model/AgentRegister.d.ts +31 -0
  15. package/v1/model/AgentRegister.js +111 -0
  16. package/v1/model/AgentRegisterReq.d.ts +6 -0
  17. package/v1/model/AgentRegisterReq.js +14 -0
  18. package/v1/model/AgentRemovePathReq.d.ts +7 -0
  19. package/v1/model/AgentRemovePathReq.js +24 -0
  20. package/v1/model/AgentUpdate.d.ts +12 -0
  21. package/v1/model/AgentUpdate.js +22 -0
  22. package/v1/model/AgentUpdateReq.d.ts +6 -0
  23. package/v1/model/AgentUpdateReq.js +14 -0
  24. package/v1/model/BillingCreate.d.ts +0 -5
  25. package/v1/model/BillingCreate.js +0 -14
  26. package/v1/model/InstancesResourceDetail.d.ts +6 -0
  27. package/v1/model/InstancesResourceDetail.js +13 -0
  28. package/v1/model/ListAgentRequest.d.ts +13 -0
  29. package/v1/model/ListAgentRequest.js +35 -0
  30. package/v1/model/ListAgentResponse.d.ts +13 -0
  31. package/v1/model/ListAgentResponse.js +43 -0
  32. package/v1/model/Path.d.ts +15 -0
  33. package/v1/model/Path.js +45 -0
  34. package/v1/model/PolicyoODCreate.d.ts +4 -0
  35. package/v1/model/PolicyoODCreate.js +14 -0
  36. package/v1/model/RegisterAgentRequest.d.ts +6 -0
  37. package/v1/model/RegisterAgentRequest.js +13 -0
  38. package/v1/model/RegisterAgentResponse.d.ts +7 -0
  39. package/v1/model/RegisterAgentResponse.js +31 -0
  40. package/v1/model/RemoveAgentPathRequest.d.ts +10 -0
  41. package/v1/model/RemoveAgentPathRequest.js +28 -0
  42. package/v1/model/RemoveAgentPathResponse.d.ts +10 -0
  43. package/v1/model/RemoveAgentPathResponse.js +45 -0
  44. package/v1/model/ShowAgentRequest.d.ts +7 -0
  45. package/v1/model/ShowAgentRequest.js +24 -0
  46. package/v1/model/ShowAgentResponse.d.ts +7 -0
  47. package/v1/model/ShowAgentResponse.js +31 -0
  48. package/v1/model/TagResource.d.ts +4 -4
  49. package/v1/model/UnregisterAgentRequest.d.ts +7 -0
  50. package/v1/model/UnregisterAgentRequest.js +24 -0
  51. package/v1/model/UnregisterAgentResponse.d.ts +4 -0
  52. package/v1/model/UnregisterAgentResponse.js +27 -0
  53. package/v1/model/UpdateAgentRequest.d.ts +10 -0
  54. package/v1/model/UpdateAgentRequest.js +28 -0
  55. package/v1/model/UpdateAgentResponse.d.ts +7 -0
  56. package/v1/model/UpdateAgentResponse.js +31 -0
  57. package/v1/public-api.d.ts +23 -1
  58. package/v1/public-api.js +23 -1
  59. package/v1/model/BillbingCreateExtraInfo.d.ts +0 -11
  60. package/v1/model/BillbingCreateExtraInfo.js +0 -37
@@ -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,7 @@
1
+ export declare class AgentAddPathReq {
2
+ private 'add_path';
3
+ constructor(addPath?: any);
4
+ withAddPath(addPath: Array<string>): AgentAddPathReq;
5
+ set addPath(addPath: Array<string> | undefined);
6
+ get addPath(): Array<string> | undefined;
7
+ }
@@ -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,6 @@
1
+ import { AgentRegister } from './AgentRegister';
2
+ export declare class AgentRegisterReq {
3
+ agent: AgentRegister;
4
+ constructor(agent?: any);
5
+ withAgent(agent: AgentRegister): AgentRegisterReq;
6
+ }
@@ -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,6 @@
1
+ import { AgentUpdate } from './AgentUpdate';
2
+ export declare class AgentUpdateReq {
3
+ agent: AgentUpdate;
4
+ constructor(agent?: any);
5
+ withAgent(agent: AgentUpdate): AgentUpdateReq;
6
+ }
@@ -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;
@@ -1,4 +1,3 @@
1
- import { BillbingCreateExtraInfo } from './BillbingCreateExtraInfo';
2
1
  export declare class BillingCreate {
3
2
  private 'cloud_type'?;
4
3
  private 'consistent_level';
@@ -11,7 +10,6 @@ export declare class BillingCreate {
11
10
  private 'is_auto_renew'?;
12
11
  private 'is_auto_pay'?;
13
12
  private 'console_url'?;
14
- private 'extra_info'?;
15
13
  private 'is_multi_az'?;
16
14
  private 'promotion_info'?;
17
15
  private 'purchase_mode'?;
@@ -48,9 +46,6 @@ export declare class BillingCreate {
48
46
  withConsoleUrl(consoleUrl: string): BillingCreate;
49
47
  set consoleUrl(consoleUrl: string | undefined);
50
48
  get consoleUrl(): string | undefined;
51
- withExtraInfo(extraInfo: BillbingCreateExtraInfo): BillingCreate;
52
- set extraInfo(extraInfo: BillbingCreateExtraInfo | undefined);
53
- get extraInfo(): BillbingCreateExtraInfo | undefined;
54
49
  withIsMultiAz(isMultiAz: boolean): BillingCreate;
55
50
  set isMultiAz(isMultiAz: boolean | undefined);
56
51
  get isMultiAz(): boolean | undefined;
@@ -152,20 +152,6 @@ var BillingCreate = /** @class */ (function () {
152
152
  enumerable: false,
153
153
  configurable: true
154
154
  });
155
- BillingCreate.prototype.withExtraInfo = function (extraInfo) {
156
- this['extra_info'] = extraInfo;
157
- return this;
158
- };
159
- Object.defineProperty(BillingCreate.prototype, "extraInfo", {
160
- get: function () {
161
- return this['extra_info'];
162
- },
163
- set: function (extraInfo) {
164
- this['extra_info'] = extraInfo;
165
- },
166
- enumerable: false,
167
- configurable: true
168
- });
169
155
  BillingCreate.prototype.withIsMultiAz = function (isMultiAz) {
170
156
  this['is_multi_az'] = isMultiAz;
171
157
  return this;
@@ -0,0 +1,6 @@
1
+ import { Vault } from './Vault';
2
+ export declare class InstancesResourceDetail {
3
+ vault?: Vault;
4
+ constructor();
5
+ withVault(vault: Vault): InstancesResourceDetail;
6
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstancesResourceDetail = void 0;
4
+ var InstancesResourceDetail = /** @class */ (function () {
5
+ function InstancesResourceDetail() {
6
+ }
7
+ InstancesResourceDetail.prototype.withVault = function (vault) {
8
+ this['vault'] = vault;
9
+ return this;
10
+ };
11
+ return InstancesResourceDetail;
12
+ }());
13
+ exports.InstancesResourceDetail = InstancesResourceDetail;
@@ -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
+ }