@@ -579,11 +579,11 @@ def _api_from_web(self):
579579 class _AddUnused (object ):
580580 """ Cloudflare v4 API"""
581581
582- def __init__ (self , base , p1 , p2 = None , p3 = None ):
582+ def __init__ (self , base , p1 , p2 = None , p3 = None , p4 = None ):
583583 """ Cloudflare v4 API"""
584584
585585 self ._base = base
586- self ._parts_unused = [p1 , p2 , p3 ]
586+ self ._parts_unused = [p1 , p2 , p3 , p4 ]
587587
588588 def __call__ (self , identifier1 = None , identifier2 = None , identifier3 = None , params = None , data = None ):
589589 """ Cloudflare v4 API"""
@@ -624,11 +624,11 @@ def delete(self, identifier1=None, identifier2=None, identifier3=None, params=No
624624 class _AddNoAuth (object ):
625625 """ Cloudflare v4 API"""
626626
627- def __init__ (self , base , p1 , p2 = None , p3 = None ):
627+ def __init__ (self , base , p1 , p2 = None , p3 = None , p4 = None ):
628628 """ Cloudflare v4 API"""
629629
630630 self ._base = base
631- self ._parts = [p1 , p2 , p3 ]
631+ self ._parts = [p1 , p2 , p3 , p4 ]
632632
633633 def __call__ (self , identifier1 = None , identifier2 = None , identifier3 = None , params = None , data = None ):
634634 """ Cloudflare v4 API"""
@@ -671,11 +671,11 @@ def delete(self, identifier1=None, identifier2=None, identifier3=None, params=No
671671 class _AddWithAuth (object ):
672672 """ Cloudflare v4 API"""
673673
674- def __init__ (self , base , p1 , p2 = None , p3 = None ):
674+ def __init__ (self , base , p1 , p2 = None , p3 = None , p4 = None ):
675675 """ Cloudflare v4 API"""
676676
677677 self ._base = base
678- self ._parts = [p1 , p2 , p3 ]
678+ self ._parts = [p1 , p2 , p3 , p4 ]
679679
680680 def __call__ (self , identifier1 = None , identifier2 = None , identifier3 = None , params = None , data = None ):
681681 """ Cloudflare v4 API"""
@@ -726,11 +726,11 @@ def delete(self, identifier1=None, identifier2=None, identifier3=None, params=No
726726 class _AddWithAuthUnwrapped (object ):
727727 """ Cloudflare v4 API"""
728728
729- def __init__ (self , base , p1 , p2 = None , p3 = None ):
729+ def __init__ (self , base , p1 , p2 = None , p3 = None , p4 = None ):
730730 """ Cloudflare v4 API"""
731731
732732 self ._base = base
733- self ._parts = [p1 , p2 , p3 ]
733+ self ._parts = [p1 , p2 , p3 , p4 ]
734734
735735 def __call__ (self , identifier1 = None , identifier2 = None , identifier3 = None , params = None , data = None ):
736736 """ Cloudflare v4 API"""
@@ -781,11 +781,11 @@ def delete(self, identifier1=None, identifier2=None, identifier3=None, params=No
781781 class _AddWithCertAuth (object ):
782782 """ Cloudflare v4 API"""
783783
784- def __init__ (self , base , p1 , p2 = None , p3 = None ):
784+ def __init__ (self , base , p1 , p2 = None , p3 = None , p4 = None ):
785785 """ Cloudflare v4 API"""
786786
787787 self ._base = base
788- self ._parts = [p1 , p2 , p3 ]
788+ self ._parts = [p1 , p2 , p3 , p4 ]
789789
790790 def __call__ (self , identifier1 = None , identifier2 = None , identifier3 = None , params = None , data = None ):
791791 """ Cloudflare v4 API"""
@@ -833,7 +833,7 @@ def delete(self, identifier1=None, identifier2=None, identifier3=None, params=No
833833 identifier1 , identifier2 , identifier3 ,
834834 params , data )
835835
836- def add (self , t , p1 , p2 = None , p3 = None ):
836+ def add (self , t , p1 , p2 = None , p3 = None , p4 = None ):
837837 """add api call to class"""
838838
839839 a = []
@@ -843,6 +843,8 @@ def add(self, t, p1, p2=None, p3=None):
843843 a += p2 .split ('/' )
844844 if p3 :
845845 a += p3 .split ('/' )
846+ if p4 :
847+ a += p4 .split ('/' )
846848
847849 branch = self
848850 for element in a [0 :- 1 ]:
@@ -868,15 +870,15 @@ def add(self, t, p1, p2=None, p3=None):
868870 pass
869871
870872 if t == 'VOID' :
871- f = self ._AddUnused (self ._base , p1 , p2 , p3 )
873+ f = self ._AddUnused (self ._base , p1 , p2 , p3 , p4 )
872874 elif t == 'OPEN' :
873- f = self ._AddNoAuth (self ._base , p1 , p2 , p3 )
875+ f = self ._AddNoAuth (self ._base , p1 , p2 , p3 , p4 )
874876 elif t == 'AUTH' :
875- f = self ._AddWithAuth (self ._base , p1 , p2 , p3 )
877+ f = self ._AddWithAuth (self ._base , p1 , p2 , p3 , p4 )
876878 elif t == 'CERT' :
877- f = self ._AddWithCertAuth (self ._base , p1 , p2 , p3 )
879+ f = self ._AddWithCertAuth (self ._base , p1 , p2 , p3 , p4 )
878880 elif t == 'AUTH_UNWRAPPED' :
879- f = self ._AddWithAuthUnwrapped (self ._base , p1 , p2 , p3 )
881+ f = self ._AddWithAuthUnwrapped (self ._base , p1 , p2 , p3 , p4 )
880882 else :
881883 # should never happen
882884 raise CloudFlareAPIError (0 , 'api load type mismatch' )
0 commit comments