huaweicloudsdkas 3.1.163__py3-none-any.whl → 3.1.165__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.

Potentially problematic release.


This version of huaweicloudsdkas might be problematic. Click here for more details.

@@ -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 PutWarmPoolRequest:
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
+ 'scaling_group_id': 'str',
21
+ 'body': 'PutWarmPoolOption'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'scaling_group_id': 'scaling_group_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, scaling_group_id=None, body=None):
30
+ r"""PutWarmPoolRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param scaling_group_id: 伸缩组ID
35
+ :type scaling_group_id: str
36
+ :param body: Body of the PutWarmPoolRequest
37
+ :type body: :class:`huaweicloudsdkas.v1.PutWarmPoolOption`
38
+ """
39
+
40
+
41
+
42
+ self._scaling_group_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.scaling_group_id = scaling_group_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def scaling_group_id(self):
52
+ r"""Gets the scaling_group_id of this PutWarmPoolRequest.
53
+
54
+ 伸缩组ID
55
+
56
+ :return: The scaling_group_id of this PutWarmPoolRequest.
57
+ :rtype: str
58
+ """
59
+ return self._scaling_group_id
60
+
61
+ @scaling_group_id.setter
62
+ def scaling_group_id(self, scaling_group_id):
63
+ r"""Sets the scaling_group_id of this PutWarmPoolRequest.
64
+
65
+ 伸缩组ID
66
+
67
+ :param scaling_group_id: The scaling_group_id of this PutWarmPoolRequest.
68
+ :type scaling_group_id: str
69
+ """
70
+ self._scaling_group_id = scaling_group_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this PutWarmPoolRequest.
75
+
76
+ :return: The body of this PutWarmPoolRequest.
77
+ :rtype: :class:`huaweicloudsdkas.v1.PutWarmPoolOption`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this PutWarmPoolRequest.
84
+
85
+ :param body: The body of this PutWarmPoolRequest.
86
+ :type body: :class:`huaweicloudsdkas.v1.PutWarmPoolOption`
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, PutWarmPoolRequest):
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 PutWarmPoolResponse(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
+ r"""PutWarmPoolResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(PutWarmPoolResponse, 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, PutWarmPoolResponse):
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 ShowWarmPoolRequest:
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
+ 'scaling_group_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'scaling_group_id': 'scaling_group_id'
25
+ }
26
+
27
+ def __init__(self, scaling_group_id=None):
28
+ r"""ShowWarmPoolRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param scaling_group_id: 伸缩组ID
33
+ :type scaling_group_id: str
34
+ """
35
+
36
+
37
+
38
+ self._scaling_group_id = None
39
+ self.discriminator = None
40
+
41
+ self.scaling_group_id = scaling_group_id
42
+
43
+ @property
44
+ def scaling_group_id(self):
45
+ r"""Gets the scaling_group_id of this ShowWarmPoolRequest.
46
+
47
+ 伸缩组ID
48
+
49
+ :return: The scaling_group_id of this ShowWarmPoolRequest.
50
+ :rtype: str
51
+ """
52
+ return self._scaling_group_id
53
+
54
+ @scaling_group_id.setter
55
+ def scaling_group_id(self, scaling_group_id):
56
+ r"""Sets the scaling_group_id of this ShowWarmPoolRequest.
57
+
58
+ 伸缩组ID
59
+
60
+ :param scaling_group_id: The scaling_group_id of this ShowWarmPoolRequest.
61
+ :type scaling_group_id: str
62
+ """
63
+ self._scaling_group_id = scaling_group_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, ShowWarmPoolRequest):
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,112 @@
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 ShowWarmPoolResponse(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
+ 'warm_pool': 'WarmPoolInfo'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'warm_pool': 'warm_pool'
26
+ }
27
+
28
+ def __init__(self, warm_pool=None):
29
+ r"""ShowWarmPoolResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param warm_pool:
34
+ :type warm_pool: :class:`huaweicloudsdkas.v1.WarmPoolInfo`
35
+ """
36
+
37
+ super(ShowWarmPoolResponse, self).__init__()
38
+
39
+ self._warm_pool = None
40
+ self.discriminator = None
41
+
42
+ if warm_pool is not None:
43
+ self.warm_pool = warm_pool
44
+
45
+ @property
46
+ def warm_pool(self):
47
+ r"""Gets the warm_pool of this ShowWarmPoolResponse.
48
+
49
+ :return: The warm_pool of this ShowWarmPoolResponse.
50
+ :rtype: :class:`huaweicloudsdkas.v1.WarmPoolInfo`
51
+ """
52
+ return self._warm_pool
53
+
54
+ @warm_pool.setter
55
+ def warm_pool(self, warm_pool):
56
+ r"""Sets the warm_pool of this ShowWarmPoolResponse.
57
+
58
+ :param warm_pool: The warm_pool of this ShowWarmPoolResponse.
59
+ :type warm_pool: :class:`huaweicloudsdkas.v1.WarmPoolInfo`
60
+ """
61
+ self._warm_pool = warm_pool
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, ShowWarmPoolResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class WarmPoolInfo:
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
+ 'min_capacity': 'int',
21
+ 'max_capacity': 'int',
22
+ 'instance_init_wait_time': 'int',
23
+ 'status': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'min_capacity': 'min_capacity',
28
+ 'max_capacity': 'max_capacity',
29
+ 'instance_init_wait_time': 'instance_init_wait_time',
30
+ 'status': 'status'
31
+ }
32
+
33
+ def __init__(self, min_capacity=None, max_capacity=None, instance_init_wait_time=None, status=None):
34
+ r"""WarmPoolInfo
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param min_capacity: 暖池最小容量
39
+ :type min_capacity: int
40
+ :param max_capacity: 暖池最大容量
41
+ :type max_capacity: int
42
+ :param instance_init_wait_time: 实例初始化等待时间
43
+ :type instance_init_wait_time: int
44
+ :param status: 暖池状态
45
+ :type status: str
46
+ """
47
+
48
+
49
+
50
+ self._min_capacity = None
51
+ self._max_capacity = None
52
+ self._instance_init_wait_time = None
53
+ self._status = None
54
+ self.discriminator = None
55
+
56
+ if min_capacity is not None:
57
+ self.min_capacity = min_capacity
58
+ if max_capacity is not None:
59
+ self.max_capacity = max_capacity
60
+ if instance_init_wait_time is not None:
61
+ self.instance_init_wait_time = instance_init_wait_time
62
+ if status is not None:
63
+ self.status = status
64
+
65
+ @property
66
+ def min_capacity(self):
67
+ r"""Gets the min_capacity of this WarmPoolInfo.
68
+
69
+ 暖池最小容量
70
+
71
+ :return: The min_capacity of this WarmPoolInfo.
72
+ :rtype: int
73
+ """
74
+ return self._min_capacity
75
+
76
+ @min_capacity.setter
77
+ def min_capacity(self, min_capacity):
78
+ r"""Sets the min_capacity of this WarmPoolInfo.
79
+
80
+ 暖池最小容量
81
+
82
+ :param min_capacity: The min_capacity of this WarmPoolInfo.
83
+ :type min_capacity: int
84
+ """
85
+ self._min_capacity = min_capacity
86
+
87
+ @property
88
+ def max_capacity(self):
89
+ r"""Gets the max_capacity of this WarmPoolInfo.
90
+
91
+ 暖池最大容量
92
+
93
+ :return: The max_capacity of this WarmPoolInfo.
94
+ :rtype: int
95
+ """
96
+ return self._max_capacity
97
+
98
+ @max_capacity.setter
99
+ def max_capacity(self, max_capacity):
100
+ r"""Sets the max_capacity of this WarmPoolInfo.
101
+
102
+ 暖池最大容量
103
+
104
+ :param max_capacity: The max_capacity of this WarmPoolInfo.
105
+ :type max_capacity: int
106
+ """
107
+ self._max_capacity = max_capacity
108
+
109
+ @property
110
+ def instance_init_wait_time(self):
111
+ r"""Gets the instance_init_wait_time of this WarmPoolInfo.
112
+
113
+ 实例初始化等待时间
114
+
115
+ :return: The instance_init_wait_time of this WarmPoolInfo.
116
+ :rtype: int
117
+ """
118
+ return self._instance_init_wait_time
119
+
120
+ @instance_init_wait_time.setter
121
+ def instance_init_wait_time(self, instance_init_wait_time):
122
+ r"""Sets the instance_init_wait_time of this WarmPoolInfo.
123
+
124
+ 实例初始化等待时间
125
+
126
+ :param instance_init_wait_time: The instance_init_wait_time of this WarmPoolInfo.
127
+ :type instance_init_wait_time: int
128
+ """
129
+ self._instance_init_wait_time = instance_init_wait_time
130
+
131
+ @property
132
+ def status(self):
133
+ r"""Gets the status of this WarmPoolInfo.
134
+
135
+ 暖池状态
136
+
137
+ :return: The status of this WarmPoolInfo.
138
+ :rtype: str
139
+ """
140
+ return self._status
141
+
142
+ @status.setter
143
+ def status(self, status):
144
+ r"""Sets the status of this WarmPoolInfo.
145
+
146
+ 暖池状态
147
+
148
+ :param status: The status of this WarmPoolInfo.
149
+ :type status: str
150
+ """
151
+ self._status = status
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, WarmPoolInfo):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other