@alicloud/csas20230120 1.2.0 → 1.3.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.d.ts +232 -153
- package/dist/client.js +139 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +326 -153
package/dist/client.js
CHANGED
|
@@ -239,6 +239,7 @@ class CreatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
239
239
|
applicationType: 'ApplicationType',
|
|
240
240
|
customUserAttributes: 'CustomUserAttributes',
|
|
241
241
|
description: 'Description',
|
|
242
|
+
deviceAttributeId: 'DeviceAttributeId',
|
|
242
243
|
name: 'Name',
|
|
243
244
|
policyAction: 'PolicyAction',
|
|
244
245
|
priority: 'Priority',
|
|
@@ -254,6 +255,7 @@ class CreatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
254
255
|
applicationType: 'string',
|
|
255
256
|
customUserAttributes: { 'type': 'array', 'itemType': CreatePrivateAccessPolicyRequestCustomUserAttributes },
|
|
256
257
|
description: 'string',
|
|
258
|
+
deviceAttributeId: 'string',
|
|
257
259
|
name: 'string',
|
|
258
260
|
policyAction: 'string',
|
|
259
261
|
priority: 'number',
|
|
@@ -1775,6 +1777,64 @@ class ListPolicesForUserGroupResponse extends $tea.Model {
|
|
|
1775
1777
|
}
|
|
1776
1778
|
}
|
|
1777
1779
|
exports.ListPolicesForUserGroupResponse = ListPolicesForUserGroupResponse;
|
|
1780
|
+
class ListPopTrafficStatisticsRequest extends $tea.Model {
|
|
1781
|
+
constructor(map) {
|
|
1782
|
+
super(map);
|
|
1783
|
+
}
|
|
1784
|
+
static names() {
|
|
1785
|
+
return {
|
|
1786
|
+
endTime: 'EndTime',
|
|
1787
|
+
region: 'Region',
|
|
1788
|
+
startTime: 'StartTime',
|
|
1789
|
+
};
|
|
1790
|
+
}
|
|
1791
|
+
static types() {
|
|
1792
|
+
return {
|
|
1793
|
+
endTime: 'string',
|
|
1794
|
+
region: 'string',
|
|
1795
|
+
startTime: 'string',
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
exports.ListPopTrafficStatisticsRequest = ListPopTrafficStatisticsRequest;
|
|
1800
|
+
class ListPopTrafficStatisticsResponseBody extends $tea.Model {
|
|
1801
|
+
constructor(map) {
|
|
1802
|
+
super(map);
|
|
1803
|
+
}
|
|
1804
|
+
static names() {
|
|
1805
|
+
return {
|
|
1806
|
+
requestId: 'RequestId',
|
|
1807
|
+
trafficData: 'TrafficData',
|
|
1808
|
+
};
|
|
1809
|
+
}
|
|
1810
|
+
static types() {
|
|
1811
|
+
return {
|
|
1812
|
+
requestId: 'string',
|
|
1813
|
+
trafficData: { 'type': 'array', 'itemType': ListPopTrafficStatisticsResponseBodyTrafficData },
|
|
1814
|
+
};
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
exports.ListPopTrafficStatisticsResponseBody = ListPopTrafficStatisticsResponseBody;
|
|
1818
|
+
class ListPopTrafficStatisticsResponse extends $tea.Model {
|
|
1819
|
+
constructor(map) {
|
|
1820
|
+
super(map);
|
|
1821
|
+
}
|
|
1822
|
+
static names() {
|
|
1823
|
+
return {
|
|
1824
|
+
headers: 'headers',
|
|
1825
|
+
statusCode: 'statusCode',
|
|
1826
|
+
body: 'body',
|
|
1827
|
+
};
|
|
1828
|
+
}
|
|
1829
|
+
static types() {
|
|
1830
|
+
return {
|
|
1831
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1832
|
+
statusCode: 'number',
|
|
1833
|
+
body: ListPopTrafficStatisticsResponseBody,
|
|
1834
|
+
};
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
exports.ListPopTrafficStatisticsResponse = ListPopTrafficStatisticsResponse;
|
|
1778
1838
|
class ListPrivateAccessApplicationsRequest extends $tea.Model {
|
|
1779
1839
|
constructor(map) {
|
|
1780
1840
|
super(map);
|
|
@@ -1908,6 +1968,7 @@ class ListPrivateAccessPolicesRequest extends $tea.Model {
|
|
|
1908
1968
|
static names() {
|
|
1909
1969
|
return {
|
|
1910
1970
|
applicationId: 'ApplicationId',
|
|
1971
|
+
applicationName: 'ApplicationName',
|
|
1911
1972
|
currentPage: 'CurrentPage',
|
|
1912
1973
|
name: 'Name',
|
|
1913
1974
|
pageSize: 'PageSize',
|
|
@@ -1915,12 +1976,14 @@ class ListPrivateAccessPolicesRequest extends $tea.Model {
|
|
|
1915
1976
|
policyIds: 'PolicyIds',
|
|
1916
1977
|
status: 'Status',
|
|
1917
1978
|
tagId: 'TagId',
|
|
1979
|
+
tagName: 'TagName',
|
|
1918
1980
|
userGroupId: 'UserGroupId',
|
|
1919
1981
|
};
|
|
1920
1982
|
}
|
|
1921
1983
|
static types() {
|
|
1922
1984
|
return {
|
|
1923
1985
|
applicationId: 'string',
|
|
1986
|
+
applicationName: 'string',
|
|
1924
1987
|
currentPage: 'number',
|
|
1925
1988
|
name: 'string',
|
|
1926
1989
|
pageSize: 'number',
|
|
@@ -1928,6 +1991,7 @@ class ListPrivateAccessPolicesRequest extends $tea.Model {
|
|
|
1928
1991
|
policyIds: { 'type': 'array', 'itemType': 'string' },
|
|
1929
1992
|
status: 'string',
|
|
1930
1993
|
tagId: 'string',
|
|
1994
|
+
tagName: 'string',
|
|
1931
1995
|
userGroupId: 'string',
|
|
1932
1996
|
};
|
|
1933
1997
|
}
|
|
@@ -1984,6 +2048,7 @@ class ListPrivateAccessTagsRequest extends $tea.Model {
|
|
|
1984
2048
|
name: 'Name',
|
|
1985
2049
|
pageSize: 'PageSize',
|
|
1986
2050
|
policyId: 'PolicyId',
|
|
2051
|
+
simpleMode: 'SimpleMode',
|
|
1987
2052
|
tagIds: 'TagIds',
|
|
1988
2053
|
};
|
|
1989
2054
|
}
|
|
@@ -1994,6 +2059,7 @@ class ListPrivateAccessTagsRequest extends $tea.Model {
|
|
|
1994
2059
|
name: 'string',
|
|
1995
2060
|
pageSize: 'number',
|
|
1996
2061
|
policyId: 'string',
|
|
2062
|
+
simpleMode: 'boolean',
|
|
1997
2063
|
tagIds: { 'type': 'array', 'itemType': 'string' },
|
|
1998
2064
|
};
|
|
1999
2065
|
}
|
|
@@ -2409,6 +2475,7 @@ class ListUserDevicesRequest extends $tea.Model {
|
|
|
2409
2475
|
pageSize: 'PageSize',
|
|
2410
2476
|
saseUserId: 'SaseUserId',
|
|
2411
2477
|
sharingStatus: 'SharingStatus',
|
|
2478
|
+
sortBy: 'SortBy',
|
|
2412
2479
|
username: 'Username',
|
|
2413
2480
|
};
|
|
2414
2481
|
}
|
|
@@ -2430,6 +2497,7 @@ class ListUserDevicesRequest extends $tea.Model {
|
|
|
2430
2497
|
pageSize: 'number',
|
|
2431
2498
|
saseUserId: 'string',
|
|
2432
2499
|
sharingStatus: 'boolean',
|
|
2500
|
+
sortBy: 'string',
|
|
2433
2501
|
username: 'string',
|
|
2434
2502
|
};
|
|
2435
2503
|
}
|
|
@@ -2855,6 +2923,7 @@ class UpdatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
2855
2923
|
applicationType: 'ApplicationType',
|
|
2856
2924
|
customUserAttributes: 'CustomUserAttributes',
|
|
2857
2925
|
description: 'Description',
|
|
2926
|
+
deviceAttributeId: 'DeviceAttributeId',
|
|
2858
2927
|
modifyType: 'ModifyType',
|
|
2859
2928
|
policyAction: 'PolicyAction',
|
|
2860
2929
|
policyId: 'PolicyId',
|
|
@@ -2871,6 +2940,7 @@ class UpdatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
2871
2940
|
applicationType: 'string',
|
|
2872
2941
|
customUserAttributes: { 'type': 'array', 'itemType': UpdatePrivateAccessPolicyRequestCustomUserAttributes },
|
|
2873
2942
|
description: 'string',
|
|
2943
|
+
deviceAttributeId: 'string',
|
|
2874
2944
|
modifyType: 'string',
|
|
2875
2945
|
policyAction: 'string',
|
|
2876
2946
|
policyId: 'string',
|
|
@@ -3504,6 +3574,7 @@ class GetPrivateAccessPolicyResponseBodyPolicy extends $tea.Model {
|
|
|
3504
3574
|
createTime: 'CreateTime',
|
|
3505
3575
|
customUserAttributes: 'CustomUserAttributes',
|
|
3506
3576
|
description: 'Description',
|
|
3577
|
+
deviceAttributeId: 'DeviceAttributeId',
|
|
3507
3578
|
name: 'Name',
|
|
3508
3579
|
policyAction: 'PolicyAction',
|
|
3509
3580
|
policyId: 'PolicyId',
|
|
@@ -3521,6 +3592,7 @@ class GetPrivateAccessPolicyResponseBodyPolicy extends $tea.Model {
|
|
|
3521
3592
|
createTime: 'string',
|
|
3522
3593
|
customUserAttributes: { 'type': 'array', 'itemType': GetPrivateAccessPolicyResponseBodyPolicyCustomUserAttributes },
|
|
3523
3594
|
description: 'string',
|
|
3595
|
+
deviceAttributeId: 'string',
|
|
3524
3596
|
name: 'string',
|
|
3525
3597
|
policyAction: 'string',
|
|
3526
3598
|
policyId: 'string',
|
|
@@ -4187,6 +4259,42 @@ class ListPolicesForUserGroupResponseBodyUserGroups extends $tea.Model {
|
|
|
4187
4259
|
}
|
|
4188
4260
|
}
|
|
4189
4261
|
exports.ListPolicesForUserGroupResponseBodyUserGroups = ListPolicesForUserGroupResponseBodyUserGroups;
|
|
4262
|
+
class ListPopTrafficStatisticsResponseBodyTrafficDataDatapoints extends $tea.Model {
|
|
4263
|
+
constructor(map) {
|
|
4264
|
+
super(map);
|
|
4265
|
+
}
|
|
4266
|
+
static names() {
|
|
4267
|
+
return {
|
|
4268
|
+
average: 'Average',
|
|
4269
|
+
dateTime: 'DateTime',
|
|
4270
|
+
};
|
|
4271
|
+
}
|
|
4272
|
+
static types() {
|
|
4273
|
+
return {
|
|
4274
|
+
average: 'number',
|
|
4275
|
+
dateTime: 'string',
|
|
4276
|
+
};
|
|
4277
|
+
}
|
|
4278
|
+
}
|
|
4279
|
+
exports.ListPopTrafficStatisticsResponseBodyTrafficDataDatapoints = ListPopTrafficStatisticsResponseBodyTrafficDataDatapoints;
|
|
4280
|
+
class ListPopTrafficStatisticsResponseBodyTrafficData extends $tea.Model {
|
|
4281
|
+
constructor(map) {
|
|
4282
|
+
super(map);
|
|
4283
|
+
}
|
|
4284
|
+
static names() {
|
|
4285
|
+
return {
|
|
4286
|
+
datapoints: 'Datapoints',
|
|
4287
|
+
metricName: 'MetricName',
|
|
4288
|
+
};
|
|
4289
|
+
}
|
|
4290
|
+
static types() {
|
|
4291
|
+
return {
|
|
4292
|
+
datapoints: { 'type': 'array', 'itemType': ListPopTrafficStatisticsResponseBodyTrafficDataDatapoints },
|
|
4293
|
+
metricName: 'string',
|
|
4294
|
+
};
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
exports.ListPopTrafficStatisticsResponseBodyTrafficData = ListPopTrafficStatisticsResponseBodyTrafficData;
|
|
4190
4298
|
class ListPrivateAccessApplicationsResponseBodyApplicationsPortRanges extends $tea.Model {
|
|
4191
4299
|
constructor(map) {
|
|
4192
4300
|
super(map);
|
|
@@ -4340,6 +4448,7 @@ class ListPrivateAccessPolicesResponseBodyPolices extends $tea.Model {
|
|
|
4340
4448
|
createTime: 'CreateTime',
|
|
4341
4449
|
customUserAttributes: 'CustomUserAttributes',
|
|
4342
4450
|
description: 'Description',
|
|
4451
|
+
deviceAttributeId: 'DeviceAttributeId',
|
|
4343
4452
|
name: 'Name',
|
|
4344
4453
|
policyAction: 'PolicyAction',
|
|
4345
4454
|
policyId: 'PolicyId',
|
|
@@ -4357,6 +4466,7 @@ class ListPrivateAccessPolicesResponseBodyPolices extends $tea.Model {
|
|
|
4357
4466
|
createTime: 'string',
|
|
4358
4467
|
customUserAttributes: { 'type': 'array', 'itemType': ListPrivateAccessPolicesResponseBodyPolicesCustomUserAttributes },
|
|
4359
4468
|
description: 'string',
|
|
4469
|
+
deviceAttributeId: 'string',
|
|
4360
4470
|
name: 'string',
|
|
4361
4471
|
policyAction: 'string',
|
|
4362
4472
|
policyId: 'string',
|
|
@@ -5456,6 +5566,9 @@ class Client extends openapi_client_1.default {
|
|
|
5456
5566
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
5457
5567
|
body["Description"] = request.description;
|
|
5458
5568
|
}
|
|
5569
|
+
if (!tea_util_1.default.isUnset(request.deviceAttributeId)) {
|
|
5570
|
+
body["DeviceAttributeId"] = request.deviceAttributeId;
|
|
5571
|
+
}
|
|
5459
5572
|
if (!tea_util_1.default.isUnset(request.name)) {
|
|
5460
5573
|
body["Name"] = request.name;
|
|
5461
5574
|
}
|
|
@@ -6160,6 +6273,29 @@ class Client extends openapi_client_1.default {
|
|
|
6160
6273
|
let runtime = new $Util.RuntimeOptions({});
|
|
6161
6274
|
return await this.listPolicesForUserGroupWithOptions(request, runtime);
|
|
6162
6275
|
}
|
|
6276
|
+
async listPopTrafficStatisticsWithOptions(request, runtime) {
|
|
6277
|
+
tea_util_1.default.validateModel(request);
|
|
6278
|
+
let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
|
|
6279
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6280
|
+
query: openapi_util_1.default.query(query),
|
|
6281
|
+
});
|
|
6282
|
+
let params = new $OpenApi.Params({
|
|
6283
|
+
action: "ListPopTrafficStatistics",
|
|
6284
|
+
version: "2023-01-20",
|
|
6285
|
+
protocol: "HTTPS",
|
|
6286
|
+
pathname: "/",
|
|
6287
|
+
method: "GET",
|
|
6288
|
+
authType: "AK",
|
|
6289
|
+
style: "RPC",
|
|
6290
|
+
reqBodyType: "formData",
|
|
6291
|
+
bodyType: "json",
|
|
6292
|
+
});
|
|
6293
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListPopTrafficStatisticsResponse({}));
|
|
6294
|
+
}
|
|
6295
|
+
async listPopTrafficStatistics(request) {
|
|
6296
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6297
|
+
return await this.listPopTrafficStatisticsWithOptions(request, runtime);
|
|
6298
|
+
}
|
|
6163
6299
|
async listPrivateAccessApplicationsWithOptions(request, runtime) {
|
|
6164
6300
|
tea_util_1.default.validateModel(request);
|
|
6165
6301
|
let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
|
|
@@ -6639,6 +6775,9 @@ class Client extends openapi_client_1.default {
|
|
|
6639
6775
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
6640
6776
|
body["Description"] = request.description;
|
|
6641
6777
|
}
|
|
6778
|
+
if (!tea_util_1.default.isUnset(request.deviceAttributeId)) {
|
|
6779
|
+
body["DeviceAttributeId"] = request.deviceAttributeId;
|
|
6780
|
+
}
|
|
6642
6781
|
if (!tea_util_1.default.isUnset(request.modifyType)) {
|
|
6643
6782
|
body["ModifyType"] = request.modifyType;
|
|
6644
6783
|
}
|