@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 +23 -86
- package/dist/client.js +74 -218
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +96 -278
package/src/client.ts
CHANGED
|
@@ -226,43 +226,6 @@ export class CreatePrivateAccessApplicationRequest extends $tea.Model {
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
export class CreatePrivateAccessApplicationShrinkRequest extends $tea.Model {
|
|
230
|
-
addressesShrink?: string;
|
|
231
|
-
description?: string;
|
|
232
|
-
name?: string;
|
|
233
|
-
portRangesShrink?: string;
|
|
234
|
-
protocol?: string;
|
|
235
|
-
status?: string;
|
|
236
|
-
tagIdsShrink?: string;
|
|
237
|
-
static names(): { [key: string]: string } {
|
|
238
|
-
return {
|
|
239
|
-
addressesShrink: 'Addresses',
|
|
240
|
-
description: 'Description',
|
|
241
|
-
name: 'Name',
|
|
242
|
-
portRangesShrink: 'PortRanges',
|
|
243
|
-
protocol: 'Protocol',
|
|
244
|
-
status: 'Status',
|
|
245
|
-
tagIdsShrink: 'TagIds',
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
static types(): { [key: string]: any } {
|
|
250
|
-
return {
|
|
251
|
-
addressesShrink: 'string',
|
|
252
|
-
description: 'string',
|
|
253
|
-
name: 'string',
|
|
254
|
-
portRangesShrink: 'string',
|
|
255
|
-
protocol: 'string',
|
|
256
|
-
status: 'string',
|
|
257
|
-
tagIdsShrink: 'string',
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
constructor(map?: { [key: string]: any }) {
|
|
262
|
-
super(map);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
229
|
export class CreatePrivateAccessApplicationResponseBody extends $tea.Model {
|
|
267
230
|
applicationId?: string;
|
|
268
231
|
requestId?: string;
|
|
@@ -359,55 +322,6 @@ export class CreatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
359
322
|
}
|
|
360
323
|
}
|
|
361
324
|
|
|
362
|
-
export class CreatePrivateAccessPolicyShrinkRequest extends $tea.Model {
|
|
363
|
-
applicationIdsShrink?: string;
|
|
364
|
-
applicationType?: string;
|
|
365
|
-
customUserAttributesShrink?: string;
|
|
366
|
-
description?: string;
|
|
367
|
-
name?: string;
|
|
368
|
-
policyAction?: string;
|
|
369
|
-
priority?: number;
|
|
370
|
-
status?: string;
|
|
371
|
-
tagIdsShrink?: string;
|
|
372
|
-
userGroupIdsShrink?: string;
|
|
373
|
-
userGroupMode?: string;
|
|
374
|
-
static names(): { [key: string]: string } {
|
|
375
|
-
return {
|
|
376
|
-
applicationIdsShrink: 'ApplicationIds',
|
|
377
|
-
applicationType: 'ApplicationType',
|
|
378
|
-
customUserAttributesShrink: 'CustomUserAttributes',
|
|
379
|
-
description: 'Description',
|
|
380
|
-
name: 'Name',
|
|
381
|
-
policyAction: 'PolicyAction',
|
|
382
|
-
priority: 'Priority',
|
|
383
|
-
status: 'Status',
|
|
384
|
-
tagIdsShrink: 'TagIds',
|
|
385
|
-
userGroupIdsShrink: 'UserGroupIds',
|
|
386
|
-
userGroupMode: 'UserGroupMode',
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
static types(): { [key: string]: any } {
|
|
391
|
-
return {
|
|
392
|
-
applicationIdsShrink: 'string',
|
|
393
|
-
applicationType: 'string',
|
|
394
|
-
customUserAttributesShrink: 'string',
|
|
395
|
-
description: 'string',
|
|
396
|
-
name: 'string',
|
|
397
|
-
policyAction: 'string',
|
|
398
|
-
priority: 'number',
|
|
399
|
-
status: 'string',
|
|
400
|
-
tagIdsShrink: 'string',
|
|
401
|
-
userGroupIdsShrink: 'string',
|
|
402
|
-
userGroupMode: 'string',
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
constructor(map?: { [key: string]: any }) {
|
|
407
|
-
super(map);
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
|
|
411
325
|
export class CreatePrivateAccessPolicyResponseBody extends $tea.Model {
|
|
412
326
|
policyId?: string;
|
|
413
327
|
requestId?: string;
|
|
@@ -1823,6 +1737,7 @@ export class ListPolicesForUserGroupResponse extends $tea.Model {
|
|
|
1823
1737
|
export class ListPrivateAccessApplicationsRequest extends $tea.Model {
|
|
1824
1738
|
address?: string;
|
|
1825
1739
|
applicationIds?: string[];
|
|
1740
|
+
connectorId?: string;
|
|
1826
1741
|
currentPage?: number;
|
|
1827
1742
|
name?: string;
|
|
1828
1743
|
pageSize?: number;
|
|
@@ -1833,6 +1748,7 @@ export class ListPrivateAccessApplicationsRequest extends $tea.Model {
|
|
|
1833
1748
|
return {
|
|
1834
1749
|
address: 'Address',
|
|
1835
1750
|
applicationIds: 'ApplicationIds',
|
|
1751
|
+
connectorId: 'ConnectorId',
|
|
1836
1752
|
currentPage: 'CurrentPage',
|
|
1837
1753
|
name: 'Name',
|
|
1838
1754
|
pageSize: 'PageSize',
|
|
@@ -1846,6 +1762,7 @@ export class ListPrivateAccessApplicationsRequest extends $tea.Model {
|
|
|
1846
1762
|
return {
|
|
1847
1763
|
address: 'string',
|
|
1848
1764
|
applicationIds: { 'type': 'array', 'itemType': 'string' },
|
|
1765
|
+
connectorId: 'string',
|
|
1849
1766
|
currentPage: 'number',
|
|
1850
1767
|
name: 'string',
|
|
1851
1768
|
pageSize: 'number',
|
|
@@ -2637,46 +2554,6 @@ export class UpdatePrivateAccessApplicationRequest extends $tea.Model {
|
|
|
2637
2554
|
}
|
|
2638
2555
|
}
|
|
2639
2556
|
|
|
2640
|
-
export class UpdatePrivateAccessApplicationShrinkRequest extends $tea.Model {
|
|
2641
|
-
addressesShrink?: string;
|
|
2642
|
-
applicationId?: string;
|
|
2643
|
-
description?: string;
|
|
2644
|
-
modifyType?: string;
|
|
2645
|
-
portRangesShrink?: string;
|
|
2646
|
-
protocol?: string;
|
|
2647
|
-
status?: string;
|
|
2648
|
-
tagIdsShrink?: string;
|
|
2649
|
-
static names(): { [key: string]: string } {
|
|
2650
|
-
return {
|
|
2651
|
-
addressesShrink: 'Addresses',
|
|
2652
|
-
applicationId: 'ApplicationId',
|
|
2653
|
-
description: 'Description',
|
|
2654
|
-
modifyType: 'ModifyType',
|
|
2655
|
-
portRangesShrink: 'PortRanges',
|
|
2656
|
-
protocol: 'Protocol',
|
|
2657
|
-
status: 'Status',
|
|
2658
|
-
tagIdsShrink: 'TagIds',
|
|
2659
|
-
};
|
|
2660
|
-
}
|
|
2661
|
-
|
|
2662
|
-
static types(): { [key: string]: any } {
|
|
2663
|
-
return {
|
|
2664
|
-
addressesShrink: 'string',
|
|
2665
|
-
applicationId: 'string',
|
|
2666
|
-
description: 'string',
|
|
2667
|
-
modifyType: 'string',
|
|
2668
|
-
portRangesShrink: 'string',
|
|
2669
|
-
protocol: 'string',
|
|
2670
|
-
status: 'string',
|
|
2671
|
-
tagIdsShrink: 'string',
|
|
2672
|
-
};
|
|
2673
|
-
}
|
|
2674
|
-
|
|
2675
|
-
constructor(map?: { [key: string]: any }) {
|
|
2676
|
-
super(map);
|
|
2677
|
-
}
|
|
2678
|
-
}
|
|
2679
|
-
|
|
2680
2557
|
export class UpdatePrivateAccessApplicationResponseBody extends $tea.Model {
|
|
2681
2558
|
requestId?: string;
|
|
2682
2559
|
static names(): { [key: string]: string } {
|
|
@@ -2773,58 +2650,6 @@ export class UpdatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
2773
2650
|
}
|
|
2774
2651
|
}
|
|
2775
2652
|
|
|
2776
|
-
export class UpdatePrivateAccessPolicyShrinkRequest extends $tea.Model {
|
|
2777
|
-
applicationIdsShrink?: string;
|
|
2778
|
-
applicationType?: string;
|
|
2779
|
-
customUserAttributesShrink?: string;
|
|
2780
|
-
description?: string;
|
|
2781
|
-
modifyType?: string;
|
|
2782
|
-
policyAction?: string;
|
|
2783
|
-
policyId?: string;
|
|
2784
|
-
priority?: number;
|
|
2785
|
-
status?: string;
|
|
2786
|
-
tagIdsShrink?: string;
|
|
2787
|
-
userGroupIdsShrink?: string;
|
|
2788
|
-
userGroupMode?: string;
|
|
2789
|
-
static names(): { [key: string]: string } {
|
|
2790
|
-
return {
|
|
2791
|
-
applicationIdsShrink: 'ApplicationIds',
|
|
2792
|
-
applicationType: 'ApplicationType',
|
|
2793
|
-
customUserAttributesShrink: 'CustomUserAttributes',
|
|
2794
|
-
description: 'Description',
|
|
2795
|
-
modifyType: 'ModifyType',
|
|
2796
|
-
policyAction: 'PolicyAction',
|
|
2797
|
-
policyId: 'PolicyId',
|
|
2798
|
-
priority: 'Priority',
|
|
2799
|
-
status: 'Status',
|
|
2800
|
-
tagIdsShrink: 'TagIds',
|
|
2801
|
-
userGroupIdsShrink: 'UserGroupIds',
|
|
2802
|
-
userGroupMode: 'UserGroupMode',
|
|
2803
|
-
};
|
|
2804
|
-
}
|
|
2805
|
-
|
|
2806
|
-
static types(): { [key: string]: any } {
|
|
2807
|
-
return {
|
|
2808
|
-
applicationIdsShrink: 'string',
|
|
2809
|
-
applicationType: 'string',
|
|
2810
|
-
customUserAttributesShrink: 'string',
|
|
2811
|
-
description: 'string',
|
|
2812
|
-
modifyType: 'string',
|
|
2813
|
-
policyAction: 'string',
|
|
2814
|
-
policyId: 'string',
|
|
2815
|
-
priority: 'number',
|
|
2816
|
-
status: 'string',
|
|
2817
|
-
tagIdsShrink: 'string',
|
|
2818
|
-
userGroupIdsShrink: 'string',
|
|
2819
|
-
userGroupMode: 'string',
|
|
2820
|
-
};
|
|
2821
|
-
}
|
|
2822
|
-
|
|
2823
|
-
constructor(map?: { [key: string]: any }) {
|
|
2824
|
-
super(map);
|
|
2825
|
-
}
|
|
2826
|
-
}
|
|
2827
|
-
|
|
2828
2653
|
export class UpdatePrivateAccessPolicyResponseBody extends $tea.Model {
|
|
2829
2654
|
requestId?: string;
|
|
2830
2655
|
static names(): { [key: string]: string } {
|
|
@@ -3096,6 +2921,7 @@ export class GetPrivateAccessApplicationResponseBodyApplicationPortRanges extend
|
|
|
3096
2921
|
export class GetPrivateAccessApplicationResponseBodyApplication extends $tea.Model {
|
|
3097
2922
|
addresses?: string[];
|
|
3098
2923
|
applicationId?: string;
|
|
2924
|
+
connectorIds?: string[];
|
|
3099
2925
|
createTime?: string;
|
|
3100
2926
|
description?: string;
|
|
3101
2927
|
name?: string;
|
|
@@ -3108,6 +2934,7 @@ export class GetPrivateAccessApplicationResponseBodyApplication extends $tea.Mod
|
|
|
3108
2934
|
return {
|
|
3109
2935
|
addresses: 'Addresses',
|
|
3110
2936
|
applicationId: 'ApplicationId',
|
|
2937
|
+
connectorIds: 'ConnectorIds',
|
|
3111
2938
|
createTime: 'CreateTime',
|
|
3112
2939
|
description: 'Description',
|
|
3113
2940
|
name: 'Name',
|
|
@@ -3123,6 +2950,7 @@ export class GetPrivateAccessApplicationResponseBodyApplication extends $tea.Mod
|
|
|
3123
2950
|
return {
|
|
3124
2951
|
addresses: { 'type': 'array', 'itemType': 'string' },
|
|
3125
2952
|
applicationId: 'string',
|
|
2953
|
+
connectorIds: { 'type': 'array', 'itemType': 'string' },
|
|
3126
2954
|
createTime: 'string',
|
|
3127
2955
|
description: 'string',
|
|
3128
2956
|
name: 'string',
|
|
@@ -3471,6 +3299,34 @@ export class ListConnectorsResponseBodyConnectorsApplications extends $tea.Model
|
|
|
3471
3299
|
}
|
|
3472
3300
|
}
|
|
3473
3301
|
|
|
3302
|
+
export class ListConnectorsResponseBodyConnectorsConnectorClients extends $tea.Model {
|
|
3303
|
+
connectionStatus?: string;
|
|
3304
|
+
devTag?: string;
|
|
3305
|
+
hostname?: string;
|
|
3306
|
+
publicIp?: string;
|
|
3307
|
+
static names(): { [key: string]: string } {
|
|
3308
|
+
return {
|
|
3309
|
+
connectionStatus: 'ConnectionStatus',
|
|
3310
|
+
devTag: 'DevTag',
|
|
3311
|
+
hostname: 'Hostname',
|
|
3312
|
+
publicIp: 'PublicIp',
|
|
3313
|
+
};
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
static types(): { [key: string]: any } {
|
|
3317
|
+
return {
|
|
3318
|
+
connectionStatus: 'string',
|
|
3319
|
+
devTag: 'string',
|
|
3320
|
+
hostname: 'string',
|
|
3321
|
+
publicIp: 'string',
|
|
3322
|
+
};
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
constructor(map?: { [key: string]: any }) {
|
|
3326
|
+
super(map);
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3474
3330
|
export class ListConnectorsResponseBodyConnectorsUpgradeTime extends $tea.Model {
|
|
3475
3331
|
end?: string;
|
|
3476
3332
|
start?: string;
|
|
@@ -3495,6 +3351,7 @@ export class ListConnectorsResponseBodyConnectorsUpgradeTime extends $tea.Model
|
|
|
3495
3351
|
|
|
3496
3352
|
export class ListConnectorsResponseBodyConnectors extends $tea.Model {
|
|
3497
3353
|
applications?: ListConnectorsResponseBodyConnectorsApplications[];
|
|
3354
|
+
connectorClients?: ListConnectorsResponseBodyConnectorsConnectorClients[];
|
|
3498
3355
|
connectorId?: string;
|
|
3499
3356
|
createTime?: string;
|
|
3500
3357
|
name?: string;
|
|
@@ -3505,6 +3362,7 @@ export class ListConnectorsResponseBodyConnectors extends $tea.Model {
|
|
|
3505
3362
|
static names(): { [key: string]: string } {
|
|
3506
3363
|
return {
|
|
3507
3364
|
applications: 'Applications',
|
|
3365
|
+
connectorClients: 'ConnectorClients',
|
|
3508
3366
|
connectorId: 'ConnectorId',
|
|
3509
3367
|
createTime: 'CreateTime',
|
|
3510
3368
|
name: 'Name',
|
|
@@ -3518,6 +3376,7 @@ export class ListConnectorsResponseBodyConnectors extends $tea.Model {
|
|
|
3518
3376
|
static types(): { [key: string]: any } {
|
|
3519
3377
|
return {
|
|
3520
3378
|
applications: { 'type': 'array', 'itemType': ListConnectorsResponseBodyConnectorsApplications },
|
|
3379
|
+
connectorClients: { 'type': 'array', 'itemType': ListConnectorsResponseBodyConnectorsConnectorClients },
|
|
3521
3380
|
connectorId: 'string',
|
|
3522
3381
|
createTime: 'string',
|
|
3523
3382
|
name: 'string',
|
|
@@ -3849,6 +3708,7 @@ export class ListPrivateAccessApplicationsResponseBodyApplicationsPortRanges ext
|
|
|
3849
3708
|
export class ListPrivateAccessApplicationsResponseBodyApplications extends $tea.Model {
|
|
3850
3709
|
addresses?: string[];
|
|
3851
3710
|
applicationId?: string;
|
|
3711
|
+
connectorIds?: string[];
|
|
3852
3712
|
createTime?: string;
|
|
3853
3713
|
description?: string;
|
|
3854
3714
|
name?: string;
|
|
@@ -3861,6 +3721,7 @@ export class ListPrivateAccessApplicationsResponseBodyApplications extends $tea.
|
|
|
3861
3721
|
return {
|
|
3862
3722
|
addresses: 'Addresses',
|
|
3863
3723
|
applicationId: 'ApplicationId',
|
|
3724
|
+
connectorIds: 'ConnectorIds',
|
|
3864
3725
|
createTime: 'CreateTime',
|
|
3865
3726
|
description: 'Description',
|
|
3866
3727
|
name: 'Name',
|
|
@@ -3876,6 +3737,7 @@ export class ListPrivateAccessApplicationsResponseBodyApplications extends $tea.
|
|
|
3876
3737
|
return {
|
|
3877
3738
|
addresses: { 'type': 'array', 'itemType': 'string' },
|
|
3878
3739
|
applicationId: 'string',
|
|
3740
|
+
connectorIds: { 'type': 'array', 'itemType': 'string' },
|
|
3879
3741
|
createTime: 'string',
|
|
3880
3742
|
description: 'string',
|
|
3881
3743
|
name: 'string',
|
|
@@ -4605,25 +4467,12 @@ export default class Client extends OpenApi {
|
|
|
4605
4467
|
return await this.createDynamicRouteWithOptions(request, runtime);
|
|
4606
4468
|
}
|
|
4607
4469
|
|
|
4608
|
-
async createPrivateAccessApplicationWithOptions(
|
|
4609
|
-
Util.validateModel(
|
|
4610
|
-
let request = new CreatePrivateAccessApplicationShrinkRequest({ });
|
|
4611
|
-
OpenApiUtil.convert(tmpReq, request);
|
|
4612
|
-
if (!Util.isUnset(tmpReq.addresses)) {
|
|
4613
|
-
request.addressesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.addresses, "Addresses", "json");
|
|
4614
|
-
}
|
|
4615
|
-
|
|
4616
|
-
if (!Util.isUnset(tmpReq.portRanges)) {
|
|
4617
|
-
request.portRangesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.portRanges, "PortRanges", "json");
|
|
4618
|
-
}
|
|
4619
|
-
|
|
4620
|
-
if (!Util.isUnset(tmpReq.tagIds)) {
|
|
4621
|
-
request.tagIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
|
|
4622
|
-
}
|
|
4623
|
-
|
|
4470
|
+
async createPrivateAccessApplicationWithOptions(request: CreatePrivateAccessApplicationRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessApplicationResponse> {
|
|
4471
|
+
Util.validateModel(request);
|
|
4624
4472
|
let body : {[key: string ]: any} = { };
|
|
4625
|
-
|
|
4626
|
-
|
|
4473
|
+
let bodyFlat : {[key: string ]: any} = { };
|
|
4474
|
+
if (!Util.isUnset(request.addresses)) {
|
|
4475
|
+
bodyFlat["Addresses"] = request.addresses;
|
|
4627
4476
|
}
|
|
4628
4477
|
|
|
4629
4478
|
if (!Util.isUnset(request.description)) {
|
|
@@ -4634,8 +4483,8 @@ export default class Client extends OpenApi {
|
|
|
4634
4483
|
body["Name"] = request.name;
|
|
4635
4484
|
}
|
|
4636
4485
|
|
|
4637
|
-
if (!Util.isUnset(request.
|
|
4638
|
-
|
|
4486
|
+
if (!Util.isUnset(request.portRanges)) {
|
|
4487
|
+
bodyFlat["PortRanges"] = request.portRanges;
|
|
4639
4488
|
}
|
|
4640
4489
|
|
|
4641
4490
|
if (!Util.isUnset(request.protocol)) {
|
|
@@ -4646,10 +4495,14 @@ export default class Client extends OpenApi {
|
|
|
4646
4495
|
body["Status"] = request.status;
|
|
4647
4496
|
}
|
|
4648
4497
|
|
|
4649
|
-
if (!Util.isUnset(request.
|
|
4650
|
-
|
|
4498
|
+
if (!Util.isUnset(request.tagIds)) {
|
|
4499
|
+
bodyFlat["TagIds"] = request.tagIds;
|
|
4651
4500
|
}
|
|
4652
4501
|
|
|
4502
|
+
body = {
|
|
4503
|
+
...body,
|
|
4504
|
+
...OpenApiUtil.query(bodyFlat),
|
|
4505
|
+
};
|
|
4653
4506
|
let req = new $OpenApi.OpenApiRequest({
|
|
4654
4507
|
body: OpenApiUtil.parseToMap(body),
|
|
4655
4508
|
});
|
|
@@ -4672,37 +4525,20 @@ export default class Client extends OpenApi {
|
|
|
4672
4525
|
return await this.createPrivateAccessApplicationWithOptions(request, runtime);
|
|
4673
4526
|
}
|
|
4674
4527
|
|
|
4675
|
-
async createPrivateAccessPolicyWithOptions(
|
|
4676
|
-
Util.validateModel(
|
|
4677
|
-
let request = new CreatePrivateAccessPolicyShrinkRequest({ });
|
|
4678
|
-
OpenApiUtil.convert(tmpReq, request);
|
|
4679
|
-
if (!Util.isUnset(tmpReq.applicationIds)) {
|
|
4680
|
-
request.applicationIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
|
|
4681
|
-
}
|
|
4682
|
-
|
|
4683
|
-
if (!Util.isUnset(tmpReq.customUserAttributes)) {
|
|
4684
|
-
request.customUserAttributesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.customUserAttributes, "CustomUserAttributes", "json");
|
|
4685
|
-
}
|
|
4686
|
-
|
|
4687
|
-
if (!Util.isUnset(tmpReq.tagIds)) {
|
|
4688
|
-
request.tagIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
|
|
4689
|
-
}
|
|
4690
|
-
|
|
4691
|
-
if (!Util.isUnset(tmpReq.userGroupIds)) {
|
|
4692
|
-
request.userGroupIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
|
|
4693
|
-
}
|
|
4694
|
-
|
|
4528
|
+
async createPrivateAccessPolicyWithOptions(request: CreatePrivateAccessPolicyRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessPolicyResponse> {
|
|
4529
|
+
Util.validateModel(request);
|
|
4695
4530
|
let body : {[key: string ]: any} = { };
|
|
4696
|
-
|
|
4697
|
-
|
|
4531
|
+
let bodyFlat : {[key: string ]: any} = { };
|
|
4532
|
+
if (!Util.isUnset(request.applicationIds)) {
|
|
4533
|
+
bodyFlat["ApplicationIds"] = request.applicationIds;
|
|
4698
4534
|
}
|
|
4699
4535
|
|
|
4700
4536
|
if (!Util.isUnset(request.applicationType)) {
|
|
4701
4537
|
body["ApplicationType"] = request.applicationType;
|
|
4702
4538
|
}
|
|
4703
4539
|
|
|
4704
|
-
if (!Util.isUnset(request.
|
|
4705
|
-
|
|
4540
|
+
if (!Util.isUnset(request.customUserAttributes)) {
|
|
4541
|
+
bodyFlat["CustomUserAttributes"] = request.customUserAttributes;
|
|
4706
4542
|
}
|
|
4707
4543
|
|
|
4708
4544
|
if (!Util.isUnset(request.description)) {
|
|
@@ -4725,18 +4561,22 @@ export default class Client extends OpenApi {
|
|
|
4725
4561
|
body["Status"] = request.status;
|
|
4726
4562
|
}
|
|
4727
4563
|
|
|
4728
|
-
if (!Util.isUnset(request.
|
|
4729
|
-
|
|
4564
|
+
if (!Util.isUnset(request.tagIds)) {
|
|
4565
|
+
bodyFlat["TagIds"] = request.tagIds;
|
|
4730
4566
|
}
|
|
4731
4567
|
|
|
4732
|
-
if (!Util.isUnset(request.
|
|
4733
|
-
|
|
4568
|
+
if (!Util.isUnset(request.userGroupIds)) {
|
|
4569
|
+
bodyFlat["UserGroupIds"] = request.userGroupIds;
|
|
4734
4570
|
}
|
|
4735
4571
|
|
|
4736
4572
|
if (!Util.isUnset(request.userGroupMode)) {
|
|
4737
4573
|
body["UserGroupMode"] = request.userGroupMode;
|
|
4738
4574
|
}
|
|
4739
4575
|
|
|
4576
|
+
body = {
|
|
4577
|
+
...body,
|
|
4578
|
+
...OpenApiUtil.query(bodyFlat),
|
|
4579
|
+
};
|
|
4740
4580
|
let req = new $OpenApi.OpenApiRequest({
|
|
4741
4581
|
body: OpenApiUtil.parseToMap(body),
|
|
4742
4582
|
});
|
|
@@ -5617,25 +5457,12 @@ export default class Client extends OpenApi {
|
|
|
5617
5457
|
return await this.updateDynamicRouteWithOptions(request, runtime);
|
|
5618
5458
|
}
|
|
5619
5459
|
|
|
5620
|
-
async updatePrivateAccessApplicationWithOptions(
|
|
5621
|
-
Util.validateModel(
|
|
5622
|
-
let request = new UpdatePrivateAccessApplicationShrinkRequest({ });
|
|
5623
|
-
OpenApiUtil.convert(tmpReq, request);
|
|
5624
|
-
if (!Util.isUnset(tmpReq.addresses)) {
|
|
5625
|
-
request.addressesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.addresses, "Addresses", "json");
|
|
5626
|
-
}
|
|
5627
|
-
|
|
5628
|
-
if (!Util.isUnset(tmpReq.portRanges)) {
|
|
5629
|
-
request.portRangesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.portRanges, "PortRanges", "json");
|
|
5630
|
-
}
|
|
5631
|
-
|
|
5632
|
-
if (!Util.isUnset(tmpReq.tagIds)) {
|
|
5633
|
-
request.tagIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
|
|
5634
|
-
}
|
|
5635
|
-
|
|
5460
|
+
async updatePrivateAccessApplicationWithOptions(request: UpdatePrivateAccessApplicationRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePrivateAccessApplicationResponse> {
|
|
5461
|
+
Util.validateModel(request);
|
|
5636
5462
|
let body : {[key: string ]: any} = { };
|
|
5637
|
-
|
|
5638
|
-
|
|
5463
|
+
let bodyFlat : {[key: string ]: any} = { };
|
|
5464
|
+
if (!Util.isUnset(request.addresses)) {
|
|
5465
|
+
bodyFlat["Addresses"] = request.addresses;
|
|
5639
5466
|
}
|
|
5640
5467
|
|
|
5641
5468
|
if (!Util.isUnset(request.applicationId)) {
|
|
@@ -5650,8 +5477,8 @@ export default class Client extends OpenApi {
|
|
|
5650
5477
|
body["ModifyType"] = request.modifyType;
|
|
5651
5478
|
}
|
|
5652
5479
|
|
|
5653
|
-
if (!Util.isUnset(request.
|
|
5654
|
-
|
|
5480
|
+
if (!Util.isUnset(request.portRanges)) {
|
|
5481
|
+
bodyFlat["PortRanges"] = request.portRanges;
|
|
5655
5482
|
}
|
|
5656
5483
|
|
|
5657
5484
|
if (!Util.isUnset(request.protocol)) {
|
|
@@ -5662,10 +5489,14 @@ export default class Client extends OpenApi {
|
|
|
5662
5489
|
body["Status"] = request.status;
|
|
5663
5490
|
}
|
|
5664
5491
|
|
|
5665
|
-
if (!Util.isUnset(request.
|
|
5666
|
-
|
|
5492
|
+
if (!Util.isUnset(request.tagIds)) {
|
|
5493
|
+
bodyFlat["TagIds"] = request.tagIds;
|
|
5667
5494
|
}
|
|
5668
5495
|
|
|
5496
|
+
body = {
|
|
5497
|
+
...body,
|
|
5498
|
+
...OpenApiUtil.query(bodyFlat),
|
|
5499
|
+
};
|
|
5669
5500
|
let req = new $OpenApi.OpenApiRequest({
|
|
5670
5501
|
body: OpenApiUtil.parseToMap(body),
|
|
5671
5502
|
});
|
|
@@ -5688,37 +5519,20 @@ export default class Client extends OpenApi {
|
|
|
5688
5519
|
return await this.updatePrivateAccessApplicationWithOptions(request, runtime);
|
|
5689
5520
|
}
|
|
5690
5521
|
|
|
5691
|
-
async updatePrivateAccessPolicyWithOptions(
|
|
5692
|
-
Util.validateModel(
|
|
5693
|
-
let request = new UpdatePrivateAccessPolicyShrinkRequest({ });
|
|
5694
|
-
OpenApiUtil.convert(tmpReq, request);
|
|
5695
|
-
if (!Util.isUnset(tmpReq.applicationIds)) {
|
|
5696
|
-
request.applicationIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
|
|
5697
|
-
}
|
|
5698
|
-
|
|
5699
|
-
if (!Util.isUnset(tmpReq.customUserAttributes)) {
|
|
5700
|
-
request.customUserAttributesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.customUserAttributes, "CustomUserAttributes", "json");
|
|
5701
|
-
}
|
|
5702
|
-
|
|
5703
|
-
if (!Util.isUnset(tmpReq.tagIds)) {
|
|
5704
|
-
request.tagIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
|
|
5705
|
-
}
|
|
5706
|
-
|
|
5707
|
-
if (!Util.isUnset(tmpReq.userGroupIds)) {
|
|
5708
|
-
request.userGroupIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
|
|
5709
|
-
}
|
|
5710
|
-
|
|
5522
|
+
async updatePrivateAccessPolicyWithOptions(request: UpdatePrivateAccessPolicyRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePrivateAccessPolicyResponse> {
|
|
5523
|
+
Util.validateModel(request);
|
|
5711
5524
|
let body : {[key: string ]: any} = { };
|
|
5712
|
-
|
|
5713
|
-
|
|
5525
|
+
let bodyFlat : {[key: string ]: any} = { };
|
|
5526
|
+
if (!Util.isUnset(request.applicationIds)) {
|
|
5527
|
+
bodyFlat["ApplicationIds"] = request.applicationIds;
|
|
5714
5528
|
}
|
|
5715
5529
|
|
|
5716
5530
|
if (!Util.isUnset(request.applicationType)) {
|
|
5717
5531
|
body["ApplicationType"] = request.applicationType;
|
|
5718
5532
|
}
|
|
5719
5533
|
|
|
5720
|
-
if (!Util.isUnset(request.
|
|
5721
|
-
|
|
5534
|
+
if (!Util.isUnset(request.customUserAttributes)) {
|
|
5535
|
+
bodyFlat["CustomUserAttributes"] = request.customUserAttributes;
|
|
5722
5536
|
}
|
|
5723
5537
|
|
|
5724
5538
|
if (!Util.isUnset(request.description)) {
|
|
@@ -5745,18 +5559,22 @@ export default class Client extends OpenApi {
|
|
|
5745
5559
|
body["Status"] = request.status;
|
|
5746
5560
|
}
|
|
5747
5561
|
|
|
5748
|
-
if (!Util.isUnset(request.
|
|
5749
|
-
|
|
5562
|
+
if (!Util.isUnset(request.tagIds)) {
|
|
5563
|
+
bodyFlat["TagIds"] = request.tagIds;
|
|
5750
5564
|
}
|
|
5751
5565
|
|
|
5752
|
-
if (!Util.isUnset(request.
|
|
5753
|
-
|
|
5566
|
+
if (!Util.isUnset(request.userGroupIds)) {
|
|
5567
|
+
bodyFlat["UserGroupIds"] = request.userGroupIds;
|
|
5754
5568
|
}
|
|
5755
5569
|
|
|
5756
5570
|
if (!Util.isUnset(request.userGroupMode)) {
|
|
5757
5571
|
body["UserGroupMode"] = request.userGroupMode;
|
|
5758
5572
|
}
|
|
5759
5573
|
|
|
5574
|
+
body = {
|
|
5575
|
+
...body,
|
|
5576
|
+
...OpenApiUtil.query(bodyFlat),
|
|
5577
|
+
};
|
|
5760
5578
|
let req = new $OpenApi.OpenApiRequest({
|
|
5761
5579
|
body: OpenApiUtil.parseToMap(body),
|
|
5762
5580
|
});
|