Skip to content

Commit a959351

Browse files
author
BitsAdmin
committed
Merge branch 'waf-Python-2023-12-25-online-877-2024_12_24_16_27_07' into 'integration_2024-12-26_654549934850'
feat: [development task] waf-877-Python (938967) See merge request iaasng/volcengine-python-sdk!464
2 parents 1fa057a + 22d988f commit a959351

File tree

69 files changed

+15631
-987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+15631
-987
lines changed

volcenginesdkwaf/__init__.py

Lines changed: 60 additions & 4 deletions
Large diffs are not rendered by default.

volcenginesdkwaf/api/waf_api.py

Lines changed: 2016 additions & 464 deletions
Large diffs are not rendered by default.

volcenginesdkwaf/models/__init__.py

Lines changed: 60 additions & 4 deletions
Large diffs are not rendered by default.

volcenginesdkwaf/models/accurate_group_for_create_acl_rule_input.py

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -33,61 +33,30 @@ class AccurateGroupForCreateAclRuleInput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36-
'accurate_group_priority': 'int',
3736
'accurate_rules': 'list[AccurateRuleForCreateAclRuleInput]',
38-
'id': 'int',
3937
'logic': 'int'
4038
}
4139

4240
attribute_map = {
43-
'accurate_group_priority': 'AccurateGroupPriority',
4441
'accurate_rules': 'AccurateRules',
45-
'id': 'Id',
4642
'logic': 'Logic'
4743
}
4844

49-
def __init__(self, accurate_group_priority=None, accurate_rules=None, id=None, logic=None, _configuration=None): # noqa: E501
45+
def __init__(self, accurate_rules=None, logic=None, _configuration=None): # noqa: E501
5046
"""AccurateGroupForCreateAclRuleInput - a model defined in Swagger""" # noqa: E501
5147
if _configuration is None:
5248
_configuration = Configuration()
5349
self._configuration = _configuration
5450

55-
self._accurate_group_priority = None
5651
self._accurate_rules = None
57-
self._id = None
5852
self._logic = None
5953
self.discriminator = None
6054

61-
if accurate_group_priority is not None:
62-
self.accurate_group_priority = accurate_group_priority
6355
if accurate_rules is not None:
6456
self.accurate_rules = accurate_rules
65-
if id is not None:
66-
self.id = id
6757
if logic is not None:
6858
self.logic = logic
6959

70-
@property
71-
def accurate_group_priority(self):
72-
"""Gets the accurate_group_priority of this AccurateGroupForCreateAclRuleInput. # noqa: E501
73-
74-
75-
:return: The accurate_group_priority of this AccurateGroupForCreateAclRuleInput. # noqa: E501
76-
:rtype: int
77-
"""
78-
return self._accurate_group_priority
79-
80-
@accurate_group_priority.setter
81-
def accurate_group_priority(self, accurate_group_priority):
82-
"""Sets the accurate_group_priority of this AccurateGroupForCreateAclRuleInput.
83-
84-
85-
:param accurate_group_priority: The accurate_group_priority of this AccurateGroupForCreateAclRuleInput. # noqa: E501
86-
:type: int
87-
"""
88-
89-
self._accurate_group_priority = accurate_group_priority
90-
9160
@property
9261
def accurate_rules(self):
9362
"""Gets the accurate_rules of this AccurateGroupForCreateAclRuleInput. # noqa: E501
@@ -109,27 +78,6 @@ def accurate_rules(self, accurate_rules):
10978

11079
self._accurate_rules = accurate_rules
11180

112-
@property
113-
def id(self):
114-
"""Gets the id of this AccurateGroupForCreateAclRuleInput. # noqa: E501
115-
116-
117-
:return: The id of this AccurateGroupForCreateAclRuleInput. # noqa: E501
118-
:rtype: int
119-
"""
120-
return self._id
121-
122-
@id.setter
123-
def id(self, id):
124-
"""Sets the id of this AccurateGroupForCreateAclRuleInput.
125-
126-
127-
:param id: The id of this AccurateGroupForCreateAclRuleInput. # noqa: E501
128-
:type: int
129-
"""
130-
131-
self._id = id
132-
13381
@property
13482
def logic(self):
13583
"""Gets the logic of this AccurateGroupForCreateAclRuleInput. # noqa: E501
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+
waf
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 AccurateGroupForCreateCCRuleInput(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+
'accurate_rules': 'list[AccurateRuleForCreateCCRuleInput]',
37+
'logic': 'int'
38+
}
39+
40+
attribute_map = {
41+
'accurate_rules': 'AccurateRules',
42+
'logic': 'Logic'
43+
}
44+
45+
def __init__(self, accurate_rules=None, logic=None, _configuration=None): # noqa: E501
46+
"""AccurateGroupForCreateCCRuleInput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._accurate_rules = None
52+
self._logic = None
53+
self.discriminator = None
54+
55+
if accurate_rules is not None:
56+
self.accurate_rules = accurate_rules
57+
if logic is not None:
58+
self.logic = logic
59+
60+
@property
61+
def accurate_rules(self):
62+
"""Gets the accurate_rules of this AccurateGroupForCreateCCRuleInput. # noqa: E501
63+
64+
65+
:return: The accurate_rules of this AccurateGroupForCreateCCRuleInput. # noqa: E501
66+
:rtype: list[AccurateRuleForCreateCCRuleInput]
67+
"""
68+
return self._accurate_rules
69+
70+
@accurate_rules.setter
71+
def accurate_rules(self, accurate_rules):
72+
"""Sets the accurate_rules of this AccurateGroupForCreateCCRuleInput.
73+
74+
75+
:param accurate_rules: The accurate_rules of this AccurateGroupForCreateCCRuleInput. # noqa: E501
76+
:type: list[AccurateRuleForCreateCCRuleInput]
77+
"""
78+
79+
self._accurate_rules = accurate_rules
80+
81+
@property
82+
def logic(self):
83+
"""Gets the logic of this AccurateGroupForCreateCCRuleInput. # noqa: E501
84+
85+
86+
:return: The logic of this AccurateGroupForCreateCCRuleInput. # noqa: E501
87+
:rtype: int
88+
"""
89+
return self._logic
90+
91+
@logic.setter
92+
def logic(self, logic):
93+
"""Sets the logic of this AccurateGroupForCreateCCRuleInput.
94+
95+
96+
:param logic: The logic of this AccurateGroupForCreateCCRuleInput. # noqa: E501
97+
:type: int
98+
"""
99+
100+
self._logic = logic
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(AccurateGroupForCreateCCRuleInput, 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, AccurateGroupForCreateCCRuleInput):
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, AccurateGroupForCreateCCRuleInput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()

volcenginesdkwaf/models/accurate_group_for_update_acl_rule_input.py

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -33,61 +33,30 @@ class AccurateGroupForUpdateAclRuleInput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36-
'accurate_group_priority': 'int',
3736
'accurate_rules': 'list[AccurateRuleForUpdateAclRuleInput]',
38-
'id': 'int',
3937
'logic': 'int'
4038
}
4139

4240
attribute_map = {
43-
'accurate_group_priority': 'AccurateGroupPriority',
4441
'accurate_rules': 'AccurateRules',
45-
'id': 'Id',
4642
'logic': 'Logic'
4743
}
4844

49-
def __init__(self, accurate_group_priority=None, accurate_rules=None, id=None, logic=None, _configuration=None): # noqa: E501
45+
def __init__(self, accurate_rules=None, logic=None, _configuration=None): # noqa: E501
5046
"""AccurateGroupForUpdateAclRuleInput - a model defined in Swagger""" # noqa: E501
5147
if _configuration is None:
5248
_configuration = Configuration()
5349
self._configuration = _configuration
5450

55-
self._accurate_group_priority = None
5651
self._accurate_rules = None
57-
self._id = None
5852
self._logic = None
5953
self.discriminator = None
6054

61-
if accurate_group_priority is not None:
62-
self.accurate_group_priority = accurate_group_priority
6355
if accurate_rules is not None:
6456
self.accurate_rules = accurate_rules
65-
if id is not None:
66-
self.id = id
6757
if logic is not None:
6858
self.logic = logic
6959

70-
@property
71-
def accurate_group_priority(self):
72-
"""Gets the accurate_group_priority of this AccurateGroupForUpdateAclRuleInput. # noqa: E501
73-
74-
75-
:return: The accurate_group_priority of this AccurateGroupForUpdateAclRuleInput. # noqa: E501
76-
:rtype: int
77-
"""
78-
return self._accurate_group_priority
79-
80-
@accurate_group_priority.setter
81-
def accurate_group_priority(self, accurate_group_priority):
82-
"""Sets the accurate_group_priority of this AccurateGroupForUpdateAclRuleInput.
83-
84-
85-
:param accurate_group_priority: The accurate_group_priority of this AccurateGroupForUpdateAclRuleInput. # noqa: E501
86-
:type: int
87-
"""
88-
89-
self._accurate_group_priority = accurate_group_priority
90-
9160
@property
9261
def accurate_rules(self):
9362
"""Gets the accurate_rules of this AccurateGroupForUpdateAclRuleInput. # noqa: E501
@@ -109,27 +78,6 @@ def accurate_rules(self, accurate_rules):
10978

11079
self._accurate_rules = accurate_rules
11180

112-
@property
113-
def id(self):
114-
"""Gets the id of this AccurateGroupForUpdateAclRuleInput. # noqa: E501
115-
116-
117-
:return: The id of this AccurateGroupForUpdateAclRuleInput. # noqa: E501
118-
:rtype: int
119-
"""
120-
return self._id
121-
122-
@id.setter
123-
def id(self, id):
124-
"""Sets the id of this AccurateGroupForUpdateAclRuleInput.
125-
126-
127-
:param id: The id of this AccurateGroupForUpdateAclRuleInput. # noqa: E501
128-
:type: int
129-
"""
130-
131-
self._id = id
132-
13381
@property
13482
def logic(self):
13583
"""Gets the logic of this AccurateGroupForUpdateAclRuleInput. # noqa: E501

0 commit comments

Comments
 (0)