@alicloud/cs20151215 4.3.3 → 4.4.0
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/client.d.ts +61 -0
- package/dist/client.js +108 -5
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +121 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -7946,6 +7946,78 @@ export class UntagResourcesResponse extends $tea.Model {
|
|
|
7946
7946
|
}
|
|
7947
7947
|
}
|
|
7948
7948
|
|
|
7949
|
+
export class UpdateClusterAuditLogConfigRequest extends $tea.Model {
|
|
7950
|
+
disable?: boolean;
|
|
7951
|
+
slsProjectName?: string;
|
|
7952
|
+
static names(): { [key: string]: string } {
|
|
7953
|
+
return {
|
|
7954
|
+
disable: 'disable',
|
|
7955
|
+
slsProjectName: 'sls_project_name',
|
|
7956
|
+
};
|
|
7957
|
+
}
|
|
7958
|
+
|
|
7959
|
+
static types(): { [key: string]: any } {
|
|
7960
|
+
return {
|
|
7961
|
+
disable: 'boolean',
|
|
7962
|
+
slsProjectName: 'string',
|
|
7963
|
+
};
|
|
7964
|
+
}
|
|
7965
|
+
|
|
7966
|
+
constructor(map?: { [key: string]: any }) {
|
|
7967
|
+
super(map);
|
|
7968
|
+
}
|
|
7969
|
+
}
|
|
7970
|
+
|
|
7971
|
+
export class UpdateClusterAuditLogConfigResponseBody extends $tea.Model {
|
|
7972
|
+
clusterId?: string;
|
|
7973
|
+
requestId?: string;
|
|
7974
|
+
taskId?: string;
|
|
7975
|
+
static names(): { [key: string]: string } {
|
|
7976
|
+
return {
|
|
7977
|
+
clusterId: 'cluster_id',
|
|
7978
|
+
requestId: 'request_id',
|
|
7979
|
+
taskId: 'task_id',
|
|
7980
|
+
};
|
|
7981
|
+
}
|
|
7982
|
+
|
|
7983
|
+
static types(): { [key: string]: any } {
|
|
7984
|
+
return {
|
|
7985
|
+
clusterId: 'string',
|
|
7986
|
+
requestId: 'string',
|
|
7987
|
+
taskId: 'string',
|
|
7988
|
+
};
|
|
7989
|
+
}
|
|
7990
|
+
|
|
7991
|
+
constructor(map?: { [key: string]: any }) {
|
|
7992
|
+
super(map);
|
|
7993
|
+
}
|
|
7994
|
+
}
|
|
7995
|
+
|
|
7996
|
+
export class UpdateClusterAuditLogConfigResponse extends $tea.Model {
|
|
7997
|
+
headers?: { [key: string]: string };
|
|
7998
|
+
statusCode?: number;
|
|
7999
|
+
body?: UpdateClusterAuditLogConfigResponseBody;
|
|
8000
|
+
static names(): { [key: string]: string } {
|
|
8001
|
+
return {
|
|
8002
|
+
headers: 'headers',
|
|
8003
|
+
statusCode: 'statusCode',
|
|
8004
|
+
body: 'body',
|
|
8005
|
+
};
|
|
8006
|
+
}
|
|
8007
|
+
|
|
8008
|
+
static types(): { [key: string]: any } {
|
|
8009
|
+
return {
|
|
8010
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8011
|
+
statusCode: 'number',
|
|
8012
|
+
body: UpdateClusterAuditLogConfigResponseBody,
|
|
8013
|
+
};
|
|
8014
|
+
}
|
|
8015
|
+
|
|
8016
|
+
constructor(map?: { [key: string]: any }) {
|
|
8017
|
+
super(map);
|
|
8018
|
+
}
|
|
8019
|
+
}
|
|
8020
|
+
|
|
7949
8021
|
export class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
7950
8022
|
headers?: { [key: string]: string };
|
|
7951
8023
|
statusCode?: number;
|
|
@@ -20483,6 +20555,55 @@ export default class Client extends OpenApi {
|
|
|
20483
20555
|
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
20484
20556
|
}
|
|
20485
20557
|
|
|
20558
|
+
/**
|
|
20559
|
+
* @summary 更新集群审计日志配置
|
|
20560
|
+
*
|
|
20561
|
+
* @param request UpdateClusterAuditLogConfigRequest
|
|
20562
|
+
* @param headers map
|
|
20563
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20564
|
+
* @return UpdateClusterAuditLogConfigResponse
|
|
20565
|
+
*/
|
|
20566
|
+
async updateClusterAuditLogConfigWithOptions(clusterid: string, request: UpdateClusterAuditLogConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateClusterAuditLogConfigResponse> {
|
|
20567
|
+
Util.validateModel(request);
|
|
20568
|
+
let body : {[key: string ]: any} = { };
|
|
20569
|
+
if (!Util.isUnset(request.disable)) {
|
|
20570
|
+
body["disable"] = request.disable;
|
|
20571
|
+
}
|
|
20572
|
+
|
|
20573
|
+
if (!Util.isUnset(request.slsProjectName)) {
|
|
20574
|
+
body["sls_project_name"] = request.slsProjectName;
|
|
20575
|
+
}
|
|
20576
|
+
|
|
20577
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
20578
|
+
headers: headers,
|
|
20579
|
+
body: OpenApiUtil.parseToMap(body),
|
|
20580
|
+
});
|
|
20581
|
+
let params = new $OpenApi.Params({
|
|
20582
|
+
action: "UpdateClusterAuditLogConfig",
|
|
20583
|
+
version: "2015-12-15",
|
|
20584
|
+
protocol: "HTTPS",
|
|
20585
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterid)}/audit_log`,
|
|
20586
|
+
method: "PUT",
|
|
20587
|
+
authType: "AK",
|
|
20588
|
+
style: "ROA",
|
|
20589
|
+
reqBodyType: "json",
|
|
20590
|
+
bodyType: "json",
|
|
20591
|
+
});
|
|
20592
|
+
return $tea.cast<UpdateClusterAuditLogConfigResponse>(await this.callApi(params, req, runtime), new UpdateClusterAuditLogConfigResponse({}));
|
|
20593
|
+
}
|
|
20594
|
+
|
|
20595
|
+
/**
|
|
20596
|
+
* @summary 更新集群审计日志配置
|
|
20597
|
+
*
|
|
20598
|
+
* @param request UpdateClusterAuditLogConfigRequest
|
|
20599
|
+
* @return UpdateClusterAuditLogConfigResponse
|
|
20600
|
+
*/
|
|
20601
|
+
async updateClusterAuditLogConfig(clusterid: string, request: UpdateClusterAuditLogConfigRequest): Promise<UpdateClusterAuditLogConfigResponse> {
|
|
20602
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
20603
|
+
let headers : {[key: string ]: string} = { };
|
|
20604
|
+
return await this.updateClusterAuditLogConfigWithOptions(clusterid, request, headers, runtime);
|
|
20605
|
+
}
|
|
20606
|
+
|
|
20486
20607
|
/**
|
|
20487
20608
|
* @param headers map
|
|
20488
20609
|
* @param runtime runtime options for this request RuntimeOptions
|