Skip to content

Commit add7c64

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for waf-Python-2023-12-25-online-328-2024_02_05_14_45_00
1 parent 45e7fe0 commit add7c64

13 files changed

+345
-173
lines changed

meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "1.0.64",
3-
"meta_commit": "9deec6ee0f1ae3e7ee7786204733b3d8a32c2800"
4-
}
2+
"lasted": "1.0.65",
3+
"meta_commit": "91e2ea8978bf19f8688e59ee8901e20b227bc8cf"
4+
}

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 = "1.0.64"
6+
VERSION = "1.0.65"
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
@@ -67,7 +67,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6767
self.default_headers[header_name] = header_value
6868
self.cookie = cookie
6969
# Set default User-Agent.
70-
self.user_agent = 'volcstack-python-sdk/1.0.64'
70+
self.user_agent = 'volcstack-python-sdk/1.0.65'
7171
self.client_side_validation = configuration.client_side_validation
7272

7373
def __del__(self):

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ def to_debug_report(self):
221221
"OS: {env}\n"\
222222
"Python Version: {pyversion}\n"\
223223
"Version of the API: 0.1.0\n"\
224-
"SDK Package Version: 1.0.64".\
224+
"SDK Package Version: 1.0.65".\
225225
format(env=sys.platform, pyversion=sys.version)

volcenginesdkwaf/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
from volcenginesdkwaf.models.freq_scan_for_update_vulnerability_config_input import FreqScanForUpdateVulnerabilityConfigInput
8080
from volcenginesdkwaf.models.get_vulnerability_config_request import GetVulnerabilityConfigRequest
8181
from volcenginesdkwaf.models.get_vulnerability_config_response import GetVulnerabilityConfigResponse
82+
from volcenginesdkwaf.models.ip_group_for_list_allow_rule_output import IpGroupForListAllowRuleOutput
83+
from volcenginesdkwaf.models.ip_group_for_list_block_rule_output import IpGroupForListBlockRuleOutput
8284
from volcenginesdkwaf.models.ip_group_list_for_list_all_ip_groups_output import IpGroupListForListAllIpGroupsOutput
8385
from volcenginesdkwaf.models.list_all_ip_groups_request import ListAllIpGroupsRequest
8486
from volcenginesdkwaf.models.list_all_ip_groups_response import ListAllIpGroupsResponse

volcenginesdkwaf/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
from volcenginesdkwaf.models.freq_scan_for_update_vulnerability_config_input import FreqScanForUpdateVulnerabilityConfigInput
7676
from volcenginesdkwaf.models.get_vulnerability_config_request import GetVulnerabilityConfigRequest
7777
from volcenginesdkwaf.models.get_vulnerability_config_response import GetVulnerabilityConfigResponse
78+
from volcenginesdkwaf.models.ip_group_for_list_allow_rule_output import IpGroupForListAllowRuleOutput
79+
from volcenginesdkwaf.models.ip_group_for_list_block_rule_output import IpGroupForListBlockRuleOutput
7880
from volcenginesdkwaf.models.ip_group_list_for_list_all_ip_groups_output import IpGroupListForListAllIpGroupsOutput
7981
from volcenginesdkwaf.models.list_all_ip_groups_request import ListAllIpGroupsRequest
8082
from volcenginesdkwaf.models.list_all_ip_groups_response import ListAllIpGroupsResponse

volcenginesdkwaf/models/create_domain_request.py

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class CreateDomainRequest(object):
5757
'proxy_retry': 'int',
5858
'proxy_write_time_out': 'int',
5959
'public_real_server': 'int',
60-
'redirect_https': 'bool',
6160
'region': 'str',
6261
'ssl_ciphers': 'list[str]',
6362
'ssl_protocols': 'list[str]',
@@ -90,15 +89,14 @@ class CreateDomainRequest(object):
9089
'proxy_retry': 'ProxyRetry',
9190
'proxy_write_time_out': 'ProxyWriteTimeOut',
9291
'public_real_server': 'PublicRealServer',
93-
'redirect_https': 'RedirectHTTPS',
9492
'region': 'Region',
9593
'ssl_ciphers': 'SSLCiphers',
9694
'ssl_protocols': 'SSLProtocols',
9795
'tls_enable': 'TLSEnable',
9896
'vpc_id': 'VpcID'
9997
}
10098

101-
def __init__(self, access_mode=None, backend_groups=None, certificate_id=None, client_ip_location=None, client_max_body_size=None, cloud_access_config=None, custom_header=None, domain=None, enable_http2=None, enable_i_pv6=None, keep_alive_request=None, keep_alive_time_out=None, lb_algorithm=None, protocol_follow=None, protocol_ports=None, protocols=None, proxy_config=None, proxy_connect_time_out=None, proxy_keep_alive=None, proxy_keep_alive_time_out=None, proxy_read_time_out=None, proxy_retry=None, proxy_write_time_out=None, public_real_server=None, redirect_https=None, region=None, ssl_ciphers=None, ssl_protocols=None, tls_enable=None, vpc_id=None, _configuration=None): # noqa: E501
99+
def __init__(self, access_mode=None, backend_groups=None, certificate_id=None, client_ip_location=None, client_max_body_size=None, cloud_access_config=None, custom_header=None, domain=None, enable_http2=None, enable_i_pv6=None, keep_alive_request=None, keep_alive_time_out=None, lb_algorithm=None, protocol_follow=None, protocol_ports=None, protocols=None, proxy_config=None, proxy_connect_time_out=None, proxy_keep_alive=None, proxy_keep_alive_time_out=None, proxy_read_time_out=None, proxy_retry=None, proxy_write_time_out=None, public_real_server=None, region=None, ssl_ciphers=None, ssl_protocols=None, tls_enable=None, vpc_id=None, _configuration=None): # noqa: E501
102100
"""CreateDomainRequest - a model defined in Swagger""" # noqa: E501
103101
if _configuration is None:
104102
_configuration = Configuration()
@@ -128,7 +126,6 @@ def __init__(self, access_mode=None, backend_groups=None, certificate_id=None, c
128126
self._proxy_retry = None
129127
self._proxy_write_time_out = None
130128
self._public_real_server = None
131-
self._redirect_https = None
132129
self._region = None
133130
self._ssl_ciphers = None
134131
self._ssl_protocols = None
@@ -182,8 +179,6 @@ def __init__(self, access_mode=None, backend_groups=None, certificate_id=None, c
182179
self.proxy_write_time_out = proxy_write_time_out
183180
if public_real_server is not None:
184181
self.public_real_server = public_real_server
185-
if redirect_https is not None:
186-
self.redirect_https = redirect_https
187182
self.region = region
188183
if ssl_ciphers is not None:
189184
self.ssl_ciphers = ssl_ciphers
@@ -702,27 +697,6 @@ def public_real_server(self, public_real_server):
702697

703698
self._public_real_server = public_real_server
704699

705-
@property
706-
def redirect_https(self):
707-
"""Gets the redirect_https of this CreateDomainRequest. # noqa: E501
708-
709-
710-
:return: The redirect_https of this CreateDomainRequest. # noqa: E501
711-
:rtype: bool
712-
"""
713-
return self._redirect_https
714-
715-
@redirect_https.setter
716-
def redirect_https(self, redirect_https):
717-
"""Sets the redirect_https of this CreateDomainRequest.
718-
719-
720-
:param redirect_https: The redirect_https of this CreateDomainRequest. # noqa: E501
721-
:type: bool
722-
"""
723-
724-
self._redirect_https = redirect_https
725-
726700
@property
727701
def region(self):
728702
"""Gets the region of this CreateDomainRequest. # noqa: E501

volcenginesdkwaf/models/datum_for_list_allow_rule_output.py

Lines changed: 17 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ class DatumForListAllowRuleOutput(object):
4343
'host': 'str',
4444
'id': 'int',
4545
'ip_add_type': 'int',
46-
'ip_group_id': 'int',
46+
'ip_groups': 'list[IpGroupForListAllowRuleOutput]',
4747
'ip_type': 'int',
4848
'isolation_id': 'str',
4949
'js_conf_id': 'int',
5050
'name': 'str',
51-
'policy': 'int',
5251
'rule_tag': 'str',
5352
'update_time': 'str',
5453
'url': 'str'
@@ -65,18 +64,17 @@ class DatumForListAllowRuleOutput(object):
6564
'host': 'Host',
6665
'id': 'Id',
6766
'ip_add_type': 'IpAddType',
68-
'ip_group_id': 'IpGroupId',
67+
'ip_groups': 'IpGroups',
6968
'ip_type': 'IpType',
7069
'isolation_id': 'IsolationId',
7170
'js_conf_id': 'JsConfId',
7271
'name': 'Name',
73-
'policy': 'Policy',
7472
'rule_tag': 'RuleTag',
7573
'update_time': 'UpdateTime',
7674
'url': 'Url'
7775
}
7876

79-
def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, description=None, enable=None, group_id=None, host=None, id=None, ip_add_type=None, ip_group_id=None, ip_type=None, isolation_id=None, js_conf_id=None, name=None, policy=None, rule_tag=None, update_time=None, url=None, _configuration=None): # noqa: E501
77+
def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, description=None, enable=None, group_id=None, host=None, id=None, ip_add_type=None, ip_groups=None, ip_type=None, isolation_id=None, js_conf_id=None, name=None, rule_tag=None, update_time=None, url=None, _configuration=None): # noqa: E501
8078
"""DatumForListAllowRuleOutput - a model defined in Swagger""" # noqa: E501
8179
if _configuration is None:
8280
_configuration = Configuration()
@@ -92,12 +90,11 @@ def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, des
9290
self._host = None
9391
self._id = None
9492
self._ip_add_type = None
95-
self._ip_group_id = None
93+
self._ip_groups = None
9694
self._ip_type = None
9795
self._isolation_id = None
9896
self._js_conf_id = None
9997
self._name = None
100-
self._policy = None
10198
self._rule_tag = None
10299
self._update_time = None
103100
self._url = None
@@ -123,8 +120,8 @@ def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, des
123120
self.id = id
124121
if ip_add_type is not None:
125122
self.ip_add_type = ip_add_type
126-
if ip_group_id is not None:
127-
self.ip_group_id = ip_group_id
123+
if ip_groups is not None:
124+
self.ip_groups = ip_groups
128125
if ip_type is not None:
129126
self.ip_type = ip_type
130127
if isolation_id is not None:
@@ -133,8 +130,6 @@ def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, des
133130
self.js_conf_id = js_conf_id
134131
if name is not None:
135132
self.name = name
136-
if policy is not None:
137-
self.policy = policy
138133
if rule_tag is not None:
139134
self.rule_tag = rule_tag
140135
if update_time is not None:
@@ -353,25 +348,25 @@ def ip_add_type(self, ip_add_type):
353348
self._ip_add_type = ip_add_type
354349

355350
@property
356-
def ip_group_id(self):
357-
"""Gets the ip_group_id of this DatumForListAllowRuleOutput. # noqa: E501
351+
def ip_groups(self):
352+
"""Gets the ip_groups of this DatumForListAllowRuleOutput. # noqa: E501
358353
359354
360-
:return: The ip_group_id of this DatumForListAllowRuleOutput. # noqa: E501
361-
:rtype: int
355+
:return: The ip_groups of this DatumForListAllowRuleOutput. # noqa: E501
356+
:rtype: list[IpGroupForListAllowRuleOutput]
362357
"""
363-
return self._ip_group_id
358+
return self._ip_groups
364359

365-
@ip_group_id.setter
366-
def ip_group_id(self, ip_group_id):
367-
"""Sets the ip_group_id of this DatumForListAllowRuleOutput.
360+
@ip_groups.setter
361+
def ip_groups(self, ip_groups):
362+
"""Sets the ip_groups of this DatumForListAllowRuleOutput.
368363
369364
370-
:param ip_group_id: The ip_group_id of this DatumForListAllowRuleOutput. # noqa: E501
371-
:type: int
365+
:param ip_groups: The ip_groups of this DatumForListAllowRuleOutput. # noqa: E501
366+
:type: list[IpGroupForListAllowRuleOutput]
372367
"""
373368

374-
self._ip_group_id = ip_group_id
369+
self._ip_groups = ip_groups
375370

376371
@property
377372
def ip_type(self):
@@ -457,27 +452,6 @@ def name(self, name):
457452

458453
self._name = name
459454

460-
@property
461-
def policy(self):
462-
"""Gets the policy of this DatumForListAllowRuleOutput. # noqa: E501
463-
464-
465-
:return: The policy of this DatumForListAllowRuleOutput. # noqa: E501
466-
:rtype: int
467-
"""
468-
return self._policy
469-
470-
@policy.setter
471-
def policy(self, policy):
472-
"""Sets the policy of this DatumForListAllowRuleOutput.
473-
474-
475-
:param policy: The policy of this DatumForListAllowRuleOutput. # noqa: E501
476-
:type: int
477-
"""
478-
479-
self._policy = policy
480-
481455
@property
482456
def rule_tag(self):
483457
"""Gets the rule_tag of this DatumForListAllowRuleOutput. # noqa: E501

volcenginesdkwaf/models/datum_for_list_block_rule_output.py

Lines changed: 17 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ class DatumForListBlockRuleOutput(object):
4343
'host': 'str',
4444
'id': 'int',
4545
'ip_add_type': 'int',
46-
'ip_group_id': 'int',
46+
'ip_groups': 'list[IpGroupForListBlockRuleOutput]',
4747
'ip_type': 'int',
4848
'isolation_id': 'str',
4949
'js_conf_id': 'int',
5050
'name': 'str',
51-
'policy': 'int',
5251
'rule_tag': 'str',
5352
'update_time': 'str',
5453
'url': 'str'
@@ -65,18 +64,17 @@ class DatumForListBlockRuleOutput(object):
6564
'host': 'Host',
6665
'id': 'Id',
6766
'ip_add_type': 'IpAddType',
68-
'ip_group_id': 'IpGroupId',
67+
'ip_groups': 'IpGroups',
6968
'ip_type': 'IpType',
7069
'isolation_id': 'IsolationId',
7170
'js_conf_id': 'JsConfId',
7271
'name': 'Name',
73-
'policy': 'Policy',
7472
'rule_tag': 'RuleTag',
7573
'update_time': 'UpdateTime',
7674
'url': 'Url'
7775
}
7876

79-
def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, description=None, enable=None, group_id=None, host=None, id=None, ip_add_type=None, ip_group_id=None, ip_type=None, isolation_id=None, js_conf_id=None, name=None, policy=None, rule_tag=None, update_time=None, url=None, _configuration=None): # noqa: E501
77+
def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, description=None, enable=None, group_id=None, host=None, id=None, ip_add_type=None, ip_groups=None, ip_type=None, isolation_id=None, js_conf_id=None, name=None, rule_tag=None, update_time=None, url=None, _configuration=None): # noqa: E501
8078
"""DatumForListBlockRuleOutput - a model defined in Swagger""" # noqa: E501
8179
if _configuration is None:
8280
_configuration = Configuration()
@@ -92,12 +90,11 @@ def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, des
9290
self._host = None
9391
self._id = None
9492
self._ip_add_type = None
95-
self._ip_group_id = None
93+
self._ip_groups = None
9694
self._ip_type = None
9795
self._isolation_id = None
9896
self._js_conf_id = None
9997
self._name = None
100-
self._policy = None
10198
self._rule_tag = None
10299
self._update_time = None
103100
self._url = None
@@ -123,8 +120,8 @@ def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, des
123120
self.id = id
124121
if ip_add_type is not None:
125122
self.ip_add_type = ip_add_type
126-
if ip_group_id is not None:
127-
self.ip_group_id = ip_group_id
123+
if ip_groups is not None:
124+
self.ip_groups = ip_groups
128125
if ip_type is not None:
129126
self.ip_type = ip_type
130127
if isolation_id is not None:
@@ -133,8 +130,6 @@ def __init__(self, action=None, add_src=None, advanced=None, client_ip=None, des
133130
self.js_conf_id = js_conf_id
134131
if name is not None:
135132
self.name = name
136-
if policy is not None:
137-
self.policy = policy
138133
if rule_tag is not None:
139134
self.rule_tag = rule_tag
140135
if update_time is not None:
@@ -353,25 +348,25 @@ def ip_add_type(self, ip_add_type):
353348
self._ip_add_type = ip_add_type
354349

355350
@property
356-
def ip_group_id(self):
357-
"""Gets the ip_group_id of this DatumForListBlockRuleOutput. # noqa: E501
351+
def ip_groups(self):
352+
"""Gets the ip_groups of this DatumForListBlockRuleOutput. # noqa: E501
358353
359354
360-
:return: The ip_group_id of this DatumForListBlockRuleOutput. # noqa: E501
361-
:rtype: int
355+
:return: The ip_groups of this DatumForListBlockRuleOutput. # noqa: E501
356+
:rtype: list[IpGroupForListBlockRuleOutput]
362357
"""
363-
return self._ip_group_id
358+
return self._ip_groups
364359

365-
@ip_group_id.setter
366-
def ip_group_id(self, ip_group_id):
367-
"""Sets the ip_group_id of this DatumForListBlockRuleOutput.
360+
@ip_groups.setter
361+
def ip_groups(self, ip_groups):
362+
"""Sets the ip_groups of this DatumForListBlockRuleOutput.
368363
369364
370-
:param ip_group_id: The ip_group_id of this DatumForListBlockRuleOutput. # noqa: E501
371-
:type: int
365+
:param ip_groups: The ip_groups of this DatumForListBlockRuleOutput. # noqa: E501
366+
:type: list[IpGroupForListBlockRuleOutput]
372367
"""
373368

374-
self._ip_group_id = ip_group_id
369+
self._ip_groups = ip_groups
375370

376371
@property
377372
def ip_type(self):
@@ -457,27 +452,6 @@ def name(self, name):
457452

458453
self._name = name
459454

460-
@property
461-
def policy(self):
462-
"""Gets the policy of this DatumForListBlockRuleOutput. # noqa: E501
463-
464-
465-
:return: The policy of this DatumForListBlockRuleOutput. # noqa: E501
466-
:rtype: int
467-
"""
468-
return self._policy
469-
470-
@policy.setter
471-
def policy(self, policy):
472-
"""Sets the policy of this DatumForListBlockRuleOutput.
473-
474-
475-
:param policy: The policy of this DatumForListBlockRuleOutput. # noqa: E501
476-
:type: int
477-
"""
478-
479-
self._policy = policy
480-
481455
@property
482456
def rule_tag(self):
483457
"""Gets the rule_tag of this DatumForListBlockRuleOutput. # noqa: E501

0 commit comments

Comments
 (0)