@alicloud/vpc20160428 7.1.2 → 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 (37) hide show
  1. package/dist/client.d.ts +32 -2
  2. package/dist/client.js +98 -2
  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/DescribePhysicalConnectionsResponseBody.d.ts +31 -0
  14. package/dist/models/DescribePhysicalConnectionsResponseBody.js +55 -1
  15. package/dist/models/DescribePhysicalConnectionsResponseBody.js.map +1 -1
  16. package/dist/models/DisassociateMacSecKeyRequest.d.ts +37 -0
  17. package/dist/models/DisassociateMacSecKeyRequest.js +62 -0
  18. package/dist/models/DisassociateMacSecKeyRequest.js.map +1 -0
  19. package/dist/models/DisassociateMacSecKeyResponse.d.ts +19 -0
  20. package/dist/models/DisassociateMacSecKeyResponse.js +69 -0
  21. package/dist/models/DisassociateMacSecKeyResponse.js.map +1 -0
  22. package/dist/models/DisassociateMacSecKeyResponseBody.d.ts +18 -0
  23. package/dist/models/DisassociateMacSecKeyResponseBody.js +58 -0
  24. package/dist/models/DisassociateMacSecKeyResponseBody.js.map +1 -0
  25. package/dist/models/model.d.ts +8 -0
  26. package/dist/models/model.js +53 -37
  27. package/dist/models/model.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client.ts +110 -2
  30. package/src/models/AssociateMacSecKeyRequest.ts +74 -0
  31. package/src/models/AssociateMacSecKeyResponse.ts +40 -0
  32. package/src/models/AssociateMacSecKeyResponseBody.ts +31 -0
  33. package/src/models/DescribePhysicalConnectionsResponseBody.ts +67 -0
  34. package/src/models/DisassociateMacSecKeyRequest.ts +54 -0
  35. package/src/models/DisassociateMacSecKeyResponse.ts +40 -0
  36. package/src/models/DisassociateMacSecKeyResponseBody.ts +31 -0
  37. package/src/models/model.ts +8 -0
@@ -2,6 +2,67 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeMacsecKeysMacsecKey extends $dara.Model {
6
+ cak?: string;
7
+ cipherSuite?: string;
8
+ ckn?: string;
9
+ startOn?: string;
10
+ status?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ cak: 'Cak',
14
+ cipherSuite: 'CipherSuite',
15
+ ckn: 'Ckn',
16
+ startOn: 'StartOn',
17
+ status: 'Status',
18
+ };
19
+ }
20
+
21
+ static types(): { [key: string]: any } {
22
+ return {
23
+ cak: 'string',
24
+ cipherSuite: 'string',
25
+ ckn: 'string',
26
+ startOn: 'string',
27
+ status: 'string',
28
+ };
29
+ }
30
+
31
+ validate() {
32
+ super.validate();
33
+ }
34
+
35
+ constructor(map?: { [key: string]: any }) {
36
+ super(map);
37
+ }
38
+ }
39
+
40
+ export class DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeMacsecKeys extends $dara.Model {
41
+ macsecKey?: DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeMacsecKeysMacsecKey[];
42
+ static names(): { [key: string]: string } {
43
+ return {
44
+ macsecKey: 'MacsecKey',
45
+ };
46
+ }
47
+
48
+ static types(): { [key: string]: any } {
49
+ return {
50
+ macsecKey: { 'type': 'array', 'itemType': DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeMacsecKeysMacsecKey },
51
+ };
52
+ }
53
+
54
+ validate() {
55
+ if(Array.isArray(this.macsecKey)) {
56
+ $dara.Model.validateArray(this.macsecKey);
57
+ }
58
+ super.validate();
59
+ }
60
+
61
+ constructor(map?: { [key: string]: any }) {
62
+ super(map);
63
+ }
64
+ }
65
+
5
66
  export class DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeTagsTags extends $dara.Model {
6
67
  key?: string;
7
68
  value?: string;
@@ -71,6 +132,7 @@ export class DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysica
71
132
  hasReservationData?: string;
72
133
  lineOperator?: string;
73
134
  loaStatus?: string;
135
+ macsecKeys?: DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeMacsecKeys;
74
136
  name?: string;
75
137
  opticalModuleModel?: string;
76
138
  orderMode?: string;
@@ -112,6 +174,7 @@ export class DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysica
112
174
  hasReservationData: 'HasReservationData',
113
175
  lineOperator: 'LineOperator',
114
176
  loaStatus: 'LoaStatus',
177
+ macsecKeys: 'MacsecKeys',
115
178
  name: 'Name',
116
179
  opticalModuleModel: 'OpticalModuleModel',
117
180
  orderMode: 'OrderMode',
@@ -156,6 +219,7 @@ export class DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysica
156
219
  hasReservationData: 'string',
157
220
  lineOperator: 'string',
158
221
  loaStatus: 'string',
222
+ macsecKeys: DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeMacsecKeys,
159
223
  name: 'string',
160
224
  opticalModuleModel: 'string',
161
225
  orderMode: 'string',
@@ -183,6 +247,9 @@ export class DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysica
183
247
  }
184
248
 
185
249
  validate() {
250
+ if(this.macsecKeys && typeof (this.macsecKeys as any).validate === 'function') {
251
+ (this.macsecKeys as any).validate();
252
+ }
186
253
  if(this.tags && typeof (this.tags as any).validate === 'function') {
187
254
  (this.tags as any).validate();
188
255
  }
@@ -0,0 +1,54 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DisassociateMacSecKeyRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * 0123456789ABCDEF0123456789ABCDEF
12
+ */
13
+ ckn?: string;
14
+ /**
15
+ * @remarks
16
+ * This parameter is required.
17
+ *
18
+ * @example
19
+ * pc-bp1hp0wr072f6****
20
+ */
21
+ physicalConnectionId?: string;
22
+ /**
23
+ * @remarks
24
+ * This parameter is required.
25
+ *
26
+ * @example
27
+ * cn-hangzhou
28
+ */
29
+ regionId?: string;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ ckn: 'Ckn',
33
+ physicalConnectionId: 'PhysicalConnectionId',
34
+ regionId: 'RegionId',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ ckn: 'string',
41
+ physicalConnectionId: 'string',
42
+ regionId: 'string',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DisassociateMacSecKeyResponseBody } from "./DisassociateMacSecKeyResponseBody";
4
+
5
+
6
+ export class DisassociateMacSecKeyResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DisassociateMacSecKeyResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: DisassociateMacSecKeyResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DisassociateMacSecKeyResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * D32B3C26-6C6C-4988-93E9-D2A6444CE6AE
9
+ */
10
+ requestId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ requestId: 'RequestId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ requestId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -222,6 +222,8 @@ export { DescribePhysicalConnectionLOAResponseBodyPhysicalConnectionLOATypePMInf
222
222
  export { DescribePhysicalConnectionLOAResponseBodyPhysicalConnectionLOAType } from './DescribePhysicalConnectionLoaresponseBody';
223
223
  export { DescribePhysicalConnectionsRequestFilter } from './DescribePhysicalConnectionsRequest';
224
224
  export { DescribePhysicalConnectionsRequestTags } from './DescribePhysicalConnectionsRequest';
225
+ export { DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeMacsecKeysMacsecKey } from './DescribePhysicalConnectionsResponseBody';
226
+ export { DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeMacsecKeys } from './DescribePhysicalConnectionsResponseBody';
225
227
  export { DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeTagsTags } from './DescribePhysicalConnectionsResponseBody';
226
228
  export { DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionTypeTags } from './DescribePhysicalConnectionsResponseBody';
227
229
  export { DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType } from './DescribePhysicalConnectionsResponseBody';
@@ -574,6 +576,9 @@ export { AssociateEipAddressBatchResponse } from './AssociateEipAddressBatchResp
574
576
  export { AssociateHaVipRequest } from './AssociateHaVipRequest';
575
577
  export { AssociateHaVipResponseBody } from './AssociateHaVipResponseBody';
576
578
  export { AssociateHaVipResponse } from './AssociateHaVipResponse';
579
+ export { AssociateMacSecKeyRequest } from './AssociateMacSecKeyRequest';
580
+ export { AssociateMacSecKeyResponseBody } from './AssociateMacSecKeyResponseBody';
581
+ export { AssociateMacSecKeyResponse } from './AssociateMacSecKeyResponse';
577
582
  export { AssociateNetworkAclRequest } from './AssociateNetworkAclRequest';
578
583
  export { AssociateNetworkAclResponseBody } from './AssociateNetworkAclResponseBody';
579
584
  export { AssociateNetworkAclResponse } from './AssociateNetworkAclResponse';
@@ -1229,6 +1234,9 @@ export { DiagnoseVpnGatewayResponse } from './DiagnoseVpnGatewayResponse';
1229
1234
  export { DisableVpcClassicLinkRequest } from './DisableVpcClassicLinkRequest';
1230
1235
  export { DisableVpcClassicLinkResponseBody } from './DisableVpcClassicLinkResponseBody';
1231
1236
  export { DisableVpcClassicLinkResponse } from './DisableVpcClassicLinkResponse';
1237
+ export { DisassociateMacSecKeyRequest } from './DisassociateMacSecKeyRequest';
1238
+ export { DisassociateMacSecKeyResponseBody } from './DisassociateMacSecKeyResponseBody';
1239
+ export { DisassociateMacSecKeyResponse } from './DisassociateMacSecKeyResponse';
1232
1240
  export { DissociateRouteTableFromGatewayRequest } from './DissociateRouteTableFromGatewayRequest';
1233
1241
  export { DissociateRouteTableFromGatewayResponseBody } from './DissociateRouteTableFromGatewayResponseBody';
1234
1242
  export { DissociateRouteTableFromGatewayResponse } from './DissociateRouteTableFromGatewayResponse';