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.
Files changed (88) hide show
  1. {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/METADATA +3 -1
  2. {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/RECORD +88 -53
  3. byteplussdkaidap/__init__.py +35 -0
  4. byteplussdkaidap/api/aidap_api.py +1177 -13
  5. byteplussdkaidap/models/__init__.py +35 -0
  6. byteplussdkaidap/models/bind_pages_project_request.py +230 -0
  7. byteplussdkaidap/models/bind_pages_project_response.py +95 -0
  8. byteplussdkaidap/models/binding_for_describe_pages_binding_output.py +253 -0
  9. byteplussdkaidap/models/branch_settings_for_create_branch_input.py +29 -3
  10. byteplussdkaidap/models/branch_usage_for_create_branch_output.py +79 -1
  11. byteplussdkaidap/models/branch_usage_for_describe_branch_detail_output.py +79 -1
  12. byteplussdkaidap/models/branch_usage_for_describe_branches_list_output.py +79 -1
  13. byteplussdkaidap/models/branch_usage_for_describe_branches_output.py +79 -1
  14. byteplussdkaidap/models/branch_usage_for_describe_child_branches_output.py +79 -1
  15. byteplussdkaidap/models/branch_usage_for_describe_default_branch_list_output.py +79 -1
  16. byteplussdkaidap/models/branch_usage_for_describe_default_branch_output.py +79 -1
  17. byteplussdkaidap/models/branch_usage_for_describe_restorable_branches_output.py +79 -1
  18. byteplussdkaidap/models/branch_usage_for_reset_branch_output.py +79 -1
  19. byteplussdkaidap/models/branch_usage_for_set_as_default_branch_output.py +79 -1
  20. byteplussdkaidap/models/branch_usage_for_update_branch_output.py +79 -1
  21. byteplussdkaidap/models/create_sql_concurrency_control_rule_request.py +442 -0
  22. byteplussdkaidap/models/create_sql_concurrency_control_rule_response.py +175 -0
  23. byteplussdkaidap/models/custom_quota_for_describe_baas_ai_user_summaries_output.py +27 -1
  24. byteplussdkaidap/models/custom_quota_for_modify_baas_ai_user_quotas_input.py +27 -1
  25. byteplussdkaidap/models/delete_sql_concurrency_control_rule_request.py +238 -0
  26. byteplussdkaidap/models/delete_sql_concurrency_control_rule_response.py +149 -0
  27. byteplussdkaidap/models/describe_pages_binding_request.py +151 -0
  28. byteplussdkaidap/models/describe_pages_binding_response.py +149 -0
  29. byteplussdkaidap/models/describe_sql_concurrency_control_rules_request.py +466 -0
  30. byteplussdkaidap/models/describe_sql_concurrency_control_rules_response.py +201 -0
  31. byteplussdkaidap/models/describe_workspaces_request.py +27 -1
  32. byteplussdkaidap/models/describe_workspaces_response.py +53 -1
  33. byteplussdkaidap/models/limit_config_for_create_sql_concurrency_control_rule_input.py +260 -0
  34. byteplussdkaidap/models/limit_config_for_modify_sql_concurrency_control_rule_input.py +260 -0
  35. byteplussdkaidap/models/list_pages_project_request.py +227 -0
  36. byteplussdkaidap/models/list_pages_project_response.py +201 -0
  37. byteplussdkaidap/models/match_for_create_sql_concurrency_control_rule_input.py +182 -0
  38. byteplussdkaidap/models/modify_compute_parameters_request.py +243 -0
  39. byteplussdkaidap/models/modify_compute_parameters_response.py +95 -0
  40. byteplussdkaidap/models/modify_compute_spec_request.py +34 -1
  41. byteplussdkaidap/models/modify_sql_concurrency_control_rule_request.py +264 -0
  42. byteplussdkaidap/models/modify_sql_concurrency_control_rule_response.py +149 -0
  43. byteplussdkaidap/models/pages_project_for_describe_pages_binding_output.py +357 -0
  44. byteplussdkaidap/models/parameter_for_modify_compute_parameters_input.py +149 -0
  45. byteplussdkaidap/models/project_for_list_pages_project_output.py +357 -0
  46. byteplussdkaidap/models/restore_settings_for_branch_restore_input.py +27 -1
  47. byteplussdkaidap/models/rule_for_describe_sql_concurrency_control_rules_output.py +565 -0
  48. byteplussdkaidap/models/start_workspace_request.py +27 -1
  49. byteplussdkaidap/models/supabase_binding_for_describe_pages_binding_output.py +253 -0
  50. byteplussdkaidap/models/supabase_binding_for_list_pages_project_output.py +253 -0
  51. byteplussdkaidap/models/suspend_workspace_request.py +124 -0
  52. byteplussdkaidap/models/suspend_workspace_response.py +95 -0
  53. byteplussdkaidap/models/switch_sql_concurrency_control_rule_request.py +265 -0
  54. byteplussdkaidap/models/switch_sql_concurrency_control_rule_response.py +149 -0
  55. byteplussdkaidap/models/sync_pages_deploy_env_vars_request.py +178 -0
  56. byteplussdkaidap/models/sync_pages_deploy_env_vars_response.py +95 -0
  57. byteplussdkaidap/models/unbind_pages_project_request.py +151 -0
  58. byteplussdkaidap/models/unbind_pages_project_response.py +95 -0
  59. byteplussdkaidap/models/usage_for_describe_baas_ai_user_summaries_output.py +53 -1
  60. byteplussdkaidap/models/user_default_quota_for_describe_baas_ai_global_quota_output.py +27 -1
  61. byteplussdkaidap/models/user_default_quota_for_modify_baas_ai_global_quota_input.py +27 -1
  62. byteplussdkaidap/models/volc_supabase_filter_for_list_pages_project_input.py +149 -0
  63. byteplussdkaidap/models/workspace_usage_for_create_workspace_output.py +81 -3
  64. byteplussdkaidap/models/workspace_usage_for_describe_workspace_detail_list_output.py +81 -3
  65. byteplussdkaidap/models/workspace_usage_for_describe_workspace_detail_output.py +81 -3
  66. byteplussdkaidap/models/workspace_usage_for_describe_workspaces_output.py +81 -3
  67. byteplussdkaidap/models/workspace_usage_for_list_workspace_usage_top_output.py +81 -3
  68. byteplussdkaidap/models/workspace_usage_for_modify_compute_settings_output.py +81 -3
  69. byteplussdkaidap/models/workspace_usage_for_modify_workspace_name_output.py +81 -3
  70. byteplussdkaidap/models/workspace_usage_for_modify_workspace_settings_output.py +81 -3
  71. byteplussdkcore/api_client.py +18 -14
  72. byteplussdkcore/auth/providers/sts_provider.py +0 -2
  73. byteplussdkcore/configuration.py +91 -21
  74. byteplussdkcore/interceptor/chain.py +23 -0
  75. byteplussdkcore/interceptor/interceptors/build_request_interceptor.py +2 -0
  76. byteplussdkcore/interceptor/interceptors/interceptor.py +2 -0
  77. byteplussdkcore/interceptor/interceptors/request.py +7 -2
  78. byteplussdkcore/interceptor/interceptors/resolve_endpoint_interceptor.py +2 -0
  79. byteplussdkcore/interceptor/interceptors/runtime_options_interceptor.py +28 -15
  80. byteplussdkcore/interceptor/interceptors/sign_request_interceptor.py +20 -0
  81. byteplussdkcore/retryer/retryer.py +89 -10
  82. byteplussdkllmshield/__init__.py +8 -0
  83. byteplussdkllmshield/api/llm_shield_sdk_v2.py +53 -5
  84. byteplussdkllmshield/models/llm_shield_sign.py +3 -3
  85. {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/WHEEL +0 -0
  86. {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/licenses/LICENSE.txt +0 -0
  87. {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/licenses/NOTICE.md +0 -0
  88. {byteplus_python_sdk_v2-3.0.59.dist-info → byteplus_python_sdk_v2-3.0.60.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,442 @@
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 CreateSQLConcurrencyControlRuleRequest(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
+ 'comment': 'str',
38
+ 'create_mode': 'str',
39
+ 'database_name': 'str',
40
+ 'effect_type': 'str',
41
+ 'enabled': 'bool',
42
+ 'limit_config': 'LimitConfigForCreateSQLConcurrencyControlRuleInput',
43
+ 'match': 'MatchForCreateSQLConcurrencyControlRuleInput',
44
+ 'node_type': 'str',
45
+ 'over_limit_action': 'str',
46
+ 'search_path': 'str',
47
+ 'workspace_id': 'str'
48
+ }
49
+
50
+ attribute_map = {
51
+ 'branch_id': 'BranchId',
52
+ 'comment': 'Comment',
53
+ 'create_mode': 'CreateMode',
54
+ 'database_name': 'DatabaseName',
55
+ 'effect_type': 'EffectType',
56
+ 'enabled': 'Enabled',
57
+ 'limit_config': 'LimitConfig',
58
+ 'match': 'Match',
59
+ 'node_type': 'NodeType',
60
+ 'over_limit_action': 'OverLimitAction',
61
+ 'search_path': 'SearchPath',
62
+ 'workspace_id': 'WorkspaceId'
63
+ }
64
+
65
+ def __init__(self, branch_id=None, comment=None, create_mode=None, database_name=None, effect_type=None, enabled=None, limit_config=None, match=None, node_type=None, over_limit_action=None, search_path=None, workspace_id=None, _configuration=None): # noqa: E501
66
+ """CreateSQLConcurrencyControlRuleRequest - a model defined in Swagger""" # noqa: E501
67
+ if _configuration is None:
68
+ _configuration = Configuration()
69
+ self._configuration = _configuration
70
+
71
+ self._branch_id = None
72
+ self._comment = None
73
+ self._create_mode = None
74
+ self._database_name = None
75
+ self._effect_type = None
76
+ self._enabled = None
77
+ self._limit_config = None
78
+ self._match = None
79
+ self._node_type = None
80
+ self._over_limit_action = None
81
+ self._search_path = None
82
+ self._workspace_id = None
83
+ self.discriminator = None
84
+
85
+ self.branch_id = branch_id
86
+ if comment is not None:
87
+ self.comment = comment
88
+ if create_mode is not None:
89
+ self.create_mode = create_mode
90
+ self.database_name = database_name
91
+ if effect_type is not None:
92
+ self.effect_type = effect_type
93
+ if enabled is not None:
94
+ self.enabled = enabled
95
+ if limit_config is not None:
96
+ self.limit_config = limit_config
97
+ if match is not None:
98
+ self.match = match
99
+ self.node_type = node_type
100
+ self.over_limit_action = over_limit_action
101
+ if search_path is not None:
102
+ self.search_path = search_path
103
+ self.workspace_id = workspace_id
104
+
105
+ @property
106
+ def branch_id(self):
107
+ """Gets the branch_id of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
108
+
109
+
110
+ :return: The branch_id of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
111
+ :rtype: str
112
+ """
113
+ return self._branch_id
114
+
115
+ @branch_id.setter
116
+ def branch_id(self, branch_id):
117
+ """Sets the branch_id of this CreateSQLConcurrencyControlRuleRequest.
118
+
119
+
120
+ :param branch_id: The branch_id of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
121
+ :type: str
122
+ """
123
+ if self._configuration.client_side_validation and branch_id is None:
124
+ raise ValueError("Invalid value for `branch_id`, must not be `None`") # noqa: E501
125
+
126
+ self._branch_id = branch_id
127
+
128
+ @property
129
+ def comment(self):
130
+ """Gets the comment of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
131
+
132
+
133
+ :return: The comment of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
134
+ :rtype: str
135
+ """
136
+ return self._comment
137
+
138
+ @comment.setter
139
+ def comment(self, comment):
140
+ """Sets the comment of this CreateSQLConcurrencyControlRuleRequest.
141
+
142
+
143
+ :param comment: The comment of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
144
+ :type: str
145
+ """
146
+
147
+ self._comment = comment
148
+
149
+ @property
150
+ def create_mode(self):
151
+ """Gets the create_mode of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
152
+
153
+
154
+ :return: The create_mode of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
155
+ :rtype: str
156
+ """
157
+ return self._create_mode
158
+
159
+ @create_mode.setter
160
+ def create_mode(self, create_mode):
161
+ """Sets the create_mode of this CreateSQLConcurrencyControlRuleRequest.
162
+
163
+
164
+ :param create_mode: The create_mode of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
165
+ :type: str
166
+ """
167
+ allowed_values = ["ErrorIfExists", "Overwrite"] # noqa: E501
168
+ if (self._configuration.client_side_validation and
169
+ create_mode not in allowed_values):
170
+ raise ValueError(
171
+ "Invalid value for `create_mode` ({0}), must be one of {1}" # noqa: E501
172
+ .format(create_mode, allowed_values)
173
+ )
174
+
175
+ self._create_mode = create_mode
176
+
177
+ @property
178
+ def database_name(self):
179
+ """Gets the database_name of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
180
+
181
+
182
+ :return: The database_name of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
183
+ :rtype: str
184
+ """
185
+ return self._database_name
186
+
187
+ @database_name.setter
188
+ def database_name(self, database_name):
189
+ """Sets the database_name of this CreateSQLConcurrencyControlRuleRequest.
190
+
191
+
192
+ :param database_name: The database_name of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
193
+ :type: str
194
+ """
195
+ if self._configuration.client_side_validation and database_name is None:
196
+ raise ValueError("Invalid value for `database_name`, must not be `None`") # noqa: E501
197
+
198
+ self._database_name = database_name
199
+
200
+ @property
201
+ def effect_type(self):
202
+ """Gets the effect_type of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
203
+
204
+
205
+ :return: The effect_type of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
206
+ :rtype: str
207
+ """
208
+ return self._effect_type
209
+
210
+ @effect_type.setter
211
+ def effect_type(self, effect_type):
212
+ """Sets the effect_type of this CreateSQLConcurrencyControlRuleRequest.
213
+
214
+
215
+ :param effect_type: The effect_type of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
216
+ :type: str
217
+ """
218
+ allowed_values = ["NextWakeUp", "Immediate"] # noqa: E501
219
+ if (self._configuration.client_side_validation and
220
+ effect_type not in allowed_values):
221
+ raise ValueError(
222
+ "Invalid value for `effect_type` ({0}), must be one of {1}" # noqa: E501
223
+ .format(effect_type, allowed_values)
224
+ )
225
+
226
+ self._effect_type = effect_type
227
+
228
+ @property
229
+ def enabled(self):
230
+ """Gets the enabled of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
231
+
232
+
233
+ :return: The enabled of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
234
+ :rtype: bool
235
+ """
236
+ return self._enabled
237
+
238
+ @enabled.setter
239
+ def enabled(self, enabled):
240
+ """Sets the enabled of this CreateSQLConcurrencyControlRuleRequest.
241
+
242
+
243
+ :param enabled: The enabled of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
244
+ :type: bool
245
+ """
246
+
247
+ self._enabled = enabled
248
+
249
+ @property
250
+ def limit_config(self):
251
+ """Gets the limit_config of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
252
+
253
+
254
+ :return: The limit_config of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
255
+ :rtype: LimitConfigForCreateSQLConcurrencyControlRuleInput
256
+ """
257
+ return self._limit_config
258
+
259
+ @limit_config.setter
260
+ def limit_config(self, limit_config):
261
+ """Sets the limit_config of this CreateSQLConcurrencyControlRuleRequest.
262
+
263
+
264
+ :param limit_config: The limit_config of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
265
+ :type: LimitConfigForCreateSQLConcurrencyControlRuleInput
266
+ """
267
+
268
+ self._limit_config = limit_config
269
+
270
+ @property
271
+ def match(self):
272
+ """Gets the match of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
273
+
274
+
275
+ :return: The match of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
276
+ :rtype: MatchForCreateSQLConcurrencyControlRuleInput
277
+ """
278
+ return self._match
279
+
280
+ @match.setter
281
+ def match(self, match):
282
+ """Sets the match of this CreateSQLConcurrencyControlRuleRequest.
283
+
284
+
285
+ :param match: The match of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
286
+ :type: MatchForCreateSQLConcurrencyControlRuleInput
287
+ """
288
+
289
+ self._match = match
290
+
291
+ @property
292
+ def node_type(self):
293
+ """Gets the node_type of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
294
+
295
+
296
+ :return: The node_type of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
297
+ :rtype: str
298
+ """
299
+ return self._node_type
300
+
301
+ @node_type.setter
302
+ def node_type(self, node_type):
303
+ """Sets the node_type of this CreateSQLConcurrencyControlRuleRequest.
304
+
305
+
306
+ :param node_type: The node_type of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
307
+ :type: str
308
+ """
309
+ if self._configuration.client_side_validation and node_type is None:
310
+ raise ValueError("Invalid value for `node_type`, must not be `None`") # noqa: E501
311
+ allowed_values = ["Primary", "Standby", "All"] # noqa: E501
312
+ if (self._configuration.client_side_validation and
313
+ node_type not in allowed_values):
314
+ raise ValueError(
315
+ "Invalid value for `node_type` ({0}), must be one of {1}" # noqa: E501
316
+ .format(node_type, allowed_values)
317
+ )
318
+
319
+ self._node_type = node_type
320
+
321
+ @property
322
+ def over_limit_action(self):
323
+ """Gets the over_limit_action of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
324
+
325
+
326
+ :return: The over_limit_action of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
327
+ :rtype: str
328
+ """
329
+ return self._over_limit_action
330
+
331
+ @over_limit_action.setter
332
+ def over_limit_action(self, over_limit_action):
333
+ """Sets the over_limit_action of this CreateSQLConcurrencyControlRuleRequest.
334
+
335
+
336
+ :param over_limit_action: The over_limit_action of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
337
+ :type: str
338
+ """
339
+ if self._configuration.client_side_validation and over_limit_action is None:
340
+ raise ValueError("Invalid value for `over_limit_action`, must not be `None`") # noqa: E501
341
+ allowed_values = ["reject", "queue"] # noqa: E501
342
+ if (self._configuration.client_side_validation and
343
+ over_limit_action not in allowed_values):
344
+ raise ValueError(
345
+ "Invalid value for `over_limit_action` ({0}), must be one of {1}" # noqa: E501
346
+ .format(over_limit_action, allowed_values)
347
+ )
348
+
349
+ self._over_limit_action = over_limit_action
350
+
351
+ @property
352
+ def search_path(self):
353
+ """Gets the search_path of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
354
+
355
+
356
+ :return: The search_path of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
357
+ :rtype: str
358
+ """
359
+ return self._search_path
360
+
361
+ @search_path.setter
362
+ def search_path(self, search_path):
363
+ """Sets the search_path of this CreateSQLConcurrencyControlRuleRequest.
364
+
365
+
366
+ :param search_path: The search_path of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
367
+ :type: str
368
+ """
369
+
370
+ self._search_path = search_path
371
+
372
+ @property
373
+ def workspace_id(self):
374
+ """Gets the workspace_id of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
375
+
376
+
377
+ :return: The workspace_id of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
378
+ :rtype: str
379
+ """
380
+ return self._workspace_id
381
+
382
+ @workspace_id.setter
383
+ def workspace_id(self, workspace_id):
384
+ """Sets the workspace_id of this CreateSQLConcurrencyControlRuleRequest.
385
+
386
+
387
+ :param workspace_id: The workspace_id of this CreateSQLConcurrencyControlRuleRequest. # noqa: E501
388
+ :type: str
389
+ """
390
+ if self._configuration.client_side_validation and workspace_id is None:
391
+ raise ValueError("Invalid value for `workspace_id`, must not be `None`") # noqa: E501
392
+
393
+ self._workspace_id = workspace_id
394
+
395
+ def to_dict(self):
396
+ """Returns the model properties as a dict"""
397
+ result = {}
398
+
399
+ for attr, _ in six.iteritems(self.swagger_types):
400
+ value = getattr(self, attr)
401
+ if isinstance(value, list):
402
+ result[attr] = list(map(
403
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
404
+ value
405
+ ))
406
+ elif hasattr(value, "to_dict"):
407
+ result[attr] = value.to_dict()
408
+ elif isinstance(value, dict):
409
+ result[attr] = dict(map(
410
+ lambda item: (item[0], item[1].to_dict())
411
+ if hasattr(item[1], "to_dict") else item,
412
+ value.items()
413
+ ))
414
+ else:
415
+ result[attr] = value
416
+ if issubclass(CreateSQLConcurrencyControlRuleRequest, dict):
417
+ for key, value in self.items():
418
+ result[key] = value
419
+
420
+ return result
421
+
422
+ def to_str(self):
423
+ """Returns the string representation of the model"""
424
+ return pprint.pformat(self.to_dict())
425
+
426
+ def __repr__(self):
427
+ """For `print` and `pprint`"""
428
+ return self.to_str()
429
+
430
+ def __eq__(self, other):
431
+ """Returns true if both objects are equal"""
432
+ if not isinstance(other, CreateSQLConcurrencyControlRuleRequest):
433
+ return False
434
+
435
+ return self.to_dict() == other.to_dict()
436
+
437
+ def __ne__(self, other):
438
+ """Returns true if both objects are not equal"""
439
+ if not isinstance(other, CreateSQLConcurrencyControlRuleRequest):
440
+ return True
441
+
442
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,175 @@
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 CreateSQLConcurrencyControlRuleResponse(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
+ 'rule_id': 'int'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'code': 'Code',
43
+ 'message': 'Message',
44
+ 'rule_id': 'RuleId'
45
+ }
46
+
47
+ def __init__(self, code=None, message=None, rule_id=None, _configuration=None): # noqa: E501
48
+ """CreateSQLConcurrencyControlRuleResponse - a model defined in Swagger""" # noqa: E501
49
+ if _configuration is None:
50
+ _configuration = Configuration()
51
+ self._configuration = _configuration
52
+
53
+ self._code = None
54
+ self._message = None
55
+ self._rule_id = None
56
+ self.discriminator = None
57
+
58
+ if code is not None:
59
+ self.code = code
60
+ if message is not None:
61
+ self.message = message
62
+ if rule_id is not None:
63
+ self.rule_id = rule_id
64
+
65
+ @property
66
+ def code(self):
67
+ """Gets the code of this CreateSQLConcurrencyControlRuleResponse. # noqa: E501
68
+
69
+
70
+ :return: The code of this CreateSQLConcurrencyControlRuleResponse. # noqa: E501
71
+ :rtype: int
72
+ """
73
+ return self._code
74
+
75
+ @code.setter
76
+ def code(self, code):
77
+ """Sets the code of this CreateSQLConcurrencyControlRuleResponse.
78
+
79
+
80
+ :param code: The code of this CreateSQLConcurrencyControlRuleResponse. # noqa: E501
81
+ :type: int
82
+ """
83
+
84
+ self._code = code
85
+
86
+ @property
87
+ def message(self):
88
+ """Gets the message of this CreateSQLConcurrencyControlRuleResponse. # noqa: E501
89
+
90
+
91
+ :return: The message of this CreateSQLConcurrencyControlRuleResponse. # noqa: E501
92
+ :rtype: str
93
+ """
94
+ return self._message
95
+
96
+ @message.setter
97
+ def message(self, message):
98
+ """Sets the message of this CreateSQLConcurrencyControlRuleResponse.
99
+
100
+
101
+ :param message: The message of this CreateSQLConcurrencyControlRuleResponse. # noqa: E501
102
+ :type: str
103
+ """
104
+
105
+ self._message = message
106
+
107
+ @property
108
+ def rule_id(self):
109
+ """Gets the rule_id of this CreateSQLConcurrencyControlRuleResponse. # noqa: E501
110
+
111
+
112
+ :return: The rule_id of this CreateSQLConcurrencyControlRuleResponse. # noqa: E501
113
+ :rtype: int
114
+ """
115
+ return self._rule_id
116
+
117
+ @rule_id.setter
118
+ def rule_id(self, rule_id):
119
+ """Sets the rule_id of this CreateSQLConcurrencyControlRuleResponse.
120
+
121
+
122
+ :param rule_id: The rule_id of this CreateSQLConcurrencyControlRuleResponse. # noqa: E501
123
+ :type: int
124
+ """
125
+
126
+ self._rule_id = rule_id
127
+
128
+ def to_dict(self):
129
+ """Returns the model properties as a dict"""
130
+ result = {}
131
+
132
+ for attr, _ in six.iteritems(self.swagger_types):
133
+ value = getattr(self, attr)
134
+ if isinstance(value, list):
135
+ result[attr] = list(map(
136
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
137
+ value
138
+ ))
139
+ elif hasattr(value, "to_dict"):
140
+ result[attr] = value.to_dict()
141
+ elif isinstance(value, dict):
142
+ result[attr] = dict(map(
143
+ lambda item: (item[0], item[1].to_dict())
144
+ if hasattr(item[1], "to_dict") else item,
145
+ value.items()
146
+ ))
147
+ else:
148
+ result[attr] = value
149
+ if issubclass(CreateSQLConcurrencyControlRuleResponse, dict):
150
+ for key, value in self.items():
151
+ result[key] = value
152
+
153
+ return result
154
+
155
+ def to_str(self):
156
+ """Returns the string representation of the model"""
157
+ return pprint.pformat(self.to_dict())
158
+
159
+ def __repr__(self):
160
+ """For `print` and `pprint`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, CreateSQLConcurrencyControlRuleResponse):
166
+ return False
167
+
168
+ return self.to_dict() == other.to_dict()
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ if not isinstance(other, CreateSQLConcurrencyControlRuleResponse):
173
+ return True
174
+
175
+ return self.to_dict() != other.to_dict()
@@ -33,25 +33,51 @@ class CustomQuotaForDescribeBaasAIUserSummariesOutput(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
  """CustomQuotaForDescribeBaasAIUserSummariesOutput - 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 CustomQuotaForDescribeBaasAIUserSummariesOutput. # noqa: E501
63
+
64
+
65
+ :return: The daily_image_limit of this CustomQuotaForDescribeBaasAIUserSummariesOutput. # 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 CustomQuotaForDescribeBaasAIUserSummariesOutput.
73
+
74
+
75
+ :param daily_image_limit: The daily_image_limit of this CustomQuotaForDescribeBaasAIUserSummariesOutput. # 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 CustomQuotaForDescribeBaasAIUserSummariesOutput. # noqa: E501