44
55import attr
66
7- from binarylane .models .forwarding_rule import ForwardingRule
8- from binarylane .models .health_check import HealthCheck
7+ from binarylane .models .forwarding_rule_request import ForwardingRuleRequest
8+ from binarylane .models .health_check_request import HealthCheckRequest
99from binarylane .types import UNSET , Unset
1010
1111T = TypeVar ("T" , bound = "CreateLoadBalancerRequest" )
@@ -16,18 +16,18 @@ class CreateLoadBalancerRequest:
1616 """
1717 Attributes:
1818 name (str): The hostname of the load balancer.
19- forwarding_rules (Union[Unset, None, List[ForwardingRule ]]): The rules that control which traffic the load
20- balancer will forward to servers in the pool. Leave null to accept a default "HTTP" only forwarding rule.
21- health_check (Union[Unset, None, HealthCheck ]): The rules that determine which servers are considered 'healthy'
22- and in the server pool for the load balancer. Leave this null to accept appropriate defaults based on the
23- forwarding_rules.
19+ forwarding_rules (Union[Unset, None, List[ForwardingRuleRequest ]]): The rules that control which traffic the
20+ load balancer will forward to servers in the pool. Leave null to accept a default "HTTP" only forwarding rule.
21+ health_check (Union[Unset, None, HealthCheckRequest ]): The rules that determine which servers are considered
22+ 'healthy' and in the server pool for the load balancer. Leave this null to accept appropriate defaults based on
23+ the forwarding_rules.
2424 server_ids (Union[Unset, None, List[int]]): A list of server IDs to assign to this load balancer.
2525 region (Union[Unset, None, str]): Leave null to create an anycast load balancer.
2626 """
2727
2828 name : str
29- forwarding_rules : Union [Unset , None , List [ForwardingRule ]] = UNSET
30- health_check : Union [Unset , None , HealthCheck ] = UNSET
29+ forwarding_rules : Union [Unset , None , List [ForwardingRuleRequest ]] = UNSET
30+ health_check : Union [Unset , None , HealthCheckRequest ] = UNSET
3131 server_ids : Union [Unset , None , List [int ]] = UNSET
3232 region : Union [Unset , None , str ] = UNSET
3333 additional_properties : Dict [str , Any ] = attr .ib (init = False , factory = dict )
@@ -84,18 +84,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
8484 forwarding_rules = []
8585 _forwarding_rules = d .pop ("forwarding_rules" , UNSET )
8686 for forwarding_rules_item_data in _forwarding_rules or []:
87- forwarding_rules_item = ForwardingRule .from_dict (forwarding_rules_item_data )
87+ forwarding_rules_item = ForwardingRuleRequest .from_dict (forwarding_rules_item_data )
8888
8989 forwarding_rules .append (forwarding_rules_item )
9090
9191 _health_check = d .pop ("health_check" , UNSET )
92- health_check : Union [Unset , None , HealthCheck ]
92+ health_check : Union [Unset , None , HealthCheckRequest ]
9393 if _health_check is None :
9494 health_check = None
9595 elif isinstance (_health_check , Unset ):
9696 health_check = UNSET
9797 else :
98- health_check = HealthCheck .from_dict (_health_check )
98+ health_check = HealthCheckRequest .from_dict (_health_check )
9999
100100 server_ids = cast (List [int ], d .pop ("server_ids" , UNSET ))
101101
0 commit comments