Skip to content

Commit 6bf9084

Browse files
author
BitsAdmin
committed
Merge branch 'waf-Python-2023-12-25-online-1143-2025_05_07_20_18_32' into 'integration_2025-05-08_884445172226'
feat: [development task] waf-1143-Python (1207489) See merge request iaasng/volcengine-python-sdk!593
2 parents 0d52c6c + dfad5b1 commit 6bf9084

File tree

7 files changed

+41
-14
lines changed

7 files changed

+41
-14
lines changed

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "2.0.1",
3-
"meta_commit": "48a4b0f02290d4ecd051d5ee6dc2228a9ce02ed9"
2+
"lasted": "2.0.2",
3+
"meta_commit": "3c4f91ddee2f3ec147f203188b284d6e44d38056"
44
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages # noqa: H301
44

55
NAME = "volcengine-python-sdk"
6-
VERSION = "2.0.1"
6+
VERSION = "2.0.2"
77
# To install the library, run the following
88
#
99
# python setup.py install

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6363
self.default_headers[header_name] = header_value
6464
self.cookie = cookie
6565
# Set default User-Agent.
66-
self.user_agent = 'volcstack-python-sdk/2.0.1'
66+
self.user_agent = 'volcstack-python-sdk/2.0.2'
6767
self.client_side_validation = configuration.client_side_validation
6868

6969
self.interceptor_chain = InterceptorChain()

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,5 @@ def to_debug_report(self):
257257
"OS: {env}\n" \
258258
"Python Version: {pyversion}\n" \
259259
"Version of the API: 0.1.0\n" \
260-
"SDK Package Version: 2.0.1".\
260+
"SDK Package Version: 2.0.2".\
261261
format(env=sys.platform, pyversion=sys.version)

volcenginesdkwaf/models/list_all_ip_groups_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ListAllIpGroupsRequest(object):
3434
"""
3535
swagger_types = {
3636
'ip': 'str',
37-
'page': 'str',
37+
'page': 'int',
3838
'page_size': 'int',
3939
'project_name': 'str',
4040
'rule_tag': 'str',
@@ -103,7 +103,7 @@ def page(self):
103103
104104
105105
:return: The page of this ListAllIpGroupsRequest. # noqa: E501
106-
:rtype: str
106+
:rtype: int
107107
"""
108108
return self._page
109109

@@ -113,7 +113,7 @@ def page(self, page):
113113
114114
115115
:param page: The page of this ListAllIpGroupsRequest. # noqa: E501
116-
:type: str
116+
:type: int
117117
"""
118118

119119
self._page = page

volcenginesdkwaf/models/list_custom_page_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ListCustomPageRequest(object):
3434
"""
3535
swagger_types = {
3636
'host': 'str',
37-
'page': 'str',
37+
'page': 'int',
3838
'page_size': 'int',
3939
'project_name': 'str'
4040
}
@@ -95,7 +95,7 @@ def page(self):
9595
9696
9797
:return: The page of this ListCustomPageRequest. # noqa: E501
98-
:rtype: str
98+
:rtype: int
9999
"""
100100
return self._page
101101

@@ -105,7 +105,7 @@ def page(self, page):
105105
106106
107107
:param page: The page of this ListCustomPageRequest. # noqa: E501
108-
:type: str
108+
:type: int
109109
"""
110110

111111
self._page = page

volcenginesdkwaf/models/query_attack_analysis_terms_agg_lb_request.py

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class QueryAttackAnalysisTermsAggLbRequest(object):
3737
'end_time': 'int',
3838
'host': 'str',
3939
'plugins': 'list[str]',
40+
'project_name': 'str',
4041
'start_time': 'int'
4142
}
4243

@@ -45,10 +46,11 @@ class QueryAttackAnalysisTermsAggLbRequest(object):
4546
'end_time': 'EndTime',
4647
'host': 'Host',
4748
'plugins': 'Plugins',
49+
'project_name': 'ProjectName',
4850
'start_time': 'StartTime'
4951
}
5052

51-
def __init__(self, analysis_key=None, end_time=None, host=None, plugins=None, start_time=None, _configuration=None): # noqa: E501
53+
def __init__(self, analysis_key=None, end_time=None, host=None, plugins=None, project_name=None, start_time=None, _configuration=None): # noqa: E501
5254
"""QueryAttackAnalysisTermsAggLbRequest - a model defined in Swagger""" # noqa: E501
5355
if _configuration is None:
5456
_configuration = Configuration()
@@ -58,16 +60,18 @@ def __init__(self, analysis_key=None, end_time=None, host=None, plugins=None, st
5860
self._end_time = None
5961
self._host = None
6062
self._plugins = None
63+
self._project_name = None
6164
self._start_time = None
6265
self.discriminator = None
6366

64-
if analysis_key is not None:
65-
self.analysis_key = analysis_key
67+
self.analysis_key = analysis_key
6668
self.end_time = end_time
6769
if host is not None:
6870
self.host = host
6971
if plugins is not None:
7072
self.plugins = plugins
73+
if project_name is not None:
74+
self.project_name = project_name
7175
self.start_time = start_time
7276

7377
@property
@@ -88,6 +92,8 @@ def analysis_key(self, analysis_key):
8892
:param analysis_key: The analysis_key of this QueryAttackAnalysisTermsAggLbRequest. # noqa: E501
8993
:type: str
9094
"""
95+
if self._configuration.client_side_validation and analysis_key is None:
96+
raise ValueError("Invalid value for `analysis_key`, must not be `None`") # noqa: E501
9197

9298
self._analysis_key = analysis_key
9399

@@ -156,6 +162,27 @@ def plugins(self, plugins):
156162

157163
self._plugins = plugins
158164

165+
@property
166+
def project_name(self):
167+
"""Gets the project_name of this QueryAttackAnalysisTermsAggLbRequest. # noqa: E501
168+
169+
170+
:return: The project_name of this QueryAttackAnalysisTermsAggLbRequest. # noqa: E501
171+
:rtype: str
172+
"""
173+
return self._project_name
174+
175+
@project_name.setter
176+
def project_name(self, project_name):
177+
"""Sets the project_name of this QueryAttackAnalysisTermsAggLbRequest.
178+
179+
180+
:param project_name: The project_name of this QueryAttackAnalysisTermsAggLbRequest. # noqa: E501
181+
:type: str
182+
"""
183+
184+
self._project_name = project_name
185+
159186
@property
160187
def start_time(self):
161188
"""Gets the start_time of this QueryAttackAnalysisTermsAggLbRequest. # noqa: E501

0 commit comments

Comments
 (0)