@alicloud/ecs20140526 7.0.17 → 7.1.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 (45) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +117 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CancelAutoSnapshotPolicyRequest.d.ts +1 -0
  5. package/dist/models/CancelAutoSnapshotPolicyRequest.js +2 -0
  6. package/dist/models/CancelAutoSnapshotPolicyRequest.js.map +1 -1
  7. package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.d.ts +26 -0
  8. package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.js +74 -0
  9. package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.js.map +1 -0
  10. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponse.d.ts +19 -0
  11. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponse.js +69 -0
  12. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponse.js.map +1 -0
  13. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.d.ts +43 -0
  14. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.js +108 -0
  15. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.js.map +1 -0
  16. package/dist/models/DescribeInstanceAttributeResponseBody.d.ts +1 -0
  17. package/dist/models/DescribeInstanceAttributeResponseBody.js +2 -0
  18. package/dist/models/DescribeInstanceAttributeResponseBody.js.map +1 -1
  19. package/dist/models/ModifyInstanceNetworkOptionsRequest.d.ts +26 -0
  20. package/dist/models/ModifyInstanceNetworkOptionsRequest.js +66 -0
  21. package/dist/models/ModifyInstanceNetworkOptionsRequest.js.map +1 -0
  22. package/dist/models/ModifyInstanceNetworkOptionsResponse.d.ts +19 -0
  23. package/dist/models/ModifyInstanceNetworkOptionsResponse.js +69 -0
  24. package/dist/models/ModifyInstanceNetworkOptionsResponse.js.map +1 -0
  25. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.d.ts +26 -0
  26. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.js +60 -0
  27. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.js.map +1 -0
  28. package/dist/models/RunInstancesRequest.d.ts +1 -0
  29. package/dist/models/RunInstancesRequest.js +2 -0
  30. package/dist/models/RunInstancesRequest.js.map +1 -1
  31. package/dist/models/model.d.ts +8 -0
  32. package/dist/models/model.js +53 -36
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +136 -0
  36. package/src/models/CancelAutoSnapshotPolicyRequest.ts +3 -0
  37. package/src/models/DescribeAutoSnapshotPolicyAssociationsRequest.ts +55 -0
  38. package/src/models/DescribeAutoSnapshotPolicyAssociationsResponse.ts +40 -0
  39. package/src/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.ts +88 -0
  40. package/src/models/DescribeInstanceAttributeResponseBody.ts +3 -0
  41. package/src/models/ModifyInstanceNetworkOptionsRequest.ts +47 -0
  42. package/src/models/ModifyInstanceNetworkOptionsResponse.ts +40 -0
  43. package/src/models/ModifyInstanceNetworkOptionsResponseBody.ts +41 -0
  44. package/src/models/RunInstancesRequest.ts +3 -0
  45. package/src/models/model.ts +8 -0
package/dist/client.d.ts CHANGED
@@ -2783,6 +2783,21 @@ export default class Client extends OpenApi {
2783
2783
  * @returns DescribeAutoProvisioningGroupsResponse
2784
2784
  */
2785
2785
  describeAutoProvisioningGroups(request: $_model.DescribeAutoProvisioningGroupsRequest): Promise<$_model.DescribeAutoProvisioningGroupsResponse>;
2786
+ /**
2787
+ * 查询自动快照策略的关联关系
2788
+ *
2789
+ * @param request - DescribeAutoSnapshotPolicyAssociationsRequest
2790
+ * @param runtime - runtime options for this request RuntimeOptions
2791
+ * @returns DescribeAutoSnapshotPolicyAssociationsResponse
2792
+ */
2793
+ describeAutoSnapshotPolicyAssociationsWithOptions(request: $_model.DescribeAutoSnapshotPolicyAssociationsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAutoSnapshotPolicyAssociationsResponse>;
2794
+ /**
2795
+ * 查询自动快照策略的关联关系
2796
+ *
2797
+ * @param request - DescribeAutoSnapshotPolicyAssociationsRequest
2798
+ * @returns DescribeAutoSnapshotPolicyAssociationsResponse
2799
+ */
2800
+ describeAutoSnapshotPolicyAssociations(request: $_model.DescribeAutoSnapshotPolicyAssociationsRequest): Promise<$_model.DescribeAutoSnapshotPolicyAssociationsResponse>;
2786
2801
  /**
2787
2802
  * Queries the details of automatic snapshot policies that are created in a specific region.
2788
2803
  *
@@ -6994,6 +7009,21 @@ export default class Client extends OpenApi {
6994
7009
  * @returns ModifyInstanceMetadataOptionsResponse
6995
7010
  */
6996
7011
  modifyInstanceMetadataOptions(request: $_model.ModifyInstanceMetadataOptionsRequest): Promise<$_model.ModifyInstanceMetadataOptionsResponse>;
7012
+ /**
7013
+ * 修改实例网络选项
7014
+ *
7015
+ * @param request - ModifyInstanceNetworkOptionsRequest
7016
+ * @param runtime - runtime options for this request RuntimeOptions
7017
+ * @returns ModifyInstanceNetworkOptionsResponse
7018
+ */
7019
+ modifyInstanceNetworkOptionsWithOptions(request: $_model.ModifyInstanceNetworkOptionsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyInstanceNetworkOptionsResponse>;
7020
+ /**
7021
+ * 修改实例网络选项
7022
+ *
7023
+ * @param request - ModifyInstanceNetworkOptionsRequest
7024
+ * @returns ModifyInstanceNetworkOptionsResponse
7025
+ */
7026
+ modifyInstanceNetworkOptions(request: $_model.ModifyInstanceNetworkOptionsRequest): Promise<$_model.ModifyInstanceNetworkOptionsResponse>;
6997
7027
  /**
6998
7028
  * Modifies the network configurations of an Elastic Compute Service (ECS) instance, such as the public bandwidth, assignment or unassignment of a static public IP address (also known as system-assigned or auto-assigned public IP address), and billing method for network usage. You can call this operation to upgrade or downgrade the network configurations of ECS instances.
6999
7029
  *
package/dist/client.js CHANGED
@@ -1815,6 +1815,9 @@ class Client extends openapi_core_1.default {
1815
1815
  if (!$dara.isNull(request.resourceOwnerId)) {
1816
1816
  query["ResourceOwnerId"] = request.resourceOwnerId;
1817
1817
  }
1818
+ if (!$dara.isNull(request.autoSnapshotPolicyId)) {
1819
+ query["autoSnapshotPolicyId"] = request.autoSnapshotPolicyId;
1820
+ }
1818
1821
  if (!$dara.isNull(request.diskIds)) {
1819
1822
  query["diskIds"] = request.diskIds;
1820
1823
  }
@@ -9160,6 +9163,69 @@ class Client extends openapi_core_1.default {
9160
9163
  let runtime = new $dara.RuntimeOptions({});
9161
9164
  return await this.describeAutoProvisioningGroupsWithOptions(request, runtime);
9162
9165
  }
9166
+ /**
9167
+ * 查询自动快照策略的关联关系
9168
+ *
9169
+ * @param request - DescribeAutoSnapshotPolicyAssociationsRequest
9170
+ * @param runtime - runtime options for this request RuntimeOptions
9171
+ * @returns DescribeAutoSnapshotPolicyAssociationsResponse
9172
+ */
9173
+ async describeAutoSnapshotPolicyAssociationsWithOptions(request, runtime) {
9174
+ request.validate();
9175
+ let query = {};
9176
+ if (!$dara.isNull(request.autoSnapshotPolicyId)) {
9177
+ query["AutoSnapshotPolicyId"] = request.autoSnapshotPolicyId;
9178
+ }
9179
+ if (!$dara.isNull(request.diskId)) {
9180
+ query["DiskId"] = request.diskId;
9181
+ }
9182
+ if (!$dara.isNull(request.maxResults)) {
9183
+ query["MaxResults"] = request.maxResults;
9184
+ }
9185
+ if (!$dara.isNull(request.nextToken)) {
9186
+ query["NextToken"] = request.nextToken;
9187
+ }
9188
+ if (!$dara.isNull(request.ownerAccount)) {
9189
+ query["OwnerAccount"] = request.ownerAccount;
9190
+ }
9191
+ if (!$dara.isNull(request.ownerId)) {
9192
+ query["OwnerId"] = request.ownerId;
9193
+ }
9194
+ if (!$dara.isNull(request.regionId)) {
9195
+ query["RegionId"] = request.regionId;
9196
+ }
9197
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
9198
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
9199
+ }
9200
+ if (!$dara.isNull(request.resourceOwnerId)) {
9201
+ query["ResourceOwnerId"] = request.resourceOwnerId;
9202
+ }
9203
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9204
+ query: openapi_core_2.OpenApiUtil.query(query),
9205
+ });
9206
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9207
+ action: "DescribeAutoSnapshotPolicyAssociations",
9208
+ version: "2014-05-26",
9209
+ protocol: "HTTPS",
9210
+ pathname: "/",
9211
+ method: "POST",
9212
+ authType: "AK",
9213
+ style: "RPC",
9214
+ reqBodyType: "formData",
9215
+ bodyType: "json",
9216
+ });
9217
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAutoSnapshotPolicyAssociationsResponse({}));
9218
+ }
9219
+ /**
9220
+ * 查询自动快照策略的关联关系
9221
+ *
9222
+ * @param request - DescribeAutoSnapshotPolicyAssociationsRequest
9223
+ * @returns DescribeAutoSnapshotPolicyAssociationsResponse
9224
+ */
9225
+ async describeAutoSnapshotPolicyAssociations(request) {
9226
+ let runtime = new $dara.RuntimeOptions({});
9227
+ return await this.describeAutoSnapshotPolicyAssociationsWithOptions(request, runtime);
9228
+ }
9163
9229
  /**
9164
9230
  * Queries the details of automatic snapshot policies that are created in a specific region.
9165
9231
  *
@@ -22756,6 +22822,57 @@ class Client extends openapi_core_1.default {
22756
22822
  let runtime = new $dara.RuntimeOptions({});
22757
22823
  return await this.modifyInstanceMetadataOptionsWithOptions(request, runtime);
22758
22824
  }
22825
+ /**
22826
+ * 修改实例网络选项
22827
+ *
22828
+ * @param request - ModifyInstanceNetworkOptionsRequest
22829
+ * @param runtime - runtime options for this request RuntimeOptions
22830
+ * @returns ModifyInstanceNetworkOptionsResponse
22831
+ */
22832
+ async modifyInstanceNetworkOptionsWithOptions(request, runtime) {
22833
+ request.validate();
22834
+ let query = {};
22835
+ if (!$dara.isNull(request.bandwidthWeighting)) {
22836
+ query["BandwidthWeighting"] = request.bandwidthWeighting;
22837
+ }
22838
+ if (!$dara.isNull(request.instanceId)) {
22839
+ query["InstanceId"] = request.instanceId;
22840
+ }
22841
+ if (!$dara.isNull(request.ownerId)) {
22842
+ query["OwnerId"] = request.ownerId;
22843
+ }
22844
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
22845
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
22846
+ }
22847
+ if (!$dara.isNull(request.resourceOwnerId)) {
22848
+ query["ResourceOwnerId"] = request.resourceOwnerId;
22849
+ }
22850
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
22851
+ query: openapi_core_2.OpenApiUtil.query(query),
22852
+ });
22853
+ let params = new openapi_core_2.$OpenApiUtil.Params({
22854
+ action: "ModifyInstanceNetworkOptions",
22855
+ version: "2014-05-26",
22856
+ protocol: "HTTPS",
22857
+ pathname: "/",
22858
+ method: "POST",
22859
+ authType: "AK",
22860
+ style: "RPC",
22861
+ reqBodyType: "formData",
22862
+ bodyType: "json",
22863
+ });
22864
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyInstanceNetworkOptionsResponse({}));
22865
+ }
22866
+ /**
22867
+ * 修改实例网络选项
22868
+ *
22869
+ * @param request - ModifyInstanceNetworkOptionsRequest
22870
+ * @returns ModifyInstanceNetworkOptionsResponse
22871
+ */
22872
+ async modifyInstanceNetworkOptions(request) {
22873
+ let runtime = new $dara.RuntimeOptions({});
22874
+ return await this.modifyInstanceNetworkOptionsWithOptions(request, runtime);
22875
+ }
22759
22876
  /**
22760
22877
  * Modifies the network configurations of an Elastic Compute Service (ECS) instance, such as the public bandwidth, assignment or unassignment of a static public IP address (also known as system-assigned or auto-assigned public IP address), and billing method for network usage. You can call this operation to upgrade or downgrade the network configurations of ECS instances.
22761
22878
  *