@alicloud/vpc20160428 2.0.4 → 2.0.5
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/dist/client.d.ts +135 -0
- package/dist/client.js +273 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +338 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -15202,6 +15202,7 @@ export class DescribeNatGatewaysRequest extends $tea.Model {
|
|
|
15202
15202
|
resourceOwnerId?: number;
|
|
15203
15203
|
spec?: string;
|
|
15204
15204
|
status?: string;
|
|
15205
|
+
tag?: DescribeNatGatewaysRequestTag[];
|
|
15205
15206
|
vpcId?: string;
|
|
15206
15207
|
zoneId?: string;
|
|
15207
15208
|
static names(): { [key: string]: string } {
|
|
@@ -15222,6 +15223,7 @@ export class DescribeNatGatewaysRequest extends $tea.Model {
|
|
|
15222
15223
|
resourceOwnerId: 'ResourceOwnerId',
|
|
15223
15224
|
spec: 'Spec',
|
|
15224
15225
|
status: 'Status',
|
|
15226
|
+
tag: 'Tag',
|
|
15225
15227
|
vpcId: 'VpcId',
|
|
15226
15228
|
zoneId: 'ZoneId',
|
|
15227
15229
|
};
|
|
@@ -15245,6 +15247,7 @@ export class DescribeNatGatewaysRequest extends $tea.Model {
|
|
|
15245
15247
|
resourceOwnerId: 'number',
|
|
15246
15248
|
spec: 'string',
|
|
15247
15249
|
status: 'string',
|
|
15250
|
+
tag: { 'type': 'array', 'itemType': DescribeNatGatewaysRequestTag },
|
|
15248
15251
|
vpcId: 'string',
|
|
15249
15252
|
zoneId: 'string',
|
|
15250
15253
|
};
|
|
@@ -20105,6 +20108,87 @@ export class GetDhcpOptionsSetResponse extends $tea.Model {
|
|
|
20105
20108
|
}
|
|
20106
20109
|
}
|
|
20107
20110
|
|
|
20111
|
+
export class GetFlowLogServiceStatusRequest extends $tea.Model {
|
|
20112
|
+
clientToken?: string;
|
|
20113
|
+
ownerAccount?: string;
|
|
20114
|
+
ownerId?: number;
|
|
20115
|
+
regionId?: string;
|
|
20116
|
+
resourceOwnerAccount?: string;
|
|
20117
|
+
resourceOwnerId?: number;
|
|
20118
|
+
static names(): { [key: string]: string } {
|
|
20119
|
+
return {
|
|
20120
|
+
clientToken: 'ClientToken',
|
|
20121
|
+
ownerAccount: 'OwnerAccount',
|
|
20122
|
+
ownerId: 'OwnerId',
|
|
20123
|
+
regionId: 'RegionId',
|
|
20124
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
20125
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
20126
|
+
};
|
|
20127
|
+
}
|
|
20128
|
+
|
|
20129
|
+
static types(): { [key: string]: any } {
|
|
20130
|
+
return {
|
|
20131
|
+
clientToken: 'string',
|
|
20132
|
+
ownerAccount: 'string',
|
|
20133
|
+
ownerId: 'number',
|
|
20134
|
+
regionId: 'string',
|
|
20135
|
+
resourceOwnerAccount: 'string',
|
|
20136
|
+
resourceOwnerId: 'number',
|
|
20137
|
+
};
|
|
20138
|
+
}
|
|
20139
|
+
|
|
20140
|
+
constructor(map?: { [key: string]: any }) {
|
|
20141
|
+
super(map);
|
|
20142
|
+
}
|
|
20143
|
+
}
|
|
20144
|
+
|
|
20145
|
+
export class GetFlowLogServiceStatusResponseBody extends $tea.Model {
|
|
20146
|
+
enabled?: boolean;
|
|
20147
|
+
requestId?: string;
|
|
20148
|
+
static names(): { [key: string]: string } {
|
|
20149
|
+
return {
|
|
20150
|
+
enabled: 'Enabled',
|
|
20151
|
+
requestId: 'RequestId',
|
|
20152
|
+
};
|
|
20153
|
+
}
|
|
20154
|
+
|
|
20155
|
+
static types(): { [key: string]: any } {
|
|
20156
|
+
return {
|
|
20157
|
+
enabled: 'boolean',
|
|
20158
|
+
requestId: 'string',
|
|
20159
|
+
};
|
|
20160
|
+
}
|
|
20161
|
+
|
|
20162
|
+
constructor(map?: { [key: string]: any }) {
|
|
20163
|
+
super(map);
|
|
20164
|
+
}
|
|
20165
|
+
}
|
|
20166
|
+
|
|
20167
|
+
export class GetFlowLogServiceStatusResponse extends $tea.Model {
|
|
20168
|
+
headers: { [key: string]: string };
|
|
20169
|
+
statusCode: number;
|
|
20170
|
+
body: GetFlowLogServiceStatusResponseBody;
|
|
20171
|
+
static names(): { [key: string]: string } {
|
|
20172
|
+
return {
|
|
20173
|
+
headers: 'headers',
|
|
20174
|
+
statusCode: 'statusCode',
|
|
20175
|
+
body: 'body',
|
|
20176
|
+
};
|
|
20177
|
+
}
|
|
20178
|
+
|
|
20179
|
+
static types(): { [key: string]: any } {
|
|
20180
|
+
return {
|
|
20181
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
20182
|
+
statusCode: 'number',
|
|
20183
|
+
body: GetFlowLogServiceStatusResponseBody,
|
|
20184
|
+
};
|
|
20185
|
+
}
|
|
20186
|
+
|
|
20187
|
+
constructor(map?: { [key: string]: any }) {
|
|
20188
|
+
super(map);
|
|
20189
|
+
}
|
|
20190
|
+
}
|
|
20191
|
+
|
|
20108
20192
|
export class GetIpv4GatewayAttributeRequest extends $tea.Model {
|
|
20109
20193
|
ipv4GatewayId?: string;
|
|
20110
20194
|
ownerAccount?: string;
|
|
@@ -27614,6 +27698,84 @@ export class MoveResourceGroupResponse extends $tea.Model {
|
|
|
27614
27698
|
}
|
|
27615
27699
|
}
|
|
27616
27700
|
|
|
27701
|
+
export class OpenFlowLogServiceRequest extends $tea.Model {
|
|
27702
|
+
clientToken?: string;
|
|
27703
|
+
ownerAccount?: string;
|
|
27704
|
+
ownerId?: number;
|
|
27705
|
+
regionId?: string;
|
|
27706
|
+
resourceOwnerAccount?: string;
|
|
27707
|
+
resourceOwnerId?: number;
|
|
27708
|
+
static names(): { [key: string]: string } {
|
|
27709
|
+
return {
|
|
27710
|
+
clientToken: 'ClientToken',
|
|
27711
|
+
ownerAccount: 'OwnerAccount',
|
|
27712
|
+
ownerId: 'OwnerId',
|
|
27713
|
+
regionId: 'RegionId',
|
|
27714
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
27715
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
27716
|
+
};
|
|
27717
|
+
}
|
|
27718
|
+
|
|
27719
|
+
static types(): { [key: string]: any } {
|
|
27720
|
+
return {
|
|
27721
|
+
clientToken: 'string',
|
|
27722
|
+
ownerAccount: 'string',
|
|
27723
|
+
ownerId: 'number',
|
|
27724
|
+
regionId: 'string',
|
|
27725
|
+
resourceOwnerAccount: 'string',
|
|
27726
|
+
resourceOwnerId: 'number',
|
|
27727
|
+
};
|
|
27728
|
+
}
|
|
27729
|
+
|
|
27730
|
+
constructor(map?: { [key: string]: any }) {
|
|
27731
|
+
super(map);
|
|
27732
|
+
}
|
|
27733
|
+
}
|
|
27734
|
+
|
|
27735
|
+
export class OpenFlowLogServiceResponseBody extends $tea.Model {
|
|
27736
|
+
requestId?: string;
|
|
27737
|
+
static names(): { [key: string]: string } {
|
|
27738
|
+
return {
|
|
27739
|
+
requestId: 'RequestId',
|
|
27740
|
+
};
|
|
27741
|
+
}
|
|
27742
|
+
|
|
27743
|
+
static types(): { [key: string]: any } {
|
|
27744
|
+
return {
|
|
27745
|
+
requestId: 'string',
|
|
27746
|
+
};
|
|
27747
|
+
}
|
|
27748
|
+
|
|
27749
|
+
constructor(map?: { [key: string]: any }) {
|
|
27750
|
+
super(map);
|
|
27751
|
+
}
|
|
27752
|
+
}
|
|
27753
|
+
|
|
27754
|
+
export class OpenFlowLogServiceResponse extends $tea.Model {
|
|
27755
|
+
headers: { [key: string]: string };
|
|
27756
|
+
statusCode: number;
|
|
27757
|
+
body: OpenFlowLogServiceResponseBody;
|
|
27758
|
+
static names(): { [key: string]: string } {
|
|
27759
|
+
return {
|
|
27760
|
+
headers: 'headers',
|
|
27761
|
+
statusCode: 'statusCode',
|
|
27762
|
+
body: 'body',
|
|
27763
|
+
};
|
|
27764
|
+
}
|
|
27765
|
+
|
|
27766
|
+
static types(): { [key: string]: any } {
|
|
27767
|
+
return {
|
|
27768
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
27769
|
+
statusCode: 'number',
|
|
27770
|
+
body: OpenFlowLogServiceResponseBody,
|
|
27771
|
+
};
|
|
27772
|
+
}
|
|
27773
|
+
|
|
27774
|
+
constructor(map?: { [key: string]: any }) {
|
|
27775
|
+
super(map);
|
|
27776
|
+
}
|
|
27777
|
+
}
|
|
27778
|
+
|
|
27617
27779
|
export class OpenPhysicalConnectionServiceRequest extends $tea.Model {
|
|
27618
27780
|
ownerAccount?: string;
|
|
27619
27781
|
ownerId?: number;
|
|
@@ -33460,6 +33622,28 @@ export class DescribeIpv6GatewaysResponseBodyIpv6Gateways extends $tea.Model {
|
|
|
33460
33622
|
}
|
|
33461
33623
|
}
|
|
33462
33624
|
|
|
33625
|
+
export class DescribeNatGatewaysRequestTag extends $tea.Model {
|
|
33626
|
+
key?: string;
|
|
33627
|
+
value?: string;
|
|
33628
|
+
static names(): { [key: string]: string } {
|
|
33629
|
+
return {
|
|
33630
|
+
key: 'Key',
|
|
33631
|
+
value: 'Value',
|
|
33632
|
+
};
|
|
33633
|
+
}
|
|
33634
|
+
|
|
33635
|
+
static types(): { [key: string]: any } {
|
|
33636
|
+
return {
|
|
33637
|
+
key: 'string',
|
|
33638
|
+
value: 'string',
|
|
33639
|
+
};
|
|
33640
|
+
}
|
|
33641
|
+
|
|
33642
|
+
constructor(map?: { [key: string]: any }) {
|
|
33643
|
+
super(map);
|
|
33644
|
+
}
|
|
33645
|
+
}
|
|
33646
|
+
|
|
33463
33647
|
export class DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds extends $tea.Model {
|
|
33464
33648
|
forwardTableId?: string[];
|
|
33465
33649
|
static names(): { [key: string]: string } {
|
|
@@ -33607,6 +33791,47 @@ export class DescribeNatGatewaysResponseBodyNatGatewaysNatGatewaySnatTableIds ex
|
|
|
33607
33791
|
}
|
|
33608
33792
|
}
|
|
33609
33793
|
|
|
33794
|
+
export class DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayTagsTag extends $tea.Model {
|
|
33795
|
+
tagKey?: string;
|
|
33796
|
+
tagValue?: string;
|
|
33797
|
+
static names(): { [key: string]: string } {
|
|
33798
|
+
return {
|
|
33799
|
+
tagKey: 'TagKey',
|
|
33800
|
+
tagValue: 'TagValue',
|
|
33801
|
+
};
|
|
33802
|
+
}
|
|
33803
|
+
|
|
33804
|
+
static types(): { [key: string]: any } {
|
|
33805
|
+
return {
|
|
33806
|
+
tagKey: 'string',
|
|
33807
|
+
tagValue: 'string',
|
|
33808
|
+
};
|
|
33809
|
+
}
|
|
33810
|
+
|
|
33811
|
+
constructor(map?: { [key: string]: any }) {
|
|
33812
|
+
super(map);
|
|
33813
|
+
}
|
|
33814
|
+
}
|
|
33815
|
+
|
|
33816
|
+
export class DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayTags extends $tea.Model {
|
|
33817
|
+
tag?: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayTagsTag[];
|
|
33818
|
+
static names(): { [key: string]: string } {
|
|
33819
|
+
return {
|
|
33820
|
+
tag: 'Tag',
|
|
33821
|
+
};
|
|
33822
|
+
}
|
|
33823
|
+
|
|
33824
|
+
static types(): { [key: string]: any } {
|
|
33825
|
+
return {
|
|
33826
|
+
tag: { 'type': 'array', 'itemType': DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayTagsTag },
|
|
33827
|
+
};
|
|
33828
|
+
}
|
|
33829
|
+
|
|
33830
|
+
constructor(map?: { [key: string]: any }) {
|
|
33831
|
+
super(map);
|
|
33832
|
+
}
|
|
33833
|
+
}
|
|
33834
|
+
|
|
33610
33835
|
export class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway extends $tea.Model {
|
|
33611
33836
|
autoPay?: boolean;
|
|
33612
33837
|
businessStatus?: string;
|
|
@@ -33634,6 +33859,7 @@ export class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway extends $tea.M
|
|
|
33634
33859
|
snatTableIds?: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewaySnatTableIds;
|
|
33635
33860
|
spec?: string;
|
|
33636
33861
|
status?: string;
|
|
33862
|
+
tags?: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayTags;
|
|
33637
33863
|
vpcId?: string;
|
|
33638
33864
|
static names(): { [key: string]: string } {
|
|
33639
33865
|
return {
|
|
@@ -33663,6 +33889,7 @@ export class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway extends $tea.M
|
|
|
33663
33889
|
snatTableIds: 'SnatTableIds',
|
|
33664
33890
|
spec: 'Spec',
|
|
33665
33891
|
status: 'Status',
|
|
33892
|
+
tags: 'Tags',
|
|
33666
33893
|
vpcId: 'VpcId',
|
|
33667
33894
|
};
|
|
33668
33895
|
}
|
|
@@ -33695,6 +33922,7 @@ export class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway extends $tea.M
|
|
|
33695
33922
|
snatTableIds: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewaySnatTableIds,
|
|
33696
33923
|
spec: 'string',
|
|
33697
33924
|
status: 'string',
|
|
33925
|
+
tags: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayTags,
|
|
33698
33926
|
vpcId: 'string',
|
|
33699
33927
|
};
|
|
33700
33928
|
}
|
|
@@ -50105,6 +50333,10 @@ export default class Client extends OpenApi {
|
|
|
50105
50333
|
query["Status"] = request.status;
|
|
50106
50334
|
}
|
|
50107
50335
|
|
|
50336
|
+
if (!Util.isUnset(request.tag)) {
|
|
50337
|
+
query["Tag"] = request.tag;
|
|
50338
|
+
}
|
|
50339
|
+
|
|
50108
50340
|
if (!Util.isUnset(request.vpcId)) {
|
|
50109
50341
|
query["VpcId"] = request.vpcId;
|
|
50110
50342
|
}
|
|
@@ -52958,6 +53190,59 @@ export default class Client extends OpenApi {
|
|
|
52958
53190
|
return await this.getDhcpOptionsSetWithOptions(request, runtime);
|
|
52959
53191
|
}
|
|
52960
53192
|
|
|
53193
|
+
async getFlowLogServiceStatusWithOptions(request: GetFlowLogServiceStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetFlowLogServiceStatusResponse> {
|
|
53194
|
+
Util.validateModel(request);
|
|
53195
|
+
let query = { };
|
|
53196
|
+
if (!Util.isUnset(request.clientToken)) {
|
|
53197
|
+
query["ClientToken"] = request.clientToken;
|
|
53198
|
+
}
|
|
53199
|
+
|
|
53200
|
+
if (!Util.isUnset(request.ownerAccount)) {
|
|
53201
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
53202
|
+
}
|
|
53203
|
+
|
|
53204
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
53205
|
+
query["OwnerId"] = request.ownerId;
|
|
53206
|
+
}
|
|
53207
|
+
|
|
53208
|
+
if (!Util.isUnset(request.regionId)) {
|
|
53209
|
+
query["RegionId"] = request.regionId;
|
|
53210
|
+
}
|
|
53211
|
+
|
|
53212
|
+
if (!Util.isUnset(request.regionId)) {
|
|
53213
|
+
query["RegionId"] = request.regionId;
|
|
53214
|
+
}
|
|
53215
|
+
|
|
53216
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
53217
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
53218
|
+
}
|
|
53219
|
+
|
|
53220
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
53221
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
53222
|
+
}
|
|
53223
|
+
|
|
53224
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
53225
|
+
query: OpenApiUtil.query(query),
|
|
53226
|
+
});
|
|
53227
|
+
let params = new $OpenApi.Params({
|
|
53228
|
+
action: "GetFlowLogServiceStatus",
|
|
53229
|
+
version: "2016-04-28",
|
|
53230
|
+
protocol: "HTTPS",
|
|
53231
|
+
pathname: "/",
|
|
53232
|
+
method: "POST",
|
|
53233
|
+
authType: "AK",
|
|
53234
|
+
style: "RPC",
|
|
53235
|
+
reqBodyType: "formData",
|
|
53236
|
+
bodyType: "json",
|
|
53237
|
+
});
|
|
53238
|
+
return $tea.cast<GetFlowLogServiceStatusResponse>(await this.callApi(params, req, runtime), new GetFlowLogServiceStatusResponse({}));
|
|
53239
|
+
}
|
|
53240
|
+
|
|
53241
|
+
async getFlowLogServiceStatus(request: GetFlowLogServiceStatusRequest): Promise<GetFlowLogServiceStatusResponse> {
|
|
53242
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
53243
|
+
return await this.getFlowLogServiceStatusWithOptions(request, runtime);
|
|
53244
|
+
}
|
|
53245
|
+
|
|
52961
53246
|
async getIpv4GatewayAttributeWithOptions(request: GetIpv4GatewayAttributeRequest, runtime: $Util.RuntimeOptions): Promise<GetIpv4GatewayAttributeResponse> {
|
|
52962
53247
|
Util.validateModel(request);
|
|
52963
53248
|
let query = { };
|
|
@@ -58047,6 +58332,59 @@ export default class Client extends OpenApi {
|
|
|
58047
58332
|
return await this.moveResourceGroupWithOptions(request, runtime);
|
|
58048
58333
|
}
|
|
58049
58334
|
|
|
58335
|
+
async openFlowLogServiceWithOptions(request: OpenFlowLogServiceRequest, runtime: $Util.RuntimeOptions): Promise<OpenFlowLogServiceResponse> {
|
|
58336
|
+
Util.validateModel(request);
|
|
58337
|
+
let query = { };
|
|
58338
|
+
if (!Util.isUnset(request.clientToken)) {
|
|
58339
|
+
query["ClientToken"] = request.clientToken;
|
|
58340
|
+
}
|
|
58341
|
+
|
|
58342
|
+
if (!Util.isUnset(request.ownerAccount)) {
|
|
58343
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
58344
|
+
}
|
|
58345
|
+
|
|
58346
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
58347
|
+
query["OwnerId"] = request.ownerId;
|
|
58348
|
+
}
|
|
58349
|
+
|
|
58350
|
+
if (!Util.isUnset(request.regionId)) {
|
|
58351
|
+
query["RegionId"] = request.regionId;
|
|
58352
|
+
}
|
|
58353
|
+
|
|
58354
|
+
if (!Util.isUnset(request.regionId)) {
|
|
58355
|
+
query["RegionId"] = request.regionId;
|
|
58356
|
+
}
|
|
58357
|
+
|
|
58358
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
58359
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
58360
|
+
}
|
|
58361
|
+
|
|
58362
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
58363
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
58364
|
+
}
|
|
58365
|
+
|
|
58366
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
58367
|
+
query: OpenApiUtil.query(query),
|
|
58368
|
+
});
|
|
58369
|
+
let params = new $OpenApi.Params({
|
|
58370
|
+
action: "OpenFlowLogService",
|
|
58371
|
+
version: "2016-04-28",
|
|
58372
|
+
protocol: "HTTPS",
|
|
58373
|
+
pathname: "/",
|
|
58374
|
+
method: "POST",
|
|
58375
|
+
authType: "AK",
|
|
58376
|
+
style: "RPC",
|
|
58377
|
+
reqBodyType: "formData",
|
|
58378
|
+
bodyType: "json",
|
|
58379
|
+
});
|
|
58380
|
+
return $tea.cast<OpenFlowLogServiceResponse>(await this.callApi(params, req, runtime), new OpenFlowLogServiceResponse({}));
|
|
58381
|
+
}
|
|
58382
|
+
|
|
58383
|
+
async openFlowLogService(request: OpenFlowLogServiceRequest): Promise<OpenFlowLogServiceResponse> {
|
|
58384
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
58385
|
+
return await this.openFlowLogServiceWithOptions(request, runtime);
|
|
58386
|
+
}
|
|
58387
|
+
|
|
58050
58388
|
async openPhysicalConnectionServiceWithOptions(request: OpenPhysicalConnectionServiceRequest, runtime: $Util.RuntimeOptions): Promise<OpenPhysicalConnectionServiceResponse> {
|
|
58051
58389
|
Util.validateModel(request);
|
|
58052
58390
|
let query = { };
|