@alicloud/csas20230120 1.1.0 → 1.1.2

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 CHANGED
@@ -126,24 +126,6 @@ export declare class CreatePrivateAccessApplicationRequest extends $tea.Model {
126
126
  [key: string]: any;
127
127
  });
128
128
  }
129
- export declare class CreatePrivateAccessApplicationShrinkRequest extends $tea.Model {
130
- addressesShrink?: string;
131
- description?: string;
132
- name?: string;
133
- portRangesShrink?: string;
134
- protocol?: string;
135
- status?: string;
136
- tagIdsShrink?: string;
137
- static names(): {
138
- [key: string]: string;
139
- };
140
- static types(): {
141
- [key: string]: any;
142
- };
143
- constructor(map?: {
144
- [key: string]: any;
145
- });
146
- }
147
129
  export declare class CreatePrivateAccessApplicationResponseBody extends $tea.Model {
148
130
  applicationId?: string;
149
131
  requestId?: string;
@@ -195,28 +177,6 @@ export declare class CreatePrivateAccessPolicyRequest extends $tea.Model {
195
177
  [key: string]: any;
196
178
  });
197
179
  }
198
- export declare class CreatePrivateAccessPolicyShrinkRequest extends $tea.Model {
199
- applicationIdsShrink?: string;
200
- applicationType?: string;
201
- customUserAttributesShrink?: string;
202
- description?: string;
203
- name?: string;
204
- policyAction?: string;
205
- priority?: number;
206
- status?: string;
207
- tagIdsShrink?: string;
208
- userGroupIdsShrink?: string;
209
- userGroupMode?: string;
210
- static names(): {
211
- [key: string]: string;
212
- };
213
- static types(): {
214
- [key: string]: any;
215
- };
216
- constructor(map?: {
217
- [key: string]: any;
218
- });
219
- }
220
180
  export declare class CreatePrivateAccessPolicyResponseBody extends $tea.Model {
221
181
  policyId?: string;
222
182
  requestId?: string;
@@ -1084,6 +1044,7 @@ export declare class ListPolicesForUserGroupResponse extends $tea.Model {
1084
1044
  export declare class ListPrivateAccessApplicationsRequest extends $tea.Model {
1085
1045
  address?: string;
1086
1046
  applicationIds?: string[];
1047
+ connectorId?: string;
1087
1048
  currentPage?: number;
1088
1049
  name?: string;
1089
1050
  pageSize?: number;
@@ -1549,25 +1510,6 @@ export declare class UpdatePrivateAccessApplicationRequest extends $tea.Model {
1549
1510
  [key: string]: any;
1550
1511
  });
1551
1512
  }
1552
- export declare class UpdatePrivateAccessApplicationShrinkRequest extends $tea.Model {
1553
- addressesShrink?: string;
1554
- applicationId?: string;
1555
- description?: string;
1556
- modifyType?: string;
1557
- portRangesShrink?: string;
1558
- protocol?: string;
1559
- status?: string;
1560
- tagIdsShrink?: string;
1561
- static names(): {
1562
- [key: string]: string;
1563
- };
1564
- static types(): {
1565
- [key: string]: any;
1566
- };
1567
- constructor(map?: {
1568
- [key: string]: any;
1569
- });
1570
- }
1571
1513
  export declare class UpdatePrivateAccessApplicationResponseBody extends $tea.Model {
1572
1514
  requestId?: string;
1573
1515
  static names(): {
@@ -1619,29 +1561,6 @@ export declare class UpdatePrivateAccessPolicyRequest extends $tea.Model {
1619
1561
  [key: string]: any;
1620
1562
  });
1621
1563
  }
1622
- export declare class UpdatePrivateAccessPolicyShrinkRequest extends $tea.Model {
1623
- applicationIdsShrink?: string;
1624
- applicationType?: string;
1625
- customUserAttributesShrink?: string;
1626
- description?: string;
1627
- modifyType?: string;
1628
- policyAction?: string;
1629
- policyId?: string;
1630
- priority?: number;
1631
- status?: string;
1632
- tagIdsShrink?: string;
1633
- userGroupIdsShrink?: string;
1634
- userGroupMode?: string;
1635
- static names(): {
1636
- [key: string]: string;
1637
- };
1638
- static types(): {
1639
- [key: string]: any;
1640
- };
1641
- constructor(map?: {
1642
- [key: string]: any;
1643
- });
1644
- }
1645
1564
  export declare class UpdatePrivateAccessPolicyResponseBody extends $tea.Model {
1646
1565
  requestId?: string;
1647
1566
  static names(): {
@@ -1795,6 +1714,7 @@ export declare class GetPrivateAccessApplicationResponseBodyApplicationPortRange
1795
1714
  export declare class GetPrivateAccessApplicationResponseBodyApplication extends $tea.Model {
1796
1715
  addresses?: string[];
1797
1716
  applicationId?: string;
1717
+ connectorIds?: string[];
1798
1718
  createTime?: string;
1799
1719
  description?: string;
1800
1720
  name?: string;
@@ -1986,6 +1906,21 @@ export declare class ListConnectorsResponseBodyConnectorsApplications extends $t
1986
1906
  [key: string]: any;
1987
1907
  });
1988
1908
  }
1909
+ export declare class ListConnectorsResponseBodyConnectorsConnectorClients extends $tea.Model {
1910
+ connectionStatus?: string;
1911
+ devTag?: string;
1912
+ hostname?: string;
1913
+ publicIp?: string;
1914
+ static names(): {
1915
+ [key: string]: string;
1916
+ };
1917
+ static types(): {
1918
+ [key: string]: any;
1919
+ };
1920
+ constructor(map?: {
1921
+ [key: string]: any;
1922
+ });
1923
+ }
1989
1924
  export declare class ListConnectorsResponseBodyConnectorsUpgradeTime extends $tea.Model {
1990
1925
  end?: string;
1991
1926
  start?: string;
@@ -2001,6 +1936,7 @@ export declare class ListConnectorsResponseBodyConnectorsUpgradeTime extends $te
2001
1936
  }
2002
1937
  export declare class ListConnectorsResponseBodyConnectors extends $tea.Model {
2003
1938
  applications?: ListConnectorsResponseBodyConnectorsApplications[];
1939
+ connectorClients?: ListConnectorsResponseBodyConnectorsConnectorClients[];
2004
1940
  connectorId?: string;
2005
1941
  createTime?: string;
2006
1942
  name?: string;
@@ -2182,6 +2118,7 @@ export declare class ListPrivateAccessApplicationsResponseBodyApplicationsPortRa
2182
2118
  export declare class ListPrivateAccessApplicationsResponseBodyApplications extends $tea.Model {
2183
2119
  addresses?: string[];
2184
2120
  applicationId?: string;
2121
+ connectorIds?: string[];
2185
2122
  createTime?: string;
2186
2123
  description?: string;
2187
2124
  name?: string;
@@ -2516,9 +2453,9 @@ export default class Client extends OpenApi {
2516
2453
  attachApplication2Connector(request: AttachApplication2ConnectorRequest): Promise<AttachApplication2ConnectorResponse>;
2517
2454
  createDynamicRouteWithOptions(request: CreateDynamicRouteRequest, runtime: $Util.RuntimeOptions): Promise<CreateDynamicRouteResponse>;
2518
2455
  createDynamicRoute(request: CreateDynamicRouteRequest): Promise<CreateDynamicRouteResponse>;
2519
- createPrivateAccessApplicationWithOptions(tmpReq: CreatePrivateAccessApplicationRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessApplicationResponse>;
2456
+ createPrivateAccessApplicationWithOptions(request: CreatePrivateAccessApplicationRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessApplicationResponse>;
2520
2457
  createPrivateAccessApplication(request: CreatePrivateAccessApplicationRequest): Promise<CreatePrivateAccessApplicationResponse>;
2521
- createPrivateAccessPolicyWithOptions(tmpReq: CreatePrivateAccessPolicyRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessPolicyResponse>;
2458
+ createPrivateAccessPolicyWithOptions(request: CreatePrivateAccessPolicyRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessPolicyResponse>;
2522
2459
  createPrivateAccessPolicy(request: CreatePrivateAccessPolicyRequest): Promise<CreatePrivateAccessPolicyResponse>;
2523
2460
  createPrivateAccessTagWithOptions(request: CreatePrivateAccessTagRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessTagResponse>;
2524
2461
  createPrivateAccessTag(request: CreatePrivateAccessTagRequest): Promise<CreatePrivateAccessTagResponse>;
@@ -2580,9 +2517,9 @@ export default class Client extends OpenApi {
2580
2517
  listUserGroupsForPrivateAccessPolicy(request: ListUserGroupsForPrivateAccessPolicyRequest): Promise<ListUserGroupsForPrivateAccessPolicyResponse>;
2581
2518
  updateDynamicRouteWithOptions(request: UpdateDynamicRouteRequest, runtime: $Util.RuntimeOptions): Promise<UpdateDynamicRouteResponse>;
2582
2519
  updateDynamicRoute(request: UpdateDynamicRouteRequest): Promise<UpdateDynamicRouteResponse>;
2583
- updatePrivateAccessApplicationWithOptions(tmpReq: UpdatePrivateAccessApplicationRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePrivateAccessApplicationResponse>;
2520
+ updatePrivateAccessApplicationWithOptions(request: UpdatePrivateAccessApplicationRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePrivateAccessApplicationResponse>;
2584
2521
  updatePrivateAccessApplication(request: UpdatePrivateAccessApplicationRequest): Promise<UpdatePrivateAccessApplicationResponse>;
2585
- updatePrivateAccessPolicyWithOptions(tmpReq: UpdatePrivateAccessPolicyRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePrivateAccessPolicyResponse>;
2522
+ updatePrivateAccessPolicyWithOptions(request: UpdatePrivateAccessPolicyRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePrivateAccessPolicyResponse>;
2586
2523
  updatePrivateAccessPolicy(request: UpdatePrivateAccessPolicyRequest): Promise<UpdatePrivateAccessPolicyResponse>;
2587
2524
  updateUserGroupWithOptions(request: UpdateUserGroupRequest, runtime: $Util.RuntimeOptions): Promise<UpdateUserGroupResponse>;
2588
2525
  updateUserGroup(request: UpdateUserGroupRequest): Promise<UpdateUserGroupResponse>;
package/dist/client.js CHANGED
@@ -191,34 +191,6 @@ class CreatePrivateAccessApplicationRequest extends $tea.Model {
191
191
  }
192
192
  }
193
193
  exports.CreatePrivateAccessApplicationRequest = CreatePrivateAccessApplicationRequest;
194
- class CreatePrivateAccessApplicationShrinkRequest extends $tea.Model {
195
- constructor(map) {
196
- super(map);
197
- }
198
- static names() {
199
- return {
200
- addressesShrink: 'Addresses',
201
- description: 'Description',
202
- name: 'Name',
203
- portRangesShrink: 'PortRanges',
204
- protocol: 'Protocol',
205
- status: 'Status',
206
- tagIdsShrink: 'TagIds',
207
- };
208
- }
209
- static types() {
210
- return {
211
- addressesShrink: 'string',
212
- description: 'string',
213
- name: 'string',
214
- portRangesShrink: 'string',
215
- protocol: 'string',
216
- status: 'string',
217
- tagIdsShrink: 'string',
218
- };
219
- }
220
- }
221
- exports.CreatePrivateAccessApplicationShrinkRequest = CreatePrivateAccessApplicationShrinkRequest;
222
194
  class CreatePrivateAccessApplicationResponseBody extends $tea.Model {
223
195
  constructor(map) {
224
196
  super(map);
@@ -293,42 +265,6 @@ class CreatePrivateAccessPolicyRequest extends $tea.Model {
293
265
  }
294
266
  }
295
267
  exports.CreatePrivateAccessPolicyRequest = CreatePrivateAccessPolicyRequest;
296
- class CreatePrivateAccessPolicyShrinkRequest extends $tea.Model {
297
- constructor(map) {
298
- super(map);
299
- }
300
- static names() {
301
- return {
302
- applicationIdsShrink: 'ApplicationIds',
303
- applicationType: 'ApplicationType',
304
- customUserAttributesShrink: 'CustomUserAttributes',
305
- description: 'Description',
306
- name: 'Name',
307
- policyAction: 'PolicyAction',
308
- priority: 'Priority',
309
- status: 'Status',
310
- tagIdsShrink: 'TagIds',
311
- userGroupIdsShrink: 'UserGroupIds',
312
- userGroupMode: 'UserGroupMode',
313
- };
314
- }
315
- static types() {
316
- return {
317
- applicationIdsShrink: 'string',
318
- applicationType: 'string',
319
- customUserAttributesShrink: 'string',
320
- description: 'string',
321
- name: 'string',
322
- policyAction: 'string',
323
- priority: 'number',
324
- status: 'string',
325
- tagIdsShrink: 'string',
326
- userGroupIdsShrink: 'string',
327
- userGroupMode: 'string',
328
- };
329
- }
330
- }
331
- exports.CreatePrivateAccessPolicyShrinkRequest = CreatePrivateAccessPolicyShrinkRequest;
332
268
  class CreatePrivateAccessPolicyResponseBody extends $tea.Model {
333
269
  constructor(map) {
334
270
  super(map);
@@ -1485,6 +1421,7 @@ class ListPrivateAccessApplicationsRequest extends $tea.Model {
1485
1421
  return {
1486
1422
  address: 'Address',
1487
1423
  applicationIds: 'ApplicationIds',
1424
+ connectorId: 'ConnectorId',
1488
1425
  currentPage: 'CurrentPage',
1489
1426
  name: 'Name',
1490
1427
  pageSize: 'PageSize',
@@ -1497,6 +1434,7 @@ class ListPrivateAccessApplicationsRequest extends $tea.Model {
1497
1434
  return {
1498
1435
  address: 'string',
1499
1436
  applicationIds: { 'type': 'array', 'itemType': 'string' },
1437
+ connectorId: 'string',
1500
1438
  currentPage: 'number',
1501
1439
  name: 'string',
1502
1440
  pageSize: 'number',
@@ -2125,36 +2063,6 @@ class UpdatePrivateAccessApplicationRequest extends $tea.Model {
2125
2063
  }
2126
2064
  }
2127
2065
  exports.UpdatePrivateAccessApplicationRequest = UpdatePrivateAccessApplicationRequest;
2128
- class UpdatePrivateAccessApplicationShrinkRequest extends $tea.Model {
2129
- constructor(map) {
2130
- super(map);
2131
- }
2132
- static names() {
2133
- return {
2134
- addressesShrink: 'Addresses',
2135
- applicationId: 'ApplicationId',
2136
- description: 'Description',
2137
- modifyType: 'ModifyType',
2138
- portRangesShrink: 'PortRanges',
2139
- protocol: 'Protocol',
2140
- status: 'Status',
2141
- tagIdsShrink: 'TagIds',
2142
- };
2143
- }
2144
- static types() {
2145
- return {
2146
- addressesShrink: 'string',
2147
- applicationId: 'string',
2148
- description: 'string',
2149
- modifyType: 'string',
2150
- portRangesShrink: 'string',
2151
- protocol: 'string',
2152
- status: 'string',
2153
- tagIdsShrink: 'string',
2154
- };
2155
- }
2156
- }
2157
- exports.UpdatePrivateAccessApplicationShrinkRequest = UpdatePrivateAccessApplicationShrinkRequest;
2158
2066
  class UpdatePrivateAccessApplicationResponseBody extends $tea.Model {
2159
2067
  constructor(map) {
2160
2068
  super(map);
@@ -2229,44 +2137,6 @@ class UpdatePrivateAccessPolicyRequest extends $tea.Model {
2229
2137
  }
2230
2138
  }
2231
2139
  exports.UpdatePrivateAccessPolicyRequest = UpdatePrivateAccessPolicyRequest;
2232
- class UpdatePrivateAccessPolicyShrinkRequest extends $tea.Model {
2233
- constructor(map) {
2234
- super(map);
2235
- }
2236
- static names() {
2237
- return {
2238
- applicationIdsShrink: 'ApplicationIds',
2239
- applicationType: 'ApplicationType',
2240
- customUserAttributesShrink: 'CustomUserAttributes',
2241
- description: 'Description',
2242
- modifyType: 'ModifyType',
2243
- policyAction: 'PolicyAction',
2244
- policyId: 'PolicyId',
2245
- priority: 'Priority',
2246
- status: 'Status',
2247
- tagIdsShrink: 'TagIds',
2248
- userGroupIdsShrink: 'UserGroupIds',
2249
- userGroupMode: 'UserGroupMode',
2250
- };
2251
- }
2252
- static types() {
2253
- return {
2254
- applicationIdsShrink: 'string',
2255
- applicationType: 'string',
2256
- customUserAttributesShrink: 'string',
2257
- description: 'string',
2258
- modifyType: 'string',
2259
- policyAction: 'string',
2260
- policyId: 'string',
2261
- priority: 'number',
2262
- status: 'string',
2263
- tagIdsShrink: 'string',
2264
- userGroupIdsShrink: 'string',
2265
- userGroupMode: 'string',
2266
- };
2267
- }
2268
- }
2269
- exports.UpdatePrivateAccessPolicyShrinkRequest = UpdatePrivateAccessPolicyShrinkRequest;
2270
2140
  class UpdatePrivateAccessPolicyResponseBody extends $tea.Model {
2271
2141
  constructor(map) {
2272
2142
  super(map);
@@ -2487,6 +2357,7 @@ class GetPrivateAccessApplicationResponseBodyApplication extends $tea.Model {
2487
2357
  return {
2488
2358
  addresses: 'Addresses',
2489
2359
  applicationId: 'ApplicationId',
2360
+ connectorIds: 'ConnectorIds',
2490
2361
  createTime: 'CreateTime',
2491
2362
  description: 'Description',
2492
2363
  name: 'Name',
@@ -2501,6 +2372,7 @@ class GetPrivateAccessApplicationResponseBodyApplication extends $tea.Model {
2501
2372
  return {
2502
2373
  addresses: { 'type': 'array', 'itemType': 'string' },
2503
2374
  applicationId: 'string',
2375
+ connectorIds: { 'type': 'array', 'itemType': 'string' },
2504
2376
  createTime: 'string',
2505
2377
  description: 'string',
2506
2378
  name: 'string',
@@ -2771,6 +2643,28 @@ class ListConnectorsResponseBodyConnectorsApplications extends $tea.Model {
2771
2643
  }
2772
2644
  }
2773
2645
  exports.ListConnectorsResponseBodyConnectorsApplications = ListConnectorsResponseBodyConnectorsApplications;
2646
+ class ListConnectorsResponseBodyConnectorsConnectorClients extends $tea.Model {
2647
+ constructor(map) {
2648
+ super(map);
2649
+ }
2650
+ static names() {
2651
+ return {
2652
+ connectionStatus: 'ConnectionStatus',
2653
+ devTag: 'DevTag',
2654
+ hostname: 'Hostname',
2655
+ publicIp: 'PublicIp',
2656
+ };
2657
+ }
2658
+ static types() {
2659
+ return {
2660
+ connectionStatus: 'string',
2661
+ devTag: 'string',
2662
+ hostname: 'string',
2663
+ publicIp: 'string',
2664
+ };
2665
+ }
2666
+ }
2667
+ exports.ListConnectorsResponseBodyConnectorsConnectorClients = ListConnectorsResponseBodyConnectorsConnectorClients;
2774
2668
  class ListConnectorsResponseBodyConnectorsUpgradeTime extends $tea.Model {
2775
2669
  constructor(map) {
2776
2670
  super(map);
@@ -2796,6 +2690,7 @@ class ListConnectorsResponseBodyConnectors extends $tea.Model {
2796
2690
  static names() {
2797
2691
  return {
2798
2692
  applications: 'Applications',
2693
+ connectorClients: 'ConnectorClients',
2799
2694
  connectorId: 'ConnectorId',
2800
2695
  createTime: 'CreateTime',
2801
2696
  name: 'Name',
@@ -2808,6 +2703,7 @@ class ListConnectorsResponseBodyConnectors extends $tea.Model {
2808
2703
  static types() {
2809
2704
  return {
2810
2705
  applications: { 'type': 'array', 'itemType': ListConnectorsResponseBodyConnectorsApplications },
2706
+ connectorClients: { 'type': 'array', 'itemType': ListConnectorsResponseBodyConnectorsConnectorClients },
2811
2707
  connectorId: 'string',
2812
2708
  createTime: 'string',
2813
2709
  name: 'string',
@@ -3069,6 +2965,7 @@ class ListPrivateAccessApplicationsResponseBodyApplications extends $tea.Model {
3069
2965
  return {
3070
2966
  addresses: 'Addresses',
3071
2967
  applicationId: 'ApplicationId',
2968
+ connectorIds: 'ConnectorIds',
3072
2969
  createTime: 'CreateTime',
3073
2970
  description: 'Description',
3074
2971
  name: 'Name',
@@ -3083,6 +2980,7 @@ class ListPrivateAccessApplicationsResponseBodyApplications extends $tea.Model {
3083
2980
  return {
3084
2981
  addresses: { 'type': 'array', 'itemType': 'string' },
3085
2982
  applicationId: 'string',
2983
+ connectorIds: { 'type': 'array', 'itemType': 'string' },
3086
2984
  createTime: 'string',
3087
2985
  description: 'string',
3088
2986
  name: 'string',
@@ -3654,22 +3552,12 @@ class Client extends openapi_client_1.default {
3654
3552
  let runtime = new $Util.RuntimeOptions({});
3655
3553
  return await this.createDynamicRouteWithOptions(request, runtime);
3656
3554
  }
3657
- async createPrivateAccessApplicationWithOptions(tmpReq, runtime) {
3658
- tea_util_1.default.validateModel(tmpReq);
3659
- let request = new CreatePrivateAccessApplicationShrinkRequest({});
3660
- openapi_util_1.default.convert(tmpReq, request);
3661
- if (!tea_util_1.default.isUnset(tmpReq.addresses)) {
3662
- request.addressesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.addresses, "Addresses", "json");
3663
- }
3664
- if (!tea_util_1.default.isUnset(tmpReq.portRanges)) {
3665
- request.portRangesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.portRanges, "PortRanges", "json");
3666
- }
3667
- if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
3668
- request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
3669
- }
3555
+ async createPrivateAccessApplicationWithOptions(request, runtime) {
3556
+ tea_util_1.default.validateModel(request);
3670
3557
  let body = {};
3671
- if (!tea_util_1.default.isUnset(request.addressesShrink)) {
3672
- body["Addresses"] = request.addressesShrink;
3558
+ let bodyFlat = {};
3559
+ if (!tea_util_1.default.isUnset(request.addresses)) {
3560
+ bodyFlat["Addresses"] = request.addresses;
3673
3561
  }
3674
3562
  if (!tea_util_1.default.isUnset(request.description)) {
3675
3563
  body["Description"] = request.description;
@@ -3677,8 +3565,8 @@ class Client extends openapi_client_1.default {
3677
3565
  if (!tea_util_1.default.isUnset(request.name)) {
3678
3566
  body["Name"] = request.name;
3679
3567
  }
3680
- if (!tea_util_1.default.isUnset(request.portRangesShrink)) {
3681
- body["PortRanges"] = request.portRangesShrink;
3568
+ if (!tea_util_1.default.isUnset(request.portRanges)) {
3569
+ bodyFlat["PortRanges"] = request.portRanges;
3682
3570
  }
3683
3571
  if (!tea_util_1.default.isUnset(request.protocol)) {
3684
3572
  body["Protocol"] = request.protocol;
@@ -3686,9 +3574,10 @@ class Client extends openapi_client_1.default {
3686
3574
  if (!tea_util_1.default.isUnset(request.status)) {
3687
3575
  body["Status"] = request.status;
3688
3576
  }
3689
- if (!tea_util_1.default.isUnset(request.tagIdsShrink)) {
3690
- body["TagIds"] = request.tagIdsShrink;
3577
+ if (!tea_util_1.default.isUnset(request.tagIds)) {
3578
+ bodyFlat["TagIds"] = request.tagIds;
3691
3579
  }
3580
+ body = Object.assign(Object.assign({}, body), openapi_util_1.default.query(bodyFlat));
3692
3581
  let req = new $OpenApi.OpenApiRequest({
3693
3582
  body: openapi_util_1.default.parseToMap(body),
3694
3583
  });
@@ -3709,31 +3598,18 @@ class Client extends openapi_client_1.default {
3709
3598
  let runtime = new $Util.RuntimeOptions({});
3710
3599
  return await this.createPrivateAccessApplicationWithOptions(request, runtime);
3711
3600
  }
3712
- async createPrivateAccessPolicyWithOptions(tmpReq, runtime) {
3713
- tea_util_1.default.validateModel(tmpReq);
3714
- let request = new CreatePrivateAccessPolicyShrinkRequest({});
3715
- openapi_util_1.default.convert(tmpReq, request);
3716
- if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
3717
- request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
3718
- }
3719
- if (!tea_util_1.default.isUnset(tmpReq.customUserAttributes)) {
3720
- request.customUserAttributesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.customUserAttributes, "CustomUserAttributes", "json");
3721
- }
3722
- if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
3723
- request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
3724
- }
3725
- if (!tea_util_1.default.isUnset(tmpReq.userGroupIds)) {
3726
- request.userGroupIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
3727
- }
3601
+ async createPrivateAccessPolicyWithOptions(request, runtime) {
3602
+ tea_util_1.default.validateModel(request);
3728
3603
  let body = {};
3729
- if (!tea_util_1.default.isUnset(request.applicationIdsShrink)) {
3730
- body["ApplicationIds"] = request.applicationIdsShrink;
3604
+ let bodyFlat = {};
3605
+ if (!tea_util_1.default.isUnset(request.applicationIds)) {
3606
+ bodyFlat["ApplicationIds"] = request.applicationIds;
3731
3607
  }
3732
3608
  if (!tea_util_1.default.isUnset(request.applicationType)) {
3733
3609
  body["ApplicationType"] = request.applicationType;
3734
3610
  }
3735
- if (!tea_util_1.default.isUnset(request.customUserAttributesShrink)) {
3736
- body["CustomUserAttributes"] = request.customUserAttributesShrink;
3611
+ if (!tea_util_1.default.isUnset(request.customUserAttributes)) {
3612
+ bodyFlat["CustomUserAttributes"] = request.customUserAttributes;
3737
3613
  }
3738
3614
  if (!tea_util_1.default.isUnset(request.description)) {
3739
3615
  body["Description"] = request.description;
@@ -3750,15 +3626,16 @@ class Client extends openapi_client_1.default {
3750
3626
  if (!tea_util_1.default.isUnset(request.status)) {
3751
3627
  body["Status"] = request.status;
3752
3628
  }
3753
- if (!tea_util_1.default.isUnset(request.tagIdsShrink)) {
3754
- body["TagIds"] = request.tagIdsShrink;
3629
+ if (!tea_util_1.default.isUnset(request.tagIds)) {
3630
+ bodyFlat["TagIds"] = request.tagIds;
3755
3631
  }
3756
- if (!tea_util_1.default.isUnset(request.userGroupIdsShrink)) {
3757
- body["UserGroupIds"] = request.userGroupIdsShrink;
3632
+ if (!tea_util_1.default.isUnset(request.userGroupIds)) {
3633
+ bodyFlat["UserGroupIds"] = request.userGroupIds;
3758
3634
  }
3759
3635
  if (!tea_util_1.default.isUnset(request.userGroupMode)) {
3760
3636
  body["UserGroupMode"] = request.userGroupMode;
3761
3637
  }
3638
+ body = Object.assign(Object.assign({}, body), openapi_util_1.default.query(bodyFlat));
3762
3639
  let req = new $OpenApi.OpenApiRequest({
3763
3640
  body: openapi_util_1.default.parseToMap(body),
3764
3641
  });
@@ -4546,22 +4423,12 @@ class Client extends openapi_client_1.default {
4546
4423
  let runtime = new $Util.RuntimeOptions({});
4547
4424
  return await this.updateDynamicRouteWithOptions(request, runtime);
4548
4425
  }
4549
- async updatePrivateAccessApplicationWithOptions(tmpReq, runtime) {
4550
- tea_util_1.default.validateModel(tmpReq);
4551
- let request = new UpdatePrivateAccessApplicationShrinkRequest({});
4552
- openapi_util_1.default.convert(tmpReq, request);
4553
- if (!tea_util_1.default.isUnset(tmpReq.addresses)) {
4554
- request.addressesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.addresses, "Addresses", "json");
4555
- }
4556
- if (!tea_util_1.default.isUnset(tmpReq.portRanges)) {
4557
- request.portRangesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.portRanges, "PortRanges", "json");
4558
- }
4559
- if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
4560
- request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
4561
- }
4426
+ async updatePrivateAccessApplicationWithOptions(request, runtime) {
4427
+ tea_util_1.default.validateModel(request);
4562
4428
  let body = {};
4563
- if (!tea_util_1.default.isUnset(request.addressesShrink)) {
4564
- body["Addresses"] = request.addressesShrink;
4429
+ let bodyFlat = {};
4430
+ if (!tea_util_1.default.isUnset(request.addresses)) {
4431
+ bodyFlat["Addresses"] = request.addresses;
4565
4432
  }
4566
4433
  if (!tea_util_1.default.isUnset(request.applicationId)) {
4567
4434
  body["ApplicationId"] = request.applicationId;
@@ -4572,8 +4439,8 @@ class Client extends openapi_client_1.default {
4572
4439
  if (!tea_util_1.default.isUnset(request.modifyType)) {
4573
4440
  body["ModifyType"] = request.modifyType;
4574
4441
  }
4575
- if (!tea_util_1.default.isUnset(request.portRangesShrink)) {
4576
- body["PortRanges"] = request.portRangesShrink;
4442
+ if (!tea_util_1.default.isUnset(request.portRanges)) {
4443
+ bodyFlat["PortRanges"] = request.portRanges;
4577
4444
  }
4578
4445
  if (!tea_util_1.default.isUnset(request.protocol)) {
4579
4446
  body["Protocol"] = request.protocol;
@@ -4581,9 +4448,10 @@ class Client extends openapi_client_1.default {
4581
4448
  if (!tea_util_1.default.isUnset(request.status)) {
4582
4449
  body["Status"] = request.status;
4583
4450
  }
4584
- if (!tea_util_1.default.isUnset(request.tagIdsShrink)) {
4585
- body["TagIds"] = request.tagIdsShrink;
4451
+ if (!tea_util_1.default.isUnset(request.tagIds)) {
4452
+ bodyFlat["TagIds"] = request.tagIds;
4586
4453
  }
4454
+ body = Object.assign(Object.assign({}, body), openapi_util_1.default.query(bodyFlat));
4587
4455
  let req = new $OpenApi.OpenApiRequest({
4588
4456
  body: openapi_util_1.default.parseToMap(body),
4589
4457
  });
@@ -4604,31 +4472,18 @@ class Client extends openapi_client_1.default {
4604
4472
  let runtime = new $Util.RuntimeOptions({});
4605
4473
  return await this.updatePrivateAccessApplicationWithOptions(request, runtime);
4606
4474
  }
4607
- async updatePrivateAccessPolicyWithOptions(tmpReq, runtime) {
4608
- tea_util_1.default.validateModel(tmpReq);
4609
- let request = new UpdatePrivateAccessPolicyShrinkRequest({});
4610
- openapi_util_1.default.convert(tmpReq, request);
4611
- if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
4612
- request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
4613
- }
4614
- if (!tea_util_1.default.isUnset(tmpReq.customUserAttributes)) {
4615
- request.customUserAttributesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.customUserAttributes, "CustomUserAttributes", "json");
4616
- }
4617
- if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
4618
- request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
4619
- }
4620
- if (!tea_util_1.default.isUnset(tmpReq.userGroupIds)) {
4621
- request.userGroupIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
4622
- }
4475
+ async updatePrivateAccessPolicyWithOptions(request, runtime) {
4476
+ tea_util_1.default.validateModel(request);
4623
4477
  let body = {};
4624
- if (!tea_util_1.default.isUnset(request.applicationIdsShrink)) {
4625
- body["ApplicationIds"] = request.applicationIdsShrink;
4478
+ let bodyFlat = {};
4479
+ if (!tea_util_1.default.isUnset(request.applicationIds)) {
4480
+ bodyFlat["ApplicationIds"] = request.applicationIds;
4626
4481
  }
4627
4482
  if (!tea_util_1.default.isUnset(request.applicationType)) {
4628
4483
  body["ApplicationType"] = request.applicationType;
4629
4484
  }
4630
- if (!tea_util_1.default.isUnset(request.customUserAttributesShrink)) {
4631
- body["CustomUserAttributes"] = request.customUserAttributesShrink;
4485
+ if (!tea_util_1.default.isUnset(request.customUserAttributes)) {
4486
+ bodyFlat["CustomUserAttributes"] = request.customUserAttributes;
4632
4487
  }
4633
4488
  if (!tea_util_1.default.isUnset(request.description)) {
4634
4489
  body["Description"] = request.description;
@@ -4648,15 +4503,16 @@ class Client extends openapi_client_1.default {
4648
4503
  if (!tea_util_1.default.isUnset(request.status)) {
4649
4504
  body["Status"] = request.status;
4650
4505
  }
4651
- if (!tea_util_1.default.isUnset(request.tagIdsShrink)) {
4652
- body["TagIds"] = request.tagIdsShrink;
4506
+ if (!tea_util_1.default.isUnset(request.tagIds)) {
4507
+ bodyFlat["TagIds"] = request.tagIds;
4653
4508
  }
4654
- if (!tea_util_1.default.isUnset(request.userGroupIdsShrink)) {
4655
- body["UserGroupIds"] = request.userGroupIdsShrink;
4509
+ if (!tea_util_1.default.isUnset(request.userGroupIds)) {
4510
+ bodyFlat["UserGroupIds"] = request.userGroupIds;
4656
4511
  }
4657
4512
  if (!tea_util_1.default.isUnset(request.userGroupMode)) {
4658
4513
  body["UserGroupMode"] = request.userGroupMode;
4659
4514
  }
4515
+ body = Object.assign(Object.assign({}, body), openapi_util_1.default.query(bodyFlat));
4660
4516
  let req = new $OpenApi.OpenApiRequest({
4661
4517
  body: openapi_util_1.default.parseToMap(body),
4662
4518
  });