@alicloud/vpc20160428 7.1.3 → 7.2.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 (33) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +96 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AssociateMacSecKeyRequest.d.ts +53 -0
  5. package/dist/models/AssociateMacSecKeyRequest.js +66 -0
  6. package/dist/models/AssociateMacSecKeyRequest.js.map +1 -0
  7. package/dist/models/AssociateMacSecKeyResponse.d.ts +19 -0
  8. package/dist/models/AssociateMacSecKeyResponse.js +69 -0
  9. package/dist/models/AssociateMacSecKeyResponse.js.map +1 -0
  10. package/dist/models/AssociateMacSecKeyResponseBody.d.ts +18 -0
  11. package/dist/models/AssociateMacSecKeyResponseBody.js +58 -0
  12. package/dist/models/AssociateMacSecKeyResponseBody.js.map +1 -0
  13. package/dist/models/DisassociateMacSecKeyRequest.d.ts +37 -0
  14. package/dist/models/DisassociateMacSecKeyRequest.js +62 -0
  15. package/dist/models/DisassociateMacSecKeyRequest.js.map +1 -0
  16. package/dist/models/DisassociateMacSecKeyResponse.d.ts +19 -0
  17. package/dist/models/DisassociateMacSecKeyResponse.js +69 -0
  18. package/dist/models/DisassociateMacSecKeyResponse.js.map +1 -0
  19. package/dist/models/DisassociateMacSecKeyResponseBody.d.ts +18 -0
  20. package/dist/models/DisassociateMacSecKeyResponseBody.js +58 -0
  21. package/dist/models/DisassociateMacSecKeyResponseBody.js.map +1 -0
  22. package/dist/models/model.d.ts +6 -0
  23. package/dist/models/model.js +36 -24
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +108 -0
  27. package/src/models/AssociateMacSecKeyRequest.ts +74 -0
  28. package/src/models/AssociateMacSecKeyResponse.ts +40 -0
  29. package/src/models/AssociateMacSecKeyResponseBody.ts +31 -0
  30. package/src/models/DisassociateMacSecKeyRequest.ts +54 -0
  31. package/src/models/DisassociateMacSecKeyResponse.ts +40 -0
  32. package/src/models/DisassociateMacSecKeyResponseBody.ts +31 -0
  33. package/src/models/model.ts +6 -0
package/dist/client.d.ts CHANGED
@@ -465,6 +465,21 @@ export default class Client extends OpenApi {
465
465
  * @returns AssociateHaVipResponse
466
466
  */
467
467
  associateHaVip(request: $_model.AssociateHaVipRequest): Promise<$_model.AssociateHaVipResponse>;
468
+ /**
469
+ * 关联MACSec配置到物理专线
470
+ *
471
+ * @param request - AssociateMacSecKeyRequest
472
+ * @param runtime - runtime options for this request RuntimeOptions
473
+ * @returns AssociateMacSecKeyResponse
474
+ */
475
+ associateMacSecKeyWithOptions(request: $_model.AssociateMacSecKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AssociateMacSecKeyResponse>;
476
+ /**
477
+ * 关联MACSec配置到物理专线
478
+ *
479
+ * @param request - AssociateMacSecKeyRequest
480
+ * @returns AssociateMacSecKeyResponse
481
+ */
482
+ associateMacSecKey(request: $_model.AssociateMacSecKeyRequest): Promise<$_model.AssociateMacSecKeyResponse>;
468
483
  /**
469
484
  * Associates a network access control list (ACL) with a vSwitch.
470
485
  *
@@ -5279,6 +5294,21 @@ export default class Client extends OpenApi {
5279
5294
  * @returns DisableVpcClassicLinkResponse
5280
5295
  */
5281
5296
  disableVpcClassicLink(request: $_model.DisableVpcClassicLinkRequest): Promise<$_model.DisableVpcClassicLinkResponse>;
5297
+ /**
5298
+ * 取消关联MACSec配置到物理专线
5299
+ *
5300
+ * @param request - DisassociateMacSecKeyRequest
5301
+ * @param runtime - runtime options for this request RuntimeOptions
5302
+ * @returns DisassociateMacSecKeyResponse
5303
+ */
5304
+ disassociateMacSecKeyWithOptions(request: $_model.DisassociateMacSecKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisassociateMacSecKeyResponse>;
5305
+ /**
5306
+ * 取消关联MACSec配置到物理专线
5307
+ *
5308
+ * @param request - DisassociateMacSecKeyRequest
5309
+ * @returns DisassociateMacSecKeyResponse
5310
+ */
5311
+ disassociateMacSecKey(request: $_model.DisassociateMacSecKeyRequest): Promise<$_model.DisassociateMacSecKeyResponse>;
5282
5312
  /**
5283
5313
  * Disassociates a gateway route table from an IPv4 gateway.
5284
5314
  *
package/dist/client.js CHANGED
@@ -1602,6 +1602,57 @@ class Client extends openapi_core_1.default {
1602
1602
  let runtime = new $dara.RuntimeOptions({});
1603
1603
  return await this.associateHaVipWithOptions(request, runtime);
1604
1604
  }
1605
+ /**
1606
+ * 关联MACSec配置到物理专线
1607
+ *
1608
+ * @param request - AssociateMacSecKeyRequest
1609
+ * @param runtime - runtime options for this request RuntimeOptions
1610
+ * @returns AssociateMacSecKeyResponse
1611
+ */
1612
+ async associateMacSecKeyWithOptions(request, runtime) {
1613
+ request.validate();
1614
+ let query = {};
1615
+ if (!$dara.isNull(request.cak)) {
1616
+ query["Cak"] = request.cak;
1617
+ }
1618
+ if (!$dara.isNull(request.cipherSuite)) {
1619
+ query["CipherSuite"] = request.cipherSuite;
1620
+ }
1621
+ if (!$dara.isNull(request.ckn)) {
1622
+ query["Ckn"] = request.ckn;
1623
+ }
1624
+ if (!$dara.isNull(request.physicalConnectionId)) {
1625
+ query["PhysicalConnectionId"] = request.physicalConnectionId;
1626
+ }
1627
+ if (!$dara.isNull(request.regionId)) {
1628
+ query["RegionId"] = request.regionId;
1629
+ }
1630
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1631
+ query: openapi_core_2.OpenApiUtil.query(query),
1632
+ });
1633
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1634
+ action: "AssociateMacSecKey",
1635
+ version: "2016-04-28",
1636
+ protocol: "HTTPS",
1637
+ pathname: "/",
1638
+ method: "POST",
1639
+ authType: "AK",
1640
+ style: "RPC",
1641
+ reqBodyType: "formData",
1642
+ bodyType: "json",
1643
+ });
1644
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.AssociateMacSecKeyResponse({}));
1645
+ }
1646
+ /**
1647
+ * 关联MACSec配置到物理专线
1648
+ *
1649
+ * @param request - AssociateMacSecKeyRequest
1650
+ * @returns AssociateMacSecKeyResponse
1651
+ */
1652
+ async associateMacSecKey(request) {
1653
+ let runtime = new $dara.RuntimeOptions({});
1654
+ return await this.associateMacSecKeyWithOptions(request, runtime);
1655
+ }
1605
1656
  /**
1606
1657
  * Associates a network access control list (ACL) with a vSwitch.
1607
1658
  *
@@ -18005,6 +18056,51 @@ class Client extends openapi_core_1.default {
18005
18056
  let runtime = new $dara.RuntimeOptions({});
18006
18057
  return await this.disableVpcClassicLinkWithOptions(request, runtime);
18007
18058
  }
18059
+ /**
18060
+ * 取消关联MACSec配置到物理专线
18061
+ *
18062
+ * @param request - DisassociateMacSecKeyRequest
18063
+ * @param runtime - runtime options for this request RuntimeOptions
18064
+ * @returns DisassociateMacSecKeyResponse
18065
+ */
18066
+ async disassociateMacSecKeyWithOptions(request, runtime) {
18067
+ request.validate();
18068
+ let query = {};
18069
+ if (!$dara.isNull(request.ckn)) {
18070
+ query["Ckn"] = request.ckn;
18071
+ }
18072
+ if (!$dara.isNull(request.physicalConnectionId)) {
18073
+ query["PhysicalConnectionId"] = request.physicalConnectionId;
18074
+ }
18075
+ if (!$dara.isNull(request.regionId)) {
18076
+ query["RegionId"] = request.regionId;
18077
+ }
18078
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
18079
+ query: openapi_core_2.OpenApiUtil.query(query),
18080
+ });
18081
+ let params = new openapi_core_2.$OpenApiUtil.Params({
18082
+ action: "DisassociateMacSecKey",
18083
+ version: "2016-04-28",
18084
+ protocol: "HTTPS",
18085
+ pathname: "/",
18086
+ method: "POST",
18087
+ authType: "AK",
18088
+ style: "RPC",
18089
+ reqBodyType: "formData",
18090
+ bodyType: "json",
18091
+ });
18092
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DisassociateMacSecKeyResponse({}));
18093
+ }
18094
+ /**
18095
+ * 取消关联MACSec配置到物理专线
18096
+ *
18097
+ * @param request - DisassociateMacSecKeyRequest
18098
+ * @returns DisassociateMacSecKeyResponse
18099
+ */
18100
+ async disassociateMacSecKey(request) {
18101
+ let runtime = new $dara.RuntimeOptions({});
18102
+ return await this.disassociateMacSecKeyWithOptions(request, runtime);
18103
+ }
18008
18104
  /**
18009
18105
  * Disassociates a gateway route table from an IPv4 gateway.
18010
18106
  *