@alicloud/ddoscoo20200101 2.0.2 → 2.1.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.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2333,6 +2333,75 @@ export class DeleteWebCCRuleResponse extends $tea.Model {
2333
2333
  }
2334
2334
  }
2335
2335
 
2336
+ export class DeleteWebCCRuleV2Request extends $tea.Model {
2337
+ domain?: string;
2338
+ owner?: string;
2339
+ ruleNames?: string;
2340
+ static names(): { [key: string]: string } {
2341
+ return {
2342
+ domain: 'Domain',
2343
+ owner: 'Owner',
2344
+ ruleNames: 'RuleNames',
2345
+ };
2346
+ }
2347
+
2348
+ static types(): { [key: string]: any } {
2349
+ return {
2350
+ domain: 'string',
2351
+ owner: 'string',
2352
+ ruleNames: 'string',
2353
+ };
2354
+ }
2355
+
2356
+ constructor(map?: { [key: string]: any }) {
2357
+ super(map);
2358
+ }
2359
+ }
2360
+
2361
+ export class DeleteWebCCRuleV2ResponseBody extends $tea.Model {
2362
+ requestId?: string;
2363
+ static names(): { [key: string]: string } {
2364
+ return {
2365
+ requestId: 'RequestId',
2366
+ };
2367
+ }
2368
+
2369
+ static types(): { [key: string]: any } {
2370
+ return {
2371
+ requestId: 'string',
2372
+ };
2373
+ }
2374
+
2375
+ constructor(map?: { [key: string]: any }) {
2376
+ super(map);
2377
+ }
2378
+ }
2379
+
2380
+ export class DeleteWebCCRuleV2Response extends $tea.Model {
2381
+ headers?: { [key: string]: string };
2382
+ statusCode?: number;
2383
+ body?: DeleteWebCCRuleV2ResponseBody;
2384
+ static names(): { [key: string]: string } {
2385
+ return {
2386
+ headers: 'headers',
2387
+ statusCode: 'statusCode',
2388
+ body: 'body',
2389
+ };
2390
+ }
2391
+
2392
+ static types(): { [key: string]: any } {
2393
+ return {
2394
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2395
+ statusCode: 'number',
2396
+ body: DeleteWebCCRuleV2ResponseBody,
2397
+ };
2398
+ }
2399
+
2400
+ constructor(map?: { [key: string]: any }) {
2401
+ super(map);
2402
+ }
2403
+ }
2404
+
2336
2405
  export class DeleteWebCacheCustomRuleRequest extends $tea.Model {
2337
2406
  domain?: string;
2338
2407
  resourceGroupId?: string;
@@ -11945,6 +12014,72 @@ export class ModifyWebAreaBlockSwitchResponse extends $tea.Model {
11945
12014
  }
11946
12015
  }
11947
12016
 
12017
+ export class ModifyWebCCGlobalSwitchRequest extends $tea.Model {
12018
+ ccGlobalSwitch?: string;
12019
+ domain?: string;
12020
+ static names(): { [key: string]: string } {
12021
+ return {
12022
+ ccGlobalSwitch: 'CcGlobalSwitch',
12023
+ domain: 'Domain',
12024
+ };
12025
+ }
12026
+
12027
+ static types(): { [key: string]: any } {
12028
+ return {
12029
+ ccGlobalSwitch: 'string',
12030
+ domain: 'string',
12031
+ };
12032
+ }
12033
+
12034
+ constructor(map?: { [key: string]: any }) {
12035
+ super(map);
12036
+ }
12037
+ }
12038
+
12039
+ export class ModifyWebCCGlobalSwitchResponseBody extends $tea.Model {
12040
+ requestId?: string;
12041
+ static names(): { [key: string]: string } {
12042
+ return {
12043
+ requestId: 'RequestId',
12044
+ };
12045
+ }
12046
+
12047
+ static types(): { [key: string]: any } {
12048
+ return {
12049
+ requestId: 'string',
12050
+ };
12051
+ }
12052
+
12053
+ constructor(map?: { [key: string]: any }) {
12054
+ super(map);
12055
+ }
12056
+ }
12057
+
12058
+ export class ModifyWebCCGlobalSwitchResponse extends $tea.Model {
12059
+ headers?: { [key: string]: string };
12060
+ statusCode?: number;
12061
+ body?: ModifyWebCCGlobalSwitchResponseBody;
12062
+ static names(): { [key: string]: string } {
12063
+ return {
12064
+ headers: 'headers',
12065
+ statusCode: 'statusCode',
12066
+ body: 'body',
12067
+ };
12068
+ }
12069
+
12070
+ static types(): { [key: string]: any } {
12071
+ return {
12072
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
12073
+ statusCode: 'number',
12074
+ body: ModifyWebCCGlobalSwitchResponseBody,
12075
+ };
12076
+ }
12077
+
12078
+ constructor(map?: { [key: string]: any }) {
12079
+ super(map);
12080
+ }
12081
+ }
12082
+
11948
12083
  export class ModifyWebCCRuleRequest extends $tea.Model {
11949
12084
  act?: string;
11950
12085
  count?: number;
@@ -17517,6 +17652,56 @@ export default class Client extends OpenApi {
17517
17652
  return await this.deleteWebCCRuleWithOptions(request, runtime);
17518
17653
  }
17519
17654
 
17655
+ /**
17656
+ * @summary 删除新版cc规则
17657
+ *
17658
+ * @param request DeleteWebCCRuleV2Request
17659
+ * @param runtime runtime options for this request RuntimeOptions
17660
+ * @return DeleteWebCCRuleV2Response
17661
+ */
17662
+ async deleteWebCCRuleV2WithOptions(request: DeleteWebCCRuleV2Request, runtime: $Util.RuntimeOptions): Promise<DeleteWebCCRuleV2Response> {
17663
+ Util.validateModel(request);
17664
+ let query = { };
17665
+ if (!Util.isUnset(request.domain)) {
17666
+ query["Domain"] = request.domain;
17667
+ }
17668
+
17669
+ if (!Util.isUnset(request.owner)) {
17670
+ query["Owner"] = request.owner;
17671
+ }
17672
+
17673
+ if (!Util.isUnset(request.ruleNames)) {
17674
+ query["RuleNames"] = request.ruleNames;
17675
+ }
17676
+
17677
+ let req = new $OpenApi.OpenApiRequest({
17678
+ query: OpenApiUtil.query(query),
17679
+ });
17680
+ let params = new $OpenApi.Params({
17681
+ action: "DeleteWebCCRuleV2",
17682
+ version: "2020-01-01",
17683
+ protocol: "HTTPS",
17684
+ pathname: "/",
17685
+ method: "POST",
17686
+ authType: "AK",
17687
+ style: "RPC",
17688
+ reqBodyType: "formData",
17689
+ bodyType: "json",
17690
+ });
17691
+ return $tea.cast<DeleteWebCCRuleV2Response>(await this.callApi(params, req, runtime), new DeleteWebCCRuleV2Response({}));
17692
+ }
17693
+
17694
+ /**
17695
+ * @summary 删除新版cc规则
17696
+ *
17697
+ * @param request DeleteWebCCRuleV2Request
17698
+ * @return DeleteWebCCRuleV2Response
17699
+ */
17700
+ async deleteWebCCRuleV2(request: DeleteWebCCRuleV2Request): Promise<DeleteWebCCRuleV2Response> {
17701
+ let runtime = new $Util.RuntimeOptions({ });
17702
+ return await this.deleteWebCCRuleV2WithOptions(request, runtime);
17703
+ }
17704
+
17520
17705
  /**
17521
17706
  * @summary Deletes the custom rules of the Static Page Caching policy for a website.
17522
17707
  *
@@ -24375,6 +24560,52 @@ export default class Client extends OpenApi {
24375
24560
  return await this.modifyWebAreaBlockSwitchWithOptions(request, runtime);
24376
24561
  }
24377
24562
 
24563
+ /**
24564
+ * @summary 统一全局CC开关
24565
+ *
24566
+ * @param request ModifyWebCCGlobalSwitchRequest
24567
+ * @param runtime runtime options for this request RuntimeOptions
24568
+ * @return ModifyWebCCGlobalSwitchResponse
24569
+ */
24570
+ async modifyWebCCGlobalSwitchWithOptions(request: ModifyWebCCGlobalSwitchRequest, runtime: $Util.RuntimeOptions): Promise<ModifyWebCCGlobalSwitchResponse> {
24571
+ Util.validateModel(request);
24572
+ let query = { };
24573
+ if (!Util.isUnset(request.ccGlobalSwitch)) {
24574
+ query["CcGlobalSwitch"] = request.ccGlobalSwitch;
24575
+ }
24576
+
24577
+ if (!Util.isUnset(request.domain)) {
24578
+ query["Domain"] = request.domain;
24579
+ }
24580
+
24581
+ let req = new $OpenApi.OpenApiRequest({
24582
+ query: OpenApiUtil.query(query),
24583
+ });
24584
+ let params = new $OpenApi.Params({
24585
+ action: "ModifyWebCCGlobalSwitch",
24586
+ version: "2020-01-01",
24587
+ protocol: "HTTPS",
24588
+ pathname: "/",
24589
+ method: "POST",
24590
+ authType: "AK",
24591
+ style: "RPC",
24592
+ reqBodyType: "formData",
24593
+ bodyType: "json",
24594
+ });
24595
+ return $tea.cast<ModifyWebCCGlobalSwitchResponse>(await this.callApi(params, req, runtime), new ModifyWebCCGlobalSwitchResponse({}));
24596
+ }
24597
+
24598
+ /**
24599
+ * @summary 统一全局CC开关
24600
+ *
24601
+ * @param request ModifyWebCCGlobalSwitchRequest
24602
+ * @return ModifyWebCCGlobalSwitchResponse
24603
+ */
24604
+ async modifyWebCCGlobalSwitch(request: ModifyWebCCGlobalSwitchRequest): Promise<ModifyWebCCGlobalSwitchResponse> {
24605
+ let runtime = new $Util.RuntimeOptions({ });
24606
+ return await this.modifyWebCCGlobalSwitchWithOptions(request, runtime);
24607
+ }
24608
+
24378
24609
  /**
24379
24610
  * @param request ModifyWebCCRuleRequest
24380
24611
  * @param runtime runtime options for this request RuntimeOptions