@alicloud/ess20220222 1.10.2 → 1.11.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.
Files changed (75) hide show
  1. package/dist/client.d.ts +17 -2
  2. package/dist/client.js +92 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ApplyEciScalingConfigurationRequest.d.ts +0 -7
  5. package/dist/models/ApplyEciScalingConfigurationRequest.js.map +1 -1
  6. package/dist/models/ApplyScalingGroupRequest.d.ts +0 -7
  7. package/dist/models/ApplyScalingGroupRequest.js.map +1 -1
  8. package/dist/models/CreateEciScalingConfigurationRequest.d.ts +280 -0
  9. package/dist/models/CreateEciScalingConfigurationRequest.js.map +1 -1
  10. package/dist/models/CreateScalingConfigurationRequest.d.ts +18 -0
  11. package/dist/models/CreateScalingConfigurationRequest.js +36 -1
  12. package/dist/models/CreateScalingConfigurationRequest.js.map +1 -1
  13. package/dist/models/CreateScalingConfigurationShrinkRequest.d.ts +18 -0
  14. package/dist/models/CreateScalingConfigurationShrinkRequest.js +36 -1
  15. package/dist/models/CreateScalingConfigurationShrinkRequest.js.map +1 -1
  16. package/dist/models/DescribeCandidateInstanceTypeRequest.d.ts +65 -0
  17. package/dist/models/DescribeCandidateInstanceTypeRequest.js +100 -0
  18. package/dist/models/DescribeCandidateInstanceTypeRequest.js.map +1 -0
  19. package/dist/models/DescribeCandidateInstanceTypeResponse.d.ts +19 -0
  20. package/dist/models/DescribeCandidateInstanceTypeResponse.js +69 -0
  21. package/dist/models/DescribeCandidateInstanceTypeResponse.js.map +1 -0
  22. package/dist/models/DescribeCandidateInstanceTypeResponseBody.d.ts +23 -0
  23. package/dist/models/DescribeCandidateInstanceTypeResponseBody.js +68 -0
  24. package/dist/models/DescribeCandidateInstanceTypeResponseBody.js.map +1 -0
  25. package/dist/models/DescribeElasticStrengthResponseBody.d.ts +2 -0
  26. package/dist/models/DescribeElasticStrengthResponseBody.js +4 -0
  27. package/dist/models/DescribeElasticStrengthResponseBody.js.map +1 -1
  28. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsResponseBody.d.ts +0 -39
  29. package/dist/models/DescribeInstanceCreateAndDeleteStatisticsResponseBody.js.map +1 -1
  30. package/dist/models/DescribeScalingActivityStatisticsResponseBody.d.ts +0 -57
  31. package/dist/models/DescribeScalingActivityStatisticsResponseBody.js.map +1 -1
  32. package/dist/models/DescribeScalingConfigurationsResponseBody.d.ts +36 -0
  33. package/dist/models/DescribeScalingConfigurationsResponseBody.js +36 -1
  34. package/dist/models/DescribeScalingConfigurationsResponseBody.js.map +1 -1
  35. package/dist/models/ModifyEciScalingConfigurationRequest.d.ts +293 -0
  36. package/dist/models/ModifyEciScalingConfigurationRequest.js.map +1 -1
  37. package/dist/models/ModifyScalingConfigurationRequest.d.ts +18 -0
  38. package/dist/models/ModifyScalingConfigurationRequest.js +36 -1
  39. package/dist/models/ModifyScalingConfigurationRequest.js.map +1 -1
  40. package/dist/models/ModifyScalingConfigurationShrinkRequest.d.ts +18 -0
  41. package/dist/models/ModifyScalingConfigurationShrinkRequest.js +36 -1
  42. package/dist/models/ModifyScalingConfigurationShrinkRequest.js.map +1 -1
  43. package/dist/models/QueryHistoricalMetricResponseBody.d.ts +0 -18
  44. package/dist/models/QueryHistoricalMetricResponseBody.js.map +1 -1
  45. package/dist/models/QueryPredictiveMetricResponseBody.d.ts +0 -18
  46. package/dist/models/QueryPredictiveMetricResponseBody.js.map +1 -1
  47. package/dist/models/QueryPredictiveTaskInfoResponseBody.d.ts +0 -25
  48. package/dist/models/QueryPredictiveTaskInfoResponseBody.js.map +1 -1
  49. package/dist/models/QueryPredictiveValueResponseBody.d.ts +0 -18
  50. package/dist/models/QueryPredictiveValueResponseBody.js.map +1 -1
  51. package/dist/models/model.d.ts +8 -0
  52. package/dist/models/model.js +65 -49
  53. package/dist/models/model.js.map +1 -1
  54. package/package.json +1 -1
  55. package/src/client.ts +112 -2
  56. package/src/models/ApplyEciScalingConfigurationRequest.ts +0 -7
  57. package/src/models/ApplyScalingGroupRequest.ts +0 -7
  58. package/src/models/CreateEciScalingConfigurationRequest.ts +280 -0
  59. package/src/models/CreateScalingConfigurationRequest.ts +44 -0
  60. package/src/models/CreateScalingConfigurationShrinkRequest.ts +44 -0
  61. package/src/models/DescribeCandidateInstanceTypeRequest.ts +120 -0
  62. package/src/models/DescribeCandidateInstanceTypeResponse.ts +40 -0
  63. package/src/models/DescribeCandidateInstanceTypeResponseBody.ts +46 -0
  64. package/src/models/DescribeElasticStrengthResponseBody.ts +6 -0
  65. package/src/models/DescribeInstanceCreateAndDeleteStatisticsResponseBody.ts +0 -39
  66. package/src/models/DescribeScalingActivityStatisticsResponseBody.ts +0 -57
  67. package/src/models/DescribeScalingConfigurationsResponseBody.ts +62 -0
  68. package/src/models/ModifyEciScalingConfigurationRequest.ts +293 -0
  69. package/src/models/ModifyScalingConfigurationRequest.ts +44 -0
  70. package/src/models/ModifyScalingConfigurationShrinkRequest.ts +44 -0
  71. package/src/models/QueryHistoricalMetricResponseBody.ts +0 -18
  72. package/src/models/QueryPredictiveMetricResponseBody.ts +0 -18
  73. package/src/models/QueryPredictiveTaskInfoResponseBody.ts +0 -25
  74. package/src/models/QueryPredictiveValueResponseBody.ts +0 -18
  75. package/src/models/model.ts +8 -0
package/dist/client.d.ts CHANGED
@@ -918,6 +918,21 @@ export default class Client extends OpenApi {
918
918
  * @returns DescribeAlertConfigurationResponse
919
919
  */
920
920
  describeAlertConfiguration(request: $_model.DescribeAlertConfigurationRequest): Promise<$_model.DescribeAlertConfigurationResponse>;
921
+ /**
922
+ * 查询备选规格
923
+ *
924
+ * @param request - DescribeCandidateInstanceTypeRequest
925
+ * @param runtime - runtime options for this request RuntimeOptions
926
+ * @returns DescribeCandidateInstanceTypeResponse
927
+ */
928
+ describeCandidateInstanceTypeWithOptions(request: $_model.DescribeCandidateInstanceTypeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCandidateInstanceTypeResponse>;
929
+ /**
930
+ * 查询备选规格
931
+ *
932
+ * @param request - DescribeCandidateInstanceTypeRequest
933
+ * @returns DescribeCandidateInstanceTypeResponse
934
+ */
935
+ describeCandidateInstanceType(request: $_model.DescribeCandidateInstanceTypeRequest): Promise<$_model.DescribeCandidateInstanceTypeResponse>;
921
936
  /**
922
937
  * Queries the diagnostic reports.
923
938
  *
@@ -2160,7 +2175,7 @@ export default class Client extends OpenApi {
2160
2175
  */
2161
2176
  setGroupDeletionProtection(request: $_model.SetGroupDeletionProtectionRequest): Promise<$_model.SetGroupDeletionProtectionResponse>;
2162
2177
  /**
2163
- * Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\&M hurdles efficiently.
2178
+ * Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\\\\\&M hurdles efficiently.
2164
2179
  *
2165
2180
  * @remarks
2166
2181
  * Auto Scaling detects and removes unhealthy ECS instances or elastic container instances from their scaling groups. To prevent a specific instance from being removed, you can put it in either the Standby or Protected state. For more information, see [EnterStandby](https://help.aliyun.com/document_detail/459345.html) and [SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html).
@@ -2171,7 +2186,7 @@ export default class Client extends OpenApi {
2171
2186
  */
2172
2187
  setInstanceHealthWithOptions(request: $_model.SetInstanceHealthRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SetInstanceHealthResponse>;
2173
2188
  /**
2174
- * Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\&M hurdles efficiently.
2189
+ * Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\\\\\&M hurdles efficiently.
2175
2190
  *
2176
2191
  * @remarks
2177
2192
  * Auto Scaling detects and removes unhealthy ECS instances or elastic container instances from their scaling groups. To prevent a specific instance from being removed, you can put it in either the Standby or Protected state. For more information, see [EnterStandby](https://help.aliyun.com/document_detail/459345.html) and [SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html).
package/dist/client.js CHANGED
@@ -1516,6 +1516,9 @@ class Client extends openapi_core_1.default {
1516
1516
  if (!$dara.isNull(request.instanceType)) {
1517
1517
  query["InstanceType"] = request.instanceType;
1518
1518
  }
1519
+ if (!$dara.isNull(request.instanceTypeCandidateOptions)) {
1520
+ query["InstanceTypeCandidateOptions"] = request.instanceTypeCandidateOptions;
1521
+ }
1519
1522
  if (!$dara.isNull(request.instanceTypeOverrides)) {
1520
1523
  query["InstanceTypeOverrides"] = request.instanceTypeOverrides;
1521
1524
  }
@@ -2831,6 +2834,90 @@ class Client extends openapi_core_1.default {
2831
2834
  let runtime = new $dara.RuntimeOptions({});
2832
2835
  return await this.describeAlertConfigurationWithOptions(request, runtime);
2833
2836
  }
2837
+ /**
2838
+ * 查询备选规格
2839
+ *
2840
+ * @param request - DescribeCandidateInstanceTypeRequest
2841
+ * @param runtime - runtime options for this request RuntimeOptions
2842
+ * @returns DescribeCandidateInstanceTypeResponse
2843
+ */
2844
+ async describeCandidateInstanceTypeWithOptions(request, runtime) {
2845
+ request.validate();
2846
+ let query = {};
2847
+ if (!$dara.isNull(request.allowCrossAz)) {
2848
+ query["AllowCrossAz"] = request.allowCrossAz;
2849
+ }
2850
+ if (!$dara.isNull(request.allowDifferentGeneration)) {
2851
+ query["AllowDifferentGeneration"] = request.allowDifferentGeneration;
2852
+ }
2853
+ if (!$dara.isNull(request.dataDiskCategories)) {
2854
+ query["DataDiskCategories"] = request.dataDiskCategories;
2855
+ }
2856
+ if (!$dara.isNull(request.imageFamily)) {
2857
+ query["ImageFamily"] = request.imageFamily;
2858
+ }
2859
+ if (!$dara.isNull(request.imageId)) {
2860
+ query["ImageId"] = request.imageId;
2861
+ }
2862
+ if (!$dara.isNull(request.imageName)) {
2863
+ query["ImageName"] = request.imageName;
2864
+ }
2865
+ if (!$dara.isNull(request.instanceTypes)) {
2866
+ query["InstanceTypes"] = request.instanceTypes;
2867
+ }
2868
+ if (!$dara.isNull(request.ipv6AddressCount)) {
2869
+ query["Ipv6AddressCount"] = request.ipv6AddressCount;
2870
+ }
2871
+ if (!$dara.isNull(request.maxPrice)) {
2872
+ query["MaxPrice"] = request.maxPrice;
2873
+ }
2874
+ if (!$dara.isNull(request.ownerId)) {
2875
+ query["OwnerId"] = request.ownerId;
2876
+ }
2877
+ if (!$dara.isNull(request.regionId)) {
2878
+ query["RegionId"] = request.regionId;
2879
+ }
2880
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2881
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2882
+ }
2883
+ if (!$dara.isNull(request.resourceOwnerId)) {
2884
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2885
+ }
2886
+ if (!$dara.isNull(request.spotStrategy)) {
2887
+ query["SpotStrategy"] = request.spotStrategy;
2888
+ }
2889
+ if (!$dara.isNull(request.systemDiskCategories)) {
2890
+ query["SystemDiskCategories"] = request.systemDiskCategories;
2891
+ }
2892
+ if (!$dara.isNull(request.zoneIds)) {
2893
+ query["ZoneIds"] = request.zoneIds;
2894
+ }
2895
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2896
+ query: openapi_core_2.OpenApiUtil.query(query),
2897
+ });
2898
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2899
+ action: "DescribeCandidateInstanceType",
2900
+ version: "2022-02-22",
2901
+ protocol: "HTTPS",
2902
+ pathname: "/",
2903
+ method: "POST",
2904
+ authType: "AK",
2905
+ style: "RPC",
2906
+ reqBodyType: "formData",
2907
+ bodyType: "json",
2908
+ });
2909
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCandidateInstanceTypeResponse({}));
2910
+ }
2911
+ /**
2912
+ * 查询备选规格
2913
+ *
2914
+ * @param request - DescribeCandidateInstanceTypeRequest
2915
+ * @returns DescribeCandidateInstanceTypeResponse
2916
+ */
2917
+ async describeCandidateInstanceType(request) {
2918
+ let runtime = new $dara.RuntimeOptions({});
2919
+ return await this.describeCandidateInstanceTypeWithOptions(request, runtime);
2920
+ }
2834
2921
  /**
2835
2922
  * Queries the diagnostic reports.
2836
2923
  *
@@ -5850,6 +5937,9 @@ class Client extends openapi_core_1.default {
5850
5937
  if (!$dara.isNull(request.instancePatternInfos)) {
5851
5938
  query["InstancePatternInfos"] = request.instancePatternInfos;
5852
5939
  }
5940
+ if (!$dara.isNull(request.instanceTypeCandidateOptions)) {
5941
+ query["InstanceTypeCandidateOptions"] = request.instanceTypeCandidateOptions;
5942
+ }
5853
5943
  if (!$dara.isNull(request.instanceTypeOverrides)) {
5854
5944
  query["InstanceTypeOverrides"] = request.instanceTypeOverrides;
5855
5945
  }
@@ -7184,7 +7274,7 @@ class Client extends openapi_core_1.default {
7184
7274
  return await this.setGroupDeletionProtectionWithOptions(request, runtime);
7185
7275
  }
7186
7276
  /**
7187
- * Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\&M hurdles efficiently.
7277
+ * Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\\\\\&M hurdles efficiently.
7188
7278
  *
7189
7279
  * @remarks
7190
7280
  * Auto Scaling detects and removes unhealthy ECS instances or elastic container instances from their scaling groups. To prevent a specific instance from being removed, you can put it in either the Standby or Protected state. For more information, see [EnterStandby](https://help.aliyun.com/document_detail/459345.html) and [SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html).
@@ -7225,7 +7315,7 @@ class Client extends openapi_core_1.default {
7225
7315
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.SetInstanceHealthResponse({}));
7226
7316
  }
7227
7317
  /**
7228
- * Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\&M hurdles efficiently.
7318
+ * Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\\\\\&M hurdles efficiently.
7229
7319
  *
7230
7320
  * @remarks
7231
7321
  * Auto Scaling detects and removes unhealthy ECS instances or elastic container instances from their scaling groups. To prevent a specific instance from being removed, you can put it in either the Standby or Protected state. For more information, see [EnterStandby](https://help.aliyun.com/document_detail/459345.html) and [SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html).