@@ -398,26 +398,38 @@ class LoadBalancerPoolPackOriginsItem():
398
398
:attr str address: (optional) address.
399
399
:attr bool enabled: (optional) enabled/disabled.
400
400
:attr bool healthy: (optional) healthy.
401
+ :attr float weight: (optional) weight.
402
+ :attr str disabled_at: (optional) Pool origin disabled date.
403
+ :attr str failure_reason: (optional) Reason for failure.
401
404
"""
402
405
403
406
def __init__ (self ,
404
407
* ,
405
408
name : str = None ,
406
409
address : str = None ,
407
410
enabled : bool = None ,
408
- healthy : bool = None ) -> None :
411
+ healthy : bool = None ,
412
+ weight : float = None ,
413
+ disabled_at : str = None ,
414
+ failure_reason : str = None ) -> None :
409
415
"""
410
416
Initialize a LoadBalancerPoolPackOriginsItem object.
411
417
412
418
:param str name: (optional) name.
413
419
:param str address: (optional) address.
414
420
:param bool enabled: (optional) enabled/disabled.
415
421
:param bool healthy: (optional) healthy.
422
+ :param float weight: (optional) weight.
423
+ :param str disabled_at: (optional) Pool origin disabled date.
424
+ :param str failure_reason: (optional) Reason for failure.
416
425
"""
417
426
self .name = name
418
427
self .address = address
419
428
self .enabled = enabled
420
429
self .healthy = healthy
430
+ self .weight = weight
431
+ self .disabled_at = disabled_at
432
+ self .failure_reason = failure_reason
421
433
422
434
@classmethod
423
435
def from_dict (cls , _dict : Dict ) -> 'LoadBalancerPoolPackOriginsItem' :
@@ -431,6 +443,12 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolPackOriginsItem':
431
443
args ['enabled' ] = _dict .get ('enabled' )
432
444
if 'healthy' in _dict :
433
445
args ['healthy' ] = _dict .get ('healthy' )
446
+ if 'weight' in _dict :
447
+ args ['weight' ] = _dict .get ('weight' )
448
+ if 'disabled_at' in _dict :
449
+ args ['disabled_at' ] = _dict .get ('disabled_at' )
450
+ if 'failure_reason' in _dict :
451
+ args ['failure_reason' ] = _dict .get ('failure_reason' )
434
452
return cls (** args )
435
453
436
454
@classmethod
@@ -449,6 +467,12 @@ def to_dict(self) -> Dict:
449
467
_dict ['enabled' ] = self .enabled
450
468
if hasattr (self , 'healthy' ) and self .healthy is not None :
451
469
_dict ['healthy' ] = self .healthy
470
+ if hasattr (self , 'weight' ) and self .weight is not None :
471
+ _dict ['weight' ] = self .weight
472
+ if hasattr (self , 'disabled_at' ) and self .disabled_at is not None :
473
+ _dict ['disabled_at' ] = self .disabled_at
474
+ if hasattr (self , 'failure_reason' ) and self .failure_reason is not None :
475
+ _dict ['failure_reason' ] = self .failure_reason
452
476
return _dict
453
477
454
478
def _to_dict (self ):
@@ -476,23 +500,27 @@ class LoadBalancerPoolReqOriginsItem():
476
500
:attr str name: (optional) name.
477
501
:attr str address: (optional) address.
478
502
:attr bool enabled: (optional) enabled/disabled.
503
+ :attr float weight: (optional) weight.
479
504
"""
480
505
481
506
def __init__ (self ,
482
507
* ,
483
508
name : str = None ,
484
509
address : str = None ,
485
- enabled : bool = None ) -> None :
510
+ enabled : bool = None ,
511
+ weight : float = None ) -> None :
486
512
"""
487
513
Initialize a LoadBalancerPoolReqOriginsItem object.
488
514
489
515
:param str name: (optional) name.
490
516
:param str address: (optional) address.
491
517
:param bool enabled: (optional) enabled/disabled.
518
+ :param float weight: (optional) weight.
492
519
"""
493
520
self .name = name
494
521
self .address = address
495
522
self .enabled = enabled
523
+ self .weight = weight
496
524
497
525
@classmethod
498
526
def from_dict (cls , _dict : Dict ) -> 'LoadBalancerPoolReqOriginsItem' :
@@ -504,6 +532,8 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolReqOriginsItem':
504
532
args ['address' ] = _dict .get ('address' )
505
533
if 'enabled' in _dict :
506
534
args ['enabled' ] = _dict .get ('enabled' )
535
+ if 'weight' in _dict :
536
+ args ['weight' ] = _dict .get ('weight' )
507
537
return cls (** args )
508
538
509
539
@classmethod
@@ -520,6 +550,8 @@ def to_dict(self) -> Dict:
520
550
_dict ['address' ] = self .address
521
551
if hasattr (self , 'enabled' ) and self .enabled is not None :
522
552
_dict ['enabled' ] = self .enabled
553
+ if hasattr (self , 'weight' ) and self .weight is not None :
554
+ _dict ['weight' ] = self .weight
523
555
return _dict
524
556
525
557
def _to_dict (self ):
@@ -734,6 +766,8 @@ class LoadBalancerPoolPack():
734
766
:attr bool enabled: (optional) enabled/disabled.
735
767
:attr bool healthy: (optional) healthy.
736
768
:attr str monitor: (optional) monitor.
769
+ :attr int minimum_origins: (optional) Minimum origin count.
770
+ :attr List[str] check_regions: (optional) regions check.
737
771
:attr List[LoadBalancerPoolPackOriginsItem] origins: original.
738
772
:attr str notification_email: (optional) notification email.
739
773
"""
@@ -749,6 +783,8 @@ def __init__(self,
749
783
enabled : bool = None ,
750
784
healthy : bool = None ,
751
785
monitor : str = None ,
786
+ minimum_origins : int = None ,
787
+ check_regions : List [str ] = None ,
752
788
notification_email : str = None ) -> None :
753
789
"""
754
790
Initialize a LoadBalancerPoolPack object.
@@ -762,6 +798,8 @@ def __init__(self,
762
798
:param bool enabled: (optional) enabled/disabled.
763
799
:param bool healthy: (optional) healthy.
764
800
:param str monitor: (optional) monitor.
801
+ :param int minimum_origins: (optional) Minimum origin count.
802
+ :param List[str] check_regions: (optional) regions check.
765
803
:param str notification_email: (optional) notification email.
766
804
"""
767
805
self .id = id
@@ -772,6 +810,8 @@ def __init__(self,
772
810
self .enabled = enabled
773
811
self .healthy = healthy
774
812
self .monitor = monitor
813
+ self .minimum_origins = minimum_origins
814
+ self .check_regions = check_regions
775
815
self .origins = origins
776
816
self .notification_email = notification_email
777
817
@@ -797,6 +837,10 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolPack':
797
837
args ['healthy' ] = _dict .get ('healthy' )
798
838
if 'monitor' in _dict :
799
839
args ['monitor' ] = _dict .get ('monitor' )
840
+ if 'minimum_origins' in _dict :
841
+ args ['minimum_origins' ] = _dict .get ('minimum_origins' )
842
+ if 'check_regions' in _dict :
843
+ args ['check_regions' ] = _dict .get ('check_regions' )
800
844
if 'origins' in _dict :
801
845
args ['origins' ] = [LoadBalancerPoolPackOriginsItem .from_dict (x ) for x in _dict .get ('origins' )]
802
846
else :
@@ -829,6 +873,10 @@ def to_dict(self) -> Dict:
829
873
_dict ['healthy' ] = self .healthy
830
874
if hasattr (self , 'monitor' ) and self .monitor is not None :
831
875
_dict ['monitor' ] = self .monitor
876
+ if hasattr (self , 'minimum_origins' ) and self .minimum_origins is not None :
877
+ _dict ['minimum_origins' ] = self .minimum_origins
878
+ if hasattr (self , 'check_regions' ) and self .check_regions is not None :
879
+ _dict ['check_regions' ] = self .check_regions
832
880
if hasattr (self , 'origins' ) and self .origins is not None :
833
881
_dict ['origins' ] = [x .to_dict () for x in self .origins ]
834
882
if hasattr (self , 'notification_email' ) and self .notification_email is not None :
0 commit comments