huaweicloudsdkworkspace 3.1.123__py2.py3-none-any.whl → 3.1.125__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.
Potentially problematic release.
This version of huaweicloudsdkworkspace might be problematic. Click here for more details.
- huaweicloudsdkworkspace/v2/__init__.py +54 -0
- huaweicloudsdkworkspace/v2/model/__init__.py +54 -0
- huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_req.py +144 -0
- huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_response.py +319 -0
- huaweicloudsdkworkspace/v2/model/authorized_objects.py +227 -0
- huaweicloudsdkworkspace/v2/model/autoscale_policy.py +202 -0
- huaweicloudsdkworkspace/v2/model/base_error.py +144 -0
- huaweicloudsdkworkspace/v2/model/batch_delete_user_req.py +114 -0
- huaweicloudsdkworkspace/v2/model/batch_delete_user_request.py +111 -0
- huaweicloudsdkworkspace/v2/model/batch_delete_user_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/cbc_callback_rsp.py +289 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request.py +139 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request_body.py +143 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_req.py +708 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_request.py +140 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_pool_response.py +116 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_rsp.py +115 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_request.py +114 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_req.py +115 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_request.py +139 -0
- huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_response.py +116 -0
- huaweicloudsdkworkspace/v2/model/desktop_pool_action_req.py +143 -0
- huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_request.py +139 -0
- huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_response.py +116 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_req.py +143 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_response.py +116 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_req.py +144 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_response.py +319 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_request.py +172 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_response.py +145 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_pools_request.py +260 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_pools_response.py +145 -0
- huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_request.py +201 -0
- huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_response.py +203 -0
- huaweicloudsdkworkspace/v2/model/pool_desktops_detail_info.py +1147 -0
- huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_req.py +288 -0
- huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_response.py +232 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_extend_param.py +115 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_pool_job_response.py +144 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_pool_req.py +197 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_pool_request.py +168 -0
- huaweicloudsdkworkspace/v2/model/resize_desktop_pool_response.py +174 -0
- huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_request.py +114 -0
- huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_response.py +887 -0
- huaweicloudsdkworkspace/v2/model/simple_desktop_pool_info.py +886 -0
- huaweicloudsdkworkspace/v2/model/update_desktop_pool_attributes_req.py +372 -0
- huaweicloudsdkworkspace/v2/model/update_desktop_pool_request.py +139 -0
- huaweicloudsdkworkspace/v2/model/update_desktop_pool_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/volume_add_info.py +200 -0
- huaweicloudsdkworkspace/v2/model/volume_info.py +229 -0
- huaweicloudsdkworkspace/v2/workspace_async_client.py +1091 -0
- huaweicloudsdkworkspace/v2/workspace_client.py +1091 -0
- {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/METADATA +2 -2
- {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/RECORD +63 -9
- {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/WHEEL +1 -1
- {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/LICENSE +0 -0
- {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListPoolDesktopsDetailRequest:
|
|
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
|
+
'pool_id': 'str',
|
|
21
|
+
'inconsistent_type': 'str',
|
|
22
|
+
'offset': 'int',
|
|
23
|
+
'limit': 'int'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'pool_id': 'pool_id',
|
|
28
|
+
'inconsistent_type': 'inconsistent_type',
|
|
29
|
+
'offset': 'offset',
|
|
30
|
+
'limit': 'limit'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, pool_id=None, inconsistent_type=None, offset=None, limit=None):
|
|
34
|
+
"""ListPoolDesktopsDetailRequest
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param pool_id: 桌面池ID。
|
|
39
|
+
:type pool_id: str
|
|
40
|
+
:param inconsistent_type: 通过该类型过滤出与桌面池规格类型不一致的桌面 - PRODUCT: 查找productID与桌面池套餐ID不一致的桌面 - IMAGE: 查找imageID与桌面池镜像ID不一致的桌面
|
|
41
|
+
:type inconsistent_type: str
|
|
42
|
+
:param offset: 用于分页查询,查询的起始记录序号,从0开始
|
|
43
|
+
:type offset: int
|
|
44
|
+
:param limit: 用于分页查询,返回桌面数量限制。取值范围0-100,默认值是10
|
|
45
|
+
:type limit: int
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._pool_id = None
|
|
51
|
+
self._inconsistent_type = None
|
|
52
|
+
self._offset = None
|
|
53
|
+
self._limit = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
self.pool_id = pool_id
|
|
57
|
+
if inconsistent_type is not None:
|
|
58
|
+
self.inconsistent_type = inconsistent_type
|
|
59
|
+
if offset is not None:
|
|
60
|
+
self.offset = offset
|
|
61
|
+
if limit is not None:
|
|
62
|
+
self.limit = limit
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def pool_id(self):
|
|
66
|
+
"""Gets the pool_id of this ListPoolDesktopsDetailRequest.
|
|
67
|
+
|
|
68
|
+
桌面池ID。
|
|
69
|
+
|
|
70
|
+
:return: The pool_id of this ListPoolDesktopsDetailRequest.
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._pool_id
|
|
74
|
+
|
|
75
|
+
@pool_id.setter
|
|
76
|
+
def pool_id(self, pool_id):
|
|
77
|
+
"""Sets the pool_id of this ListPoolDesktopsDetailRequest.
|
|
78
|
+
|
|
79
|
+
桌面池ID。
|
|
80
|
+
|
|
81
|
+
:param pool_id: The pool_id of this ListPoolDesktopsDetailRequest.
|
|
82
|
+
:type pool_id: str
|
|
83
|
+
"""
|
|
84
|
+
self._pool_id = pool_id
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def inconsistent_type(self):
|
|
88
|
+
"""Gets the inconsistent_type of this ListPoolDesktopsDetailRequest.
|
|
89
|
+
|
|
90
|
+
通过该类型过滤出与桌面池规格类型不一致的桌面 - PRODUCT: 查找productID与桌面池套餐ID不一致的桌面 - IMAGE: 查找imageID与桌面池镜像ID不一致的桌面
|
|
91
|
+
|
|
92
|
+
:return: The inconsistent_type of this ListPoolDesktopsDetailRequest.
|
|
93
|
+
:rtype: str
|
|
94
|
+
"""
|
|
95
|
+
return self._inconsistent_type
|
|
96
|
+
|
|
97
|
+
@inconsistent_type.setter
|
|
98
|
+
def inconsistent_type(self, inconsistent_type):
|
|
99
|
+
"""Sets the inconsistent_type of this ListPoolDesktopsDetailRequest.
|
|
100
|
+
|
|
101
|
+
通过该类型过滤出与桌面池规格类型不一致的桌面 - PRODUCT: 查找productID与桌面池套餐ID不一致的桌面 - IMAGE: 查找imageID与桌面池镜像ID不一致的桌面
|
|
102
|
+
|
|
103
|
+
:param inconsistent_type: The inconsistent_type of this ListPoolDesktopsDetailRequest.
|
|
104
|
+
:type inconsistent_type: str
|
|
105
|
+
"""
|
|
106
|
+
self._inconsistent_type = inconsistent_type
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def offset(self):
|
|
110
|
+
"""Gets the offset of this ListPoolDesktopsDetailRequest.
|
|
111
|
+
|
|
112
|
+
用于分页查询,查询的起始记录序号,从0开始
|
|
113
|
+
|
|
114
|
+
:return: The offset of this ListPoolDesktopsDetailRequest.
|
|
115
|
+
:rtype: int
|
|
116
|
+
"""
|
|
117
|
+
return self._offset
|
|
118
|
+
|
|
119
|
+
@offset.setter
|
|
120
|
+
def offset(self, offset):
|
|
121
|
+
"""Sets the offset of this ListPoolDesktopsDetailRequest.
|
|
122
|
+
|
|
123
|
+
用于分页查询,查询的起始记录序号,从0开始
|
|
124
|
+
|
|
125
|
+
:param offset: The offset of this ListPoolDesktopsDetailRequest.
|
|
126
|
+
:type offset: int
|
|
127
|
+
"""
|
|
128
|
+
self._offset = offset
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def limit(self):
|
|
132
|
+
"""Gets the limit of this ListPoolDesktopsDetailRequest.
|
|
133
|
+
|
|
134
|
+
用于分页查询,返回桌面数量限制。取值范围0-100,默认值是10
|
|
135
|
+
|
|
136
|
+
:return: The limit of this ListPoolDesktopsDetailRequest.
|
|
137
|
+
:rtype: int
|
|
138
|
+
"""
|
|
139
|
+
return self._limit
|
|
140
|
+
|
|
141
|
+
@limit.setter
|
|
142
|
+
def limit(self, limit):
|
|
143
|
+
"""Sets the limit of this ListPoolDesktopsDetailRequest.
|
|
144
|
+
|
|
145
|
+
用于分页查询,返回桌面数量限制。取值范围0-100,默认值是10
|
|
146
|
+
|
|
147
|
+
:param limit: The limit of this ListPoolDesktopsDetailRequest.
|
|
148
|
+
:type limit: int
|
|
149
|
+
"""
|
|
150
|
+
self._limit = limit
|
|
151
|
+
|
|
152
|
+
def to_dict(self):
|
|
153
|
+
"""Returns the model properties as a dict"""
|
|
154
|
+
result = {}
|
|
155
|
+
|
|
156
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
157
|
+
value = getattr(self, attr)
|
|
158
|
+
if isinstance(value, list):
|
|
159
|
+
result[attr] = list(map(
|
|
160
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
161
|
+
value
|
|
162
|
+
))
|
|
163
|
+
elif hasattr(value, "to_dict"):
|
|
164
|
+
result[attr] = value.to_dict()
|
|
165
|
+
elif isinstance(value, dict):
|
|
166
|
+
result[attr] = dict(map(
|
|
167
|
+
lambda item: (item[0], item[1].to_dict())
|
|
168
|
+
if hasattr(item[1], "to_dict") else item,
|
|
169
|
+
value.items()
|
|
170
|
+
))
|
|
171
|
+
else:
|
|
172
|
+
if attr in self.sensitive_list:
|
|
173
|
+
result[attr] = "****"
|
|
174
|
+
else:
|
|
175
|
+
result[attr] = value
|
|
176
|
+
|
|
177
|
+
return result
|
|
178
|
+
|
|
179
|
+
def to_str(self):
|
|
180
|
+
"""Returns the string representation of the model"""
|
|
181
|
+
import simplejson as json
|
|
182
|
+
if six.PY2:
|
|
183
|
+
import sys
|
|
184
|
+
reload(sys)
|
|
185
|
+
sys.setdefaultencoding("utf-8")
|
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
187
|
+
|
|
188
|
+
def __repr__(self):
|
|
189
|
+
"""For `print`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other):
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, ListPoolDesktopsDetailRequest):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other):
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -0,0 +1,203 @@
|
|
|
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 ListPoolDesktopsDetailResponse(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
|
+
'pool_desktops': 'list[PoolDesktopsDetailInfo]',
|
|
22
|
+
'total_count': 'int',
|
|
23
|
+
'on_demand_desktops_num': 'int',
|
|
24
|
+
'period_desktops_num': 'int'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'pool_desktops': 'pool_desktops',
|
|
29
|
+
'total_count': 'total_count',
|
|
30
|
+
'on_demand_desktops_num': 'on_demand_desktops_num',
|
|
31
|
+
'period_desktops_num': 'period_desktops_num'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
def __init__(self, pool_desktops=None, total_count=None, on_demand_desktops_num=None, period_desktops_num=None):
|
|
35
|
+
"""ListPoolDesktopsDetailResponse
|
|
36
|
+
|
|
37
|
+
The model defined in huaweicloud sdk
|
|
38
|
+
|
|
39
|
+
:param pool_desktops: 池桌面详情
|
|
40
|
+
:type pool_desktops: list[:class:`huaweicloudsdkworkspace.v2.PoolDesktopsDetailInfo`]
|
|
41
|
+
:param total_count: 桌面总数。
|
|
42
|
+
:type total_count: int
|
|
43
|
+
:param on_demand_desktops_num: 按需桌面总数。
|
|
44
|
+
:type on_demand_desktops_num: int
|
|
45
|
+
:param period_desktops_num: 包周期桌面总数。
|
|
46
|
+
:type period_desktops_num: int
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
super(ListPoolDesktopsDetailResponse, self).__init__()
|
|
50
|
+
|
|
51
|
+
self._pool_desktops = None
|
|
52
|
+
self._total_count = None
|
|
53
|
+
self._on_demand_desktops_num = None
|
|
54
|
+
self._period_desktops_num = None
|
|
55
|
+
self.discriminator = None
|
|
56
|
+
|
|
57
|
+
if pool_desktops is not None:
|
|
58
|
+
self.pool_desktops = pool_desktops
|
|
59
|
+
if total_count is not None:
|
|
60
|
+
self.total_count = total_count
|
|
61
|
+
if on_demand_desktops_num is not None:
|
|
62
|
+
self.on_demand_desktops_num = on_demand_desktops_num
|
|
63
|
+
if period_desktops_num is not None:
|
|
64
|
+
self.period_desktops_num = period_desktops_num
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def pool_desktops(self):
|
|
68
|
+
"""Gets the pool_desktops of this ListPoolDesktopsDetailResponse.
|
|
69
|
+
|
|
70
|
+
池桌面详情
|
|
71
|
+
|
|
72
|
+
:return: The pool_desktops of this ListPoolDesktopsDetailResponse.
|
|
73
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.PoolDesktopsDetailInfo`]
|
|
74
|
+
"""
|
|
75
|
+
return self._pool_desktops
|
|
76
|
+
|
|
77
|
+
@pool_desktops.setter
|
|
78
|
+
def pool_desktops(self, pool_desktops):
|
|
79
|
+
"""Sets the pool_desktops of this ListPoolDesktopsDetailResponse.
|
|
80
|
+
|
|
81
|
+
池桌面详情
|
|
82
|
+
|
|
83
|
+
:param pool_desktops: The pool_desktops of this ListPoolDesktopsDetailResponse.
|
|
84
|
+
:type pool_desktops: list[:class:`huaweicloudsdkworkspace.v2.PoolDesktopsDetailInfo`]
|
|
85
|
+
"""
|
|
86
|
+
self._pool_desktops = pool_desktops
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def total_count(self):
|
|
90
|
+
"""Gets the total_count of this ListPoolDesktopsDetailResponse.
|
|
91
|
+
|
|
92
|
+
桌面总数。
|
|
93
|
+
|
|
94
|
+
:return: The total_count of this ListPoolDesktopsDetailResponse.
|
|
95
|
+
:rtype: int
|
|
96
|
+
"""
|
|
97
|
+
return self._total_count
|
|
98
|
+
|
|
99
|
+
@total_count.setter
|
|
100
|
+
def total_count(self, total_count):
|
|
101
|
+
"""Sets the total_count of this ListPoolDesktopsDetailResponse.
|
|
102
|
+
|
|
103
|
+
桌面总数。
|
|
104
|
+
|
|
105
|
+
:param total_count: The total_count of this ListPoolDesktopsDetailResponse.
|
|
106
|
+
:type total_count: int
|
|
107
|
+
"""
|
|
108
|
+
self._total_count = total_count
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def on_demand_desktops_num(self):
|
|
112
|
+
"""Gets the on_demand_desktops_num of this ListPoolDesktopsDetailResponse.
|
|
113
|
+
|
|
114
|
+
按需桌面总数。
|
|
115
|
+
|
|
116
|
+
:return: The on_demand_desktops_num of this ListPoolDesktopsDetailResponse.
|
|
117
|
+
:rtype: int
|
|
118
|
+
"""
|
|
119
|
+
return self._on_demand_desktops_num
|
|
120
|
+
|
|
121
|
+
@on_demand_desktops_num.setter
|
|
122
|
+
def on_demand_desktops_num(self, on_demand_desktops_num):
|
|
123
|
+
"""Sets the on_demand_desktops_num of this ListPoolDesktopsDetailResponse.
|
|
124
|
+
|
|
125
|
+
按需桌面总数。
|
|
126
|
+
|
|
127
|
+
:param on_demand_desktops_num: The on_demand_desktops_num of this ListPoolDesktopsDetailResponse.
|
|
128
|
+
:type on_demand_desktops_num: int
|
|
129
|
+
"""
|
|
130
|
+
self._on_demand_desktops_num = on_demand_desktops_num
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def period_desktops_num(self):
|
|
134
|
+
"""Gets the period_desktops_num of this ListPoolDesktopsDetailResponse.
|
|
135
|
+
|
|
136
|
+
包周期桌面总数。
|
|
137
|
+
|
|
138
|
+
:return: The period_desktops_num of this ListPoolDesktopsDetailResponse.
|
|
139
|
+
:rtype: int
|
|
140
|
+
"""
|
|
141
|
+
return self._period_desktops_num
|
|
142
|
+
|
|
143
|
+
@period_desktops_num.setter
|
|
144
|
+
def period_desktops_num(self, period_desktops_num):
|
|
145
|
+
"""Sets the period_desktops_num of this ListPoolDesktopsDetailResponse.
|
|
146
|
+
|
|
147
|
+
包周期桌面总数。
|
|
148
|
+
|
|
149
|
+
:param period_desktops_num: The period_desktops_num of this ListPoolDesktopsDetailResponse.
|
|
150
|
+
:type period_desktops_num: int
|
|
151
|
+
"""
|
|
152
|
+
self._period_desktops_num = period_desktops_num
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.openapi_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
|
+
if attr in self.sensitive_list:
|
|
175
|
+
result[attr] = "****"
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
import simplejson as json
|
|
184
|
+
if six.PY2:
|
|
185
|
+
import sys
|
|
186
|
+
reload(sys)
|
|
187
|
+
sys.setdefaultencoding("utf-8")
|
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
189
|
+
|
|
190
|
+
def __repr__(self):
|
|
191
|
+
"""For `print`"""
|
|
192
|
+
return self.to_str()
|
|
193
|
+
|
|
194
|
+
def __eq__(self, other):
|
|
195
|
+
"""Returns true if both objects are equal"""
|
|
196
|
+
if not isinstance(other, ListPoolDesktopsDetailResponse):
|
|
197
|
+
return False
|
|
198
|
+
|
|
199
|
+
return self.__dict__ == other.__dict__
|
|
200
|
+
|
|
201
|
+
def __ne__(self, other):
|
|
202
|
+
"""Returns true if both objects are not equal"""
|
|
203
|
+
return not self == other
|