huaweicloudsdkmrs 3.1.70__py2.py3-none-any.whl → 3.1.72__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.
- huaweicloudsdkmrs/v1/__init__.py +9 -0
- huaweicloudsdkmrs/v1/model/__init__.py +9 -0
- huaweicloudsdkmrs/v1/model/component_external_datasource.py +144 -0
- huaweicloudsdkmrs/v1/model/flavor_lists.py +173 -0
- huaweicloudsdkmrs/v1/model/node_constraint.py +376 -0
- huaweicloudsdkmrs/v1/model/node_constraints.py +315 -0
- huaweicloudsdkmrs/v1/model/role_deploy_meta.py +637 -0
- huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_request.py +143 -0
- huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_response.py +456 -0
- huaweicloudsdkmrs/v1/model/version_component.py +434 -0
- huaweicloudsdkmrs/v1/model/version_constraint.py +169 -0
- huaweicloudsdkmrs/v1/mrs_async_client.py +75 -0
- huaweicloudsdkmrs/v1/mrs_client.py +75 -0
- huaweicloudsdkmrs/v1/region/mrs_region.py +3 -0
- huaweicloudsdkmrs/v2/__init__.py +15 -0
- huaweicloudsdkmrs/v2/model/__init__.py +15 -0
- huaweicloudsdkmrs/v2/model/auto_scaling_policy_delete_req.py +142 -0
- huaweicloudsdkmrs/v2/model/auto_scaling_policy_info.py +257 -0
- huaweicloudsdkmrs/v2/model/auto_scaling_policy_v2.py +11 -12
- huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_request.py +139 -0
- huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_response.py +85 -0
- huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_request.py +139 -0
- huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_response.py +85 -0
- huaweicloudsdkmrs/v2/model/modify_default_tags_request_body.py +114 -0
- huaweicloudsdkmrs/v2/model/show_tag_quota_request.py +143 -0
- huaweicloudsdkmrs/v2/model/show_tag_quota_response.py +145 -0
- huaweicloudsdkmrs/v2/model/show_tag_status_request.py +114 -0
- huaweicloudsdkmrs/v2/model/show_tag_status_response.py +145 -0
- huaweicloudsdkmrs/v2/model/switch_cluster_tags_request.py +139 -0
- huaweicloudsdkmrs/v2/model/switch_cluster_tags_response.py +85 -0
- huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_request.py +139 -0
- huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_response.py +85 -0
- huaweicloudsdkmrs/v2/mrs_async_client.py +400 -0
- huaweicloudsdkmrs/v2/mrs_client.py +400 -0
- huaweicloudsdkmrs/v2/region/mrs_region.py +3 -0
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/METADATA +2 -2
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/RECORD +40 -16
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/LICENSE +0 -0
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/WHEEL +0 -0
- {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteAutoScalingPolicyRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'cluster_id': 'str',
|
21
|
+
'body': 'AutoScalingPolicyDeleteReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'cluster_id': 'cluster_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, cluster_id=None, body=None):
|
30
|
+
"""DeleteAutoScalingPolicyRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param cluster_id: 集群ID。
|
35
|
+
:type cluster_id: str
|
36
|
+
:param body: Body of the DeleteAutoScalingPolicyRequest
|
37
|
+
:type body: :class:`huaweicloudsdkmrs.v2.AutoScalingPolicyDeleteReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._cluster_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.cluster_id = cluster_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def cluster_id(self):
|
52
|
+
"""Gets the cluster_id of this DeleteAutoScalingPolicyRequest.
|
53
|
+
|
54
|
+
集群ID。
|
55
|
+
|
56
|
+
:return: The cluster_id of this DeleteAutoScalingPolicyRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._cluster_id
|
60
|
+
|
61
|
+
@cluster_id.setter
|
62
|
+
def cluster_id(self, cluster_id):
|
63
|
+
"""Sets the cluster_id of this DeleteAutoScalingPolicyRequest.
|
64
|
+
|
65
|
+
集群ID。
|
66
|
+
|
67
|
+
:param cluster_id: The cluster_id of this DeleteAutoScalingPolicyRequest.
|
68
|
+
:type cluster_id: str
|
69
|
+
"""
|
70
|
+
self._cluster_id = cluster_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
"""Gets the body of this DeleteAutoScalingPolicyRequest.
|
75
|
+
|
76
|
+
:return: The body of this DeleteAutoScalingPolicyRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkmrs.v2.AutoScalingPolicyDeleteReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this DeleteAutoScalingPolicyRequest.
|
84
|
+
|
85
|
+
:param body: The body of this DeleteAutoScalingPolicyRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkmrs.v2.AutoScalingPolicyDeleteReq`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, DeleteAutoScalingPolicyRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class DeleteAutoScalingPolicyResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
"""DeleteAutoScalingPolicyResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteAutoScalingPolicyResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, DeleteAutoScalingPolicyResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ModifyDefaultTagsRequestBody:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'action': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'action': 'action'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, action=None):
|
28
|
+
"""ModifyDefaultTagsRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param action: 操作类型,支持创建和删除
|
33
|
+
:type action: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._action = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.action = action
|
42
|
+
|
43
|
+
@property
|
44
|
+
def action(self):
|
45
|
+
"""Gets the action of this ModifyDefaultTagsRequestBody.
|
46
|
+
|
47
|
+
操作类型,支持创建和删除
|
48
|
+
|
49
|
+
:return: The action of this ModifyDefaultTagsRequestBody.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._action
|
53
|
+
|
54
|
+
@action.setter
|
55
|
+
def action(self, action):
|
56
|
+
"""Sets the action of this ModifyDefaultTagsRequestBody.
|
57
|
+
|
58
|
+
操作类型,支持创建和删除
|
59
|
+
|
60
|
+
:param action: The action of this ModifyDefaultTagsRequestBody.
|
61
|
+
:type action: str
|
62
|
+
"""
|
63
|
+
self._action = action
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, ModifyDefaultTagsRequestBody):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowTagQuotaRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'cluster_id': 'str',
|
21
|
+
'auto_scaling_policy_tags': 'bool'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'cluster_id': 'cluster_id',
|
26
|
+
'auto_scaling_policy_tags': 'auto_scaling_policy_tags'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, cluster_id=None, auto_scaling_policy_tags=None):
|
30
|
+
"""ShowTagQuotaRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param cluster_id: 集群ID。
|
35
|
+
:type cluster_id: str
|
36
|
+
:param auto_scaling_policy_tags: 是否查询弹性伸缩策略标签
|
37
|
+
:type auto_scaling_policy_tags: bool
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._cluster_id = None
|
43
|
+
self._auto_scaling_policy_tags = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.cluster_id = cluster_id
|
47
|
+
if auto_scaling_policy_tags is not None:
|
48
|
+
self.auto_scaling_policy_tags = auto_scaling_policy_tags
|
49
|
+
|
50
|
+
@property
|
51
|
+
def cluster_id(self):
|
52
|
+
"""Gets the cluster_id of this ShowTagQuotaRequest.
|
53
|
+
|
54
|
+
集群ID。
|
55
|
+
|
56
|
+
:return: The cluster_id of this ShowTagQuotaRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._cluster_id
|
60
|
+
|
61
|
+
@cluster_id.setter
|
62
|
+
def cluster_id(self, cluster_id):
|
63
|
+
"""Sets the cluster_id of this ShowTagQuotaRequest.
|
64
|
+
|
65
|
+
集群ID。
|
66
|
+
|
67
|
+
:param cluster_id: The cluster_id of this ShowTagQuotaRequest.
|
68
|
+
:type cluster_id: str
|
69
|
+
"""
|
70
|
+
self._cluster_id = cluster_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def auto_scaling_policy_tags(self):
|
74
|
+
"""Gets the auto_scaling_policy_tags of this ShowTagQuotaRequest.
|
75
|
+
|
76
|
+
是否查询弹性伸缩策略标签
|
77
|
+
|
78
|
+
:return: The auto_scaling_policy_tags of this ShowTagQuotaRequest.
|
79
|
+
:rtype: bool
|
80
|
+
"""
|
81
|
+
return self._auto_scaling_policy_tags
|
82
|
+
|
83
|
+
@auto_scaling_policy_tags.setter
|
84
|
+
def auto_scaling_policy_tags(self, auto_scaling_policy_tags):
|
85
|
+
"""Sets the auto_scaling_policy_tags of this ShowTagQuotaRequest.
|
86
|
+
|
87
|
+
是否查询弹性伸缩策略标签
|
88
|
+
|
89
|
+
:param auto_scaling_policy_tags: The auto_scaling_policy_tags of this ShowTagQuotaRequest.
|
90
|
+
:type auto_scaling_policy_tags: bool
|
91
|
+
"""
|
92
|
+
self._auto_scaling_policy_tags = auto_scaling_policy_tags
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowTagQuotaRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowTagQuotaResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'total_quota': 'int',
|
22
|
+
'available_quota': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'total_quota': 'total_quota',
|
27
|
+
'available_quota': 'available_quota'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, total_quota=None, available_quota=None):
|
31
|
+
"""ShowTagQuotaResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param total_quota: 总配额大小
|
36
|
+
:type total_quota: int
|
37
|
+
:param available_quota: 可使用配额大小
|
38
|
+
:type available_quota: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowTagQuotaResponse, self).__init__()
|
42
|
+
|
43
|
+
self._total_quota = None
|
44
|
+
self._available_quota = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if total_quota is not None:
|
48
|
+
self.total_quota = total_quota
|
49
|
+
if available_quota is not None:
|
50
|
+
self.available_quota = available_quota
|
51
|
+
|
52
|
+
@property
|
53
|
+
def total_quota(self):
|
54
|
+
"""Gets the total_quota of this ShowTagQuotaResponse.
|
55
|
+
|
56
|
+
总配额大小
|
57
|
+
|
58
|
+
:return: The total_quota of this ShowTagQuotaResponse.
|
59
|
+
:rtype: int
|
60
|
+
"""
|
61
|
+
return self._total_quota
|
62
|
+
|
63
|
+
@total_quota.setter
|
64
|
+
def total_quota(self, total_quota):
|
65
|
+
"""Sets the total_quota of this ShowTagQuotaResponse.
|
66
|
+
|
67
|
+
总配额大小
|
68
|
+
|
69
|
+
:param total_quota: The total_quota of this ShowTagQuotaResponse.
|
70
|
+
:type total_quota: int
|
71
|
+
"""
|
72
|
+
self._total_quota = total_quota
|
73
|
+
|
74
|
+
@property
|
75
|
+
def available_quota(self):
|
76
|
+
"""Gets the available_quota of this ShowTagQuotaResponse.
|
77
|
+
|
78
|
+
可使用配额大小
|
79
|
+
|
80
|
+
:return: The available_quota of this ShowTagQuotaResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._available_quota
|
84
|
+
|
85
|
+
@available_quota.setter
|
86
|
+
def available_quota(self, available_quota):
|
87
|
+
"""Sets the available_quota of this ShowTagQuotaResponse.
|
88
|
+
|
89
|
+
可使用配额大小
|
90
|
+
|
91
|
+
:param available_quota: The available_quota of this ShowTagQuotaResponse.
|
92
|
+
:type available_quota: int
|
93
|
+
"""
|
94
|
+
self._available_quota = available_quota
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ShowTagQuotaResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|