@@ -53,7 +53,8 @@ class CreateLoadBalancerRequest(object):
5353 'subnet_id' : 'str' ,
5454 'tags' : 'list[TagForCreateLoadBalancerInput]' ,
5555 'type' : 'str' ,
56- 'vpc_id' : 'str'
56+ 'vpc_id' : 'str' ,
57+ 'zone_type' : 'str'
5758 }
5859
5960 attribute_map = {
@@ -77,10 +78,11 @@ class CreateLoadBalancerRequest(object):
7778 'subnet_id' : 'SubnetId' ,
7879 'tags' : 'Tags' ,
7980 'type' : 'Type' ,
80- 'vpc_id' : 'VpcId'
81+ 'vpc_id' : 'VpcId' ,
82+ 'zone_type' : 'ZoneType'
8183 }
8284
83- def __init__ (self , address_ip_version = None , client_token = None , description = None , eip_billing_config = None , eni_address = None , eni_ipv6_address = None , load_balancer_billing_type = None , load_balancer_name = None , load_balancer_spec = None , master_zone_id = None , modification_protection_reason = None , modification_protection_status = None , period = None , period_unit = None , project_name = None , region_id = None , slave_zone_id = None , subnet_id = None , tags = None , type = None , vpc_id = None , _configuration = None ): # noqa: E501
85+ def __init__ (self , address_ip_version = None , client_token = None , description = None , eip_billing_config = None , eni_address = None , eni_ipv6_address = None , load_balancer_billing_type = None , load_balancer_name = None , load_balancer_spec = None , master_zone_id = None , modification_protection_reason = None , modification_protection_status = None , period = None , period_unit = None , project_name = None , region_id = None , slave_zone_id = None , subnet_id = None , tags = None , type = None , vpc_id = None , zone_type = None , _configuration = None ): # noqa: E501
8486 """CreateLoadBalancerRequest - a model defined in Swagger""" # noqa: E501
8587 if _configuration is None :
8688 _configuration = Configuration ()
@@ -107,6 +109,7 @@ def __init__(self, address_ip_version=None, client_token=None, description=None,
107109 self ._tags = None
108110 self ._type = None
109111 self ._vpc_id = None
112+ self ._zone_type = None
110113 self .discriminator = None
111114
112115 if address_ip_version is not None :
@@ -125,8 +128,7 @@ def __init__(self, address_ip_version=None, client_token=None, description=None,
125128 self .load_balancer_billing_type = load_balancer_billing_type
126129 if load_balancer_name is not None :
127130 self .load_balancer_name = load_balancer_name
128- if load_balancer_spec is not None :
129- self .load_balancer_spec = load_balancer_spec
131+ self .load_balancer_spec = load_balancer_spec
130132 if master_zone_id is not None :
131133 self .master_zone_id = master_zone_id
132134 if modification_protection_reason is not None :
@@ -148,6 +150,8 @@ def __init__(self, address_ip_version=None, client_token=None, description=None,
148150 self .type = type
149151 if vpc_id is not None :
150152 self .vpc_id = vpc_id
153+ if zone_type is not None :
154+ self .zone_type = zone_type
151155
152156 @property
153157 def address_ip_version (self ):
@@ -335,6 +339,8 @@ def load_balancer_spec(self, load_balancer_spec):
335339 :param load_balancer_spec: The load_balancer_spec of this CreateLoadBalancerRequest. # noqa: E501
336340 :type: str
337341 """
342+ if self ._configuration .client_side_validation and load_balancer_spec is None :
343+ raise ValueError ("Invalid value for `load_balancer_spec`, must not be `None`" ) # noqa: E501
338344
339345 self ._load_balancer_spec = load_balancer_spec
340346
@@ -596,6 +602,27 @@ def vpc_id(self, vpc_id):
596602
597603 self ._vpc_id = vpc_id
598604
605+ @property
606+ def zone_type (self ):
607+ """Gets the zone_type of this CreateLoadBalancerRequest. # noqa: E501
608+
609+
610+ :return: The zone_type of this CreateLoadBalancerRequest. # noqa: E501
611+ :rtype: str
612+ """
613+ return self ._zone_type
614+
615+ @zone_type .setter
616+ def zone_type (self , zone_type ):
617+ """Sets the zone_type of this CreateLoadBalancerRequest.
618+
619+
620+ :param zone_type: The zone_type of this CreateLoadBalancerRequest. # noqa: E501
621+ :type: str
622+ """
623+
624+ self ._zone_type = zone_type
625+
599626 def to_dict (self ):
600627 """Returns the model properties as a dict"""
601628 result = {}
0 commit comments