Skip to content

Commit 4a73d5d

Browse files
author
shaoshitao
committed
fix: query-string field malformed
1 parent 31dc7d0 commit 4a73d5d

File tree

3 files changed

+153
-3
lines changed

3 files changed

+153
-3
lines changed

volcenginesdkalb/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@
292292
from volcenginesdkalb.models.upload_ca_certificate_response import UploadCACertificateResponse
293293
from volcenginesdkalb.models.upload_certificate_request import UploadCertificateRequest
294294
from volcenginesdkalb.models.upload_certificate_response import UploadCertificateResponse
295+
from volcenginesdkalb.models.value_for_describe_rules_output import ValueForDescribeRulesOutput
295296
from volcenginesdkalb.models.zone_for_describe_zones_output import ZoneForDescribeZonesOutput
296297
from volcenginesdkalb.models.zone_mapping_for_clone_load_balancer_input import ZoneMappingForCloneLoadBalancerInput
297298
from volcenginesdkalb.models.zone_mapping_for_create_load_balancer_input import ZoneMappingForCreateLoadBalancerInput

volcenginesdkalb/models/query_string_config_for_describe_rules_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class QueryStringConfigForDescribeRulesOutput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36-
'values': 'list[str]'
36+
'values': 'list[ValueForDescribeRulesOutput]'
3737
}
3838

3939
attribute_map = {
@@ -58,7 +58,7 @@ def values(self):
5858
5959
6060
:return: The values of this QueryStringConfigForDescribeRulesOutput. # noqa: E501
61-
:rtype: list[str]
61+
:rtype: list[ValueForDescribeRulesOutput]
6262
"""
6363
return self._values
6464

@@ -68,7 +68,7 @@ def values(self, values):
6868
6969
7070
:param values: The values of this QueryStringConfigForDescribeRulesOutput. # noqa: E501
71-
:type: list[str]
71+
:type: list[ValueForDescribeRulesOutput]
7272
"""
7373

7474
self._values = values
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
# coding: utf-8
2+
3+
"""
4+
alb
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class ValueForDescribeRulesOutput(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'key': 'str',
37+
'value': 'str'
38+
}
39+
40+
attribute_map = {
41+
'key': 'Key',
42+
'value': 'Value'
43+
}
44+
45+
def __init__(self, key=None, value=None, _configuration=None): # noqa: E501
46+
"""ValueForDescribeRulesOutput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._key = None
52+
self._value = None
53+
self.discriminator = None
54+
55+
if key is not None:
56+
self.key = key
57+
if value is not None:
58+
self.value = value
59+
60+
@property
61+
def key(self):
62+
"""Gets the key of this ValueForDescribeRulesOutput. # noqa: E501
63+
64+
65+
:return: The key of this ValueForDescribeRulesOutput. # noqa: E501
66+
:rtype: str
67+
"""
68+
return self._key
69+
70+
@key.setter
71+
def key(self, key):
72+
"""Sets the key of this ValueForDescribeRulesOutput.
73+
74+
75+
:param key: The key of this ValueForDescribeRulesOutput. # noqa: E501
76+
:type: str
77+
"""
78+
79+
self._key = key
80+
81+
@property
82+
def value(self):
83+
"""Gets the value of this ValueForDescribeRulesOutput. # noqa: E501
84+
85+
86+
:return: The value of this ValueForDescribeRulesOutput. # noqa: E501
87+
:rtype: str
88+
"""
89+
return self._value
90+
91+
@value.setter
92+
def value(self, value):
93+
"""Sets the value of this ValueForDescribeRulesOutput.
94+
95+
96+
:param value: The value of this ValueForDescribeRulesOutput. # noqa: E501
97+
:type: str
98+
"""
99+
100+
self._value = value
101+
102+
def to_dict(self):
103+
"""Returns the model properties as a dict"""
104+
result = {}
105+
106+
for attr, _ in six.iteritems(self.swagger_types):
107+
value = getattr(self, attr)
108+
if isinstance(value, list):
109+
result[attr] = list(map(
110+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
111+
value
112+
))
113+
elif hasattr(value, "to_dict"):
114+
result[attr] = value.to_dict()
115+
elif isinstance(value, dict):
116+
result[attr] = dict(map(
117+
lambda item: (item[0], item[1].to_dict())
118+
if hasattr(item[1], "to_dict") else item,
119+
value.items()
120+
))
121+
else:
122+
result[attr] = value
123+
if issubclass(ValueForDescribeRulesOutput, dict):
124+
for key, value in self.items():
125+
result[key] = value
126+
127+
return result
128+
129+
def to_str(self):
130+
"""Returns the string representation of the model"""
131+
return pprint.pformat(self.to_dict())
132+
133+
def __repr__(self):
134+
"""For `print` and `pprint`"""
135+
return self.to_str()
136+
137+
def __eq__(self, other):
138+
"""Returns true if both objects are equal"""
139+
if not isinstance(other, ValueForDescribeRulesOutput):
140+
return False
141+
142+
return self.to_dict() == other.to_dict()
143+
144+
def __ne__(self, other):
145+
"""Returns true if both objects are not equal"""
146+
if not isinstance(other, ValueForDescribeRulesOutput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)