@alicloud/ddoscoo20200101 2.0.2 → 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/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;
@@ -2333,6 +2402,75 @@ export class DeleteWebCCRuleResponse extends $tea.Model {
2333
2402
  }
2334
2403
  }
2335
2404
 
2405
+ export class DeleteWebCCRuleV2Request extends $tea.Model {
2406
+ domain?: string;
2407
+ owner?: string;
2408
+ ruleNames?: string;
2409
+ static names(): { [key: string]: string } {
2410
+ return {
2411
+ domain: 'Domain',
2412
+ owner: 'Owner',
2413
+ ruleNames: 'RuleNames',
2414
+ };
2415
+ }
2416
+
2417
+ static types(): { [key: string]: any } {
2418
+ return {
2419
+ domain: 'string',
2420
+ owner: 'string',
2421
+ ruleNames: 'string',
2422
+ };
2423
+ }
2424
+
2425
+ constructor(map?: { [key: string]: any }) {
2426
+ super(map);
2427
+ }
2428
+ }
2429
+
2430
+ export class DeleteWebCCRuleV2ResponseBody extends $tea.Model {
2431
+ requestId?: string;
2432
+ static names(): { [key: string]: string } {
2433
+ return {
2434
+ requestId: 'RequestId',
2435
+ };
2436
+ }
2437
+
2438
+ static types(): { [key: string]: any } {
2439
+ return {
2440
+ requestId: 'string',
2441
+ };
2442
+ }
2443
+
2444
+ constructor(map?: { [key: string]: any }) {
2445
+ super(map);
2446
+ }
2447
+ }
2448
+
2449
+ export class DeleteWebCCRuleV2Response extends $tea.Model {
2450
+ headers?: { [key: string]: string };
2451
+ statusCode?: number;
2452
+ body?: DeleteWebCCRuleV2ResponseBody;
2453
+ static names(): { [key: string]: string } {
2454
+ return {
2455
+ headers: 'headers',
2456
+ statusCode: 'statusCode',
2457
+ body: 'body',
2458
+ };
2459
+ }
2460
+
2461
+ static types(): { [key: string]: any } {
2462
+ return {
2463
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2464
+ statusCode: 'number',
2465
+ body: DeleteWebCCRuleV2ResponseBody,
2466
+ };
2467
+ }
2468
+
2469
+ constructor(map?: { [key: string]: any }) {
2470
+ super(map);
2471
+ }
2472
+ }
2473
+
2336
2474
  export class DeleteWebCacheCustomRuleRequest extends $tea.Model {
2337
2475
  domain?: string;
2338
2476
  resourceGroupId?: string;
@@ -8828,6 +8966,87 @@ export class DescribeWebCCRulesResponse extends $tea.Model {
8828
8966
  }
8829
8967
  }
8830
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
+
8831
9050
  export class DescribeWebCacheConfigsRequest extends $tea.Model {
8832
9051
  domains?: string[];
8833
9052
  resourceGroupId?: string;
@@ -11945,6 +12164,72 @@ export class ModifyWebAreaBlockSwitchResponse extends $tea.Model {
11945
12164
  }
11946
12165
  }
11947
12166
 
12167
+ export class ModifyWebCCGlobalSwitchRequest extends $tea.Model {
12168
+ ccGlobalSwitch?: string;
12169
+ domain?: string;
12170
+ static names(): { [key: string]: string } {
12171
+ return {
12172
+ ccGlobalSwitch: 'CcGlobalSwitch',
12173
+ domain: 'Domain',
12174
+ };
12175
+ }
12176
+
12177
+ static types(): { [key: string]: any } {
12178
+ return {
12179
+ ccGlobalSwitch: 'string',
12180
+ domain: 'string',
12181
+ };
12182
+ }
12183
+
12184
+ constructor(map?: { [key: string]: any }) {
12185
+ super(map);
12186
+ }
12187
+ }
12188
+
12189
+ export class ModifyWebCCGlobalSwitchResponseBody extends $tea.Model {
12190
+ requestId?: string;
12191
+ static names(): { [key: string]: string } {
12192
+ return {
12193
+ requestId: 'RequestId',
12194
+ };
12195
+ }
12196
+
12197
+ static types(): { [key: string]: any } {
12198
+ return {
12199
+ requestId: 'string',
12200
+ };
12201
+ }
12202
+
12203
+ constructor(map?: { [key: string]: any }) {
12204
+ super(map);
12205
+ }
12206
+ }
12207
+
12208
+ export class ModifyWebCCGlobalSwitchResponse extends $tea.Model {
12209
+ headers?: { [key: string]: string };
12210
+ statusCode?: number;
12211
+ body?: ModifyWebCCGlobalSwitchResponseBody;
12212
+ static names(): { [key: string]: string } {
12213
+ return {
12214
+ headers: 'headers',
12215
+ statusCode: 'statusCode',
12216
+ body: 'body',
12217
+ };
12218
+ }
12219
+
12220
+ static types(): { [key: string]: any } {
12221
+ return {
12222
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
12223
+ statusCode: 'number',
12224
+ body: ModifyWebCCGlobalSwitchResponseBody,
12225
+ };
12226
+ }
12227
+
12228
+ constructor(map?: { [key: string]: any }) {
12229
+ super(map);
12230
+ }
12231
+ }
12232
+
11948
12233
  export class ModifyWebCCRuleRequest extends $tea.Model {
11949
12234
  act?: string;
11950
12235
  count?: number;
@@ -15289,6 +15574,198 @@ export class DescribeWebCCRulesResponseBodyWebCCRules extends $tea.Model {
15289
15574
  }
15290
15575
  }
15291
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
+
15292
15769
  export class DescribeWebCacheConfigsResponseBodyDomainCacheConfigsCustomRules extends $tea.Model {
15293
15770
  cacheTtl?: number;
15294
15771
  mode?: string;
@@ -16385,6 +16862,56 @@ export default class Client extends OpenApi {
16385
16862
  return await this.configUdpReflectWithOptions(request, runtime);
16386
16863
  }
16387
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
+
16388
16915
  /**
16389
16916
  * @summary Configures the mode of the Frequency Control policy for a website.
16390
16917
  *
@@ -17517,6 +18044,56 @@ export default class Client extends OpenApi {
17517
18044
  return await this.deleteWebCCRuleWithOptions(request, runtime);
17518
18045
  }
17519
18046
 
18047
+ /**
18048
+ * @summary 删除新版cc规则
18049
+ *
18050
+ * @param request DeleteWebCCRuleV2Request
18051
+ * @param runtime runtime options for this request RuntimeOptions
18052
+ * @return DeleteWebCCRuleV2Response
18053
+ */
18054
+ async deleteWebCCRuleV2WithOptions(request: DeleteWebCCRuleV2Request, runtime: $Util.RuntimeOptions): Promise<DeleteWebCCRuleV2Response> {
18055
+ Util.validateModel(request);
18056
+ let query = { };
18057
+ if (!Util.isUnset(request.domain)) {
18058
+ query["Domain"] = request.domain;
18059
+ }
18060
+
18061
+ if (!Util.isUnset(request.owner)) {
18062
+ query["Owner"] = request.owner;
18063
+ }
18064
+
18065
+ if (!Util.isUnset(request.ruleNames)) {
18066
+ query["RuleNames"] = request.ruleNames;
18067
+ }
18068
+
18069
+ let req = new $OpenApi.OpenApiRequest({
18070
+ query: OpenApiUtil.query(query),
18071
+ });
18072
+ let params = new $OpenApi.Params({
18073
+ action: "DeleteWebCCRuleV2",
18074
+ version: "2020-01-01",
18075
+ protocol: "HTTPS",
18076
+ pathname: "/",
18077
+ method: "POST",
18078
+ authType: "AK",
18079
+ style: "RPC",
18080
+ reqBodyType: "formData",
18081
+ bodyType: "json",
18082
+ });
18083
+ return $tea.cast<DeleteWebCCRuleV2Response>(await this.callApi(params, req, runtime), new DeleteWebCCRuleV2Response({}));
18084
+ }
18085
+
18086
+ /**
18087
+ * @summary 删除新版cc规则
18088
+ *
18089
+ * @param request DeleteWebCCRuleV2Request
18090
+ * @return DeleteWebCCRuleV2Response
18091
+ */
18092
+ async deleteWebCCRuleV2(request: DeleteWebCCRuleV2Request): Promise<DeleteWebCCRuleV2Response> {
18093
+ let runtime = new $Util.RuntimeOptions({ });
18094
+ return await this.deleteWebCCRuleV2WithOptions(request, runtime);
18095
+ }
18096
+
17520
18097
  /**
17521
18098
  * @summary Deletes the custom rules of the Static Page Caching policy for a website.
17522
18099
  *
@@ -22117,6 +22694,60 @@ export default class Client extends OpenApi {
22117
22694
  return await this.describeWebCCRulesWithOptions(request, runtime);
22118
22695
  }
22119
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
+
22120
22751
  /**
22121
22752
  * @summary Queries the Static Page Caching configuration of websites.
22122
22753
  *
@@ -24375,6 +25006,52 @@ export default class Client extends OpenApi {
24375
25006
  return await this.modifyWebAreaBlockSwitchWithOptions(request, runtime);
24376
25007
  }
24377
25008
 
25009
+ /**
25010
+ * @summary 统一全局CC开关
25011
+ *
25012
+ * @param request ModifyWebCCGlobalSwitchRequest
25013
+ * @param runtime runtime options for this request RuntimeOptions
25014
+ * @return ModifyWebCCGlobalSwitchResponse
25015
+ */
25016
+ async modifyWebCCGlobalSwitchWithOptions(request: ModifyWebCCGlobalSwitchRequest, runtime: $Util.RuntimeOptions): Promise<ModifyWebCCGlobalSwitchResponse> {
25017
+ Util.validateModel(request);
25018
+ let query = { };
25019
+ if (!Util.isUnset(request.ccGlobalSwitch)) {
25020
+ query["CcGlobalSwitch"] = request.ccGlobalSwitch;
25021
+ }
25022
+
25023
+ if (!Util.isUnset(request.domain)) {
25024
+ query["Domain"] = request.domain;
25025
+ }
25026
+
25027
+ let req = new $OpenApi.OpenApiRequest({
25028
+ query: OpenApiUtil.query(query),
25029
+ });
25030
+ let params = new $OpenApi.Params({
25031
+ action: "ModifyWebCCGlobalSwitch",
25032
+ version: "2020-01-01",
25033
+ protocol: "HTTPS",
25034
+ pathname: "/",
25035
+ method: "POST",
25036
+ authType: "AK",
25037
+ style: "RPC",
25038
+ reqBodyType: "formData",
25039
+ bodyType: "json",
25040
+ });
25041
+ return $tea.cast<ModifyWebCCGlobalSwitchResponse>(await this.callApi(params, req, runtime), new ModifyWebCCGlobalSwitchResponse({}));
25042
+ }
25043
+
25044
+ /**
25045
+ * @summary 统一全局CC开关
25046
+ *
25047
+ * @param request ModifyWebCCGlobalSwitchRequest
25048
+ * @return ModifyWebCCGlobalSwitchResponse
25049
+ */
25050
+ async modifyWebCCGlobalSwitch(request: ModifyWebCCGlobalSwitchRequest): Promise<ModifyWebCCGlobalSwitchResponse> {
25051
+ let runtime = new $Util.RuntimeOptions({ });
25052
+ return await this.modifyWebCCGlobalSwitchWithOptions(request, runtime);
25053
+ }
25054
+
24378
25055
  /**
24379
25056
  * @param request ModifyWebCCRuleRequest
24380
25057
  * @param runtime runtime options for this request RuntimeOptions