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
|
@@ -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 DescribePagesBindingResponse(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
|
+
'binding': 'BindingForDescribePagesBindingOutput',
|
|
37
|
+
'pages_project': 'PagesProjectForDescribePagesBindingOutput'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'binding': 'Binding',
|
|
42
|
+
'pages_project': 'PagesProject'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, binding=None, pages_project=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""DescribePagesBindingResponse - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._binding = None
|
|
52
|
+
self._pages_project = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if binding is not None:
|
|
56
|
+
self.binding = binding
|
|
57
|
+
if pages_project is not None:
|
|
58
|
+
self.pages_project = pages_project
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def binding(self):
|
|
62
|
+
"""Gets the binding of this DescribePagesBindingResponse. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The binding of this DescribePagesBindingResponse. # noqa: E501
|
|
66
|
+
:rtype: BindingForDescribePagesBindingOutput
|
|
67
|
+
"""
|
|
68
|
+
return self._binding
|
|
69
|
+
|
|
70
|
+
@binding.setter
|
|
71
|
+
def binding(self, binding):
|
|
72
|
+
"""Sets the binding of this DescribePagesBindingResponse.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param binding: The binding of this DescribePagesBindingResponse. # noqa: E501
|
|
76
|
+
:type: BindingForDescribePagesBindingOutput
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._binding = binding
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def pages_project(self):
|
|
83
|
+
"""Gets the pages_project of this DescribePagesBindingResponse. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The pages_project of this DescribePagesBindingResponse. # noqa: E501
|
|
87
|
+
:rtype: PagesProjectForDescribePagesBindingOutput
|
|
88
|
+
"""
|
|
89
|
+
return self._pages_project
|
|
90
|
+
|
|
91
|
+
@pages_project.setter
|
|
92
|
+
def pages_project(self, pages_project):
|
|
93
|
+
"""Sets the pages_project of this DescribePagesBindingResponse.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param pages_project: The pages_project of this DescribePagesBindingResponse. # noqa: E501
|
|
97
|
+
:type: PagesProjectForDescribePagesBindingOutput
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._pages_project = pages_project
|
|
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(DescribePagesBindingResponse, 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, DescribePagesBindingResponse):
|
|
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, DescribePagesBindingResponse):
|
|
147
|
+
return True
|
|
148
|
+
|
|
149
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,466 @@
|
|
|
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 DescribeSQLConcurrencyControlRulesRequest(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
|
+
'enabled': 'bool',
|
|
39
|
+
'keywords': 'list[str]',
|
|
40
|
+
'limit': 'int',
|
|
41
|
+
'limit_type': 'str',
|
|
42
|
+
'match_type': 'str',
|
|
43
|
+
'node_type': 'str',
|
|
44
|
+
'offset': 'int',
|
|
45
|
+
'over_limit_action': 'str',
|
|
46
|
+
'query_id': 'int',
|
|
47
|
+
'query_string': 'str',
|
|
48
|
+
'workspace_id': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'branch_id': 'BranchId',
|
|
53
|
+
'database_name': 'DatabaseName',
|
|
54
|
+
'enabled': 'Enabled',
|
|
55
|
+
'keywords': 'Keywords',
|
|
56
|
+
'limit': 'Limit',
|
|
57
|
+
'limit_type': 'LimitType',
|
|
58
|
+
'match_type': 'MatchType',
|
|
59
|
+
'node_type': 'NodeType',
|
|
60
|
+
'offset': 'Offset',
|
|
61
|
+
'over_limit_action': 'OverLimitAction',
|
|
62
|
+
'query_id': 'QueryId',
|
|
63
|
+
'query_string': 'QueryString',
|
|
64
|
+
'workspace_id': 'WorkspaceId'
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
def __init__(self, branch_id=None, database_name=None, enabled=None, keywords=None, limit=None, limit_type=None, match_type=None, node_type=None, offset=None, over_limit_action=None, query_id=None, query_string=None, workspace_id=None, _configuration=None): # noqa: E501
|
|
68
|
+
"""DescribeSQLConcurrencyControlRulesRequest - a model defined in Swagger""" # noqa: E501
|
|
69
|
+
if _configuration is None:
|
|
70
|
+
_configuration = Configuration()
|
|
71
|
+
self._configuration = _configuration
|
|
72
|
+
|
|
73
|
+
self._branch_id = None
|
|
74
|
+
self._database_name = None
|
|
75
|
+
self._enabled = None
|
|
76
|
+
self._keywords = None
|
|
77
|
+
self._limit = None
|
|
78
|
+
self._limit_type = None
|
|
79
|
+
self._match_type = None
|
|
80
|
+
self._node_type = None
|
|
81
|
+
self._offset = None
|
|
82
|
+
self._over_limit_action = None
|
|
83
|
+
self._query_id = None
|
|
84
|
+
self._query_string = None
|
|
85
|
+
self._workspace_id = None
|
|
86
|
+
self.discriminator = None
|
|
87
|
+
|
|
88
|
+
self.branch_id = branch_id
|
|
89
|
+
self.database_name = database_name
|
|
90
|
+
if enabled is not None:
|
|
91
|
+
self.enabled = enabled
|
|
92
|
+
if keywords is not None:
|
|
93
|
+
self.keywords = keywords
|
|
94
|
+
if limit is not None:
|
|
95
|
+
self.limit = limit
|
|
96
|
+
if limit_type is not None:
|
|
97
|
+
self.limit_type = limit_type
|
|
98
|
+
if match_type is not None:
|
|
99
|
+
self.match_type = match_type
|
|
100
|
+
if node_type is not None:
|
|
101
|
+
self.node_type = node_type
|
|
102
|
+
if offset is not None:
|
|
103
|
+
self.offset = offset
|
|
104
|
+
if over_limit_action is not None:
|
|
105
|
+
self.over_limit_action = over_limit_action
|
|
106
|
+
if query_id is not None:
|
|
107
|
+
self.query_id = query_id
|
|
108
|
+
if query_string is not None:
|
|
109
|
+
self.query_string = query_string
|
|
110
|
+
self.workspace_id = workspace_id
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def branch_id(self):
|
|
114
|
+
"""Gets the branch_id of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The branch_id of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._branch_id
|
|
121
|
+
|
|
122
|
+
@branch_id.setter
|
|
123
|
+
def branch_id(self, branch_id):
|
|
124
|
+
"""Sets the branch_id of this DescribeSQLConcurrencyControlRulesRequest.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param branch_id: The branch_id of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
128
|
+
:type: str
|
|
129
|
+
"""
|
|
130
|
+
if self._configuration.client_side_validation and branch_id is None:
|
|
131
|
+
raise ValueError("Invalid value for `branch_id`, must not be `None`") # noqa: E501
|
|
132
|
+
|
|
133
|
+
self._branch_id = branch_id
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def database_name(self):
|
|
137
|
+
"""Gets the database_name of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:return: The database_name of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._database_name
|
|
144
|
+
|
|
145
|
+
@database_name.setter
|
|
146
|
+
def database_name(self, database_name):
|
|
147
|
+
"""Sets the database_name of this DescribeSQLConcurrencyControlRulesRequest.
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:param database_name: The database_name of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
151
|
+
:type: str
|
|
152
|
+
"""
|
|
153
|
+
if self._configuration.client_side_validation and database_name is None:
|
|
154
|
+
raise ValueError("Invalid value for `database_name`, must not be `None`") # noqa: E501
|
|
155
|
+
|
|
156
|
+
self._database_name = database_name
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def enabled(self):
|
|
160
|
+
"""Gets the enabled of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
:return: The enabled of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
164
|
+
:rtype: bool
|
|
165
|
+
"""
|
|
166
|
+
return self._enabled
|
|
167
|
+
|
|
168
|
+
@enabled.setter
|
|
169
|
+
def enabled(self, enabled):
|
|
170
|
+
"""Sets the enabled of this DescribeSQLConcurrencyControlRulesRequest.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
:param enabled: The enabled of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
174
|
+
:type: bool
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
self._enabled = enabled
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def keywords(self):
|
|
181
|
+
"""Gets the keywords of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:return: The keywords of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
185
|
+
:rtype: list[str]
|
|
186
|
+
"""
|
|
187
|
+
return self._keywords
|
|
188
|
+
|
|
189
|
+
@keywords.setter
|
|
190
|
+
def keywords(self, keywords):
|
|
191
|
+
"""Sets the keywords of this DescribeSQLConcurrencyControlRulesRequest.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
:param keywords: The keywords of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
195
|
+
:type: list[str]
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
self._keywords = keywords
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
def limit(self):
|
|
202
|
+
"""Gets the limit of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:return: The limit of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
206
|
+
:rtype: int
|
|
207
|
+
"""
|
|
208
|
+
return self._limit
|
|
209
|
+
|
|
210
|
+
@limit.setter
|
|
211
|
+
def limit(self, limit):
|
|
212
|
+
"""Sets the limit of this DescribeSQLConcurrencyControlRulesRequest.
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
:param limit: The limit of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
216
|
+
:type: int
|
|
217
|
+
"""
|
|
218
|
+
|
|
219
|
+
self._limit = limit
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
def limit_type(self):
|
|
223
|
+
"""Gets the limit_type of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
:return: The limit_type of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
227
|
+
:rtype: str
|
|
228
|
+
"""
|
|
229
|
+
return self._limit_type
|
|
230
|
+
|
|
231
|
+
@limit_type.setter
|
|
232
|
+
def limit_type(self, limit_type):
|
|
233
|
+
"""Sets the limit_type of this DescribeSQLConcurrencyControlRulesRequest.
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
:param limit_type: The limit_type of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
237
|
+
:type: str
|
|
238
|
+
"""
|
|
239
|
+
allowed_values = ["concurrency", "qps"] # noqa: E501
|
|
240
|
+
if (self._configuration.client_side_validation and
|
|
241
|
+
limit_type not in allowed_values):
|
|
242
|
+
raise ValueError(
|
|
243
|
+
"Invalid value for `limit_type` ({0}), must be one of {1}" # noqa: E501
|
|
244
|
+
.format(limit_type, allowed_values)
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
self._limit_type = limit_type
|
|
248
|
+
|
|
249
|
+
@property
|
|
250
|
+
def match_type(self):
|
|
251
|
+
"""Gets the match_type of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:return: The match_type of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
255
|
+
:rtype: str
|
|
256
|
+
"""
|
|
257
|
+
return self._match_type
|
|
258
|
+
|
|
259
|
+
@match_type.setter
|
|
260
|
+
def match_type(self, match_type):
|
|
261
|
+
"""Sets the match_type of this DescribeSQLConcurrencyControlRulesRequest.
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
:param match_type: The match_type of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
265
|
+
:type: str
|
|
266
|
+
"""
|
|
267
|
+
allowed_values = ["query_id", "keywords", "all"] # noqa: E501
|
|
268
|
+
if (self._configuration.client_side_validation and
|
|
269
|
+
match_type not in allowed_values):
|
|
270
|
+
raise ValueError(
|
|
271
|
+
"Invalid value for `match_type` ({0}), must be one of {1}" # noqa: E501
|
|
272
|
+
.format(match_type, allowed_values)
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
self._match_type = match_type
|
|
276
|
+
|
|
277
|
+
@property
|
|
278
|
+
def node_type(self):
|
|
279
|
+
"""Gets the node_type of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
:return: The node_type of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
283
|
+
:rtype: str
|
|
284
|
+
"""
|
|
285
|
+
return self._node_type
|
|
286
|
+
|
|
287
|
+
@node_type.setter
|
|
288
|
+
def node_type(self, node_type):
|
|
289
|
+
"""Sets the node_type of this DescribeSQLConcurrencyControlRulesRequest.
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
:param node_type: The node_type of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
293
|
+
:type: str
|
|
294
|
+
"""
|
|
295
|
+
allowed_values = ["Primary", "Standby", "All"] # noqa: E501
|
|
296
|
+
if (self._configuration.client_side_validation and
|
|
297
|
+
node_type not in allowed_values):
|
|
298
|
+
raise ValueError(
|
|
299
|
+
"Invalid value for `node_type` ({0}), must be one of {1}" # noqa: E501
|
|
300
|
+
.format(node_type, allowed_values)
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
self._node_type = node_type
|
|
304
|
+
|
|
305
|
+
@property
|
|
306
|
+
def offset(self):
|
|
307
|
+
"""Gets the offset of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
:return: The offset of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
311
|
+
:rtype: int
|
|
312
|
+
"""
|
|
313
|
+
return self._offset
|
|
314
|
+
|
|
315
|
+
@offset.setter
|
|
316
|
+
def offset(self, offset):
|
|
317
|
+
"""Sets the offset of this DescribeSQLConcurrencyControlRulesRequest.
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
:param offset: The offset of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
321
|
+
:type: int
|
|
322
|
+
"""
|
|
323
|
+
|
|
324
|
+
self._offset = offset
|
|
325
|
+
|
|
326
|
+
@property
|
|
327
|
+
def over_limit_action(self):
|
|
328
|
+
"""Gets the over_limit_action of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
:return: The over_limit_action of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
332
|
+
:rtype: str
|
|
333
|
+
"""
|
|
334
|
+
return self._over_limit_action
|
|
335
|
+
|
|
336
|
+
@over_limit_action.setter
|
|
337
|
+
def over_limit_action(self, over_limit_action):
|
|
338
|
+
"""Sets the over_limit_action of this DescribeSQLConcurrencyControlRulesRequest.
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
:param over_limit_action: The over_limit_action of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
342
|
+
:type: str
|
|
343
|
+
"""
|
|
344
|
+
allowed_values = ["reject", "queue"] # noqa: E501
|
|
345
|
+
if (self._configuration.client_side_validation and
|
|
346
|
+
over_limit_action not in allowed_values):
|
|
347
|
+
raise ValueError(
|
|
348
|
+
"Invalid value for `over_limit_action` ({0}), must be one of {1}" # noqa: E501
|
|
349
|
+
.format(over_limit_action, allowed_values)
|
|
350
|
+
)
|
|
351
|
+
|
|
352
|
+
self._over_limit_action = over_limit_action
|
|
353
|
+
|
|
354
|
+
@property
|
|
355
|
+
def query_id(self):
|
|
356
|
+
"""Gets the query_id of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
:return: The query_id of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
360
|
+
:rtype: int
|
|
361
|
+
"""
|
|
362
|
+
return self._query_id
|
|
363
|
+
|
|
364
|
+
@query_id.setter
|
|
365
|
+
def query_id(self, query_id):
|
|
366
|
+
"""Sets the query_id of this DescribeSQLConcurrencyControlRulesRequest.
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
:param query_id: The query_id of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
370
|
+
:type: int
|
|
371
|
+
"""
|
|
372
|
+
|
|
373
|
+
self._query_id = query_id
|
|
374
|
+
|
|
375
|
+
@property
|
|
376
|
+
def query_string(self):
|
|
377
|
+
"""Gets the query_string of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
:return: The query_string of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
381
|
+
:rtype: str
|
|
382
|
+
"""
|
|
383
|
+
return self._query_string
|
|
384
|
+
|
|
385
|
+
@query_string.setter
|
|
386
|
+
def query_string(self, query_string):
|
|
387
|
+
"""Sets the query_string of this DescribeSQLConcurrencyControlRulesRequest.
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
:param query_string: The query_string of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
391
|
+
:type: str
|
|
392
|
+
"""
|
|
393
|
+
|
|
394
|
+
self._query_string = query_string
|
|
395
|
+
|
|
396
|
+
@property
|
|
397
|
+
def workspace_id(self):
|
|
398
|
+
"""Gets the workspace_id of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
:return: The workspace_id of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
402
|
+
:rtype: str
|
|
403
|
+
"""
|
|
404
|
+
return self._workspace_id
|
|
405
|
+
|
|
406
|
+
@workspace_id.setter
|
|
407
|
+
def workspace_id(self, workspace_id):
|
|
408
|
+
"""Sets the workspace_id of this DescribeSQLConcurrencyControlRulesRequest.
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:param workspace_id: The workspace_id of this DescribeSQLConcurrencyControlRulesRequest. # noqa: E501
|
|
412
|
+
:type: str
|
|
413
|
+
"""
|
|
414
|
+
if self._configuration.client_side_validation and workspace_id is None:
|
|
415
|
+
raise ValueError("Invalid value for `workspace_id`, must not be `None`") # noqa: E501
|
|
416
|
+
|
|
417
|
+
self._workspace_id = workspace_id
|
|
418
|
+
|
|
419
|
+
def to_dict(self):
|
|
420
|
+
"""Returns the model properties as a dict"""
|
|
421
|
+
result = {}
|
|
422
|
+
|
|
423
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
424
|
+
value = getattr(self, attr)
|
|
425
|
+
if isinstance(value, list):
|
|
426
|
+
result[attr] = list(map(
|
|
427
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
428
|
+
value
|
|
429
|
+
))
|
|
430
|
+
elif hasattr(value, "to_dict"):
|
|
431
|
+
result[attr] = value.to_dict()
|
|
432
|
+
elif isinstance(value, dict):
|
|
433
|
+
result[attr] = dict(map(
|
|
434
|
+
lambda item: (item[0], item[1].to_dict())
|
|
435
|
+
if hasattr(item[1], "to_dict") else item,
|
|
436
|
+
value.items()
|
|
437
|
+
))
|
|
438
|
+
else:
|
|
439
|
+
result[attr] = value
|
|
440
|
+
if issubclass(DescribeSQLConcurrencyControlRulesRequest, dict):
|
|
441
|
+
for key, value in self.items():
|
|
442
|
+
result[key] = value
|
|
443
|
+
|
|
444
|
+
return result
|
|
445
|
+
|
|
446
|
+
def to_str(self):
|
|
447
|
+
"""Returns the string representation of the model"""
|
|
448
|
+
return pprint.pformat(self.to_dict())
|
|
449
|
+
|
|
450
|
+
def __repr__(self):
|
|
451
|
+
"""For `print` and `pprint`"""
|
|
452
|
+
return self.to_str()
|
|
453
|
+
|
|
454
|
+
def __eq__(self, other):
|
|
455
|
+
"""Returns true if both objects are equal"""
|
|
456
|
+
if not isinstance(other, DescribeSQLConcurrencyControlRulesRequest):
|
|
457
|
+
return False
|
|
458
|
+
|
|
459
|
+
return self.to_dict() == other.to_dict()
|
|
460
|
+
|
|
461
|
+
def __ne__(self, other):
|
|
462
|
+
"""Returns true if both objects are not equal"""
|
|
463
|
+
if not isinstance(other, DescribeSQLConcurrencyControlRulesRequest):
|
|
464
|
+
return True
|
|
465
|
+
|
|
466
|
+
return self.to_dict() != other.to_dict()
|