byteplus-python-sdk-v2 3.0.59__py2.py3-none-any.whl → 3.0.60__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/METADATA +3 -1
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/RECORD +88 -53
- byteplussdkaidap/__init__.py +35 -0
- byteplussdkaidap/api/aidap_api.py +1177 -13
- byteplussdkaidap/models/__init__.py +35 -0
- byteplussdkaidap/models/bind_pages_project_request.py +230 -0
- byteplussdkaidap/models/bind_pages_project_response.py +95 -0
- byteplussdkaidap/models/binding_for_describe_pages_binding_output.py +253 -0
- byteplussdkaidap/models/branch_settings_for_create_branch_input.py +29 -3
- byteplussdkaidap/models/branch_usage_for_create_branch_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_branch_detail_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_branches_list_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_branches_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_child_branches_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_default_branch_list_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_default_branch_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_describe_restorable_branches_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_reset_branch_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_set_as_default_branch_output.py +79 -1
- byteplussdkaidap/models/branch_usage_for_update_branch_output.py +79 -1
- byteplussdkaidap/models/create_sql_concurrency_control_rule_request.py +442 -0
- byteplussdkaidap/models/create_sql_concurrency_control_rule_response.py +175 -0
- byteplussdkaidap/models/custom_quota_for_describe_baas_ai_user_summaries_output.py +27 -1
- byteplussdkaidap/models/custom_quota_for_modify_baas_ai_user_quotas_input.py +27 -1
- byteplussdkaidap/models/delete_sql_concurrency_control_rule_request.py +238 -0
- byteplussdkaidap/models/delete_sql_concurrency_control_rule_response.py +149 -0
- byteplussdkaidap/models/describe_pages_binding_request.py +151 -0
- byteplussdkaidap/models/describe_pages_binding_response.py +149 -0
- byteplussdkaidap/models/describe_sql_concurrency_control_rules_request.py +466 -0
- byteplussdkaidap/models/describe_sql_concurrency_control_rules_response.py +201 -0
- byteplussdkaidap/models/describe_workspaces_request.py +27 -1
- byteplussdkaidap/models/describe_workspaces_response.py +53 -1
- byteplussdkaidap/models/limit_config_for_create_sql_concurrency_control_rule_input.py +260 -0
- byteplussdkaidap/models/limit_config_for_modify_sql_concurrency_control_rule_input.py +260 -0
- byteplussdkaidap/models/list_pages_project_request.py +227 -0
- byteplussdkaidap/models/list_pages_project_response.py +201 -0
- byteplussdkaidap/models/match_for_create_sql_concurrency_control_rule_input.py +182 -0
- byteplussdkaidap/models/modify_compute_parameters_request.py +243 -0
- byteplussdkaidap/models/modify_compute_parameters_response.py +95 -0
- byteplussdkaidap/models/modify_compute_spec_request.py +34 -1
- byteplussdkaidap/models/modify_sql_concurrency_control_rule_request.py +264 -0
- byteplussdkaidap/models/modify_sql_concurrency_control_rule_response.py +149 -0
- byteplussdkaidap/models/pages_project_for_describe_pages_binding_output.py +357 -0
- byteplussdkaidap/models/parameter_for_modify_compute_parameters_input.py +149 -0
- byteplussdkaidap/models/project_for_list_pages_project_output.py +357 -0
- byteplussdkaidap/models/restore_settings_for_branch_restore_input.py +27 -1
- byteplussdkaidap/models/rule_for_describe_sql_concurrency_control_rules_output.py +565 -0
- byteplussdkaidap/models/start_workspace_request.py +27 -1
- byteplussdkaidap/models/supabase_binding_for_describe_pages_binding_output.py +253 -0
- byteplussdkaidap/models/supabase_binding_for_list_pages_project_output.py +253 -0
- byteplussdkaidap/models/suspend_workspace_request.py +124 -0
- byteplussdkaidap/models/suspend_workspace_response.py +95 -0
- byteplussdkaidap/models/switch_sql_concurrency_control_rule_request.py +265 -0
- byteplussdkaidap/models/switch_sql_concurrency_control_rule_response.py +149 -0
- byteplussdkaidap/models/sync_pages_deploy_env_vars_request.py +178 -0
- byteplussdkaidap/models/sync_pages_deploy_env_vars_response.py +95 -0
- byteplussdkaidap/models/unbind_pages_project_request.py +151 -0
- byteplussdkaidap/models/unbind_pages_project_response.py +95 -0
- byteplussdkaidap/models/usage_for_describe_baas_ai_user_summaries_output.py +53 -1
- byteplussdkaidap/models/user_default_quota_for_describe_baas_ai_global_quota_output.py +27 -1
- byteplussdkaidap/models/user_default_quota_for_modify_baas_ai_global_quota_input.py +27 -1
- byteplussdkaidap/models/volc_supabase_filter_for_list_pages_project_input.py +149 -0
- byteplussdkaidap/models/workspace_usage_for_create_workspace_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_describe_workspace_detail_list_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_describe_workspace_detail_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_describe_workspaces_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_list_workspace_usage_top_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_modify_compute_settings_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_modify_workspace_name_output.py +81 -3
- byteplussdkaidap/models/workspace_usage_for_modify_workspace_settings_output.py +81 -3
- byteplussdkcore/api_client.py +18 -14
- byteplussdkcore/auth/providers/sts_provider.py +0 -2
- byteplussdkcore/configuration.py +91 -21
- byteplussdkcore/interceptor/chain.py +23 -0
- byteplussdkcore/interceptor/interceptors/build_request_interceptor.py +2 -0
- byteplussdkcore/interceptor/interceptors/interceptor.py +2 -0
- byteplussdkcore/interceptor/interceptors/request.py +7 -2
- byteplussdkcore/interceptor/interceptors/resolve_endpoint_interceptor.py +2 -0
- byteplussdkcore/interceptor/interceptors/runtime_options_interceptor.py +28 -15
- byteplussdkcore/interceptor/interceptors/sign_request_interceptor.py +20 -0
- byteplussdkcore/retryer/retryer.py +89 -10
- byteplussdkllmshield/__init__.py +8 -0
- byteplussdkllmshield/api/llm_shield_sdk_v2.py +53 -5
- byteplussdkllmshield/models/llm_shield_sign.py +3 -3
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/WHEEL +0 -0
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/licenses/NOTICE.md +0 -0
- {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/top_level.txt +0 -0
|
@@ -33,25 +33,51 @@ class CustomQuotaForModifyBaasAIUserQuotasInput(object):
|
|
|
33
33
|
and the value is json key in definition.
|
|
34
34
|
"""
|
|
35
35
|
swagger_types = {
|
|
36
|
+
'daily_image_limit': 'int',
|
|
36
37
|
'daily_token_limit': 'int'
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
attribute_map = {
|
|
41
|
+
'daily_image_limit': 'DailyImageLimit',
|
|
40
42
|
'daily_token_limit': 'DailyTokenLimit'
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
def __init__(self, daily_token_limit=None, _configuration=None): # noqa: E501
|
|
45
|
+
def __init__(self, daily_image_limit=None, daily_token_limit=None, _configuration=None): # noqa: E501
|
|
44
46
|
"""CustomQuotaForModifyBaasAIUserQuotasInput - a model defined in Swagger""" # noqa: E501
|
|
45
47
|
if _configuration is None:
|
|
46
48
|
_configuration = Configuration()
|
|
47
49
|
self._configuration = _configuration
|
|
48
50
|
|
|
51
|
+
self._daily_image_limit = None
|
|
49
52
|
self._daily_token_limit = None
|
|
50
53
|
self.discriminator = None
|
|
51
54
|
|
|
55
|
+
if daily_image_limit is not None:
|
|
56
|
+
self.daily_image_limit = daily_image_limit
|
|
52
57
|
if daily_token_limit is not None:
|
|
53
58
|
self.daily_token_limit = daily_token_limit
|
|
54
59
|
|
|
60
|
+
@property
|
|
61
|
+
def daily_image_limit(self):
|
|
62
|
+
"""Gets the daily_image_limit of this CustomQuotaForModifyBaasAIUserQuotasInput. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The daily_image_limit of this CustomQuotaForModifyBaasAIUserQuotasInput. # noqa: E501
|
|
66
|
+
:rtype: int
|
|
67
|
+
"""
|
|
68
|
+
return self._daily_image_limit
|
|
69
|
+
|
|
70
|
+
@daily_image_limit.setter
|
|
71
|
+
def daily_image_limit(self, daily_image_limit):
|
|
72
|
+
"""Sets the daily_image_limit of this CustomQuotaForModifyBaasAIUserQuotasInput.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param daily_image_limit: The daily_image_limit of this CustomQuotaForModifyBaasAIUserQuotasInput. # noqa: E501
|
|
76
|
+
:type: int
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._daily_image_limit = daily_image_limit
|
|
80
|
+
|
|
55
81
|
@property
|
|
56
82
|
def daily_token_limit(self):
|
|
57
83
|
"""Gets the daily_token_limit of this CustomQuotaForModifyBaasAIUserQuotasInput. # noqa: E501
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
aidap
|
|
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 byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DeleteSQLConcurrencyControlRuleRequest(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
|
+
'branch_id': 'str',
|
|
37
|
+
'database_name': 'str',
|
|
38
|
+
'effect_type': 'str',
|
|
39
|
+
'rule_id': 'int',
|
|
40
|
+
'workspace_id': 'str'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'branch_id': 'BranchId',
|
|
45
|
+
'database_name': 'DatabaseName',
|
|
46
|
+
'effect_type': 'EffectType',
|
|
47
|
+
'rule_id': 'RuleId',
|
|
48
|
+
'workspace_id': 'WorkspaceId'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, branch_id=None, database_name=None, effect_type=None, rule_id=None, workspace_id=None, _configuration=None): # noqa: E501
|
|
52
|
+
"""DeleteSQLConcurrencyControlRuleRequest - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
if _configuration is None:
|
|
54
|
+
_configuration = Configuration()
|
|
55
|
+
self._configuration = _configuration
|
|
56
|
+
|
|
57
|
+
self._branch_id = None
|
|
58
|
+
self._database_name = None
|
|
59
|
+
self._effect_type = None
|
|
60
|
+
self._rule_id = None
|
|
61
|
+
self._workspace_id = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
self.branch_id = branch_id
|
|
65
|
+
self.database_name = database_name
|
|
66
|
+
if effect_type is not None:
|
|
67
|
+
self.effect_type = effect_type
|
|
68
|
+
self.rule_id = rule_id
|
|
69
|
+
self.workspace_id = workspace_id
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def branch_id(self):
|
|
73
|
+
"""Gets the branch_id of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
:return: The branch_id of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._branch_id
|
|
80
|
+
|
|
81
|
+
@branch_id.setter
|
|
82
|
+
def branch_id(self, branch_id):
|
|
83
|
+
"""Sets the branch_id of this DeleteSQLConcurrencyControlRuleRequest.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:param branch_id: The branch_id of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
87
|
+
:type: str
|
|
88
|
+
"""
|
|
89
|
+
if self._configuration.client_side_validation and branch_id is None:
|
|
90
|
+
raise ValueError("Invalid value for `branch_id`, must not be `None`") # noqa: E501
|
|
91
|
+
|
|
92
|
+
self._branch_id = branch_id
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def database_name(self):
|
|
96
|
+
"""Gets the database_name of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The database_name of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._database_name
|
|
103
|
+
|
|
104
|
+
@database_name.setter
|
|
105
|
+
def database_name(self, database_name):
|
|
106
|
+
"""Sets the database_name of this DeleteSQLConcurrencyControlRuleRequest.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param database_name: The database_name of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
110
|
+
:type: str
|
|
111
|
+
"""
|
|
112
|
+
if self._configuration.client_side_validation and database_name is None:
|
|
113
|
+
raise ValueError("Invalid value for `database_name`, must not be `None`") # noqa: E501
|
|
114
|
+
|
|
115
|
+
self._database_name = database_name
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def effect_type(self):
|
|
119
|
+
"""Gets the effect_type of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:return: The effect_type of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._effect_type
|
|
126
|
+
|
|
127
|
+
@effect_type.setter
|
|
128
|
+
def effect_type(self, effect_type):
|
|
129
|
+
"""Sets the effect_type of this DeleteSQLConcurrencyControlRuleRequest.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:param effect_type: The effect_type of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
133
|
+
:type: str
|
|
134
|
+
"""
|
|
135
|
+
allowed_values = ["NextWakeUp", "Immediate"] # noqa: E501
|
|
136
|
+
if (self._configuration.client_side_validation and
|
|
137
|
+
effect_type not in allowed_values):
|
|
138
|
+
raise ValueError(
|
|
139
|
+
"Invalid value for `effect_type` ({0}), must be one of {1}" # noqa: E501
|
|
140
|
+
.format(effect_type, allowed_values)
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
self._effect_type = effect_type
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def rule_id(self):
|
|
147
|
+
"""Gets the rule_id of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:return: The rule_id of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
151
|
+
:rtype: int
|
|
152
|
+
"""
|
|
153
|
+
return self._rule_id
|
|
154
|
+
|
|
155
|
+
@rule_id.setter
|
|
156
|
+
def rule_id(self, rule_id):
|
|
157
|
+
"""Sets the rule_id of this DeleteSQLConcurrencyControlRuleRequest.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param rule_id: The rule_id of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
161
|
+
:type: int
|
|
162
|
+
"""
|
|
163
|
+
if self._configuration.client_side_validation and rule_id is None:
|
|
164
|
+
raise ValueError("Invalid value for `rule_id`, must not be `None`") # noqa: E501
|
|
165
|
+
|
|
166
|
+
self._rule_id = rule_id
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def workspace_id(self):
|
|
170
|
+
"""Gets the workspace_id of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
:return: The workspace_id of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
174
|
+
:rtype: str
|
|
175
|
+
"""
|
|
176
|
+
return self._workspace_id
|
|
177
|
+
|
|
178
|
+
@workspace_id.setter
|
|
179
|
+
def workspace_id(self, workspace_id):
|
|
180
|
+
"""Sets the workspace_id of this DeleteSQLConcurrencyControlRuleRequest.
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
:param workspace_id: The workspace_id of this DeleteSQLConcurrencyControlRuleRequest. # noqa: E501
|
|
184
|
+
:type: str
|
|
185
|
+
"""
|
|
186
|
+
if self._configuration.client_side_validation and workspace_id is None:
|
|
187
|
+
raise ValueError("Invalid value for `workspace_id`, must not be `None`") # noqa: E501
|
|
188
|
+
|
|
189
|
+
self._workspace_id = workspace_id
|
|
190
|
+
|
|
191
|
+
def to_dict(self):
|
|
192
|
+
"""Returns the model properties as a dict"""
|
|
193
|
+
result = {}
|
|
194
|
+
|
|
195
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
196
|
+
value = getattr(self, attr)
|
|
197
|
+
if isinstance(value, list):
|
|
198
|
+
result[attr] = list(map(
|
|
199
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
200
|
+
value
|
|
201
|
+
))
|
|
202
|
+
elif hasattr(value, "to_dict"):
|
|
203
|
+
result[attr] = value.to_dict()
|
|
204
|
+
elif isinstance(value, dict):
|
|
205
|
+
result[attr] = dict(map(
|
|
206
|
+
lambda item: (item[0], item[1].to_dict())
|
|
207
|
+
if hasattr(item[1], "to_dict") else item,
|
|
208
|
+
value.items()
|
|
209
|
+
))
|
|
210
|
+
else:
|
|
211
|
+
result[attr] = value
|
|
212
|
+
if issubclass(DeleteSQLConcurrencyControlRuleRequest, dict):
|
|
213
|
+
for key, value in self.items():
|
|
214
|
+
result[key] = value
|
|
215
|
+
|
|
216
|
+
return result
|
|
217
|
+
|
|
218
|
+
def to_str(self):
|
|
219
|
+
"""Returns the string representation of the model"""
|
|
220
|
+
return pprint.pformat(self.to_dict())
|
|
221
|
+
|
|
222
|
+
def __repr__(self):
|
|
223
|
+
"""For `print` and `pprint`"""
|
|
224
|
+
return self.to_str()
|
|
225
|
+
|
|
226
|
+
def __eq__(self, other):
|
|
227
|
+
"""Returns true if both objects are equal"""
|
|
228
|
+
if not isinstance(other, DeleteSQLConcurrencyControlRuleRequest):
|
|
229
|
+
return False
|
|
230
|
+
|
|
231
|
+
return self.to_dict() == other.to_dict()
|
|
232
|
+
|
|
233
|
+
def __ne__(self, other):
|
|
234
|
+
"""Returns true if both objects are not equal"""
|
|
235
|
+
if not isinstance(other, DeleteSQLConcurrencyControlRuleRequest):
|
|
236
|
+
return True
|
|
237
|
+
|
|
238
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
aidap
|
|
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 byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DeleteSQLConcurrencyControlRuleResponse(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
|
+
'code': 'int',
|
|
37
|
+
'message': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'code': 'Code',
|
|
42
|
+
'message': 'Message'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, code=None, message=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""DeleteSQLConcurrencyControlRuleResponse - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._code = None
|
|
52
|
+
self._message = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if code is not None:
|
|
56
|
+
self.code = code
|
|
57
|
+
if message is not None:
|
|
58
|
+
self.message = message
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def code(self):
|
|
62
|
+
"""Gets the code of this DeleteSQLConcurrencyControlRuleResponse. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The code of this DeleteSQLConcurrencyControlRuleResponse. # noqa: E501
|
|
66
|
+
:rtype: int
|
|
67
|
+
"""
|
|
68
|
+
return self._code
|
|
69
|
+
|
|
70
|
+
@code.setter
|
|
71
|
+
def code(self, code):
|
|
72
|
+
"""Sets the code of this DeleteSQLConcurrencyControlRuleResponse.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param code: The code of this DeleteSQLConcurrencyControlRuleResponse. # noqa: E501
|
|
76
|
+
:type: int
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._code = code
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def message(self):
|
|
83
|
+
"""Gets the message of this DeleteSQLConcurrencyControlRuleResponse. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The message of this DeleteSQLConcurrencyControlRuleResponse. # noqa: E501
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._message
|
|
90
|
+
|
|
91
|
+
@message.setter
|
|
92
|
+
def message(self, message):
|
|
93
|
+
"""Sets the message of this DeleteSQLConcurrencyControlRuleResponse.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param message: The message of this DeleteSQLConcurrencyControlRuleResponse. # noqa: E501
|
|
97
|
+
:type: str
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._message = message
|
|
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(DeleteSQLConcurrencyControlRuleResponse, 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, DeleteSQLConcurrencyControlRuleResponse):
|
|
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, DeleteSQLConcurrencyControlRuleResponse):
|
|
147
|
+
return True
|
|
148
|
+
|
|
149
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
aidap
|
|
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 byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DescribePagesBindingRequest(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
|
+
'branch_id': 'str',
|
|
37
|
+
'workspace_id': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'branch_id': 'BranchId',
|
|
42
|
+
'workspace_id': 'WorkspaceId'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, branch_id=None, workspace_id=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""DescribePagesBindingRequest - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._branch_id = None
|
|
52
|
+
self._workspace_id = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
self.branch_id = branch_id
|
|
56
|
+
self.workspace_id = workspace_id
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def branch_id(self):
|
|
60
|
+
"""Gets the branch_id of this DescribePagesBindingRequest. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The branch_id of this DescribePagesBindingRequest. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._branch_id
|
|
67
|
+
|
|
68
|
+
@branch_id.setter
|
|
69
|
+
def branch_id(self, branch_id):
|
|
70
|
+
"""Sets the branch_id of this DescribePagesBindingRequest.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param branch_id: The branch_id of this DescribePagesBindingRequest. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
if self._configuration.client_side_validation and branch_id is None:
|
|
77
|
+
raise ValueError("Invalid value for `branch_id`, must not be `None`") # noqa: E501
|
|
78
|
+
|
|
79
|
+
self._branch_id = branch_id
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def workspace_id(self):
|
|
83
|
+
"""Gets the workspace_id of this DescribePagesBindingRequest. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The workspace_id of this DescribePagesBindingRequest. # noqa: E501
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._workspace_id
|
|
90
|
+
|
|
91
|
+
@workspace_id.setter
|
|
92
|
+
def workspace_id(self, workspace_id):
|
|
93
|
+
"""Sets the workspace_id of this DescribePagesBindingRequest.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param workspace_id: The workspace_id of this DescribePagesBindingRequest. # noqa: E501
|
|
97
|
+
:type: str
|
|
98
|
+
"""
|
|
99
|
+
if self._configuration.client_side_validation and workspace_id is None:
|
|
100
|
+
raise ValueError("Invalid value for `workspace_id`, must not be `None`") # noqa: E501
|
|
101
|
+
|
|
102
|
+
self._workspace_id = workspace_id
|
|
103
|
+
|
|
104
|
+
def to_dict(self):
|
|
105
|
+
"""Returns the model properties as a dict"""
|
|
106
|
+
result = {}
|
|
107
|
+
|
|
108
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
109
|
+
value = getattr(self, attr)
|
|
110
|
+
if isinstance(value, list):
|
|
111
|
+
result[attr] = list(map(
|
|
112
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
113
|
+
value
|
|
114
|
+
))
|
|
115
|
+
elif hasattr(value, "to_dict"):
|
|
116
|
+
result[attr] = value.to_dict()
|
|
117
|
+
elif isinstance(value, dict):
|
|
118
|
+
result[attr] = dict(map(
|
|
119
|
+
lambda item: (item[0], item[1].to_dict())
|
|
120
|
+
if hasattr(item[1], "to_dict") else item,
|
|
121
|
+
value.items()
|
|
122
|
+
))
|
|
123
|
+
else:
|
|
124
|
+
result[attr] = value
|
|
125
|
+
if issubclass(DescribePagesBindingRequest, dict):
|
|
126
|
+
for key, value in self.items():
|
|
127
|
+
result[key] = value
|
|
128
|
+
|
|
129
|
+
return result
|
|
130
|
+
|
|
131
|
+
def to_str(self):
|
|
132
|
+
"""Returns the string representation of the model"""
|
|
133
|
+
return pprint.pformat(self.to_dict())
|
|
134
|
+
|
|
135
|
+
def __repr__(self):
|
|
136
|
+
"""For `print` and `pprint`"""
|
|
137
|
+
return self.to_str()
|
|
138
|
+
|
|
139
|
+
def __eq__(self, other):
|
|
140
|
+
"""Returns true if both objects are equal"""
|
|
141
|
+
if not isinstance(other, DescribePagesBindingRequest):
|
|
142
|
+
return False
|
|
143
|
+
|
|
144
|
+
return self.to_dict() == other.to_dict()
|
|
145
|
+
|
|
146
|
+
def __ne__(self, other):
|
|
147
|
+
"""Returns true if both objects are not equal"""
|
|
148
|
+
if not isinstance(other, DescribePagesBindingRequest):
|
|
149
|
+
return True
|
|
150
|
+
|
|
151
|
+
return self.to_dict() != other.to_dict()
|