@alicloud/esa20240910 2.14.0 → 2.15.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
@@ -2844,35 +2844,6 @@ export class CreateLoadBalancerRequestRules extends $dara.Model {
2844
2844
  }
2845
2845
  }
2846
2846
 
2847
- export class CreateLoadBalancerRequestSessionAffinityAttributes extends $dara.Model {
2848
- sameSite?: string;
2849
- secure?: string;
2850
- zeroDowntimeFailover?: string;
2851
- static names(): { [key: string]: string } {
2852
- return {
2853
- sameSite: 'SameSite',
2854
- secure: 'Secure',
2855
- zeroDowntimeFailover: 'ZeroDowntimeFailover',
2856
- };
2857
- }
2858
-
2859
- static types(): { [key: string]: any } {
2860
- return {
2861
- sameSite: 'string',
2862
- secure: 'string',
2863
- zeroDowntimeFailover: 'string',
2864
- };
2865
- }
2866
-
2867
- validate() {
2868
- super.validate();
2869
- }
2870
-
2871
- constructor(map?: { [key: string]: any }) {
2872
- super(map);
2873
- }
2874
- }
2875
-
2876
2847
  export class CreateOriginPoolRequestOriginsAuthConf extends $dara.Model {
2877
2848
  accessKey?: string;
2878
2849
  authType?: string;
@@ -12783,47 +12754,6 @@ export class ListLoadBalancersResponseBodyLoadBalancersRules extends $dara.Model
12783
12754
  }
12784
12755
  }
12785
12756
 
12786
- export class ListLoadBalancersResponseBodyLoadBalancersSessionAffinityAttributes extends $dara.Model {
12787
- /**
12788
- * @example
12789
- * Lax
12790
- */
12791
- sameSite?: string;
12792
- /**
12793
- * @example
12794
- * Always
12795
- */
12796
- secure?: string;
12797
- /**
12798
- * @example
12799
- * sticky
12800
- */
12801
- zeroDowntimeFailover?: string;
12802
- static names(): { [key: string]: string } {
12803
- return {
12804
- sameSite: 'SameSite',
12805
- secure: 'Secure',
12806
- zeroDowntimeFailover: 'ZeroDowntimeFailover',
12807
- };
12808
- }
12809
-
12810
- static types(): { [key: string]: any } {
12811
- return {
12812
- sameSite: 'string',
12813
- secure: 'string',
12814
- zeroDowntimeFailover: 'string',
12815
- };
12816
- }
12817
-
12818
- validate() {
12819
- super.validate();
12820
- }
12821
-
12822
- constructor(map?: { [key: string]: any }) {
12823
- super(map);
12824
- }
12825
- }
12826
-
12827
12757
  export class ListLoadBalancersResponseBodyLoadBalancers extends $dara.Model {
12828
12758
  adaptiveRouting?: ListLoadBalancersResponseBodyLoadBalancersAdaptiveRouting;
12829
12759
  defaultPools?: number[];
@@ -12880,7 +12810,6 @@ export class ListLoadBalancersResponseBodyLoadBalancers extends $dara.Model {
12880
12810
  * ip
12881
12811
  */
12882
12812
  sessionAffinity?: string;
12883
- sessionAffinityAttributes?: ListLoadBalancersResponseBodyLoadBalancersSessionAffinityAttributes;
12884
12813
  /**
12885
12814
  * @example
12886
12815
  * 1159101787****
@@ -12920,7 +12849,6 @@ export class ListLoadBalancersResponseBodyLoadBalancers extends $dara.Model {
12920
12849
  regionPools: 'RegionPools',
12921
12850
  rules: 'Rules',
12922
12851
  sessionAffinity: 'SessionAffinity',
12923
- sessionAffinityAttributes: 'SessionAffinityAttributes',
12924
12852
  siteId: 'SiteId',
12925
12853
  status: 'Status',
12926
12854
  steeringPolicy: 'SteeringPolicy',
@@ -12943,7 +12871,6 @@ export class ListLoadBalancersResponseBodyLoadBalancers extends $dara.Model {
12943
12871
  regionPools: 'any',
12944
12872
  rules: { 'type': 'array', 'itemType': ListLoadBalancersResponseBodyLoadBalancersRules },
12945
12873
  sessionAffinity: 'string',
12946
- sessionAffinityAttributes: ListLoadBalancersResponseBodyLoadBalancersSessionAffinityAttributes,
12947
12874
  siteId: 'number',
12948
12875
  status: 'string',
12949
12876
  steeringPolicy: 'string',
@@ -12968,9 +12895,6 @@ export class ListLoadBalancersResponseBodyLoadBalancers extends $dara.Model {
12968
12895
  if(Array.isArray(this.rules)) {
12969
12896
  $dara.Model.validateArray(this.rules);
12970
12897
  }
12971
- if(this.sessionAffinityAttributes && typeof (this.sessionAffinityAttributes as any).validate === 'function') {
12972
- (this.sessionAffinityAttributes as any).validate();
12973
- }
12974
12898
  super.validate();
12975
12899
  }
12976
12900
 
@@ -16875,47 +16799,6 @@ export class UpdateLoadBalancerRequestRules extends $dara.Model {
16875
16799
  }
16876
16800
  }
16877
16801
 
16878
- export class UpdateLoadBalancerRequestSessionAffinityAttributes extends $dara.Model {
16879
- /**
16880
- * @example
16881
- * Lax
16882
- */
16883
- sameSite?: string;
16884
- /**
16885
- * @example
16886
- * Always
16887
- */
16888
- secure?: string;
16889
- /**
16890
- * @example
16891
- * sticky
16892
- */
16893
- zeroDowntimeFailover?: string;
16894
- static names(): { [key: string]: string } {
16895
- return {
16896
- sameSite: 'SameSite',
16897
- secure: 'Secure',
16898
- zeroDowntimeFailover: 'ZeroDowntimeFailover',
16899
- };
16900
- }
16901
-
16902
- static types(): { [key: string]: any } {
16903
- return {
16904
- sameSite: 'string',
16905
- secure: 'string',
16906
- zeroDowntimeFailover: 'string',
16907
- };
16908
- }
16909
-
16910
- validate() {
16911
- super.validate();
16912
- }
16913
-
16914
- constructor(map?: { [key: string]: any }) {
16915
- super(map);
16916
- }
16917
- }
16918
-
16919
16802
  export class UpdateOriginPoolRequestOriginsAuthConf extends $dara.Model {
16920
16803
  accessKey?: string;
16921
16804
  authType?: string;
@@ -22802,6 +22685,7 @@ export class CreateLoadBalancerRequest extends $dara.Model {
22802
22685
  */
22803
22686
  defaultPools?: number[];
22804
22687
  description?: string;
22688
+ enabled?: boolean;
22805
22689
  /**
22806
22690
  * @remarks
22807
22691
  * This parameter is required.
@@ -22846,7 +22730,6 @@ export class CreateLoadBalancerRequest extends $dara.Model {
22846
22730
  */
22847
22731
  rules?: CreateLoadBalancerRequestRules[];
22848
22732
  sessionAffinity?: string;
22849
- sessionAffinityAttributes?: CreateLoadBalancerRequestSessionAffinityAttributes;
22850
22733
  /**
22851
22734
  * @remarks
22852
22735
  * This parameter is required.
@@ -22867,6 +22750,7 @@ export class CreateLoadBalancerRequest extends $dara.Model {
22867
22750
  adaptiveRouting: 'AdaptiveRouting',
22868
22751
  defaultPools: 'DefaultPools',
22869
22752
  description: 'Description',
22753
+ enabled: 'Enabled',
22870
22754
  fallbackPool: 'FallbackPool',
22871
22755
  monitor: 'Monitor',
22872
22756
  name: 'Name',
@@ -22874,7 +22758,6 @@ export class CreateLoadBalancerRequest extends $dara.Model {
22874
22758
  regionPools: 'RegionPools',
22875
22759
  rules: 'Rules',
22876
22760
  sessionAffinity: 'SessionAffinity',
22877
- sessionAffinityAttributes: 'SessionAffinityAttributes',
22878
22761
  siteId: 'SiteId',
22879
22762
  steeringPolicy: 'SteeringPolicy',
22880
22763
  subRegionPools: 'SubRegionPools',
@@ -22887,6 +22770,7 @@ export class CreateLoadBalancerRequest extends $dara.Model {
22887
22770
  adaptiveRouting: CreateLoadBalancerRequestAdaptiveRouting,
22888
22771
  defaultPools: { 'type': 'array', 'itemType': 'number' },
22889
22772
  description: 'string',
22773
+ enabled: 'boolean',
22890
22774
  fallbackPool: 'number',
22891
22775
  monitor: CreateLoadBalancerRequestMonitor,
22892
22776
  name: 'string',
@@ -22894,7 +22778,6 @@ export class CreateLoadBalancerRequest extends $dara.Model {
22894
22778
  regionPools: 'any',
22895
22779
  rules: { 'type': 'array', 'itemType': CreateLoadBalancerRequestRules },
22896
22780
  sessionAffinity: 'string',
22897
- sessionAffinityAttributes: CreateLoadBalancerRequestSessionAffinityAttributes,
22898
22781
  siteId: 'number',
22899
22782
  steeringPolicy: 'string',
22900
22783
  subRegionPools: 'any',
@@ -22918,9 +22801,6 @@ export class CreateLoadBalancerRequest extends $dara.Model {
22918
22801
  if(Array.isArray(this.rules)) {
22919
22802
  $dara.Model.validateArray(this.rules);
22920
22803
  }
22921
- if(this.sessionAffinityAttributes && typeof (this.sessionAffinityAttributes as any).validate === 'function') {
22922
- (this.sessionAffinityAttributes as any).validate();
22923
- }
22924
22804
  super.validate();
22925
22805
  }
22926
22806
 
@@ -22944,6 +22824,7 @@ export class CreateLoadBalancerShrinkRequest extends $dara.Model {
22944
22824
  */
22945
22825
  defaultPoolsShrink?: string;
22946
22826
  description?: string;
22827
+ enabled?: boolean;
22947
22828
  /**
22948
22829
  * @remarks
22949
22830
  * This parameter is required.
@@ -22988,7 +22869,6 @@ export class CreateLoadBalancerShrinkRequest extends $dara.Model {
22988
22869
  */
22989
22870
  rulesShrink?: string;
22990
22871
  sessionAffinity?: string;
22991
- sessionAffinityAttributesShrink?: string;
22992
22872
  /**
22993
22873
  * @remarks
22994
22874
  * This parameter is required.
@@ -23009,6 +22889,7 @@ export class CreateLoadBalancerShrinkRequest extends $dara.Model {
23009
22889
  adaptiveRoutingShrink: 'AdaptiveRouting',
23010
22890
  defaultPoolsShrink: 'DefaultPools',
23011
22891
  description: 'Description',
22892
+ enabled: 'Enabled',
23012
22893
  fallbackPool: 'FallbackPool',
23013
22894
  monitorShrink: 'Monitor',
23014
22895
  name: 'Name',
@@ -23016,7 +22897,6 @@ export class CreateLoadBalancerShrinkRequest extends $dara.Model {
23016
22897
  regionPools: 'RegionPools',
23017
22898
  rulesShrink: 'Rules',
23018
22899
  sessionAffinity: 'SessionAffinity',
23019
- sessionAffinityAttributesShrink: 'SessionAffinityAttributes',
23020
22900
  siteId: 'SiteId',
23021
22901
  steeringPolicy: 'SteeringPolicy',
23022
22902
  subRegionPools: 'SubRegionPools',
@@ -23029,6 +22909,7 @@ export class CreateLoadBalancerShrinkRequest extends $dara.Model {
23029
22909
  adaptiveRoutingShrink: 'string',
23030
22910
  defaultPoolsShrink: 'string',
23031
22911
  description: 'string',
22912
+ enabled: 'boolean',
23032
22913
  fallbackPool: 'number',
23033
22914
  monitorShrink: 'string',
23034
22915
  name: 'string',
@@ -23036,7 +22917,6 @@ export class CreateLoadBalancerShrinkRequest extends $dara.Model {
23036
22917
  regionPools: 'any',
23037
22918
  rulesShrink: 'string',
23038
22919
  sessionAffinity: 'string',
23039
- sessionAffinityAttributesShrink: 'string',
23040
22920
  siteId: 'number',
23041
22921
  steeringPolicy: 'string',
23042
22922
  subRegionPools: 'any',
@@ -33401,155 +33281,25 @@ export class DescribePurgeTasksResponse extends $dara.Model {
33401
33281
  }
33402
33282
  }
33403
33283
 
33404
- export class DisableCustomScenePolicyRequest extends $dara.Model {
33284
+ export class DescribeRatePlanInstanceStatusRequest extends $dara.Model {
33405
33285
  /**
33406
- * @remarks
33407
- * The policy ID, which can be obtained by calling the [DescribeCustomScenePolicies](https://help.aliyun.com/document_detail/2850508.html) operation.
33408
- *
33409
- * This parameter is required.
33410
- *
33411
33286
  * @example
33412
- * 100001
33287
+ * xcdn-91fknmb80f0g***
33413
33288
  */
33414
- policyId?: number;
33415
- static names(): { [key: string]: string } {
33416
- return {
33417
- policyId: 'PolicyId',
33418
- };
33419
- }
33420
-
33421
- static types(): { [key: string]: any } {
33422
- return {
33423
- policyId: 'number',
33424
- };
33425
- }
33426
-
33427
- validate() {
33428
- super.validate();
33429
- }
33430
-
33431
- constructor(map?: { [key: string]: any }) {
33432
- super(map);
33433
- }
33434
- }
33435
-
33436
- export class DisableCustomScenePolicyResponseBody extends $dara.Model {
33437
- /**
33438
- * @remarks
33439
- * The ID of the disabled policy.
33440
- *
33441
- * @example
33442
- * 100001
33443
- */
33444
- policyId?: number;
33445
- /**
33446
- * @remarks
33447
- * The request ID.
33448
- *
33449
- * @example
33450
- * 9732E117-8A37-49FD-A36F-ABBB87556CA7
33451
- */
33452
- requestId?: string;
33453
- static names(): { [key: string]: string } {
33454
- return {
33455
- policyId: 'PolicyId',
33456
- requestId: 'RequestId',
33457
- };
33458
- }
33459
-
33460
- static types(): { [key: string]: any } {
33461
- return {
33462
- policyId: 'number',
33463
- requestId: 'string',
33464
- };
33465
- }
33466
-
33467
- validate() {
33468
- super.validate();
33469
- }
33470
-
33471
- constructor(map?: { [key: string]: any }) {
33472
- super(map);
33473
- }
33474
- }
33475
-
33476
- export class DisableCustomScenePolicyResponse extends $dara.Model {
33477
- headers?: { [key: string]: string };
33478
- statusCode?: number;
33479
- body?: DisableCustomScenePolicyResponseBody;
33480
- static names(): { [key: string]: string } {
33481
- return {
33482
- headers: 'headers',
33483
- statusCode: 'statusCode',
33484
- body: 'body',
33485
- };
33486
- }
33487
-
33488
- static types(): { [key: string]: any } {
33489
- return {
33490
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
33491
- statusCode: 'number',
33492
- body: DisableCustomScenePolicyResponseBody,
33493
- };
33494
- }
33495
-
33496
- validate() {
33497
- if(this.headers) {
33498
- $dara.Model.validateMap(this.headers);
33499
- }
33500
- if(this.body && typeof (this.body as any).validate === 'function') {
33501
- (this.body as any).validate();
33502
- }
33503
- super.validate();
33504
- }
33505
-
33506
- constructor(map?: { [key: string]: any }) {
33507
- super(map);
33508
- }
33509
- }
33510
-
33511
- export class EditSiteWafSettingsRequest extends $dara.Model {
33512
- /**
33513
- * @remarks
33514
- * The WAF configuration of the website in the JSON format.
33515
- */
33516
- settings?: WafSiteSettings;
33517
- /**
33518
- * @remarks
33519
- * The website ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation.
33520
- *
33521
- * @example
33522
- * 1
33523
- */
33524
- siteId?: number;
33525
- /**
33526
- * @remarks
33527
- * The version of the website.
33528
- *
33529
- * @example
33530
- * 0
33531
- */
33532
- siteVersion?: number;
33289
+ instanceId?: string;
33533
33290
  static names(): { [key: string]: string } {
33534
33291
  return {
33535
- settings: 'Settings',
33536
- siteId: 'SiteId',
33537
- siteVersion: 'SiteVersion',
33292
+ instanceId: 'InstanceId',
33538
33293
  };
33539
33294
  }
33540
33295
 
33541
33296
  static types(): { [key: string]: any } {
33542
33297
  return {
33543
- settings: WafSiteSettings,
33544
- siteId: 'number',
33545
- siteVersion: 'number',
33298
+ instanceId: 'string',
33546
33299
  };
33547
33300
  }
33548
33301
 
33549
33302
  validate() {
33550
- if(this.settings && typeof (this.settings as any).validate === 'function') {
33551
- (this.settings as any).validate();
33552
- }
33553
33303
  super.validate();
33554
33304
  }
33555
33305
 
@@ -33558,70 +33308,37 @@ export class EditSiteWafSettingsRequest extends $dara.Model {
33558
33308
  }
33559
33309
  }
33560
33310
 
33561
- export class EditSiteWafSettingsShrinkRequest extends $dara.Model {
33311
+ export class DescribeRatePlanInstanceStatusResponseBody extends $dara.Model {
33562
33312
  /**
33563
- * @remarks
33564
- * The WAF configuration of the website in the JSON format.
33565
- */
33566
- settingsShrink?: string;
33567
- /**
33568
- * @remarks
33569
- * The website ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation.
33570
- *
33571
33313
  * @example
33572
- * 1
33314
+ * xcdn-91fknmb80f0g***
33573
33315
  */
33574
- siteId?: number;
33316
+ instanceId?: string;
33575
33317
  /**
33576
- * @remarks
33577
- * The version of the website.
33578
- *
33579
33318
  * @example
33580
- * 0
33319
+ * running
33581
33320
  */
33582
- siteVersion?: number;
33583
- static names(): { [key: string]: string } {
33584
- return {
33585
- settingsShrink: 'Settings',
33586
- siteId: 'SiteId',
33587
- siteVersion: 'SiteVersion',
33588
- };
33589
- }
33590
-
33591
- static types(): { [key: string]: any } {
33592
- return {
33593
- settingsShrink: 'string',
33594
- siteId: 'number',
33595
- siteVersion: 'number',
33596
- };
33597
- }
33598
-
33599
- validate() {
33600
- super.validate();
33601
- }
33602
-
33603
- constructor(map?: { [key: string]: any }) {
33604
- super(map);
33605
- }
33606
- }
33607
-
33608
- export class EditSiteWafSettingsResponseBody extends $dara.Model {
33321
+ instanceStatus?: string;
33609
33322
  /**
33610
33323
  * @remarks
33611
- * The request ID.
33324
+ * Id of the request
33612
33325
  *
33613
33326
  * @example
33614
- * 36af3fcc-43d0-441c-86b1-428951dc8225
33327
+ * 60423A7F-A83D-1E24-B80E-86DD25790759
33615
33328
  */
33616
33329
  requestId?: string;
33617
33330
  static names(): { [key: string]: string } {
33618
33331
  return {
33332
+ instanceId: 'InstanceId',
33333
+ instanceStatus: 'InstanceStatus',
33619
33334
  requestId: 'RequestId',
33620
33335
  };
33621
33336
  }
33622
33337
 
33623
33338
  static types(): { [key: string]: any } {
33624
33339
  return {
33340
+ instanceId: 'string',
33341
+ instanceStatus: 'string',
33625
33342
  requestId: 'string',
33626
33343
  };
33627
33344
  }
@@ -33635,10 +33352,10 @@ export class EditSiteWafSettingsResponseBody extends $dara.Model {
33635
33352
  }
33636
33353
  }
33637
33354
 
33638
- export class EditSiteWafSettingsResponse extends $dara.Model {
33355
+ export class DescribeRatePlanInstanceStatusResponse extends $dara.Model {
33639
33356
  headers?: { [key: string]: string };
33640
33357
  statusCode?: number;
33641
- body?: EditSiteWafSettingsResponseBody;
33358
+ body?: DescribeRatePlanInstanceStatusResponseBody;
33642
33359
  static names(): { [key: string]: string } {
33643
33360
  return {
33644
33361
  headers: 'headers',
@@ -33651,7 +33368,7 @@ export class EditSiteWafSettingsResponse extends $dara.Model {
33651
33368
  return {
33652
33369
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
33653
33370
  statusCode: 'number',
33654
- body: EditSiteWafSettingsResponseBody,
33371
+ body: DescribeRatePlanInstanceStatusResponseBody,
33655
33372
  };
33656
33373
  }
33657
33374
 
@@ -33670,7 +33387,7 @@ export class EditSiteWafSettingsResponse extends $dara.Model {
33670
33387
  }
33671
33388
  }
33672
33389
 
33673
- export class EnableCustomScenePolicyRequest extends $dara.Model {
33390
+ export class DisableCustomScenePolicyRequest extends $dara.Model {
33674
33391
  /**
33675
33392
  * @remarks
33676
33393
  * The policy ID, which can be obtained by calling the [DescribeCustomScenePolicies](https://help.aliyun.com/document_detail/2850508.html) operation.
@@ -33678,7 +33395,276 @@ export class EnableCustomScenePolicyRequest extends $dara.Model {
33678
33395
  * This parameter is required.
33679
33396
  *
33680
33397
  * @example
33681
- * 1
33398
+ * 100001
33399
+ */
33400
+ policyId?: number;
33401
+ static names(): { [key: string]: string } {
33402
+ return {
33403
+ policyId: 'PolicyId',
33404
+ };
33405
+ }
33406
+
33407
+ static types(): { [key: string]: any } {
33408
+ return {
33409
+ policyId: 'number',
33410
+ };
33411
+ }
33412
+
33413
+ validate() {
33414
+ super.validate();
33415
+ }
33416
+
33417
+ constructor(map?: { [key: string]: any }) {
33418
+ super(map);
33419
+ }
33420
+ }
33421
+
33422
+ export class DisableCustomScenePolicyResponseBody extends $dara.Model {
33423
+ /**
33424
+ * @remarks
33425
+ * The ID of the disabled policy.
33426
+ *
33427
+ * @example
33428
+ * 100001
33429
+ */
33430
+ policyId?: number;
33431
+ /**
33432
+ * @remarks
33433
+ * The request ID.
33434
+ *
33435
+ * @example
33436
+ * 9732E117-8A37-49FD-A36F-ABBB87556CA7
33437
+ */
33438
+ requestId?: string;
33439
+ static names(): { [key: string]: string } {
33440
+ return {
33441
+ policyId: 'PolicyId',
33442
+ requestId: 'RequestId',
33443
+ };
33444
+ }
33445
+
33446
+ static types(): { [key: string]: any } {
33447
+ return {
33448
+ policyId: 'number',
33449
+ requestId: 'string',
33450
+ };
33451
+ }
33452
+
33453
+ validate() {
33454
+ super.validate();
33455
+ }
33456
+
33457
+ constructor(map?: { [key: string]: any }) {
33458
+ super(map);
33459
+ }
33460
+ }
33461
+
33462
+ export class DisableCustomScenePolicyResponse extends $dara.Model {
33463
+ headers?: { [key: string]: string };
33464
+ statusCode?: number;
33465
+ body?: DisableCustomScenePolicyResponseBody;
33466
+ static names(): { [key: string]: string } {
33467
+ return {
33468
+ headers: 'headers',
33469
+ statusCode: 'statusCode',
33470
+ body: 'body',
33471
+ };
33472
+ }
33473
+
33474
+ static types(): { [key: string]: any } {
33475
+ return {
33476
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
33477
+ statusCode: 'number',
33478
+ body: DisableCustomScenePolicyResponseBody,
33479
+ };
33480
+ }
33481
+
33482
+ validate() {
33483
+ if(this.headers) {
33484
+ $dara.Model.validateMap(this.headers);
33485
+ }
33486
+ if(this.body && typeof (this.body as any).validate === 'function') {
33487
+ (this.body as any).validate();
33488
+ }
33489
+ super.validate();
33490
+ }
33491
+
33492
+ constructor(map?: { [key: string]: any }) {
33493
+ super(map);
33494
+ }
33495
+ }
33496
+
33497
+ export class EditSiteWafSettingsRequest extends $dara.Model {
33498
+ /**
33499
+ * @remarks
33500
+ * The WAF configuration of the website in the JSON format.
33501
+ */
33502
+ settings?: WafSiteSettings;
33503
+ /**
33504
+ * @remarks
33505
+ * The website ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation.
33506
+ *
33507
+ * @example
33508
+ * 1
33509
+ */
33510
+ siteId?: number;
33511
+ /**
33512
+ * @remarks
33513
+ * The version of the website.
33514
+ *
33515
+ * @example
33516
+ * 0
33517
+ */
33518
+ siteVersion?: number;
33519
+ static names(): { [key: string]: string } {
33520
+ return {
33521
+ settings: 'Settings',
33522
+ siteId: 'SiteId',
33523
+ siteVersion: 'SiteVersion',
33524
+ };
33525
+ }
33526
+
33527
+ static types(): { [key: string]: any } {
33528
+ return {
33529
+ settings: WafSiteSettings,
33530
+ siteId: 'number',
33531
+ siteVersion: 'number',
33532
+ };
33533
+ }
33534
+
33535
+ validate() {
33536
+ if(this.settings && typeof (this.settings as any).validate === 'function') {
33537
+ (this.settings as any).validate();
33538
+ }
33539
+ super.validate();
33540
+ }
33541
+
33542
+ constructor(map?: { [key: string]: any }) {
33543
+ super(map);
33544
+ }
33545
+ }
33546
+
33547
+ export class EditSiteWafSettingsShrinkRequest extends $dara.Model {
33548
+ /**
33549
+ * @remarks
33550
+ * The WAF configuration of the website in the JSON format.
33551
+ */
33552
+ settingsShrink?: string;
33553
+ /**
33554
+ * @remarks
33555
+ * The website ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation.
33556
+ *
33557
+ * @example
33558
+ * 1
33559
+ */
33560
+ siteId?: number;
33561
+ /**
33562
+ * @remarks
33563
+ * The version of the website.
33564
+ *
33565
+ * @example
33566
+ * 0
33567
+ */
33568
+ siteVersion?: number;
33569
+ static names(): { [key: string]: string } {
33570
+ return {
33571
+ settingsShrink: 'Settings',
33572
+ siteId: 'SiteId',
33573
+ siteVersion: 'SiteVersion',
33574
+ };
33575
+ }
33576
+
33577
+ static types(): { [key: string]: any } {
33578
+ return {
33579
+ settingsShrink: 'string',
33580
+ siteId: 'number',
33581
+ siteVersion: 'number',
33582
+ };
33583
+ }
33584
+
33585
+ validate() {
33586
+ super.validate();
33587
+ }
33588
+
33589
+ constructor(map?: { [key: string]: any }) {
33590
+ super(map);
33591
+ }
33592
+ }
33593
+
33594
+ export class EditSiteWafSettingsResponseBody extends $dara.Model {
33595
+ /**
33596
+ * @remarks
33597
+ * The request ID.
33598
+ *
33599
+ * @example
33600
+ * 36af3fcc-43d0-441c-86b1-428951dc8225
33601
+ */
33602
+ requestId?: string;
33603
+ static names(): { [key: string]: string } {
33604
+ return {
33605
+ requestId: 'RequestId',
33606
+ };
33607
+ }
33608
+
33609
+ static types(): { [key: string]: any } {
33610
+ return {
33611
+ requestId: 'string',
33612
+ };
33613
+ }
33614
+
33615
+ validate() {
33616
+ super.validate();
33617
+ }
33618
+
33619
+ constructor(map?: { [key: string]: any }) {
33620
+ super(map);
33621
+ }
33622
+ }
33623
+
33624
+ export class EditSiteWafSettingsResponse extends $dara.Model {
33625
+ headers?: { [key: string]: string };
33626
+ statusCode?: number;
33627
+ body?: EditSiteWafSettingsResponseBody;
33628
+ static names(): { [key: string]: string } {
33629
+ return {
33630
+ headers: 'headers',
33631
+ statusCode: 'statusCode',
33632
+ body: 'body',
33633
+ };
33634
+ }
33635
+
33636
+ static types(): { [key: string]: any } {
33637
+ return {
33638
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
33639
+ statusCode: 'number',
33640
+ body: EditSiteWafSettingsResponseBody,
33641
+ };
33642
+ }
33643
+
33644
+ validate() {
33645
+ if(this.headers) {
33646
+ $dara.Model.validateMap(this.headers);
33647
+ }
33648
+ if(this.body && typeof (this.body as any).validate === 'function') {
33649
+ (this.body as any).validate();
33650
+ }
33651
+ super.validate();
33652
+ }
33653
+
33654
+ constructor(map?: { [key: string]: any }) {
33655
+ super(map);
33656
+ }
33657
+ }
33658
+
33659
+ export class EnableCustomScenePolicyRequest extends $dara.Model {
33660
+ /**
33661
+ * @remarks
33662
+ * The policy ID, which can be obtained by calling the [DescribeCustomScenePolicies](https://help.aliyun.com/document_detail/2850508.html) operation.
33663
+ *
33664
+ * This parameter is required.
33665
+ *
33666
+ * @example
33667
+ * 1
33682
33668
  */
33683
33669
  policyId?: number;
33684
33670
  static names(): { [key: string]: string } {
@@ -52263,6 +52249,164 @@ export class PublishRoutineCodeVersionResponse extends $dara.Model {
52263
52249
  }
52264
52250
  }
52265
52251
 
52252
+ export class PurchaseRatePlanRequest extends $dara.Model {
52253
+ autoPay?: boolean;
52254
+ /**
52255
+ * @example
52256
+ * true
52257
+ */
52258
+ autoRenew?: boolean;
52259
+ /**
52260
+ * @example
52261
+ * PREPAY
52262
+ */
52263
+ chargeType?: string;
52264
+ /**
52265
+ * @example
52266
+ * domestic
52267
+ */
52268
+ coverage?: string;
52269
+ /**
52270
+ * @example
52271
+ * 1
52272
+ */
52273
+ period?: number;
52274
+ /**
52275
+ * @example
52276
+ * entranceplan
52277
+ */
52278
+ planCode?: string;
52279
+ /**
52280
+ * @example
52281
+ * basic
52282
+ */
52283
+ planName?: string;
52284
+ /**
52285
+ * @example
52286
+ * test.com
52287
+ */
52288
+ siteName?: string;
52289
+ /**
52290
+ * @example
52291
+ * CNAME
52292
+ */
52293
+ type?: string;
52294
+ static names(): { [key: string]: string } {
52295
+ return {
52296
+ autoPay: 'AutoPay',
52297
+ autoRenew: 'AutoRenew',
52298
+ chargeType: 'ChargeType',
52299
+ coverage: 'Coverage',
52300
+ period: 'Period',
52301
+ planCode: 'PlanCode',
52302
+ planName: 'PlanName',
52303
+ siteName: 'SiteName',
52304
+ type: 'Type',
52305
+ };
52306
+ }
52307
+
52308
+ static types(): { [key: string]: any } {
52309
+ return {
52310
+ autoPay: 'boolean',
52311
+ autoRenew: 'boolean',
52312
+ chargeType: 'string',
52313
+ coverage: 'string',
52314
+ period: 'number',
52315
+ planCode: 'string',
52316
+ planName: 'string',
52317
+ siteName: 'string',
52318
+ type: 'string',
52319
+ };
52320
+ }
52321
+
52322
+ validate() {
52323
+ super.validate();
52324
+ }
52325
+
52326
+ constructor(map?: { [key: string]: any }) {
52327
+ super(map);
52328
+ }
52329
+ }
52330
+
52331
+ export class PurchaseRatePlanResponseBody extends $dara.Model {
52332
+ /**
52333
+ * @example
52334
+ * xcdn-ads11w
52335
+ */
52336
+ instanceId?: string;
52337
+ /**
52338
+ * @example
52339
+ * 123123
52340
+ */
52341
+ orderId?: string;
52342
+ /**
52343
+ * @remarks
52344
+ * Id of the request
52345
+ *
52346
+ * @example
52347
+ * 30423A7F-A83D-1E24-B80E-86DD25790758
52348
+ */
52349
+ requestId?: string;
52350
+ static names(): { [key: string]: string } {
52351
+ return {
52352
+ instanceId: 'InstanceId',
52353
+ orderId: 'OrderId',
52354
+ requestId: 'RequestId',
52355
+ };
52356
+ }
52357
+
52358
+ static types(): { [key: string]: any } {
52359
+ return {
52360
+ instanceId: 'string',
52361
+ orderId: 'string',
52362
+ requestId: 'string',
52363
+ };
52364
+ }
52365
+
52366
+ validate() {
52367
+ super.validate();
52368
+ }
52369
+
52370
+ constructor(map?: { [key: string]: any }) {
52371
+ super(map);
52372
+ }
52373
+ }
52374
+
52375
+ export class PurchaseRatePlanResponse extends $dara.Model {
52376
+ headers?: { [key: string]: string };
52377
+ statusCode?: number;
52378
+ body?: PurchaseRatePlanResponseBody;
52379
+ static names(): { [key: string]: string } {
52380
+ return {
52381
+ headers: 'headers',
52382
+ statusCode: 'statusCode',
52383
+ body: 'body',
52384
+ };
52385
+ }
52386
+
52387
+ static types(): { [key: string]: any } {
52388
+ return {
52389
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
52390
+ statusCode: 'number',
52391
+ body: PurchaseRatePlanResponseBody,
52392
+ };
52393
+ }
52394
+
52395
+ validate() {
52396
+ if(this.headers) {
52397
+ $dara.Model.validateMap(this.headers);
52398
+ }
52399
+ if(this.body && typeof (this.body as any).validate === 'function') {
52400
+ (this.body as any).validate();
52401
+ }
52402
+ super.validate();
52403
+ }
52404
+
52405
+ constructor(map?: { [key: string]: any }) {
52406
+ super(map);
52407
+ }
52408
+ }
52409
+
52266
52410
  export class PurgeCachesRequest extends $dara.Model {
52267
52411
  /**
52268
52412
  * @remarks
@@ -53537,14 +53681,6 @@ export class SetCertificateRequest extends $dara.Model {
53537
53681
  * cas
53538
53682
  */
53539
53683
  type?: string;
53540
- /**
53541
- * @remarks
53542
- * Specifies whether to update the certificate.
53543
- *
53544
- * @example
53545
- * true
53546
- */
53547
- update?: boolean;
53548
53684
  static names(): { [key: string]: string } {
53549
53685
  return {
53550
53686
  casId: 'CasId',
@@ -53557,7 +53693,6 @@ export class SetCertificateRequest extends $dara.Model {
53557
53693
  securityToken: 'SecurityToken',
53558
53694
  siteId: 'SiteId',
53559
53695
  type: 'Type',
53560
- update: 'Update',
53561
53696
  };
53562
53697
  }
53563
53698
 
@@ -53573,7 +53708,6 @@ export class SetCertificateRequest extends $dara.Model {
53573
53708
  securityToken: 'string',
53574
53709
  siteId: 'number',
53575
53710
  type: 'string',
53576
- update: 'boolean',
53577
53711
  };
53578
53712
  }
53579
53713
 
@@ -56624,160 +56758,6 @@ export class UpdateImageTransformResponse extends $dara.Model {
56624
56758
  }
56625
56759
  }
56626
56760
 
56627
- export class UpdateKvNamespaceRequest extends $dara.Model {
56628
- /**
56629
- * @remarks
56630
- * The name of the namespace that you specify when you call the [CreateKvNamespace](https://help.aliyun.com/document_detail/2850317.html) operation.
56631
- *
56632
- * This parameter is required.
56633
- *
56634
- * @example
56635
- * ns1
56636
- */
56637
- namespace?: string;
56638
- /**
56639
- * @remarks
56640
- * The new name of the namespace.
56641
- *
56642
- * This parameter is required.
56643
- *
56644
- * @example
56645
- * new_ns
56646
- */
56647
- title?: string;
56648
- static names(): { [key: string]: string } {
56649
- return {
56650
- namespace: 'Namespace',
56651
- title: 'Title',
56652
- };
56653
- }
56654
-
56655
- static types(): { [key: string]: any } {
56656
- return {
56657
- namespace: 'string',
56658
- title: 'string',
56659
- };
56660
- }
56661
-
56662
- validate() {
56663
- super.validate();
56664
- }
56665
-
56666
- constructor(map?: { [key: string]: any }) {
56667
- super(map);
56668
- }
56669
- }
56670
-
56671
- export class UpdateKvNamespaceResponseBody extends $dara.Model {
56672
- /**
56673
- * @remarks
56674
- * The description of the namespace.
56675
- *
56676
- * @example
56677
- * this is a test ns.
56678
- */
56679
- description?: string;
56680
- /**
56681
- * @remarks
56682
- * The updated name of the namespace.
56683
- *
56684
- * @example
56685
- * new_ns1
56686
- */
56687
- namespace?: string;
56688
- /**
56689
- * @remarks
56690
- * The ID of the namespace.
56691
- *
56692
- * @example
56693
- * 643355322374688768
56694
- */
56695
- namespaceId?: string;
56696
- /**
56697
- * @remarks
56698
- * The request ID.
56699
- *
56700
- * @example
56701
- * 0AEDAF20-4DDF-4165-8750-47FF9C1929C9
56702
- */
56703
- requestId?: string;
56704
- /**
56705
- * @remarks
56706
- * The status of the namespace. Valid values:
56707
- *
56708
- * * **online**: normal.
56709
- * * **delete**: pending deletion.
56710
- * * **deleting**: being deleted.
56711
- * * **deleted**: deleted.
56712
- *
56713
- * @example
56714
- * online
56715
- */
56716
- status?: string;
56717
- static names(): { [key: string]: string } {
56718
- return {
56719
- description: 'Description',
56720
- namespace: 'Namespace',
56721
- namespaceId: 'NamespaceId',
56722
- requestId: 'RequestId',
56723
- status: 'Status',
56724
- };
56725
- }
56726
-
56727
- static types(): { [key: string]: any } {
56728
- return {
56729
- description: 'string',
56730
- namespace: 'string',
56731
- namespaceId: 'string',
56732
- requestId: 'string',
56733
- status: 'string',
56734
- };
56735
- }
56736
-
56737
- validate() {
56738
- super.validate();
56739
- }
56740
-
56741
- constructor(map?: { [key: string]: any }) {
56742
- super(map);
56743
- }
56744
- }
56745
-
56746
- export class UpdateKvNamespaceResponse extends $dara.Model {
56747
- headers?: { [key: string]: string };
56748
- statusCode?: number;
56749
- body?: UpdateKvNamespaceResponseBody;
56750
- static names(): { [key: string]: string } {
56751
- return {
56752
- headers: 'headers',
56753
- statusCode: 'statusCode',
56754
- body: 'body',
56755
- };
56756
- }
56757
-
56758
- static types(): { [key: string]: any } {
56759
- return {
56760
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
56761
- statusCode: 'number',
56762
- body: UpdateKvNamespaceResponseBody,
56763
- };
56764
- }
56765
-
56766
- validate() {
56767
- if(this.headers) {
56768
- $dara.Model.validateMap(this.headers);
56769
- }
56770
- if(this.body && typeof (this.body as any).validate === 'function') {
56771
- (this.body as any).validate();
56772
- }
56773
- super.validate();
56774
- }
56775
-
56776
- constructor(map?: { [key: string]: any }) {
56777
- super(map);
56778
- }
56779
- }
56780
-
56781
56761
  export class UpdateListRequest extends $dara.Model {
56782
56762
  /**
56783
56763
  * @remarks
@@ -56986,6 +56966,7 @@ export class UpdateLoadBalancerRequest extends $dara.Model {
56986
56966
  adaptiveRouting?: UpdateLoadBalancerRequestAdaptiveRouting;
56987
56967
  defaultPools?: number[];
56988
56968
  description?: string;
56969
+ enabled?: boolean;
56989
56970
  /**
56990
56971
  * @example
56991
56972
  * 96228666776****
@@ -57031,7 +57012,6 @@ export class UpdateLoadBalancerRequest extends $dara.Model {
57031
57012
  * ip
57032
57013
  */
57033
57014
  sessionAffinity?: string;
57034
- sessionAffinityAttributes?: UpdateLoadBalancerRequestSessionAffinityAttributes;
57035
57015
  /**
57036
57016
  * @remarks
57037
57017
  * This parameter is required.
@@ -57060,6 +57040,7 @@ export class UpdateLoadBalancerRequest extends $dara.Model {
57060
57040
  adaptiveRouting: 'AdaptiveRouting',
57061
57041
  defaultPools: 'DefaultPools',
57062
57042
  description: 'Description',
57043
+ enabled: 'Enabled',
57063
57044
  fallbackPool: 'FallbackPool',
57064
57045
  id: 'Id',
57065
57046
  monitor: 'Monitor',
@@ -57067,7 +57048,6 @@ export class UpdateLoadBalancerRequest extends $dara.Model {
57067
57048
  regionPools: 'RegionPools',
57068
57049
  rules: 'Rules',
57069
57050
  sessionAffinity: 'SessionAffinity',
57070
- sessionAffinityAttributes: 'SessionAffinityAttributes',
57071
57051
  siteId: 'SiteId',
57072
57052
  steeringPolicy: 'SteeringPolicy',
57073
57053
  subRegionPools: 'SubRegionPools',
@@ -57080,6 +57060,7 @@ export class UpdateLoadBalancerRequest extends $dara.Model {
57080
57060
  adaptiveRouting: UpdateLoadBalancerRequestAdaptiveRouting,
57081
57061
  defaultPools: { 'type': 'array', 'itemType': 'number' },
57082
57062
  description: 'string',
57063
+ enabled: 'boolean',
57083
57064
  fallbackPool: 'number',
57084
57065
  id: 'number',
57085
57066
  monitor: UpdateLoadBalancerRequestMonitor,
@@ -57087,7 +57068,6 @@ export class UpdateLoadBalancerRequest extends $dara.Model {
57087
57068
  regionPools: 'any',
57088
57069
  rules: { 'type': 'array', 'itemType': UpdateLoadBalancerRequestRules },
57089
57070
  sessionAffinity: 'string',
57090
- sessionAffinityAttributes: UpdateLoadBalancerRequestSessionAffinityAttributes,
57091
57071
  siteId: 'number',
57092
57072
  steeringPolicy: 'string',
57093
57073
  subRegionPools: 'any',
@@ -57111,9 +57091,6 @@ export class UpdateLoadBalancerRequest extends $dara.Model {
57111
57091
  if(Array.isArray(this.rules)) {
57112
57092
  $dara.Model.validateArray(this.rules);
57113
57093
  }
57114
- if(this.sessionAffinityAttributes && typeof (this.sessionAffinityAttributes as any).validate === 'function') {
57115
- (this.sessionAffinityAttributes as any).validate();
57116
- }
57117
57094
  super.validate();
57118
57095
  }
57119
57096
 
@@ -57126,6 +57103,7 @@ export class UpdateLoadBalancerShrinkRequest extends $dara.Model {
57126
57103
  adaptiveRoutingShrink?: string;
57127
57104
  defaultPoolsShrink?: string;
57128
57105
  description?: string;
57106
+ enabled?: boolean;
57129
57107
  /**
57130
57108
  * @example
57131
57109
  * 96228666776****
@@ -57171,7 +57149,6 @@ export class UpdateLoadBalancerShrinkRequest extends $dara.Model {
57171
57149
  * ip
57172
57150
  */
57173
57151
  sessionAffinity?: string;
57174
- sessionAffinityAttributesShrink?: string;
57175
57152
  /**
57176
57153
  * @remarks
57177
57154
  * This parameter is required.
@@ -57200,6 +57177,7 @@ export class UpdateLoadBalancerShrinkRequest extends $dara.Model {
57200
57177
  adaptiveRoutingShrink: 'AdaptiveRouting',
57201
57178
  defaultPoolsShrink: 'DefaultPools',
57202
57179
  description: 'Description',
57180
+ enabled: 'Enabled',
57203
57181
  fallbackPool: 'FallbackPool',
57204
57182
  id: 'Id',
57205
57183
  monitorShrink: 'Monitor',
@@ -57207,7 +57185,6 @@ export class UpdateLoadBalancerShrinkRequest extends $dara.Model {
57207
57185
  regionPools: 'RegionPools',
57208
57186
  rulesShrink: 'Rules',
57209
57187
  sessionAffinity: 'SessionAffinity',
57210
- sessionAffinityAttributesShrink: 'SessionAffinityAttributes',
57211
57188
  siteId: 'SiteId',
57212
57189
  steeringPolicy: 'SteeringPolicy',
57213
57190
  subRegionPools: 'SubRegionPools',
@@ -57220,6 +57197,7 @@ export class UpdateLoadBalancerShrinkRequest extends $dara.Model {
57220
57197
  adaptiveRoutingShrink: 'string',
57221
57198
  defaultPoolsShrink: 'string',
57222
57199
  description: 'string',
57200
+ enabled: 'boolean',
57223
57201
  fallbackPool: 'number',
57224
57202
  id: 'number',
57225
57203
  monitorShrink: 'string',
@@ -57227,7 +57205,6 @@ export class UpdateLoadBalancerShrinkRequest extends $dara.Model {
57227
57205
  regionPools: 'any',
57228
57206
  rulesShrink: 'string',
57229
57207
  sessionAffinity: 'string',
57230
- sessionAffinityAttributesShrink: 'string',
57231
57208
  siteId: 'number',
57232
57209
  steeringPolicy: 'string',
57233
57210
  subRegionPools: 'any',
@@ -58080,10 +58057,158 @@ export class UpdateOriginRuleResponseBody extends $dara.Model {
58080
58057
  }
58081
58058
  }
58082
58059
 
58083
- export class UpdateOriginRuleResponse extends $dara.Model {
58060
+ export class UpdateOriginRuleResponse extends $dara.Model {
58061
+ headers?: { [key: string]: string };
58062
+ statusCode?: number;
58063
+ body?: UpdateOriginRuleResponseBody;
58064
+ static names(): { [key: string]: string } {
58065
+ return {
58066
+ headers: 'headers',
58067
+ statusCode: 'statusCode',
58068
+ body: 'body',
58069
+ };
58070
+ }
58071
+
58072
+ static types(): { [key: string]: any } {
58073
+ return {
58074
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
58075
+ statusCode: 'number',
58076
+ body: UpdateOriginRuleResponseBody,
58077
+ };
58078
+ }
58079
+
58080
+ validate() {
58081
+ if(this.headers) {
58082
+ $dara.Model.validateMap(this.headers);
58083
+ }
58084
+ if(this.body && typeof (this.body as any).validate === 'function') {
58085
+ (this.body as any).validate();
58086
+ }
58087
+ super.validate();
58088
+ }
58089
+
58090
+ constructor(map?: { [key: string]: any }) {
58091
+ super(map);
58092
+ }
58093
+ }
58094
+
58095
+ export class UpdatePageRequest extends $dara.Model {
58096
+ /**
58097
+ * @remarks
58098
+ * The Base64-encoded content of the error page. The content type is specified by the Content-Type field.
58099
+ *
58100
+ * This parameter is required.
58101
+ *
58102
+ * @example
58103
+ * PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4=
58104
+ */
58105
+ content?: string;
58106
+ /**
58107
+ * @remarks
58108
+ * The Content-Type field in the HTTP header. Valid values:
58109
+ *
58110
+ * * text/html
58111
+ * * application/json
58112
+ *
58113
+ * This parameter is required.
58114
+ *
58115
+ * @example
58116
+ * text/html
58117
+ */
58118
+ contentType?: string;
58119
+ /**
58120
+ * @remarks
58121
+ * The description of the custom error page.
58122
+ *
58123
+ * This parameter is required.
58124
+ *
58125
+ * @example
58126
+ * a custom deny page
58127
+ */
58128
+ description?: string;
58129
+ /**
58130
+ * @remarks
58131
+ * The ID of the custom error page, which can be obtained by calling the [ListPages](https://help.aliyun.com/document_detail/2850223.html) operation.
58132
+ *
58133
+ * This parameter is required.
58134
+ *
58135
+ * @example
58136
+ * 50000001
58137
+ */
58138
+ id?: number;
58139
+ /**
58140
+ * @remarks
58141
+ * The name of the custom error page.
58142
+ *
58143
+ * This parameter is required.
58144
+ *
58145
+ * @example
58146
+ * example
58147
+ */
58148
+ name?: string;
58149
+ static names(): { [key: string]: string } {
58150
+ return {
58151
+ content: 'Content',
58152
+ contentType: 'ContentType',
58153
+ description: 'Description',
58154
+ id: 'Id',
58155
+ name: 'Name',
58156
+ };
58157
+ }
58158
+
58159
+ static types(): { [key: string]: any } {
58160
+ return {
58161
+ content: 'string',
58162
+ contentType: 'string',
58163
+ description: 'string',
58164
+ id: 'number',
58165
+ name: 'string',
58166
+ };
58167
+ }
58168
+
58169
+ validate() {
58170
+ super.validate();
58171
+ }
58172
+
58173
+ constructor(map?: { [key: string]: any }) {
58174
+ super(map);
58175
+ }
58176
+ }
58177
+
58178
+ export class UpdatePageResponseBody extends $dara.Model {
58179
+ /**
58180
+ * @remarks
58181
+ * The request ID.
58182
+ *
58183
+ * @example
58184
+ * 36af3fcc-43d0-441c-86b1-428951dc8225
58185
+ */
58186
+ requestId?: string;
58187
+ static names(): { [key: string]: string } {
58188
+ return {
58189
+ requestId: 'RequestId',
58190
+ };
58191
+ }
58192
+
58193
+ static types(): { [key: string]: any } {
58194
+ return {
58195
+ requestId: 'string',
58196
+ };
58197
+ }
58198
+
58199
+ validate() {
58200
+ super.validate();
58201
+ }
58202
+
58203
+ constructor(map?: { [key: string]: any }) {
58204
+ super(map);
58205
+ }
58206
+ }
58207
+
58208
+ export class UpdatePageResponse extends $dara.Model {
58084
58209
  headers?: { [key: string]: string };
58085
58210
  statusCode?: number;
58086
- body?: UpdateOriginRuleResponseBody;
58211
+ body?: UpdatePageResponseBody;
58087
58212
  static names(): { [key: string]: string } {
58088
58213
  return {
58089
58214
  headers: 'headers',
@@ -58096,7 +58221,7 @@ export class UpdateOriginRuleResponse extends $dara.Model {
58096
58221
  return {
58097
58222
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
58098
58223
  statusCode: 'number',
58099
- body: UpdateOriginRuleResponseBody,
58224
+ body: UpdatePageResponseBody,
58100
58225
  };
58101
58226
  }
58102
58227
 
@@ -58115,77 +58240,52 @@ export class UpdateOriginRuleResponse extends $dara.Model {
58115
58240
  }
58116
58241
  }
58117
58242
 
58118
- export class UpdatePageRequest extends $dara.Model {
58243
+ export class UpdateRatePlanSpecRequest extends $dara.Model {
58244
+ autoPay?: boolean;
58119
58245
  /**
58120
- * @remarks
58121
- * The Base64-encoded content of the error page. The content type is specified by the Content-Type field.
58122
- *
58123
- * This parameter is required.
58124
- *
58125
58246
  * @example
58126
- * PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4=
58247
+ * PREPAY
58127
58248
  */
58128
- content?: string;
58249
+ chargeType?: string;
58129
58250
  /**
58130
- * @remarks
58131
- * The Content-Type field in the HTTP header. Valid values:
58132
- *
58133
- * * text/html
58134
- * * application/json
58135
- *
58136
- * This parameter is required.
58137
- *
58138
58251
  * @example
58139
- * text/html
58252
+ * xcdn-91fknmb80f0g
58140
58253
  */
58141
- contentType?: string;
58254
+ instanceId?: string;
58142
58255
  /**
58143
- * @remarks
58144
- * The description of the custom error page.
58145
- *
58146
- * This parameter is required.
58147
- *
58148
58256
  * @example
58149
- * a custom deny page
58257
+ * UPGRADE
58150
58258
  */
58151
- description?: string;
58259
+ orderType?: string;
58152
58260
  /**
58153
- * @remarks
58154
- * The ID of the custom error page, which can be obtained by calling the [ListPages](https://help.aliyun.com/document_detail/2850223.html) operation.
58155
- *
58156
- * This parameter is required.
58157
- *
58158
58261
  * @example
58159
- * 50000001
58262
+ * entranceplan
58160
58263
  */
58161
- id?: number;
58264
+ targetPlanCode?: string;
58162
58265
  /**
58163
- * @remarks
58164
- * The name of the custom error page.
58165
- *
58166
- * This parameter is required.
58167
- *
58168
58266
  * @example
58169
- * example
58267
+ * basic
58170
58268
  */
58171
- name?: string;
58269
+ targetPlanName?: string;
58172
58270
  static names(): { [key: string]: string } {
58173
58271
  return {
58174
- content: 'Content',
58175
- contentType: 'ContentType',
58176
- description: 'Description',
58177
- id: 'Id',
58178
- name: 'Name',
58272
+ autoPay: 'AutoPay',
58273
+ chargeType: 'ChargeType',
58274
+ instanceId: 'InstanceId',
58275
+ orderType: 'OrderType',
58276
+ targetPlanCode: 'TargetPlanCode',
58277
+ targetPlanName: 'TargetPlanName',
58179
58278
  };
58180
58279
  }
58181
58280
 
58182
58281
  static types(): { [key: string]: any } {
58183
58282
  return {
58184
- content: 'string',
58185
- contentType: 'string',
58186
- description: 'string',
58187
- id: 'number',
58188
- name: 'string',
58283
+ autoPay: 'boolean',
58284
+ chargeType: 'string',
58285
+ instanceId: 'string',
58286
+ orderType: 'string',
58287
+ targetPlanCode: 'string',
58288
+ targetPlanName: 'string',
58189
58289
  };
58190
58290
  }
58191
58291
 
@@ -58198,23 +58298,37 @@ export class UpdatePageRequest extends $dara.Model {
58198
58298
  }
58199
58299
  }
58200
58300
 
58201
- export class UpdatePageResponseBody extends $dara.Model {
58301
+ export class UpdateRatePlanSpecResponseBody extends $dara.Model {
58302
+ /**
58303
+ * @example
58304
+ * xcdn-as23ds***
58305
+ */
58306
+ instanceId?: string;
58307
+ /**
58308
+ * @example
58309
+ * 2223332122***
58310
+ */
58311
+ orderId?: string;
58202
58312
  /**
58203
58313
  * @remarks
58204
- * The request ID.
58314
+ * Id of the request
58205
58315
  *
58206
58316
  * @example
58207
- * 36af3fcc-43d0-441c-86b1-428951dc8225
58317
+ * 30423A7F-A83D-1E24-B80E-86DD25790758
58208
58318
  */
58209
58319
  requestId?: string;
58210
58320
  static names(): { [key: string]: string } {
58211
58321
  return {
58322
+ instanceId: 'InstanceId',
58323
+ orderId: 'OrderId',
58212
58324
  requestId: 'RequestId',
58213
58325
  };
58214
58326
  }
58215
58327
 
58216
58328
  static types(): { [key: string]: any } {
58217
58329
  return {
58330
+ instanceId: 'string',
58331
+ orderId: 'string',
58218
58332
  requestId: 'string',
58219
58333
  };
58220
58334
  }
@@ -58228,10 +58342,10 @@ export class UpdatePageResponseBody extends $dara.Model {
58228
58342
  }
58229
58343
  }
58230
58344
 
58231
- export class UpdatePageResponse extends $dara.Model {
58345
+ export class UpdateRatePlanSpecResponse extends $dara.Model {
58232
58346
  headers?: { [key: string]: string };
58233
58347
  statusCode?: number;
58234
- body?: UpdatePageResponseBody;
58348
+ body?: UpdateRatePlanSpecResponseBody;
58235
58349
  static names(): { [key: string]: string } {
58236
58350
  return {
58237
58351
  headers: 'headers',
@@ -58244,7 +58358,7 @@ export class UpdatePageResponse extends $dara.Model {
58244
58358
  return {
58245
58359
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
58246
58360
  statusCode: 'number',
58247
- body: UpdatePageResponseBody,
58361
+ body: UpdateRatePlanSpecResponseBody,
58248
58362
  };
58249
58363
  }
58250
58364
 
@@ -64308,10 +64422,6 @@ export default class Client extends OpenApi {
64308
64422
  request.rulesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.rules, "Rules", "json");
64309
64423
  }
64310
64424
 
64311
- if (!$dara.isNull(tmpReq.sessionAffinityAttributes)) {
64312
- request.sessionAffinityAttributesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sessionAffinityAttributes, "SessionAffinityAttributes", "json");
64313
- }
64314
-
64315
64425
  let query = { };
64316
64426
  if (!$dara.isNull(request.adaptiveRoutingShrink)) {
64317
64427
  query["AdaptiveRouting"] = request.adaptiveRoutingShrink;
@@ -64325,6 +64435,10 @@ export default class Client extends OpenApi {
64325
64435
  query["Description"] = request.description;
64326
64436
  }
64327
64437
 
64438
+ if (!$dara.isNull(request.enabled)) {
64439
+ query["Enabled"] = request.enabled;
64440
+ }
64441
+
64328
64442
  if (!$dara.isNull(request.fallbackPool)) {
64329
64443
  query["FallbackPool"] = request.fallbackPool;
64330
64444
  }
@@ -64353,10 +64467,6 @@ export default class Client extends OpenApi {
64353
64467
  query["SessionAffinity"] = request.sessionAffinity;
64354
64468
  }
64355
64469
 
64356
- if (!$dara.isNull(request.sessionAffinityAttributesShrink)) {
64357
- query["SessionAffinityAttributes"] = request.sessionAffinityAttributesShrink;
64358
- }
64359
-
64360
64470
  if (!$dara.isNull(request.siteId)) {
64361
64471
  query["SiteId"] = request.siteId;
64362
64472
  }
@@ -68431,6 +68541,53 @@ export default class Client extends OpenApi {
68431
68541
  return await this.describePurgeTasksWithOptions(request, runtime);
68432
68542
  }
68433
68543
 
68544
+ /**
68545
+ * 查询套餐实例状态
68546
+ *
68547
+ * @param request - DescribeRatePlanInstanceStatusRequest
68548
+ * @param runtime - runtime options for this request RuntimeOptions
68549
+ * @returns DescribeRatePlanInstanceStatusResponse
68550
+ */
68551
+ async describeRatePlanInstanceStatusWithOptions(request: DescribeRatePlanInstanceStatusRequest, runtime: $dara.RuntimeOptions): Promise<DescribeRatePlanInstanceStatusResponse> {
68552
+ request.validate();
68553
+ let query = { };
68554
+ if (!$dara.isNull(request.instanceId)) {
68555
+ query["InstanceId"] = request.instanceId;
68556
+ }
68557
+
68558
+ let req = new $OpenApiUtil.OpenApiRequest({
68559
+ query: OpenApiUtil.query(query),
68560
+ });
68561
+ let params = new $OpenApiUtil.Params({
68562
+ action: "DescribeRatePlanInstanceStatus",
68563
+ version: "2024-09-10",
68564
+ protocol: "HTTPS",
68565
+ pathname: "/",
68566
+ method: "POST",
68567
+ authType: "AK",
68568
+ style: "RPC",
68569
+ reqBodyType: "formData",
68570
+ bodyType: "json",
68571
+ });
68572
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
68573
+ return $dara.cast<DescribeRatePlanInstanceStatusResponse>(await this.callApi(params, req, runtime), new DescribeRatePlanInstanceStatusResponse({}));
68574
+ } else {
68575
+ return $dara.cast<DescribeRatePlanInstanceStatusResponse>(await this.execute(params, req, runtime), new DescribeRatePlanInstanceStatusResponse({}));
68576
+ }
68577
+
68578
+ }
68579
+
68580
+ /**
68581
+ * 查询套餐实例状态
68582
+ *
68583
+ * @param request - DescribeRatePlanInstanceStatusRequest
68584
+ * @returns DescribeRatePlanInstanceStatusResponse
68585
+ */
68586
+ async describeRatePlanInstanceStatus(request: DescribeRatePlanInstanceStatusRequest): Promise<DescribeRatePlanInstanceStatusResponse> {
68587
+ let runtime = new $dara.RuntimeOptions({ });
68588
+ return await this.describeRatePlanInstanceStatusWithOptions(request, runtime);
68589
+ }
68590
+
68434
68591
  /**
68435
68592
  * Disables a scenario-specific policy.
68436
68593
  *
@@ -73917,6 +74074,85 @@ export default class Client extends OpenApi {
73917
74074
  return await this.publishRoutineCodeVersionWithOptions(request, runtime);
73918
74075
  }
73919
74076
 
74077
+ /**
74078
+ * 新购套餐
74079
+ *
74080
+ * @param request - PurchaseRatePlanRequest
74081
+ * @param runtime - runtime options for this request RuntimeOptions
74082
+ * @returns PurchaseRatePlanResponse
74083
+ */
74084
+ async purchaseRatePlanWithOptions(request: PurchaseRatePlanRequest, runtime: $dara.RuntimeOptions): Promise<PurchaseRatePlanResponse> {
74085
+ request.validate();
74086
+ let query = { };
74087
+ if (!$dara.isNull(request.autoPay)) {
74088
+ query["AutoPay"] = request.autoPay;
74089
+ }
74090
+
74091
+ if (!$dara.isNull(request.autoRenew)) {
74092
+ query["AutoRenew"] = request.autoRenew;
74093
+ }
74094
+
74095
+ if (!$dara.isNull(request.chargeType)) {
74096
+ query["ChargeType"] = request.chargeType;
74097
+ }
74098
+
74099
+ if (!$dara.isNull(request.coverage)) {
74100
+ query["Coverage"] = request.coverage;
74101
+ }
74102
+
74103
+ if (!$dara.isNull(request.period)) {
74104
+ query["Period"] = request.period;
74105
+ }
74106
+
74107
+ if (!$dara.isNull(request.planCode)) {
74108
+ query["PlanCode"] = request.planCode;
74109
+ }
74110
+
74111
+ if (!$dara.isNull(request.planName)) {
74112
+ query["PlanName"] = request.planName;
74113
+ }
74114
+
74115
+ if (!$dara.isNull(request.siteName)) {
74116
+ query["SiteName"] = request.siteName;
74117
+ }
74118
+
74119
+ if (!$dara.isNull(request.type)) {
74120
+ query["Type"] = request.type;
74121
+ }
74122
+
74123
+ let req = new $OpenApiUtil.OpenApiRequest({
74124
+ query: OpenApiUtil.query(query),
74125
+ });
74126
+ let params = new $OpenApiUtil.Params({
74127
+ action: "PurchaseRatePlan",
74128
+ version: "2024-09-10",
74129
+ protocol: "HTTPS",
74130
+ pathname: "/",
74131
+ method: "POST",
74132
+ authType: "AK",
74133
+ style: "RPC",
74134
+ reqBodyType: "formData",
74135
+ bodyType: "json",
74136
+ });
74137
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
74138
+ return $dara.cast<PurchaseRatePlanResponse>(await this.callApi(params, req, runtime), new PurchaseRatePlanResponse({}));
74139
+ } else {
74140
+ return $dara.cast<PurchaseRatePlanResponse>(await this.execute(params, req, runtime), new PurchaseRatePlanResponse({}));
74141
+ }
74142
+
74143
+ }
74144
+
74145
+ /**
74146
+ * 新购套餐
74147
+ *
74148
+ * @param request - PurchaseRatePlanRequest
74149
+ * @returns PurchaseRatePlanResponse
74150
+ */
74151
+ async purchaseRatePlan(request: PurchaseRatePlanRequest): Promise<PurchaseRatePlanResponse> {
74152
+ let runtime = new $dara.RuntimeOptions({ });
74153
+ return await this.purchaseRatePlanWithOptions(request, runtime);
74154
+ }
74155
+
73920
74156
  /**
73921
74157
  * Purges resources cached on points of presence (POPs). You can purge the cache by file URL, directory, cache tag, hostname, or URL with specified parameters ignored, or purge all the cache.
73922
74158
  *
@@ -74506,10 +74742,6 @@ export default class Client extends OpenApi {
74506
74742
  body["Type"] = request.type;
74507
74743
  }
74508
74744
 
74509
- if (!$dara.isNull(request.update)) {
74510
- body["Update"] = request.update;
74511
- }
74512
-
74513
74745
  let req = new $OpenApiUtil.OpenApiRequest({
74514
74746
  query: OpenApiUtil.query(query),
74515
74747
  body: OpenApiUtil.parseToMap(body),
@@ -75794,57 +76026,6 @@ export default class Client extends OpenApi {
75794
76026
  return await this.updateImageTransformWithOptions(request, runtime);
75795
76027
  }
75796
76028
 
75797
- /**
75798
- * Updates the name of a namespace in Edge KV.
75799
- *
75800
- * @param request - UpdateKvNamespaceRequest
75801
- * @param runtime - runtime options for this request RuntimeOptions
75802
- * @returns UpdateKvNamespaceResponse
75803
- */
75804
- async updateKvNamespaceWithOptions(request: UpdateKvNamespaceRequest, runtime: $dara.RuntimeOptions): Promise<UpdateKvNamespaceResponse> {
75805
- request.validate();
75806
- let query = { };
75807
- if (!$dara.isNull(request.namespace)) {
75808
- query["Namespace"] = request.namespace;
75809
- }
75810
-
75811
- if (!$dara.isNull(request.title)) {
75812
- query["Title"] = request.title;
75813
- }
75814
-
75815
- let req = new $OpenApiUtil.OpenApiRequest({
75816
- query: OpenApiUtil.query(query),
75817
- });
75818
- let params = new $OpenApiUtil.Params({
75819
- action: "UpdateKvNamespace",
75820
- version: "2024-09-10",
75821
- protocol: "HTTPS",
75822
- pathname: "/",
75823
- method: "POST",
75824
- authType: "AK",
75825
- style: "RPC",
75826
- reqBodyType: "formData",
75827
- bodyType: "json",
75828
- });
75829
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
75830
- return $dara.cast<UpdateKvNamespaceResponse>(await this.callApi(params, req, runtime), new UpdateKvNamespaceResponse({}));
75831
- } else {
75832
- return $dara.cast<UpdateKvNamespaceResponse>(await this.execute(params, req, runtime), new UpdateKvNamespaceResponse({}));
75833
- }
75834
-
75835
- }
75836
-
75837
- /**
75838
- * Updates the name of a namespace in Edge KV.
75839
- *
75840
- * @param request - UpdateKvNamespaceRequest
75841
- * @returns UpdateKvNamespaceResponse
75842
- */
75843
- async updateKvNamespace(request: UpdateKvNamespaceRequest): Promise<UpdateKvNamespaceResponse> {
75844
- let runtime = new $dara.RuntimeOptions({ });
75845
- return await this.updateKvNamespaceWithOptions(request, runtime);
75846
- }
75847
-
75848
76029
  /**
75849
76030
  * Updates a custom list.
75850
76031
  *
@@ -75941,10 +76122,6 @@ export default class Client extends OpenApi {
75941
76122
  request.rulesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.rules, "Rules", "json");
75942
76123
  }
75943
76124
 
75944
- if (!$dara.isNull(tmpReq.sessionAffinityAttributes)) {
75945
- request.sessionAffinityAttributesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sessionAffinityAttributes, "SessionAffinityAttributes", "json");
75946
- }
75947
-
75948
76125
  let query = { };
75949
76126
  if (!$dara.isNull(request.adaptiveRoutingShrink)) {
75950
76127
  query["AdaptiveRouting"] = request.adaptiveRoutingShrink;
@@ -75958,6 +76135,10 @@ export default class Client extends OpenApi {
75958
76135
  query["Description"] = request.description;
75959
76136
  }
75960
76137
 
76138
+ if (!$dara.isNull(request.enabled)) {
76139
+ query["Enabled"] = request.enabled;
76140
+ }
76141
+
75961
76142
  if (!$dara.isNull(request.fallbackPool)) {
75962
76143
  query["FallbackPool"] = request.fallbackPool;
75963
76144
  }
@@ -75986,10 +76167,6 @@ export default class Client extends OpenApi {
75986
76167
  query["SessionAffinity"] = request.sessionAffinity;
75987
76168
  }
75988
76169
 
75989
- if (!$dara.isNull(request.sessionAffinityAttributesShrink)) {
75990
- query["SessionAffinityAttributes"] = request.sessionAffinityAttributesShrink;
75991
- }
75992
-
75993
76170
  if (!$dara.isNull(request.siteId)) {
75994
76171
  query["SiteId"] = request.siteId;
75995
76172
  }
@@ -76498,6 +76675,73 @@ export default class Client extends OpenApi {
76498
76675
  return await this.updatePageWithOptions(request, runtime);
76499
76676
  }
76500
76677
 
76678
+ /**
76679
+ * 套餐变配
76680
+ *
76681
+ * @param request - UpdateRatePlanSpecRequest
76682
+ * @param runtime - runtime options for this request RuntimeOptions
76683
+ * @returns UpdateRatePlanSpecResponse
76684
+ */
76685
+ async updateRatePlanSpecWithOptions(request: UpdateRatePlanSpecRequest, runtime: $dara.RuntimeOptions): Promise<UpdateRatePlanSpecResponse> {
76686
+ request.validate();
76687
+ let query = { };
76688
+ if (!$dara.isNull(request.autoPay)) {
76689
+ query["AutoPay"] = request.autoPay;
76690
+ }
76691
+
76692
+ if (!$dara.isNull(request.chargeType)) {
76693
+ query["ChargeType"] = request.chargeType;
76694
+ }
76695
+
76696
+ if (!$dara.isNull(request.instanceId)) {
76697
+ query["InstanceId"] = request.instanceId;
76698
+ }
76699
+
76700
+ if (!$dara.isNull(request.orderType)) {
76701
+ query["OrderType"] = request.orderType;
76702
+ }
76703
+
76704
+ if (!$dara.isNull(request.targetPlanCode)) {
76705
+ query["TargetPlanCode"] = request.targetPlanCode;
76706
+ }
76707
+
76708
+ if (!$dara.isNull(request.targetPlanName)) {
76709
+ query["TargetPlanName"] = request.targetPlanName;
76710
+ }
76711
+
76712
+ let req = new $OpenApiUtil.OpenApiRequest({
76713
+ query: OpenApiUtil.query(query),
76714
+ });
76715
+ let params = new $OpenApiUtil.Params({
76716
+ action: "UpdateRatePlanSpec",
76717
+ version: "2024-09-10",
76718
+ protocol: "HTTPS",
76719
+ pathname: "/",
76720
+ method: "POST",
76721
+ authType: "AK",
76722
+ style: "RPC",
76723
+ reqBodyType: "formData",
76724
+ bodyType: "json",
76725
+ });
76726
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
76727
+ return $dara.cast<UpdateRatePlanSpecResponse>(await this.callApi(params, req, runtime), new UpdateRatePlanSpecResponse({}));
76728
+ } else {
76729
+ return $dara.cast<UpdateRatePlanSpecResponse>(await this.execute(params, req, runtime), new UpdateRatePlanSpecResponse({}));
76730
+ }
76731
+
76732
+ }
76733
+
76734
+ /**
76735
+ * 套餐变配
76736
+ *
76737
+ * @param request - UpdateRatePlanSpecRequest
76738
+ * @returns UpdateRatePlanSpecResponse
76739
+ */
76740
+ async updateRatePlanSpec(request: UpdateRatePlanSpecRequest): Promise<UpdateRatePlanSpecResponse> {
76741
+ let runtime = new $dara.RuntimeOptions({ });
76742
+ return await this.updateRatePlanSpecWithOptions(request, runtime);
76743
+ }
76744
+
76501
76745
  /**
76502
76746
  * Updates multiple types of DNS records and origin authentication configurations.
76503
76747
  *