@alicloud/cloudfw20171207 2.3.0 → 2.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cloudfw20171207",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -12,11 +12,11 @@
12
12
  "author": "Alibaba Cloud SDK",
13
13
  "license": "Apache-2.0",
14
14
  "devDependencies": {
15
- "@types/node": "^12.12.26",
15
+ "@types/node": "^16.0.0",
16
16
  "nyc": "^15.0.0",
17
17
  "source-map-support": "^0.5.16",
18
- "ts-node": "^8.6.2",
19
- "typescript": "^3.7.5"
18
+ "ts-node": "^10.0.0",
19
+ "typescript": "^5"
20
20
  },
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
package/src/client.ts CHANGED
@@ -644,6 +644,102 @@ export class CreateNatFirewallControlPolicyResponse extends $tea.Model {
644
644
  }
645
645
  }
646
646
 
647
+ export class CreateSecurityProxyRequest extends $tea.Model {
648
+ firewallSwitch?: string;
649
+ lang?: string;
650
+ natGatewayId?: string;
651
+ natRouteEntryList?: CreateSecurityProxyRequestNatRouteEntryList[];
652
+ proxyName?: string;
653
+ regionNo?: string;
654
+ strictMode?: number;
655
+ vpcId?: string;
656
+ vswitchAuto?: string;
657
+ vswitchCidr?: string;
658
+ vswitchId?: string;
659
+ static names(): { [key: string]: string } {
660
+ return {
661
+ firewallSwitch: 'FirewallSwitch',
662
+ lang: 'Lang',
663
+ natGatewayId: 'NatGatewayId',
664
+ natRouteEntryList: 'NatRouteEntryList',
665
+ proxyName: 'ProxyName',
666
+ regionNo: 'RegionNo',
667
+ strictMode: 'StrictMode',
668
+ vpcId: 'VpcId',
669
+ vswitchAuto: 'VswitchAuto',
670
+ vswitchCidr: 'VswitchCidr',
671
+ vswitchId: 'VswitchId',
672
+ };
673
+ }
674
+
675
+ static types(): { [key: string]: any } {
676
+ return {
677
+ firewallSwitch: 'string',
678
+ lang: 'string',
679
+ natGatewayId: 'string',
680
+ natRouteEntryList: { 'type': 'array', 'itemType': CreateSecurityProxyRequestNatRouteEntryList },
681
+ proxyName: 'string',
682
+ regionNo: 'string',
683
+ strictMode: 'number',
684
+ vpcId: 'string',
685
+ vswitchAuto: 'string',
686
+ vswitchCidr: 'string',
687
+ vswitchId: 'string',
688
+ };
689
+ }
690
+
691
+ constructor(map?: { [key: string]: any }) {
692
+ super(map);
693
+ }
694
+ }
695
+
696
+ export class CreateSecurityProxyResponseBody extends $tea.Model {
697
+ proxyId?: string;
698
+ requestId?: string;
699
+ static names(): { [key: string]: string } {
700
+ return {
701
+ proxyId: 'ProxyId',
702
+ requestId: 'RequestId',
703
+ };
704
+ }
705
+
706
+ static types(): { [key: string]: any } {
707
+ return {
708
+ proxyId: 'string',
709
+ requestId: 'string',
710
+ };
711
+ }
712
+
713
+ constructor(map?: { [key: string]: any }) {
714
+ super(map);
715
+ }
716
+ }
717
+
718
+ export class CreateSecurityProxyResponse extends $tea.Model {
719
+ headers?: { [key: string]: string };
720
+ statusCode?: number;
721
+ body?: CreateSecurityProxyResponseBody;
722
+ static names(): { [key: string]: string } {
723
+ return {
724
+ headers: 'headers',
725
+ statusCode: 'statusCode',
726
+ body: 'body',
727
+ };
728
+ }
729
+
730
+ static types(): { [key: string]: any } {
731
+ return {
732
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
733
+ statusCode: 'number',
734
+ body: CreateSecurityProxyResponseBody,
735
+ };
736
+ }
737
+
738
+ constructor(map?: { [key: string]: any }) {
739
+ super(map);
740
+ }
741
+ }
742
+
647
743
  export class CreateTrFirewallV2Request extends $tea.Model {
648
744
  cenId?: string;
649
745
  firewallDescription?: string;
@@ -8484,6 +8580,34 @@ export class AddInstanceMembersRequestMembers extends $tea.Model {
8484
8580
  }
8485
8581
  }
8486
8582
 
8583
+ export class CreateSecurityProxyRequestNatRouteEntryList extends $tea.Model {
8584
+ destinationCidr?: string;
8585
+ nextHopId?: string;
8586
+ nextHopType?: string;
8587
+ routeTableId?: string;
8588
+ static names(): { [key: string]: string } {
8589
+ return {
8590
+ destinationCidr: 'DestinationCidr',
8591
+ nextHopId: 'NextHopId',
8592
+ nextHopType: 'NextHopType',
8593
+ routeTableId: 'RouteTableId',
8594
+ };
8595
+ }
8596
+
8597
+ static types(): { [key: string]: any } {
8598
+ return {
8599
+ destinationCidr: 'string',
8600
+ nextHopId: 'string',
8601
+ nextHopType: 'string',
8602
+ routeTableId: 'string',
8603
+ };
8604
+ }
8605
+
8606
+ constructor(map?: { [key: string]: any }) {
8607
+ super(map);
8608
+ }
8609
+ }
8610
+
8487
8611
  export class CreateTrFirewallV2RoutePolicyRequestDestCandidateList extends $tea.Model {
8488
8612
  candidateId?: string;
8489
8613
  candidateType?: string;
@@ -12143,6 +12267,75 @@ export default class Client extends OpenApi {
12143
12267
  return await this.createNatFirewallControlPolicyWithOptions(request, runtime);
12144
12268
  }
12145
12269
 
12270
+ async createSecurityProxyWithOptions(request: CreateSecurityProxyRequest, runtime: $Util.RuntimeOptions): Promise<CreateSecurityProxyResponse> {
12271
+ Util.validateModel(request);
12272
+ let query = { };
12273
+ if (!Util.isUnset(request.firewallSwitch)) {
12274
+ query["FirewallSwitch"] = request.firewallSwitch;
12275
+ }
12276
+
12277
+ if (!Util.isUnset(request.lang)) {
12278
+ query["Lang"] = request.lang;
12279
+ }
12280
+
12281
+ if (!Util.isUnset(request.natGatewayId)) {
12282
+ query["NatGatewayId"] = request.natGatewayId;
12283
+ }
12284
+
12285
+ if (!Util.isUnset(request.natRouteEntryList)) {
12286
+ query["NatRouteEntryList"] = request.natRouteEntryList;
12287
+ }
12288
+
12289
+ if (!Util.isUnset(request.proxyName)) {
12290
+ query["ProxyName"] = request.proxyName;
12291
+ }
12292
+
12293
+ if (!Util.isUnset(request.regionNo)) {
12294
+ query["RegionNo"] = request.regionNo;
12295
+ }
12296
+
12297
+ if (!Util.isUnset(request.strictMode)) {
12298
+ query["StrictMode"] = request.strictMode;
12299
+ }
12300
+
12301
+ if (!Util.isUnset(request.vpcId)) {
12302
+ query["VpcId"] = request.vpcId;
12303
+ }
12304
+
12305
+ if (!Util.isUnset(request.vswitchAuto)) {
12306
+ query["VswitchAuto"] = request.vswitchAuto;
12307
+ }
12308
+
12309
+ if (!Util.isUnset(request.vswitchCidr)) {
12310
+ query["VswitchCidr"] = request.vswitchCidr;
12311
+ }
12312
+
12313
+ if (!Util.isUnset(request.vswitchId)) {
12314
+ query["VswitchId"] = request.vswitchId;
12315
+ }
12316
+
12317
+ let req = new $OpenApi.OpenApiRequest({
12318
+ query: OpenApiUtil.query(query),
12319
+ });
12320
+ let params = new $OpenApi.Params({
12321
+ action: "CreateSecurityProxy",
12322
+ version: "2017-12-07",
12323
+ protocol: "HTTPS",
12324
+ pathname: "/",
12325
+ method: "POST",
12326
+ authType: "AK",
12327
+ style: "RPC",
12328
+ reqBodyType: "formData",
12329
+ bodyType: "json",
12330
+ });
12331
+ return $tea.cast<CreateSecurityProxyResponse>(await this.callApi(params, req, runtime), new CreateSecurityProxyResponse({}));
12332
+ }
12333
+
12334
+ async createSecurityProxy(request: CreateSecurityProxyRequest): Promise<CreateSecurityProxyResponse> {
12335
+ let runtime = new $Util.RuntimeOptions({ });
12336
+ return await this.createSecurityProxyWithOptions(request, runtime);
12337
+ }
12338
+
12146
12339
  async createTrFirewallV2WithOptions(request: CreateTrFirewallV2Request, runtime: $Util.RuntimeOptions): Promise<CreateTrFirewallV2Response> {
12147
12340
  Util.validateModel(request);
12148
12341
  let query = { };