@alicloud/ddoscoo20200101 1.1.0 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ddoscoo20200101",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.7",
24
- "@alicloud/openapi-client": "^0.4.4",
24
+ "@alicloud/openapi-client": "^0.4.7",
25
25
  "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
package/src/client.ts CHANGED
@@ -6599,6 +6599,81 @@ export class DescribePortAutoCcStatusResponse extends $tea.Model {
6599
6599
  }
6600
6600
  }
6601
6601
 
6602
+ export class DescribePortCcAttackTopIPRequest extends $tea.Model {
6603
+ ip?: string;
6604
+ limit?: number;
6605
+ port?: string;
6606
+ startTimestamp?: number;
6607
+ static names(): { [key: string]: string } {
6608
+ return {
6609
+ ip: 'Ip',
6610
+ limit: 'Limit',
6611
+ port: 'Port',
6612
+ startTimestamp: 'StartTimestamp',
6613
+ };
6614
+ }
6615
+
6616
+ static types(): { [key: string]: any } {
6617
+ return {
6618
+ ip: 'string',
6619
+ limit: 'number',
6620
+ port: 'string',
6621
+ startTimestamp: 'number',
6622
+ };
6623
+ }
6624
+
6625
+ constructor(map?: { [key: string]: any }) {
6626
+ super(map);
6627
+ }
6628
+ }
6629
+
6630
+ export class DescribePortCcAttackTopIPResponseBody extends $tea.Model {
6631
+ requestId?: string;
6632
+ topIp?: DescribePortCcAttackTopIPResponseBodyTopIp[];
6633
+ static names(): { [key: string]: string } {
6634
+ return {
6635
+ requestId: 'RequestId',
6636
+ topIp: 'TopIp',
6637
+ };
6638
+ }
6639
+
6640
+ static types(): { [key: string]: any } {
6641
+ return {
6642
+ requestId: 'string',
6643
+ topIp: { 'type': 'array', 'itemType': DescribePortCcAttackTopIPResponseBodyTopIp },
6644
+ };
6645
+ }
6646
+
6647
+ constructor(map?: { [key: string]: any }) {
6648
+ super(map);
6649
+ }
6650
+ }
6651
+
6652
+ export class DescribePortCcAttackTopIPResponse extends $tea.Model {
6653
+ headers: { [key: string]: string };
6654
+ statusCode: number;
6655
+ body: DescribePortCcAttackTopIPResponseBody;
6656
+ static names(): { [key: string]: string } {
6657
+ return {
6658
+ headers: 'headers',
6659
+ statusCode: 'statusCode',
6660
+ body: 'body',
6661
+ };
6662
+ }
6663
+
6664
+ static types(): { [key: string]: any } {
6665
+ return {
6666
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6667
+ statusCode: 'number',
6668
+ body: DescribePortCcAttackTopIPResponseBody,
6669
+ };
6670
+ }
6671
+
6672
+ constructor(map?: { [key: string]: any }) {
6673
+ super(map);
6674
+ }
6675
+ }
6676
+
6602
6677
  export class DescribePortConnsCountRequest extends $tea.Model {
6603
6678
  endTime?: number;
6604
6679
  instanceIds?: string[];
@@ -9044,6 +9119,87 @@ export class DescribeWebPreciseAccessRuleResponse extends $tea.Model {
9044
9119
  }
9045
9120
  }
9046
9121
 
9122
+ export class DescribeWebReportTopIpRequest extends $tea.Model {
9123
+ domain?: string;
9124
+ endTime?: number;
9125
+ interval?: number;
9126
+ queryType?: string;
9127
+ startTime?: number;
9128
+ top?: number;
9129
+ static names(): { [key: string]: string } {
9130
+ return {
9131
+ domain: 'Domain',
9132
+ endTime: 'EndTime',
9133
+ interval: 'Interval',
9134
+ queryType: 'QueryType',
9135
+ startTime: 'StartTime',
9136
+ top: 'Top',
9137
+ };
9138
+ }
9139
+
9140
+ static types(): { [key: string]: any } {
9141
+ return {
9142
+ domain: 'string',
9143
+ endTime: 'number',
9144
+ interval: 'number',
9145
+ queryType: 'string',
9146
+ startTime: 'number',
9147
+ top: 'number',
9148
+ };
9149
+ }
9150
+
9151
+ constructor(map?: { [key: string]: any }) {
9152
+ super(map);
9153
+ }
9154
+ }
9155
+
9156
+ export class DescribeWebReportTopIpResponseBody extends $tea.Model {
9157
+ dataList?: DescribeWebReportTopIpResponseBodyDataList[];
9158
+ requestId?: string;
9159
+ static names(): { [key: string]: string } {
9160
+ return {
9161
+ dataList: 'DataList',
9162
+ requestId: 'RequestId',
9163
+ };
9164
+ }
9165
+
9166
+ static types(): { [key: string]: any } {
9167
+ return {
9168
+ dataList: { 'type': 'array', 'itemType': DescribeWebReportTopIpResponseBodyDataList },
9169
+ requestId: 'string',
9170
+ };
9171
+ }
9172
+
9173
+ constructor(map?: { [key: string]: any }) {
9174
+ super(map);
9175
+ }
9176
+ }
9177
+
9178
+ export class DescribeWebReportTopIpResponse extends $tea.Model {
9179
+ headers: { [key: string]: string };
9180
+ statusCode: number;
9181
+ body: DescribeWebReportTopIpResponseBody;
9182
+ static names(): { [key: string]: string } {
9183
+ return {
9184
+ headers: 'headers',
9185
+ statusCode: 'statusCode',
9186
+ body: 'body',
9187
+ };
9188
+ }
9189
+
9190
+ static types(): { [key: string]: any } {
9191
+ return {
9192
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
9193
+ statusCode: 'number',
9194
+ body: DescribeWebReportTopIpResponseBody,
9195
+ };
9196
+ }
9197
+
9198
+ constructor(map?: { [key: string]: any }) {
9199
+ super(map);
9200
+ }
9201
+ }
9202
+
9047
9203
  export class DescribeWebRulesRequest extends $tea.Model {
9048
9204
  cname?: string;
9049
9205
  domain?: string;
@@ -14115,6 +14271,31 @@ export class DescribePortAutoCcStatusResponseBodyPortAutoCcStatus extends $tea.M
14115
14271
  }
14116
14272
  }
14117
14273
 
14274
+ export class DescribePortCcAttackTopIPResponseBodyTopIp extends $tea.Model {
14275
+ areaId?: string;
14276
+ pv?: number;
14277
+ srcIp?: string;
14278
+ static names(): { [key: string]: string } {
14279
+ return {
14280
+ areaId: 'AreaId',
14281
+ pv: 'Pv',
14282
+ srcIp: 'SrcIp',
14283
+ };
14284
+ }
14285
+
14286
+ static types(): { [key: string]: any } {
14287
+ return {
14288
+ areaId: 'string',
14289
+ pv: 'number',
14290
+ srcIp: 'string',
14291
+ };
14292
+ }
14293
+
14294
+ constructor(map?: { [key: string]: any }) {
14295
+ super(map);
14296
+ }
14297
+ }
14298
+
14118
14299
  export class DescribePortConnsListResponseBodyConnsList extends $tea.Model {
14119
14300
  actConns?: number;
14120
14301
  conns?: number;
@@ -14442,6 +14623,7 @@ export class DescribeSchedulerRulesResponseBodySchedulerRulesParam extends $tea.
14442
14623
  }
14443
14624
 
14444
14625
  export class DescribeSchedulerRulesResponseBodySchedulerRulesRules extends $tea.Model {
14626
+ line?: string;
14445
14627
  priority?: number;
14446
14628
  regionId?: string;
14447
14629
  restoreDelay?: number;
@@ -14451,6 +14633,7 @@ export class DescribeSchedulerRulesResponseBodySchedulerRulesRules extends $tea.
14451
14633
  valueType?: number;
14452
14634
  static names(): { [key: string]: string } {
14453
14635
  return {
14636
+ line: 'Line',
14454
14637
  priority: 'Priority',
14455
14638
  regionId: 'RegionId',
14456
14639
  restoreDelay: 'RestoreDelay',
@@ -14463,6 +14646,7 @@ export class DescribeSchedulerRulesResponseBodySchedulerRulesRules extends $tea.
14463
14646
 
14464
14647
  static types(): { [key: string]: any } {
14465
14648
  return {
14649
+ line: 'string',
14466
14650
  priority: 'number',
14467
14651
  regionId: 'string',
14468
14652
  restoreDelay: 'number',
@@ -14875,6 +15059,7 @@ export class DescribeWebCcProtectSwitchResponseBodyProtectSwitchList extends $te
14875
15059
  blackWhiteListEnable?: number;
14876
15060
  ccCustomRuleEnable?: number;
14877
15061
  ccEnable?: number;
15062
+ ccGlobalSwitch?: string;
14878
15063
  ccTemplate?: string;
14879
15064
  domain?: string;
14880
15065
  preciseRuleEnable?: number;
@@ -14887,6 +15072,7 @@ export class DescribeWebCcProtectSwitchResponseBodyProtectSwitchList extends $te
14887
15072
  blackWhiteListEnable: 'BlackWhiteListEnable',
14888
15073
  ccCustomRuleEnable: 'CcCustomRuleEnable',
14889
15074
  ccEnable: 'CcEnable',
15075
+ ccGlobalSwitch: 'CcGlobalSwitch',
14890
15076
  ccTemplate: 'CcTemplate',
14891
15077
  domain: 'Domain',
14892
15078
  preciseRuleEnable: 'PreciseRuleEnable',
@@ -14902,6 +15088,7 @@ export class DescribeWebCcProtectSwitchResponseBodyProtectSwitchList extends $te
14902
15088
  blackWhiteListEnable: 'number',
14903
15089
  ccCustomRuleEnable: 'number',
14904
15090
  ccEnable: 'number',
15091
+ ccGlobalSwitch: 'string',
14905
15092
  ccTemplate: 'string',
14906
15093
  domain: 'string',
14907
15094
  preciseRuleEnable: 'number',
@@ -14985,12 +15172,14 @@ export class DescribeWebInstanceRelationsResponseBodyWebInstanceRelations extend
14985
15172
 
14986
15173
  export class DescribeWebPreciseAccessRuleResponseBodyPreciseAccessConfigListRuleListConditionList extends $tea.Model {
14987
15174
  content?: string;
15175
+ contentList?: string[];
14988
15176
  field?: string;
14989
15177
  headerName?: string;
14990
15178
  matchMethod?: string;
14991
15179
  static names(): { [key: string]: string } {
14992
15180
  return {
14993
15181
  content: 'Content',
15182
+ contentList: 'ContentList',
14994
15183
  field: 'Field',
14995
15184
  headerName: 'HeaderName',
14996
15185
  matchMethod: 'MatchMethod',
@@ -15000,6 +15189,7 @@ export class DescribeWebPreciseAccessRuleResponseBodyPreciseAccessConfigListRule
15000
15189
  static types(): { [key: string]: any } {
15001
15190
  return {
15002
15191
  content: 'string',
15192
+ contentList: { 'type': 'array', 'itemType': 'string' },
15003
15193
  field: 'string',
15004
15194
  headerName: 'string',
15005
15195
  matchMethod: 'string',
@@ -15064,6 +15254,34 @@ export class DescribeWebPreciseAccessRuleResponseBodyPreciseAccessConfigList ext
15064
15254
  }
15065
15255
  }
15066
15256
 
15257
+ export class DescribeWebReportTopIpResponseBodyDataList extends $tea.Model {
15258
+ areaId?: string;
15259
+ count?: number;
15260
+ isp?: string;
15261
+ sourceIp?: string;
15262
+ static names(): { [key: string]: string } {
15263
+ return {
15264
+ areaId: 'AreaId',
15265
+ count: 'Count',
15266
+ isp: 'Isp',
15267
+ sourceIp: 'SourceIp',
15268
+ };
15269
+ }
15270
+
15271
+ static types(): { [key: string]: any } {
15272
+ return {
15273
+ areaId: 'string',
15274
+ count: 'number',
15275
+ isp: 'string',
15276
+ sourceIp: 'string',
15277
+ };
15278
+ }
15279
+
15280
+ constructor(map?: { [key: string]: any }) {
15281
+ super(map);
15282
+ }
15283
+ }
15284
+
15067
15285
  export class DescribeWebRulesResponseBodyWebRulesGmCert extends $tea.Model {
15068
15286
  certId?: string;
15069
15287
  gmEnable?: number;
@@ -19069,6 +19287,47 @@ export default class Client extends OpenApi {
19069
19287
  return await this.describePortAutoCcStatusWithOptions(request, runtime);
19070
19288
  }
19071
19289
 
19290
+ async describePortCcAttackTopIPWithOptions(request: DescribePortCcAttackTopIPRequest, runtime: $Util.RuntimeOptions): Promise<DescribePortCcAttackTopIPResponse> {
19291
+ Util.validateModel(request);
19292
+ let query = { };
19293
+ if (!Util.isUnset(request.ip)) {
19294
+ query["Ip"] = request.ip;
19295
+ }
19296
+
19297
+ if (!Util.isUnset(request.limit)) {
19298
+ query["Limit"] = request.limit;
19299
+ }
19300
+
19301
+ if (!Util.isUnset(request.port)) {
19302
+ query["Port"] = request.port;
19303
+ }
19304
+
19305
+ if (!Util.isUnset(request.startTimestamp)) {
19306
+ query["StartTimestamp"] = request.startTimestamp;
19307
+ }
19308
+
19309
+ let req = new $OpenApi.OpenApiRequest({
19310
+ query: OpenApiUtil.query(query),
19311
+ });
19312
+ let params = new $OpenApi.Params({
19313
+ action: "DescribePortCcAttackTopIP",
19314
+ version: "2020-01-01",
19315
+ protocol: "HTTPS",
19316
+ pathname: "/",
19317
+ method: "POST",
19318
+ authType: "AK",
19319
+ style: "RPC",
19320
+ reqBodyType: "formData",
19321
+ bodyType: "json",
19322
+ });
19323
+ return $tea.cast<DescribePortCcAttackTopIPResponse>(await this.callApi(params, req, runtime), new DescribePortCcAttackTopIPResponse({}));
19324
+ }
19325
+
19326
+ async describePortCcAttackTopIP(request: DescribePortCcAttackTopIPRequest): Promise<DescribePortCcAttackTopIPResponse> {
19327
+ let runtime = new $Util.RuntimeOptions({ });
19328
+ return await this.describePortCcAttackTopIPWithOptions(request, runtime);
19329
+ }
19330
+
19072
19331
  async describePortConnsCountWithOptions(request: DescribePortConnsCountRequest, runtime: $Util.RuntimeOptions): Promise<DescribePortConnsCountResponse> {
19073
19332
  Util.validateModel(request);
19074
19333
  let query = { };
@@ -20466,6 +20725,55 @@ export default class Client extends OpenApi {
20466
20725
  return await this.describeWebPreciseAccessRuleWithOptions(request, runtime);
20467
20726
  }
20468
20727
 
20728
+ async describeWebReportTopIpWithOptions(request: DescribeWebReportTopIpRequest, runtime: $Util.RuntimeOptions): Promise<DescribeWebReportTopIpResponse> {
20729
+ Util.validateModel(request);
20730
+ let query = { };
20731
+ if (!Util.isUnset(request.domain)) {
20732
+ query["Domain"] = request.domain;
20733
+ }
20734
+
20735
+ if (!Util.isUnset(request.endTime)) {
20736
+ query["EndTime"] = request.endTime;
20737
+ }
20738
+
20739
+ if (!Util.isUnset(request.interval)) {
20740
+ query["Interval"] = request.interval;
20741
+ }
20742
+
20743
+ if (!Util.isUnset(request.queryType)) {
20744
+ query["QueryType"] = request.queryType;
20745
+ }
20746
+
20747
+ if (!Util.isUnset(request.startTime)) {
20748
+ query["StartTime"] = request.startTime;
20749
+ }
20750
+
20751
+ if (!Util.isUnset(request.top)) {
20752
+ query["Top"] = request.top;
20753
+ }
20754
+
20755
+ let req = new $OpenApi.OpenApiRequest({
20756
+ query: OpenApiUtil.query(query),
20757
+ });
20758
+ let params = new $OpenApi.Params({
20759
+ action: "DescribeWebReportTopIp",
20760
+ version: "2020-01-01",
20761
+ protocol: "HTTPS",
20762
+ pathname: "/",
20763
+ method: "POST",
20764
+ authType: "AK",
20765
+ style: "RPC",
20766
+ reqBodyType: "formData",
20767
+ bodyType: "json",
20768
+ });
20769
+ return $tea.cast<DescribeWebReportTopIpResponse>(await this.callApi(params, req, runtime), new DescribeWebReportTopIpResponse({}));
20770
+ }
20771
+
20772
+ async describeWebReportTopIp(request: DescribeWebReportTopIpRequest): Promise<DescribeWebReportTopIpResponse> {
20773
+ let runtime = new $Util.RuntimeOptions({ });
20774
+ return await this.describeWebReportTopIpWithOptions(request, runtime);
20775
+ }
20776
+
20469
20777
  async describeWebRulesWithOptions(request: DescribeWebRulesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeWebRulesResponse> {
20470
20778
  Util.validateModel(request);
20471
20779
  let query = { };