@@ -518,7 +518,7 @@ def create(
518518
519519 return CreateLoadBalancerResponse (
520520 load_balancer = BoundLoadBalancer (self , response ["load_balancer" ]),
521- action = BoundAction (self ._client .actions , response ["action" ]),
521+ action = BoundAction (self ._parent .actions , response ["action" ]),
522522 )
523523
524524 def update (
@@ -637,7 +637,7 @@ def get_actions_list(
637637 params = params ,
638638 )
639639 actions = [
640- BoundAction (self ._client .actions , action_data )
640+ BoundAction (self ._parent .actions , action_data )
641641 for action_data in response ["actions" ]
642642 ]
643643 return ActionsPageResult (actions , Meta .parse_meta (response ))
@@ -683,7 +683,7 @@ def add_service(
683683 method = "POST" ,
684684 json = data ,
685685 )
686- return BoundAction (self ._client .actions , response ["action" ])
686+ return BoundAction (self ._parent .actions , response ["action" ])
687687
688688 def update_service (
689689 self ,
@@ -703,7 +703,7 @@ def update_service(
703703 method = "POST" ,
704704 json = data ,
705705 )
706- return BoundAction (self ._client .actions , response ["action" ])
706+ return BoundAction (self ._parent .actions , response ["action" ])
707707
708708 def delete_service (
709709 self ,
@@ -724,7 +724,7 @@ def delete_service(
724724 method = "POST" ,
725725 json = data ,
726726 )
727- return BoundAction (self ._client .actions , response ["action" ])
727+ return BoundAction (self ._parent .actions , response ["action" ])
728728
729729 def add_target (
730730 self ,
@@ -745,7 +745,7 @@ def add_target(
745745 method = "POST" ,
746746 json = data ,
747747 )
748- return BoundAction (self ._client .actions , response ["action" ])
748+ return BoundAction (self ._parent .actions , response ["action" ])
749749
750750 def remove_target (
751751 self ,
@@ -768,7 +768,7 @@ def remove_target(
768768 method = "POST" ,
769769 json = data ,
770770 )
771- return BoundAction (self ._client .actions , response ["action" ])
771+ return BoundAction (self ._parent .actions , response ["action" ])
772772
773773 def change_algorithm (
774774 self ,
@@ -789,7 +789,7 @@ def change_algorithm(
789789 method = "POST" ,
790790 json = data ,
791791 )
792- return BoundAction (self ._client .actions , response ["action" ])
792+ return BoundAction (self ._parent .actions , response ["action" ])
793793
794794 def change_dns_ptr (
795795 self ,
@@ -811,7 +811,7 @@ def change_dns_ptr(
811811 method = "POST" ,
812812 json = {"ip" : ip , "dns_ptr" : dns_ptr },
813813 )
814- return BoundAction (self ._client .actions , response ["action" ])
814+ return BoundAction (self ._parent .actions , response ["action" ])
815815
816816 def change_protection (
817817 self ,
@@ -834,7 +834,7 @@ def change_protection(
834834 method = "POST" ,
835835 json = data ,
836836 )
837- return BoundAction (self ._client .actions , response ["action" ])
837+ return BoundAction (self ._parent .actions , response ["action" ])
838838
839839 def attach_to_network (
840840 self ,
@@ -859,7 +859,7 @@ def attach_to_network(
859859 method = "POST" ,
860860 json = data ,
861861 )
862- return BoundAction (self ._client .actions , response ["action" ])
862+ return BoundAction (self ._parent .actions , response ["action" ])
863863
864864 def detach_from_network (
865865 self ,
@@ -878,7 +878,7 @@ def detach_from_network(
878878 method = "POST" ,
879879 json = data ,
880880 )
881- return BoundAction (self ._client .actions , response ["action" ])
881+ return BoundAction (self ._parent .actions , response ["action" ])
882882
883883 def enable_public_interface (
884884 self ,
@@ -895,7 +895,7 @@ def enable_public_interface(
895895 url = f"/load_balancers/{ load_balancer .id } /actions/enable_public_interface" ,
896896 method = "POST" ,
897897 )
898- return BoundAction (self ._client .actions , response ["action" ])
898+ return BoundAction (self ._parent .actions , response ["action" ])
899899
900900 def disable_public_interface (
901901 self ,
@@ -912,7 +912,7 @@ def disable_public_interface(
912912 url = f"/load_balancers/{ load_balancer .id } /actions/disable_public_interface" ,
913913 method = "POST" ,
914914 )
915- return BoundAction (self ._client .actions , response ["action" ])
915+ return BoundAction (self ._parent .actions , response ["action" ])
916916
917917 def change_type (
918918 self ,
@@ -932,4 +932,4 @@ def change_type(
932932 method = "POST" ,
933933 json = data ,
934934 )
935- return BoundAction (self ._client .actions , response ["action" ])
935+ return BoundAction (self ._parent .actions , response ["action" ])
0 commit comments