@alicloud/ddoscoo20200101 1.1.0 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ddoscoo20200101",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
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;
@@ -13992,6 +14148,7 @@ export class DescribeNetworkRulesResponseBodyNetworkRules extends $tea.Model {
13992
14148
  isAutoCreate?: boolean;
13993
14149
  protocol?: string;
13994
14150
  realServers?: string[];
14151
+ remark?: string;
13995
14152
  static names(): { [key: string]: string } {
13996
14153
  return {
13997
14154
  backendPort: 'BackendPort',
@@ -14000,6 +14157,7 @@ export class DescribeNetworkRulesResponseBodyNetworkRules extends $tea.Model {
14000
14157
  isAutoCreate: 'IsAutoCreate',
14001
14158
  protocol: 'Protocol',
14002
14159
  realServers: 'RealServers',
14160
+ remark: 'Remark',
14003
14161
  };
14004
14162
  }
14005
14163
 
@@ -14011,6 +14169,7 @@ export class DescribeNetworkRulesResponseBodyNetworkRules extends $tea.Model {
14011
14169
  isAutoCreate: 'boolean',
14012
14170
  protocol: 'string',
14013
14171
  realServers: { 'type': 'array', 'itemType': 'string' },
14172
+ remark: 'string',
14014
14173
  };
14015
14174
  }
14016
14175
 
@@ -14115,6 +14274,31 @@ export class DescribePortAutoCcStatusResponseBodyPortAutoCcStatus extends $tea.M
14115
14274
  }
14116
14275
  }
14117
14276
 
14277
+ export class DescribePortCcAttackTopIPResponseBodyTopIp extends $tea.Model {
14278
+ areaId?: string;
14279
+ pv?: number;
14280
+ srcIp?: string;
14281
+ static names(): { [key: string]: string } {
14282
+ return {
14283
+ areaId: 'AreaId',
14284
+ pv: 'Pv',
14285
+ srcIp: 'SrcIp',
14286
+ };
14287
+ }
14288
+
14289
+ static types(): { [key: string]: any } {
14290
+ return {
14291
+ areaId: 'string',
14292
+ pv: 'number',
14293
+ srcIp: 'string',
14294
+ };
14295
+ }
14296
+
14297
+ constructor(map?: { [key: string]: any }) {
14298
+ super(map);
14299
+ }
14300
+ }
14301
+
14118
14302
  export class DescribePortConnsListResponseBodyConnsList extends $tea.Model {
14119
14303
  actConns?: number;
14120
14304
  conns?: number;
@@ -14442,6 +14626,7 @@ export class DescribeSchedulerRulesResponseBodySchedulerRulesParam extends $tea.
14442
14626
  }
14443
14627
 
14444
14628
  export class DescribeSchedulerRulesResponseBodySchedulerRulesRules extends $tea.Model {
14629
+ line?: string;
14445
14630
  priority?: number;
14446
14631
  regionId?: string;
14447
14632
  restoreDelay?: number;
@@ -14451,6 +14636,7 @@ export class DescribeSchedulerRulesResponseBodySchedulerRulesRules extends $tea.
14451
14636
  valueType?: number;
14452
14637
  static names(): { [key: string]: string } {
14453
14638
  return {
14639
+ line: 'Line',
14454
14640
  priority: 'Priority',
14455
14641
  regionId: 'RegionId',
14456
14642
  restoreDelay: 'RestoreDelay',
@@ -14463,6 +14649,7 @@ export class DescribeSchedulerRulesResponseBodySchedulerRulesRules extends $tea.
14463
14649
 
14464
14650
  static types(): { [key: string]: any } {
14465
14651
  return {
14652
+ line: 'string',
14466
14653
  priority: 'number',
14467
14654
  regionId: 'string',
14468
14655
  restoreDelay: 'number',
@@ -14875,6 +15062,7 @@ export class DescribeWebCcProtectSwitchResponseBodyProtectSwitchList extends $te
14875
15062
  blackWhiteListEnable?: number;
14876
15063
  ccCustomRuleEnable?: number;
14877
15064
  ccEnable?: number;
15065
+ ccGlobalSwitch?: string;
14878
15066
  ccTemplate?: string;
14879
15067
  domain?: string;
14880
15068
  preciseRuleEnable?: number;
@@ -14887,6 +15075,7 @@ export class DescribeWebCcProtectSwitchResponseBodyProtectSwitchList extends $te
14887
15075
  blackWhiteListEnable: 'BlackWhiteListEnable',
14888
15076
  ccCustomRuleEnable: 'CcCustomRuleEnable',
14889
15077
  ccEnable: 'CcEnable',
15078
+ ccGlobalSwitch: 'CcGlobalSwitch',
14890
15079
  ccTemplate: 'CcTemplate',
14891
15080
  domain: 'Domain',
14892
15081
  preciseRuleEnable: 'PreciseRuleEnable',
@@ -14902,6 +15091,7 @@ export class DescribeWebCcProtectSwitchResponseBodyProtectSwitchList extends $te
14902
15091
  blackWhiteListEnable: 'number',
14903
15092
  ccCustomRuleEnable: 'number',
14904
15093
  ccEnable: 'number',
15094
+ ccGlobalSwitch: 'string',
14905
15095
  ccTemplate: 'string',
14906
15096
  domain: 'string',
14907
15097
  preciseRuleEnable: 'number',
@@ -14985,12 +15175,14 @@ export class DescribeWebInstanceRelationsResponseBodyWebInstanceRelations extend
14985
15175
 
14986
15176
  export class DescribeWebPreciseAccessRuleResponseBodyPreciseAccessConfigListRuleListConditionList extends $tea.Model {
14987
15177
  content?: string;
15178
+ contentList?: string[];
14988
15179
  field?: string;
14989
15180
  headerName?: string;
14990
15181
  matchMethod?: string;
14991
15182
  static names(): { [key: string]: string } {
14992
15183
  return {
14993
15184
  content: 'Content',
15185
+ contentList: 'ContentList',
14994
15186
  field: 'Field',
14995
15187
  headerName: 'HeaderName',
14996
15188
  matchMethod: 'MatchMethod',
@@ -15000,6 +15192,7 @@ export class DescribeWebPreciseAccessRuleResponseBodyPreciseAccessConfigListRule
15000
15192
  static types(): { [key: string]: any } {
15001
15193
  return {
15002
15194
  content: 'string',
15195
+ contentList: { 'type': 'array', 'itemType': 'string' },
15003
15196
  field: 'string',
15004
15197
  headerName: 'string',
15005
15198
  matchMethod: 'string',
@@ -15064,6 +15257,34 @@ export class DescribeWebPreciseAccessRuleResponseBodyPreciseAccessConfigList ext
15064
15257
  }
15065
15258
  }
15066
15259
 
15260
+ export class DescribeWebReportTopIpResponseBodyDataList extends $tea.Model {
15261
+ areaId?: string;
15262
+ count?: number;
15263
+ isp?: string;
15264
+ sourceIp?: string;
15265
+ static names(): { [key: string]: string } {
15266
+ return {
15267
+ areaId: 'AreaId',
15268
+ count: 'Count',
15269
+ isp: 'Isp',
15270
+ sourceIp: 'SourceIp',
15271
+ };
15272
+ }
15273
+
15274
+ static types(): { [key: string]: any } {
15275
+ return {
15276
+ areaId: 'string',
15277
+ count: 'number',
15278
+ isp: 'string',
15279
+ sourceIp: 'string',
15280
+ };
15281
+ }
15282
+
15283
+ constructor(map?: { [key: string]: any }) {
15284
+ super(map);
15285
+ }
15286
+ }
15287
+
15067
15288
  export class DescribeWebRulesResponseBodyWebRulesGmCert extends $tea.Model {
15068
15289
  certId?: string;
15069
15290
  gmEnable?: number;
@@ -19069,6 +19290,47 @@ export default class Client extends OpenApi {
19069
19290
  return await this.describePortAutoCcStatusWithOptions(request, runtime);
19070
19291
  }
19071
19292
 
19293
+ async describePortCcAttackTopIPWithOptions(request: DescribePortCcAttackTopIPRequest, runtime: $Util.RuntimeOptions): Promise<DescribePortCcAttackTopIPResponse> {
19294
+ Util.validateModel(request);
19295
+ let query = { };
19296
+ if (!Util.isUnset(request.ip)) {
19297
+ query["Ip"] = request.ip;
19298
+ }
19299
+
19300
+ if (!Util.isUnset(request.limit)) {
19301
+ query["Limit"] = request.limit;
19302
+ }
19303
+
19304
+ if (!Util.isUnset(request.port)) {
19305
+ query["Port"] = request.port;
19306
+ }
19307
+
19308
+ if (!Util.isUnset(request.startTimestamp)) {
19309
+ query["StartTimestamp"] = request.startTimestamp;
19310
+ }
19311
+
19312
+ let req = new $OpenApi.OpenApiRequest({
19313
+ query: OpenApiUtil.query(query),
19314
+ });
19315
+ let params = new $OpenApi.Params({
19316
+ action: "DescribePortCcAttackTopIP",
19317
+ version: "2020-01-01",
19318
+ protocol: "HTTPS",
19319
+ pathname: "/",
19320
+ method: "POST",
19321
+ authType: "AK",
19322
+ style: "RPC",
19323
+ reqBodyType: "formData",
19324
+ bodyType: "json",
19325
+ });
19326
+ return $tea.cast<DescribePortCcAttackTopIPResponse>(await this.callApi(params, req, runtime), new DescribePortCcAttackTopIPResponse({}));
19327
+ }
19328
+
19329
+ async describePortCcAttackTopIP(request: DescribePortCcAttackTopIPRequest): Promise<DescribePortCcAttackTopIPResponse> {
19330
+ let runtime = new $Util.RuntimeOptions({ });
19331
+ return await this.describePortCcAttackTopIPWithOptions(request, runtime);
19332
+ }
19333
+
19072
19334
  async describePortConnsCountWithOptions(request: DescribePortConnsCountRequest, runtime: $Util.RuntimeOptions): Promise<DescribePortConnsCountResponse> {
19073
19335
  Util.validateModel(request);
19074
19336
  let query = { };
@@ -20466,6 +20728,55 @@ export default class Client extends OpenApi {
20466
20728
  return await this.describeWebPreciseAccessRuleWithOptions(request, runtime);
20467
20729
  }
20468
20730
 
20731
+ async describeWebReportTopIpWithOptions(request: DescribeWebReportTopIpRequest, runtime: $Util.RuntimeOptions): Promise<DescribeWebReportTopIpResponse> {
20732
+ Util.validateModel(request);
20733
+ let query = { };
20734
+ if (!Util.isUnset(request.domain)) {
20735
+ query["Domain"] = request.domain;
20736
+ }
20737
+
20738
+ if (!Util.isUnset(request.endTime)) {
20739
+ query["EndTime"] = request.endTime;
20740
+ }
20741
+
20742
+ if (!Util.isUnset(request.interval)) {
20743
+ query["Interval"] = request.interval;
20744
+ }
20745
+
20746
+ if (!Util.isUnset(request.queryType)) {
20747
+ query["QueryType"] = request.queryType;
20748
+ }
20749
+
20750
+ if (!Util.isUnset(request.startTime)) {
20751
+ query["StartTime"] = request.startTime;
20752
+ }
20753
+
20754
+ if (!Util.isUnset(request.top)) {
20755
+ query["Top"] = request.top;
20756
+ }
20757
+
20758
+ let req = new $OpenApi.OpenApiRequest({
20759
+ query: OpenApiUtil.query(query),
20760
+ });
20761
+ let params = new $OpenApi.Params({
20762
+ action: "DescribeWebReportTopIp",
20763
+ version: "2020-01-01",
20764
+ protocol: "HTTPS",
20765
+ pathname: "/",
20766
+ method: "POST",
20767
+ authType: "AK",
20768
+ style: "RPC",
20769
+ reqBodyType: "formData",
20770
+ bodyType: "json",
20771
+ });
20772
+ return $tea.cast<DescribeWebReportTopIpResponse>(await this.callApi(params, req, runtime), new DescribeWebReportTopIpResponse({}));
20773
+ }
20774
+
20775
+ async describeWebReportTopIp(request: DescribeWebReportTopIpRequest): Promise<DescribeWebReportTopIpResponse> {
20776
+ let runtime = new $Util.RuntimeOptions({ });
20777
+ return await this.describeWebReportTopIpWithOptions(request, runtime);
20778
+ }
20779
+
20469
20780
  async describeWebRulesWithOptions(request: DescribeWebRulesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeWebRulesResponse> {
20470
20781
  Util.validateModel(request);
20471
20782
  let query = { };