@alicloud/csas20230120 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +4 -86
- package/dist/client.js +44 -218
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +56 -278
package/dist/client.d.ts
CHANGED
|
@@ -126,24 +126,6 @@ export declare class CreatePrivateAccessApplicationRequest extends $tea.Model {
|
|
|
126
126
|
[key: string]: any;
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
export declare class CreatePrivateAccessApplicationShrinkRequest extends $tea.Model {
|
|
130
|
-
addressesShrink?: string;
|
|
131
|
-
description?: string;
|
|
132
|
-
name?: string;
|
|
133
|
-
portRangesShrink?: string;
|
|
134
|
-
protocol?: string;
|
|
135
|
-
status?: string;
|
|
136
|
-
tagIdsShrink?: string;
|
|
137
|
-
static names(): {
|
|
138
|
-
[key: string]: string;
|
|
139
|
-
};
|
|
140
|
-
static types(): {
|
|
141
|
-
[key: string]: any;
|
|
142
|
-
};
|
|
143
|
-
constructor(map?: {
|
|
144
|
-
[key: string]: any;
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
129
|
export declare class CreatePrivateAccessApplicationResponseBody extends $tea.Model {
|
|
148
130
|
applicationId?: string;
|
|
149
131
|
requestId?: string;
|
|
@@ -195,28 +177,6 @@ export declare class CreatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
195
177
|
[key: string]: any;
|
|
196
178
|
});
|
|
197
179
|
}
|
|
198
|
-
export declare class CreatePrivateAccessPolicyShrinkRequest extends $tea.Model {
|
|
199
|
-
applicationIdsShrink?: string;
|
|
200
|
-
applicationType?: string;
|
|
201
|
-
customUserAttributesShrink?: string;
|
|
202
|
-
description?: string;
|
|
203
|
-
name?: string;
|
|
204
|
-
policyAction?: string;
|
|
205
|
-
priority?: number;
|
|
206
|
-
status?: string;
|
|
207
|
-
tagIdsShrink?: string;
|
|
208
|
-
userGroupIdsShrink?: string;
|
|
209
|
-
userGroupMode?: string;
|
|
210
|
-
static names(): {
|
|
211
|
-
[key: string]: string;
|
|
212
|
-
};
|
|
213
|
-
static types(): {
|
|
214
|
-
[key: string]: any;
|
|
215
|
-
};
|
|
216
|
-
constructor(map?: {
|
|
217
|
-
[key: string]: any;
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
180
|
export declare class CreatePrivateAccessPolicyResponseBody extends $tea.Model {
|
|
221
181
|
policyId?: string;
|
|
222
182
|
requestId?: string;
|
|
@@ -1549,25 +1509,6 @@ export declare class UpdatePrivateAccessApplicationRequest extends $tea.Model {
|
|
|
1549
1509
|
[key: string]: any;
|
|
1550
1510
|
});
|
|
1551
1511
|
}
|
|
1552
|
-
export declare class UpdatePrivateAccessApplicationShrinkRequest extends $tea.Model {
|
|
1553
|
-
addressesShrink?: string;
|
|
1554
|
-
applicationId?: string;
|
|
1555
|
-
description?: string;
|
|
1556
|
-
modifyType?: string;
|
|
1557
|
-
portRangesShrink?: string;
|
|
1558
|
-
protocol?: string;
|
|
1559
|
-
status?: string;
|
|
1560
|
-
tagIdsShrink?: string;
|
|
1561
|
-
static names(): {
|
|
1562
|
-
[key: string]: string;
|
|
1563
|
-
};
|
|
1564
|
-
static types(): {
|
|
1565
|
-
[key: string]: any;
|
|
1566
|
-
};
|
|
1567
|
-
constructor(map?: {
|
|
1568
|
-
[key: string]: any;
|
|
1569
|
-
});
|
|
1570
|
-
}
|
|
1571
1512
|
export declare class UpdatePrivateAccessApplicationResponseBody extends $tea.Model {
|
|
1572
1513
|
requestId?: string;
|
|
1573
1514
|
static names(): {
|
|
@@ -1619,29 +1560,6 @@ export declare class UpdatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
1619
1560
|
[key: string]: any;
|
|
1620
1561
|
});
|
|
1621
1562
|
}
|
|
1622
|
-
export declare class UpdatePrivateAccessPolicyShrinkRequest extends $tea.Model {
|
|
1623
|
-
applicationIdsShrink?: string;
|
|
1624
|
-
applicationType?: string;
|
|
1625
|
-
customUserAttributesShrink?: string;
|
|
1626
|
-
description?: string;
|
|
1627
|
-
modifyType?: string;
|
|
1628
|
-
policyAction?: string;
|
|
1629
|
-
policyId?: string;
|
|
1630
|
-
priority?: number;
|
|
1631
|
-
status?: string;
|
|
1632
|
-
tagIdsShrink?: string;
|
|
1633
|
-
userGroupIdsShrink?: string;
|
|
1634
|
-
userGroupMode?: string;
|
|
1635
|
-
static names(): {
|
|
1636
|
-
[key: string]: string;
|
|
1637
|
-
};
|
|
1638
|
-
static types(): {
|
|
1639
|
-
[key: string]: any;
|
|
1640
|
-
};
|
|
1641
|
-
constructor(map?: {
|
|
1642
|
-
[key: string]: any;
|
|
1643
|
-
});
|
|
1644
|
-
}
|
|
1645
1563
|
export declare class UpdatePrivateAccessPolicyResponseBody extends $tea.Model {
|
|
1646
1564
|
requestId?: string;
|
|
1647
1565
|
static names(): {
|
|
@@ -2516,9 +2434,9 @@ export default class Client extends OpenApi {
|
|
|
2516
2434
|
attachApplication2Connector(request: AttachApplication2ConnectorRequest): Promise<AttachApplication2ConnectorResponse>;
|
|
2517
2435
|
createDynamicRouteWithOptions(request: CreateDynamicRouteRequest, runtime: $Util.RuntimeOptions): Promise<CreateDynamicRouteResponse>;
|
|
2518
2436
|
createDynamicRoute(request: CreateDynamicRouteRequest): Promise<CreateDynamicRouteResponse>;
|
|
2519
|
-
createPrivateAccessApplicationWithOptions(
|
|
2437
|
+
createPrivateAccessApplicationWithOptions(request: CreatePrivateAccessApplicationRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessApplicationResponse>;
|
|
2520
2438
|
createPrivateAccessApplication(request: CreatePrivateAccessApplicationRequest): Promise<CreatePrivateAccessApplicationResponse>;
|
|
2521
|
-
createPrivateAccessPolicyWithOptions(
|
|
2439
|
+
createPrivateAccessPolicyWithOptions(request: CreatePrivateAccessPolicyRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessPolicyResponse>;
|
|
2522
2440
|
createPrivateAccessPolicy(request: CreatePrivateAccessPolicyRequest): Promise<CreatePrivateAccessPolicyResponse>;
|
|
2523
2441
|
createPrivateAccessTagWithOptions(request: CreatePrivateAccessTagRequest, runtime: $Util.RuntimeOptions): Promise<CreatePrivateAccessTagResponse>;
|
|
2524
2442
|
createPrivateAccessTag(request: CreatePrivateAccessTagRequest): Promise<CreatePrivateAccessTagResponse>;
|
|
@@ -2580,9 +2498,9 @@ export default class Client extends OpenApi {
|
|
|
2580
2498
|
listUserGroupsForPrivateAccessPolicy(request: ListUserGroupsForPrivateAccessPolicyRequest): Promise<ListUserGroupsForPrivateAccessPolicyResponse>;
|
|
2581
2499
|
updateDynamicRouteWithOptions(request: UpdateDynamicRouteRequest, runtime: $Util.RuntimeOptions): Promise<UpdateDynamicRouteResponse>;
|
|
2582
2500
|
updateDynamicRoute(request: UpdateDynamicRouteRequest): Promise<UpdateDynamicRouteResponse>;
|
|
2583
|
-
updatePrivateAccessApplicationWithOptions(
|
|
2501
|
+
updatePrivateAccessApplicationWithOptions(request: UpdatePrivateAccessApplicationRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePrivateAccessApplicationResponse>;
|
|
2584
2502
|
updatePrivateAccessApplication(request: UpdatePrivateAccessApplicationRequest): Promise<UpdatePrivateAccessApplicationResponse>;
|
|
2585
|
-
updatePrivateAccessPolicyWithOptions(
|
|
2503
|
+
updatePrivateAccessPolicyWithOptions(request: UpdatePrivateAccessPolicyRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePrivateAccessPolicyResponse>;
|
|
2586
2504
|
updatePrivateAccessPolicy(request: UpdatePrivateAccessPolicyRequest): Promise<UpdatePrivateAccessPolicyResponse>;
|
|
2587
2505
|
updateUserGroupWithOptions(request: UpdateUserGroupRequest, runtime: $Util.RuntimeOptions): Promise<UpdateUserGroupResponse>;
|
|
2588
2506
|
updateUserGroup(request: UpdateUserGroupRequest): Promise<UpdateUserGroupResponse>;
|
package/dist/client.js
CHANGED
|
@@ -191,34 +191,6 @@ class CreatePrivateAccessApplicationRequest extends $tea.Model {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
exports.CreatePrivateAccessApplicationRequest = CreatePrivateAccessApplicationRequest;
|
|
194
|
-
class CreatePrivateAccessApplicationShrinkRequest extends $tea.Model {
|
|
195
|
-
constructor(map) {
|
|
196
|
-
super(map);
|
|
197
|
-
}
|
|
198
|
-
static names() {
|
|
199
|
-
return {
|
|
200
|
-
addressesShrink: 'Addresses',
|
|
201
|
-
description: 'Description',
|
|
202
|
-
name: 'Name',
|
|
203
|
-
portRangesShrink: 'PortRanges',
|
|
204
|
-
protocol: 'Protocol',
|
|
205
|
-
status: 'Status',
|
|
206
|
-
tagIdsShrink: 'TagIds',
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
static types() {
|
|
210
|
-
return {
|
|
211
|
-
addressesShrink: 'string',
|
|
212
|
-
description: 'string',
|
|
213
|
-
name: 'string',
|
|
214
|
-
portRangesShrink: 'string',
|
|
215
|
-
protocol: 'string',
|
|
216
|
-
status: 'string',
|
|
217
|
-
tagIdsShrink: 'string',
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
exports.CreatePrivateAccessApplicationShrinkRequest = CreatePrivateAccessApplicationShrinkRequest;
|
|
222
194
|
class CreatePrivateAccessApplicationResponseBody extends $tea.Model {
|
|
223
195
|
constructor(map) {
|
|
224
196
|
super(map);
|
|
@@ -293,42 +265,6 @@ class CreatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
293
265
|
}
|
|
294
266
|
}
|
|
295
267
|
exports.CreatePrivateAccessPolicyRequest = CreatePrivateAccessPolicyRequest;
|
|
296
|
-
class CreatePrivateAccessPolicyShrinkRequest extends $tea.Model {
|
|
297
|
-
constructor(map) {
|
|
298
|
-
super(map);
|
|
299
|
-
}
|
|
300
|
-
static names() {
|
|
301
|
-
return {
|
|
302
|
-
applicationIdsShrink: 'ApplicationIds',
|
|
303
|
-
applicationType: 'ApplicationType',
|
|
304
|
-
customUserAttributesShrink: 'CustomUserAttributes',
|
|
305
|
-
description: 'Description',
|
|
306
|
-
name: 'Name',
|
|
307
|
-
policyAction: 'PolicyAction',
|
|
308
|
-
priority: 'Priority',
|
|
309
|
-
status: 'Status',
|
|
310
|
-
tagIdsShrink: 'TagIds',
|
|
311
|
-
userGroupIdsShrink: 'UserGroupIds',
|
|
312
|
-
userGroupMode: 'UserGroupMode',
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
static types() {
|
|
316
|
-
return {
|
|
317
|
-
applicationIdsShrink: 'string',
|
|
318
|
-
applicationType: 'string',
|
|
319
|
-
customUserAttributesShrink: 'string',
|
|
320
|
-
description: 'string',
|
|
321
|
-
name: 'string',
|
|
322
|
-
policyAction: 'string',
|
|
323
|
-
priority: 'number',
|
|
324
|
-
status: 'string',
|
|
325
|
-
tagIdsShrink: 'string',
|
|
326
|
-
userGroupIdsShrink: 'string',
|
|
327
|
-
userGroupMode: 'string',
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
exports.CreatePrivateAccessPolicyShrinkRequest = CreatePrivateAccessPolicyShrinkRequest;
|
|
332
268
|
class CreatePrivateAccessPolicyResponseBody extends $tea.Model {
|
|
333
269
|
constructor(map) {
|
|
334
270
|
super(map);
|
|
@@ -2125,36 +2061,6 @@ class UpdatePrivateAccessApplicationRequest extends $tea.Model {
|
|
|
2125
2061
|
}
|
|
2126
2062
|
}
|
|
2127
2063
|
exports.UpdatePrivateAccessApplicationRequest = UpdatePrivateAccessApplicationRequest;
|
|
2128
|
-
class UpdatePrivateAccessApplicationShrinkRequest extends $tea.Model {
|
|
2129
|
-
constructor(map) {
|
|
2130
|
-
super(map);
|
|
2131
|
-
}
|
|
2132
|
-
static names() {
|
|
2133
|
-
return {
|
|
2134
|
-
addressesShrink: 'Addresses',
|
|
2135
|
-
applicationId: 'ApplicationId',
|
|
2136
|
-
description: 'Description',
|
|
2137
|
-
modifyType: 'ModifyType',
|
|
2138
|
-
portRangesShrink: 'PortRanges',
|
|
2139
|
-
protocol: 'Protocol',
|
|
2140
|
-
status: 'Status',
|
|
2141
|
-
tagIdsShrink: 'TagIds',
|
|
2142
|
-
};
|
|
2143
|
-
}
|
|
2144
|
-
static types() {
|
|
2145
|
-
return {
|
|
2146
|
-
addressesShrink: 'string',
|
|
2147
|
-
applicationId: 'string',
|
|
2148
|
-
description: 'string',
|
|
2149
|
-
modifyType: 'string',
|
|
2150
|
-
portRangesShrink: 'string',
|
|
2151
|
-
protocol: 'string',
|
|
2152
|
-
status: 'string',
|
|
2153
|
-
tagIdsShrink: 'string',
|
|
2154
|
-
};
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
exports.UpdatePrivateAccessApplicationShrinkRequest = UpdatePrivateAccessApplicationShrinkRequest;
|
|
2158
2064
|
class UpdatePrivateAccessApplicationResponseBody extends $tea.Model {
|
|
2159
2065
|
constructor(map) {
|
|
2160
2066
|
super(map);
|
|
@@ -2229,44 +2135,6 @@ class UpdatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
2229
2135
|
}
|
|
2230
2136
|
}
|
|
2231
2137
|
exports.UpdatePrivateAccessPolicyRequest = UpdatePrivateAccessPolicyRequest;
|
|
2232
|
-
class UpdatePrivateAccessPolicyShrinkRequest extends $tea.Model {
|
|
2233
|
-
constructor(map) {
|
|
2234
|
-
super(map);
|
|
2235
|
-
}
|
|
2236
|
-
static names() {
|
|
2237
|
-
return {
|
|
2238
|
-
applicationIdsShrink: 'ApplicationIds',
|
|
2239
|
-
applicationType: 'ApplicationType',
|
|
2240
|
-
customUserAttributesShrink: 'CustomUserAttributes',
|
|
2241
|
-
description: 'Description',
|
|
2242
|
-
modifyType: 'ModifyType',
|
|
2243
|
-
policyAction: 'PolicyAction',
|
|
2244
|
-
policyId: 'PolicyId',
|
|
2245
|
-
priority: 'Priority',
|
|
2246
|
-
status: 'Status',
|
|
2247
|
-
tagIdsShrink: 'TagIds',
|
|
2248
|
-
userGroupIdsShrink: 'UserGroupIds',
|
|
2249
|
-
userGroupMode: 'UserGroupMode',
|
|
2250
|
-
};
|
|
2251
|
-
}
|
|
2252
|
-
static types() {
|
|
2253
|
-
return {
|
|
2254
|
-
applicationIdsShrink: 'string',
|
|
2255
|
-
applicationType: 'string',
|
|
2256
|
-
customUserAttributesShrink: 'string',
|
|
2257
|
-
description: 'string',
|
|
2258
|
-
modifyType: 'string',
|
|
2259
|
-
policyAction: 'string',
|
|
2260
|
-
policyId: 'string',
|
|
2261
|
-
priority: 'number',
|
|
2262
|
-
status: 'string',
|
|
2263
|
-
tagIdsShrink: 'string',
|
|
2264
|
-
userGroupIdsShrink: 'string',
|
|
2265
|
-
userGroupMode: 'string',
|
|
2266
|
-
};
|
|
2267
|
-
}
|
|
2268
|
-
}
|
|
2269
|
-
exports.UpdatePrivateAccessPolicyShrinkRequest = UpdatePrivateAccessPolicyShrinkRequest;
|
|
2270
2138
|
class UpdatePrivateAccessPolicyResponseBody extends $tea.Model {
|
|
2271
2139
|
constructor(map) {
|
|
2272
2140
|
super(map);
|
|
@@ -3654,22 +3522,12 @@ class Client extends openapi_client_1.default {
|
|
|
3654
3522
|
let runtime = new $Util.RuntimeOptions({});
|
|
3655
3523
|
return await this.createDynamicRouteWithOptions(request, runtime);
|
|
3656
3524
|
}
|
|
3657
|
-
async createPrivateAccessApplicationWithOptions(
|
|
3658
|
-
tea_util_1.default.validateModel(
|
|
3659
|
-
let request = new CreatePrivateAccessApplicationShrinkRequest({});
|
|
3660
|
-
openapi_util_1.default.convert(tmpReq, request);
|
|
3661
|
-
if (!tea_util_1.default.isUnset(tmpReq.addresses)) {
|
|
3662
|
-
request.addressesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.addresses, "Addresses", "json");
|
|
3663
|
-
}
|
|
3664
|
-
if (!tea_util_1.default.isUnset(tmpReq.portRanges)) {
|
|
3665
|
-
request.portRangesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.portRanges, "PortRanges", "json");
|
|
3666
|
-
}
|
|
3667
|
-
if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
|
|
3668
|
-
request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
|
|
3669
|
-
}
|
|
3525
|
+
async createPrivateAccessApplicationWithOptions(request, runtime) {
|
|
3526
|
+
tea_util_1.default.validateModel(request);
|
|
3670
3527
|
let body = {};
|
|
3671
|
-
|
|
3672
|
-
|
|
3528
|
+
let bodyFlat = {};
|
|
3529
|
+
if (!tea_util_1.default.isUnset(request.addresses)) {
|
|
3530
|
+
bodyFlat["Addresses"] = request.addresses;
|
|
3673
3531
|
}
|
|
3674
3532
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
3675
3533
|
body["Description"] = request.description;
|
|
@@ -3677,8 +3535,8 @@ class Client extends openapi_client_1.default {
|
|
|
3677
3535
|
if (!tea_util_1.default.isUnset(request.name)) {
|
|
3678
3536
|
body["Name"] = request.name;
|
|
3679
3537
|
}
|
|
3680
|
-
if (!tea_util_1.default.isUnset(request.
|
|
3681
|
-
|
|
3538
|
+
if (!tea_util_1.default.isUnset(request.portRanges)) {
|
|
3539
|
+
bodyFlat["PortRanges"] = request.portRanges;
|
|
3682
3540
|
}
|
|
3683
3541
|
if (!tea_util_1.default.isUnset(request.protocol)) {
|
|
3684
3542
|
body["Protocol"] = request.protocol;
|
|
@@ -3686,9 +3544,10 @@ class Client extends openapi_client_1.default {
|
|
|
3686
3544
|
if (!tea_util_1.default.isUnset(request.status)) {
|
|
3687
3545
|
body["Status"] = request.status;
|
|
3688
3546
|
}
|
|
3689
|
-
if (!tea_util_1.default.isUnset(request.
|
|
3690
|
-
|
|
3547
|
+
if (!tea_util_1.default.isUnset(request.tagIds)) {
|
|
3548
|
+
bodyFlat["TagIds"] = request.tagIds;
|
|
3691
3549
|
}
|
|
3550
|
+
body = Object.assign(Object.assign({}, body), openapi_util_1.default.query(bodyFlat));
|
|
3692
3551
|
let req = new $OpenApi.OpenApiRequest({
|
|
3693
3552
|
body: openapi_util_1.default.parseToMap(body),
|
|
3694
3553
|
});
|
|
@@ -3709,31 +3568,18 @@ class Client extends openapi_client_1.default {
|
|
|
3709
3568
|
let runtime = new $Util.RuntimeOptions({});
|
|
3710
3569
|
return await this.createPrivateAccessApplicationWithOptions(request, runtime);
|
|
3711
3570
|
}
|
|
3712
|
-
async createPrivateAccessPolicyWithOptions(
|
|
3713
|
-
tea_util_1.default.validateModel(
|
|
3714
|
-
let request = new CreatePrivateAccessPolicyShrinkRequest({});
|
|
3715
|
-
openapi_util_1.default.convert(tmpReq, request);
|
|
3716
|
-
if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
|
|
3717
|
-
request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
|
|
3718
|
-
}
|
|
3719
|
-
if (!tea_util_1.default.isUnset(tmpReq.customUserAttributes)) {
|
|
3720
|
-
request.customUserAttributesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.customUserAttributes, "CustomUserAttributes", "json");
|
|
3721
|
-
}
|
|
3722
|
-
if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
|
|
3723
|
-
request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
|
|
3724
|
-
}
|
|
3725
|
-
if (!tea_util_1.default.isUnset(tmpReq.userGroupIds)) {
|
|
3726
|
-
request.userGroupIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
|
|
3727
|
-
}
|
|
3571
|
+
async createPrivateAccessPolicyWithOptions(request, runtime) {
|
|
3572
|
+
tea_util_1.default.validateModel(request);
|
|
3728
3573
|
let body = {};
|
|
3729
|
-
|
|
3730
|
-
|
|
3574
|
+
let bodyFlat = {};
|
|
3575
|
+
if (!tea_util_1.default.isUnset(request.applicationIds)) {
|
|
3576
|
+
bodyFlat["ApplicationIds"] = request.applicationIds;
|
|
3731
3577
|
}
|
|
3732
3578
|
if (!tea_util_1.default.isUnset(request.applicationType)) {
|
|
3733
3579
|
body["ApplicationType"] = request.applicationType;
|
|
3734
3580
|
}
|
|
3735
|
-
if (!tea_util_1.default.isUnset(request.
|
|
3736
|
-
|
|
3581
|
+
if (!tea_util_1.default.isUnset(request.customUserAttributes)) {
|
|
3582
|
+
bodyFlat["CustomUserAttributes"] = request.customUserAttributes;
|
|
3737
3583
|
}
|
|
3738
3584
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
3739
3585
|
body["Description"] = request.description;
|
|
@@ -3750,15 +3596,16 @@ class Client extends openapi_client_1.default {
|
|
|
3750
3596
|
if (!tea_util_1.default.isUnset(request.status)) {
|
|
3751
3597
|
body["Status"] = request.status;
|
|
3752
3598
|
}
|
|
3753
|
-
if (!tea_util_1.default.isUnset(request.
|
|
3754
|
-
|
|
3599
|
+
if (!tea_util_1.default.isUnset(request.tagIds)) {
|
|
3600
|
+
bodyFlat["TagIds"] = request.tagIds;
|
|
3755
3601
|
}
|
|
3756
|
-
if (!tea_util_1.default.isUnset(request.
|
|
3757
|
-
|
|
3602
|
+
if (!tea_util_1.default.isUnset(request.userGroupIds)) {
|
|
3603
|
+
bodyFlat["UserGroupIds"] = request.userGroupIds;
|
|
3758
3604
|
}
|
|
3759
3605
|
if (!tea_util_1.default.isUnset(request.userGroupMode)) {
|
|
3760
3606
|
body["UserGroupMode"] = request.userGroupMode;
|
|
3761
3607
|
}
|
|
3608
|
+
body = Object.assign(Object.assign({}, body), openapi_util_1.default.query(bodyFlat));
|
|
3762
3609
|
let req = new $OpenApi.OpenApiRequest({
|
|
3763
3610
|
body: openapi_util_1.default.parseToMap(body),
|
|
3764
3611
|
});
|
|
@@ -4546,22 +4393,12 @@ class Client extends openapi_client_1.default {
|
|
|
4546
4393
|
let runtime = new $Util.RuntimeOptions({});
|
|
4547
4394
|
return await this.updateDynamicRouteWithOptions(request, runtime);
|
|
4548
4395
|
}
|
|
4549
|
-
async updatePrivateAccessApplicationWithOptions(
|
|
4550
|
-
tea_util_1.default.validateModel(
|
|
4551
|
-
let request = new UpdatePrivateAccessApplicationShrinkRequest({});
|
|
4552
|
-
openapi_util_1.default.convert(tmpReq, request);
|
|
4553
|
-
if (!tea_util_1.default.isUnset(tmpReq.addresses)) {
|
|
4554
|
-
request.addressesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.addresses, "Addresses", "json");
|
|
4555
|
-
}
|
|
4556
|
-
if (!tea_util_1.default.isUnset(tmpReq.portRanges)) {
|
|
4557
|
-
request.portRangesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.portRanges, "PortRanges", "json");
|
|
4558
|
-
}
|
|
4559
|
-
if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
|
|
4560
|
-
request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
|
|
4561
|
-
}
|
|
4396
|
+
async updatePrivateAccessApplicationWithOptions(request, runtime) {
|
|
4397
|
+
tea_util_1.default.validateModel(request);
|
|
4562
4398
|
let body = {};
|
|
4563
|
-
|
|
4564
|
-
|
|
4399
|
+
let bodyFlat = {};
|
|
4400
|
+
if (!tea_util_1.default.isUnset(request.addresses)) {
|
|
4401
|
+
bodyFlat["Addresses"] = request.addresses;
|
|
4565
4402
|
}
|
|
4566
4403
|
if (!tea_util_1.default.isUnset(request.applicationId)) {
|
|
4567
4404
|
body["ApplicationId"] = request.applicationId;
|
|
@@ -4572,8 +4409,8 @@ class Client extends openapi_client_1.default {
|
|
|
4572
4409
|
if (!tea_util_1.default.isUnset(request.modifyType)) {
|
|
4573
4410
|
body["ModifyType"] = request.modifyType;
|
|
4574
4411
|
}
|
|
4575
|
-
if (!tea_util_1.default.isUnset(request.
|
|
4576
|
-
|
|
4412
|
+
if (!tea_util_1.default.isUnset(request.portRanges)) {
|
|
4413
|
+
bodyFlat["PortRanges"] = request.portRanges;
|
|
4577
4414
|
}
|
|
4578
4415
|
if (!tea_util_1.default.isUnset(request.protocol)) {
|
|
4579
4416
|
body["Protocol"] = request.protocol;
|
|
@@ -4581,9 +4418,10 @@ class Client extends openapi_client_1.default {
|
|
|
4581
4418
|
if (!tea_util_1.default.isUnset(request.status)) {
|
|
4582
4419
|
body["Status"] = request.status;
|
|
4583
4420
|
}
|
|
4584
|
-
if (!tea_util_1.default.isUnset(request.
|
|
4585
|
-
|
|
4421
|
+
if (!tea_util_1.default.isUnset(request.tagIds)) {
|
|
4422
|
+
bodyFlat["TagIds"] = request.tagIds;
|
|
4586
4423
|
}
|
|
4424
|
+
body = Object.assign(Object.assign({}, body), openapi_util_1.default.query(bodyFlat));
|
|
4587
4425
|
let req = new $OpenApi.OpenApiRequest({
|
|
4588
4426
|
body: openapi_util_1.default.parseToMap(body),
|
|
4589
4427
|
});
|
|
@@ -4604,31 +4442,18 @@ class Client extends openapi_client_1.default {
|
|
|
4604
4442
|
let runtime = new $Util.RuntimeOptions({});
|
|
4605
4443
|
return await this.updatePrivateAccessApplicationWithOptions(request, runtime);
|
|
4606
4444
|
}
|
|
4607
|
-
async updatePrivateAccessPolicyWithOptions(
|
|
4608
|
-
tea_util_1.default.validateModel(
|
|
4609
|
-
let request = new UpdatePrivateAccessPolicyShrinkRequest({});
|
|
4610
|
-
openapi_util_1.default.convert(tmpReq, request);
|
|
4611
|
-
if (!tea_util_1.default.isUnset(tmpReq.applicationIds)) {
|
|
4612
|
-
request.applicationIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.applicationIds, "ApplicationIds", "json");
|
|
4613
|
-
}
|
|
4614
|
-
if (!tea_util_1.default.isUnset(tmpReq.customUserAttributes)) {
|
|
4615
|
-
request.customUserAttributesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.customUserAttributes, "CustomUserAttributes", "json");
|
|
4616
|
-
}
|
|
4617
|
-
if (!tea_util_1.default.isUnset(tmpReq.tagIds)) {
|
|
4618
|
-
request.tagIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagIds, "TagIds", "json");
|
|
4619
|
-
}
|
|
4620
|
-
if (!tea_util_1.default.isUnset(tmpReq.userGroupIds)) {
|
|
4621
|
-
request.userGroupIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.userGroupIds, "UserGroupIds", "json");
|
|
4622
|
-
}
|
|
4445
|
+
async updatePrivateAccessPolicyWithOptions(request, runtime) {
|
|
4446
|
+
tea_util_1.default.validateModel(request);
|
|
4623
4447
|
let body = {};
|
|
4624
|
-
|
|
4625
|
-
|
|
4448
|
+
let bodyFlat = {};
|
|
4449
|
+
if (!tea_util_1.default.isUnset(request.applicationIds)) {
|
|
4450
|
+
bodyFlat["ApplicationIds"] = request.applicationIds;
|
|
4626
4451
|
}
|
|
4627
4452
|
if (!tea_util_1.default.isUnset(request.applicationType)) {
|
|
4628
4453
|
body["ApplicationType"] = request.applicationType;
|
|
4629
4454
|
}
|
|
4630
|
-
if (!tea_util_1.default.isUnset(request.
|
|
4631
|
-
|
|
4455
|
+
if (!tea_util_1.default.isUnset(request.customUserAttributes)) {
|
|
4456
|
+
bodyFlat["CustomUserAttributes"] = request.customUserAttributes;
|
|
4632
4457
|
}
|
|
4633
4458
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
4634
4459
|
body["Description"] = request.description;
|
|
@@ -4648,15 +4473,16 @@ class Client extends openapi_client_1.default {
|
|
|
4648
4473
|
if (!tea_util_1.default.isUnset(request.status)) {
|
|
4649
4474
|
body["Status"] = request.status;
|
|
4650
4475
|
}
|
|
4651
|
-
if (!tea_util_1.default.isUnset(request.
|
|
4652
|
-
|
|
4476
|
+
if (!tea_util_1.default.isUnset(request.tagIds)) {
|
|
4477
|
+
bodyFlat["TagIds"] = request.tagIds;
|
|
4653
4478
|
}
|
|
4654
|
-
if (!tea_util_1.default.isUnset(request.
|
|
4655
|
-
|
|
4479
|
+
if (!tea_util_1.default.isUnset(request.userGroupIds)) {
|
|
4480
|
+
bodyFlat["UserGroupIds"] = request.userGroupIds;
|
|
4656
4481
|
}
|
|
4657
4482
|
if (!tea_util_1.default.isUnset(request.userGroupMode)) {
|
|
4658
4483
|
body["UserGroupMode"] = request.userGroupMode;
|
|
4659
4484
|
}
|
|
4485
|
+
body = Object.assign(Object.assign({}, body), openapi_util_1.default.query(bodyFlat));
|
|
4660
4486
|
let req = new $OpenApi.OpenApiRequest({
|
|
4661
4487
|
body: openapi_util_1.default.parseToMap(body),
|
|
4662
4488
|
});
|