@alicloud/ess20220222 1.7.1 → 1.8.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/ess20220222",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1908,6 +1908,100 @@ export class CreateAlarmResponse extends $tea.Model {
1908
1908
  }
1909
1909
  }
1910
1910
 
1911
+ export class CreateDiagnoseReportRequest extends $tea.Model {
1912
+ /**
1913
+ * @remarks
1914
+ * This parameter is required.
1915
+ *
1916
+ * @example
1917
+ * cn-hangzhou
1918
+ */
1919
+ regionId?: string;
1920
+ /**
1921
+ * @remarks
1922
+ * This parameter is required.
1923
+ *
1924
+ * @example
1925
+ * asg-bp1f2f6oxc2*******
1926
+ */
1927
+ scalingGroupId?: string;
1928
+ static names(): { [key: string]: string } {
1929
+ return {
1930
+ regionId: 'RegionId',
1931
+ scalingGroupId: 'ScalingGroupId',
1932
+ };
1933
+ }
1934
+
1935
+ static types(): { [key: string]: any } {
1936
+ return {
1937
+ regionId: 'string',
1938
+ scalingGroupId: 'string',
1939
+ };
1940
+ }
1941
+
1942
+ constructor(map?: { [key: string]: any }) {
1943
+ super(map);
1944
+ }
1945
+ }
1946
+
1947
+ export class CreateDiagnoseReportResponseBody extends $tea.Model {
1948
+ /**
1949
+ * @example
1950
+ * dr-uf6enpbnri1xhcy9qc7s
1951
+ */
1952
+ reportId?: string;
1953
+ /**
1954
+ * @remarks
1955
+ * Id of the request
1956
+ *
1957
+ * @example
1958
+ * 0189C6CB-07BA-5AFE-B533-D93892324774
1959
+ */
1960
+ requestId?: string;
1961
+ static names(): { [key: string]: string } {
1962
+ return {
1963
+ reportId: 'ReportId',
1964
+ requestId: 'RequestId',
1965
+ };
1966
+ }
1967
+
1968
+ static types(): { [key: string]: any } {
1969
+ return {
1970
+ reportId: 'string',
1971
+ requestId: 'string',
1972
+ };
1973
+ }
1974
+
1975
+ constructor(map?: { [key: string]: any }) {
1976
+ super(map);
1977
+ }
1978
+ }
1979
+
1980
+ export class CreateDiagnoseReportResponse extends $tea.Model {
1981
+ headers?: { [key: string]: string };
1982
+ statusCode?: number;
1983
+ body?: CreateDiagnoseReportResponseBody;
1984
+ static names(): { [key: string]: string } {
1985
+ return {
1986
+ headers: 'headers',
1987
+ statusCode: 'statusCode',
1988
+ body: 'body',
1989
+ };
1990
+ }
1991
+
1992
+ static types(): { [key: string]: any } {
1993
+ return {
1994
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1995
+ statusCode: 'number',
1996
+ body: CreateDiagnoseReportResponseBody,
1997
+ };
1998
+ }
1999
+
2000
+ constructor(map?: { [key: string]: any }) {
2001
+ super(map);
2002
+ }
2003
+ }
2004
+
1911
2005
  export class CreateEciScalingConfigurationRequest extends $tea.Model {
1912
2006
  /**
1913
2007
  * @remarks
@@ -6620,6 +6714,134 @@ export class DescribeAlertConfigurationResponse extends $tea.Model {
6620
6714
  }
6621
6715
  }
6622
6716
 
6717
+ export class DescribeDiagnoseReportsRequest extends $tea.Model {
6718
+ /**
6719
+ * @example
6720
+ * 1
6721
+ */
6722
+ pageNumber?: number;
6723
+ /**
6724
+ * @example
6725
+ * 10
6726
+ */
6727
+ pageSize?: number;
6728
+ /**
6729
+ * @remarks
6730
+ * This parameter is required.
6731
+ *
6732
+ * @example
6733
+ * cn-shenzhen
6734
+ */
6735
+ regionId?: string;
6736
+ reportIds?: string[];
6737
+ /**
6738
+ * @remarks
6739
+ * This parameter is required.
6740
+ *
6741
+ * @example
6742
+ * asg-2vcis7yglxtm*****
6743
+ */
6744
+ scalingGroupId?: string;
6745
+ static names(): { [key: string]: string } {
6746
+ return {
6747
+ pageNumber: 'PageNumber',
6748
+ pageSize: 'PageSize',
6749
+ regionId: 'RegionId',
6750
+ reportIds: 'ReportIds',
6751
+ scalingGroupId: 'ScalingGroupId',
6752
+ };
6753
+ }
6754
+
6755
+ static types(): { [key: string]: any } {
6756
+ return {
6757
+ pageNumber: 'number',
6758
+ pageSize: 'number',
6759
+ regionId: 'string',
6760
+ reportIds: { 'type': 'array', 'itemType': 'string' },
6761
+ scalingGroupId: 'string',
6762
+ };
6763
+ }
6764
+
6765
+ constructor(map?: { [key: string]: any }) {
6766
+ super(map);
6767
+ }
6768
+ }
6769
+
6770
+ export class DescribeDiagnoseReportsResponseBody extends $tea.Model {
6771
+ /**
6772
+ * @example
6773
+ * 1
6774
+ */
6775
+ pageNumber?: number;
6776
+ /**
6777
+ * @example
6778
+ * 10
6779
+ */
6780
+ pageSize?: number;
6781
+ reports?: DescribeDiagnoseReportsResponseBodyReports[];
6782
+ /**
6783
+ * @remarks
6784
+ * Id of the request
6785
+ *
6786
+ * @example
6787
+ * ECA123C6-107B-5F70-A177-740A7224C996
6788
+ */
6789
+ requestId?: string;
6790
+ /**
6791
+ * @example
6792
+ * 5
6793
+ */
6794
+ totalCount?: number;
6795
+ static names(): { [key: string]: string } {
6796
+ return {
6797
+ pageNumber: 'PageNumber',
6798
+ pageSize: 'PageSize',
6799
+ reports: 'Reports',
6800
+ requestId: 'RequestId',
6801
+ totalCount: 'TotalCount',
6802
+ };
6803
+ }
6804
+
6805
+ static types(): { [key: string]: any } {
6806
+ return {
6807
+ pageNumber: 'number',
6808
+ pageSize: 'number',
6809
+ reports: { 'type': 'array', 'itemType': DescribeDiagnoseReportsResponseBodyReports },
6810
+ requestId: 'string',
6811
+ totalCount: 'number',
6812
+ };
6813
+ }
6814
+
6815
+ constructor(map?: { [key: string]: any }) {
6816
+ super(map);
6817
+ }
6818
+ }
6819
+
6820
+ export class DescribeDiagnoseReportsResponse extends $tea.Model {
6821
+ headers?: { [key: string]: string };
6822
+ statusCode?: number;
6823
+ body?: DescribeDiagnoseReportsResponseBody;
6824
+ static names(): { [key: string]: string } {
6825
+ return {
6826
+ headers: 'headers',
6827
+ statusCode: 'statusCode',
6828
+ body: 'body',
6829
+ };
6830
+ }
6831
+
6832
+ static types(): { [key: string]: any } {
6833
+ return {
6834
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6835
+ statusCode: 'number',
6836
+ body: DescribeDiagnoseReportsResponseBody,
6837
+ };
6838
+ }
6839
+
6840
+ constructor(map?: { [key: string]: any }) {
6841
+ super(map);
6842
+ }
6843
+ }
6844
+
6623
6845
  export class DescribeEciScalingConfigurationDetailRequest extends $tea.Model {
6624
6846
  /**
6625
6847
  * @remarks
@@ -9146,6 +9368,96 @@ export class DescribeScalingGroupDetailResponse extends $tea.Model {
9146
9368
  }
9147
9369
  }
9148
9370
 
9371
+ export class DescribeScalingGroupDiagnoseDetailsRequest extends $tea.Model {
9372
+ /**
9373
+ * @remarks
9374
+ * This parameter is required.
9375
+ *
9376
+ * @example
9377
+ * cn-qingdao
9378
+ */
9379
+ regionId?: string;
9380
+ /**
9381
+ * @remarks
9382
+ * This parameter is required.
9383
+ *
9384
+ * @example
9385
+ * asg-bp18p2yfxow2dloq****
9386
+ */
9387
+ scalingGroupId?: string;
9388
+ static names(): { [key: string]: string } {
9389
+ return {
9390
+ regionId: 'RegionId',
9391
+ scalingGroupId: 'ScalingGroupId',
9392
+ };
9393
+ }
9394
+
9395
+ static types(): { [key: string]: any } {
9396
+ return {
9397
+ regionId: 'string',
9398
+ scalingGroupId: 'string',
9399
+ };
9400
+ }
9401
+
9402
+ constructor(map?: { [key: string]: any }) {
9403
+ super(map);
9404
+ }
9405
+ }
9406
+
9407
+ export class DescribeScalingGroupDiagnoseDetailsResponseBody extends $tea.Model {
9408
+ details?: DescribeScalingGroupDiagnoseDetailsResponseBodyDetails[];
9409
+ /**
9410
+ * @remarks
9411
+ * Id of the request
9412
+ *
9413
+ * @example
9414
+ * 688B18B8-FB1E-42EB-A1ED-7F55B090****
9415
+ */
9416
+ requestId?: string;
9417
+ static names(): { [key: string]: string } {
9418
+ return {
9419
+ details: 'Details',
9420
+ requestId: 'RequestId',
9421
+ };
9422
+ }
9423
+
9424
+ static types(): { [key: string]: any } {
9425
+ return {
9426
+ details: { 'type': 'array', 'itemType': DescribeScalingGroupDiagnoseDetailsResponseBodyDetails },
9427
+ requestId: 'string',
9428
+ };
9429
+ }
9430
+
9431
+ constructor(map?: { [key: string]: any }) {
9432
+ super(map);
9433
+ }
9434
+ }
9435
+
9436
+ export class DescribeScalingGroupDiagnoseDetailsResponse extends $tea.Model {
9437
+ headers?: { [key: string]: string };
9438
+ statusCode?: number;
9439
+ body?: DescribeScalingGroupDiagnoseDetailsResponseBody;
9440
+ static names(): { [key: string]: string } {
9441
+ return {
9442
+ headers: 'headers',
9443
+ statusCode: 'statusCode',
9444
+ body: 'body',
9445
+ };
9446
+ }
9447
+
9448
+ static types(): { [key: string]: any } {
9449
+ return {
9450
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
9451
+ statusCode: 'number',
9452
+ body: DescribeScalingGroupDiagnoseDetailsResponseBody,
9453
+ };
9454
+ }
9455
+
9456
+ constructor(map?: { [key: string]: any }) {
9457
+ super(map);
9458
+ }
9459
+ }
9460
+
9149
9461
  export class DescribeScalingGroupsRequest extends $tea.Model {
9150
9462
  /**
9151
9463
  * @remarks
@@ -23131,6 +23443,118 @@ export class DescribeAlarmsResponseBodyAlarmList extends $tea.Model {
23131
23443
  }
23132
23444
  }
23133
23445
 
23446
+ export class DescribeDiagnoseReportsResponseBodyReportsDetails extends $tea.Model {
23447
+ /**
23448
+ * @example
23449
+ * AccountArrearage
23450
+ */
23451
+ diagnoseType?: string;
23452
+ /**
23453
+ * @example
23454
+ * VSwitchIdNotFound
23455
+ */
23456
+ errorCode?: string;
23457
+ /**
23458
+ * @example
23459
+ * sg-280ih****
23460
+ */
23461
+ resourceId?: string;
23462
+ /**
23463
+ * @example
23464
+ * Normal
23465
+ */
23466
+ status?: string;
23467
+ static names(): { [key: string]: string } {
23468
+ return {
23469
+ diagnoseType: 'DiagnoseType',
23470
+ errorCode: 'ErrorCode',
23471
+ resourceId: 'ResourceId',
23472
+ status: 'Status',
23473
+ };
23474
+ }
23475
+
23476
+ static types(): { [key: string]: any } {
23477
+ return {
23478
+ diagnoseType: 'string',
23479
+ errorCode: 'string',
23480
+ resourceId: 'string',
23481
+ status: 'string',
23482
+ };
23483
+ }
23484
+
23485
+ constructor(map?: { [key: string]: any }) {
23486
+ super(map);
23487
+ }
23488
+ }
23489
+
23490
+ export class DescribeDiagnoseReportsResponseBodyReports extends $tea.Model {
23491
+ /**
23492
+ * @example
23493
+ * 2024-08-23T02:22:30Z
23494
+ */
23495
+ creationTime?: string;
23496
+ details?: DescribeDiagnoseReportsResponseBodyReportsDetails[];
23497
+ /**
23498
+ * @example
23499
+ * Normal
23500
+ */
23501
+ diagnoseStatus?: string;
23502
+ /**
23503
+ * @example
23504
+ * Finished
23505
+ */
23506
+ processStatus?: string;
23507
+ /**
23508
+ * @example
23509
+ * cn-qingdao
23510
+ */
23511
+ regionId?: string;
23512
+ /**
23513
+ * @example
23514
+ * dr-bp14p0cjp7wvjob5l6hk
23515
+ */
23516
+ reportId?: string;
23517
+ /**
23518
+ * @example
23519
+ * asg-bp124uve5iph3*****
23520
+ */
23521
+ scalingGroupId?: string;
23522
+ /**
23523
+ * @example
23524
+ * 161456884*******
23525
+ */
23526
+ userId?: string;
23527
+ static names(): { [key: string]: string } {
23528
+ return {
23529
+ creationTime: 'CreationTime',
23530
+ details: 'Details',
23531
+ diagnoseStatus: 'DiagnoseStatus',
23532
+ processStatus: 'ProcessStatus',
23533
+ regionId: 'RegionId',
23534
+ reportId: 'ReportId',
23535
+ scalingGroupId: 'ScalingGroupId',
23536
+ userId: 'UserId',
23537
+ };
23538
+ }
23539
+
23540
+ static types(): { [key: string]: any } {
23541
+ return {
23542
+ creationTime: 'string',
23543
+ details: { 'type': 'array', 'itemType': DescribeDiagnoseReportsResponseBodyReportsDetails },
23544
+ diagnoseStatus: 'string',
23545
+ processStatus: 'string',
23546
+ regionId: 'string',
23547
+ reportId: 'string',
23548
+ scalingGroupId: 'string',
23549
+ userId: 'string',
23550
+ };
23551
+ }
23552
+
23553
+ constructor(map?: { [key: string]: any }) {
23554
+ super(map);
23555
+ }
23556
+ }
23557
+
23134
23558
  export class DescribeEciScalingConfigurationDetailResponseBodyScalingConfigurationAcrRegistryInfos extends $tea.Model {
23135
23559
  /**
23136
23560
  * @remarks
@@ -30672,6 +31096,50 @@ export class DescribeScalingGroupDetailResponseBodyScalingGroup extends $tea.Mod
30672
31096
  }
30673
31097
  }
30674
31098
 
31099
+ export class DescribeScalingGroupDiagnoseDetailsResponseBodyDetails extends $tea.Model {
31100
+ /**
31101
+ * @example
31102
+ * SecurityGroup
31103
+ */
31104
+ diagnoseType?: string;
31105
+ /**
31106
+ * @example
31107
+ * AccountArrearage
31108
+ */
31109
+ errorCode?: string;
31110
+ /**
31111
+ * @example
31112
+ * sg-280ih****
31113
+ */
31114
+ resourceId?: string;
31115
+ /**
31116
+ * @example
31117
+ * Normal
31118
+ */
31119
+ status?: string;
31120
+ static names(): { [key: string]: string } {
31121
+ return {
31122
+ diagnoseType: 'DiagnoseType',
31123
+ errorCode: 'ErrorCode',
31124
+ resourceId: 'ResourceId',
31125
+ status: 'Status',
31126
+ };
31127
+ }
31128
+
31129
+ static types(): { [key: string]: any } {
31130
+ return {
31131
+ diagnoseType: 'string',
31132
+ errorCode: 'string',
31133
+ resourceId: 'string',
31134
+ status: 'string',
31135
+ };
31136
+ }
31137
+
31138
+ constructor(map?: { [key: string]: any }) {
31139
+ super(map);
31140
+ }
31141
+ }
31142
+
30675
31143
  export class DescribeScalingGroupsRequestTags extends $tea.Model {
30676
31144
  /**
30677
31145
  * @remarks
@@ -38288,6 +38756,44 @@ export default class Client extends OpenApi {
38288
38756
  return await this.createAlarmWithOptions(request, runtime);
38289
38757
  }
38290
38758
 
38759
+ /**
38760
+ * CreateDiagnoseReport
38761
+ *
38762
+ * @param request - CreateDiagnoseReportRequest
38763
+ * @param runtime - runtime options for this request RuntimeOptions
38764
+ * @returns CreateDiagnoseReportResponse
38765
+ */
38766
+ async createDiagnoseReportWithOptions(request: CreateDiagnoseReportRequest, runtime: $Util.RuntimeOptions): Promise<CreateDiagnoseReportResponse> {
38767
+ Util.validateModel(request);
38768
+ let query = OpenApiUtil.query(Util.toMap(request));
38769
+ let req = new $OpenApi.OpenApiRequest({
38770
+ query: OpenApiUtil.query(query),
38771
+ });
38772
+ let params = new $OpenApi.Params({
38773
+ action: "CreateDiagnoseReport",
38774
+ version: "2022-02-22",
38775
+ protocol: "HTTPS",
38776
+ pathname: "/",
38777
+ method: "GET",
38778
+ authType: "AK",
38779
+ style: "RPC",
38780
+ reqBodyType: "formData",
38781
+ bodyType: "json",
38782
+ });
38783
+ return $tea.cast<CreateDiagnoseReportResponse>(await this.callApi(params, req, runtime), new CreateDiagnoseReportResponse({}));
38784
+ }
38785
+
38786
+ /**
38787
+ * CreateDiagnoseReport
38788
+ *
38789
+ * @param request - CreateDiagnoseReportRequest
38790
+ * @returns CreateDiagnoseReportResponse
38791
+ */
38792
+ async createDiagnoseReport(request: CreateDiagnoseReportRequest): Promise<CreateDiagnoseReportResponse> {
38793
+ let runtime = new $Util.RuntimeOptions({ });
38794
+ return await this.createDiagnoseReportWithOptions(request, runtime);
38795
+ }
38796
+
38291
38797
  /**
38292
38798
  * Creates a scaling configuration of the Elastic Container Instance type. Auto Scaling uses the scaling configuration as a template to create elastic container instances to meet your business requirements during scale-out events.
38293
38799
  *
@@ -40288,6 +40794,44 @@ export default class Client extends OpenApi {
40288
40794
  return await this.describeAlertConfigurationWithOptions(request, runtime);
40289
40795
  }
40290
40796
 
40797
+ /**
40798
+ * DescribeDiagnoseReports
40799
+ *
40800
+ * @param request - DescribeDiagnoseReportsRequest
40801
+ * @param runtime - runtime options for this request RuntimeOptions
40802
+ * @returns DescribeDiagnoseReportsResponse
40803
+ */
40804
+ async describeDiagnoseReportsWithOptions(request: DescribeDiagnoseReportsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDiagnoseReportsResponse> {
40805
+ Util.validateModel(request);
40806
+ let query = OpenApiUtil.query(Util.toMap(request));
40807
+ let req = new $OpenApi.OpenApiRequest({
40808
+ query: OpenApiUtil.query(query),
40809
+ });
40810
+ let params = new $OpenApi.Params({
40811
+ action: "DescribeDiagnoseReports",
40812
+ version: "2022-02-22",
40813
+ protocol: "HTTPS",
40814
+ pathname: "/",
40815
+ method: "GET",
40816
+ authType: "AK",
40817
+ style: "RPC",
40818
+ reqBodyType: "formData",
40819
+ bodyType: "json",
40820
+ });
40821
+ return $tea.cast<DescribeDiagnoseReportsResponse>(await this.callApi(params, req, runtime), new DescribeDiagnoseReportsResponse({}));
40822
+ }
40823
+
40824
+ /**
40825
+ * DescribeDiagnoseReports
40826
+ *
40827
+ * @param request - DescribeDiagnoseReportsRequest
40828
+ * @returns DescribeDiagnoseReportsResponse
40829
+ */
40830
+ async describeDiagnoseReports(request: DescribeDiagnoseReportsRequest): Promise<DescribeDiagnoseReportsResponse> {
40831
+ let runtime = new $Util.RuntimeOptions({ });
40832
+ return await this.describeDiagnoseReportsWithOptions(request, runtime);
40833
+ }
40834
+
40291
40835
  /**
40292
40836
  * Queries the details of a scaling configuration. You can query a scaling configuration by its ID to learn about its details such as the temporary storage size, number of IPv6 addresses, and bandwidth of the elastic IP address (EIP). The scaling configuration details can be obtained as a YAML file.
40293
40837
  *
@@ -41214,6 +41758,44 @@ export default class Client extends OpenApi {
41214
41758
  return await this.describeScalingGroupDetailWithOptions(request, runtime);
41215
41759
  }
41216
41760
 
41761
+ /**
41762
+ * DescribeScalingGroupDiagnoseDetails
41763
+ *
41764
+ * @param request - DescribeScalingGroupDiagnoseDetailsRequest
41765
+ * @param runtime - runtime options for this request RuntimeOptions
41766
+ * @returns DescribeScalingGroupDiagnoseDetailsResponse
41767
+ */
41768
+ async describeScalingGroupDiagnoseDetailsWithOptions(request: DescribeScalingGroupDiagnoseDetailsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingGroupDiagnoseDetailsResponse> {
41769
+ Util.validateModel(request);
41770
+ let query = OpenApiUtil.query(Util.toMap(request));
41771
+ let req = new $OpenApi.OpenApiRequest({
41772
+ query: OpenApiUtil.query(query),
41773
+ });
41774
+ let params = new $OpenApi.Params({
41775
+ action: "DescribeScalingGroupDiagnoseDetails",
41776
+ version: "2022-02-22",
41777
+ protocol: "HTTPS",
41778
+ pathname: "/",
41779
+ method: "GET",
41780
+ authType: "AK",
41781
+ style: "RPC",
41782
+ reqBodyType: "formData",
41783
+ bodyType: "json",
41784
+ });
41785
+ return $tea.cast<DescribeScalingGroupDiagnoseDetailsResponse>(await this.callApi(params, req, runtime), new DescribeScalingGroupDiagnoseDetailsResponse({}));
41786
+ }
41787
+
41788
+ /**
41789
+ * DescribeScalingGroupDiagnoseDetails
41790
+ *
41791
+ * @param request - DescribeScalingGroupDiagnoseDetailsRequest
41792
+ * @returns DescribeScalingGroupDiagnoseDetailsResponse
41793
+ */
41794
+ async describeScalingGroupDiagnoseDetails(request: DescribeScalingGroupDiagnoseDetailsRequest): Promise<DescribeScalingGroupDiagnoseDetailsResponse> {
41795
+ let runtime = new $Util.RuntimeOptions({ });
41796
+ return await this.describeScalingGroupDiagnoseDetailsWithOptions(request, runtime);
41797
+ }
41798
+
41217
41799
  /**
41218
41800
  * Queries information about scaling groups, such as the basic information, instances, and scaling configurations.
41219
41801
  *