@alicloud/ddoscoo20200101 2.1.0 → 2.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": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -830,6 +830,75 @@ export class ConfigUdpReflectResponse extends $tea.Model {
830
830
  }
831
831
  }
832
832
 
833
+ export class ConfigWebCCRuleV2Request extends $tea.Model {
834
+ domain?: string;
835
+ expires?: number;
836
+ ruleList?: string;
837
+ static names(): { [key: string]: string } {
838
+ return {
839
+ domain: 'Domain',
840
+ expires: 'Expires',
841
+ ruleList: 'RuleList',
842
+ };
843
+ }
844
+
845
+ static types(): { [key: string]: any } {
846
+ return {
847
+ domain: 'string',
848
+ expires: 'number',
849
+ ruleList: 'string',
850
+ };
851
+ }
852
+
853
+ constructor(map?: { [key: string]: any }) {
854
+ super(map);
855
+ }
856
+ }
857
+
858
+ export class ConfigWebCCRuleV2ResponseBody extends $tea.Model {
859
+ requestId?: string;
860
+ static names(): { [key: string]: string } {
861
+ return {
862
+ requestId: 'RequestId',
863
+ };
864
+ }
865
+
866
+ static types(): { [key: string]: any } {
867
+ return {
868
+ requestId: 'string',
869
+ };
870
+ }
871
+
872
+ constructor(map?: { [key: string]: any }) {
873
+ super(map);
874
+ }
875
+ }
876
+
877
+ export class ConfigWebCCRuleV2Response extends $tea.Model {
878
+ headers?: { [key: string]: string };
879
+ statusCode?: number;
880
+ body?: ConfigWebCCRuleV2ResponseBody;
881
+ static names(): { [key: string]: string } {
882
+ return {
883
+ headers: 'headers',
884
+ statusCode: 'statusCode',
885
+ body: 'body',
886
+ };
887
+ }
888
+
889
+ static types(): { [key: string]: any } {
890
+ return {
891
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
892
+ statusCode: 'number',
893
+ body: ConfigWebCCRuleV2ResponseBody,
894
+ };
895
+ }
896
+
897
+ constructor(map?: { [key: string]: any }) {
898
+ super(map);
899
+ }
900
+ }
901
+
833
902
  export class ConfigWebCCTemplateRequest extends $tea.Model {
834
903
  domain?: string;
835
904
  resourceGroupId?: string;
@@ -8897,6 +8966,87 @@ export class DescribeWebCCRulesResponse extends $tea.Model {
8897
8966
  }
8898
8967
  }
8899
8968
 
8969
+ export class DescribeWebCCRulesV2Request extends $tea.Model {
8970
+ domain?: string;
8971
+ offset?: string;
8972
+ owner?: string;
8973
+ pageSize?: string;
8974
+ static names(): { [key: string]: string } {
8975
+ return {
8976
+ domain: 'Domain',
8977
+ offset: 'Offset',
8978
+ owner: 'Owner',
8979
+ pageSize: 'PageSize',
8980
+ };
8981
+ }
8982
+
8983
+ static types(): { [key: string]: any } {
8984
+ return {
8985
+ domain: 'string',
8986
+ offset: 'string',
8987
+ owner: 'string',
8988
+ pageSize: 'string',
8989
+ };
8990
+ }
8991
+
8992
+ constructor(map?: { [key: string]: any }) {
8993
+ super(map);
8994
+ }
8995
+ }
8996
+
8997
+ export class DescribeWebCCRulesV2ResponseBody extends $tea.Model {
8998
+ domain?: string;
8999
+ requestId?: string;
9000
+ totalCount?: string;
9001
+ webCCRules?: DescribeWebCCRulesV2ResponseBodyWebCCRules[];
9002
+ static names(): { [key: string]: string } {
9003
+ return {
9004
+ domain: 'Domain',
9005
+ requestId: 'RequestId',
9006
+ totalCount: 'TotalCount',
9007
+ webCCRules: 'WebCCRules',
9008
+ };
9009
+ }
9010
+
9011
+ static types(): { [key: string]: any } {
9012
+ return {
9013
+ domain: 'string',
9014
+ requestId: 'string',
9015
+ totalCount: 'string',
9016
+ webCCRules: { 'type': 'array', 'itemType': DescribeWebCCRulesV2ResponseBodyWebCCRules },
9017
+ };
9018
+ }
9019
+
9020
+ constructor(map?: { [key: string]: any }) {
9021
+ super(map);
9022
+ }
9023
+ }
9024
+
9025
+ export class DescribeWebCCRulesV2Response extends $tea.Model {
9026
+ headers?: { [key: string]: string };
9027
+ statusCode?: number;
9028
+ body?: DescribeWebCCRulesV2ResponseBody;
9029
+ static names(): { [key: string]: string } {
9030
+ return {
9031
+ headers: 'headers',
9032
+ statusCode: 'statusCode',
9033
+ body: 'body',
9034
+ };
9035
+ }
9036
+
9037
+ static types(): { [key: string]: any } {
9038
+ return {
9039
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
9040
+ statusCode: 'number',
9041
+ body: DescribeWebCCRulesV2ResponseBody,
9042
+ };
9043
+ }
9044
+
9045
+ constructor(map?: { [key: string]: any }) {
9046
+ super(map);
9047
+ }
9048
+ }
9049
+
8900
9050
  export class DescribeWebCacheConfigsRequest extends $tea.Model {
8901
9051
  domains?: string[];
8902
9052
  resourceGroupId?: string;
@@ -15424,6 +15574,198 @@ export class DescribeWebCCRulesResponseBodyWebCCRules extends $tea.Model {
15424
15574
  }
15425
15575
  }
15426
15576
 
15577
+ export class DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailCondition extends $tea.Model {
15578
+ content?: string;
15579
+ field?: string;
15580
+ headerName?: string;
15581
+ matchMethod?: string;
15582
+ static names(): { [key: string]: string } {
15583
+ return {
15584
+ content: 'Content',
15585
+ field: 'Field',
15586
+ headerName: 'HeaderName',
15587
+ matchMethod: 'MatchMethod',
15588
+ };
15589
+ }
15590
+
15591
+ static types(): { [key: string]: any } {
15592
+ return {
15593
+ content: 'string',
15594
+ field: 'string',
15595
+ headerName: 'string',
15596
+ matchMethod: 'string',
15597
+ };
15598
+ }
15599
+
15600
+ constructor(map?: { [key: string]: any }) {
15601
+ super(map);
15602
+ }
15603
+ }
15604
+
15605
+ export class DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailRateLimit extends $tea.Model {
15606
+ interval?: number;
15607
+ subKey?: string;
15608
+ target?: string;
15609
+ threshold?: number;
15610
+ ttl?: number;
15611
+ static names(): { [key: string]: string } {
15612
+ return {
15613
+ interval: 'Interval',
15614
+ subKey: 'SubKey',
15615
+ target: 'Target',
15616
+ threshold: 'Threshold',
15617
+ ttl: 'Ttl',
15618
+ };
15619
+ }
15620
+
15621
+ static types(): { [key: string]: any } {
15622
+ return {
15623
+ interval: 'number',
15624
+ subKey: 'string',
15625
+ target: 'string',
15626
+ threshold: 'number',
15627
+ ttl: 'number',
15628
+ };
15629
+ }
15630
+
15631
+ constructor(map?: { [key: string]: any }) {
15632
+ super(map);
15633
+ }
15634
+ }
15635
+
15636
+ export class DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailStatistics extends $tea.Model {
15637
+ field?: string;
15638
+ headerName?: string;
15639
+ mode?: string;
15640
+ static names(): { [key: string]: string } {
15641
+ return {
15642
+ field: 'Field',
15643
+ headerName: 'HeaderName',
15644
+ mode: 'Mode',
15645
+ };
15646
+ }
15647
+
15648
+ static types(): { [key: string]: any } {
15649
+ return {
15650
+ field: 'string',
15651
+ headerName: 'string',
15652
+ mode: 'string',
15653
+ };
15654
+ }
15655
+
15656
+ constructor(map?: { [key: string]: any }) {
15657
+ super(map);
15658
+ }
15659
+ }
15660
+
15661
+ export class DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailStatusCode extends $tea.Model {
15662
+ code?: number;
15663
+ countThreshold?: number;
15664
+ enabled?: boolean;
15665
+ ratioThreshold?: number;
15666
+ useRatio?: boolean;
15667
+ static names(): { [key: string]: string } {
15668
+ return {
15669
+ code: 'Code',
15670
+ countThreshold: 'CountThreshold',
15671
+ enabled: 'Enabled',
15672
+ ratioThreshold: 'RatioThreshold',
15673
+ useRatio: 'UseRatio',
15674
+ };
15675
+ }
15676
+
15677
+ static types(): { [key: string]: any } {
15678
+ return {
15679
+ code: 'number',
15680
+ countThreshold: 'number',
15681
+ enabled: 'boolean',
15682
+ ratioThreshold: 'number',
15683
+ useRatio: 'boolean',
15684
+ };
15685
+ }
15686
+
15687
+ constructor(map?: { [key: string]: any }) {
15688
+ super(map);
15689
+ }
15690
+ }
15691
+
15692
+ export class DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetail extends $tea.Model {
15693
+ action?: string;
15694
+ condition?: DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailCondition[];
15695
+ count?: number;
15696
+ interval?: number;
15697
+ mode?: string;
15698
+ name?: string;
15699
+ rateLimit?: DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailRateLimit;
15700
+ statistics?: DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailStatistics;
15701
+ statusCode?: DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailStatusCode;
15702
+ ttl?: number;
15703
+ uri?: string;
15704
+ static names(): { [key: string]: string } {
15705
+ return {
15706
+ action: 'Action',
15707
+ condition: 'Condition',
15708
+ count: 'Count',
15709
+ interval: 'Interval',
15710
+ mode: 'Mode',
15711
+ name: 'Name',
15712
+ rateLimit: 'RateLimit',
15713
+ statistics: 'Statistics',
15714
+ statusCode: 'StatusCode',
15715
+ ttl: 'Ttl',
15716
+ uri: 'Uri',
15717
+ };
15718
+ }
15719
+
15720
+ static types(): { [key: string]: any } {
15721
+ return {
15722
+ action: 'string',
15723
+ condition: { 'type': 'array', 'itemType': DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailCondition },
15724
+ count: 'number',
15725
+ interval: 'number',
15726
+ mode: 'string',
15727
+ name: 'string',
15728
+ rateLimit: DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailRateLimit,
15729
+ statistics: DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailStatistics,
15730
+ statusCode: DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetailStatusCode,
15731
+ ttl: 'number',
15732
+ uri: 'string',
15733
+ };
15734
+ }
15735
+
15736
+ constructor(map?: { [key: string]: any }) {
15737
+ super(map);
15738
+ }
15739
+ }
15740
+
15741
+ export class DescribeWebCCRulesV2ResponseBodyWebCCRules extends $tea.Model {
15742
+ expires?: number;
15743
+ name?: string;
15744
+ owner?: string;
15745
+ ruleDetail?: DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetail;
15746
+ static names(): { [key: string]: string } {
15747
+ return {
15748
+ expires: 'Expires',
15749
+ name: 'Name',
15750
+ owner: 'Owner',
15751
+ ruleDetail: 'RuleDetail',
15752
+ };
15753
+ }
15754
+
15755
+ static types(): { [key: string]: any } {
15756
+ return {
15757
+ expires: 'number',
15758
+ name: 'string',
15759
+ owner: 'string',
15760
+ ruleDetail: DescribeWebCCRulesV2ResponseBodyWebCCRulesRuleDetail,
15761
+ };
15762
+ }
15763
+
15764
+ constructor(map?: { [key: string]: any }) {
15765
+ super(map);
15766
+ }
15767
+ }
15768
+
15427
15769
  export class DescribeWebCacheConfigsResponseBodyDomainCacheConfigsCustomRules extends $tea.Model {
15428
15770
  cacheTtl?: number;
15429
15771
  mode?: string;
@@ -16520,6 +16862,56 @@ export default class Client extends OpenApi {
16520
16862
  return await this.configUdpReflectWithOptions(request, runtime);
16521
16863
  }
16522
16864
 
16865
+ /**
16866
+ * @summary 配置新版基于匹配条件的cc规则
16867
+ *
16868
+ * @param request ConfigWebCCRuleV2Request
16869
+ * @param runtime runtime options for this request RuntimeOptions
16870
+ * @return ConfigWebCCRuleV2Response
16871
+ */
16872
+ async configWebCCRuleV2WithOptions(request: ConfigWebCCRuleV2Request, runtime: $Util.RuntimeOptions): Promise<ConfigWebCCRuleV2Response> {
16873
+ Util.validateModel(request);
16874
+ let query = { };
16875
+ if (!Util.isUnset(request.domain)) {
16876
+ query["Domain"] = request.domain;
16877
+ }
16878
+
16879
+ if (!Util.isUnset(request.expires)) {
16880
+ query["Expires"] = request.expires;
16881
+ }
16882
+
16883
+ if (!Util.isUnset(request.ruleList)) {
16884
+ query["RuleList"] = request.ruleList;
16885
+ }
16886
+
16887
+ let req = new $OpenApi.OpenApiRequest({
16888
+ query: OpenApiUtil.query(query),
16889
+ });
16890
+ let params = new $OpenApi.Params({
16891
+ action: "ConfigWebCCRuleV2",
16892
+ version: "2020-01-01",
16893
+ protocol: "HTTPS",
16894
+ pathname: "/",
16895
+ method: "POST",
16896
+ authType: "AK",
16897
+ style: "RPC",
16898
+ reqBodyType: "formData",
16899
+ bodyType: "json",
16900
+ });
16901
+ return $tea.cast<ConfigWebCCRuleV2Response>(await this.callApi(params, req, runtime), new ConfigWebCCRuleV2Response({}));
16902
+ }
16903
+
16904
+ /**
16905
+ * @summary 配置新版基于匹配条件的cc规则
16906
+ *
16907
+ * @param request ConfigWebCCRuleV2Request
16908
+ * @return ConfigWebCCRuleV2Response
16909
+ */
16910
+ async configWebCCRuleV2(request: ConfigWebCCRuleV2Request): Promise<ConfigWebCCRuleV2Response> {
16911
+ let runtime = new $Util.RuntimeOptions({ });
16912
+ return await this.configWebCCRuleV2WithOptions(request, runtime);
16913
+ }
16914
+
16523
16915
  /**
16524
16916
  * @summary Configures the mode of the Frequency Control policy for a website.
16525
16917
  *
@@ -22302,6 +22694,60 @@ export default class Client extends OpenApi {
22302
22694
  return await this.describeWebCCRulesWithOptions(request, runtime);
22303
22695
  }
22304
22696
 
22697
+ /**
22698
+ * @summary 查询新版cc规则
22699
+ *
22700
+ * @param request DescribeWebCCRulesV2Request
22701
+ * @param runtime runtime options for this request RuntimeOptions
22702
+ * @return DescribeWebCCRulesV2Response
22703
+ */
22704
+ async describeWebCCRulesV2WithOptions(request: DescribeWebCCRulesV2Request, runtime: $Util.RuntimeOptions): Promise<DescribeWebCCRulesV2Response> {
22705
+ Util.validateModel(request);
22706
+ let query = { };
22707
+ if (!Util.isUnset(request.domain)) {
22708
+ query["Domain"] = request.domain;
22709
+ }
22710
+
22711
+ if (!Util.isUnset(request.offset)) {
22712
+ query["Offset"] = request.offset;
22713
+ }
22714
+
22715
+ if (!Util.isUnset(request.owner)) {
22716
+ query["Owner"] = request.owner;
22717
+ }
22718
+
22719
+ if (!Util.isUnset(request.pageSize)) {
22720
+ query["PageSize"] = request.pageSize;
22721
+ }
22722
+
22723
+ let req = new $OpenApi.OpenApiRequest({
22724
+ query: OpenApiUtil.query(query),
22725
+ });
22726
+ let params = new $OpenApi.Params({
22727
+ action: "DescribeWebCCRulesV2",
22728
+ version: "2020-01-01",
22729
+ protocol: "HTTPS",
22730
+ pathname: "/",
22731
+ method: "POST",
22732
+ authType: "AK",
22733
+ style: "RPC",
22734
+ reqBodyType: "formData",
22735
+ bodyType: "json",
22736
+ });
22737
+ return $tea.cast<DescribeWebCCRulesV2Response>(await this.callApi(params, req, runtime), new DescribeWebCCRulesV2Response({}));
22738
+ }
22739
+
22740
+ /**
22741
+ * @summary 查询新版cc规则
22742
+ *
22743
+ * @param request DescribeWebCCRulesV2Request
22744
+ * @return DescribeWebCCRulesV2Response
22745
+ */
22746
+ async describeWebCCRulesV2(request: DescribeWebCCRulesV2Request): Promise<DescribeWebCCRulesV2Response> {
22747
+ let runtime = new $Util.RuntimeOptions({ });
22748
+ return await this.describeWebCCRulesV2WithOptions(request, runtime);
22749
+ }
22750
+
22305
22751
  /**
22306
22752
  * @summary Queries the Static Page Caching configuration of websites.
22307
22753
  *