Skip to content

Commit 35c4eff

Browse files
committed
feat: update clb api
1 parent b3e3cd5 commit 35c4eff

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

volcenginesdkclb/models/create_server_group_request.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,19 @@ class CreateServerGroupRequest(object):
3636
'description': 'str',
3737
'load_balancer_id': 'str',
3838
'server_group_name': 'str',
39-
'servers': 'list[ServerForCreateServerGroupInput]'
39+
'servers': 'list[ServerForCreateServerGroupInput]',
40+
'type': 'str'
4041
}
4142

4243
attribute_map = {
4344
'description': 'Description',
4445
'load_balancer_id': 'LoadBalancerId',
4546
'server_group_name': 'ServerGroupName',
46-
'servers': 'Servers'
47+
'servers': 'Servers',
48+
'type': 'Type'
4749
}
4850

49-
def __init__(self, description=None, load_balancer_id=None, server_group_name=None, servers=None, _configuration=None): # noqa: E501
51+
def __init__(self, description=None, load_balancer_id=None, server_group_name=None, servers=None, type=None, _configuration=None): # noqa: E501
5052
"""CreateServerGroupRequest - a model defined in Swagger""" # noqa: E501
5153
if _configuration is None:
5254
_configuration = Configuration()
@@ -56,6 +58,7 @@ def __init__(self, description=None, load_balancer_id=None, server_group_name=No
5658
self._load_balancer_id = None
5759
self._server_group_name = None
5860
self._servers = None
61+
self._type = None
5962
self.discriminator = None
6063

6164
if description is not None:
@@ -65,6 +68,8 @@ def __init__(self, description=None, load_balancer_id=None, server_group_name=No
6568
self.server_group_name = server_group_name
6669
if servers is not None:
6770
self.servers = servers
71+
if type is not None:
72+
self.type = type
6873

6974
@property
7075
def description(self):
@@ -152,6 +157,27 @@ def servers(self, servers):
152157

153158
self._servers = servers
154159

160+
@property
161+
def type(self):
162+
"""Gets the type of this CreateServerGroupRequest. # noqa: E501
163+
164+
165+
:return: The type of this CreateServerGroupRequest. # noqa: E501
166+
:rtype: str
167+
"""
168+
return self._type
169+
170+
@type.setter
171+
def type(self, type):
172+
"""Sets the type of this CreateServerGroupRequest.
173+
174+
175+
:param type: The type of this CreateServerGroupRequest. # noqa: E501
176+
:type: str
177+
"""
178+
179+
self._type = type
180+
155181
def to_dict(self):
156182
"""Returns the model properties as a dict"""
157183
result = {}

0 commit comments

Comments
 (0)