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,201 @@
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 DescribeSQLConcurrencyControlRulesResponse(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
+ 'rules': 'list[RuleForDescribeSQLConcurrencyControlRulesOutput]',
39
+ 'total_count': 'int'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'code': 'Code',
44
+ 'message': 'Message',
45
+ 'rules': 'Rules',
46
+ 'total_count': 'TotalCount'
47
+ }
48
+
49
+ def __init__(self, code=None, message=None, rules=None, total_count=None, _configuration=None): # noqa: E501
50
+ """DescribeSQLConcurrencyControlRulesResponse - a model defined in Swagger""" # noqa: E501
51
+ if _configuration is None:
52
+ _configuration = Configuration()
53
+ self._configuration = _configuration
54
+
55
+ self._code = None
56
+ self._message = None
57
+ self._rules = None
58
+ self._total_count = None
59
+ self.discriminator = None
60
+
61
+ if code is not None:
62
+ self.code = code
63
+ if message is not None:
64
+ self.message = message
65
+ if rules is not None:
66
+ self.rules = rules
67
+ if total_count is not None:
68
+ self.total_count = total_count
69
+
70
+ @property
71
+ def code(self):
72
+ """Gets the code of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
73
+
74
+
75
+ :return: The code of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
76
+ :rtype: int
77
+ """
78
+ return self._code
79
+
80
+ @code.setter
81
+ def code(self, code):
82
+ """Sets the code of this DescribeSQLConcurrencyControlRulesResponse.
83
+
84
+
85
+ :param code: The code of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
86
+ :type: int
87
+ """
88
+
89
+ self._code = code
90
+
91
+ @property
92
+ def message(self):
93
+ """Gets the message of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
94
+
95
+
96
+ :return: The message of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
97
+ :rtype: str
98
+ """
99
+ return self._message
100
+
101
+ @message.setter
102
+ def message(self, message):
103
+ """Sets the message of this DescribeSQLConcurrencyControlRulesResponse.
104
+
105
+
106
+ :param message: The message of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
107
+ :type: str
108
+ """
109
+
110
+ self._message = message
111
+
112
+ @property
113
+ def rules(self):
114
+ """Gets the rules of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
115
+
116
+
117
+ :return: The rules of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
118
+ :rtype: list[RuleForDescribeSQLConcurrencyControlRulesOutput]
119
+ """
120
+ return self._rules
121
+
122
+ @rules.setter
123
+ def rules(self, rules):
124
+ """Sets the rules of this DescribeSQLConcurrencyControlRulesResponse.
125
+
126
+
127
+ :param rules: The rules of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
128
+ :type: list[RuleForDescribeSQLConcurrencyControlRulesOutput]
129
+ """
130
+
131
+ self._rules = rules
132
+
133
+ @property
134
+ def total_count(self):
135
+ """Gets the total_count of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
136
+
137
+
138
+ :return: The total_count of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
139
+ :rtype: int
140
+ """
141
+ return self._total_count
142
+
143
+ @total_count.setter
144
+ def total_count(self, total_count):
145
+ """Sets the total_count of this DescribeSQLConcurrencyControlRulesResponse.
146
+
147
+
148
+ :param total_count: The total_count of this DescribeSQLConcurrencyControlRulesResponse. # noqa: E501
149
+ :type: int
150
+ """
151
+
152
+ self._total_count = total_count
153
+
154
+ def to_dict(self):
155
+ """Returns the model properties as a dict"""
156
+ result = {}
157
+
158
+ for attr, _ in six.iteritems(self.swagger_types):
159
+ value = getattr(self, attr)
160
+ if isinstance(value, list):
161
+ result[attr] = list(map(
162
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163
+ value
164
+ ))
165
+ elif hasattr(value, "to_dict"):
166
+ result[attr] = value.to_dict()
167
+ elif isinstance(value, dict):
168
+ result[attr] = dict(map(
169
+ lambda item: (item[0], item[1].to_dict())
170
+ if hasattr(item[1], "to_dict") else item,
171
+ value.items()
172
+ ))
173
+ else:
174
+ result[attr] = value
175
+ if issubclass(DescribeSQLConcurrencyControlRulesResponse, dict):
176
+ for key, value in self.items():
177
+ result[key] = value
178
+
179
+ return result
180
+
181
+ def to_str(self):
182
+ """Returns the string representation of the model"""
183
+ return pprint.pformat(self.to_dict())
184
+
185
+ def __repr__(self):
186
+ """For `print` and `pprint`"""
187
+ return self.to_str()
188
+
189
+ def __eq__(self, other):
190
+ """Returns true if both objects are equal"""
191
+ if not isinstance(other, DescribeSQLConcurrencyControlRulesResponse):
192
+ return False
193
+
194
+ return self.to_dict() == other.to_dict()
195
+
196
+ def __ne__(self, other):
197
+ """Returns true if both objects are not equal"""
198
+ if not isinstance(other, DescribeSQLConcurrencyControlRulesResponse):
199
+ return True
200
+
201
+ return self.to_dict() != other.to_dict()
@@ -35,6 +35,7 @@ class DescribeWorkspacesRequest(object):
35
35
  swagger_types = {
36
36
  'filters': 'list[FilterForDescribeWorkspacesInput]',
37
37
  'limit': 'int',
38
+ 'next_token': 'str',
38
39
  'offset': 'int',
39
40
  'project_name': 'str',
40
41
  'search': 'str',
@@ -46,6 +47,7 @@ class DescribeWorkspacesRequest(object):
46
47
  attribute_map = {
47
48
  'filters': 'Filters',
48
49
  'limit': 'Limit',
50
+ 'next_token': 'NextToken',
49
51
  'offset': 'Offset',
50
52
  'project_name': 'ProjectName',
51
53
  'search': 'Search',
@@ -54,7 +56,7 @@ class DescribeWorkspacesRequest(object):
54
56
  'workspace_tags': 'WorkspaceTags'
55
57
  }
56
58
 
57
- def __init__(self, filters=None, limit=None, offset=None, project_name=None, search=None, sort_by=None, sort_order=None, workspace_tags=None, _configuration=None): # noqa: E501
59
+ def __init__(self, filters=None, limit=None, next_token=None, offset=None, project_name=None, search=None, sort_by=None, sort_order=None, workspace_tags=None, _configuration=None): # noqa: E501
58
60
  """DescribeWorkspacesRequest - a model defined in Swagger""" # noqa: E501
59
61
  if _configuration is None:
60
62
  _configuration = Configuration()
@@ -62,6 +64,7 @@ class DescribeWorkspacesRequest(object):
62
64
 
63
65
  self._filters = None
64
66
  self._limit = None
67
+ self._next_token = None
65
68
  self._offset = None
66
69
  self._project_name = None
67
70
  self._search = None
@@ -74,6 +77,8 @@ class DescribeWorkspacesRequest(object):
74
77
  self.filters = filters
75
78
  if limit is not None:
76
79
  self.limit = limit
80
+ if next_token is not None:
81
+ self.next_token = next_token
77
82
  if offset is not None:
78
83
  self.offset = offset
79
84
  if project_name is not None:
@@ -129,6 +134,27 @@ class DescribeWorkspacesRequest(object):
129
134
 
130
135
  self._limit = limit
131
136
 
137
+ @property
138
+ def next_token(self):
139
+ """Gets the next_token of this DescribeWorkspacesRequest. # noqa: E501
140
+
141
+
142
+ :return: The next_token of this DescribeWorkspacesRequest. # noqa: E501
143
+ :rtype: str
144
+ """
145
+ return self._next_token
146
+
147
+ @next_token.setter
148
+ def next_token(self, next_token):
149
+ """Sets the next_token of this DescribeWorkspacesRequest.
150
+
151
+
152
+ :param next_token: The next_token of this DescribeWorkspacesRequest. # noqa: E501
153
+ :type: str
154
+ """
155
+
156
+ self._next_token = next_token
157
+
132
158
  @property
133
159
  def offset(self):
134
160
  """Gets the offset of this DescribeWorkspacesRequest. # noqa: E501
@@ -33,30 +33,82 @@ class DescribeWorkspacesResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  swagger_types = {
36
+ 'has_more': 'bool',
37
+ 'next_token': 'str',
36
38
  'total': 'int',
37
39
  'workspaces': 'list[WorkspaceForDescribeWorkspacesOutput]'
38
40
  }
39
41
 
40
42
  attribute_map = {
43
+ 'has_more': 'HasMore',
44
+ 'next_token': 'NextToken',
41
45
  'total': 'Total',
42
46
  'workspaces': 'Workspaces'
43
47
  }
44
48
 
45
- def __init__(self, total=None, workspaces=None, _configuration=None): # noqa: E501
49
+ def __init__(self, has_more=None, next_token=None, total=None, workspaces=None, _configuration=None): # noqa: E501
46
50
  """DescribeWorkspacesResponse - a model defined in Swagger""" # noqa: E501
47
51
  if _configuration is None:
48
52
  _configuration = Configuration()
49
53
  self._configuration = _configuration
50
54
 
55
+ self._has_more = None
56
+ self._next_token = None
51
57
  self._total = None
52
58
  self._workspaces = None
53
59
  self.discriminator = None
54
60
 
61
+ if has_more is not None:
62
+ self.has_more = has_more
63
+ if next_token is not None:
64
+ self.next_token = next_token
55
65
  if total is not None:
56
66
  self.total = total
57
67
  if workspaces is not None:
58
68
  self.workspaces = workspaces
59
69
 
70
+ @property
71
+ def has_more(self):
72
+ """Gets the has_more of this DescribeWorkspacesResponse. # noqa: E501
73
+
74
+
75
+ :return: The has_more of this DescribeWorkspacesResponse. # noqa: E501
76
+ :rtype: bool
77
+ """
78
+ return self._has_more
79
+
80
+ @has_more.setter
81
+ def has_more(self, has_more):
82
+ """Sets the has_more of this DescribeWorkspacesResponse.
83
+
84
+
85
+ :param has_more: The has_more of this DescribeWorkspacesResponse. # noqa: E501
86
+ :type: bool
87
+ """
88
+
89
+ self._has_more = has_more
90
+
91
+ @property
92
+ def next_token(self):
93
+ """Gets the next_token of this DescribeWorkspacesResponse. # noqa: E501
94
+
95
+
96
+ :return: The next_token of this DescribeWorkspacesResponse. # noqa: E501
97
+ :rtype: str
98
+ """
99
+ return self._next_token
100
+
101
+ @next_token.setter
102
+ def next_token(self, next_token):
103
+ """Sets the next_token of this DescribeWorkspacesResponse.
104
+
105
+
106
+ :param next_token: The next_token of this DescribeWorkspacesResponse. # noqa: E501
107
+ :type: str
108
+ """
109
+
110
+ self._next_token = next_token
111
+
60
112
  @property
61
113
  def total(self):
62
114
  """Gets the total of this DescribeWorkspacesResponse. # noqa: E501
@@ -0,0 +1,260 @@
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 LimitConfigForCreateSQLConcurrencyControlRuleInput(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
+ 'burst': 'int',
37
+ 'max_concurrency': 'int',
38
+ 'max_wait_ms': 'int',
39
+ 'max_waiting': 'int',
40
+ 'qps': 'int',
41
+ 'type': 'str'
42
+ }
43
+
44
+ attribute_map = {
45
+ 'burst': 'Burst',
46
+ 'max_concurrency': 'MaxConcurrency',
47
+ 'max_wait_ms': 'MaxWaitMs',
48
+ 'max_waiting': 'MaxWaiting',
49
+ 'qps': 'QPS',
50
+ 'type': 'Type'
51
+ }
52
+
53
+ def __init__(self, burst=None, max_concurrency=None, max_wait_ms=None, max_waiting=None, qps=None, type=None, _configuration=None): # noqa: E501
54
+ """LimitConfigForCreateSQLConcurrencyControlRuleInput - a model defined in Swagger""" # noqa: E501
55
+ if _configuration is None:
56
+ _configuration = Configuration()
57
+ self._configuration = _configuration
58
+
59
+ self._burst = None
60
+ self._max_concurrency = None
61
+ self._max_wait_ms = None
62
+ self._max_waiting = None
63
+ self._qps = None
64
+ self._type = None
65
+ self.discriminator = None
66
+
67
+ if burst is not None:
68
+ self.burst = burst
69
+ if max_concurrency is not None:
70
+ self.max_concurrency = max_concurrency
71
+ if max_wait_ms is not None:
72
+ self.max_wait_ms = max_wait_ms
73
+ if max_waiting is not None:
74
+ self.max_waiting = max_waiting
75
+ if qps is not None:
76
+ self.qps = qps
77
+ if type is not None:
78
+ self.type = type
79
+
80
+ @property
81
+ def burst(self):
82
+ """Gets the burst of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
83
+
84
+
85
+ :return: The burst of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
86
+ :rtype: int
87
+ """
88
+ return self._burst
89
+
90
+ @burst.setter
91
+ def burst(self, burst):
92
+ """Sets the burst of this LimitConfigForCreateSQLConcurrencyControlRuleInput.
93
+
94
+
95
+ :param burst: The burst of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
96
+ :type: int
97
+ """
98
+
99
+ self._burst = burst
100
+
101
+ @property
102
+ def max_concurrency(self):
103
+ """Gets the max_concurrency of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
104
+
105
+
106
+ :return: The max_concurrency of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
107
+ :rtype: int
108
+ """
109
+ return self._max_concurrency
110
+
111
+ @max_concurrency.setter
112
+ def max_concurrency(self, max_concurrency):
113
+ """Sets the max_concurrency of this LimitConfigForCreateSQLConcurrencyControlRuleInput.
114
+
115
+
116
+ :param max_concurrency: The max_concurrency of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
117
+ :type: int
118
+ """
119
+
120
+ self._max_concurrency = max_concurrency
121
+
122
+ @property
123
+ def max_wait_ms(self):
124
+ """Gets the max_wait_ms of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
125
+
126
+
127
+ :return: The max_wait_ms of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
128
+ :rtype: int
129
+ """
130
+ return self._max_wait_ms
131
+
132
+ @max_wait_ms.setter
133
+ def max_wait_ms(self, max_wait_ms):
134
+ """Sets the max_wait_ms of this LimitConfigForCreateSQLConcurrencyControlRuleInput.
135
+
136
+
137
+ :param max_wait_ms: The max_wait_ms of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
138
+ :type: int
139
+ """
140
+
141
+ self._max_wait_ms = max_wait_ms
142
+
143
+ @property
144
+ def max_waiting(self):
145
+ """Gets the max_waiting of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
146
+
147
+
148
+ :return: The max_waiting of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
149
+ :rtype: int
150
+ """
151
+ return self._max_waiting
152
+
153
+ @max_waiting.setter
154
+ def max_waiting(self, max_waiting):
155
+ """Sets the max_waiting of this LimitConfigForCreateSQLConcurrencyControlRuleInput.
156
+
157
+
158
+ :param max_waiting: The max_waiting of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
159
+ :type: int
160
+ """
161
+
162
+ self._max_waiting = max_waiting
163
+
164
+ @property
165
+ def qps(self):
166
+ """Gets the qps of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
167
+
168
+
169
+ :return: The qps of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
170
+ :rtype: int
171
+ """
172
+ return self._qps
173
+
174
+ @qps.setter
175
+ def qps(self, qps):
176
+ """Sets the qps of this LimitConfigForCreateSQLConcurrencyControlRuleInput.
177
+
178
+
179
+ :param qps: The qps of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
180
+ :type: int
181
+ """
182
+
183
+ self._qps = qps
184
+
185
+ @property
186
+ def type(self):
187
+ """Gets the type of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
188
+
189
+
190
+ :return: The type of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
191
+ :rtype: str
192
+ """
193
+ return self._type
194
+
195
+ @type.setter
196
+ def type(self, type):
197
+ """Sets the type of this LimitConfigForCreateSQLConcurrencyControlRuleInput.
198
+
199
+
200
+ :param type: The type of this LimitConfigForCreateSQLConcurrencyControlRuleInput. # noqa: E501
201
+ :type: str
202
+ """
203
+ allowed_values = ["concurrency", "qps"] # noqa: E501
204
+ if (self._configuration.client_side_validation and
205
+ type not in allowed_values):
206
+ raise ValueError(
207
+ "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
208
+ .format(type, allowed_values)
209
+ )
210
+
211
+ self._type = type
212
+
213
+ def to_dict(self):
214
+ """Returns the model properties as a dict"""
215
+ result = {}
216
+
217
+ for attr, _ in six.iteritems(self.swagger_types):
218
+ value = getattr(self, attr)
219
+ if isinstance(value, list):
220
+ result[attr] = list(map(
221
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
222
+ value
223
+ ))
224
+ elif hasattr(value, "to_dict"):
225
+ result[attr] = value.to_dict()
226
+ elif isinstance(value, dict):
227
+ result[attr] = dict(map(
228
+ lambda item: (item[0], item[1].to_dict())
229
+ if hasattr(item[1], "to_dict") else item,
230
+ value.items()
231
+ ))
232
+ else:
233
+ result[attr] = value
234
+ if issubclass(LimitConfigForCreateSQLConcurrencyControlRuleInput, dict):
235
+ for key, value in self.items():
236
+ result[key] = value
237
+
238
+ return result
239
+
240
+ def to_str(self):
241
+ """Returns the string representation of the model"""
242
+ return pprint.pformat(self.to_dict())
243
+
244
+ def __repr__(self):
245
+ """For `print` and `pprint`"""
246
+ return self.to_str()
247
+
248
+ def __eq__(self, other):
249
+ """Returns true if both objects are equal"""
250
+ if not isinstance(other, LimitConfigForCreateSQLConcurrencyControlRuleInput):
251
+ return False
252
+
253
+ return self.to_dict() == other.to_dict()
254
+
255
+ def __ne__(self, other):
256
+ """Returns true if both objects are not equal"""
257
+ if not isinstance(other, LimitConfigForCreateSQLConcurrencyControlRuleInput):
258
+ return True
259
+
260
+ return self.to_dict() != other.to_dict()