tencentcloud-sdk-python 3.0.1474__py2.py3-none-any.whl → 3.0.1477__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/autoscaling/v20180419/models.py +2 -2
- tencentcloud/cdb/v20170320/models.py +143 -18
- tencentcloud/cdn/v20180606/models.py +12 -2
- tencentcloud/cdwdoris/v20211228/models.py +15 -0
- tencentcloud/ckafka/v20190819/models.py +45 -0
- tencentcloud/cloudapp/v20220530/models.py +75 -0
- tencentcloud/cloudhsm/v20191112/models.py +15 -15
- tencentcloud/cls/v20201016/cls_client.py +4 -4
- tencentcloud/cls/v20201016/models.py +79 -58
- tencentcloud/ctem/v20231128/models.py +45 -0
- tencentcloud/dbbrain/v20191016/models.py +19 -2
- tencentcloud/dbbrain/v20210527/models.py +33 -12
- tencentcloud/dc/v20180410/models.py +150 -0
- tencentcloud/dlc/v20210125/errorcodes.py +6 -3
- tencentcloud/dts/v20211206/dts_client.py +1 -1
- tencentcloud/dts/v20211206/models.py +33 -10
- tencentcloud/emr/v20190103/models.py +15 -0
- tencentcloud/es/v20250101/es_client.py +24 -1
- tencentcloud/es/v20250101/models.py +261 -2
- tencentcloud/ess/v20201111/ess_client.py +120 -0
- tencentcloud/ess/v20201111/models.py +1215 -10
- tencentcloud/essbasic/v20210526/models.py +19 -4
- tencentcloud/gwlb/v20240906/gwlb_client.py +23 -0
- tencentcloud/gwlb/v20240906/models.py +150 -0
- tencentcloud/hunyuan/v20230901/models.py +16 -4
- tencentcloud/ioa/v20220601/errorcodes.py +3 -0
- tencentcloud/ioa/v20220601/ioa_client.py +92 -0
- tencentcloud/ioa/v20220601/models.py +1114 -71
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +92 -0
- tencentcloud/iotexplorer/v20190423/models.py +2022 -116
- tencentcloud/lcic/v20220817/models.py +2 -2
- tencentcloud/lighthouse/v20200324/models.py +14 -0
- tencentcloud/lke/v20231130/models.py +2 -2
- tencentcloud/lkeap/v20240522/errorcodes.py +7 -7
- tencentcloud/lkeap/v20240522/models.py +2 -2
- tencentcloud/monitor/v20180724/models.py +480 -0
- tencentcloud/monitor/v20180724/monitor_client.py +23 -0
- tencentcloud/mps/v20190612/models.py +815 -2
- tencentcloud/mqtt/v20240516/models.py +15 -0
- tencentcloud/nlp/v20190408/nlp_client.py +9 -3
- tencentcloud/oceanus/v20190422/errorcodes.py +9 -0
- tencentcloud/oceanus/v20190422/models.py +250 -2
- tencentcloud/oceanus/v20190422/oceanus_client.py +46 -0
- tencentcloud/ocr/v20181119/models.py +20 -0
- tencentcloud/ocr/v20181119/ocr_client.py +3 -3
- tencentcloud/postgres/v20170312/models.py +14 -14
- tencentcloud/postgres/v20170312/postgres_client.py +2 -2
- tencentcloud/privatedns/v20201028/errorcodes.py +36 -0
- tencentcloud/privatedns/v20201028/models.py +1699 -86
- tencentcloud/privatedns/v20201028/privatedns_client.py +253 -0
- tencentcloud/redis/v20180412/models.py +2 -2
- tencentcloud/teo/v20220901/errorcodes.py +1 -1
- tencentcloud/teo/v20220901/models.py +422 -123
- tencentcloud/teo/v20220901/teo_client.py +2 -2
- tencentcloud/tke/v20180525/models.py +55 -26
- tencentcloud/trtc/v20190722/models.py +15 -15
- tencentcloud/tse/v20201207/models.py +50 -0
- tencentcloud/vpc/v20170312/models.py +408 -2
- tencentcloud/vpc/v20170312/vpc_client.py +92 -0
- tencentcloud/wedata/v20210820/errorcodes.py +3 -0
- tencentcloud/wedata/v20210820/models.py +1240 -81
- tencentcloud/wedata/v20210820/wedata_client.py +1 -1
- tencentcloud/wedata/v20250806/errorcodes.py +18 -0
- tencentcloud/wedata/v20250806/models.py +20670 -9356
- tencentcloud/wedata/v20250806/wedata_client.py +982 -16
- {tencentcloud_sdk_python-3.0.1474.dist-info → tencentcloud_sdk_python-3.0.1477.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1474.dist-info → tencentcloud_sdk_python-3.0.1477.dist-info}/RECORD +71 -71
- {tencentcloud_sdk_python-3.0.1474.dist-info → tencentcloud_sdk_python-3.0.1477.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1474.dist-info → tencentcloud_sdk_python-3.0.1477.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1474.dist-info → tencentcloud_sdk_python-3.0.1477.dist-info}/top_level.txt +0 -0
|
@@ -331,59 +331,61 @@ class AccelerationDomain(AbstractModel):
|
|
|
331
331
|
<li>process:部署中;</li>
|
|
332
332
|
<li>offline:已停用;</li>
|
|
333
333
|
<li>forbidden:已封禁;</li>
|
|
334
|
-
<li>init
|
|
334
|
+
<li>init:未生效,待激活站点。</li>
|
|
335
335
|
:type DomainStatus: str
|
|
336
|
+
:param _Cname: CNAME 地址。
|
|
337
|
+
:type Cname: str
|
|
338
|
+
:param _IPv6Status: IPv6 状态,取值有:
|
|
339
|
+
<li>follow:遵循站点IPv6配置;</li>
|
|
340
|
+
<li>on:开启状态;</li>
|
|
341
|
+
<li>off:关闭状态。</li>
|
|
342
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
343
|
+
:type IPv6Status: str
|
|
344
|
+
:param _IdentificationStatus: 加速域名归属权验证状态,取值有:
|
|
345
|
+
<li>pending:待验证;</li>
|
|
346
|
+
<li>finished:已完成验证。</li>
|
|
347
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
348
|
+
:type IdentificationStatus: str
|
|
349
|
+
:param _OwnershipVerification: 加速域名需进行归属权验证才能继续提供服务时,该对象会携带对应验证方式所需要的信息。
|
|
350
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
351
|
+
:type OwnershipVerification: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
336
352
|
:param _OriginDetail: 源站信息。
|
|
337
353
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
338
354
|
:type OriginDetail: :class:`tencentcloud.teo.v20220901.models.OriginDetail`
|
|
339
355
|
:param _OriginProtocol: 回源协议,取值有:
|
|
340
|
-
<li>FOLLOW
|
|
341
|
-
<li>HTTP
|
|
342
|
-
<li>HTTPS
|
|
356
|
+
<li>FOLLOW:协议跟随;</li>
|
|
357
|
+
<li>HTTP:HTTP协议回源;</li>
|
|
358
|
+
<li>HTTPS:HTTPS协议回源。</li>
|
|
343
359
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
344
360
|
:type OriginProtocol: str
|
|
345
|
-
:param
|
|
346
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
347
|
-
:type Certificate: :class:`tencentcloud.teo.v20220901.models.AccelerationDomainCertificate`
|
|
348
|
-
:param _HttpOriginPort: HTTP回源端口。
|
|
361
|
+
:param _HttpOriginPort: HTTP 回源端口。
|
|
349
362
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
350
363
|
:type HttpOriginPort: int
|
|
351
|
-
:param _HttpsOriginPort: HTTPS回源端口。
|
|
364
|
+
:param _HttpsOriginPort: HTTPS 回源端口。
|
|
352
365
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
353
366
|
:type HttpsOriginPort: int
|
|
354
|
-
:param
|
|
355
|
-
<li>follow:遵循站点IPv6配置;</li>
|
|
356
|
-
<li>on:开启状态;</li>
|
|
357
|
-
<li>off:关闭状态。</li>
|
|
367
|
+
:param _Certificate: 加速域名证书信息。
|
|
358
368
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
359
|
-
:type
|
|
360
|
-
:param _Cname: CNAME 地址。
|
|
361
|
-
:type Cname: str
|
|
362
|
-
:param _IdentificationStatus: 加速域名归属权验证状态,取值有: <li>pending:待验证;</li> <li>finished:已完成验证。</li>
|
|
363
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
364
|
-
:type IdentificationStatus: str
|
|
369
|
+
:type Certificate: :class:`tencentcloud.teo.v20220901.models.AccelerationDomainCertificate`
|
|
365
370
|
:param _CreatedOn: 创建时间。
|
|
366
371
|
:type CreatedOn: str
|
|
367
372
|
:param _ModifiedOn: 修改时间。
|
|
368
373
|
:type ModifiedOn: str
|
|
369
|
-
:param _OwnershipVerification: 当域名需要进行归属权验证才能继续提供服务时,该对象会携带对应验证方式所需要的信息。
|
|
370
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
371
|
-
:type OwnershipVerification: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
372
374
|
"""
|
|
373
375
|
self._ZoneId = None
|
|
374
376
|
self._DomainName = None
|
|
375
377
|
self._DomainStatus = None
|
|
378
|
+
self._Cname = None
|
|
379
|
+
self._IPv6Status = None
|
|
380
|
+
self._IdentificationStatus = None
|
|
381
|
+
self._OwnershipVerification = None
|
|
376
382
|
self._OriginDetail = None
|
|
377
383
|
self._OriginProtocol = None
|
|
378
|
-
self._Certificate = None
|
|
379
384
|
self._HttpOriginPort = None
|
|
380
385
|
self._HttpsOriginPort = None
|
|
381
|
-
self.
|
|
382
|
-
self._Cname = None
|
|
383
|
-
self._IdentificationStatus = None
|
|
386
|
+
self._Certificate = None
|
|
384
387
|
self._CreatedOn = None
|
|
385
388
|
self._ModifiedOn = None
|
|
386
|
-
self._OwnershipVerification = None
|
|
387
389
|
|
|
388
390
|
@property
|
|
389
391
|
def ZoneId(self):
|
|
@@ -414,7 +416,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
414
416
|
<li>process:部署中;</li>
|
|
415
417
|
<li>offline:已停用;</li>
|
|
416
418
|
<li>forbidden:已封禁;</li>
|
|
417
|
-
<li>init
|
|
419
|
+
<li>init:未生效,待激活站点。</li>
|
|
418
420
|
:rtype: str
|
|
419
421
|
"""
|
|
420
422
|
return self._DomainStatus
|
|
@@ -423,6 +425,58 @@ class AccelerationDomain(AbstractModel):
|
|
|
423
425
|
def DomainStatus(self, DomainStatus):
|
|
424
426
|
self._DomainStatus = DomainStatus
|
|
425
427
|
|
|
428
|
+
@property
|
|
429
|
+
def Cname(self):
|
|
430
|
+
r"""CNAME 地址。
|
|
431
|
+
:rtype: str
|
|
432
|
+
"""
|
|
433
|
+
return self._Cname
|
|
434
|
+
|
|
435
|
+
@Cname.setter
|
|
436
|
+
def Cname(self, Cname):
|
|
437
|
+
self._Cname = Cname
|
|
438
|
+
|
|
439
|
+
@property
|
|
440
|
+
def IPv6Status(self):
|
|
441
|
+
r"""IPv6 状态,取值有:
|
|
442
|
+
<li>follow:遵循站点IPv6配置;</li>
|
|
443
|
+
<li>on:开启状态;</li>
|
|
444
|
+
<li>off:关闭状态。</li>
|
|
445
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
446
|
+
:rtype: str
|
|
447
|
+
"""
|
|
448
|
+
return self._IPv6Status
|
|
449
|
+
|
|
450
|
+
@IPv6Status.setter
|
|
451
|
+
def IPv6Status(self, IPv6Status):
|
|
452
|
+
self._IPv6Status = IPv6Status
|
|
453
|
+
|
|
454
|
+
@property
|
|
455
|
+
def IdentificationStatus(self):
|
|
456
|
+
r"""加速域名归属权验证状态,取值有:
|
|
457
|
+
<li>pending:待验证;</li>
|
|
458
|
+
<li>finished:已完成验证。</li>
|
|
459
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
460
|
+
:rtype: str
|
|
461
|
+
"""
|
|
462
|
+
return self._IdentificationStatus
|
|
463
|
+
|
|
464
|
+
@IdentificationStatus.setter
|
|
465
|
+
def IdentificationStatus(self, IdentificationStatus):
|
|
466
|
+
self._IdentificationStatus = IdentificationStatus
|
|
467
|
+
|
|
468
|
+
@property
|
|
469
|
+
def OwnershipVerification(self):
|
|
470
|
+
r"""加速域名需进行归属权验证才能继续提供服务时,该对象会携带对应验证方式所需要的信息。
|
|
471
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
472
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
473
|
+
"""
|
|
474
|
+
return self._OwnershipVerification
|
|
475
|
+
|
|
476
|
+
@OwnershipVerification.setter
|
|
477
|
+
def OwnershipVerification(self, OwnershipVerification):
|
|
478
|
+
self._OwnershipVerification = OwnershipVerification
|
|
479
|
+
|
|
426
480
|
@property
|
|
427
481
|
def OriginDetail(self):
|
|
428
482
|
r"""源站信息。
|
|
@@ -438,9 +492,9 @@ class AccelerationDomain(AbstractModel):
|
|
|
438
492
|
@property
|
|
439
493
|
def OriginProtocol(self):
|
|
440
494
|
r"""回源协议,取值有:
|
|
441
|
-
<li>FOLLOW
|
|
442
|
-
<li>HTTP
|
|
443
|
-
<li>HTTPS
|
|
495
|
+
<li>FOLLOW:协议跟随;</li>
|
|
496
|
+
<li>HTTP:HTTP协议回源;</li>
|
|
497
|
+
<li>HTTPS:HTTPS协议回源。</li>
|
|
444
498
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
445
499
|
:rtype: str
|
|
446
500
|
"""
|
|
@@ -450,21 +504,9 @@ class AccelerationDomain(AbstractModel):
|
|
|
450
504
|
def OriginProtocol(self, OriginProtocol):
|
|
451
505
|
self._OriginProtocol = OriginProtocol
|
|
452
506
|
|
|
453
|
-
@property
|
|
454
|
-
def Certificate(self):
|
|
455
|
-
r"""域名证书信息
|
|
456
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
457
|
-
:rtype: :class:`tencentcloud.teo.v20220901.models.AccelerationDomainCertificate`
|
|
458
|
-
"""
|
|
459
|
-
return self._Certificate
|
|
460
|
-
|
|
461
|
-
@Certificate.setter
|
|
462
|
-
def Certificate(self, Certificate):
|
|
463
|
-
self._Certificate = Certificate
|
|
464
|
-
|
|
465
507
|
@property
|
|
466
508
|
def HttpOriginPort(self):
|
|
467
|
-
r"""HTTP回源端口。
|
|
509
|
+
r"""HTTP 回源端口。
|
|
468
510
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
469
511
|
:rtype: int
|
|
470
512
|
"""
|
|
@@ -476,7 +518,7 @@ class AccelerationDomain(AbstractModel):
|
|
|
476
518
|
|
|
477
519
|
@property
|
|
478
520
|
def HttpsOriginPort(self):
|
|
479
|
-
r"""HTTPS回源端口。
|
|
521
|
+
r"""HTTPS 回源端口。
|
|
480
522
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
481
523
|
:rtype: int
|
|
482
524
|
"""
|
|
@@ -487,42 +529,16 @@ class AccelerationDomain(AbstractModel):
|
|
|
487
529
|
self._HttpsOriginPort = HttpsOriginPort
|
|
488
530
|
|
|
489
531
|
@property
|
|
490
|
-
def
|
|
491
|
-
r"""
|
|
492
|
-
<li>follow:遵循站点IPv6配置;</li>
|
|
493
|
-
<li>on:开启状态;</li>
|
|
494
|
-
<li>off:关闭状态。</li>
|
|
495
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
496
|
-
:rtype: str
|
|
497
|
-
"""
|
|
498
|
-
return self._IPv6Status
|
|
499
|
-
|
|
500
|
-
@IPv6Status.setter
|
|
501
|
-
def IPv6Status(self, IPv6Status):
|
|
502
|
-
self._IPv6Status = IPv6Status
|
|
503
|
-
|
|
504
|
-
@property
|
|
505
|
-
def Cname(self):
|
|
506
|
-
r"""CNAME 地址。
|
|
507
|
-
:rtype: str
|
|
508
|
-
"""
|
|
509
|
-
return self._Cname
|
|
510
|
-
|
|
511
|
-
@Cname.setter
|
|
512
|
-
def Cname(self, Cname):
|
|
513
|
-
self._Cname = Cname
|
|
514
|
-
|
|
515
|
-
@property
|
|
516
|
-
def IdentificationStatus(self):
|
|
517
|
-
r"""加速域名归属权验证状态,取值有: <li>pending:待验证;</li> <li>finished:已完成验证。</li>
|
|
532
|
+
def Certificate(self):
|
|
533
|
+
r"""加速域名证书信息。
|
|
518
534
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
519
|
-
:rtype:
|
|
535
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.AccelerationDomainCertificate`
|
|
520
536
|
"""
|
|
521
|
-
return self.
|
|
537
|
+
return self._Certificate
|
|
522
538
|
|
|
523
|
-
@
|
|
524
|
-
def
|
|
525
|
-
self.
|
|
539
|
+
@Certificate.setter
|
|
540
|
+
def Certificate(self, Certificate):
|
|
541
|
+
self._Certificate = Certificate
|
|
526
542
|
|
|
527
543
|
@property
|
|
528
544
|
def CreatedOn(self):
|
|
@@ -546,40 +562,28 @@ class AccelerationDomain(AbstractModel):
|
|
|
546
562
|
def ModifiedOn(self, ModifiedOn):
|
|
547
563
|
self._ModifiedOn = ModifiedOn
|
|
548
564
|
|
|
549
|
-
@property
|
|
550
|
-
def OwnershipVerification(self):
|
|
551
|
-
r"""当域名需要进行归属权验证才能继续提供服务时,该对象会携带对应验证方式所需要的信息。
|
|
552
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
553
|
-
:rtype: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
554
|
-
"""
|
|
555
|
-
return self._OwnershipVerification
|
|
556
|
-
|
|
557
|
-
@OwnershipVerification.setter
|
|
558
|
-
def OwnershipVerification(self, OwnershipVerification):
|
|
559
|
-
self._OwnershipVerification = OwnershipVerification
|
|
560
|
-
|
|
561
565
|
|
|
562
566
|
def _deserialize(self, params):
|
|
563
567
|
self._ZoneId = params.get("ZoneId")
|
|
564
568
|
self._DomainName = params.get("DomainName")
|
|
565
569
|
self._DomainStatus = params.get("DomainStatus")
|
|
570
|
+
self._Cname = params.get("Cname")
|
|
571
|
+
self._IPv6Status = params.get("IPv6Status")
|
|
572
|
+
self._IdentificationStatus = params.get("IdentificationStatus")
|
|
573
|
+
if params.get("OwnershipVerification") is not None:
|
|
574
|
+
self._OwnershipVerification = OwnershipVerification()
|
|
575
|
+
self._OwnershipVerification._deserialize(params.get("OwnershipVerification"))
|
|
566
576
|
if params.get("OriginDetail") is not None:
|
|
567
577
|
self._OriginDetail = OriginDetail()
|
|
568
578
|
self._OriginDetail._deserialize(params.get("OriginDetail"))
|
|
569
579
|
self._OriginProtocol = params.get("OriginProtocol")
|
|
580
|
+
self._HttpOriginPort = params.get("HttpOriginPort")
|
|
581
|
+
self._HttpsOriginPort = params.get("HttpsOriginPort")
|
|
570
582
|
if params.get("Certificate") is not None:
|
|
571
583
|
self._Certificate = AccelerationDomainCertificate()
|
|
572
584
|
self._Certificate._deserialize(params.get("Certificate"))
|
|
573
|
-
self._HttpOriginPort = params.get("HttpOriginPort")
|
|
574
|
-
self._HttpsOriginPort = params.get("HttpsOriginPort")
|
|
575
|
-
self._IPv6Status = params.get("IPv6Status")
|
|
576
|
-
self._Cname = params.get("Cname")
|
|
577
|
-
self._IdentificationStatus = params.get("IdentificationStatus")
|
|
578
585
|
self._CreatedOn = params.get("CreatedOn")
|
|
579
586
|
self._ModifiedOn = params.get("ModifiedOn")
|
|
580
|
-
if params.get("OwnershipVerification") is not None:
|
|
581
|
-
self._OwnershipVerification = OwnershipVerification()
|
|
582
|
-
self._OwnershipVerification._deserialize(params.get("OwnershipVerification"))
|
|
583
587
|
memeber_set = set(params.keys())
|
|
584
588
|
for name, value in vars(self).items():
|
|
585
589
|
property_name = name[1:]
|
|
@@ -9230,14 +9234,27 @@ class CreateFunctionRuleRequest(AbstractModel):
|
|
|
9230
9234
|
:type ZoneId: str
|
|
9231
9235
|
:param _FunctionRuleConditions: 规则条件列表,相同触发规则的不同条件匹配项之间为或关系。
|
|
9232
9236
|
:type FunctionRuleConditions: list of FunctionRuleCondition
|
|
9233
|
-
:param
|
|
9237
|
+
:param _TriggerType: 函数选择配置类型:
|
|
9238
|
+
<li> direct:直接指定执行函数;</li>
|
|
9239
|
+
<li> weight:基于权重比选择函数;</li>
|
|
9240
|
+
<li> region:基于客户端 IP 的国家/地区选择函数。</li>
|
|
9241
|
+
不填时默认为 direct 。
|
|
9242
|
+
:type TriggerType: str
|
|
9243
|
+
:param _FunctionId: 指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。
|
|
9234
9244
|
:type FunctionId: str
|
|
9245
|
+
:param _RegionMappingSelections: 基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。
|
|
9246
|
+
:type RegionMappingSelections: list of FunctionRegionSelection
|
|
9247
|
+
:param _WeightedSelections: 基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。
|
|
9248
|
+
:type WeightedSelections: list of FunctionWeightedSelection
|
|
9235
9249
|
:param _Remark: 规则描述,最大支持 60 个字符。
|
|
9236
9250
|
:type Remark: str
|
|
9237
9251
|
"""
|
|
9238
9252
|
self._ZoneId = None
|
|
9239
9253
|
self._FunctionRuleConditions = None
|
|
9254
|
+
self._TriggerType = None
|
|
9240
9255
|
self._FunctionId = None
|
|
9256
|
+
self._RegionMappingSelections = None
|
|
9257
|
+
self._WeightedSelections = None
|
|
9241
9258
|
self._Remark = None
|
|
9242
9259
|
|
|
9243
9260
|
@property
|
|
@@ -9262,9 +9279,24 @@ class CreateFunctionRuleRequest(AbstractModel):
|
|
|
9262
9279
|
def FunctionRuleConditions(self, FunctionRuleConditions):
|
|
9263
9280
|
self._FunctionRuleConditions = FunctionRuleConditions
|
|
9264
9281
|
|
|
9282
|
+
@property
|
|
9283
|
+
def TriggerType(self):
|
|
9284
|
+
r"""函数选择配置类型:
|
|
9285
|
+
<li> direct:直接指定执行函数;</li>
|
|
9286
|
+
<li> weight:基于权重比选择函数;</li>
|
|
9287
|
+
<li> region:基于客户端 IP 的国家/地区选择函数。</li>
|
|
9288
|
+
不填时默认为 direct 。
|
|
9289
|
+
:rtype: str
|
|
9290
|
+
"""
|
|
9291
|
+
return self._TriggerType
|
|
9292
|
+
|
|
9293
|
+
@TriggerType.setter
|
|
9294
|
+
def TriggerType(self, TriggerType):
|
|
9295
|
+
self._TriggerType = TriggerType
|
|
9296
|
+
|
|
9265
9297
|
@property
|
|
9266
9298
|
def FunctionId(self):
|
|
9267
|
-
r"""
|
|
9299
|
+
r"""指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。
|
|
9268
9300
|
:rtype: str
|
|
9269
9301
|
"""
|
|
9270
9302
|
return self._FunctionId
|
|
@@ -9273,6 +9305,28 @@ class CreateFunctionRuleRequest(AbstractModel):
|
|
|
9273
9305
|
def FunctionId(self, FunctionId):
|
|
9274
9306
|
self._FunctionId = FunctionId
|
|
9275
9307
|
|
|
9308
|
+
@property
|
|
9309
|
+
def RegionMappingSelections(self):
|
|
9310
|
+
r"""基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。
|
|
9311
|
+
:rtype: list of FunctionRegionSelection
|
|
9312
|
+
"""
|
|
9313
|
+
return self._RegionMappingSelections
|
|
9314
|
+
|
|
9315
|
+
@RegionMappingSelections.setter
|
|
9316
|
+
def RegionMappingSelections(self, RegionMappingSelections):
|
|
9317
|
+
self._RegionMappingSelections = RegionMappingSelections
|
|
9318
|
+
|
|
9319
|
+
@property
|
|
9320
|
+
def WeightedSelections(self):
|
|
9321
|
+
r"""基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。
|
|
9322
|
+
:rtype: list of FunctionWeightedSelection
|
|
9323
|
+
"""
|
|
9324
|
+
return self._WeightedSelections
|
|
9325
|
+
|
|
9326
|
+
@WeightedSelections.setter
|
|
9327
|
+
def WeightedSelections(self, WeightedSelections):
|
|
9328
|
+
self._WeightedSelections = WeightedSelections
|
|
9329
|
+
|
|
9276
9330
|
@property
|
|
9277
9331
|
def Remark(self):
|
|
9278
9332
|
r"""规则描述,最大支持 60 个字符。
|
|
@@ -9293,7 +9347,20 @@ class CreateFunctionRuleRequest(AbstractModel):
|
|
|
9293
9347
|
obj = FunctionRuleCondition()
|
|
9294
9348
|
obj._deserialize(item)
|
|
9295
9349
|
self._FunctionRuleConditions.append(obj)
|
|
9350
|
+
self._TriggerType = params.get("TriggerType")
|
|
9296
9351
|
self._FunctionId = params.get("FunctionId")
|
|
9352
|
+
if params.get("RegionMappingSelections") is not None:
|
|
9353
|
+
self._RegionMappingSelections = []
|
|
9354
|
+
for item in params.get("RegionMappingSelections"):
|
|
9355
|
+
obj = FunctionRegionSelection()
|
|
9356
|
+
obj._deserialize(item)
|
|
9357
|
+
self._RegionMappingSelections.append(obj)
|
|
9358
|
+
if params.get("WeightedSelections") is not None:
|
|
9359
|
+
self._WeightedSelections = []
|
|
9360
|
+
for item in params.get("WeightedSelections"):
|
|
9361
|
+
obj = FunctionWeightedSelection()
|
|
9362
|
+
obj._deserialize(item)
|
|
9363
|
+
self._WeightedSelections.append(obj)
|
|
9297
9364
|
self._Remark = params.get("Remark")
|
|
9298
9365
|
memeber_set = set(params.keys())
|
|
9299
9366
|
for name, value in vars(self).items():
|
|
@@ -30484,6 +30551,57 @@ class FunctionEnvironmentVariable(AbstractModel):
|
|
|
30484
30551
|
|
|
30485
30552
|
|
|
30486
30553
|
|
|
30554
|
+
class FunctionRegionSelection(AbstractModel):
|
|
30555
|
+
r"""地区策略配置。
|
|
30556
|
+
|
|
30557
|
+
"""
|
|
30558
|
+
|
|
30559
|
+
def __init__(self):
|
|
30560
|
+
r"""
|
|
30561
|
+
:param _FunctionId: 函数 ID 。
|
|
30562
|
+
:type FunctionId: str
|
|
30563
|
+
:param _Regions: 国家/地区列表。示例值:CN:中国,CN.GD:中国广东。取值请参考:[国家/地区及对应代码枚举](https://cloud.tencent.com/document/product/1552/112542)。
|
|
30564
|
+
:type Regions: list of str
|
|
30565
|
+
"""
|
|
30566
|
+
self._FunctionId = None
|
|
30567
|
+
self._Regions = None
|
|
30568
|
+
|
|
30569
|
+
@property
|
|
30570
|
+
def FunctionId(self):
|
|
30571
|
+
r"""函数 ID 。
|
|
30572
|
+
:rtype: str
|
|
30573
|
+
"""
|
|
30574
|
+
return self._FunctionId
|
|
30575
|
+
|
|
30576
|
+
@FunctionId.setter
|
|
30577
|
+
def FunctionId(self, FunctionId):
|
|
30578
|
+
self._FunctionId = FunctionId
|
|
30579
|
+
|
|
30580
|
+
@property
|
|
30581
|
+
def Regions(self):
|
|
30582
|
+
r"""国家/地区列表。示例值:CN:中国,CN.GD:中国广东。取值请参考:[国家/地区及对应代码枚举](https://cloud.tencent.com/document/product/1552/112542)。
|
|
30583
|
+
:rtype: list of str
|
|
30584
|
+
"""
|
|
30585
|
+
return self._Regions
|
|
30586
|
+
|
|
30587
|
+
@Regions.setter
|
|
30588
|
+
def Regions(self, Regions):
|
|
30589
|
+
self._Regions = Regions
|
|
30590
|
+
|
|
30591
|
+
|
|
30592
|
+
def _deserialize(self, params):
|
|
30593
|
+
self._FunctionId = params.get("FunctionId")
|
|
30594
|
+
self._Regions = params.get("Regions")
|
|
30595
|
+
memeber_set = set(params.keys())
|
|
30596
|
+
for name, value in vars(self).items():
|
|
30597
|
+
property_name = name[1:]
|
|
30598
|
+
if property_name in memeber_set:
|
|
30599
|
+
memeber_set.remove(property_name)
|
|
30600
|
+
if len(memeber_set) > 0:
|
|
30601
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30602
|
+
|
|
30603
|
+
|
|
30604
|
+
|
|
30487
30605
|
class FunctionRule(AbstractModel):
|
|
30488
30606
|
r"""边缘函数触发规则。
|
|
30489
30607
|
|
|
@@ -30495,14 +30613,24 @@ class FunctionRule(AbstractModel):
|
|
|
30495
30613
|
:type RuleId: str
|
|
30496
30614
|
:param _FunctionRuleConditions: 规则条件列表,列表项之间为或关系。
|
|
30497
30615
|
:type FunctionRuleConditions: list of FunctionRuleCondition
|
|
30498
|
-
:param
|
|
30616
|
+
:param _TriggerType: 函数选择配置类型:
|
|
30617
|
+
<li> direct:直接指定执行函数;</li>
|
|
30618
|
+
<li> weight:基于权重比选择函数;</li>
|
|
30619
|
+
<li> region:基于客户端 IP 的国家/地区选择函数。</li>
|
|
30620
|
+
|
|
30621
|
+
:type TriggerType: str
|
|
30622
|
+
:param _FunctionId: 指定执行的函数 ID。当 TriggerType 为 direct 时有效。
|
|
30499
30623
|
:type FunctionId: str
|
|
30500
|
-
:param
|
|
30501
|
-
:type Remark: str
|
|
30502
|
-
:param _FunctionName: 函数名称。
|
|
30624
|
+
:param _FunctionName: 指定执行的函数名称。
|
|
30503
30625
|
:type FunctionName: str
|
|
30626
|
+
:param _RegionMappingSelections: 基于客户端 IP 国家/地区的函数选择配置。
|
|
30627
|
+
:type RegionMappingSelections: list of FunctionRegionSelection
|
|
30628
|
+
:param _WeightedSelections: 基于权重的函数选择配置。
|
|
30629
|
+
:type WeightedSelections: list of FunctionWeightedSelection
|
|
30504
30630
|
:param _Priority: 函数触发规则优先级,数值越大,优先级越高。
|
|
30505
30631
|
:type Priority: int
|
|
30632
|
+
:param _Remark: 规则描述。
|
|
30633
|
+
:type Remark: str
|
|
30506
30634
|
:param _CreateTime: 创建时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
|
|
30507
30635
|
:type CreateTime: str
|
|
30508
30636
|
:param _UpdateTime: 更新时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
|
|
@@ -30510,10 +30638,13 @@ class FunctionRule(AbstractModel):
|
|
|
30510
30638
|
"""
|
|
30511
30639
|
self._RuleId = None
|
|
30512
30640
|
self._FunctionRuleConditions = None
|
|
30641
|
+
self._TriggerType = None
|
|
30513
30642
|
self._FunctionId = None
|
|
30514
|
-
self._Remark = None
|
|
30515
30643
|
self._FunctionName = None
|
|
30644
|
+
self._RegionMappingSelections = None
|
|
30645
|
+
self._WeightedSelections = None
|
|
30516
30646
|
self._Priority = None
|
|
30647
|
+
self._Remark = None
|
|
30517
30648
|
self._CreateTime = None
|
|
30518
30649
|
self._UpdateTime = None
|
|
30519
30650
|
|
|
@@ -30540,30 +30671,34 @@ class FunctionRule(AbstractModel):
|
|
|
30540
30671
|
self._FunctionRuleConditions = FunctionRuleConditions
|
|
30541
30672
|
|
|
30542
30673
|
@property
|
|
30543
|
-
def
|
|
30544
|
-
r"""
|
|
30674
|
+
def TriggerType(self):
|
|
30675
|
+
r"""函数选择配置类型:
|
|
30676
|
+
<li> direct:直接指定执行函数;</li>
|
|
30677
|
+
<li> weight:基于权重比选择函数;</li>
|
|
30678
|
+
<li> region:基于客户端 IP 的国家/地区选择函数。</li>
|
|
30679
|
+
|
|
30545
30680
|
:rtype: str
|
|
30546
30681
|
"""
|
|
30547
|
-
return self.
|
|
30682
|
+
return self._TriggerType
|
|
30548
30683
|
|
|
30549
|
-
@
|
|
30550
|
-
def
|
|
30551
|
-
self.
|
|
30684
|
+
@TriggerType.setter
|
|
30685
|
+
def TriggerType(self, TriggerType):
|
|
30686
|
+
self._TriggerType = TriggerType
|
|
30552
30687
|
|
|
30553
30688
|
@property
|
|
30554
|
-
def
|
|
30555
|
-
r"""
|
|
30689
|
+
def FunctionId(self):
|
|
30690
|
+
r"""指定执行的函数 ID。当 TriggerType 为 direct 时有效。
|
|
30556
30691
|
:rtype: str
|
|
30557
30692
|
"""
|
|
30558
|
-
return self.
|
|
30693
|
+
return self._FunctionId
|
|
30559
30694
|
|
|
30560
|
-
@
|
|
30561
|
-
def
|
|
30562
|
-
self.
|
|
30695
|
+
@FunctionId.setter
|
|
30696
|
+
def FunctionId(self, FunctionId):
|
|
30697
|
+
self._FunctionId = FunctionId
|
|
30563
30698
|
|
|
30564
30699
|
@property
|
|
30565
30700
|
def FunctionName(self):
|
|
30566
|
-
r"""
|
|
30701
|
+
r"""指定执行的函数名称。
|
|
30567
30702
|
:rtype: str
|
|
30568
30703
|
"""
|
|
30569
30704
|
return self._FunctionName
|
|
@@ -30572,6 +30707,28 @@ class FunctionRule(AbstractModel):
|
|
|
30572
30707
|
def FunctionName(self, FunctionName):
|
|
30573
30708
|
self._FunctionName = FunctionName
|
|
30574
30709
|
|
|
30710
|
+
@property
|
|
30711
|
+
def RegionMappingSelections(self):
|
|
30712
|
+
r"""基于客户端 IP 国家/地区的函数选择配置。
|
|
30713
|
+
:rtype: list of FunctionRegionSelection
|
|
30714
|
+
"""
|
|
30715
|
+
return self._RegionMappingSelections
|
|
30716
|
+
|
|
30717
|
+
@RegionMappingSelections.setter
|
|
30718
|
+
def RegionMappingSelections(self, RegionMappingSelections):
|
|
30719
|
+
self._RegionMappingSelections = RegionMappingSelections
|
|
30720
|
+
|
|
30721
|
+
@property
|
|
30722
|
+
def WeightedSelections(self):
|
|
30723
|
+
r"""基于权重的函数选择配置。
|
|
30724
|
+
:rtype: list of FunctionWeightedSelection
|
|
30725
|
+
"""
|
|
30726
|
+
return self._WeightedSelections
|
|
30727
|
+
|
|
30728
|
+
@WeightedSelections.setter
|
|
30729
|
+
def WeightedSelections(self, WeightedSelections):
|
|
30730
|
+
self._WeightedSelections = WeightedSelections
|
|
30731
|
+
|
|
30575
30732
|
@property
|
|
30576
30733
|
def Priority(self):
|
|
30577
30734
|
r"""函数触发规则优先级,数值越大,优先级越高。
|
|
@@ -30583,6 +30740,17 @@ class FunctionRule(AbstractModel):
|
|
|
30583
30740
|
def Priority(self, Priority):
|
|
30584
30741
|
self._Priority = Priority
|
|
30585
30742
|
|
|
30743
|
+
@property
|
|
30744
|
+
def Remark(self):
|
|
30745
|
+
r"""规则描述。
|
|
30746
|
+
:rtype: str
|
|
30747
|
+
"""
|
|
30748
|
+
return self._Remark
|
|
30749
|
+
|
|
30750
|
+
@Remark.setter
|
|
30751
|
+
def Remark(self, Remark):
|
|
30752
|
+
self._Remark = Remark
|
|
30753
|
+
|
|
30586
30754
|
@property
|
|
30587
30755
|
def CreateTime(self):
|
|
30588
30756
|
r"""创建时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
|
|
@@ -30614,10 +30782,23 @@ class FunctionRule(AbstractModel):
|
|
|
30614
30782
|
obj = FunctionRuleCondition()
|
|
30615
30783
|
obj._deserialize(item)
|
|
30616
30784
|
self._FunctionRuleConditions.append(obj)
|
|
30785
|
+
self._TriggerType = params.get("TriggerType")
|
|
30617
30786
|
self._FunctionId = params.get("FunctionId")
|
|
30618
|
-
self._Remark = params.get("Remark")
|
|
30619
30787
|
self._FunctionName = params.get("FunctionName")
|
|
30788
|
+
if params.get("RegionMappingSelections") is not None:
|
|
30789
|
+
self._RegionMappingSelections = []
|
|
30790
|
+
for item in params.get("RegionMappingSelections"):
|
|
30791
|
+
obj = FunctionRegionSelection()
|
|
30792
|
+
obj._deserialize(item)
|
|
30793
|
+
self._RegionMappingSelections.append(obj)
|
|
30794
|
+
if params.get("WeightedSelections") is not None:
|
|
30795
|
+
self._WeightedSelections = []
|
|
30796
|
+
for item in params.get("WeightedSelections"):
|
|
30797
|
+
obj = FunctionWeightedSelection()
|
|
30798
|
+
obj._deserialize(item)
|
|
30799
|
+
self._WeightedSelections.append(obj)
|
|
30620
30800
|
self._Priority = params.get("Priority")
|
|
30801
|
+
self._Remark = params.get("Remark")
|
|
30621
30802
|
self._CreateTime = params.get("CreateTime")
|
|
30622
30803
|
self._UpdateTime = params.get("UpdateTime")
|
|
30623
30804
|
memeber_set = set(params.keys())
|
|
@@ -30671,6 +30852,61 @@ class FunctionRuleCondition(AbstractModel):
|
|
|
30671
30852
|
|
|
30672
30853
|
|
|
30673
30854
|
|
|
30855
|
+
class FunctionWeightedSelection(AbstractModel):
|
|
30856
|
+
r"""权重策略配置。
|
|
30857
|
+
|
|
30858
|
+
"""
|
|
30859
|
+
|
|
30860
|
+
def __init__(self):
|
|
30861
|
+
r"""
|
|
30862
|
+
:param _FunctionId: 函数 ID 。
|
|
30863
|
+
:type FunctionId: str
|
|
30864
|
+
:param _Weight: 选中权重。取值范围0-100,所有的权重之和需要为100。
|
|
30865
|
+
选中概率计算方式为:
|
|
30866
|
+
weight/100。例如设置了两个函数 A 和 B ,其中 A 的权重为30,那么 B 的权重必须为70,最终选中 A 的概率为30%,选中 B 的概率为70%。
|
|
30867
|
+
:type Weight: int
|
|
30868
|
+
"""
|
|
30869
|
+
self._FunctionId = None
|
|
30870
|
+
self._Weight = None
|
|
30871
|
+
|
|
30872
|
+
@property
|
|
30873
|
+
def FunctionId(self):
|
|
30874
|
+
r"""函数 ID 。
|
|
30875
|
+
:rtype: str
|
|
30876
|
+
"""
|
|
30877
|
+
return self._FunctionId
|
|
30878
|
+
|
|
30879
|
+
@FunctionId.setter
|
|
30880
|
+
def FunctionId(self, FunctionId):
|
|
30881
|
+
self._FunctionId = FunctionId
|
|
30882
|
+
|
|
30883
|
+
@property
|
|
30884
|
+
def Weight(self):
|
|
30885
|
+
r"""选中权重。取值范围0-100,所有的权重之和需要为100。
|
|
30886
|
+
选中概率计算方式为:
|
|
30887
|
+
weight/100。例如设置了两个函数 A 和 B ,其中 A 的权重为30,那么 B 的权重必须为70,最终选中 A 的概率为30%,选中 B 的概率为70%。
|
|
30888
|
+
:rtype: int
|
|
30889
|
+
"""
|
|
30890
|
+
return self._Weight
|
|
30891
|
+
|
|
30892
|
+
@Weight.setter
|
|
30893
|
+
def Weight(self, Weight):
|
|
30894
|
+
self._Weight = Weight
|
|
30895
|
+
|
|
30896
|
+
|
|
30897
|
+
def _deserialize(self, params):
|
|
30898
|
+
self._FunctionId = params.get("FunctionId")
|
|
30899
|
+
self._Weight = params.get("Weight")
|
|
30900
|
+
memeber_set = set(params.keys())
|
|
30901
|
+
for name, value in vars(self).items():
|
|
30902
|
+
property_name = name[1:]
|
|
30903
|
+
if property_name in memeber_set:
|
|
30904
|
+
memeber_set.remove(property_name)
|
|
30905
|
+
if len(memeber_set) > 0:
|
|
30906
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30907
|
+
|
|
30908
|
+
|
|
30909
|
+
|
|
30674
30910
|
class GatewayRegion(AbstractModel):
|
|
30675
30911
|
r"""多通道安全网关可用地域
|
|
30676
30912
|
|
|
@@ -37249,19 +37485,32 @@ class ModifyFunctionRuleRequest(AbstractModel):
|
|
|
37249
37485
|
r"""
|
|
37250
37486
|
:param _ZoneId: 站点 ID。
|
|
37251
37487
|
:type ZoneId: str
|
|
37252
|
-
:param _RuleId: 规则 ID
|
|
37488
|
+
:param _RuleId: 规则 ID。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。
|
|
37253
37489
|
:type RuleId: str
|
|
37254
37490
|
:param _FunctionRuleConditions: 规则条件列表,相同触发规则的不同条件匹配项之间为或关系,不填写保持原有配置。
|
|
37255
37491
|
:type FunctionRuleConditions: list of FunctionRuleCondition
|
|
37256
|
-
:param
|
|
37492
|
+
:param _TriggerType: 函数选择配置类型:
|
|
37493
|
+
<li> direct:直接指定执行函数;</li>
|
|
37494
|
+
<li> weight:基于权重比选择函数;</li>
|
|
37495
|
+
<li> region:基于客户端 IP 的国家/地区选择函数。</li>
|
|
37496
|
+
不填时默认为 direct 。
|
|
37497
|
+
:type TriggerType: str
|
|
37498
|
+
:param _FunctionId: 指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。
|
|
37257
37499
|
:type FunctionId: str
|
|
37500
|
+
:param _RegionMappingSelections: 基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。
|
|
37501
|
+
:type RegionMappingSelections: list of FunctionRegionSelection
|
|
37502
|
+
:param _WeightedSelections: 基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。
|
|
37503
|
+
:type WeightedSelections: list of FunctionWeightedSelection
|
|
37258
37504
|
:param _Remark: 规则描述,最大支持 60 个字符,不填写保持原有配置。
|
|
37259
37505
|
:type Remark: str
|
|
37260
37506
|
"""
|
|
37261
37507
|
self._ZoneId = None
|
|
37262
37508
|
self._RuleId = None
|
|
37263
37509
|
self._FunctionRuleConditions = None
|
|
37510
|
+
self._TriggerType = None
|
|
37264
37511
|
self._FunctionId = None
|
|
37512
|
+
self._RegionMappingSelections = None
|
|
37513
|
+
self._WeightedSelections = None
|
|
37265
37514
|
self._Remark = None
|
|
37266
37515
|
|
|
37267
37516
|
@property
|
|
@@ -37277,7 +37526,7 @@ class ModifyFunctionRuleRequest(AbstractModel):
|
|
|
37277
37526
|
|
|
37278
37527
|
@property
|
|
37279
37528
|
def RuleId(self):
|
|
37280
|
-
r"""规则 ID
|
|
37529
|
+
r"""规则 ID。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。
|
|
37281
37530
|
:rtype: str
|
|
37282
37531
|
"""
|
|
37283
37532
|
return self._RuleId
|
|
@@ -37297,9 +37546,24 @@ class ModifyFunctionRuleRequest(AbstractModel):
|
|
|
37297
37546
|
def FunctionRuleConditions(self, FunctionRuleConditions):
|
|
37298
37547
|
self._FunctionRuleConditions = FunctionRuleConditions
|
|
37299
37548
|
|
|
37549
|
+
@property
|
|
37550
|
+
def TriggerType(self):
|
|
37551
|
+
r"""函数选择配置类型:
|
|
37552
|
+
<li> direct:直接指定执行函数;</li>
|
|
37553
|
+
<li> weight:基于权重比选择函数;</li>
|
|
37554
|
+
<li> region:基于客户端 IP 的国家/地区选择函数。</li>
|
|
37555
|
+
不填时默认为 direct 。
|
|
37556
|
+
:rtype: str
|
|
37557
|
+
"""
|
|
37558
|
+
return self._TriggerType
|
|
37559
|
+
|
|
37560
|
+
@TriggerType.setter
|
|
37561
|
+
def TriggerType(self, TriggerType):
|
|
37562
|
+
self._TriggerType = TriggerType
|
|
37563
|
+
|
|
37300
37564
|
@property
|
|
37301
37565
|
def FunctionId(self):
|
|
37302
|
-
r"""
|
|
37566
|
+
r"""指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。
|
|
37303
37567
|
:rtype: str
|
|
37304
37568
|
"""
|
|
37305
37569
|
return self._FunctionId
|
|
@@ -37308,6 +37572,28 @@ class ModifyFunctionRuleRequest(AbstractModel):
|
|
|
37308
37572
|
def FunctionId(self, FunctionId):
|
|
37309
37573
|
self._FunctionId = FunctionId
|
|
37310
37574
|
|
|
37575
|
+
@property
|
|
37576
|
+
def RegionMappingSelections(self):
|
|
37577
|
+
r"""基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。
|
|
37578
|
+
:rtype: list of FunctionRegionSelection
|
|
37579
|
+
"""
|
|
37580
|
+
return self._RegionMappingSelections
|
|
37581
|
+
|
|
37582
|
+
@RegionMappingSelections.setter
|
|
37583
|
+
def RegionMappingSelections(self, RegionMappingSelections):
|
|
37584
|
+
self._RegionMappingSelections = RegionMappingSelections
|
|
37585
|
+
|
|
37586
|
+
@property
|
|
37587
|
+
def WeightedSelections(self):
|
|
37588
|
+
r"""基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。
|
|
37589
|
+
:rtype: list of FunctionWeightedSelection
|
|
37590
|
+
"""
|
|
37591
|
+
return self._WeightedSelections
|
|
37592
|
+
|
|
37593
|
+
@WeightedSelections.setter
|
|
37594
|
+
def WeightedSelections(self, WeightedSelections):
|
|
37595
|
+
self._WeightedSelections = WeightedSelections
|
|
37596
|
+
|
|
37311
37597
|
@property
|
|
37312
37598
|
def Remark(self):
|
|
37313
37599
|
r"""规则描述,最大支持 60 个字符,不填写保持原有配置。
|
|
@@ -37329,7 +37615,20 @@ class ModifyFunctionRuleRequest(AbstractModel):
|
|
|
37329
37615
|
obj = FunctionRuleCondition()
|
|
37330
37616
|
obj._deserialize(item)
|
|
37331
37617
|
self._FunctionRuleConditions.append(obj)
|
|
37618
|
+
self._TriggerType = params.get("TriggerType")
|
|
37332
37619
|
self._FunctionId = params.get("FunctionId")
|
|
37620
|
+
if params.get("RegionMappingSelections") is not None:
|
|
37621
|
+
self._RegionMappingSelections = []
|
|
37622
|
+
for item in params.get("RegionMappingSelections"):
|
|
37623
|
+
obj = FunctionRegionSelection()
|
|
37624
|
+
obj._deserialize(item)
|
|
37625
|
+
self._RegionMappingSelections.append(obj)
|
|
37626
|
+
if params.get("WeightedSelections") is not None:
|
|
37627
|
+
self._WeightedSelections = []
|
|
37628
|
+
for item in params.get("WeightedSelections"):
|
|
37629
|
+
obj = FunctionWeightedSelection()
|
|
37630
|
+
obj._deserialize(item)
|
|
37631
|
+
self._WeightedSelections.append(obj)
|
|
37333
37632
|
self._Remark = params.get("Remark")
|
|
37334
37633
|
memeber_set = set(params.keys())
|
|
37335
37634
|
for name, value in vars(self).items():
|