huaweicloudsdkmrs 3.1.70__py2.py3-none-any.whl → 3.1.72__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. huaweicloudsdkmrs/v1/__init__.py +9 -0
  2. huaweicloudsdkmrs/v1/model/__init__.py +9 -0
  3. huaweicloudsdkmrs/v1/model/component_external_datasource.py +144 -0
  4. huaweicloudsdkmrs/v1/model/flavor_lists.py +173 -0
  5. huaweicloudsdkmrs/v1/model/node_constraint.py +376 -0
  6. huaweicloudsdkmrs/v1/model/node_constraints.py +315 -0
  7. huaweicloudsdkmrs/v1/model/role_deploy_meta.py +637 -0
  8. huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_request.py +143 -0
  9. huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_response.py +456 -0
  10. huaweicloudsdkmrs/v1/model/version_component.py +434 -0
  11. huaweicloudsdkmrs/v1/model/version_constraint.py +169 -0
  12. huaweicloudsdkmrs/v1/mrs_async_client.py +75 -0
  13. huaweicloudsdkmrs/v1/mrs_client.py +75 -0
  14. huaweicloudsdkmrs/v1/region/mrs_region.py +3 -0
  15. huaweicloudsdkmrs/v2/__init__.py +15 -0
  16. huaweicloudsdkmrs/v2/model/__init__.py +15 -0
  17. huaweicloudsdkmrs/v2/model/auto_scaling_policy_delete_req.py +142 -0
  18. huaweicloudsdkmrs/v2/model/auto_scaling_policy_info.py +257 -0
  19. huaweicloudsdkmrs/v2/model/auto_scaling_policy_v2.py +11 -12
  20. huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_request.py +139 -0
  21. huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_response.py +85 -0
  22. huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_request.py +139 -0
  23. huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_response.py +85 -0
  24. huaweicloudsdkmrs/v2/model/modify_default_tags_request_body.py +114 -0
  25. huaweicloudsdkmrs/v2/model/show_tag_quota_request.py +143 -0
  26. huaweicloudsdkmrs/v2/model/show_tag_quota_response.py +145 -0
  27. huaweicloudsdkmrs/v2/model/show_tag_status_request.py +114 -0
  28. huaweicloudsdkmrs/v2/model/show_tag_status_response.py +145 -0
  29. huaweicloudsdkmrs/v2/model/switch_cluster_tags_request.py +139 -0
  30. huaweicloudsdkmrs/v2/model/switch_cluster_tags_response.py +85 -0
  31. huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_request.py +139 -0
  32. huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_response.py +85 -0
  33. huaweicloudsdkmrs/v2/mrs_async_client.py +400 -0
  34. huaweicloudsdkmrs/v2/mrs_client.py +400 -0
  35. huaweicloudsdkmrs/v2/region/mrs_region.py +3 -0
  36. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/METADATA +2 -2
  37. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/RECORD +40 -16
  38. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/LICENSE +0 -0
  39. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/WHEEL +0 -0
  40. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/top_level.txt +0 -0
@@ -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 ShowTagStatusRequest:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'cluster_id': 'cluster_id'
25
+ }
26
+
27
+ def __init__(self, cluster_id=None):
28
+ """ShowTagStatusRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param cluster_id: 集群ID。
33
+ :type cluster_id: str
34
+ """
35
+
36
+
37
+
38
+ self._cluster_id = None
39
+ self.discriminator = None
40
+
41
+ self.cluster_id = cluster_id
42
+
43
+ @property
44
+ def cluster_id(self):
45
+ """Gets the cluster_id of this ShowTagStatusRequest.
46
+
47
+ 集群ID。
48
+
49
+ :return: The cluster_id of this ShowTagStatusRequest.
50
+ :rtype: str
51
+ """
52
+ return self._cluster_id
53
+
54
+ @cluster_id.setter
55
+ def cluster_id(self, cluster_id):
56
+ """Sets the cluster_id of this ShowTagStatusRequest.
57
+
58
+ 集群ID。
59
+
60
+ :param cluster_id: The cluster_id of this ShowTagStatusRequest.
61
+ :type cluster_id: str
62
+ """
63
+ self._cluster_id = cluster_id
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, ShowTagStatusRequest):
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,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 ShowTagStatusResponse(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
+ 'status': 'str',
22
+ 'default_tags_enable': 'bool'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'status': 'status',
27
+ 'default_tags_enable': 'default_tags_enable'
28
+ }
29
+
30
+ def __init__(self, status=None, default_tags_enable=None):
31
+ """ShowTagStatusResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param status: 标签处理状态
36
+ :type status: str
37
+ :param default_tags_enable: 默认标签是否已开启
38
+ :type default_tags_enable: bool
39
+ """
40
+
41
+ super(ShowTagStatusResponse, self).__init__()
42
+
43
+ self._status = None
44
+ self._default_tags_enable = None
45
+ self.discriminator = None
46
+
47
+ if status is not None:
48
+ self.status = status
49
+ if default_tags_enable is not None:
50
+ self.default_tags_enable = default_tags_enable
51
+
52
+ @property
53
+ def status(self):
54
+ """Gets the status of this ShowTagStatusResponse.
55
+
56
+ 标签处理状态
57
+
58
+ :return: The status of this ShowTagStatusResponse.
59
+ :rtype: str
60
+ """
61
+ return self._status
62
+
63
+ @status.setter
64
+ def status(self, status):
65
+ """Sets the status of this ShowTagStatusResponse.
66
+
67
+ 标签处理状态
68
+
69
+ :param status: The status of this ShowTagStatusResponse.
70
+ :type status: str
71
+ """
72
+ self._status = status
73
+
74
+ @property
75
+ def default_tags_enable(self):
76
+ """Gets the default_tags_enable of this ShowTagStatusResponse.
77
+
78
+ 默认标签是否已开启
79
+
80
+ :return: The default_tags_enable of this ShowTagStatusResponse.
81
+ :rtype: bool
82
+ """
83
+ return self._default_tags_enable
84
+
85
+ @default_tags_enable.setter
86
+ def default_tags_enable(self, default_tags_enable):
87
+ """Sets the default_tags_enable of this ShowTagStatusResponse.
88
+
89
+ 默认标签是否已开启
90
+
91
+ :param default_tags_enable: The default_tags_enable of this ShowTagStatusResponse.
92
+ :type default_tags_enable: bool
93
+ """
94
+ self._default_tags_enable = default_tags_enable
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, ShowTagStatusResponse):
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
@@ -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 SwitchClusterTagsRequest:
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': 'ModifyDefaultTagsRequestBody'
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
+ """SwitchClusterTagsRequest
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 SwitchClusterTagsRequest
37
+ :type body: :class:`huaweicloudsdkmrs.v2.ModifyDefaultTagsRequestBody`
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 SwitchClusterTagsRequest.
53
+
54
+ 集群ID。
55
+
56
+ :return: The cluster_id of this SwitchClusterTagsRequest.
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 SwitchClusterTagsRequest.
64
+
65
+ 集群ID。
66
+
67
+ :param cluster_id: The cluster_id of this SwitchClusterTagsRequest.
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 SwitchClusterTagsRequest.
75
+
76
+ :return: The body of this SwitchClusterTagsRequest.
77
+ :rtype: :class:`huaweicloudsdkmrs.v2.ModifyDefaultTagsRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this SwitchClusterTagsRequest.
84
+
85
+ :param body: The body of this SwitchClusterTagsRequest.
86
+ :type body: :class:`huaweicloudsdkmrs.v2.ModifyDefaultTagsRequestBody`
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, SwitchClusterTagsRequest):
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 SwitchClusterTagsResponse(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
+ """SwitchClusterTagsResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(SwitchClusterTagsResponse, 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, SwitchClusterTagsResponse):
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,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateAutoScalingPolicyRequest:
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': 'AutoScalingPolicyV2'
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
+ """UpdateAutoScalingPolicyRequest
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 UpdateAutoScalingPolicyRequest
37
+ :type body: :class:`huaweicloudsdkmrs.v2.AutoScalingPolicyV2`
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 UpdateAutoScalingPolicyRequest.
53
+
54
+ 集群ID。
55
+
56
+ :return: The cluster_id of this UpdateAutoScalingPolicyRequest.
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 UpdateAutoScalingPolicyRequest.
64
+
65
+ 集群ID。
66
+
67
+ :param cluster_id: The cluster_id of this UpdateAutoScalingPolicyRequest.
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 UpdateAutoScalingPolicyRequest.
75
+
76
+ :return: The body of this UpdateAutoScalingPolicyRequest.
77
+ :rtype: :class:`huaweicloudsdkmrs.v2.AutoScalingPolicyV2`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this UpdateAutoScalingPolicyRequest.
84
+
85
+ :param body: The body of this UpdateAutoScalingPolicyRequest.
86
+ :type body: :class:`huaweicloudsdkmrs.v2.AutoScalingPolicyV2`
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, UpdateAutoScalingPolicyRequest):
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 UpdateAutoScalingPolicyResponse(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
+ """UpdateAutoScalingPolicyResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(UpdateAutoScalingPolicyResponse, 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, UpdateAutoScalingPolicyResponse):
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