@alicloud/csas20230120 1.0.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/dist/client.js ADDED
@@ -0,0 +1,4183 @@
1
+ "use strict";
2
+ var __importStar = (this && this.__importStar) || function (mod) {
3
+ if (mod && mod.__esModule) return mod;
4
+ var result = {};
5
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
+ result["default"] = mod;
7
+ return result;
8
+ };
9
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ // This file is auto-generated, don't edit it
14
+ /**
15
+ *
16
+ */
17
+ const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
18
+ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
19
+ const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
20
+ const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
21
+ const $tea = __importStar(require("@alicloud/tea-typescript"));
22
+ class AttachApplication2ConnectorRequest extends $tea.Model {
23
+ constructor(map) {
24
+ super(map);
25
+ }
26
+ static names() {
27
+ return {
28
+ applicationIds: 'ApplicationIds',
29
+ connectorId: 'ConnectorId',
30
+ };
31
+ }
32
+ static types() {
33
+ return {
34
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
35
+ connectorId: 'string',
36
+ };
37
+ }
38
+ }
39
+ exports.AttachApplication2ConnectorRequest = AttachApplication2ConnectorRequest;
40
+ class AttachApplication2ConnectorShrinkRequest extends $tea.Model {
41
+ constructor(map) {
42
+ super(map);
43
+ }
44
+ static names() {
45
+ return {
46
+ applicationIdsShrink: 'ApplicationIds',
47
+ connectorId: 'ConnectorId',
48
+ };
49
+ }
50
+ static types() {
51
+ return {
52
+ applicationIdsShrink: 'string',
53
+ connectorId: 'string',
54
+ };
55
+ }
56
+ }
57
+ exports.AttachApplication2ConnectorShrinkRequest = AttachApplication2ConnectorShrinkRequest;
58
+ class AttachApplication2ConnectorResponseBody extends $tea.Model {
59
+ constructor(map) {
60
+ super(map);
61
+ }
62
+ static names() {
63
+ return {
64
+ requestId: 'RequestId',
65
+ };
66
+ }
67
+ static types() {
68
+ return {
69
+ requestId: 'string',
70
+ };
71
+ }
72
+ }
73
+ exports.AttachApplication2ConnectorResponseBody = AttachApplication2ConnectorResponseBody;
74
+ class AttachApplication2ConnectorResponse extends $tea.Model {
75
+ constructor(map) {
76
+ super(map);
77
+ }
78
+ static names() {
79
+ return {
80
+ headers: 'headers',
81
+ statusCode: 'statusCode',
82
+ body: 'body',
83
+ };
84
+ }
85
+ static types() {
86
+ return {
87
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
88
+ statusCode: 'number',
89
+ body: AttachApplication2ConnectorResponseBody,
90
+ };
91
+ }
92
+ }
93
+ exports.AttachApplication2ConnectorResponse = AttachApplication2ConnectorResponse;
94
+ class CreatePrivateAccessApplicationRequest extends $tea.Model {
95
+ constructor(map) {
96
+ super(map);
97
+ }
98
+ static names() {
99
+ return {
100
+ addresses: 'Addresses',
101
+ description: 'Description',
102
+ name: 'Name',
103
+ portRanges: 'PortRanges',
104
+ protocol: 'Protocol',
105
+ status: 'Status',
106
+ tagIds: 'TagIds',
107
+ };
108
+ }
109
+ static types() {
110
+ return {
111
+ addresses: { 'type': 'array', 'itemType': 'string' },
112
+ description: 'string',
113
+ name: 'string',
114
+ portRanges: { 'type': 'array', 'itemType': CreatePrivateAccessApplicationRequestPortRanges },
115
+ protocol: 'string',
116
+ status: 'string',
117
+ tagIds: { 'type': 'array', 'itemType': 'string' },
118
+ };
119
+ }
120
+ }
121
+ exports.CreatePrivateAccessApplicationRequest = CreatePrivateAccessApplicationRequest;
122
+ class CreatePrivateAccessApplicationShrinkRequest extends $tea.Model {
123
+ constructor(map) {
124
+ super(map);
125
+ }
126
+ static names() {
127
+ return {
128
+ addressesShrink: 'Addresses',
129
+ description: 'Description',
130
+ name: 'Name',
131
+ portRangesShrink: 'PortRanges',
132
+ protocol: 'Protocol',
133
+ status: 'Status',
134
+ tagIdsShrink: 'TagIds',
135
+ };
136
+ }
137
+ static types() {
138
+ return {
139
+ addressesShrink: 'string',
140
+ description: 'string',
141
+ name: 'string',
142
+ portRangesShrink: 'string',
143
+ protocol: 'string',
144
+ status: 'string',
145
+ tagIdsShrink: 'string',
146
+ };
147
+ }
148
+ }
149
+ exports.CreatePrivateAccessApplicationShrinkRequest = CreatePrivateAccessApplicationShrinkRequest;
150
+ class CreatePrivateAccessApplicationResponseBody extends $tea.Model {
151
+ constructor(map) {
152
+ super(map);
153
+ }
154
+ static names() {
155
+ return {
156
+ applicationId: 'ApplicationId',
157
+ requestId: 'RequestId',
158
+ };
159
+ }
160
+ static types() {
161
+ return {
162
+ applicationId: 'string',
163
+ requestId: 'string',
164
+ };
165
+ }
166
+ }
167
+ exports.CreatePrivateAccessApplicationResponseBody = CreatePrivateAccessApplicationResponseBody;
168
+ class CreatePrivateAccessApplicationResponse extends $tea.Model {
169
+ constructor(map) {
170
+ super(map);
171
+ }
172
+ static names() {
173
+ return {
174
+ headers: 'headers',
175
+ statusCode: 'statusCode',
176
+ body: 'body',
177
+ };
178
+ }
179
+ static types() {
180
+ return {
181
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
182
+ statusCode: 'number',
183
+ body: CreatePrivateAccessApplicationResponseBody,
184
+ };
185
+ }
186
+ }
187
+ exports.CreatePrivateAccessApplicationResponse = CreatePrivateAccessApplicationResponse;
188
+ class CreatePrivateAccessPolicyRequest extends $tea.Model {
189
+ constructor(map) {
190
+ super(map);
191
+ }
192
+ static names() {
193
+ return {
194
+ applicationIds: 'ApplicationIds',
195
+ applicationType: 'ApplicationType',
196
+ customUserAttributes: 'CustomUserAttributes',
197
+ description: 'Description',
198
+ name: 'Name',
199
+ policyAction: 'PolicyAction',
200
+ priority: 'Priority',
201
+ status: 'Status',
202
+ tagIds: 'TagIds',
203
+ userGroupIds: 'UserGroupIds',
204
+ userGroupMode: 'UserGroupMode',
205
+ };
206
+ }
207
+ static types() {
208
+ return {
209
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
210
+ applicationType: 'string',
211
+ customUserAttributes: { 'type': 'array', 'itemType': CreatePrivateAccessPolicyRequestCustomUserAttributes },
212
+ description: 'string',
213
+ name: 'string',
214
+ policyAction: 'string',
215
+ priority: 'number',
216
+ status: 'string',
217
+ tagIds: { 'type': 'array', 'itemType': 'string' },
218
+ userGroupIds: { 'type': 'array', 'itemType': 'string' },
219
+ userGroupMode: 'string',
220
+ };
221
+ }
222
+ }
223
+ exports.CreatePrivateAccessPolicyRequest = CreatePrivateAccessPolicyRequest;
224
+ class CreatePrivateAccessPolicyShrinkRequest extends $tea.Model {
225
+ constructor(map) {
226
+ super(map);
227
+ }
228
+ static names() {
229
+ return {
230
+ applicationIdsShrink: 'ApplicationIds',
231
+ applicationType: 'ApplicationType',
232
+ customUserAttributesShrink: 'CustomUserAttributes',
233
+ description: 'Description',
234
+ name: 'Name',
235
+ policyAction: 'PolicyAction',
236
+ priority: 'Priority',
237
+ status: 'Status',
238
+ tagIdsShrink: 'TagIds',
239
+ userGroupIdsShrink: 'UserGroupIds',
240
+ userGroupMode: 'UserGroupMode',
241
+ };
242
+ }
243
+ static types() {
244
+ return {
245
+ applicationIdsShrink: 'string',
246
+ applicationType: 'string',
247
+ customUserAttributesShrink: 'string',
248
+ description: 'string',
249
+ name: 'string',
250
+ policyAction: 'string',
251
+ priority: 'number',
252
+ status: 'string',
253
+ tagIdsShrink: 'string',
254
+ userGroupIdsShrink: 'string',
255
+ userGroupMode: 'string',
256
+ };
257
+ }
258
+ }
259
+ exports.CreatePrivateAccessPolicyShrinkRequest = CreatePrivateAccessPolicyShrinkRequest;
260
+ class CreatePrivateAccessPolicyResponseBody extends $tea.Model {
261
+ constructor(map) {
262
+ super(map);
263
+ }
264
+ static names() {
265
+ return {
266
+ policyId: 'PolicyId',
267
+ requestId: 'RequestId',
268
+ };
269
+ }
270
+ static types() {
271
+ return {
272
+ policyId: 'string',
273
+ requestId: 'string',
274
+ };
275
+ }
276
+ }
277
+ exports.CreatePrivateAccessPolicyResponseBody = CreatePrivateAccessPolicyResponseBody;
278
+ class CreatePrivateAccessPolicyResponse extends $tea.Model {
279
+ constructor(map) {
280
+ super(map);
281
+ }
282
+ static names() {
283
+ return {
284
+ headers: 'headers',
285
+ statusCode: 'statusCode',
286
+ body: 'body',
287
+ };
288
+ }
289
+ static types() {
290
+ return {
291
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
292
+ statusCode: 'number',
293
+ body: CreatePrivateAccessPolicyResponseBody,
294
+ };
295
+ }
296
+ }
297
+ exports.CreatePrivateAccessPolicyResponse = CreatePrivateAccessPolicyResponse;
298
+ class CreatePrivateAccessTagRequest extends $tea.Model {
299
+ constructor(map) {
300
+ super(map);
301
+ }
302
+ static names() {
303
+ return {
304
+ description: 'Description',
305
+ name: 'Name',
306
+ };
307
+ }
308
+ static types() {
309
+ return {
310
+ description: 'string',
311
+ name: 'string',
312
+ };
313
+ }
314
+ }
315
+ exports.CreatePrivateAccessTagRequest = CreatePrivateAccessTagRequest;
316
+ class CreatePrivateAccessTagResponseBody extends $tea.Model {
317
+ constructor(map) {
318
+ super(map);
319
+ }
320
+ static names() {
321
+ return {
322
+ requestId: 'RequestId',
323
+ tagId: 'TagId',
324
+ };
325
+ }
326
+ static types() {
327
+ return {
328
+ requestId: 'string',
329
+ tagId: 'string',
330
+ };
331
+ }
332
+ }
333
+ exports.CreatePrivateAccessTagResponseBody = CreatePrivateAccessTagResponseBody;
334
+ class CreatePrivateAccessTagResponse extends $tea.Model {
335
+ constructor(map) {
336
+ super(map);
337
+ }
338
+ static names() {
339
+ return {
340
+ headers: 'headers',
341
+ statusCode: 'statusCode',
342
+ body: 'body',
343
+ };
344
+ }
345
+ static types() {
346
+ return {
347
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
348
+ statusCode: 'number',
349
+ body: CreatePrivateAccessTagResponseBody,
350
+ };
351
+ }
352
+ }
353
+ exports.CreatePrivateAccessTagResponse = CreatePrivateAccessTagResponse;
354
+ class CreateUserGroupRequest extends $tea.Model {
355
+ constructor(map) {
356
+ super(map);
357
+ }
358
+ static names() {
359
+ return {
360
+ attributes: 'Attributes',
361
+ description: 'Description',
362
+ name: 'Name',
363
+ };
364
+ }
365
+ static types() {
366
+ return {
367
+ attributes: { 'type': 'array', 'itemType': CreateUserGroupRequestAttributes },
368
+ description: 'string',
369
+ name: 'string',
370
+ };
371
+ }
372
+ }
373
+ exports.CreateUserGroupRequest = CreateUserGroupRequest;
374
+ class CreateUserGroupShrinkRequest extends $tea.Model {
375
+ constructor(map) {
376
+ super(map);
377
+ }
378
+ static names() {
379
+ return {
380
+ attributesShrink: 'Attributes',
381
+ description: 'Description',
382
+ name: 'Name',
383
+ };
384
+ }
385
+ static types() {
386
+ return {
387
+ attributesShrink: 'string',
388
+ description: 'string',
389
+ name: 'string',
390
+ };
391
+ }
392
+ }
393
+ exports.CreateUserGroupShrinkRequest = CreateUserGroupShrinkRequest;
394
+ class CreateUserGroupResponseBody extends $tea.Model {
395
+ constructor(map) {
396
+ super(map);
397
+ }
398
+ static names() {
399
+ return {
400
+ requestId: 'RequestId',
401
+ userGroupId: 'UserGroupId',
402
+ };
403
+ }
404
+ static types() {
405
+ return {
406
+ requestId: 'string',
407
+ userGroupId: 'string',
408
+ };
409
+ }
410
+ }
411
+ exports.CreateUserGroupResponseBody = CreateUserGroupResponseBody;
412
+ class CreateUserGroupResponse extends $tea.Model {
413
+ constructor(map) {
414
+ super(map);
415
+ }
416
+ static names() {
417
+ return {
418
+ headers: 'headers',
419
+ statusCode: 'statusCode',
420
+ body: 'body',
421
+ };
422
+ }
423
+ static types() {
424
+ return {
425
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
426
+ statusCode: 'number',
427
+ body: CreateUserGroupResponseBody,
428
+ };
429
+ }
430
+ }
431
+ exports.CreateUserGroupResponse = CreateUserGroupResponse;
432
+ class DeletePrivateAccessApplicationRequest extends $tea.Model {
433
+ constructor(map) {
434
+ super(map);
435
+ }
436
+ static names() {
437
+ return {
438
+ applicationId: 'ApplicationId',
439
+ };
440
+ }
441
+ static types() {
442
+ return {
443
+ applicationId: 'string',
444
+ };
445
+ }
446
+ }
447
+ exports.DeletePrivateAccessApplicationRequest = DeletePrivateAccessApplicationRequest;
448
+ class DeletePrivateAccessApplicationResponseBody extends $tea.Model {
449
+ constructor(map) {
450
+ super(map);
451
+ }
452
+ static names() {
453
+ return {
454
+ requestId: 'RequestId',
455
+ };
456
+ }
457
+ static types() {
458
+ return {
459
+ requestId: 'string',
460
+ };
461
+ }
462
+ }
463
+ exports.DeletePrivateAccessApplicationResponseBody = DeletePrivateAccessApplicationResponseBody;
464
+ class DeletePrivateAccessApplicationResponse extends $tea.Model {
465
+ constructor(map) {
466
+ super(map);
467
+ }
468
+ static names() {
469
+ return {
470
+ headers: 'headers',
471
+ statusCode: 'statusCode',
472
+ body: 'body',
473
+ };
474
+ }
475
+ static types() {
476
+ return {
477
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
478
+ statusCode: 'number',
479
+ body: DeletePrivateAccessApplicationResponseBody,
480
+ };
481
+ }
482
+ }
483
+ exports.DeletePrivateAccessApplicationResponse = DeletePrivateAccessApplicationResponse;
484
+ class DeletePrivateAccessPolicyRequest extends $tea.Model {
485
+ constructor(map) {
486
+ super(map);
487
+ }
488
+ static names() {
489
+ return {
490
+ policyId: 'PolicyId',
491
+ };
492
+ }
493
+ static types() {
494
+ return {
495
+ policyId: 'string',
496
+ };
497
+ }
498
+ }
499
+ exports.DeletePrivateAccessPolicyRequest = DeletePrivateAccessPolicyRequest;
500
+ class DeletePrivateAccessPolicyResponseBody extends $tea.Model {
501
+ constructor(map) {
502
+ super(map);
503
+ }
504
+ static names() {
505
+ return {
506
+ requestId: 'RequestId',
507
+ };
508
+ }
509
+ static types() {
510
+ return {
511
+ requestId: 'string',
512
+ };
513
+ }
514
+ }
515
+ exports.DeletePrivateAccessPolicyResponseBody = DeletePrivateAccessPolicyResponseBody;
516
+ class DeletePrivateAccessPolicyResponse extends $tea.Model {
517
+ constructor(map) {
518
+ super(map);
519
+ }
520
+ static names() {
521
+ return {
522
+ headers: 'headers',
523
+ statusCode: 'statusCode',
524
+ body: 'body',
525
+ };
526
+ }
527
+ static types() {
528
+ return {
529
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
530
+ statusCode: 'number',
531
+ body: DeletePrivateAccessPolicyResponseBody,
532
+ };
533
+ }
534
+ }
535
+ exports.DeletePrivateAccessPolicyResponse = DeletePrivateAccessPolicyResponse;
536
+ class DeletePrivateAccessTagRequest extends $tea.Model {
537
+ constructor(map) {
538
+ super(map);
539
+ }
540
+ static names() {
541
+ return {
542
+ tagId: 'TagId',
543
+ };
544
+ }
545
+ static types() {
546
+ return {
547
+ tagId: 'string',
548
+ };
549
+ }
550
+ }
551
+ exports.DeletePrivateAccessTagRequest = DeletePrivateAccessTagRequest;
552
+ class DeletePrivateAccessTagResponseBody extends $tea.Model {
553
+ constructor(map) {
554
+ super(map);
555
+ }
556
+ static names() {
557
+ return {
558
+ requestId: 'RequestId',
559
+ };
560
+ }
561
+ static types() {
562
+ return {
563
+ requestId: 'string',
564
+ };
565
+ }
566
+ }
567
+ exports.DeletePrivateAccessTagResponseBody = DeletePrivateAccessTagResponseBody;
568
+ class DeletePrivateAccessTagResponse extends $tea.Model {
569
+ constructor(map) {
570
+ super(map);
571
+ }
572
+ static names() {
573
+ return {
574
+ headers: 'headers',
575
+ statusCode: 'statusCode',
576
+ body: 'body',
577
+ };
578
+ }
579
+ static types() {
580
+ return {
581
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
582
+ statusCode: 'number',
583
+ body: DeletePrivateAccessTagResponseBody,
584
+ };
585
+ }
586
+ }
587
+ exports.DeletePrivateAccessTagResponse = DeletePrivateAccessTagResponse;
588
+ class DeleteUserGroupRequest extends $tea.Model {
589
+ constructor(map) {
590
+ super(map);
591
+ }
592
+ static names() {
593
+ return {
594
+ userGroupId: 'UserGroupId',
595
+ };
596
+ }
597
+ static types() {
598
+ return {
599
+ userGroupId: 'string',
600
+ };
601
+ }
602
+ }
603
+ exports.DeleteUserGroupRequest = DeleteUserGroupRequest;
604
+ class DeleteUserGroupResponseBody extends $tea.Model {
605
+ constructor(map) {
606
+ super(map);
607
+ }
608
+ static names() {
609
+ return {
610
+ requestId: 'RequestId',
611
+ };
612
+ }
613
+ static types() {
614
+ return {
615
+ requestId: 'string',
616
+ };
617
+ }
618
+ }
619
+ exports.DeleteUserGroupResponseBody = DeleteUserGroupResponseBody;
620
+ class DeleteUserGroupResponse extends $tea.Model {
621
+ constructor(map) {
622
+ super(map);
623
+ }
624
+ static names() {
625
+ return {
626
+ headers: 'headers',
627
+ statusCode: 'statusCode',
628
+ body: 'body',
629
+ };
630
+ }
631
+ static types() {
632
+ return {
633
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
634
+ statusCode: 'number',
635
+ body: DeleteUserGroupResponseBody,
636
+ };
637
+ }
638
+ }
639
+ exports.DeleteUserGroupResponse = DeleteUserGroupResponse;
640
+ class DetachApplication2ConnectorRequest extends $tea.Model {
641
+ constructor(map) {
642
+ super(map);
643
+ }
644
+ static names() {
645
+ return {
646
+ applicationIds: 'ApplicationIds',
647
+ connectorId: 'ConnectorId',
648
+ };
649
+ }
650
+ static types() {
651
+ return {
652
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
653
+ connectorId: 'string',
654
+ };
655
+ }
656
+ }
657
+ exports.DetachApplication2ConnectorRequest = DetachApplication2ConnectorRequest;
658
+ class DetachApplication2ConnectorShrinkRequest extends $tea.Model {
659
+ constructor(map) {
660
+ super(map);
661
+ }
662
+ static names() {
663
+ return {
664
+ applicationIdsShrink: 'ApplicationIds',
665
+ connectorId: 'ConnectorId',
666
+ };
667
+ }
668
+ static types() {
669
+ return {
670
+ applicationIdsShrink: 'string',
671
+ connectorId: 'string',
672
+ };
673
+ }
674
+ }
675
+ exports.DetachApplication2ConnectorShrinkRequest = DetachApplication2ConnectorShrinkRequest;
676
+ class DetachApplication2ConnectorResponseBody extends $tea.Model {
677
+ constructor(map) {
678
+ super(map);
679
+ }
680
+ static names() {
681
+ return {
682
+ requestId: 'RequestId',
683
+ };
684
+ }
685
+ static types() {
686
+ return {
687
+ requestId: 'string',
688
+ };
689
+ }
690
+ }
691
+ exports.DetachApplication2ConnectorResponseBody = DetachApplication2ConnectorResponseBody;
692
+ class DetachApplication2ConnectorResponse extends $tea.Model {
693
+ constructor(map) {
694
+ super(map);
695
+ }
696
+ static names() {
697
+ return {
698
+ headers: 'headers',
699
+ statusCode: 'statusCode',
700
+ body: 'body',
701
+ };
702
+ }
703
+ static types() {
704
+ return {
705
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
706
+ statusCode: 'number',
707
+ body: DetachApplication2ConnectorResponseBody,
708
+ };
709
+ }
710
+ }
711
+ exports.DetachApplication2ConnectorResponse = DetachApplication2ConnectorResponse;
712
+ class GetPrivateAccessApplicationRequest extends $tea.Model {
713
+ constructor(map) {
714
+ super(map);
715
+ }
716
+ static names() {
717
+ return {
718
+ applicationId: 'ApplicationId',
719
+ };
720
+ }
721
+ static types() {
722
+ return {
723
+ applicationId: 'string',
724
+ };
725
+ }
726
+ }
727
+ exports.GetPrivateAccessApplicationRequest = GetPrivateAccessApplicationRequest;
728
+ class GetPrivateAccessApplicationResponseBody extends $tea.Model {
729
+ constructor(map) {
730
+ super(map);
731
+ }
732
+ static names() {
733
+ return {
734
+ application: 'Application',
735
+ requestId: 'RequestId',
736
+ };
737
+ }
738
+ static types() {
739
+ return {
740
+ application: GetPrivateAccessApplicationResponseBodyApplication,
741
+ requestId: 'string',
742
+ };
743
+ }
744
+ }
745
+ exports.GetPrivateAccessApplicationResponseBody = GetPrivateAccessApplicationResponseBody;
746
+ class GetPrivateAccessApplicationResponse extends $tea.Model {
747
+ constructor(map) {
748
+ super(map);
749
+ }
750
+ static names() {
751
+ return {
752
+ headers: 'headers',
753
+ statusCode: 'statusCode',
754
+ body: 'body',
755
+ };
756
+ }
757
+ static types() {
758
+ return {
759
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
760
+ statusCode: 'number',
761
+ body: GetPrivateAccessApplicationResponseBody,
762
+ };
763
+ }
764
+ }
765
+ exports.GetPrivateAccessApplicationResponse = GetPrivateAccessApplicationResponse;
766
+ class GetPrivateAccessPolicyRequest extends $tea.Model {
767
+ constructor(map) {
768
+ super(map);
769
+ }
770
+ static names() {
771
+ return {
772
+ policyId: 'PolicyId',
773
+ };
774
+ }
775
+ static types() {
776
+ return {
777
+ policyId: 'string',
778
+ };
779
+ }
780
+ }
781
+ exports.GetPrivateAccessPolicyRequest = GetPrivateAccessPolicyRequest;
782
+ class GetPrivateAccessPolicyResponseBody extends $tea.Model {
783
+ constructor(map) {
784
+ super(map);
785
+ }
786
+ static names() {
787
+ return {
788
+ policy: 'Policy',
789
+ requestId: 'RequestId',
790
+ };
791
+ }
792
+ static types() {
793
+ return {
794
+ policy: GetPrivateAccessPolicyResponseBodyPolicy,
795
+ requestId: 'string',
796
+ };
797
+ }
798
+ }
799
+ exports.GetPrivateAccessPolicyResponseBody = GetPrivateAccessPolicyResponseBody;
800
+ class GetPrivateAccessPolicyResponse extends $tea.Model {
801
+ constructor(map) {
802
+ super(map);
803
+ }
804
+ static names() {
805
+ return {
806
+ headers: 'headers',
807
+ statusCode: 'statusCode',
808
+ body: 'body',
809
+ };
810
+ }
811
+ static types() {
812
+ return {
813
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
814
+ statusCode: 'number',
815
+ body: GetPrivateAccessPolicyResponseBody,
816
+ };
817
+ }
818
+ }
819
+ exports.GetPrivateAccessPolicyResponse = GetPrivateAccessPolicyResponse;
820
+ class GetUserGroupRequest extends $tea.Model {
821
+ constructor(map) {
822
+ super(map);
823
+ }
824
+ static names() {
825
+ return {
826
+ userGroupId: 'UserGroupId',
827
+ };
828
+ }
829
+ static types() {
830
+ return {
831
+ userGroupId: 'string',
832
+ };
833
+ }
834
+ }
835
+ exports.GetUserGroupRequest = GetUserGroupRequest;
836
+ class GetUserGroupResponseBody extends $tea.Model {
837
+ constructor(map) {
838
+ super(map);
839
+ }
840
+ static names() {
841
+ return {
842
+ requestId: 'RequestId',
843
+ userGroup: 'UserGroup',
844
+ };
845
+ }
846
+ static types() {
847
+ return {
848
+ requestId: 'string',
849
+ userGroup: GetUserGroupResponseBodyUserGroup,
850
+ };
851
+ }
852
+ }
853
+ exports.GetUserGroupResponseBody = GetUserGroupResponseBody;
854
+ class GetUserGroupResponse extends $tea.Model {
855
+ constructor(map) {
856
+ super(map);
857
+ }
858
+ static names() {
859
+ return {
860
+ headers: 'headers',
861
+ statusCode: 'statusCode',
862
+ body: 'body',
863
+ };
864
+ }
865
+ static types() {
866
+ return {
867
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
868
+ statusCode: 'number',
869
+ body: GetUserGroupResponseBody,
870
+ };
871
+ }
872
+ }
873
+ exports.GetUserGroupResponse = GetUserGroupResponse;
874
+ class ListApplicationsForPrivateAccessPolicyRequest extends $tea.Model {
875
+ constructor(map) {
876
+ super(map);
877
+ }
878
+ static names() {
879
+ return {
880
+ policyIds: 'PolicyIds',
881
+ };
882
+ }
883
+ static types() {
884
+ return {
885
+ policyIds: { 'type': 'array', 'itemType': 'string' },
886
+ };
887
+ }
888
+ }
889
+ exports.ListApplicationsForPrivateAccessPolicyRequest = ListApplicationsForPrivateAccessPolicyRequest;
890
+ class ListApplicationsForPrivateAccessPolicyShrinkRequest extends $tea.Model {
891
+ constructor(map) {
892
+ super(map);
893
+ }
894
+ static names() {
895
+ return {
896
+ policyIdsShrink: 'PolicyIds',
897
+ };
898
+ }
899
+ static types() {
900
+ return {
901
+ policyIdsShrink: 'string',
902
+ };
903
+ }
904
+ }
905
+ exports.ListApplicationsForPrivateAccessPolicyShrinkRequest = ListApplicationsForPrivateAccessPolicyShrinkRequest;
906
+ class ListApplicationsForPrivateAccessPolicyResponseBody extends $tea.Model {
907
+ constructor(map) {
908
+ super(map);
909
+ }
910
+ static names() {
911
+ return {
912
+ polices: 'Polices',
913
+ requestId: 'RequestId',
914
+ };
915
+ }
916
+ static types() {
917
+ return {
918
+ polices: { 'type': 'array', 'itemType': ListApplicationsForPrivateAccessPolicyResponseBodyPolices },
919
+ requestId: 'string',
920
+ };
921
+ }
922
+ }
923
+ exports.ListApplicationsForPrivateAccessPolicyResponseBody = ListApplicationsForPrivateAccessPolicyResponseBody;
924
+ class ListApplicationsForPrivateAccessPolicyResponse extends $tea.Model {
925
+ constructor(map) {
926
+ super(map);
927
+ }
928
+ static names() {
929
+ return {
930
+ headers: 'headers',
931
+ statusCode: 'statusCode',
932
+ body: 'body',
933
+ };
934
+ }
935
+ static types() {
936
+ return {
937
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
938
+ statusCode: 'number',
939
+ body: ListApplicationsForPrivateAccessPolicyResponseBody,
940
+ };
941
+ }
942
+ }
943
+ exports.ListApplicationsForPrivateAccessPolicyResponse = ListApplicationsForPrivateAccessPolicyResponse;
944
+ class ListApplicationsForPrivateAccessTagRequest extends $tea.Model {
945
+ constructor(map) {
946
+ super(map);
947
+ }
948
+ static names() {
949
+ return {
950
+ tagIds: 'TagIds',
951
+ };
952
+ }
953
+ static types() {
954
+ return {
955
+ tagIds: { 'type': 'array', 'itemType': 'string' },
956
+ };
957
+ }
958
+ }
959
+ exports.ListApplicationsForPrivateAccessTagRequest = ListApplicationsForPrivateAccessTagRequest;
960
+ class ListApplicationsForPrivateAccessTagShrinkRequest extends $tea.Model {
961
+ constructor(map) {
962
+ super(map);
963
+ }
964
+ static names() {
965
+ return {
966
+ tagIdsShrink: 'TagIds',
967
+ };
968
+ }
969
+ static types() {
970
+ return {
971
+ tagIdsShrink: 'string',
972
+ };
973
+ }
974
+ }
975
+ exports.ListApplicationsForPrivateAccessTagShrinkRequest = ListApplicationsForPrivateAccessTagShrinkRequest;
976
+ class ListApplicationsForPrivateAccessTagResponseBody extends $tea.Model {
977
+ constructor(map) {
978
+ super(map);
979
+ }
980
+ static names() {
981
+ return {
982
+ requestId: 'RequestId',
983
+ tags: 'Tags',
984
+ };
985
+ }
986
+ static types() {
987
+ return {
988
+ requestId: 'string',
989
+ tags: { 'type': 'array', 'itemType': ListApplicationsForPrivateAccessTagResponseBodyTags },
990
+ };
991
+ }
992
+ }
993
+ exports.ListApplicationsForPrivateAccessTagResponseBody = ListApplicationsForPrivateAccessTagResponseBody;
994
+ class ListApplicationsForPrivateAccessTagResponse extends $tea.Model {
995
+ constructor(map) {
996
+ super(map);
997
+ }
998
+ static names() {
999
+ return {
1000
+ headers: 'headers',
1001
+ statusCode: 'statusCode',
1002
+ body: 'body',
1003
+ };
1004
+ }
1005
+ static types() {
1006
+ return {
1007
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1008
+ statusCode: 'number',
1009
+ body: ListApplicationsForPrivateAccessTagResponseBody,
1010
+ };
1011
+ }
1012
+ }
1013
+ exports.ListApplicationsForPrivateAccessTagResponse = ListApplicationsForPrivateAccessTagResponse;
1014
+ class ListConnectorsRequest extends $tea.Model {
1015
+ constructor(map) {
1016
+ super(map);
1017
+ }
1018
+ static names() {
1019
+ return {
1020
+ connectorIds: 'ConnectorIds',
1021
+ currentPage: 'CurrentPage',
1022
+ name: 'Name',
1023
+ pageSize: 'PageSize',
1024
+ };
1025
+ }
1026
+ static types() {
1027
+ return {
1028
+ connectorIds: { 'type': 'array', 'itemType': 'string' },
1029
+ currentPage: 'number',
1030
+ name: 'string',
1031
+ pageSize: 'number',
1032
+ };
1033
+ }
1034
+ }
1035
+ exports.ListConnectorsRequest = ListConnectorsRequest;
1036
+ class ListConnectorsShrinkRequest extends $tea.Model {
1037
+ constructor(map) {
1038
+ super(map);
1039
+ }
1040
+ static names() {
1041
+ return {
1042
+ connectorIdsShrink: 'ConnectorIds',
1043
+ currentPage: 'CurrentPage',
1044
+ name: 'Name',
1045
+ pageSize: 'PageSize',
1046
+ };
1047
+ }
1048
+ static types() {
1049
+ return {
1050
+ connectorIdsShrink: 'string',
1051
+ currentPage: 'number',
1052
+ name: 'string',
1053
+ pageSize: 'number',
1054
+ };
1055
+ }
1056
+ }
1057
+ exports.ListConnectorsShrinkRequest = ListConnectorsShrinkRequest;
1058
+ class ListConnectorsResponseBody extends $tea.Model {
1059
+ constructor(map) {
1060
+ super(map);
1061
+ }
1062
+ static names() {
1063
+ return {
1064
+ connectors: 'Connectors',
1065
+ requestId: 'RequestId',
1066
+ totalNum: 'TotalNum',
1067
+ };
1068
+ }
1069
+ static types() {
1070
+ return {
1071
+ connectors: { 'type': 'array', 'itemType': ListConnectorsResponseBodyConnectors },
1072
+ requestId: 'string',
1073
+ totalNum: 'number',
1074
+ };
1075
+ }
1076
+ }
1077
+ exports.ListConnectorsResponseBody = ListConnectorsResponseBody;
1078
+ class ListConnectorsResponse extends $tea.Model {
1079
+ constructor(map) {
1080
+ super(map);
1081
+ }
1082
+ static names() {
1083
+ return {
1084
+ headers: 'headers',
1085
+ statusCode: 'statusCode',
1086
+ body: 'body',
1087
+ };
1088
+ }
1089
+ static types() {
1090
+ return {
1091
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1092
+ statusCode: 'number',
1093
+ body: ListConnectorsResponseBody,
1094
+ };
1095
+ }
1096
+ }
1097
+ exports.ListConnectorsResponse = ListConnectorsResponse;
1098
+ class ListPolicesForPrivateAccessApplicationRequest extends $tea.Model {
1099
+ constructor(map) {
1100
+ super(map);
1101
+ }
1102
+ static names() {
1103
+ return {
1104
+ applicationIds: 'ApplicationIds',
1105
+ };
1106
+ }
1107
+ static types() {
1108
+ return {
1109
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
1110
+ };
1111
+ }
1112
+ }
1113
+ exports.ListPolicesForPrivateAccessApplicationRequest = ListPolicesForPrivateAccessApplicationRequest;
1114
+ class ListPolicesForPrivateAccessApplicationShrinkRequest extends $tea.Model {
1115
+ constructor(map) {
1116
+ super(map);
1117
+ }
1118
+ static names() {
1119
+ return {
1120
+ applicationIdsShrink: 'ApplicationIds',
1121
+ };
1122
+ }
1123
+ static types() {
1124
+ return {
1125
+ applicationIdsShrink: 'string',
1126
+ };
1127
+ }
1128
+ }
1129
+ exports.ListPolicesForPrivateAccessApplicationShrinkRequest = ListPolicesForPrivateAccessApplicationShrinkRequest;
1130
+ class ListPolicesForPrivateAccessApplicationResponseBody extends $tea.Model {
1131
+ constructor(map) {
1132
+ super(map);
1133
+ }
1134
+ static names() {
1135
+ return {
1136
+ applications: 'Applications',
1137
+ requestId: 'RequestId',
1138
+ };
1139
+ }
1140
+ static types() {
1141
+ return {
1142
+ applications: { 'type': 'array', 'itemType': ListPolicesForPrivateAccessApplicationResponseBodyApplications },
1143
+ requestId: 'string',
1144
+ };
1145
+ }
1146
+ }
1147
+ exports.ListPolicesForPrivateAccessApplicationResponseBody = ListPolicesForPrivateAccessApplicationResponseBody;
1148
+ class ListPolicesForPrivateAccessApplicationResponse extends $tea.Model {
1149
+ constructor(map) {
1150
+ super(map);
1151
+ }
1152
+ static names() {
1153
+ return {
1154
+ headers: 'headers',
1155
+ statusCode: 'statusCode',
1156
+ body: 'body',
1157
+ };
1158
+ }
1159
+ static types() {
1160
+ return {
1161
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1162
+ statusCode: 'number',
1163
+ body: ListPolicesForPrivateAccessApplicationResponseBody,
1164
+ };
1165
+ }
1166
+ }
1167
+ exports.ListPolicesForPrivateAccessApplicationResponse = ListPolicesForPrivateAccessApplicationResponse;
1168
+ class ListPolicesForPrivateAccessTagRequest extends $tea.Model {
1169
+ constructor(map) {
1170
+ super(map);
1171
+ }
1172
+ static names() {
1173
+ return {
1174
+ tagIds: 'TagIds',
1175
+ };
1176
+ }
1177
+ static types() {
1178
+ return {
1179
+ tagIds: { 'type': 'array', 'itemType': 'string' },
1180
+ };
1181
+ }
1182
+ }
1183
+ exports.ListPolicesForPrivateAccessTagRequest = ListPolicesForPrivateAccessTagRequest;
1184
+ class ListPolicesForPrivateAccessTagShrinkRequest extends $tea.Model {
1185
+ constructor(map) {
1186
+ super(map);
1187
+ }
1188
+ static names() {
1189
+ return {
1190
+ tagIdsShrink: 'TagIds',
1191
+ };
1192
+ }
1193
+ static types() {
1194
+ return {
1195
+ tagIdsShrink: 'string',
1196
+ };
1197
+ }
1198
+ }
1199
+ exports.ListPolicesForPrivateAccessTagShrinkRequest = ListPolicesForPrivateAccessTagShrinkRequest;
1200
+ class ListPolicesForPrivateAccessTagResponseBody extends $tea.Model {
1201
+ constructor(map) {
1202
+ super(map);
1203
+ }
1204
+ static names() {
1205
+ return {
1206
+ requestId: 'RequestId',
1207
+ tags: 'Tags',
1208
+ };
1209
+ }
1210
+ static types() {
1211
+ return {
1212
+ requestId: 'string',
1213
+ tags: { 'type': 'array', 'itemType': ListPolicesForPrivateAccessTagResponseBodyTags },
1214
+ };
1215
+ }
1216
+ }
1217
+ exports.ListPolicesForPrivateAccessTagResponseBody = ListPolicesForPrivateAccessTagResponseBody;
1218
+ class ListPolicesForPrivateAccessTagResponse extends $tea.Model {
1219
+ constructor(map) {
1220
+ super(map);
1221
+ }
1222
+ static names() {
1223
+ return {
1224
+ headers: 'headers',
1225
+ statusCode: 'statusCode',
1226
+ body: 'body',
1227
+ };
1228
+ }
1229
+ static types() {
1230
+ return {
1231
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1232
+ statusCode: 'number',
1233
+ body: ListPolicesForPrivateAccessTagResponseBody,
1234
+ };
1235
+ }
1236
+ }
1237
+ exports.ListPolicesForPrivateAccessTagResponse = ListPolicesForPrivateAccessTagResponse;
1238
+ class ListPolicesForUserGroupRequest extends $tea.Model {
1239
+ constructor(map) {
1240
+ super(map);
1241
+ }
1242
+ static names() {
1243
+ return {
1244
+ userGroupIds: 'UserGroupIds',
1245
+ };
1246
+ }
1247
+ static types() {
1248
+ return {
1249
+ userGroupIds: { 'type': 'array', 'itemType': 'string' },
1250
+ };
1251
+ }
1252
+ }
1253
+ exports.ListPolicesForUserGroupRequest = ListPolicesForUserGroupRequest;
1254
+ class ListPolicesForUserGroupShrinkRequest extends $tea.Model {
1255
+ constructor(map) {
1256
+ super(map);
1257
+ }
1258
+ static names() {
1259
+ return {
1260
+ userGroupIdsShrink: 'UserGroupIds',
1261
+ };
1262
+ }
1263
+ static types() {
1264
+ return {
1265
+ userGroupIdsShrink: 'string',
1266
+ };
1267
+ }
1268
+ }
1269
+ exports.ListPolicesForUserGroupShrinkRequest = ListPolicesForUserGroupShrinkRequest;
1270
+ class ListPolicesForUserGroupResponseBody extends $tea.Model {
1271
+ constructor(map) {
1272
+ super(map);
1273
+ }
1274
+ static names() {
1275
+ return {
1276
+ requestId: 'RequestId',
1277
+ userGroups: 'UserGroups',
1278
+ };
1279
+ }
1280
+ static types() {
1281
+ return {
1282
+ requestId: 'string',
1283
+ userGroups: { 'type': 'array', 'itemType': ListPolicesForUserGroupResponseBodyUserGroups },
1284
+ };
1285
+ }
1286
+ }
1287
+ exports.ListPolicesForUserGroupResponseBody = ListPolicesForUserGroupResponseBody;
1288
+ class ListPolicesForUserGroupResponse extends $tea.Model {
1289
+ constructor(map) {
1290
+ super(map);
1291
+ }
1292
+ static names() {
1293
+ return {
1294
+ headers: 'headers',
1295
+ statusCode: 'statusCode',
1296
+ body: 'body',
1297
+ };
1298
+ }
1299
+ static types() {
1300
+ return {
1301
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1302
+ statusCode: 'number',
1303
+ body: ListPolicesForUserGroupResponseBody,
1304
+ };
1305
+ }
1306
+ }
1307
+ exports.ListPolicesForUserGroupResponse = ListPolicesForUserGroupResponse;
1308
+ class ListPrivateAccessApplicationsRequest extends $tea.Model {
1309
+ constructor(map) {
1310
+ super(map);
1311
+ }
1312
+ static names() {
1313
+ return {
1314
+ address: 'Address',
1315
+ applicationIds: 'ApplicationIds',
1316
+ currentPage: 'CurrentPage',
1317
+ name: 'Name',
1318
+ pageSize: 'PageSize',
1319
+ policyId: 'PolicyId',
1320
+ status: 'Status',
1321
+ tagId: 'TagId',
1322
+ };
1323
+ }
1324
+ static types() {
1325
+ return {
1326
+ address: 'string',
1327
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
1328
+ currentPage: 'number',
1329
+ name: 'string',
1330
+ pageSize: 'number',
1331
+ policyId: 'string',
1332
+ status: 'string',
1333
+ tagId: 'string',
1334
+ };
1335
+ }
1336
+ }
1337
+ exports.ListPrivateAccessApplicationsRequest = ListPrivateAccessApplicationsRequest;
1338
+ class ListPrivateAccessApplicationsShrinkRequest extends $tea.Model {
1339
+ constructor(map) {
1340
+ super(map);
1341
+ }
1342
+ static names() {
1343
+ return {
1344
+ address: 'Address',
1345
+ applicationIdsShrink: 'ApplicationIds',
1346
+ currentPage: 'CurrentPage',
1347
+ name: 'Name',
1348
+ pageSize: 'PageSize',
1349
+ policyId: 'PolicyId',
1350
+ status: 'Status',
1351
+ tagId: 'TagId',
1352
+ };
1353
+ }
1354
+ static types() {
1355
+ return {
1356
+ address: 'string',
1357
+ applicationIdsShrink: 'string',
1358
+ currentPage: 'number',
1359
+ name: 'string',
1360
+ pageSize: 'number',
1361
+ policyId: 'string',
1362
+ status: 'string',
1363
+ tagId: 'string',
1364
+ };
1365
+ }
1366
+ }
1367
+ exports.ListPrivateAccessApplicationsShrinkRequest = ListPrivateAccessApplicationsShrinkRequest;
1368
+ class ListPrivateAccessApplicationsResponseBody extends $tea.Model {
1369
+ constructor(map) {
1370
+ super(map);
1371
+ }
1372
+ static names() {
1373
+ return {
1374
+ applications: 'Applications',
1375
+ requestId: 'RequestId',
1376
+ totalNum: 'TotalNum',
1377
+ };
1378
+ }
1379
+ static types() {
1380
+ return {
1381
+ applications: { 'type': 'array', 'itemType': ListPrivateAccessApplicationsResponseBodyApplications },
1382
+ requestId: 'string',
1383
+ totalNum: 'number',
1384
+ };
1385
+ }
1386
+ }
1387
+ exports.ListPrivateAccessApplicationsResponseBody = ListPrivateAccessApplicationsResponseBody;
1388
+ class ListPrivateAccessApplicationsResponse extends $tea.Model {
1389
+ constructor(map) {
1390
+ super(map);
1391
+ }
1392
+ static names() {
1393
+ return {
1394
+ headers: 'headers',
1395
+ statusCode: 'statusCode',
1396
+ body: 'body',
1397
+ };
1398
+ }
1399
+ static types() {
1400
+ return {
1401
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1402
+ statusCode: 'number',
1403
+ body: ListPrivateAccessApplicationsResponseBody,
1404
+ };
1405
+ }
1406
+ }
1407
+ exports.ListPrivateAccessApplicationsResponse = ListPrivateAccessApplicationsResponse;
1408
+ class ListPrivateAccessPolicesRequest extends $tea.Model {
1409
+ constructor(map) {
1410
+ super(map);
1411
+ }
1412
+ static names() {
1413
+ return {
1414
+ applicationId: 'ApplicationId',
1415
+ currentPage: 'CurrentPage',
1416
+ name: 'Name',
1417
+ pageSize: 'PageSize',
1418
+ policyAction: 'PolicyAction',
1419
+ policyIds: 'PolicyIds',
1420
+ status: 'Status',
1421
+ tagId: 'TagId',
1422
+ userGroupId: 'UserGroupId',
1423
+ };
1424
+ }
1425
+ static types() {
1426
+ return {
1427
+ applicationId: 'string',
1428
+ currentPage: 'number',
1429
+ name: 'string',
1430
+ pageSize: 'number',
1431
+ policyAction: 'string',
1432
+ policyIds: { 'type': 'array', 'itemType': 'string' },
1433
+ status: 'string',
1434
+ tagId: 'string',
1435
+ userGroupId: 'string',
1436
+ };
1437
+ }
1438
+ }
1439
+ exports.ListPrivateAccessPolicesRequest = ListPrivateAccessPolicesRequest;
1440
+ class ListPrivateAccessPolicesShrinkRequest extends $tea.Model {
1441
+ constructor(map) {
1442
+ super(map);
1443
+ }
1444
+ static names() {
1445
+ return {
1446
+ applicationId: 'ApplicationId',
1447
+ currentPage: 'CurrentPage',
1448
+ name: 'Name',
1449
+ pageSize: 'PageSize',
1450
+ policyAction: 'PolicyAction',
1451
+ policyIdsShrink: 'PolicyIds',
1452
+ status: 'Status',
1453
+ tagId: 'TagId',
1454
+ userGroupId: 'UserGroupId',
1455
+ };
1456
+ }
1457
+ static types() {
1458
+ return {
1459
+ applicationId: 'string',
1460
+ currentPage: 'number',
1461
+ name: 'string',
1462
+ pageSize: 'number',
1463
+ policyAction: 'string',
1464
+ policyIdsShrink: 'string',
1465
+ status: 'string',
1466
+ tagId: 'string',
1467
+ userGroupId: 'string',
1468
+ };
1469
+ }
1470
+ }
1471
+ exports.ListPrivateAccessPolicesShrinkRequest = ListPrivateAccessPolicesShrinkRequest;
1472
+ class ListPrivateAccessPolicesResponseBody extends $tea.Model {
1473
+ constructor(map) {
1474
+ super(map);
1475
+ }
1476
+ static names() {
1477
+ return {
1478
+ polices: 'Polices',
1479
+ requestId: 'RequestId',
1480
+ totalNum: 'TotalNum',
1481
+ };
1482
+ }
1483
+ static types() {
1484
+ return {
1485
+ polices: { 'type': 'array', 'itemType': ListPrivateAccessPolicesResponseBodyPolices },
1486
+ requestId: 'string',
1487
+ totalNum: 'number',
1488
+ };
1489
+ }
1490
+ }
1491
+ exports.ListPrivateAccessPolicesResponseBody = ListPrivateAccessPolicesResponseBody;
1492
+ class ListPrivateAccessPolicesResponse extends $tea.Model {
1493
+ constructor(map) {
1494
+ super(map);
1495
+ }
1496
+ static names() {
1497
+ return {
1498
+ headers: 'headers',
1499
+ statusCode: 'statusCode',
1500
+ body: 'body',
1501
+ };
1502
+ }
1503
+ static types() {
1504
+ return {
1505
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1506
+ statusCode: 'number',
1507
+ body: ListPrivateAccessPolicesResponseBody,
1508
+ };
1509
+ }
1510
+ }
1511
+ exports.ListPrivateAccessPolicesResponse = ListPrivateAccessPolicesResponse;
1512
+ class ListPrivateAccessTagsRequest extends $tea.Model {
1513
+ constructor(map) {
1514
+ super(map);
1515
+ }
1516
+ static names() {
1517
+ return {
1518
+ applicationId: 'ApplicationId',
1519
+ currentPage: 'CurrentPage',
1520
+ name: 'Name',
1521
+ pageSize: 'PageSize',
1522
+ policyId: 'PolicyId',
1523
+ tagIds: 'TagIds',
1524
+ };
1525
+ }
1526
+ static types() {
1527
+ return {
1528
+ applicationId: 'string',
1529
+ currentPage: 'number',
1530
+ name: 'string',
1531
+ pageSize: 'number',
1532
+ policyId: 'string',
1533
+ tagIds: { 'type': 'array', 'itemType': 'string' },
1534
+ };
1535
+ }
1536
+ }
1537
+ exports.ListPrivateAccessTagsRequest = ListPrivateAccessTagsRequest;
1538
+ class ListPrivateAccessTagsShrinkRequest extends $tea.Model {
1539
+ constructor(map) {
1540
+ super(map);
1541
+ }
1542
+ static names() {
1543
+ return {
1544
+ applicationId: 'ApplicationId',
1545
+ currentPage: 'CurrentPage',
1546
+ name: 'Name',
1547
+ pageSize: 'PageSize',
1548
+ policyId: 'PolicyId',
1549
+ tagIdsShrink: 'TagIds',
1550
+ };
1551
+ }
1552
+ static types() {
1553
+ return {
1554
+ applicationId: 'string',
1555
+ currentPage: 'number',
1556
+ name: 'string',
1557
+ pageSize: 'number',
1558
+ policyId: 'string',
1559
+ tagIdsShrink: 'string',
1560
+ };
1561
+ }
1562
+ }
1563
+ exports.ListPrivateAccessTagsShrinkRequest = ListPrivateAccessTagsShrinkRequest;
1564
+ class ListPrivateAccessTagsResponseBody extends $tea.Model {
1565
+ constructor(map) {
1566
+ super(map);
1567
+ }
1568
+ static names() {
1569
+ return {
1570
+ requestId: 'RequestId',
1571
+ tags: 'Tags',
1572
+ totalNum: 'TotalNum',
1573
+ };
1574
+ }
1575
+ static types() {
1576
+ return {
1577
+ requestId: 'string',
1578
+ tags: { 'type': 'array', 'itemType': ListPrivateAccessTagsResponseBodyTags },
1579
+ totalNum: 'number',
1580
+ };
1581
+ }
1582
+ }
1583
+ exports.ListPrivateAccessTagsResponseBody = ListPrivateAccessTagsResponseBody;
1584
+ class ListPrivateAccessTagsResponse extends $tea.Model {
1585
+ constructor(map) {
1586
+ super(map);
1587
+ }
1588
+ static names() {
1589
+ return {
1590
+ headers: 'headers',
1591
+ statusCode: 'statusCode',
1592
+ body: 'body',
1593
+ };
1594
+ }
1595
+ static types() {
1596
+ return {
1597
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1598
+ statusCode: 'number',
1599
+ body: ListPrivateAccessTagsResponseBody,
1600
+ };
1601
+ }
1602
+ }
1603
+ exports.ListPrivateAccessTagsResponse = ListPrivateAccessTagsResponse;
1604
+ class ListTagsForPrivateAccessApplicationRequest extends $tea.Model {
1605
+ constructor(map) {
1606
+ super(map);
1607
+ }
1608
+ static names() {
1609
+ return {
1610
+ applicationIds: 'ApplicationIds',
1611
+ };
1612
+ }
1613
+ static types() {
1614
+ return {
1615
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
1616
+ };
1617
+ }
1618
+ }
1619
+ exports.ListTagsForPrivateAccessApplicationRequest = ListTagsForPrivateAccessApplicationRequest;
1620
+ class ListTagsForPrivateAccessApplicationShrinkRequest extends $tea.Model {
1621
+ constructor(map) {
1622
+ super(map);
1623
+ }
1624
+ static names() {
1625
+ return {
1626
+ applicationIdsShrink: 'ApplicationIds',
1627
+ };
1628
+ }
1629
+ static types() {
1630
+ return {
1631
+ applicationIdsShrink: 'string',
1632
+ };
1633
+ }
1634
+ }
1635
+ exports.ListTagsForPrivateAccessApplicationShrinkRequest = ListTagsForPrivateAccessApplicationShrinkRequest;
1636
+ class ListTagsForPrivateAccessApplicationResponseBody extends $tea.Model {
1637
+ constructor(map) {
1638
+ super(map);
1639
+ }
1640
+ static names() {
1641
+ return {
1642
+ applications: 'Applications',
1643
+ requestId: 'RequestId',
1644
+ };
1645
+ }
1646
+ static types() {
1647
+ return {
1648
+ applications: { 'type': 'array', 'itemType': ListTagsForPrivateAccessApplicationResponseBodyApplications },
1649
+ requestId: 'string',
1650
+ };
1651
+ }
1652
+ }
1653
+ exports.ListTagsForPrivateAccessApplicationResponseBody = ListTagsForPrivateAccessApplicationResponseBody;
1654
+ class ListTagsForPrivateAccessApplicationResponse extends $tea.Model {
1655
+ constructor(map) {
1656
+ super(map);
1657
+ }
1658
+ static names() {
1659
+ return {
1660
+ headers: 'headers',
1661
+ statusCode: 'statusCode',
1662
+ body: 'body',
1663
+ };
1664
+ }
1665
+ static types() {
1666
+ return {
1667
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1668
+ statusCode: 'number',
1669
+ body: ListTagsForPrivateAccessApplicationResponseBody,
1670
+ };
1671
+ }
1672
+ }
1673
+ exports.ListTagsForPrivateAccessApplicationResponse = ListTagsForPrivateAccessApplicationResponse;
1674
+ class ListTagsForPrivateAccessPolicyRequest extends $tea.Model {
1675
+ constructor(map) {
1676
+ super(map);
1677
+ }
1678
+ static names() {
1679
+ return {
1680
+ policyIds: 'PolicyIds',
1681
+ };
1682
+ }
1683
+ static types() {
1684
+ return {
1685
+ policyIds: { 'type': 'array', 'itemType': 'string' },
1686
+ };
1687
+ }
1688
+ }
1689
+ exports.ListTagsForPrivateAccessPolicyRequest = ListTagsForPrivateAccessPolicyRequest;
1690
+ class ListTagsForPrivateAccessPolicyShrinkRequest extends $tea.Model {
1691
+ constructor(map) {
1692
+ super(map);
1693
+ }
1694
+ static names() {
1695
+ return {
1696
+ policyIdsShrink: 'PolicyIds',
1697
+ };
1698
+ }
1699
+ static types() {
1700
+ return {
1701
+ policyIdsShrink: 'string',
1702
+ };
1703
+ }
1704
+ }
1705
+ exports.ListTagsForPrivateAccessPolicyShrinkRequest = ListTagsForPrivateAccessPolicyShrinkRequest;
1706
+ class ListTagsForPrivateAccessPolicyResponseBody extends $tea.Model {
1707
+ constructor(map) {
1708
+ super(map);
1709
+ }
1710
+ static names() {
1711
+ return {
1712
+ polices: 'Polices',
1713
+ requestId: 'RequestId',
1714
+ };
1715
+ }
1716
+ static types() {
1717
+ return {
1718
+ polices: { 'type': 'array', 'itemType': ListTagsForPrivateAccessPolicyResponseBodyPolices },
1719
+ requestId: 'string',
1720
+ };
1721
+ }
1722
+ }
1723
+ exports.ListTagsForPrivateAccessPolicyResponseBody = ListTagsForPrivateAccessPolicyResponseBody;
1724
+ class ListTagsForPrivateAccessPolicyResponse extends $tea.Model {
1725
+ constructor(map) {
1726
+ super(map);
1727
+ }
1728
+ static names() {
1729
+ return {
1730
+ headers: 'headers',
1731
+ statusCode: 'statusCode',
1732
+ body: 'body',
1733
+ };
1734
+ }
1735
+ static types() {
1736
+ return {
1737
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1738
+ statusCode: 'number',
1739
+ body: ListTagsForPrivateAccessPolicyResponseBody,
1740
+ };
1741
+ }
1742
+ }
1743
+ exports.ListTagsForPrivateAccessPolicyResponse = ListTagsForPrivateAccessPolicyResponse;
1744
+ class ListUserGroupsRequest extends $tea.Model {
1745
+ constructor(map) {
1746
+ super(map);
1747
+ }
1748
+ static names() {
1749
+ return {
1750
+ attributeValue: 'AttributeValue',
1751
+ currentPage: 'CurrentPage',
1752
+ name: 'Name',
1753
+ PAPolicyId: 'PAPolicyId',
1754
+ pageSize: 'PageSize',
1755
+ userGroupIds: 'UserGroupIds',
1756
+ };
1757
+ }
1758
+ static types() {
1759
+ return {
1760
+ attributeValue: 'string',
1761
+ currentPage: 'number',
1762
+ name: 'string',
1763
+ PAPolicyId: 'string',
1764
+ pageSize: 'number',
1765
+ userGroupIds: { 'type': 'array', 'itemType': 'string' },
1766
+ };
1767
+ }
1768
+ }
1769
+ exports.ListUserGroupsRequest = ListUserGroupsRequest;
1770
+ class ListUserGroupsShrinkRequest extends $tea.Model {
1771
+ constructor(map) {
1772
+ super(map);
1773
+ }
1774
+ static names() {
1775
+ return {
1776
+ attributeValue: 'AttributeValue',
1777
+ currentPage: 'CurrentPage',
1778
+ name: 'Name',
1779
+ PAPolicyId: 'PAPolicyId',
1780
+ pageSize: 'PageSize',
1781
+ userGroupIdsShrink: 'UserGroupIds',
1782
+ };
1783
+ }
1784
+ static types() {
1785
+ return {
1786
+ attributeValue: 'string',
1787
+ currentPage: 'number',
1788
+ name: 'string',
1789
+ PAPolicyId: 'string',
1790
+ pageSize: 'number',
1791
+ userGroupIdsShrink: 'string',
1792
+ };
1793
+ }
1794
+ }
1795
+ exports.ListUserGroupsShrinkRequest = ListUserGroupsShrinkRequest;
1796
+ class ListUserGroupsResponseBody extends $tea.Model {
1797
+ constructor(map) {
1798
+ super(map);
1799
+ }
1800
+ static names() {
1801
+ return {
1802
+ requestId: 'RequestId',
1803
+ totalNum: 'TotalNum',
1804
+ userGroups: 'UserGroups',
1805
+ };
1806
+ }
1807
+ static types() {
1808
+ return {
1809
+ requestId: 'string',
1810
+ totalNum: 'number',
1811
+ userGroups: { 'type': 'array', 'itemType': ListUserGroupsResponseBodyUserGroups },
1812
+ };
1813
+ }
1814
+ }
1815
+ exports.ListUserGroupsResponseBody = ListUserGroupsResponseBody;
1816
+ class ListUserGroupsResponse extends $tea.Model {
1817
+ constructor(map) {
1818
+ super(map);
1819
+ }
1820
+ static names() {
1821
+ return {
1822
+ headers: 'headers',
1823
+ statusCode: 'statusCode',
1824
+ body: 'body',
1825
+ };
1826
+ }
1827
+ static types() {
1828
+ return {
1829
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1830
+ statusCode: 'number',
1831
+ body: ListUserGroupsResponseBody,
1832
+ };
1833
+ }
1834
+ }
1835
+ exports.ListUserGroupsResponse = ListUserGroupsResponse;
1836
+ class ListUserGroupsForPrivateAccessPolicyRequest extends $tea.Model {
1837
+ constructor(map) {
1838
+ super(map);
1839
+ }
1840
+ static names() {
1841
+ return {
1842
+ policyIds: 'PolicyIds',
1843
+ };
1844
+ }
1845
+ static types() {
1846
+ return {
1847
+ policyIds: { 'type': 'array', 'itemType': 'string' },
1848
+ };
1849
+ }
1850
+ }
1851
+ exports.ListUserGroupsForPrivateAccessPolicyRequest = ListUserGroupsForPrivateAccessPolicyRequest;
1852
+ class ListUserGroupsForPrivateAccessPolicyShrinkRequest extends $tea.Model {
1853
+ constructor(map) {
1854
+ super(map);
1855
+ }
1856
+ static names() {
1857
+ return {
1858
+ policyIdsShrink: 'PolicyIds',
1859
+ };
1860
+ }
1861
+ static types() {
1862
+ return {
1863
+ policyIdsShrink: 'string',
1864
+ };
1865
+ }
1866
+ }
1867
+ exports.ListUserGroupsForPrivateAccessPolicyShrinkRequest = ListUserGroupsForPrivateAccessPolicyShrinkRequest;
1868
+ class ListUserGroupsForPrivateAccessPolicyResponseBody extends $tea.Model {
1869
+ constructor(map) {
1870
+ super(map);
1871
+ }
1872
+ static names() {
1873
+ return {
1874
+ polices: 'Polices',
1875
+ requestId: 'RequestId',
1876
+ };
1877
+ }
1878
+ static types() {
1879
+ return {
1880
+ polices: { 'type': 'array', 'itemType': ListUserGroupsForPrivateAccessPolicyResponseBodyPolices },
1881
+ requestId: 'string',
1882
+ };
1883
+ }
1884
+ }
1885
+ exports.ListUserGroupsForPrivateAccessPolicyResponseBody = ListUserGroupsForPrivateAccessPolicyResponseBody;
1886
+ class ListUserGroupsForPrivateAccessPolicyResponse extends $tea.Model {
1887
+ constructor(map) {
1888
+ super(map);
1889
+ }
1890
+ static names() {
1891
+ return {
1892
+ headers: 'headers',
1893
+ statusCode: 'statusCode',
1894
+ body: 'body',
1895
+ };
1896
+ }
1897
+ static types() {
1898
+ return {
1899
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1900
+ statusCode: 'number',
1901
+ body: ListUserGroupsForPrivateAccessPolicyResponseBody,
1902
+ };
1903
+ }
1904
+ }
1905
+ exports.ListUserGroupsForPrivateAccessPolicyResponse = ListUserGroupsForPrivateAccessPolicyResponse;
1906
+ class UpdatePrivateAccessApplicationRequest extends $tea.Model {
1907
+ constructor(map) {
1908
+ super(map);
1909
+ }
1910
+ static names() {
1911
+ return {
1912
+ addresses: 'Addresses',
1913
+ applicationId: 'ApplicationId',
1914
+ description: 'Description',
1915
+ modifyType: 'ModifyType',
1916
+ portRanges: 'PortRanges',
1917
+ protocol: 'Protocol',
1918
+ status: 'Status',
1919
+ tagIds: 'TagIds',
1920
+ };
1921
+ }
1922
+ static types() {
1923
+ return {
1924
+ addresses: { 'type': 'array', 'itemType': 'string' },
1925
+ applicationId: 'string',
1926
+ description: 'string',
1927
+ modifyType: 'string',
1928
+ portRanges: { 'type': 'array', 'itemType': UpdatePrivateAccessApplicationRequestPortRanges },
1929
+ protocol: 'string',
1930
+ status: 'string',
1931
+ tagIds: { 'type': 'array', 'itemType': 'string' },
1932
+ };
1933
+ }
1934
+ }
1935
+ exports.UpdatePrivateAccessApplicationRequest = UpdatePrivateAccessApplicationRequest;
1936
+ class UpdatePrivateAccessApplicationShrinkRequest extends $tea.Model {
1937
+ constructor(map) {
1938
+ super(map);
1939
+ }
1940
+ static names() {
1941
+ return {
1942
+ addressesShrink: 'Addresses',
1943
+ applicationId: 'ApplicationId',
1944
+ description: 'Description',
1945
+ modifyType: 'ModifyType',
1946
+ portRangesShrink: 'PortRanges',
1947
+ protocol: 'Protocol',
1948
+ status: 'Status',
1949
+ tagIdsShrink: 'TagIds',
1950
+ };
1951
+ }
1952
+ static types() {
1953
+ return {
1954
+ addressesShrink: 'string',
1955
+ applicationId: 'string',
1956
+ description: 'string',
1957
+ modifyType: 'string',
1958
+ portRangesShrink: 'string',
1959
+ protocol: 'string',
1960
+ status: 'string',
1961
+ tagIdsShrink: 'string',
1962
+ };
1963
+ }
1964
+ }
1965
+ exports.UpdatePrivateAccessApplicationShrinkRequest = UpdatePrivateAccessApplicationShrinkRequest;
1966
+ class UpdatePrivateAccessApplicationResponseBody extends $tea.Model {
1967
+ constructor(map) {
1968
+ super(map);
1969
+ }
1970
+ static names() {
1971
+ return {
1972
+ requestId: 'RequestId',
1973
+ };
1974
+ }
1975
+ static types() {
1976
+ return {
1977
+ requestId: 'string',
1978
+ };
1979
+ }
1980
+ }
1981
+ exports.UpdatePrivateAccessApplicationResponseBody = UpdatePrivateAccessApplicationResponseBody;
1982
+ class UpdatePrivateAccessApplicationResponse extends $tea.Model {
1983
+ constructor(map) {
1984
+ super(map);
1985
+ }
1986
+ static names() {
1987
+ return {
1988
+ headers: 'headers',
1989
+ statusCode: 'statusCode',
1990
+ body: 'body',
1991
+ };
1992
+ }
1993
+ static types() {
1994
+ return {
1995
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1996
+ statusCode: 'number',
1997
+ body: UpdatePrivateAccessApplicationResponseBody,
1998
+ };
1999
+ }
2000
+ }
2001
+ exports.UpdatePrivateAccessApplicationResponse = UpdatePrivateAccessApplicationResponse;
2002
+ class UpdatePrivateAccessPolicyRequest extends $tea.Model {
2003
+ constructor(map) {
2004
+ super(map);
2005
+ }
2006
+ static names() {
2007
+ return {
2008
+ applicationIds: 'ApplicationIds',
2009
+ applicationType: 'ApplicationType',
2010
+ customUserAttributes: 'CustomUserAttributes',
2011
+ description: 'Description',
2012
+ modifyType: 'ModifyType',
2013
+ policyAction: 'PolicyAction',
2014
+ policyId: 'PolicyId',
2015
+ priority: 'Priority',
2016
+ status: 'Status',
2017
+ tagIds: 'TagIds',
2018
+ userGroupIds: 'UserGroupIds',
2019
+ userGroupMode: 'UserGroupMode',
2020
+ };
2021
+ }
2022
+ static types() {
2023
+ return {
2024
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
2025
+ applicationType: 'string',
2026
+ customUserAttributes: { 'type': 'array', 'itemType': UpdatePrivateAccessPolicyRequestCustomUserAttributes },
2027
+ description: 'string',
2028
+ modifyType: 'string',
2029
+ policyAction: 'string',
2030
+ policyId: 'string',
2031
+ priority: 'number',
2032
+ status: 'string',
2033
+ tagIds: { 'type': 'array', 'itemType': 'string' },
2034
+ userGroupIds: { 'type': 'array', 'itemType': 'string' },
2035
+ userGroupMode: 'string',
2036
+ };
2037
+ }
2038
+ }
2039
+ exports.UpdatePrivateAccessPolicyRequest = UpdatePrivateAccessPolicyRequest;
2040
+ class UpdatePrivateAccessPolicyShrinkRequest extends $tea.Model {
2041
+ constructor(map) {
2042
+ super(map);
2043
+ }
2044
+ static names() {
2045
+ return {
2046
+ applicationIdsShrink: 'ApplicationIds',
2047
+ applicationType: 'ApplicationType',
2048
+ customUserAttributesShrink: 'CustomUserAttributes',
2049
+ description: 'Description',
2050
+ modifyType: 'ModifyType',
2051
+ policyAction: 'PolicyAction',
2052
+ policyId: 'PolicyId',
2053
+ priority: 'Priority',
2054
+ status: 'Status',
2055
+ tagIdsShrink: 'TagIds',
2056
+ userGroupIdsShrink: 'UserGroupIds',
2057
+ userGroupMode: 'UserGroupMode',
2058
+ };
2059
+ }
2060
+ static types() {
2061
+ return {
2062
+ applicationIdsShrink: 'string',
2063
+ applicationType: 'string',
2064
+ customUserAttributesShrink: 'string',
2065
+ description: 'string',
2066
+ modifyType: 'string',
2067
+ policyAction: 'string',
2068
+ policyId: 'string',
2069
+ priority: 'number',
2070
+ status: 'string',
2071
+ tagIdsShrink: 'string',
2072
+ userGroupIdsShrink: 'string',
2073
+ userGroupMode: 'string',
2074
+ };
2075
+ }
2076
+ }
2077
+ exports.UpdatePrivateAccessPolicyShrinkRequest = UpdatePrivateAccessPolicyShrinkRequest;
2078
+ class UpdatePrivateAccessPolicyResponseBody extends $tea.Model {
2079
+ constructor(map) {
2080
+ super(map);
2081
+ }
2082
+ static names() {
2083
+ return {
2084
+ requestId: 'RequestId',
2085
+ };
2086
+ }
2087
+ static types() {
2088
+ return {
2089
+ requestId: 'string',
2090
+ };
2091
+ }
2092
+ }
2093
+ exports.UpdatePrivateAccessPolicyResponseBody = UpdatePrivateAccessPolicyResponseBody;
2094
+ class UpdatePrivateAccessPolicyResponse extends $tea.Model {
2095
+ constructor(map) {
2096
+ super(map);
2097
+ }
2098
+ static names() {
2099
+ return {
2100
+ headers: 'headers',
2101
+ statusCode: 'statusCode',
2102
+ body: 'body',
2103
+ };
2104
+ }
2105
+ static types() {
2106
+ return {
2107
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2108
+ statusCode: 'number',
2109
+ body: UpdatePrivateAccessPolicyResponseBody,
2110
+ };
2111
+ }
2112
+ }
2113
+ exports.UpdatePrivateAccessPolicyResponse = UpdatePrivateAccessPolicyResponse;
2114
+ class UpdateUserGroupRequest extends $tea.Model {
2115
+ constructor(map) {
2116
+ super(map);
2117
+ }
2118
+ static names() {
2119
+ return {
2120
+ attributes: 'Attributes',
2121
+ description: 'Description',
2122
+ modifyType: 'ModifyType',
2123
+ userGroupId: 'UserGroupId',
2124
+ };
2125
+ }
2126
+ static types() {
2127
+ return {
2128
+ attributes: { 'type': 'array', 'itemType': UpdateUserGroupRequestAttributes },
2129
+ description: 'string',
2130
+ modifyType: 'string',
2131
+ userGroupId: 'string',
2132
+ };
2133
+ }
2134
+ }
2135
+ exports.UpdateUserGroupRequest = UpdateUserGroupRequest;
2136
+ class UpdateUserGroupShrinkRequest extends $tea.Model {
2137
+ constructor(map) {
2138
+ super(map);
2139
+ }
2140
+ static names() {
2141
+ return {
2142
+ attributesShrink: 'Attributes',
2143
+ description: 'Description',
2144
+ modifyType: 'ModifyType',
2145
+ userGroupId: 'UserGroupId',
2146
+ };
2147
+ }
2148
+ static types() {
2149
+ return {
2150
+ attributesShrink: 'string',
2151
+ description: 'string',
2152
+ modifyType: 'string',
2153
+ userGroupId: 'string',
2154
+ };
2155
+ }
2156
+ }
2157
+ exports.UpdateUserGroupShrinkRequest = UpdateUserGroupShrinkRequest;
2158
+ class UpdateUserGroupResponseBody extends $tea.Model {
2159
+ constructor(map) {
2160
+ super(map);
2161
+ }
2162
+ static names() {
2163
+ return {
2164
+ requestId: 'RequestId',
2165
+ };
2166
+ }
2167
+ static types() {
2168
+ return {
2169
+ requestId: 'string',
2170
+ };
2171
+ }
2172
+ }
2173
+ exports.UpdateUserGroupResponseBody = UpdateUserGroupResponseBody;
2174
+ class UpdateUserGroupResponse extends $tea.Model {
2175
+ constructor(map) {
2176
+ super(map);
2177
+ }
2178
+ static names() {
2179
+ return {
2180
+ headers: 'headers',
2181
+ statusCode: 'statusCode',
2182
+ body: 'body',
2183
+ };
2184
+ }
2185
+ static types() {
2186
+ return {
2187
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2188
+ statusCode: 'number',
2189
+ body: UpdateUserGroupResponseBody,
2190
+ };
2191
+ }
2192
+ }
2193
+ exports.UpdateUserGroupResponse = UpdateUserGroupResponse;
2194
+ class CreatePrivateAccessApplicationRequestPortRanges extends $tea.Model {
2195
+ constructor(map) {
2196
+ super(map);
2197
+ }
2198
+ static names() {
2199
+ return {
2200
+ begin: 'Begin',
2201
+ end: 'End',
2202
+ };
2203
+ }
2204
+ static types() {
2205
+ return {
2206
+ begin: 'number',
2207
+ end: 'number',
2208
+ };
2209
+ }
2210
+ }
2211
+ exports.CreatePrivateAccessApplicationRequestPortRanges = CreatePrivateAccessApplicationRequestPortRanges;
2212
+ class CreatePrivateAccessPolicyRequestCustomUserAttributes extends $tea.Model {
2213
+ constructor(map) {
2214
+ super(map);
2215
+ }
2216
+ static names() {
2217
+ return {
2218
+ idpId: 'IdpId',
2219
+ relation: 'Relation',
2220
+ userGroupType: 'UserGroupType',
2221
+ value: 'Value',
2222
+ };
2223
+ }
2224
+ static types() {
2225
+ return {
2226
+ idpId: 'number',
2227
+ relation: 'string',
2228
+ userGroupType: 'string',
2229
+ value: 'string',
2230
+ };
2231
+ }
2232
+ }
2233
+ exports.CreatePrivateAccessPolicyRequestCustomUserAttributes = CreatePrivateAccessPolicyRequestCustomUserAttributes;
2234
+ class CreateUserGroupRequestAttributes extends $tea.Model {
2235
+ constructor(map) {
2236
+ super(map);
2237
+ }
2238
+ static names() {
2239
+ return {
2240
+ idpId: 'IdpId',
2241
+ relation: 'Relation',
2242
+ userGroupType: 'UserGroupType',
2243
+ value: 'Value',
2244
+ };
2245
+ }
2246
+ static types() {
2247
+ return {
2248
+ idpId: 'number',
2249
+ relation: 'string',
2250
+ userGroupType: 'string',
2251
+ value: 'string',
2252
+ };
2253
+ }
2254
+ }
2255
+ exports.CreateUserGroupRequestAttributes = CreateUserGroupRequestAttributes;
2256
+ class GetPrivateAccessApplicationResponseBodyApplicationPortRanges extends $tea.Model {
2257
+ constructor(map) {
2258
+ super(map);
2259
+ }
2260
+ static names() {
2261
+ return {
2262
+ begin: 'Begin',
2263
+ end: 'End',
2264
+ };
2265
+ }
2266
+ static types() {
2267
+ return {
2268
+ begin: 'number',
2269
+ end: 'number',
2270
+ };
2271
+ }
2272
+ }
2273
+ exports.GetPrivateAccessApplicationResponseBodyApplicationPortRanges = GetPrivateAccessApplicationResponseBodyApplicationPortRanges;
2274
+ class GetPrivateAccessApplicationResponseBodyApplication extends $tea.Model {
2275
+ constructor(map) {
2276
+ super(map);
2277
+ }
2278
+ static names() {
2279
+ return {
2280
+ addresses: 'Addresses',
2281
+ applicationId: 'ApplicationId',
2282
+ createTime: 'CreateTime',
2283
+ description: 'Description',
2284
+ name: 'Name',
2285
+ policyIds: 'PolicyIds',
2286
+ portRanges: 'PortRanges',
2287
+ protocol: 'Protocol',
2288
+ status: 'Status',
2289
+ tagIds: 'TagIds',
2290
+ };
2291
+ }
2292
+ static types() {
2293
+ return {
2294
+ addresses: { 'type': 'array', 'itemType': 'string' },
2295
+ applicationId: 'string',
2296
+ createTime: 'string',
2297
+ description: 'string',
2298
+ name: 'string',
2299
+ policyIds: { 'type': 'array', 'itemType': 'string' },
2300
+ portRanges: { 'type': 'array', 'itemType': GetPrivateAccessApplicationResponseBodyApplicationPortRanges },
2301
+ protocol: 'string',
2302
+ status: 'string',
2303
+ tagIds: { 'type': 'array', 'itemType': 'string' },
2304
+ };
2305
+ }
2306
+ }
2307
+ exports.GetPrivateAccessApplicationResponseBodyApplication = GetPrivateAccessApplicationResponseBodyApplication;
2308
+ class GetPrivateAccessPolicyResponseBodyPolicyCustomUserAttributes extends $tea.Model {
2309
+ constructor(map) {
2310
+ super(map);
2311
+ }
2312
+ static names() {
2313
+ return {
2314
+ idpId: 'IdpId',
2315
+ relation: 'Relation',
2316
+ userGroupType: 'UserGroupType',
2317
+ value: 'Value',
2318
+ };
2319
+ }
2320
+ static types() {
2321
+ return {
2322
+ idpId: 'number',
2323
+ relation: 'string',
2324
+ userGroupType: 'string',
2325
+ value: 'string',
2326
+ };
2327
+ }
2328
+ }
2329
+ exports.GetPrivateAccessPolicyResponseBodyPolicyCustomUserAttributes = GetPrivateAccessPolicyResponseBodyPolicyCustomUserAttributes;
2330
+ class GetPrivateAccessPolicyResponseBodyPolicy extends $tea.Model {
2331
+ constructor(map) {
2332
+ super(map);
2333
+ }
2334
+ static names() {
2335
+ return {
2336
+ applicationIds: 'ApplicationIds',
2337
+ applicationType: 'ApplicationType',
2338
+ createTime: 'CreateTime',
2339
+ customUserAttributes: 'CustomUserAttributes',
2340
+ description: 'Description',
2341
+ name: 'Name',
2342
+ policyAction: 'PolicyAction',
2343
+ policyId: 'PolicyId',
2344
+ priority: 'Priority',
2345
+ status: 'Status',
2346
+ tagIds: 'TagIds',
2347
+ userGroupIds: 'UserGroupIds',
2348
+ userGroupMode: 'UserGroupMode',
2349
+ };
2350
+ }
2351
+ static types() {
2352
+ return {
2353
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
2354
+ applicationType: 'string',
2355
+ createTime: 'string',
2356
+ customUserAttributes: { 'type': 'array', 'itemType': GetPrivateAccessPolicyResponseBodyPolicyCustomUserAttributes },
2357
+ description: 'string',
2358
+ name: 'string',
2359
+ policyAction: 'string',
2360
+ policyId: 'string',
2361
+ priority: 'number',
2362
+ status: 'string',
2363
+ tagIds: { 'type': 'array', 'itemType': 'string' },
2364
+ userGroupIds: { 'type': 'array', 'itemType': 'string' },
2365
+ userGroupMode: 'string',
2366
+ };
2367
+ }
2368
+ }
2369
+ exports.GetPrivateAccessPolicyResponseBodyPolicy = GetPrivateAccessPolicyResponseBodyPolicy;
2370
+ class GetUserGroupResponseBodyUserGroupAttributes extends $tea.Model {
2371
+ constructor(map) {
2372
+ super(map);
2373
+ }
2374
+ static names() {
2375
+ return {
2376
+ idpId: 'IdpId',
2377
+ relation: 'Relation',
2378
+ userGroupType: 'UserGroupType',
2379
+ value: 'Value',
2380
+ };
2381
+ }
2382
+ static types() {
2383
+ return {
2384
+ idpId: 'number',
2385
+ relation: 'string',
2386
+ userGroupType: 'string',
2387
+ value: 'string',
2388
+ };
2389
+ }
2390
+ }
2391
+ exports.GetUserGroupResponseBodyUserGroupAttributes = GetUserGroupResponseBodyUserGroupAttributes;
2392
+ class GetUserGroupResponseBodyUserGroup extends $tea.Model {
2393
+ constructor(map) {
2394
+ super(map);
2395
+ }
2396
+ static names() {
2397
+ return {
2398
+ attributes: 'Attributes',
2399
+ createTime: 'CreateTime',
2400
+ description: 'Description',
2401
+ name: 'Name',
2402
+ userGroupId: 'UserGroupId',
2403
+ };
2404
+ }
2405
+ static types() {
2406
+ return {
2407
+ attributes: { 'type': 'array', 'itemType': GetUserGroupResponseBodyUserGroupAttributes },
2408
+ createTime: 'string',
2409
+ description: 'string',
2410
+ name: 'string',
2411
+ userGroupId: 'string',
2412
+ };
2413
+ }
2414
+ }
2415
+ exports.GetUserGroupResponseBodyUserGroup = GetUserGroupResponseBodyUserGroup;
2416
+ class ListApplicationsForPrivateAccessPolicyResponseBodyPolicesApplicationsPortRanges extends $tea.Model {
2417
+ constructor(map) {
2418
+ super(map);
2419
+ }
2420
+ static names() {
2421
+ return {
2422
+ begin: 'Begin',
2423
+ end: 'End',
2424
+ };
2425
+ }
2426
+ static types() {
2427
+ return {
2428
+ begin: 'number',
2429
+ end: 'number',
2430
+ };
2431
+ }
2432
+ }
2433
+ exports.ListApplicationsForPrivateAccessPolicyResponseBodyPolicesApplicationsPortRanges = ListApplicationsForPrivateAccessPolicyResponseBodyPolicesApplicationsPortRanges;
2434
+ class ListApplicationsForPrivateAccessPolicyResponseBodyPolicesApplications extends $tea.Model {
2435
+ constructor(map) {
2436
+ super(map);
2437
+ }
2438
+ static names() {
2439
+ return {
2440
+ addresses: 'Addresses',
2441
+ applicationId: 'ApplicationId',
2442
+ createTime: 'CreateTime',
2443
+ description: 'Description',
2444
+ name: 'Name',
2445
+ portRanges: 'PortRanges',
2446
+ protocol: 'Protocol',
2447
+ status: 'Status',
2448
+ };
2449
+ }
2450
+ static types() {
2451
+ return {
2452
+ addresses: { 'type': 'array', 'itemType': 'string' },
2453
+ applicationId: 'string',
2454
+ createTime: 'string',
2455
+ description: 'string',
2456
+ name: 'string',
2457
+ portRanges: { 'type': 'array', 'itemType': ListApplicationsForPrivateAccessPolicyResponseBodyPolicesApplicationsPortRanges },
2458
+ protocol: 'string',
2459
+ status: 'string',
2460
+ };
2461
+ }
2462
+ }
2463
+ exports.ListApplicationsForPrivateAccessPolicyResponseBodyPolicesApplications = ListApplicationsForPrivateAccessPolicyResponseBodyPolicesApplications;
2464
+ class ListApplicationsForPrivateAccessPolicyResponseBodyPolices extends $tea.Model {
2465
+ constructor(map) {
2466
+ super(map);
2467
+ }
2468
+ static names() {
2469
+ return {
2470
+ applications: 'Applications',
2471
+ policyId: 'PolicyId',
2472
+ };
2473
+ }
2474
+ static types() {
2475
+ return {
2476
+ applications: { 'type': 'array', 'itemType': ListApplicationsForPrivateAccessPolicyResponseBodyPolicesApplications },
2477
+ policyId: 'string',
2478
+ };
2479
+ }
2480
+ }
2481
+ exports.ListApplicationsForPrivateAccessPolicyResponseBodyPolices = ListApplicationsForPrivateAccessPolicyResponseBodyPolices;
2482
+ class ListApplicationsForPrivateAccessTagResponseBodyTagsApplicationsPortRanges extends $tea.Model {
2483
+ constructor(map) {
2484
+ super(map);
2485
+ }
2486
+ static names() {
2487
+ return {
2488
+ begin: 'Begin',
2489
+ end: 'End',
2490
+ };
2491
+ }
2492
+ static types() {
2493
+ return {
2494
+ begin: 'number',
2495
+ end: 'number',
2496
+ };
2497
+ }
2498
+ }
2499
+ exports.ListApplicationsForPrivateAccessTagResponseBodyTagsApplicationsPortRanges = ListApplicationsForPrivateAccessTagResponseBodyTagsApplicationsPortRanges;
2500
+ class ListApplicationsForPrivateAccessTagResponseBodyTagsApplications extends $tea.Model {
2501
+ constructor(map) {
2502
+ super(map);
2503
+ }
2504
+ static names() {
2505
+ return {
2506
+ addresses: 'Addresses',
2507
+ applicationId: 'ApplicationId',
2508
+ createTime: 'CreateTime',
2509
+ description: 'Description',
2510
+ name: 'Name',
2511
+ portRanges: 'PortRanges',
2512
+ protocol: 'Protocol',
2513
+ status: 'Status',
2514
+ };
2515
+ }
2516
+ static types() {
2517
+ return {
2518
+ addresses: { 'type': 'array', 'itemType': 'string' },
2519
+ applicationId: 'string',
2520
+ createTime: 'string',
2521
+ description: 'string',
2522
+ name: 'string',
2523
+ portRanges: { 'type': 'array', 'itemType': ListApplicationsForPrivateAccessTagResponseBodyTagsApplicationsPortRanges },
2524
+ protocol: 'string',
2525
+ status: 'string',
2526
+ };
2527
+ }
2528
+ }
2529
+ exports.ListApplicationsForPrivateAccessTagResponseBodyTagsApplications = ListApplicationsForPrivateAccessTagResponseBodyTagsApplications;
2530
+ class ListApplicationsForPrivateAccessTagResponseBodyTags extends $tea.Model {
2531
+ constructor(map) {
2532
+ super(map);
2533
+ }
2534
+ static names() {
2535
+ return {
2536
+ applications: 'Applications',
2537
+ tagId: 'TagId',
2538
+ };
2539
+ }
2540
+ static types() {
2541
+ return {
2542
+ applications: { 'type': 'array', 'itemType': ListApplicationsForPrivateAccessTagResponseBodyTagsApplications },
2543
+ tagId: 'string',
2544
+ };
2545
+ }
2546
+ }
2547
+ exports.ListApplicationsForPrivateAccessTagResponseBodyTags = ListApplicationsForPrivateAccessTagResponseBodyTags;
2548
+ class ListConnectorsResponseBodyConnectorsApplications extends $tea.Model {
2549
+ constructor(map) {
2550
+ super(map);
2551
+ }
2552
+ static names() {
2553
+ return {
2554
+ applicationId: 'ApplicationId',
2555
+ applicationName: 'ApplicationName',
2556
+ };
2557
+ }
2558
+ static types() {
2559
+ return {
2560
+ applicationId: 'string',
2561
+ applicationName: 'string',
2562
+ };
2563
+ }
2564
+ }
2565
+ exports.ListConnectorsResponseBodyConnectorsApplications = ListConnectorsResponseBodyConnectorsApplications;
2566
+ class ListConnectorsResponseBodyConnectorsUpgradeTime extends $tea.Model {
2567
+ constructor(map) {
2568
+ super(map);
2569
+ }
2570
+ static names() {
2571
+ return {
2572
+ end: 'End',
2573
+ start: 'Start',
2574
+ };
2575
+ }
2576
+ static types() {
2577
+ return {
2578
+ end: 'string',
2579
+ start: 'string',
2580
+ };
2581
+ }
2582
+ }
2583
+ exports.ListConnectorsResponseBodyConnectorsUpgradeTime = ListConnectorsResponseBodyConnectorsUpgradeTime;
2584
+ class ListConnectorsResponseBodyConnectors extends $tea.Model {
2585
+ constructor(map) {
2586
+ super(map);
2587
+ }
2588
+ static names() {
2589
+ return {
2590
+ applications: 'Applications',
2591
+ connectorId: 'ConnectorId',
2592
+ createTime: 'CreateTime',
2593
+ name: 'Name',
2594
+ regionId: 'RegionId',
2595
+ status: 'Status',
2596
+ switchStatus: 'SwitchStatus',
2597
+ upgradeTime: 'UpgradeTime',
2598
+ };
2599
+ }
2600
+ static types() {
2601
+ return {
2602
+ applications: { 'type': 'array', 'itemType': ListConnectorsResponseBodyConnectorsApplications },
2603
+ connectorId: 'string',
2604
+ createTime: 'string',
2605
+ name: 'string',
2606
+ regionId: 'string',
2607
+ status: 'string',
2608
+ switchStatus: 'string',
2609
+ upgradeTime: ListConnectorsResponseBodyConnectorsUpgradeTime,
2610
+ };
2611
+ }
2612
+ }
2613
+ exports.ListConnectorsResponseBodyConnectors = ListConnectorsResponseBodyConnectors;
2614
+ class ListPolicesForPrivateAccessApplicationResponseBodyApplicationsPoliciesCustomUserAttributes extends $tea.Model {
2615
+ constructor(map) {
2616
+ super(map);
2617
+ }
2618
+ static names() {
2619
+ return {
2620
+ idpId: 'IdpId',
2621
+ relation: 'Relation',
2622
+ userGroupType: 'UserGroupType',
2623
+ value: 'Value',
2624
+ };
2625
+ }
2626
+ static types() {
2627
+ return {
2628
+ idpId: 'number',
2629
+ relation: 'string',
2630
+ userGroupType: 'string',
2631
+ value: 'string',
2632
+ };
2633
+ }
2634
+ }
2635
+ exports.ListPolicesForPrivateAccessApplicationResponseBodyApplicationsPoliciesCustomUserAttributes = ListPolicesForPrivateAccessApplicationResponseBodyApplicationsPoliciesCustomUserAttributes;
2636
+ class ListPolicesForPrivateAccessApplicationResponseBodyApplicationsPolicies extends $tea.Model {
2637
+ constructor(map) {
2638
+ super(map);
2639
+ }
2640
+ static names() {
2641
+ return {
2642
+ applicationType: 'ApplicationType',
2643
+ createTime: 'CreateTime',
2644
+ customUserAttributes: 'CustomUserAttributes',
2645
+ description: 'Description',
2646
+ name: 'Name',
2647
+ policyAction: 'PolicyAction',
2648
+ policyId: 'PolicyId',
2649
+ priority: 'Priority',
2650
+ status: 'Status',
2651
+ userGroupType: 'UserGroupType',
2652
+ };
2653
+ }
2654
+ static types() {
2655
+ return {
2656
+ applicationType: 'string',
2657
+ createTime: 'string',
2658
+ customUserAttributes: { 'type': 'array', 'itemType': ListPolicesForPrivateAccessApplicationResponseBodyApplicationsPoliciesCustomUserAttributes },
2659
+ description: 'string',
2660
+ name: 'string',
2661
+ policyAction: 'string',
2662
+ policyId: 'string',
2663
+ priority: 'number',
2664
+ status: 'string',
2665
+ userGroupType: 'string',
2666
+ };
2667
+ }
2668
+ }
2669
+ exports.ListPolicesForPrivateAccessApplicationResponseBodyApplicationsPolicies = ListPolicesForPrivateAccessApplicationResponseBodyApplicationsPolicies;
2670
+ class ListPolicesForPrivateAccessApplicationResponseBodyApplications extends $tea.Model {
2671
+ constructor(map) {
2672
+ super(map);
2673
+ }
2674
+ static names() {
2675
+ return {
2676
+ applicationId: 'ApplicationId',
2677
+ policies: 'Policies',
2678
+ };
2679
+ }
2680
+ static types() {
2681
+ return {
2682
+ applicationId: 'string',
2683
+ policies: { 'type': 'array', 'itemType': ListPolicesForPrivateAccessApplicationResponseBodyApplicationsPolicies },
2684
+ };
2685
+ }
2686
+ }
2687
+ exports.ListPolicesForPrivateAccessApplicationResponseBodyApplications = ListPolicesForPrivateAccessApplicationResponseBodyApplications;
2688
+ class ListPolicesForPrivateAccessTagResponseBodyTagsPolicesCustomUserAttributes extends $tea.Model {
2689
+ constructor(map) {
2690
+ super(map);
2691
+ }
2692
+ static names() {
2693
+ return {
2694
+ idpId: 'IdpId',
2695
+ relation: 'Relation',
2696
+ userGroupType: 'UserGroupType',
2697
+ value: 'Value',
2698
+ };
2699
+ }
2700
+ static types() {
2701
+ return {
2702
+ idpId: 'number',
2703
+ relation: 'string',
2704
+ userGroupType: 'string',
2705
+ value: 'string',
2706
+ };
2707
+ }
2708
+ }
2709
+ exports.ListPolicesForPrivateAccessTagResponseBodyTagsPolicesCustomUserAttributes = ListPolicesForPrivateAccessTagResponseBodyTagsPolicesCustomUserAttributes;
2710
+ class ListPolicesForPrivateAccessTagResponseBodyTagsPolices extends $tea.Model {
2711
+ constructor(map) {
2712
+ super(map);
2713
+ }
2714
+ static names() {
2715
+ return {
2716
+ applicationType: 'ApplicationType',
2717
+ createTime: 'CreateTime',
2718
+ customUserAttributes: 'CustomUserAttributes',
2719
+ description: 'Description',
2720
+ name: 'Name',
2721
+ policyAction: 'PolicyAction',
2722
+ policyId: 'PolicyId',
2723
+ priority: 'Priority',
2724
+ status: 'Status',
2725
+ userGroupType: 'UserGroupType',
2726
+ };
2727
+ }
2728
+ static types() {
2729
+ return {
2730
+ applicationType: 'string',
2731
+ createTime: 'string',
2732
+ customUserAttributes: { 'type': 'array', 'itemType': ListPolicesForPrivateAccessTagResponseBodyTagsPolicesCustomUserAttributes },
2733
+ description: 'string',
2734
+ name: 'string',
2735
+ policyAction: 'string',
2736
+ policyId: 'string',
2737
+ priority: 'number',
2738
+ status: 'string',
2739
+ userGroupType: 'string',
2740
+ };
2741
+ }
2742
+ }
2743
+ exports.ListPolicesForPrivateAccessTagResponseBodyTagsPolices = ListPolicesForPrivateAccessTagResponseBodyTagsPolices;
2744
+ class ListPolicesForPrivateAccessTagResponseBodyTags extends $tea.Model {
2745
+ constructor(map) {
2746
+ super(map);
2747
+ }
2748
+ static names() {
2749
+ return {
2750
+ polices: 'Polices',
2751
+ tagId: 'TagId',
2752
+ };
2753
+ }
2754
+ static types() {
2755
+ return {
2756
+ polices: { 'type': 'array', 'itemType': ListPolicesForPrivateAccessTagResponseBodyTagsPolices },
2757
+ tagId: 'string',
2758
+ };
2759
+ }
2760
+ }
2761
+ exports.ListPolicesForPrivateAccessTagResponseBodyTags = ListPolicesForPrivateAccessTagResponseBodyTags;
2762
+ class ListPolicesForUserGroupResponseBodyUserGroupsPolices extends $tea.Model {
2763
+ constructor(map) {
2764
+ super(map);
2765
+ }
2766
+ static names() {
2767
+ return {
2768
+ name: 'Name',
2769
+ policyId: 'PolicyId',
2770
+ policyType: 'PolicyType',
2771
+ };
2772
+ }
2773
+ static types() {
2774
+ return {
2775
+ name: 'string',
2776
+ policyId: 'string',
2777
+ policyType: 'string',
2778
+ };
2779
+ }
2780
+ }
2781
+ exports.ListPolicesForUserGroupResponseBodyUserGroupsPolices = ListPolicesForUserGroupResponseBodyUserGroupsPolices;
2782
+ class ListPolicesForUserGroupResponseBodyUserGroups extends $tea.Model {
2783
+ constructor(map) {
2784
+ super(map);
2785
+ }
2786
+ static names() {
2787
+ return {
2788
+ polices: 'Polices',
2789
+ userGroupId: 'UserGroupId',
2790
+ };
2791
+ }
2792
+ static types() {
2793
+ return {
2794
+ polices: { 'type': 'array', 'itemType': ListPolicesForUserGroupResponseBodyUserGroupsPolices },
2795
+ userGroupId: 'string',
2796
+ };
2797
+ }
2798
+ }
2799
+ exports.ListPolicesForUserGroupResponseBodyUserGroups = ListPolicesForUserGroupResponseBodyUserGroups;
2800
+ class ListPrivateAccessApplicationsResponseBodyApplicationsPortRanges extends $tea.Model {
2801
+ constructor(map) {
2802
+ super(map);
2803
+ }
2804
+ static names() {
2805
+ return {
2806
+ begin: 'Begin',
2807
+ end: 'End',
2808
+ };
2809
+ }
2810
+ static types() {
2811
+ return {
2812
+ begin: 'number',
2813
+ end: 'number',
2814
+ };
2815
+ }
2816
+ }
2817
+ exports.ListPrivateAccessApplicationsResponseBodyApplicationsPortRanges = ListPrivateAccessApplicationsResponseBodyApplicationsPortRanges;
2818
+ class ListPrivateAccessApplicationsResponseBodyApplications extends $tea.Model {
2819
+ constructor(map) {
2820
+ super(map);
2821
+ }
2822
+ static names() {
2823
+ return {
2824
+ addresses: 'Addresses',
2825
+ applicationId: 'ApplicationId',
2826
+ createTime: 'CreateTime',
2827
+ description: 'Description',
2828
+ name: 'Name',
2829
+ policyIds: 'PolicyIds',
2830
+ portRanges: 'PortRanges',
2831
+ protocol: 'Protocol',
2832
+ status: 'Status',
2833
+ tagIds: 'TagIds',
2834
+ };
2835
+ }
2836
+ static types() {
2837
+ return {
2838
+ addresses: { 'type': 'array', 'itemType': 'string' },
2839
+ applicationId: 'string',
2840
+ createTime: 'string',
2841
+ description: 'string',
2842
+ name: 'string',
2843
+ policyIds: { 'type': 'array', 'itemType': 'string' },
2844
+ portRanges: { 'type': 'array', 'itemType': ListPrivateAccessApplicationsResponseBodyApplicationsPortRanges },
2845
+ protocol: 'string',
2846
+ status: 'string',
2847
+ tagIds: { 'type': 'array', 'itemType': 'string' },
2848
+ };
2849
+ }
2850
+ }
2851
+ exports.ListPrivateAccessApplicationsResponseBodyApplications = ListPrivateAccessApplicationsResponseBodyApplications;
2852
+ class ListPrivateAccessPolicesResponseBodyPolicesCustomUserAttributes extends $tea.Model {
2853
+ constructor(map) {
2854
+ super(map);
2855
+ }
2856
+ static names() {
2857
+ return {
2858
+ idpId: 'IdpId',
2859
+ relation: 'Relation',
2860
+ userGroupType: 'UserGroupType',
2861
+ value: 'Value',
2862
+ };
2863
+ }
2864
+ static types() {
2865
+ return {
2866
+ idpId: 'number',
2867
+ relation: 'string',
2868
+ userGroupType: 'string',
2869
+ value: 'string',
2870
+ };
2871
+ }
2872
+ }
2873
+ exports.ListPrivateAccessPolicesResponseBodyPolicesCustomUserAttributes = ListPrivateAccessPolicesResponseBodyPolicesCustomUserAttributes;
2874
+ class ListPrivateAccessPolicesResponseBodyPolices extends $tea.Model {
2875
+ constructor(map) {
2876
+ super(map);
2877
+ }
2878
+ static names() {
2879
+ return {
2880
+ applicationIds: 'ApplicationIds',
2881
+ applicationType: 'ApplicationType',
2882
+ createTime: 'CreateTime',
2883
+ customUserAttributes: 'CustomUserAttributes',
2884
+ description: 'Description',
2885
+ name: 'Name',
2886
+ policyAction: 'PolicyAction',
2887
+ policyId: 'PolicyId',
2888
+ priority: 'Priority',
2889
+ status: 'Status',
2890
+ tagIds: 'TagIds',
2891
+ userGroupIds: 'UserGroupIds',
2892
+ userGroupMode: 'UserGroupMode',
2893
+ };
2894
+ }
2895
+ static types() {
2896
+ return {
2897
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
2898
+ applicationType: 'string',
2899
+ createTime: 'string',
2900
+ customUserAttributes: { 'type': 'array', 'itemType': ListPrivateAccessPolicesResponseBodyPolicesCustomUserAttributes },
2901
+ description: 'string',
2902
+ name: 'string',
2903
+ policyAction: 'string',
2904
+ policyId: 'string',
2905
+ priority: 'number',
2906
+ status: 'string',
2907
+ tagIds: { 'type': 'array', 'itemType': 'string' },
2908
+ userGroupIds: { 'type': 'array', 'itemType': 'string' },
2909
+ userGroupMode: 'string',
2910
+ };
2911
+ }
2912
+ }
2913
+ exports.ListPrivateAccessPolicesResponseBodyPolices = ListPrivateAccessPolicesResponseBodyPolices;
2914
+ class ListPrivateAccessTagsResponseBodyTags extends $tea.Model {
2915
+ constructor(map) {
2916
+ super(map);
2917
+ }
2918
+ static names() {
2919
+ return {
2920
+ applicationIds: 'ApplicationIds',
2921
+ createTime: 'CreateTime',
2922
+ description: 'Description',
2923
+ name: 'Name',
2924
+ policyIds: 'PolicyIds',
2925
+ tagId: 'TagId',
2926
+ tagType: 'TagType',
2927
+ };
2928
+ }
2929
+ static types() {
2930
+ return {
2931
+ applicationIds: { 'type': 'array', 'itemType': 'string' },
2932
+ createTime: 'string',
2933
+ description: 'string',
2934
+ name: 'string',
2935
+ policyIds: { 'type': 'array', 'itemType': 'string' },
2936
+ tagId: 'string',
2937
+ tagType: 'string',
2938
+ };
2939
+ }
2940
+ }
2941
+ exports.ListPrivateAccessTagsResponseBodyTags = ListPrivateAccessTagsResponseBodyTags;
2942
+ class ListTagsForPrivateAccessApplicationResponseBodyApplicationsTags extends $tea.Model {
2943
+ constructor(map) {
2944
+ super(map);
2945
+ }
2946
+ static names() {
2947
+ return {
2948
+ createTime: 'CreateTime',
2949
+ description: 'Description',
2950
+ name: 'Name',
2951
+ tagId: 'TagId',
2952
+ tagType: 'TagType',
2953
+ };
2954
+ }
2955
+ static types() {
2956
+ return {
2957
+ createTime: 'string',
2958
+ description: 'string',
2959
+ name: 'string',
2960
+ tagId: 'string',
2961
+ tagType: 'string',
2962
+ };
2963
+ }
2964
+ }
2965
+ exports.ListTagsForPrivateAccessApplicationResponseBodyApplicationsTags = ListTagsForPrivateAccessApplicationResponseBodyApplicationsTags;
2966
+ class ListTagsForPrivateAccessApplicationResponseBodyApplications extends $tea.Model {
2967
+ constructor(map) {
2968
+ super(map);
2969
+ }
2970
+ static names() {
2971
+ return {
2972
+ applicationId: 'ApplicationId',
2973
+ tags: 'Tags',
2974
+ };
2975
+ }
2976
+ static types() {
2977
+ return {
2978
+ applicationId: 'string',
2979
+ tags: { 'type': 'array', 'itemType': ListTagsForPrivateAccessApplicationResponseBodyApplicationsTags },
2980
+ };
2981
+ }
2982
+ }
2983
+ exports.ListTagsForPrivateAccessApplicationResponseBodyApplications = ListTagsForPrivateAccessApplicationResponseBodyApplications;
2984
+ class ListTagsForPrivateAccessPolicyResponseBodyPolicesTags extends $tea.Model {
2985
+ constructor(map) {
2986
+ super(map);
2987
+ }
2988
+ static names() {
2989
+ return {
2990
+ createTime: 'CreateTime',
2991
+ description: 'Description',
2992
+ name: 'Name',
2993
+ tagId: 'TagId',
2994
+ tagType: 'TagType',
2995
+ };
2996
+ }
2997
+ static types() {
2998
+ return {
2999
+ createTime: 'string',
3000
+ description: 'string',
3001
+ name: 'string',
3002
+ tagId: 'string',
3003
+ tagType: 'string',
3004
+ };
3005
+ }
3006
+ }
3007
+ exports.ListTagsForPrivateAccessPolicyResponseBodyPolicesTags = ListTagsForPrivateAccessPolicyResponseBodyPolicesTags;
3008
+ class ListTagsForPrivateAccessPolicyResponseBodyPolices extends $tea.Model {
3009
+ constructor(map) {
3010
+ super(map);
3011
+ }
3012
+ static names() {
3013
+ return {
3014
+ policyId: 'PolicyId',
3015
+ tags: 'Tags',
3016
+ };
3017
+ }
3018
+ static types() {
3019
+ return {
3020
+ policyId: 'string',
3021
+ tags: { 'type': 'array', 'itemType': ListTagsForPrivateAccessPolicyResponseBodyPolicesTags },
3022
+ };
3023
+ }
3024
+ }
3025
+ exports.ListTagsForPrivateAccessPolicyResponseBodyPolices = ListTagsForPrivateAccessPolicyResponseBodyPolices;
3026
+ class ListUserGroupsResponseBodyUserGroupsAttributes extends $tea.Model {
3027
+ constructor(map) {
3028
+ super(map);
3029
+ }
3030
+ static names() {
3031
+ return {
3032
+ idpId: 'IdpId',
3033
+ relation: 'Relation',
3034
+ userGroupType: 'UserGroupType',
3035
+ value: 'Value',
3036
+ };
3037
+ }
3038
+ static types() {
3039
+ return {
3040
+ idpId: 'number',
3041
+ relation: 'string',
3042
+ userGroupType: 'string',
3043
+ value: 'string',
3044
+ };
3045
+ }
3046
+ }
3047
+ exports.ListUserGroupsResponseBodyUserGroupsAttributes = ListUserGroupsResponseBodyUserGroupsAttributes;
3048
+ class ListUserGroupsResponseBodyUserGroups extends $tea.Model {
3049
+ constructor(map) {
3050
+ super(map);
3051
+ }
3052
+ static names() {
3053
+ return {
3054
+ attributes: 'Attributes',
3055
+ createTime: 'CreateTime',
3056
+ description: 'Description',
3057
+ name: 'Name',
3058
+ userGroupId: 'UserGroupId',
3059
+ };
3060
+ }
3061
+ static types() {
3062
+ return {
3063
+ attributes: { 'type': 'array', 'itemType': ListUserGroupsResponseBodyUserGroupsAttributes },
3064
+ createTime: 'string',
3065
+ description: 'string',
3066
+ name: 'string',
3067
+ userGroupId: 'string',
3068
+ };
3069
+ }
3070
+ }
3071
+ exports.ListUserGroupsResponseBodyUserGroups = ListUserGroupsResponseBodyUserGroups;
3072
+ class ListUserGroupsForPrivateAccessPolicyResponseBodyPolicesUserGroupsAttributes extends $tea.Model {
3073
+ constructor(map) {
3074
+ super(map);
3075
+ }
3076
+ static names() {
3077
+ return {
3078
+ idpId: 'IdpId',
3079
+ relation: 'Relation',
3080
+ userGroupType: 'UserGroupType',
3081
+ value: 'Value',
3082
+ };
3083
+ }
3084
+ static types() {
3085
+ return {
3086
+ idpId: 'number',
3087
+ relation: 'string',
3088
+ userGroupType: 'string',
3089
+ value: 'string',
3090
+ };
3091
+ }
3092
+ }
3093
+ exports.ListUserGroupsForPrivateAccessPolicyResponseBodyPolicesUserGroupsAttributes = ListUserGroupsForPrivateAccessPolicyResponseBodyPolicesUserGroupsAttributes;
3094
+ class ListUserGroupsForPrivateAccessPolicyResponseBodyPolicesUserGroups extends $tea.Model {
3095
+ constructor(map) {
3096
+ super(map);
3097
+ }
3098
+ static names() {
3099
+ return {
3100
+ attributes: 'Attributes',
3101
+ createTime: 'CreateTime',
3102
+ description: 'Description',
3103
+ name: 'Name',
3104
+ userGroupId: 'UserGroupId',
3105
+ };
3106
+ }
3107
+ static types() {
3108
+ return {
3109
+ attributes: { 'type': 'array', 'itemType': ListUserGroupsForPrivateAccessPolicyResponseBodyPolicesUserGroupsAttributes },
3110
+ createTime: 'string',
3111
+ description: 'string',
3112
+ name: 'string',
3113
+ userGroupId: 'string',
3114
+ };
3115
+ }
3116
+ }
3117
+ exports.ListUserGroupsForPrivateAccessPolicyResponseBodyPolicesUserGroups = ListUserGroupsForPrivateAccessPolicyResponseBodyPolicesUserGroups;
3118
+ class ListUserGroupsForPrivateAccessPolicyResponseBodyPolices extends $tea.Model {
3119
+ constructor(map) {
3120
+ super(map);
3121
+ }
3122
+ static names() {
3123
+ return {
3124
+ policyId: 'PolicyId',
3125
+ userGroups: 'UserGroups',
3126
+ };
3127
+ }
3128
+ static types() {
3129
+ return {
3130
+ policyId: 'string',
3131
+ userGroups: { 'type': 'array', 'itemType': ListUserGroupsForPrivateAccessPolicyResponseBodyPolicesUserGroups },
3132
+ };
3133
+ }
3134
+ }
3135
+ exports.ListUserGroupsForPrivateAccessPolicyResponseBodyPolices = ListUserGroupsForPrivateAccessPolicyResponseBodyPolices;
3136
+ class UpdatePrivateAccessApplicationRequestPortRanges extends $tea.Model {
3137
+ constructor(map) {
3138
+ super(map);
3139
+ }
3140
+ static names() {
3141
+ return {
3142
+ begin: 'Begin',
3143
+ end: 'End',
3144
+ };
3145
+ }
3146
+ static types() {
3147
+ return {
3148
+ begin: 'number',
3149
+ end: 'number',
3150
+ };
3151
+ }
3152
+ }
3153
+ exports.UpdatePrivateAccessApplicationRequestPortRanges = UpdatePrivateAccessApplicationRequestPortRanges;
3154
+ class UpdatePrivateAccessPolicyRequestCustomUserAttributes extends $tea.Model {
3155
+ constructor(map) {
3156
+ super(map);
3157
+ }
3158
+ static names() {
3159
+ return {
3160
+ idpId: 'IdpId',
3161
+ relation: 'Relation',
3162
+ userGroupType: 'UserGroupType',
3163
+ value: 'Value',
3164
+ };
3165
+ }
3166
+ static types() {
3167
+ return {
3168
+ idpId: 'number',
3169
+ relation: 'string',
3170
+ userGroupType: 'string',
3171
+ value: 'string',
3172
+ };
3173
+ }
3174
+ }
3175
+ exports.UpdatePrivateAccessPolicyRequestCustomUserAttributes = UpdatePrivateAccessPolicyRequestCustomUserAttributes;
3176
+ class UpdateUserGroupRequestAttributes extends $tea.Model {
3177
+ constructor(map) {
3178
+ super(map);
3179
+ }
3180
+ static names() {
3181
+ return {
3182
+ idpId: 'IdpId',
3183
+ relation: 'Relation',
3184
+ userGroupType: 'UserGroupType',
3185
+ value: 'Value',
3186
+ };
3187
+ }
3188
+ static types() {
3189
+ return {
3190
+ idpId: 'number',
3191
+ relation: 'string',
3192
+ userGroupType: 'string',
3193
+ value: 'string',
3194
+ };
3195
+ }
3196
+ }
3197
+ exports.UpdateUserGroupRequestAttributes = UpdateUserGroupRequestAttributes;
3198
+ class Client extends openapi_client_1.default {
3199
+ constructor(config) {
3200
+ super(config);
3201
+ this._endpointRule = "";
3202
+ this.checkConfig(config);
3203
+ this._endpoint = this.getEndpoint("csas", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
3204
+ }
3205
+ getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
3206
+ if (!tea_util_1.default.empty(endpoint)) {
3207
+ return endpoint;
3208
+ }
3209
+ if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
3210
+ return endpointMap[regionId];
3211
+ }
3212
+ return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
3213
+ }
3214
+ async attachApplication2ConnectorWithOptions(tmpReq, runtime) {
3215
+ tea_util_1.default.validateModel(tmpReq);
3216
+ let request = new AttachApplication2ConnectorShrinkRequest({});
3217
+ openapi_util_1.default.convert(tmpReq, request);
3218
+ if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
3219
+ request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
3220
+ }
3221
+ let body = {};
3222
+ if (!tea_util_1.default.isUnset(request.applicationIdsShrink)) {
3223
+ body["ApplicationIds"] = request.applicationIdsShrink;
3224
+ }
3225
+ if (!tea_util_1.default.isUnset(request.connectorId)) {
3226
+ body["ConnectorId"] = request.connectorId;
3227
+ }
3228
+ let req = new $OpenApi.OpenApiRequest({
3229
+ body: openapi_util_1.default.parseToMap(body),
3230
+ });
3231
+ let params = new $OpenApi.Params({
3232
+ action: "AttachApplication2Connector",
3233
+ version: "2023-01-20",
3234
+ protocol: "HTTPS",
3235
+ pathname: "/",
3236
+ method: "POST",
3237
+ authType: "AK",
3238
+ style: "RPC",
3239
+ reqBodyType: "formData",
3240
+ bodyType: "json",
3241
+ });
3242
+ return $tea.cast(await this.callApi(params, req, runtime), new AttachApplication2ConnectorResponse({}));
3243
+ }
3244
+ async attachApplication2Connector(request) {
3245
+ let runtime = new $Util.RuntimeOptions({});
3246
+ return await this.attachApplication2ConnectorWithOptions(request, runtime);
3247
+ }
3248
+ async createPrivateAccessApplicationWithOptions(tmpReq, runtime) {
3249
+ tea_util_1.default.validateModel(tmpReq);
3250
+ let request = new CreatePrivateAccessApplicationShrinkRequest({});
3251
+ openapi_util_1.default.convert(tmpReq, request);
3252
+ if (!tea_util_1.default.isUnset(tmpReq.addresses)) {
3253
+ request.addressesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.addresses, "Addresses", "json");
3254
+ }
3255
+ if (!tea_util_1.default.isUnset(tmpReq.portRanges)) {
3256
+ request.portRangesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.portRanges, "PortRanges", "json");
3257
+ }
3258
+ if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
3259
+ request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
3260
+ }
3261
+ let body = {};
3262
+ if (!tea_util_1.default.isUnset(request.addressesShrink)) {
3263
+ body["Addresses"] = request.addressesShrink;
3264
+ }
3265
+ if (!tea_util_1.default.isUnset(request.description)) {
3266
+ body["Description"] = request.description;
3267
+ }
3268
+ if (!tea_util_1.default.isUnset(request.name)) {
3269
+ body["Name"] = request.name;
3270
+ }
3271
+ if (!tea_util_1.default.isUnset(request.portRangesShrink)) {
3272
+ body["PortRanges"] = request.portRangesShrink;
3273
+ }
3274
+ if (!tea_util_1.default.isUnset(request.protocol)) {
3275
+ body["Protocol"] = request.protocol;
3276
+ }
3277
+ if (!tea_util_1.default.isUnset(request.status)) {
3278
+ body["Status"] = request.status;
3279
+ }
3280
+ if (!tea_util_1.default.isUnset(request.tagIdsShrink)) {
3281
+ body["TagIds"] = request.tagIdsShrink;
3282
+ }
3283
+ let req = new $OpenApi.OpenApiRequest({
3284
+ body: openapi_util_1.default.parseToMap(body),
3285
+ });
3286
+ let params = new $OpenApi.Params({
3287
+ action: "CreatePrivateAccessApplication",
3288
+ version: "2023-01-20",
3289
+ protocol: "HTTPS",
3290
+ pathname: "/",
3291
+ method: "POST",
3292
+ authType: "AK",
3293
+ style: "RPC",
3294
+ reqBodyType: "formData",
3295
+ bodyType: "json",
3296
+ });
3297
+ return $tea.cast(await this.callApi(params, req, runtime), new CreatePrivateAccessApplicationResponse({}));
3298
+ }
3299
+ async createPrivateAccessApplication(request) {
3300
+ let runtime = new $Util.RuntimeOptions({});
3301
+ return await this.createPrivateAccessApplicationWithOptions(request, runtime);
3302
+ }
3303
+ async createPrivateAccessPolicyWithOptions(tmpReq, runtime) {
3304
+ tea_util_1.default.validateModel(tmpReq);
3305
+ let request = new CreatePrivateAccessPolicyShrinkRequest({});
3306
+ openapi_util_1.default.convert(tmpReq, request);
3307
+ if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
3308
+ request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
3309
+ }
3310
+ if (!tea_util_1.default.isUnset(tmpReq.customUserAttributes)) {
3311
+ request.customUserAttributesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.customUserAttributes, "CustomUserAttributes", "json");
3312
+ }
3313
+ if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
3314
+ request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
3315
+ }
3316
+ if (!tea_util_1.default.isUnset(tmpReq.userGroupIds)) {
3317
+ request.userGroupIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
3318
+ }
3319
+ let body = {};
3320
+ if (!tea_util_1.default.isUnset(request.applicationIdsShrink)) {
3321
+ body["ApplicationIds"] = request.applicationIdsShrink;
3322
+ }
3323
+ if (!tea_util_1.default.isUnset(request.applicationType)) {
3324
+ body["ApplicationType"] = request.applicationType;
3325
+ }
3326
+ if (!tea_util_1.default.isUnset(request.customUserAttributesShrink)) {
3327
+ body["CustomUserAttributes"] = request.customUserAttributesShrink;
3328
+ }
3329
+ if (!tea_util_1.default.isUnset(request.description)) {
3330
+ body["Description"] = request.description;
3331
+ }
3332
+ if (!tea_util_1.default.isUnset(request.name)) {
3333
+ body["Name"] = request.name;
3334
+ }
3335
+ if (!tea_util_1.default.isUnset(request.policyAction)) {
3336
+ body["PolicyAction"] = request.policyAction;
3337
+ }
3338
+ if (!tea_util_1.default.isUnset(request.priority)) {
3339
+ body["Priority"] = request.priority;
3340
+ }
3341
+ if (!tea_util_1.default.isUnset(request.status)) {
3342
+ body["Status"] = request.status;
3343
+ }
3344
+ if (!tea_util_1.default.isUnset(request.tagIdsShrink)) {
3345
+ body["TagIds"] = request.tagIdsShrink;
3346
+ }
3347
+ if (!tea_util_1.default.isUnset(request.userGroupIdsShrink)) {
3348
+ body["UserGroupIds"] = request.userGroupIdsShrink;
3349
+ }
3350
+ if (!tea_util_1.default.isUnset(request.userGroupMode)) {
3351
+ body["UserGroupMode"] = request.userGroupMode;
3352
+ }
3353
+ let req = new $OpenApi.OpenApiRequest({
3354
+ body: openapi_util_1.default.parseToMap(body),
3355
+ });
3356
+ let params = new $OpenApi.Params({
3357
+ action: "CreatePrivateAccessPolicy",
3358
+ version: "2023-01-20",
3359
+ protocol: "HTTPS",
3360
+ pathname: "/",
3361
+ method: "POST",
3362
+ authType: "AK",
3363
+ style: "RPC",
3364
+ reqBodyType: "formData",
3365
+ bodyType: "json",
3366
+ });
3367
+ return $tea.cast(await this.callApi(params, req, runtime), new CreatePrivateAccessPolicyResponse({}));
3368
+ }
3369
+ async createPrivateAccessPolicy(request) {
3370
+ let runtime = new $Util.RuntimeOptions({});
3371
+ return await this.createPrivateAccessPolicyWithOptions(request, runtime);
3372
+ }
3373
+ async createPrivateAccessTagWithOptions(request, runtime) {
3374
+ tea_util_1.default.validateModel(request);
3375
+ let body = {};
3376
+ if (!tea_util_1.default.isUnset(request.description)) {
3377
+ body["Description"] = request.description;
3378
+ }
3379
+ if (!tea_util_1.default.isUnset(request.name)) {
3380
+ body["Name"] = request.name;
3381
+ }
3382
+ let req = new $OpenApi.OpenApiRequest({
3383
+ body: openapi_util_1.default.parseToMap(body),
3384
+ });
3385
+ let params = new $OpenApi.Params({
3386
+ action: "CreatePrivateAccessTag",
3387
+ version: "2023-01-20",
3388
+ protocol: "HTTPS",
3389
+ pathname: "/",
3390
+ method: "POST",
3391
+ authType: "AK",
3392
+ style: "RPC",
3393
+ reqBodyType: "formData",
3394
+ bodyType: "json",
3395
+ });
3396
+ return $tea.cast(await this.callApi(params, req, runtime), new CreatePrivateAccessTagResponse({}));
3397
+ }
3398
+ async createPrivateAccessTag(request) {
3399
+ let runtime = new $Util.RuntimeOptions({});
3400
+ return await this.createPrivateAccessTagWithOptions(request, runtime);
3401
+ }
3402
+ async createUserGroupWithOptions(tmpReq, runtime) {
3403
+ tea_util_1.default.validateModel(tmpReq);
3404
+ let request = new CreateUserGroupShrinkRequest({});
3405
+ openapi_util_1.default.convert(tmpReq, request);
3406
+ if (!tea_util_1.default.isUnset(tmpReq.attributes)) {
3407
+ request.attributesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.attributes, "Attributes", "json");
3408
+ }
3409
+ let body = {};
3410
+ if (!tea_util_1.default.isUnset(request.attributesShrink)) {
3411
+ body["Attributes"] = request.attributesShrink;
3412
+ }
3413
+ if (!tea_util_1.default.isUnset(request.description)) {
3414
+ body["Description"] = request.description;
3415
+ }
3416
+ if (!tea_util_1.default.isUnset(request.name)) {
3417
+ body["Name"] = request.name;
3418
+ }
3419
+ let req = new $OpenApi.OpenApiRequest({
3420
+ body: openapi_util_1.default.parseToMap(body),
3421
+ });
3422
+ let params = new $OpenApi.Params({
3423
+ action: "CreateUserGroup",
3424
+ version: "2023-01-20",
3425
+ protocol: "HTTPS",
3426
+ pathname: "/",
3427
+ method: "POST",
3428
+ authType: "AK",
3429
+ style: "RPC",
3430
+ reqBodyType: "formData",
3431
+ bodyType: "json",
3432
+ });
3433
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateUserGroupResponse({}));
3434
+ }
3435
+ async createUserGroup(request) {
3436
+ let runtime = new $Util.RuntimeOptions({});
3437
+ return await this.createUserGroupWithOptions(request, runtime);
3438
+ }
3439
+ async deletePrivateAccessApplicationWithOptions(request, runtime) {
3440
+ tea_util_1.default.validateModel(request);
3441
+ let body = {};
3442
+ if (!tea_util_1.default.isUnset(request.applicationId)) {
3443
+ body["ApplicationId"] = request.applicationId;
3444
+ }
3445
+ let req = new $OpenApi.OpenApiRequest({
3446
+ body: openapi_util_1.default.parseToMap(body),
3447
+ });
3448
+ let params = new $OpenApi.Params({
3449
+ action: "DeletePrivateAccessApplication",
3450
+ version: "2023-01-20",
3451
+ protocol: "HTTPS",
3452
+ pathname: "/",
3453
+ method: "POST",
3454
+ authType: "AK",
3455
+ style: "RPC",
3456
+ reqBodyType: "formData",
3457
+ bodyType: "json",
3458
+ });
3459
+ return $tea.cast(await this.callApi(params, req, runtime), new DeletePrivateAccessApplicationResponse({}));
3460
+ }
3461
+ async deletePrivateAccessApplication(request) {
3462
+ let runtime = new $Util.RuntimeOptions({});
3463
+ return await this.deletePrivateAccessApplicationWithOptions(request, runtime);
3464
+ }
3465
+ async deletePrivateAccessPolicyWithOptions(request, runtime) {
3466
+ tea_util_1.default.validateModel(request);
3467
+ let body = {};
3468
+ if (!tea_util_1.default.isUnset(request.policyId)) {
3469
+ body["PolicyId"] = request.policyId;
3470
+ }
3471
+ let req = new $OpenApi.OpenApiRequest({
3472
+ body: openapi_util_1.default.parseToMap(body),
3473
+ });
3474
+ let params = new $OpenApi.Params({
3475
+ action: "DeletePrivateAccessPolicy",
3476
+ version: "2023-01-20",
3477
+ protocol: "HTTPS",
3478
+ pathname: "/",
3479
+ method: "POST",
3480
+ authType: "AK",
3481
+ style: "RPC",
3482
+ reqBodyType: "formData",
3483
+ bodyType: "json",
3484
+ });
3485
+ return $tea.cast(await this.callApi(params, req, runtime), new DeletePrivateAccessPolicyResponse({}));
3486
+ }
3487
+ async deletePrivateAccessPolicy(request) {
3488
+ let runtime = new $Util.RuntimeOptions({});
3489
+ return await this.deletePrivateAccessPolicyWithOptions(request, runtime);
3490
+ }
3491
+ async deletePrivateAccessTagWithOptions(request, runtime) {
3492
+ tea_util_1.default.validateModel(request);
3493
+ let body = {};
3494
+ if (!tea_util_1.default.isUnset(request.tagId)) {
3495
+ body["TagId"] = request.tagId;
3496
+ }
3497
+ let req = new $OpenApi.OpenApiRequest({
3498
+ body: openapi_util_1.default.parseToMap(body),
3499
+ });
3500
+ let params = new $OpenApi.Params({
3501
+ action: "DeletePrivateAccessTag",
3502
+ version: "2023-01-20",
3503
+ protocol: "HTTPS",
3504
+ pathname: "/",
3505
+ method: "POST",
3506
+ authType: "AK",
3507
+ style: "RPC",
3508
+ reqBodyType: "formData",
3509
+ bodyType: "json",
3510
+ });
3511
+ return $tea.cast(await this.callApi(params, req, runtime), new DeletePrivateAccessTagResponse({}));
3512
+ }
3513
+ async deletePrivateAccessTag(request) {
3514
+ let runtime = new $Util.RuntimeOptions({});
3515
+ return await this.deletePrivateAccessTagWithOptions(request, runtime);
3516
+ }
3517
+ async deleteUserGroupWithOptions(request, runtime) {
3518
+ tea_util_1.default.validateModel(request);
3519
+ let body = {};
3520
+ if (!tea_util_1.default.isUnset(request.userGroupId)) {
3521
+ body["UserGroupId"] = request.userGroupId;
3522
+ }
3523
+ let req = new $OpenApi.OpenApiRequest({
3524
+ body: openapi_util_1.default.parseToMap(body),
3525
+ });
3526
+ let params = new $OpenApi.Params({
3527
+ action: "DeleteUserGroup",
3528
+ version: "2023-01-20",
3529
+ protocol: "HTTPS",
3530
+ pathname: "/",
3531
+ method: "POST",
3532
+ authType: "AK",
3533
+ style: "RPC",
3534
+ reqBodyType: "formData",
3535
+ bodyType: "json",
3536
+ });
3537
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteUserGroupResponse({}));
3538
+ }
3539
+ async deleteUserGroup(request) {
3540
+ let runtime = new $Util.RuntimeOptions({});
3541
+ return await this.deleteUserGroupWithOptions(request, runtime);
3542
+ }
3543
+ async detachApplication2ConnectorWithOptions(tmpReq, runtime) {
3544
+ tea_util_1.default.validateModel(tmpReq);
3545
+ let request = new DetachApplication2ConnectorShrinkRequest({});
3546
+ openapi_util_1.default.convert(tmpReq, request);
3547
+ if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
3548
+ request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
3549
+ }
3550
+ let body = {};
3551
+ if (!tea_util_1.default.isUnset(request.applicationIdsShrink)) {
3552
+ body["ApplicationIds"] = request.applicationIdsShrink;
3553
+ }
3554
+ if (!tea_util_1.default.isUnset(request.connectorId)) {
3555
+ body["ConnectorId"] = request.connectorId;
3556
+ }
3557
+ let req = new $OpenApi.OpenApiRequest({
3558
+ body: openapi_util_1.default.parseToMap(body),
3559
+ });
3560
+ let params = new $OpenApi.Params({
3561
+ action: "DetachApplication2Connector",
3562
+ version: "2023-01-20",
3563
+ protocol: "HTTPS",
3564
+ pathname: "/",
3565
+ method: "POST",
3566
+ authType: "AK",
3567
+ style: "RPC",
3568
+ reqBodyType: "formData",
3569
+ bodyType: "json",
3570
+ });
3571
+ return $tea.cast(await this.callApi(params, req, runtime), new DetachApplication2ConnectorResponse({}));
3572
+ }
3573
+ async detachApplication2Connector(request) {
3574
+ let runtime = new $Util.RuntimeOptions({});
3575
+ return await this.detachApplication2ConnectorWithOptions(request, runtime);
3576
+ }
3577
+ async getPrivateAccessApplicationWithOptions(request, runtime) {
3578
+ tea_util_1.default.validateModel(request);
3579
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3580
+ let req = new $OpenApi.OpenApiRequest({
3581
+ query: openapi_util_1.default.query(query),
3582
+ });
3583
+ let params = new $OpenApi.Params({
3584
+ action: "GetPrivateAccessApplication",
3585
+ version: "2023-01-20",
3586
+ protocol: "HTTPS",
3587
+ pathname: "/",
3588
+ method: "GET",
3589
+ authType: "AK",
3590
+ style: "RPC",
3591
+ reqBodyType: "formData",
3592
+ bodyType: "json",
3593
+ });
3594
+ return $tea.cast(await this.callApi(params, req, runtime), new GetPrivateAccessApplicationResponse({}));
3595
+ }
3596
+ async getPrivateAccessApplication(request) {
3597
+ let runtime = new $Util.RuntimeOptions({});
3598
+ return await this.getPrivateAccessApplicationWithOptions(request, runtime);
3599
+ }
3600
+ async getPrivateAccessPolicyWithOptions(request, runtime) {
3601
+ tea_util_1.default.validateModel(request);
3602
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3603
+ let req = new $OpenApi.OpenApiRequest({
3604
+ query: openapi_util_1.default.query(query),
3605
+ });
3606
+ let params = new $OpenApi.Params({
3607
+ action: "GetPrivateAccessPolicy",
3608
+ version: "2023-01-20",
3609
+ protocol: "HTTPS",
3610
+ pathname: "/",
3611
+ method: "GET",
3612
+ authType: "AK",
3613
+ style: "RPC",
3614
+ reqBodyType: "formData",
3615
+ bodyType: "json",
3616
+ });
3617
+ return $tea.cast(await this.callApi(params, req, runtime), new GetPrivateAccessPolicyResponse({}));
3618
+ }
3619
+ async getPrivateAccessPolicy(request) {
3620
+ let runtime = new $Util.RuntimeOptions({});
3621
+ return await this.getPrivateAccessPolicyWithOptions(request, runtime);
3622
+ }
3623
+ async getUserGroupWithOptions(request, runtime) {
3624
+ tea_util_1.default.validateModel(request);
3625
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3626
+ let req = new $OpenApi.OpenApiRequest({
3627
+ query: openapi_util_1.default.query(query),
3628
+ });
3629
+ let params = new $OpenApi.Params({
3630
+ action: "GetUserGroup",
3631
+ version: "2023-01-20",
3632
+ protocol: "HTTPS",
3633
+ pathname: "/",
3634
+ method: "GET",
3635
+ authType: "AK",
3636
+ style: "RPC",
3637
+ reqBodyType: "formData",
3638
+ bodyType: "json",
3639
+ });
3640
+ return $tea.cast(await this.callApi(params, req, runtime), new GetUserGroupResponse({}));
3641
+ }
3642
+ async getUserGroup(request) {
3643
+ let runtime = new $Util.RuntimeOptions({});
3644
+ return await this.getUserGroupWithOptions(request, runtime);
3645
+ }
3646
+ async listApplicationsForPrivateAccessPolicyWithOptions(tmpReq, runtime) {
3647
+ tea_util_1.default.validateModel(tmpReq);
3648
+ let request = new ListApplicationsForPrivateAccessPolicyShrinkRequest({});
3649
+ openapi_util_1.default.convert(tmpReq, request);
3650
+ if (!tea_util_1.default.isUnset(tmpReq.policyIds)) {
3651
+ request.policyIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.policyIds, "PolicyIds", "json");
3652
+ }
3653
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3654
+ let req = new $OpenApi.OpenApiRequest({
3655
+ query: openapi_util_1.default.query(query),
3656
+ });
3657
+ let params = new $OpenApi.Params({
3658
+ action: "ListApplicationsForPrivateAccessPolicy",
3659
+ version: "2023-01-20",
3660
+ protocol: "HTTPS",
3661
+ pathname: "/",
3662
+ method: "GET",
3663
+ authType: "AK",
3664
+ style: "RPC",
3665
+ reqBodyType: "formData",
3666
+ bodyType: "json",
3667
+ });
3668
+ return $tea.cast(await this.callApi(params, req, runtime), new ListApplicationsForPrivateAccessPolicyResponse({}));
3669
+ }
3670
+ async listApplicationsForPrivateAccessPolicy(request) {
3671
+ let runtime = new $Util.RuntimeOptions({});
3672
+ return await this.listApplicationsForPrivateAccessPolicyWithOptions(request, runtime);
3673
+ }
3674
+ async listApplicationsForPrivateAccessTagWithOptions(tmpReq, runtime) {
3675
+ tea_util_1.default.validateModel(tmpReq);
3676
+ let request = new ListApplicationsForPrivateAccessTagShrinkRequest({});
3677
+ openapi_util_1.default.convert(tmpReq, request);
3678
+ if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
3679
+ request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
3680
+ }
3681
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3682
+ let req = new $OpenApi.OpenApiRequest({
3683
+ query: openapi_util_1.default.query(query),
3684
+ });
3685
+ let params = new $OpenApi.Params({
3686
+ action: "ListApplicationsForPrivateAccessTag",
3687
+ version: "2023-01-20",
3688
+ protocol: "HTTPS",
3689
+ pathname: "/",
3690
+ method: "GET",
3691
+ authType: "AK",
3692
+ style: "RPC",
3693
+ reqBodyType: "formData",
3694
+ bodyType: "json",
3695
+ });
3696
+ return $tea.cast(await this.callApi(params, req, runtime), new ListApplicationsForPrivateAccessTagResponse({}));
3697
+ }
3698
+ async listApplicationsForPrivateAccessTag(request) {
3699
+ let runtime = new $Util.RuntimeOptions({});
3700
+ return await this.listApplicationsForPrivateAccessTagWithOptions(request, runtime);
3701
+ }
3702
+ async listConnectorsWithOptions(tmpReq, runtime) {
3703
+ tea_util_1.default.validateModel(tmpReq);
3704
+ let request = new ListConnectorsShrinkRequest({});
3705
+ openapi_util_1.default.convert(tmpReq, request);
3706
+ if (!tea_util_1.default.isUnset(tmpReq.connectorIds)) {
3707
+ request.connectorIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.connectorIds, "ConnectorIds", "json");
3708
+ }
3709
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3710
+ let req = new $OpenApi.OpenApiRequest({
3711
+ query: openapi_util_1.default.query(query),
3712
+ });
3713
+ let params = new $OpenApi.Params({
3714
+ action: "ListConnectors",
3715
+ version: "2023-01-20",
3716
+ protocol: "HTTPS",
3717
+ pathname: "/",
3718
+ method: "GET",
3719
+ authType: "AK",
3720
+ style: "RPC",
3721
+ reqBodyType: "formData",
3722
+ bodyType: "json",
3723
+ });
3724
+ return $tea.cast(await this.callApi(params, req, runtime), new ListConnectorsResponse({}));
3725
+ }
3726
+ async listConnectors(request) {
3727
+ let runtime = new $Util.RuntimeOptions({});
3728
+ return await this.listConnectorsWithOptions(request, runtime);
3729
+ }
3730
+ async listPolicesForPrivateAccessApplicationWithOptions(tmpReq, runtime) {
3731
+ tea_util_1.default.validateModel(tmpReq);
3732
+ let request = new ListPolicesForPrivateAccessApplicationShrinkRequest({});
3733
+ openapi_util_1.default.convert(tmpReq, request);
3734
+ if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
3735
+ request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
3736
+ }
3737
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3738
+ let req = new $OpenApi.OpenApiRequest({
3739
+ query: openapi_util_1.default.query(query),
3740
+ });
3741
+ let params = new $OpenApi.Params({
3742
+ action: "ListPolicesForPrivateAccessApplication",
3743
+ version: "2023-01-20",
3744
+ protocol: "HTTPS",
3745
+ pathname: "/",
3746
+ method: "GET",
3747
+ authType: "AK",
3748
+ style: "RPC",
3749
+ reqBodyType: "formData",
3750
+ bodyType: "json",
3751
+ });
3752
+ return $tea.cast(await this.callApi(params, req, runtime), new ListPolicesForPrivateAccessApplicationResponse({}));
3753
+ }
3754
+ async listPolicesForPrivateAccessApplication(request) {
3755
+ let runtime = new $Util.RuntimeOptions({});
3756
+ return await this.listPolicesForPrivateAccessApplicationWithOptions(request, runtime);
3757
+ }
3758
+ async listPolicesForPrivateAccessTagWithOptions(tmpReq, runtime) {
3759
+ tea_util_1.default.validateModel(tmpReq);
3760
+ let request = new ListPolicesForPrivateAccessTagShrinkRequest({});
3761
+ openapi_util_1.default.convert(tmpReq, request);
3762
+ if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
3763
+ request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
3764
+ }
3765
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3766
+ let req = new $OpenApi.OpenApiRequest({
3767
+ query: openapi_util_1.default.query(query),
3768
+ });
3769
+ let params = new $OpenApi.Params({
3770
+ action: "ListPolicesForPrivateAccessTag",
3771
+ version: "2023-01-20",
3772
+ protocol: "HTTPS",
3773
+ pathname: "/",
3774
+ method: "GET",
3775
+ authType: "AK",
3776
+ style: "RPC",
3777
+ reqBodyType: "formData",
3778
+ bodyType: "json",
3779
+ });
3780
+ return $tea.cast(await this.callApi(params, req, runtime), new ListPolicesForPrivateAccessTagResponse({}));
3781
+ }
3782
+ async listPolicesForPrivateAccessTag(request) {
3783
+ let runtime = new $Util.RuntimeOptions({});
3784
+ return await this.listPolicesForPrivateAccessTagWithOptions(request, runtime);
3785
+ }
3786
+ async listPolicesForUserGroupWithOptions(tmpReq, runtime) {
3787
+ tea_util_1.default.validateModel(tmpReq);
3788
+ let request = new ListPolicesForUserGroupShrinkRequest({});
3789
+ openapi_util_1.default.convert(tmpReq, request);
3790
+ if (!tea_util_1.default.isUnset(tmpReq.userGroupIds)) {
3791
+ request.userGroupIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
3792
+ }
3793
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3794
+ let req = new $OpenApi.OpenApiRequest({
3795
+ query: openapi_util_1.default.query(query),
3796
+ });
3797
+ let params = new $OpenApi.Params({
3798
+ action: "ListPolicesForUserGroup",
3799
+ version: "2023-01-20",
3800
+ protocol: "HTTPS",
3801
+ pathname: "/",
3802
+ method: "GET",
3803
+ authType: "AK",
3804
+ style: "RPC",
3805
+ reqBodyType: "formData",
3806
+ bodyType: "json",
3807
+ });
3808
+ return $tea.cast(await this.callApi(params, req, runtime), new ListPolicesForUserGroupResponse({}));
3809
+ }
3810
+ async listPolicesForUserGroup(request) {
3811
+ let runtime = new $Util.RuntimeOptions({});
3812
+ return await this.listPolicesForUserGroupWithOptions(request, runtime);
3813
+ }
3814
+ async listPrivateAccessApplicationsWithOptions(tmpReq, runtime) {
3815
+ tea_util_1.default.validateModel(tmpReq);
3816
+ let request = new ListPrivateAccessApplicationsShrinkRequest({});
3817
+ openapi_util_1.default.convert(tmpReq, request);
3818
+ if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
3819
+ request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
3820
+ }
3821
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3822
+ let req = new $OpenApi.OpenApiRequest({
3823
+ query: openapi_util_1.default.query(query),
3824
+ });
3825
+ let params = new $OpenApi.Params({
3826
+ action: "ListPrivateAccessApplications",
3827
+ version: "2023-01-20",
3828
+ protocol: "HTTPS",
3829
+ pathname: "/",
3830
+ method: "GET",
3831
+ authType: "AK",
3832
+ style: "RPC",
3833
+ reqBodyType: "formData",
3834
+ bodyType: "json",
3835
+ });
3836
+ return $tea.cast(await this.callApi(params, req, runtime), new ListPrivateAccessApplicationsResponse({}));
3837
+ }
3838
+ async listPrivateAccessApplications(request) {
3839
+ let runtime = new $Util.RuntimeOptions({});
3840
+ return await this.listPrivateAccessApplicationsWithOptions(request, runtime);
3841
+ }
3842
+ async listPrivateAccessPolicesWithOptions(tmpReq, runtime) {
3843
+ tea_util_1.default.validateModel(tmpReq);
3844
+ let request = new ListPrivateAccessPolicesShrinkRequest({});
3845
+ openapi_util_1.default.convert(tmpReq, request);
3846
+ if (!tea_util_1.default.isUnset(tmpReq.policyIds)) {
3847
+ request.policyIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.policyIds, "PolicyIds", "json");
3848
+ }
3849
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3850
+ let req = new $OpenApi.OpenApiRequest({
3851
+ query: openapi_util_1.default.query(query),
3852
+ });
3853
+ let params = new $OpenApi.Params({
3854
+ action: "ListPrivateAccessPolices",
3855
+ version: "2023-01-20",
3856
+ protocol: "HTTPS",
3857
+ pathname: "/",
3858
+ method: "GET",
3859
+ authType: "AK",
3860
+ style: "RPC",
3861
+ reqBodyType: "formData",
3862
+ bodyType: "json",
3863
+ });
3864
+ return $tea.cast(await this.callApi(params, req, runtime), new ListPrivateAccessPolicesResponse({}));
3865
+ }
3866
+ async listPrivateAccessPolices(request) {
3867
+ let runtime = new $Util.RuntimeOptions({});
3868
+ return await this.listPrivateAccessPolicesWithOptions(request, runtime);
3869
+ }
3870
+ async listPrivateAccessTagsWithOptions(tmpReq, runtime) {
3871
+ tea_util_1.default.validateModel(tmpReq);
3872
+ let request = new ListPrivateAccessTagsShrinkRequest({});
3873
+ openapi_util_1.default.convert(tmpReq, request);
3874
+ if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
3875
+ request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
3876
+ }
3877
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3878
+ let req = new $OpenApi.OpenApiRequest({
3879
+ query: openapi_util_1.default.query(query),
3880
+ });
3881
+ let params = new $OpenApi.Params({
3882
+ action: "ListPrivateAccessTags",
3883
+ version: "2023-01-20",
3884
+ protocol: "HTTPS",
3885
+ pathname: "/",
3886
+ method: "GET",
3887
+ authType: "AK",
3888
+ style: "RPC",
3889
+ reqBodyType: "formData",
3890
+ bodyType: "json",
3891
+ });
3892
+ return $tea.cast(await this.callApi(params, req, runtime), new ListPrivateAccessTagsResponse({}));
3893
+ }
3894
+ async listPrivateAccessTags(request) {
3895
+ let runtime = new $Util.RuntimeOptions({});
3896
+ return await this.listPrivateAccessTagsWithOptions(request, runtime);
3897
+ }
3898
+ async listTagsForPrivateAccessApplicationWithOptions(tmpReq, runtime) {
3899
+ tea_util_1.default.validateModel(tmpReq);
3900
+ let request = new ListTagsForPrivateAccessApplicationShrinkRequest({});
3901
+ openapi_util_1.default.convert(tmpReq, request);
3902
+ if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
3903
+ request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
3904
+ }
3905
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3906
+ let req = new $OpenApi.OpenApiRequest({
3907
+ query: openapi_util_1.default.query(query),
3908
+ });
3909
+ let params = new $OpenApi.Params({
3910
+ action: "ListTagsForPrivateAccessApplication",
3911
+ version: "2023-01-20",
3912
+ protocol: "HTTPS",
3913
+ pathname: "/",
3914
+ method: "GET",
3915
+ authType: "AK",
3916
+ style: "RPC",
3917
+ reqBodyType: "formData",
3918
+ bodyType: "json",
3919
+ });
3920
+ return $tea.cast(await this.callApi(params, req, runtime), new ListTagsForPrivateAccessApplicationResponse({}));
3921
+ }
3922
+ async listTagsForPrivateAccessApplication(request) {
3923
+ let runtime = new $Util.RuntimeOptions({});
3924
+ return await this.listTagsForPrivateAccessApplicationWithOptions(request, runtime);
3925
+ }
3926
+ async listTagsForPrivateAccessPolicyWithOptions(tmpReq, runtime) {
3927
+ tea_util_1.default.validateModel(tmpReq);
3928
+ let request = new ListTagsForPrivateAccessPolicyShrinkRequest({});
3929
+ openapi_util_1.default.convert(tmpReq, request);
3930
+ if (!tea_util_1.default.isUnset(tmpReq.policyIds)) {
3931
+ request.policyIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.policyIds, "PolicyIds", "json");
3932
+ }
3933
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3934
+ let req = new $OpenApi.OpenApiRequest({
3935
+ query: openapi_util_1.default.query(query),
3936
+ });
3937
+ let params = new $OpenApi.Params({
3938
+ action: "ListTagsForPrivateAccessPolicy",
3939
+ version: "2023-01-20",
3940
+ protocol: "HTTPS",
3941
+ pathname: "/",
3942
+ method: "GET",
3943
+ authType: "AK",
3944
+ style: "RPC",
3945
+ reqBodyType: "formData",
3946
+ bodyType: "json",
3947
+ });
3948
+ return $tea.cast(await this.callApi(params, req, runtime), new ListTagsForPrivateAccessPolicyResponse({}));
3949
+ }
3950
+ async listTagsForPrivateAccessPolicy(request) {
3951
+ let runtime = new $Util.RuntimeOptions({});
3952
+ return await this.listTagsForPrivateAccessPolicyWithOptions(request, runtime);
3953
+ }
3954
+ async listUserGroupsWithOptions(tmpReq, runtime) {
3955
+ tea_util_1.default.validateModel(tmpReq);
3956
+ let request = new ListUserGroupsShrinkRequest({});
3957
+ openapi_util_1.default.convert(tmpReq, request);
3958
+ if (!tea_util_1.default.isUnset(tmpReq.userGroupIds)) {
3959
+ request.userGroupIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
3960
+ }
3961
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3962
+ let req = new $OpenApi.OpenApiRequest({
3963
+ query: openapi_util_1.default.query(query),
3964
+ });
3965
+ let params = new $OpenApi.Params({
3966
+ action: "ListUserGroups",
3967
+ version: "2023-01-20",
3968
+ protocol: "HTTPS",
3969
+ pathname: "/",
3970
+ method: "GET",
3971
+ authType: "AK",
3972
+ style: "RPC",
3973
+ reqBodyType: "formData",
3974
+ bodyType: "json",
3975
+ });
3976
+ return $tea.cast(await this.callApi(params, req, runtime), new ListUserGroupsResponse({}));
3977
+ }
3978
+ async listUserGroups(request) {
3979
+ let runtime = new $Util.RuntimeOptions({});
3980
+ return await this.listUserGroupsWithOptions(request, runtime);
3981
+ }
3982
+ async listUserGroupsForPrivateAccessPolicyWithOptions(tmpReq, runtime) {
3983
+ tea_util_1.default.validateModel(tmpReq);
3984
+ let request = new ListUserGroupsForPrivateAccessPolicyShrinkRequest({});
3985
+ openapi_util_1.default.convert(tmpReq, request);
3986
+ if (!tea_util_1.default.isUnset(tmpReq.policyIds)) {
3987
+ request.policyIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.policyIds, "PolicyIds", "json");
3988
+ }
3989
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
3990
+ let req = new $OpenApi.OpenApiRequest({
3991
+ query: openapi_util_1.default.query(query),
3992
+ });
3993
+ let params = new $OpenApi.Params({
3994
+ action: "ListUserGroupsForPrivateAccessPolicy",
3995
+ version: "2023-01-20",
3996
+ protocol: "HTTPS",
3997
+ pathname: "/",
3998
+ method: "GET",
3999
+ authType: "AK",
4000
+ style: "RPC",
4001
+ reqBodyType: "formData",
4002
+ bodyType: "json",
4003
+ });
4004
+ return $tea.cast(await this.callApi(params, req, runtime), new ListUserGroupsForPrivateAccessPolicyResponse({}));
4005
+ }
4006
+ async listUserGroupsForPrivateAccessPolicy(request) {
4007
+ let runtime = new $Util.RuntimeOptions({});
4008
+ return await this.listUserGroupsForPrivateAccessPolicyWithOptions(request, runtime);
4009
+ }
4010
+ async updatePrivateAccessApplicationWithOptions(tmpReq, runtime) {
4011
+ tea_util_1.default.validateModel(tmpReq);
4012
+ let request = new UpdatePrivateAccessApplicationShrinkRequest({});
4013
+ openapi_util_1.default.convert(tmpReq, request);
4014
+ if (!tea_util_1.default.isUnset(tmpReq.addresses)) {
4015
+ request.addressesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.addresses, "Addresses", "json");
4016
+ }
4017
+ if (!tea_util_1.default.isUnset(tmpReq.portRanges)) {
4018
+ request.portRangesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.portRanges, "PortRanges", "json");
4019
+ }
4020
+ if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
4021
+ request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
4022
+ }
4023
+ let body = {};
4024
+ if (!tea_util_1.default.isUnset(request.addressesShrink)) {
4025
+ body["Addresses"] = request.addressesShrink;
4026
+ }
4027
+ if (!tea_util_1.default.isUnset(request.applicationId)) {
4028
+ body["ApplicationId"] = request.applicationId;
4029
+ }
4030
+ if (!tea_util_1.default.isUnset(request.description)) {
4031
+ body["Description"] = request.description;
4032
+ }
4033
+ if (!tea_util_1.default.isUnset(request.modifyType)) {
4034
+ body["ModifyType"] = request.modifyType;
4035
+ }
4036
+ if (!tea_util_1.default.isUnset(request.portRangesShrink)) {
4037
+ body["PortRanges"] = request.portRangesShrink;
4038
+ }
4039
+ if (!tea_util_1.default.isUnset(request.protocol)) {
4040
+ body["Protocol"] = request.protocol;
4041
+ }
4042
+ if (!tea_util_1.default.isUnset(request.status)) {
4043
+ body["Status"] = request.status;
4044
+ }
4045
+ if (!tea_util_1.default.isUnset(request.tagIdsShrink)) {
4046
+ body["TagIds"] = request.tagIdsShrink;
4047
+ }
4048
+ let req = new $OpenApi.OpenApiRequest({
4049
+ body: openapi_util_1.default.parseToMap(body),
4050
+ });
4051
+ let params = new $OpenApi.Params({
4052
+ action: "UpdatePrivateAccessApplication",
4053
+ version: "2023-01-20",
4054
+ protocol: "HTTPS",
4055
+ pathname: "/",
4056
+ method: "POST",
4057
+ authType: "AK",
4058
+ style: "RPC",
4059
+ reqBodyType: "formData",
4060
+ bodyType: "json",
4061
+ });
4062
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdatePrivateAccessApplicationResponse({}));
4063
+ }
4064
+ async updatePrivateAccessApplication(request) {
4065
+ let runtime = new $Util.RuntimeOptions({});
4066
+ return await this.updatePrivateAccessApplicationWithOptions(request, runtime);
4067
+ }
4068
+ async updatePrivateAccessPolicyWithOptions(tmpReq, runtime) {
4069
+ tea_util_1.default.validateModel(tmpReq);
4070
+ let request = new UpdatePrivateAccessPolicyShrinkRequest({});
4071
+ openapi_util_1.default.convert(tmpReq, request);
4072
+ if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
4073
+ request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
4074
+ }
4075
+ if (!tea_util_1.default.isUnset(tmpReq.customUserAttributes)) {
4076
+ request.customUserAttributesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.customUserAttributes, "CustomUserAttributes", "json");
4077
+ }
4078
+ if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
4079
+ request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
4080
+ }
4081
+ if (!tea_util_1.default.isUnset(tmpReq.userGroupIds)) {
4082
+ request.userGroupIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
4083
+ }
4084
+ let body = {};
4085
+ if (!tea_util_1.default.isUnset(request.applicationIdsShrink)) {
4086
+ body["ApplicationIds"] = request.applicationIdsShrink;
4087
+ }
4088
+ if (!tea_util_1.default.isUnset(request.applicationType)) {
4089
+ body["ApplicationType"] = request.applicationType;
4090
+ }
4091
+ if (!tea_util_1.default.isUnset(request.customUserAttributesShrink)) {
4092
+ body["CustomUserAttributes"] = request.customUserAttributesShrink;
4093
+ }
4094
+ if (!tea_util_1.default.isUnset(request.description)) {
4095
+ body["Description"] = request.description;
4096
+ }
4097
+ if (!tea_util_1.default.isUnset(request.modifyType)) {
4098
+ body["ModifyType"] = request.modifyType;
4099
+ }
4100
+ if (!tea_util_1.default.isUnset(request.policyAction)) {
4101
+ body["PolicyAction"] = request.policyAction;
4102
+ }
4103
+ if (!tea_util_1.default.isUnset(request.policyId)) {
4104
+ body["PolicyId"] = request.policyId;
4105
+ }
4106
+ if (!tea_util_1.default.isUnset(request.priority)) {
4107
+ body["Priority"] = request.priority;
4108
+ }
4109
+ if (!tea_util_1.default.isUnset(request.status)) {
4110
+ body["Status"] = request.status;
4111
+ }
4112
+ if (!tea_util_1.default.isUnset(request.tagIdsShrink)) {
4113
+ body["TagIds"] = request.tagIdsShrink;
4114
+ }
4115
+ if (!tea_util_1.default.isUnset(request.userGroupIdsShrink)) {
4116
+ body["UserGroupIds"] = request.userGroupIdsShrink;
4117
+ }
4118
+ if (!tea_util_1.default.isUnset(request.userGroupMode)) {
4119
+ body["UserGroupMode"] = request.userGroupMode;
4120
+ }
4121
+ let req = new $OpenApi.OpenApiRequest({
4122
+ body: openapi_util_1.default.parseToMap(body),
4123
+ });
4124
+ let params = new $OpenApi.Params({
4125
+ action: "UpdatePrivateAccessPolicy",
4126
+ version: "2023-01-20",
4127
+ protocol: "HTTPS",
4128
+ pathname: "/",
4129
+ method: "POST",
4130
+ authType: "AK",
4131
+ style: "RPC",
4132
+ reqBodyType: "formData",
4133
+ bodyType: "json",
4134
+ });
4135
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdatePrivateAccessPolicyResponse({}));
4136
+ }
4137
+ async updatePrivateAccessPolicy(request) {
4138
+ let runtime = new $Util.RuntimeOptions({});
4139
+ return await this.updatePrivateAccessPolicyWithOptions(request, runtime);
4140
+ }
4141
+ async updateUserGroupWithOptions(tmpReq, runtime) {
4142
+ tea_util_1.default.validateModel(tmpReq);
4143
+ let request = new UpdateUserGroupShrinkRequest({});
4144
+ openapi_util_1.default.convert(tmpReq, request);
4145
+ if (!tea_util_1.default.isUnset(tmpReq.attributes)) {
4146
+ request.attributesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.attributes, "Attributes", "json");
4147
+ }
4148
+ let body = {};
4149
+ if (!tea_util_1.default.isUnset(request.attributesShrink)) {
4150
+ body["Attributes"] = request.attributesShrink;
4151
+ }
4152
+ if (!tea_util_1.default.isUnset(request.description)) {
4153
+ body["Description"] = request.description;
4154
+ }
4155
+ if (!tea_util_1.default.isUnset(request.modifyType)) {
4156
+ body["ModifyType"] = request.modifyType;
4157
+ }
4158
+ if (!tea_util_1.default.isUnset(request.userGroupId)) {
4159
+ body["UserGroupId"] = request.userGroupId;
4160
+ }
4161
+ let req = new $OpenApi.OpenApiRequest({
4162
+ body: openapi_util_1.default.parseToMap(body),
4163
+ });
4164
+ let params = new $OpenApi.Params({
4165
+ action: "UpdateUserGroup",
4166
+ version: "2023-01-20",
4167
+ protocol: "HTTPS",
4168
+ pathname: "/",
4169
+ method: "POST",
4170
+ authType: "AK",
4171
+ style: "RPC",
4172
+ reqBodyType: "formData",
4173
+ bodyType: "json",
4174
+ });
4175
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateUserGroupResponse({}));
4176
+ }
4177
+ async updateUserGroup(request) {
4178
+ let runtime = new $Util.RuntimeOptions({});
4179
+ return await this.updateUserGroupWithOptions(request, runtime);
4180
+ }
4181
+ }
4182
+ exports.default = Client;
4183
+ //# sourceMappingURL=client.js.map