Skip to content

Commit 1ba646b

Browse files
author
BitsAdmin
committed
Merge branch 'waf-Python-2023-12-25-online-1403-2025_07_29_22_51_03' into 'integration_2025-07-31_1022412084994'
feat: [development task] waf-1403-Python (1504244) See merge request iaasng/volcengine-python-sdk!724
2 parents a726806 + e043418 commit 1ba646b

14 files changed

+854
-15
lines changed

volcenginesdkwaf/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@
177177
from volcenginesdkwaf.models.group_for_list_cc_rule_output import GroupForListCCRuleOutput
178178
from volcenginesdkwaf.models.headers_config_for_batch_update_tls_fields_config_input import HeadersConfigForBatchUpdateTLSFieldsConfigInput
179179
from volcenginesdkwaf.models.headers_config_for_create_domain_input import HeadersConfigForCreateDomainInput
180+
from volcenginesdkwaf.models.headers_config_for_list_domain_output import HeadersConfigForListDomainOutput
180181
from volcenginesdkwaf.models.headers_config_for_update_domain_input import HeadersConfigForUpdateDomainInput
181182
from volcenginesdkwaf.models.host_group_for_list_acl_rule_output import HostGroupForListAclRuleOutput
182183
from volcenginesdkwaf.models.host_group_list_for_list_host_group_output import HostGroupListForListHostGroupOutput
@@ -262,6 +263,8 @@
262263
from volcenginesdkwaf.models.reason_for_list_prohibition_output import ReasonForListProhibitionOutput
263264
from volcenginesdkwaf.models.related_rule_for_list_all_ip_groups_output import RelatedRuleForListAllIpGroupsOutput
264265
from volcenginesdkwaf.models.related_rule_for_list_host_group_output import RelatedRuleForListHostGroupOutput
266+
from volcenginesdkwaf.models.replace_detail_for_check_llm_prompt_output import ReplaceDetailForCheckLLMPromptOutput
267+
from volcenginesdkwaf.models.replace_detail_for_check_llm_response_stream_output import ReplaceDetailForCheckLLMResponseStreamOutput
265268
from volcenginesdkwaf.models.rule_detail_for_list_vulnerability_rule_output import RuleDetailForListVulnerabilityRuleOutput
266269
from volcenginesdkwaf.models.rule_for_get_vulnerability_config_output import RuleForGetVulnerabilityConfigOutput
267270
from volcenginesdkwaf.models.rule_for_list_acl_rule_output import RuleForListAclRuleOutput
@@ -277,6 +280,7 @@
277280
from volcenginesdkwaf.models.tcp_listener_config_for_list_domain_output import TCPListenerConfigForListDomainOutput
278281
from volcenginesdkwaf.models.tls_fields_config_for_batch_update_tls_fields_config_input import TLSFieldsConfigForBatchUpdateTLSFieldsConfigInput
279282
from volcenginesdkwaf.models.tls_fields_config_for_create_domain_input import TLSFieldsConfigForCreateDomainInput
283+
from volcenginesdkwaf.models.tls_fields_config_for_list_domain_output import TLSFieldsConfigForListDomainOutput
280284
from volcenginesdkwaf.models.tls_fields_config_for_update_domain_input import TLSFieldsConfigForUpdateDomainInput
281285
from volcenginesdkwaf.models.update_acl_rule_request import UpdateAclRuleRequest
282286
from volcenginesdkwaf.models.update_acl_rule_response import UpdateAclRuleResponse

volcenginesdkwaf/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
from volcenginesdkwaf.models.group_for_list_cc_rule_output import GroupForListCCRuleOutput
174174
from volcenginesdkwaf.models.headers_config_for_batch_update_tls_fields_config_input import HeadersConfigForBatchUpdateTLSFieldsConfigInput
175175
from volcenginesdkwaf.models.headers_config_for_create_domain_input import HeadersConfigForCreateDomainInput
176+
from volcenginesdkwaf.models.headers_config_for_list_domain_output import HeadersConfigForListDomainOutput
176177
from volcenginesdkwaf.models.headers_config_for_update_domain_input import HeadersConfigForUpdateDomainInput
177178
from volcenginesdkwaf.models.host_group_for_list_acl_rule_output import HostGroupForListAclRuleOutput
178179
from volcenginesdkwaf.models.host_group_list_for_list_host_group_output import HostGroupListForListHostGroupOutput
@@ -258,6 +259,8 @@
258259
from volcenginesdkwaf.models.reason_for_list_prohibition_output import ReasonForListProhibitionOutput
259260
from volcenginesdkwaf.models.related_rule_for_list_all_ip_groups_output import RelatedRuleForListAllIpGroupsOutput
260261
from volcenginesdkwaf.models.related_rule_for_list_host_group_output import RelatedRuleForListHostGroupOutput
262+
from volcenginesdkwaf.models.replace_detail_for_check_llm_prompt_output import ReplaceDetailForCheckLLMPromptOutput
263+
from volcenginesdkwaf.models.replace_detail_for_check_llm_response_stream_output import ReplaceDetailForCheckLLMResponseStreamOutput
261264
from volcenginesdkwaf.models.rule_detail_for_list_vulnerability_rule_output import RuleDetailForListVulnerabilityRuleOutput
262265
from volcenginesdkwaf.models.rule_for_get_vulnerability_config_output import RuleForGetVulnerabilityConfigOutput
263266
from volcenginesdkwaf.models.rule_for_list_acl_rule_output import RuleForListAclRuleOutput
@@ -273,6 +276,7 @@
273276
from volcenginesdkwaf.models.tcp_listener_config_for_list_domain_output import TCPListenerConfigForListDomainOutput
274277
from volcenginesdkwaf.models.tls_fields_config_for_batch_update_tls_fields_config_input import TLSFieldsConfigForBatchUpdateTLSFieldsConfigInput
275278
from volcenginesdkwaf.models.tls_fields_config_for_create_domain_input import TLSFieldsConfigForCreateDomainInput
279+
from volcenginesdkwaf.models.tls_fields_config_for_list_domain_output import TLSFieldsConfigForListDomainOutput
276280
from volcenginesdkwaf.models.tls_fields_config_for_update_domain_input import TLSFieldsConfigForUpdateDomainInput
277281
from volcenginesdkwaf.models.update_acl_rule_request import UpdateAclRuleRequest
278282
from volcenginesdkwaf.models.update_acl_rule_response import UpdateAclRuleResponse

volcenginesdkwaf/models/check_llm_prompt_response.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,56 @@ class CheckLLMPromptResponse(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'context_id': 'str',
3637
'decision': 'DecisionForCheckLLMPromptOutput',
3738
'msg_id': 'str'
3839
}
3940

4041
attribute_map = {
42+
'context_id': 'ContextID',
4143
'decision': 'Decision',
4244
'msg_id': 'MsgID'
4345
}
4446

45-
def __init__(self, decision=None, msg_id=None, _configuration=None): # noqa: E501
47+
def __init__(self, context_id=None, decision=None, msg_id=None, _configuration=None): # noqa: E501
4648
"""CheckLLMPromptResponse - a model defined in Swagger""" # noqa: E501
4749
if _configuration is None:
4850
_configuration = Configuration()
4951
self._configuration = _configuration
5052

53+
self._context_id = None
5154
self._decision = None
5255
self._msg_id = None
5356
self.discriminator = None
5457

58+
if context_id is not None:
59+
self.context_id = context_id
5560
if decision is not None:
5661
self.decision = decision
5762
if msg_id is not None:
5863
self.msg_id = msg_id
5964

65+
@property
66+
def context_id(self):
67+
"""Gets the context_id of this CheckLLMPromptResponse. # noqa: E501
68+
69+
70+
:return: The context_id of this CheckLLMPromptResponse. # noqa: E501
71+
:rtype: str
72+
"""
73+
return self._context_id
74+
75+
@context_id.setter
76+
def context_id(self, context_id):
77+
"""Sets the context_id of this CheckLLMPromptResponse.
78+
79+
80+
:param context_id: The context_id of this CheckLLMPromptResponse. # noqa: E501
81+
:type: str
82+
"""
83+
84+
self._context_id = context_id
85+
6086
@property
6187
def decision(self):
6288
"""Gets the decision of this CheckLLMPromptResponse. # noqa: E501

volcenginesdkwaf/models/check_llm_response_stream_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class CheckLLMResponseStreamRequest(object):
3535
swagger_types = {
3636
'content': 'str',
3737
'content_type': 'int',
38+
'context_id': 'str',
3839
'host': 'str',
3940
'msg_class': 'int',
4041
'msg_id': 'str',
@@ -46,6 +47,7 @@ class CheckLLMResponseStreamRequest(object):
4647
attribute_map = {
4748
'content': 'Content',
4849
'content_type': 'ContentType',
50+
'context_id': 'ContextID',
4951
'host': 'Host',
5052
'msg_class': 'MsgClass',
5153
'msg_id': 'MsgID',
@@ -54,14 +56,15 @@ class CheckLLMResponseStreamRequest(object):
5456
'use_stream': 'UseStream'
5557
}
5658

57-
def __init__(self, content=None, content_type=None, host=None, msg_class=None, msg_id=None, region=None, timeout=None, use_stream=None, _configuration=None): # noqa: E501
59+
def __init__(self, content=None, content_type=None, context_id=None, host=None, msg_class=None, msg_id=None, region=None, timeout=None, use_stream=None, _configuration=None): # noqa: E501
5860
"""CheckLLMResponseStreamRequest - a model defined in Swagger""" # noqa: E501
5961
if _configuration is None:
6062
_configuration = Configuration()
6163
self._configuration = _configuration
6264

6365
self._content = None
6466
self._content_type = None
67+
self._context_id = None
6568
self._host = None
6669
self._msg_class = None
6770
self._msg_id = None
@@ -72,6 +75,8 @@ def __init__(self, content=None, content_type=None, host=None, msg_class=None, m
7275

7376
self.content = content
7477
self.content_type = content_type
78+
if context_id is not None:
79+
self.context_id = context_id
7580
self.host = host
7681
self.msg_class = msg_class
7782
if msg_id is not None:
@@ -128,6 +133,27 @@ def content_type(self, content_type):
128133

129134
self._content_type = content_type
130135

136+
@property
137+
def context_id(self):
138+
"""Gets the context_id of this CheckLLMResponseStreamRequest. # noqa: E501
139+
140+
141+
:return: The context_id of this CheckLLMResponseStreamRequest. # noqa: E501
142+
:rtype: str
143+
"""
144+
return self._context_id
145+
146+
@context_id.setter
147+
def context_id(self, context_id):
148+
"""Sets the context_id of this CheckLLMResponseStreamRequest.
149+
150+
151+
:param context_id: The context_id of this CheckLLMResponseStreamRequest. # noqa: E501
152+
:type: str
153+
"""
154+
155+
self._context_id = context_id
156+
131157
@property
132158
def host(self):
133159
"""Gets the host of this CheckLLMResponseStreamRequest. # noqa: E501

volcenginesdkwaf/models/check_llm_response_stream_response.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,56 @@ class CheckLLMResponseStreamResponse(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'context_id': 'str',
3637
'decision': 'DecisionForCheckLLMResponseStreamOutput',
3738
'msg_id': 'str'
3839
}
3940

4041
attribute_map = {
42+
'context_id': 'ContextID',
4143
'decision': 'Decision',
4244
'msg_id': 'MsgID'
4345
}
4446

45-
def __init__(self, decision=None, msg_id=None, _configuration=None): # noqa: E501
47+
def __init__(self, context_id=None, decision=None, msg_id=None, _configuration=None): # noqa: E501
4648
"""CheckLLMResponseStreamResponse - a model defined in Swagger""" # noqa: E501
4749
if _configuration is None:
4850
_configuration = Configuration()
4951
self._configuration = _configuration
5052

53+
self._context_id = None
5154
self._decision = None
5255
self._msg_id = None
5356
self.discriminator = None
5457

58+
if context_id is not None:
59+
self.context_id = context_id
5560
if decision is not None:
5661
self.decision = decision
5762
if msg_id is not None:
5863
self.msg_id = msg_id
5964

65+
@property
66+
def context_id(self):
67+
"""Gets the context_id of this CheckLLMResponseStreamResponse. # noqa: E501
68+
69+
70+
:return: The context_id of this CheckLLMResponseStreamResponse. # noqa: E501
71+
:rtype: str
72+
"""
73+
return self._context_id
74+
75+
@context_id.setter
76+
def context_id(self, context_id):
77+
"""Sets the context_id of this CheckLLMResponseStreamResponse.
78+
79+
80+
:param context_id: The context_id of this CheckLLMResponseStreamResponse. # noqa: E501
81+
:type: str
82+
"""
83+
84+
self._context_id = context_id
85+
6086
@property
6187
def decision(self):
6288
"""Gets the decision of this CheckLLMResponseStreamResponse. # noqa: E501

volcenginesdkwaf/models/data_for_list_custom_bot_config_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DataForListCustomBotConfigOutput(object):
3939
'bot_type': 'str',
4040
'description': 'str',
4141
'enable': 'int',
42-
'id': 'str',
42+
'id': 'int',
4343
'rule_tag': 'str',
4444
'update_time': 'str'
4545
}
@@ -224,7 +224,7 @@ def id(self):
224224
225225
226226
:return: The id of this DataForListCustomBotConfigOutput. # noqa: E501
227-
:rtype: str
227+
:rtype: int
228228
"""
229229
return self._id
230230

@@ -234,7 +234,7 @@ def id(self, id):
234234
235235
236236
:param id: The id of this DataForListCustomBotConfigOutput. # noqa: E501
237-
:type: str
237+
:type: int
238238
"""
239239

240240
self._id = id

0 commit comments

Comments
 (0)