@alicloud/cs20151215 4.5.2 → 4.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cs20151215",
3
- "version": "4.5.2",
3
+ "version": "4.6.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -5398,6 +5398,50 @@ export class GetClusterAddonInstanceResponse extends $tea.Model {
5398
5398
  }
5399
5399
  }
5400
5400
 
5401
+ export class GetClusterAuditProjectResponseBody extends $tea.Model {
5402
+ slsProjectName?: string;
5403
+ static names(): { [key: string]: string } {
5404
+ return {
5405
+ slsProjectName: 'sls_project_name',
5406
+ };
5407
+ }
5408
+
5409
+ static types(): { [key: string]: any } {
5410
+ return {
5411
+ slsProjectName: 'string',
5412
+ };
5413
+ }
5414
+
5415
+ constructor(map?: { [key: string]: any }) {
5416
+ super(map);
5417
+ }
5418
+ }
5419
+
5420
+ export class GetClusterAuditProjectResponse extends $tea.Model {
5421
+ headers?: { [key: string]: string };
5422
+ statusCode?: number;
5423
+ body?: GetClusterAuditProjectResponseBody;
5424
+ static names(): { [key: string]: string } {
5425
+ return {
5426
+ headers: 'headers',
5427
+ statusCode: 'statusCode',
5428
+ body: 'body',
5429
+ };
5430
+ }
5431
+
5432
+ static types(): { [key: string]: any } {
5433
+ return {
5434
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5435
+ statusCode: 'number',
5436
+ body: GetClusterAuditProjectResponseBody,
5437
+ };
5438
+ }
5439
+
5440
+ constructor(map?: { [key: string]: any }) {
5441
+ super(map);
5442
+ }
5443
+ }
5444
+
5401
5445
  export class GetClusterCheckResponseBody extends $tea.Model {
5402
5446
  checkId?: string;
5403
5447
  checkItems?: { [key: string]: {[key: string ]: any}[] };
@@ -18710,6 +18754,38 @@ export default class Client extends OpenApi {
18710
18754
  return await this.getClusterAddonInstanceWithOptions(clusterId, instanceName, headers, runtime);
18711
18755
  }
18712
18756
 
18757
+ /**
18758
+ * @param headers map
18759
+ * @param runtime runtime options for this request RuntimeOptions
18760
+ * @return GetClusterAuditProjectResponse
18761
+ */
18762
+ async getClusterAuditProjectWithOptions(clusterid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetClusterAuditProjectResponse> {
18763
+ let req = new $OpenApi.OpenApiRequest({
18764
+ headers: headers,
18765
+ });
18766
+ let params = new $OpenApi.Params({
18767
+ action: "GetClusterAuditProject",
18768
+ version: "2015-12-15",
18769
+ protocol: "HTTPS",
18770
+ pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterid)}/audit`,
18771
+ method: "GET",
18772
+ authType: "AK",
18773
+ style: "ROA",
18774
+ reqBodyType: "json",
18775
+ bodyType: "json",
18776
+ });
18777
+ return $tea.cast<GetClusterAuditProjectResponse>(await this.callApi(params, req, runtime), new GetClusterAuditProjectResponse({}));
18778
+ }
18779
+
18780
+ /**
18781
+ * @return GetClusterAuditProjectResponse
18782
+ */
18783
+ async getClusterAuditProject(clusterid: string): Promise<GetClusterAuditProjectResponse> {
18784
+ let runtime = new $Util.RuntimeOptions({ });
18785
+ let headers : {[key: string ]: string} = { };
18786
+ return await this.getClusterAuditProjectWithOptions(clusterid, headers, runtime);
18787
+ }
18788
+
18713
18789
  /**
18714
18790
  * @summary Queries a cluster check task by cluster ID and task ID. You can view the status, check items, creation time, and end time of the task. Container Intelligence Service (CIS) provides a variety of Kubernetes cluster check features, including cluster update check, cluster migration check, component installation check, component update check, and node pool check.
18715
18791
  *