@alicloud/ddoscoo20200101 2.2.0 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ddoscoo20200101",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -302,6 +302,75 @@ export class AttachSceneDefenseObjectResponse extends $tea.Model {
302
302
  }
303
303
  }
304
304
 
305
+ export class ConfigDomainSecurityProfileRequest extends $tea.Model {
306
+ cluster?: string;
307
+ config?: string;
308
+ domain?: string;
309
+ static names(): { [key: string]: string } {
310
+ return {
311
+ cluster: 'Cluster',
312
+ config: 'Config',
313
+ domain: 'Domain',
314
+ };
315
+ }
316
+
317
+ static types(): { [key: string]: any } {
318
+ return {
319
+ cluster: 'string',
320
+ config: 'string',
321
+ domain: 'string',
322
+ };
323
+ }
324
+
325
+ constructor(map?: { [key: string]: any }) {
326
+ super(map);
327
+ }
328
+ }
329
+
330
+ export class ConfigDomainSecurityProfileResponseBody extends $tea.Model {
331
+ requestId?: string;
332
+ static names(): { [key: string]: string } {
333
+ return {
334
+ requestId: 'RequestId',
335
+ };
336
+ }
337
+
338
+ static types(): { [key: string]: any } {
339
+ return {
340
+ requestId: 'string',
341
+ };
342
+ }
343
+
344
+ constructor(map?: { [key: string]: any }) {
345
+ super(map);
346
+ }
347
+ }
348
+
349
+ export class ConfigDomainSecurityProfileResponse extends $tea.Model {
350
+ headers?: { [key: string]: string };
351
+ statusCode?: number;
352
+ body?: ConfigDomainSecurityProfileResponseBody;
353
+ static names(): { [key: string]: string } {
354
+ return {
355
+ headers: 'headers',
356
+ statusCode: 'statusCode',
357
+ body: 'body',
358
+ };
359
+ }
360
+
361
+ static types(): { [key: string]: any } {
362
+ return {
363
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
364
+ statusCode: 'number',
365
+ body: ConfigDomainSecurityProfileResponseBody,
366
+ };
367
+ }
368
+
369
+ constructor(map?: { [key: string]: any }) {
370
+ super(map);
371
+ }
372
+ }
373
+
305
374
  export class ConfigL7RsPolicyRequest extends $tea.Model {
306
375
  domain?: string;
307
376
  policy?: string;
@@ -374,6 +443,72 @@ export class ConfigL7RsPolicyResponse extends $tea.Model {
374
443
  }
375
444
  }
376
445
 
446
+ export class ConfigL7UsKeepaliveRequest extends $tea.Model {
447
+ domain?: string;
448
+ upstreamKeepalive?: string;
449
+ static names(): { [key: string]: string } {
450
+ return {
451
+ domain: 'Domain',
452
+ upstreamKeepalive: 'UpstreamKeepalive',
453
+ };
454
+ }
455
+
456
+ static types(): { [key: string]: any } {
457
+ return {
458
+ domain: 'string',
459
+ upstreamKeepalive: 'string',
460
+ };
461
+ }
462
+
463
+ constructor(map?: { [key: string]: any }) {
464
+ super(map);
465
+ }
466
+ }
467
+
468
+ export class ConfigL7UsKeepaliveResponseBody extends $tea.Model {
469
+ requestId?: string;
470
+ static names(): { [key: string]: string } {
471
+ return {
472
+ requestId: 'RequestId',
473
+ };
474
+ }
475
+
476
+ static types(): { [key: string]: any } {
477
+ return {
478
+ requestId: 'string',
479
+ };
480
+ }
481
+
482
+ constructor(map?: { [key: string]: any }) {
483
+ super(map);
484
+ }
485
+ }
486
+
487
+ export class ConfigL7UsKeepaliveResponse extends $tea.Model {
488
+ headers?: { [key: string]: string };
489
+ statusCode?: number;
490
+ body?: ConfigL7UsKeepaliveResponseBody;
491
+ static names(): { [key: string]: string } {
492
+ return {
493
+ headers: 'headers',
494
+ statusCode: 'statusCode',
495
+ body: 'body',
496
+ };
497
+ }
498
+
499
+ static types(): { [key: string]: any } {
500
+ return {
501
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
502
+ statusCode: 'number',
503
+ body: ConfigL7UsKeepaliveResponseBody,
504
+ };
505
+ }
506
+
507
+ constructor(map?: { [key: string]: any }) {
508
+ super(map);
509
+ }
510
+ }
511
+
377
512
  export class ConfigLayer4RealLimitRequest extends $tea.Model {
378
513
  instanceId?: string;
379
514
  limitValue?: number;
@@ -6110,6 +6245,72 @@ export class DescribeL7RsPolicyResponse extends $tea.Model {
6110
6245
  }
6111
6246
  }
6112
6247
 
6248
+ export class DescribeL7UsKeepaliveRequest extends $tea.Model {
6249
+ domain?: string;
6250
+ static names(): { [key: string]: string } {
6251
+ return {
6252
+ domain: 'Domain',
6253
+ };
6254
+ }
6255
+
6256
+ static types(): { [key: string]: any } {
6257
+ return {
6258
+ domain: 'string',
6259
+ };
6260
+ }
6261
+
6262
+ constructor(map?: { [key: string]: any }) {
6263
+ super(map);
6264
+ }
6265
+ }
6266
+
6267
+ export class DescribeL7UsKeepaliveResponseBody extends $tea.Model {
6268
+ requestId?: string;
6269
+ rsKeepalive?: DescribeL7UsKeepaliveResponseBodyRsKeepalive;
6270
+ static names(): { [key: string]: string } {
6271
+ return {
6272
+ requestId: 'RequestId',
6273
+ rsKeepalive: 'RsKeepalive',
6274
+ };
6275
+ }
6276
+
6277
+ static types(): { [key: string]: any } {
6278
+ return {
6279
+ requestId: 'string',
6280
+ rsKeepalive: DescribeL7UsKeepaliveResponseBodyRsKeepalive,
6281
+ };
6282
+ }
6283
+
6284
+ constructor(map?: { [key: string]: any }) {
6285
+ super(map);
6286
+ }
6287
+ }
6288
+
6289
+ export class DescribeL7UsKeepaliveResponse extends $tea.Model {
6290
+ headers?: { [key: string]: string };
6291
+ statusCode?: number;
6292
+ body?: DescribeL7UsKeepaliveResponseBody;
6293
+ static names(): { [key: string]: string } {
6294
+ return {
6295
+ headers: 'headers',
6296
+ statusCode: 'statusCode',
6297
+ body: 'body',
6298
+ };
6299
+ }
6300
+
6301
+ static types(): { [key: string]: any } {
6302
+ return {
6303
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6304
+ statusCode: 'number',
6305
+ body: DescribeL7UsKeepaliveResponseBody,
6306
+ };
6307
+ }
6308
+
6309
+ constructor(map?: { [key: string]: any }) {
6310
+ super(map);
6311
+ }
6312
+ }
6313
+
6113
6314
  export class DescribeLayer4RulePolicyRequest extends $tea.Model {
6114
6315
  listeners?: string;
6115
6316
  static names(): { [key: string]: string } {
@@ -14073,25 +14274,37 @@ export class DescribeHealthCheckStatusResponseBodyHealthCheckStatus extends $tea
14073
14274
  }
14074
14275
 
14075
14276
  export class DescribeInstanceDetailsResponseBodyInstanceDetailsEipInfos extends $tea.Model {
14277
+ certConfigured?: boolean;
14076
14278
  eip?: string;
14279
+ functionVersion?: string;
14077
14280
  ipMode?: string;
14078
14281
  ipVersion?: string;
14282
+ ssl13Enabled?: boolean;
14079
14283
  status?: string;
14284
+ tlsVersion?: string;
14080
14285
  static names(): { [key: string]: string } {
14081
14286
  return {
14287
+ certConfigured: 'CertConfigured',
14082
14288
  eip: 'Eip',
14289
+ functionVersion: 'FunctionVersion',
14083
14290
  ipMode: 'IpMode',
14084
14291
  ipVersion: 'IpVersion',
14292
+ ssl13Enabled: 'Ssl13Enabled',
14085
14293
  status: 'Status',
14294
+ tlsVersion: 'TlsVersion',
14086
14295
  };
14087
14296
  }
14088
14297
 
14089
14298
  static types(): { [key: string]: any } {
14090
14299
  return {
14300
+ certConfigured: 'boolean',
14091
14301
  eip: 'string',
14302
+ functionVersion: 'string',
14092
14303
  ipMode: 'string',
14093
14304
  ipVersion: 'string',
14305
+ ssl13Enabled: 'boolean',
14094
14306
  status: 'string',
14307
+ tlsVersion: 'string',
14095
14308
  };
14096
14309
  }
14097
14310
 
@@ -14424,6 +14637,31 @@ export class DescribeL7RsPolicyResponseBodyAttributes extends $tea.Model {
14424
14637
  }
14425
14638
  }
14426
14639
 
14640
+ export class DescribeL7UsKeepaliveResponseBodyRsKeepalive extends $tea.Model {
14641
+ enabled?: boolean;
14642
+ keepaliveRequests?: number;
14643
+ keepaliveTimeout?: number;
14644
+ static names(): { [key: string]: string } {
14645
+ return {
14646
+ enabled: 'Enabled',
14647
+ keepaliveRequests: 'KeepaliveRequests',
14648
+ keepaliveTimeout: 'KeepaliveTimeout',
14649
+ };
14650
+ }
14651
+
14652
+ static types(): { [key: string]: any } {
14653
+ return {
14654
+ enabled: 'boolean',
14655
+ keepaliveRequests: 'number',
14656
+ keepaliveTimeout: 'number',
14657
+ };
14658
+ }
14659
+
14660
+ constructor(map?: { [key: string]: any }) {
14661
+ super(map);
14662
+ }
14663
+ }
14664
+
14427
14665
  export class DescribeLayer4RulePolicyResponseBodyPriRealServers extends $tea.Model {
14428
14666
  currentIndex?: number;
14429
14667
  eip?: string;
@@ -16482,6 +16720,56 @@ export default class Client extends OpenApi {
16482
16720
  return await this.attachSceneDefenseObjectWithOptions(request, runtime);
16483
16721
  }
16484
16722
 
16723
+ /**
16724
+ * @summary 配置安全概要属性
16725
+ *
16726
+ * @param request ConfigDomainSecurityProfileRequest
16727
+ * @param runtime runtime options for this request RuntimeOptions
16728
+ * @return ConfigDomainSecurityProfileResponse
16729
+ */
16730
+ async configDomainSecurityProfileWithOptions(request: ConfigDomainSecurityProfileRequest, runtime: $Util.RuntimeOptions): Promise<ConfigDomainSecurityProfileResponse> {
16731
+ Util.validateModel(request);
16732
+ let query = { };
16733
+ if (!Util.isUnset(request.cluster)) {
16734
+ query["Cluster"] = request.cluster;
16735
+ }
16736
+
16737
+ if (!Util.isUnset(request.config)) {
16738
+ query["Config"] = request.config;
16739
+ }
16740
+
16741
+ if (!Util.isUnset(request.domain)) {
16742
+ query["Domain"] = request.domain;
16743
+ }
16744
+
16745
+ let req = new $OpenApi.OpenApiRequest({
16746
+ query: OpenApiUtil.query(query),
16747
+ });
16748
+ let params = new $OpenApi.Params({
16749
+ action: "ConfigDomainSecurityProfile",
16750
+ version: "2020-01-01",
16751
+ protocol: "HTTPS",
16752
+ pathname: "/",
16753
+ method: "POST",
16754
+ authType: "AK",
16755
+ style: "RPC",
16756
+ reqBodyType: "formData",
16757
+ bodyType: "json",
16758
+ });
16759
+ return $tea.cast<ConfigDomainSecurityProfileResponse>(await this.callApi(params, req, runtime), new ConfigDomainSecurityProfileResponse({}));
16760
+ }
16761
+
16762
+ /**
16763
+ * @summary 配置安全概要属性
16764
+ *
16765
+ * @param request ConfigDomainSecurityProfileRequest
16766
+ * @return ConfigDomainSecurityProfileResponse
16767
+ */
16768
+ async configDomainSecurityProfile(request: ConfigDomainSecurityProfileRequest): Promise<ConfigDomainSecurityProfileResponse> {
16769
+ let runtime = new $Util.RuntimeOptions({ });
16770
+ return await this.configDomainSecurityProfileWithOptions(request, runtime);
16771
+ }
16772
+
16485
16773
  /**
16486
16774
  * @summary Configures a back-to-origin policy for the forwarding rule of a website.
16487
16775
  *
@@ -16540,6 +16828,52 @@ export default class Client extends OpenApi {
16540
16828
  return await this.configL7RsPolicyWithOptions(request, runtime);
16541
16829
  }
16542
16830
 
16831
+ /**
16832
+ * @summary 配置长连接
16833
+ *
16834
+ * @param request ConfigL7UsKeepaliveRequest
16835
+ * @param runtime runtime options for this request RuntimeOptions
16836
+ * @return ConfigL7UsKeepaliveResponse
16837
+ */
16838
+ async configL7UsKeepaliveWithOptions(request: ConfigL7UsKeepaliveRequest, runtime: $Util.RuntimeOptions): Promise<ConfigL7UsKeepaliveResponse> {
16839
+ Util.validateModel(request);
16840
+ let query = { };
16841
+ if (!Util.isUnset(request.domain)) {
16842
+ query["Domain"] = request.domain;
16843
+ }
16844
+
16845
+ if (!Util.isUnset(request.upstreamKeepalive)) {
16846
+ query["UpstreamKeepalive"] = request.upstreamKeepalive;
16847
+ }
16848
+
16849
+ let req = new $OpenApi.OpenApiRequest({
16850
+ query: OpenApiUtil.query(query),
16851
+ });
16852
+ let params = new $OpenApi.Params({
16853
+ action: "ConfigL7UsKeepalive",
16854
+ version: "2020-01-01",
16855
+ protocol: "HTTPS",
16856
+ pathname: "/",
16857
+ method: "POST",
16858
+ authType: "AK",
16859
+ style: "RPC",
16860
+ reqBodyType: "formData",
16861
+ bodyType: "json",
16862
+ });
16863
+ return $tea.cast<ConfigL7UsKeepaliveResponse>(await this.callApi(params, req, runtime), new ConfigL7UsKeepaliveResponse({}));
16864
+ }
16865
+
16866
+ /**
16867
+ * @summary 配置长连接
16868
+ *
16869
+ * @param request ConfigL7UsKeepaliveRequest
16870
+ * @return ConfigL7UsKeepaliveResponse
16871
+ */
16872
+ async configL7UsKeepalive(request: ConfigL7UsKeepaliveRequest): Promise<ConfigL7UsKeepaliveResponse> {
16873
+ let runtime = new $Util.RuntimeOptions({ });
16874
+ return await this.configL7UsKeepaliveWithOptions(request, runtime);
16875
+ }
16876
+
16543
16877
  /**
16544
16878
  * @summary Specifies a threshold for the clean bandwidth of an Anti-DDoS Pro or Anti-DDoS premium instance. If the threshold is reached, rate limiting is triggered.
16545
16879
  *
@@ -20682,6 +21016,48 @@ export default class Client extends OpenApi {
20682
21016
  return await this.describeL7RsPolicyWithOptions(request, runtime);
20683
21017
  }
20684
21018
 
21019
+ /**
21020
+ * @summary 查询长连接
21021
+ *
21022
+ * @param request DescribeL7UsKeepaliveRequest
21023
+ * @param runtime runtime options for this request RuntimeOptions
21024
+ * @return DescribeL7UsKeepaliveResponse
21025
+ */
21026
+ async describeL7UsKeepaliveWithOptions(request: DescribeL7UsKeepaliveRequest, runtime: $Util.RuntimeOptions): Promise<DescribeL7UsKeepaliveResponse> {
21027
+ Util.validateModel(request);
21028
+ let query = { };
21029
+ if (!Util.isUnset(request.domain)) {
21030
+ query["Domain"] = request.domain;
21031
+ }
21032
+
21033
+ let req = new $OpenApi.OpenApiRequest({
21034
+ query: OpenApiUtil.query(query),
21035
+ });
21036
+ let params = new $OpenApi.Params({
21037
+ action: "DescribeL7UsKeepalive",
21038
+ version: "2020-01-01",
21039
+ protocol: "HTTPS",
21040
+ pathname: "/",
21041
+ method: "POST",
21042
+ authType: "AK",
21043
+ style: "RPC",
21044
+ reqBodyType: "formData",
21045
+ bodyType: "json",
21046
+ });
21047
+ return $tea.cast<DescribeL7UsKeepaliveResponse>(await this.callApi(params, req, runtime), new DescribeL7UsKeepaliveResponse({}));
21048
+ }
21049
+
21050
+ /**
21051
+ * @summary 查询长连接
21052
+ *
21053
+ * @param request DescribeL7UsKeepaliveRequest
21054
+ * @return DescribeL7UsKeepaliveResponse
21055
+ */
21056
+ async describeL7UsKeepalive(request: DescribeL7UsKeepaliveRequest): Promise<DescribeL7UsKeepaliveResponse> {
21057
+ let runtime = new $Util.RuntimeOptions({ });
21058
+ return await this.describeL7UsKeepaliveWithOptions(request, runtime);
21059
+ }
21060
+
20685
21061
  /**
20686
21062
  * @summary Queries the back-to-origin settings of a port forwarding rule.
20687
21063
  *