@@ -766,12 +766,14 @@ def __init__(
766
766
deployment : str = None ,
767
767
route_update_wait_time : str = None ,
768
768
stable_cutback_duration : str = None ,
769
+ pod_selector_label : str = None ,
769
770
):
770
771
self .http_route = http_route
771
772
self .service = service
772
773
self .deployment = deployment
773
774
self .route_update_wait_time = route_update_wait_time
774
775
self .stable_cutback_duration = stable_cutback_duration
776
+ self .pod_selector_label = pod_selector_label
775
777
776
778
@classmethod
777
779
def to_proto (self , resource ):
@@ -795,6 +797,8 @@ def to_proto(self, resource):
795
797
res .stable_cutback_duration = Primitive .to_proto (
796
798
resource .stable_cutback_duration
797
799
)
800
+ if Primitive .to_proto (resource .pod_selector_label ):
801
+ res .pod_selector_label = Primitive .to_proto (resource .pod_selector_label )
798
802
return res
799
803
800
804
@classmethod
@@ -812,6 +816,7 @@ def from_proto(self, resource):
812
816
stable_cutback_duration = Primitive .from_proto (
813
817
resource .stable_cutback_duration
814
818
),
819
+ pod_selector_label = Primitive .from_proto (resource .pod_selector_label ),
815
820
)
816
821
817
822
@@ -848,10 +853,12 @@ def __init__(
848
853
service : str = None ,
849
854
deployment : str = None ,
850
855
disable_pod_overprovisioning : bool = None ,
856
+ pod_selector_label : str = None ,
851
857
):
852
858
self .service = service
853
859
self .deployment = deployment
854
860
self .disable_pod_overprovisioning = disable_pod_overprovisioning
861
+ self .pod_selector_label = pod_selector_label
855
862
856
863
@classmethod
857
864
def to_proto (self , resource ):
@@ -869,6 +876,8 @@ def to_proto(self, resource):
869
876
res .disable_pod_overprovisioning = Primitive .to_proto (
870
877
resource .disable_pod_overprovisioning
871
878
)
879
+ if Primitive .to_proto (resource .pod_selector_label ):
880
+ res .pod_selector_label = Primitive .to_proto (resource .pod_selector_label )
872
881
return res
873
882
874
883
@classmethod
@@ -882,6 +891,7 @@ def from_proto(self, resource):
882
891
disable_pod_overprovisioning = Primitive .from_proto (
883
892
resource .disable_pod_overprovisioning
884
893
),
894
+ pod_selector_label = Primitive .from_proto (resource .pod_selector_label ),
885
895
)
886
896
887
897
0 commit comments