Skip to content

Commit 397688d

Browse files
committed
Update API InstallAgentForCluster: add request parameters body.config_id.
1 parent 4e6be45 commit 397688d

6 files changed

+28
-1
lines changed

sysom-20231230/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/sysom20231230",
3-
"version": "1.8.0",
3+
"version": "1.8.1",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

sysom-20231230/src/client.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,10 @@ export default class Client extends OpenApi {
14641464
body["cluster_id"] = request.clusterId;
14651465
}
14661466

1467+
if (!$dara.isNull(request.configId)) {
1468+
body["config_id"] = request.configId;
1469+
}
1470+
14671471
if (!$dara.isNull(request.grayscaleConfig)) {
14681472
body["grayscale_config"] = request.grayscaleConfig;
14691473
}
@@ -1708,6 +1712,10 @@ export default class Client extends OpenApi {
17081712
query["plugin_version"] = request.pluginVersion;
17091713
}
17101714

1715+
if (!$dara.isNull(request.region)) {
1716+
query["region"] = request.region;
1717+
}
1718+
17111719
if (!$dara.isNull(request.status)) {
17121720
query["status"] = request.status;
17131721
}
@@ -1810,6 +1818,10 @@ export default class Client extends OpenApi {
18101818
async listClusterAgentInstallRecordsWithOptions(request: $_model.ListClusterAgentInstallRecordsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListClusterAgentInstallRecordsResponse> {
18111819
request.validate();
18121820
let query : {[key: string ]: any} = { };
1821+
if (!$dara.isNull(request.agentConfigId)) {
1822+
query["agent_config_id"] = request.agentConfigId;
1823+
}
1824+
18131825
if (!$dara.isNull(request.clusterId)) {
18141826
query["cluster_id"] = request.clusterId;
18151827
}

sysom-20231230/src/models/InstallAgentForClusterRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ export class InstallAgentForClusterRequest extends $dara.Model {
1818
* c9d7f3fc3d42942afbcb65c1100ffb19d
1919
*/
2020
clusterId?: string;
21+
configId?: string;
2122
grayscaleConfig?: string;
2223
static names(): { [key: string]: string } {
2324
return {
2425
agentId: 'agent_id',
2526
agentVersion: 'agent_version',
2627
clusterId: 'cluster_id',
28+
configId: 'config_id',
2729
grayscaleConfig: 'grayscale_config',
2830
};
2931
}
@@ -33,6 +35,7 @@ export class InstallAgentForClusterRequest extends $dara.Model {
3335
agentId: 'string',
3436
agentVersion: 'string',
3537
clusterId: 'string',
38+
configId: 'string',
3639
grayscaleConfig: 'string',
3740
};
3841
}

sysom-20231230/src/models/ListAgentInstallRecordsRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export class ListAgentInstallRecordsRequest extends $dara.Model {
88
pageSize?: number;
99
pluginId?: string;
1010
pluginVersion?: string;
11+
region?: string;
1112
status?: string;
1213
static names(): { [key: string]: string } {
1314
return {
@@ -16,6 +17,7 @@ export class ListAgentInstallRecordsRequest extends $dara.Model {
1617
pageSize: 'pageSize',
1718
pluginId: 'plugin_id',
1819
pluginVersion: 'plugin_version',
20+
region: 'region',
1921
status: 'status',
2022
};
2123
}
@@ -27,6 +29,7 @@ export class ListAgentInstallRecordsRequest extends $dara.Model {
2729
pageSize: 'number',
2830
pluginId: 'string',
2931
pluginVersion: 'string',
32+
region: 'string',
3033
status: 'string',
3134
};
3235
}

sysom-20231230/src/models/ListClusterAgentInstallRecordsRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
33

44

55
export class ListClusterAgentInstallRecordsRequest extends $dara.Model {
6+
agentConfigId?: string;
67
/**
78
* @example
89
* cbd80af02b9d6454ebdc579c5e022d0c8
@@ -30,6 +31,7 @@ export class ListClusterAgentInstallRecordsRequest extends $dara.Model {
3031
pluginVersion?: string;
3132
static names(): { [key: string]: string } {
3233
return {
34+
agentConfigId: 'agent_config_id',
3335
clusterId: 'cluster_id',
3436
current: 'current',
3537
pageSize: 'pageSize',
@@ -40,6 +42,7 @@ export class ListClusterAgentInstallRecordsRequest extends $dara.Model {
4042

4143
static types(): { [key: string]: any } {
4244
return {
45+
agentConfigId: 'string',
4346
clusterId: 'string',
4447
current: 'number',
4548
pageSize: 'number',

sysom-20231230/src/models/ListClusterAgentInstallRecordsResponseBodyData.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import * as $dara from '@darabonba/typescript';
33

44

55
export class ListClusterAgentInstallRecordsResponseBodyData extends $dara.Model {
6+
agentConfigId?: string;
7+
agentConfigName?: string;
68
/**
79
* @example
810
* cbf7a37bc905d4682a3338b3744810269
@@ -31,6 +33,8 @@ export class ListClusterAgentInstallRecordsResponseBodyData extends $dara.Model
3133
updatedAt?: string;
3234
static names(): { [key: string]: string } {
3335
return {
36+
agentConfigId: 'agent_config_id',
37+
agentConfigName: 'agent_config_name',
3438
clusterId: 'cluster_id',
3539
createdAt: 'created_at',
3640
grayscaleConfig: 'grayscale_config',
@@ -42,6 +46,8 @@ export class ListClusterAgentInstallRecordsResponseBodyData extends $dara.Model
4246

4347
static types(): { [key: string]: any } {
4448
return {
49+
agentConfigId: 'string',
50+
agentConfigName: 'string',
4551
clusterId: 'string',
4652
createdAt: 'string',
4753
grayscaleConfig: 'string',

0 commit comments

Comments
 (0)