@alicloud/csas20230120 1.2.1 → 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 +230 -153
- package/dist/client.js +135 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +320 -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
|
}
|
|
@@ -2859,6 +2923,7 @@ class UpdatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
2859
2923
|
applicationType: 'ApplicationType',
|
|
2860
2924
|
customUserAttributes: 'CustomUserAttributes',
|
|
2861
2925
|
description: 'Description',
|
|
2926
|
+
deviceAttributeId: 'DeviceAttributeId',
|
|
2862
2927
|
modifyType: 'ModifyType',
|
|
2863
2928
|
policyAction: 'PolicyAction',
|
|
2864
2929
|
policyId: 'PolicyId',
|
|
@@ -2875,6 +2940,7 @@ class UpdatePrivateAccessPolicyRequest extends $tea.Model {
|
|
|
2875
2940
|
applicationType: 'string',
|
|
2876
2941
|
customUserAttributes: { 'type': 'array', 'itemType': UpdatePrivateAccessPolicyRequestCustomUserAttributes },
|
|
2877
2942
|
description: 'string',
|
|
2943
|
+
deviceAttributeId: 'string',
|
|
2878
2944
|
modifyType: 'string',
|
|
2879
2945
|
policyAction: 'string',
|
|
2880
2946
|
policyId: 'string',
|
|
@@ -3508,6 +3574,7 @@ class GetPrivateAccessPolicyResponseBodyPolicy extends $tea.Model {
|
|
|
3508
3574
|
createTime: 'CreateTime',
|
|
3509
3575
|
customUserAttributes: 'CustomUserAttributes',
|
|
3510
3576
|
description: 'Description',
|
|
3577
|
+
deviceAttributeId: 'DeviceAttributeId',
|
|
3511
3578
|
name: 'Name',
|
|
3512
3579
|
policyAction: 'PolicyAction',
|
|
3513
3580
|
policyId: 'PolicyId',
|
|
@@ -3525,6 +3592,7 @@ class GetPrivateAccessPolicyResponseBodyPolicy extends $tea.Model {
|
|
|
3525
3592
|
createTime: 'string',
|
|
3526
3593
|
customUserAttributes: { 'type': 'array', 'itemType': GetPrivateAccessPolicyResponseBodyPolicyCustomUserAttributes },
|
|
3527
3594
|
description: 'string',
|
|
3595
|
+
deviceAttributeId: 'string',
|
|
3528
3596
|
name: 'string',
|
|
3529
3597
|
policyAction: 'string',
|
|
3530
3598
|
policyId: 'string',
|
|
@@ -4191,6 +4259,42 @@ class ListPolicesForUserGroupResponseBodyUserGroups extends $tea.Model {
|
|
|
4191
4259
|
}
|
|
4192
4260
|
}
|
|
4193
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;
|
|
4194
4298
|
class ListPrivateAccessApplicationsResponseBodyApplicationsPortRanges extends $tea.Model {
|
|
4195
4299
|
constructor(map) {
|
|
4196
4300
|
super(map);
|
|
@@ -4344,6 +4448,7 @@ class ListPrivateAccessPolicesResponseBodyPolices extends $tea.Model {
|
|
|
4344
4448
|
createTime: 'CreateTime',
|
|
4345
4449
|
customUserAttributes: 'CustomUserAttributes',
|
|
4346
4450
|
description: 'Description',
|
|
4451
|
+
deviceAttributeId: 'DeviceAttributeId',
|
|
4347
4452
|
name: 'Name',
|
|
4348
4453
|
policyAction: 'PolicyAction',
|
|
4349
4454
|
policyId: 'PolicyId',
|
|
@@ -4361,6 +4466,7 @@ class ListPrivateAccessPolicesResponseBodyPolices extends $tea.Model {
|
|
|
4361
4466
|
createTime: 'string',
|
|
4362
4467
|
customUserAttributes: { 'type': 'array', 'itemType': ListPrivateAccessPolicesResponseBodyPolicesCustomUserAttributes },
|
|
4363
4468
|
description: 'string',
|
|
4469
|
+
deviceAttributeId: 'string',
|
|
4364
4470
|
name: 'string',
|
|
4365
4471
|
policyAction: 'string',
|
|
4366
4472
|
policyId: 'string',
|
|
@@ -5460,6 +5566,9 @@ class Client extends openapi_client_1.default {
|
|
|
5460
5566
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
5461
5567
|
body["Description"] = request.description;
|
|
5462
5568
|
}
|
|
5569
|
+
if (!tea_util_1.default.isUnset(request.deviceAttributeId)) {
|
|
5570
|
+
body["DeviceAttributeId"] = request.deviceAttributeId;
|
|
5571
|
+
}
|
|
5463
5572
|
if (!tea_util_1.default.isUnset(request.name)) {
|
|
5464
5573
|
body["Name"] = request.name;
|
|
5465
5574
|
}
|
|
@@ -6164,6 +6273,29 @@ class Client extends openapi_client_1.default {
|
|
|
6164
6273
|
let runtime = new $Util.RuntimeOptions({});
|
|
6165
6274
|
return await this.listPolicesForUserGroupWithOptions(request, runtime);
|
|
6166
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
|
+
}
|
|
6167
6299
|
async listPrivateAccessApplicationsWithOptions(request, runtime) {
|
|
6168
6300
|
tea_util_1.default.validateModel(request);
|
|
6169
6301
|
let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
|
|
@@ -6643,6 +6775,9 @@ class Client extends openapi_client_1.default {
|
|
|
6643
6775
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
6644
6776
|
body["Description"] = request.description;
|
|
6645
6777
|
}
|
|
6778
|
+
if (!tea_util_1.default.isUnset(request.deviceAttributeId)) {
|
|
6779
|
+
body["DeviceAttributeId"] = request.deviceAttributeId;
|
|
6780
|
+
}
|
|
6646
6781
|
if (!tea_util_1.default.isUnset(request.modifyType)) {
|
|
6647
6782
|
body["ModifyType"] = request.modifyType;
|
|
6648
6783
|
}
|