huaweicloudsdkworkspace 3.1.122__py2.py3-none-any.whl → 3.1.124__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.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/METADATA +2 -2
- {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/RECORD +63 -9
- {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/WHEEL +1 -1
- {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/LICENSE +0 -0
- {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/top_level.txt +0 -0
|
@@ -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 ExpandDesktopPoolReq:
|
|
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
|
+
'size': 'int',
|
|
21
|
+
'order_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'size': 'size',
|
|
26
|
+
'order_id': 'order_id'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, size=None, order_id=None):
|
|
30
|
+
"""ExpandDesktopPoolReq
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param size: 扩容桌面池的大小。
|
|
35
|
+
:type size: int
|
|
36
|
+
:param order_id: 包周期订购ID,CBC订购回调时使用。
|
|
37
|
+
:type order_id: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._size = None
|
|
43
|
+
self._order_id = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.size = size
|
|
47
|
+
if order_id is not None:
|
|
48
|
+
self.order_id = order_id
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def size(self):
|
|
52
|
+
"""Gets the size of this ExpandDesktopPoolReq.
|
|
53
|
+
|
|
54
|
+
扩容桌面池的大小。
|
|
55
|
+
|
|
56
|
+
:return: The size of this ExpandDesktopPoolReq.
|
|
57
|
+
:rtype: int
|
|
58
|
+
"""
|
|
59
|
+
return self._size
|
|
60
|
+
|
|
61
|
+
@size.setter
|
|
62
|
+
def size(self, size):
|
|
63
|
+
"""Sets the size of this ExpandDesktopPoolReq.
|
|
64
|
+
|
|
65
|
+
扩容桌面池的大小。
|
|
66
|
+
|
|
67
|
+
:param size: The size of this ExpandDesktopPoolReq.
|
|
68
|
+
:type size: int
|
|
69
|
+
"""
|
|
70
|
+
self._size = size
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def order_id(self):
|
|
74
|
+
"""Gets the order_id of this ExpandDesktopPoolReq.
|
|
75
|
+
|
|
76
|
+
包周期订购ID,CBC订购回调时使用。
|
|
77
|
+
|
|
78
|
+
:return: The order_id of this ExpandDesktopPoolReq.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._order_id
|
|
82
|
+
|
|
83
|
+
@order_id.setter
|
|
84
|
+
def order_id(self, order_id):
|
|
85
|
+
"""Sets the order_id of this ExpandDesktopPoolReq.
|
|
86
|
+
|
|
87
|
+
包周期订购ID,CBC订购回调时使用。
|
|
88
|
+
|
|
89
|
+
:param order_id: The order_id of this ExpandDesktopPoolReq.
|
|
90
|
+
:type order_id: str
|
|
91
|
+
"""
|
|
92
|
+
self._order_id = order_id
|
|
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, ExpandDesktopPoolReq):
|
|
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,168 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ExpandDesktopPoolRequest:
|
|
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
|
+
'service_transaction_id': 'str',
|
|
21
|
+
'pool_id': 'str',
|
|
22
|
+
'body': 'ExpandDesktopPoolReq'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'service_transaction_id': 'Service-Transaction-Id',
|
|
27
|
+
'pool_id': 'pool_id',
|
|
28
|
+
'body': 'body'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, service_transaction_id=None, pool_id=None, body=None):
|
|
32
|
+
"""ExpandDesktopPoolRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param service_transaction_id: CBC接口回调时,请求头里带上的业务ID
|
|
37
|
+
:type service_transaction_id: str
|
|
38
|
+
:param pool_id: 桌面池ID。
|
|
39
|
+
:type pool_id: str
|
|
40
|
+
:param body: Body of the ExpandDesktopPoolRequest
|
|
41
|
+
:type body: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolReq`
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._service_transaction_id = None
|
|
47
|
+
self._pool_id = None
|
|
48
|
+
self._body = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
if service_transaction_id is not None:
|
|
52
|
+
self.service_transaction_id = service_transaction_id
|
|
53
|
+
self.pool_id = pool_id
|
|
54
|
+
if body is not None:
|
|
55
|
+
self.body = body
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def service_transaction_id(self):
|
|
59
|
+
"""Gets the service_transaction_id of this ExpandDesktopPoolRequest.
|
|
60
|
+
|
|
61
|
+
CBC接口回调时,请求头里带上的业务ID
|
|
62
|
+
|
|
63
|
+
:return: The service_transaction_id of this ExpandDesktopPoolRequest.
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._service_transaction_id
|
|
67
|
+
|
|
68
|
+
@service_transaction_id.setter
|
|
69
|
+
def service_transaction_id(self, service_transaction_id):
|
|
70
|
+
"""Sets the service_transaction_id of this ExpandDesktopPoolRequest.
|
|
71
|
+
|
|
72
|
+
CBC接口回调时,请求头里带上的业务ID
|
|
73
|
+
|
|
74
|
+
:param service_transaction_id: The service_transaction_id of this ExpandDesktopPoolRequest.
|
|
75
|
+
:type service_transaction_id: str
|
|
76
|
+
"""
|
|
77
|
+
self._service_transaction_id = service_transaction_id
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def pool_id(self):
|
|
81
|
+
"""Gets the pool_id of this ExpandDesktopPoolRequest.
|
|
82
|
+
|
|
83
|
+
桌面池ID。
|
|
84
|
+
|
|
85
|
+
:return: The pool_id of this ExpandDesktopPoolRequest.
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._pool_id
|
|
89
|
+
|
|
90
|
+
@pool_id.setter
|
|
91
|
+
def pool_id(self, pool_id):
|
|
92
|
+
"""Sets the pool_id of this ExpandDesktopPoolRequest.
|
|
93
|
+
|
|
94
|
+
桌面池ID。
|
|
95
|
+
|
|
96
|
+
:param pool_id: The pool_id of this ExpandDesktopPoolRequest.
|
|
97
|
+
:type pool_id: str
|
|
98
|
+
"""
|
|
99
|
+
self._pool_id = pool_id
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def body(self):
|
|
103
|
+
"""Gets the body of this ExpandDesktopPoolRequest.
|
|
104
|
+
|
|
105
|
+
:return: The body of this ExpandDesktopPoolRequest.
|
|
106
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolReq`
|
|
107
|
+
"""
|
|
108
|
+
return self._body
|
|
109
|
+
|
|
110
|
+
@body.setter
|
|
111
|
+
def body(self, body):
|
|
112
|
+
"""Sets the body of this ExpandDesktopPoolRequest.
|
|
113
|
+
|
|
114
|
+
:param body: The body of this ExpandDesktopPoolRequest.
|
|
115
|
+
:type body: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolReq`
|
|
116
|
+
"""
|
|
117
|
+
self._body = body
|
|
118
|
+
|
|
119
|
+
def to_dict(self):
|
|
120
|
+
"""Returns the model properties as a dict"""
|
|
121
|
+
result = {}
|
|
122
|
+
|
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
124
|
+
value = getattr(self, attr)
|
|
125
|
+
if isinstance(value, list):
|
|
126
|
+
result[attr] = list(map(
|
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
128
|
+
value
|
|
129
|
+
))
|
|
130
|
+
elif hasattr(value, "to_dict"):
|
|
131
|
+
result[attr] = value.to_dict()
|
|
132
|
+
elif isinstance(value, dict):
|
|
133
|
+
result[attr] = dict(map(
|
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
|
136
|
+
value.items()
|
|
137
|
+
))
|
|
138
|
+
else:
|
|
139
|
+
if attr in self.sensitive_list:
|
|
140
|
+
result[attr] = "****"
|
|
141
|
+
else:
|
|
142
|
+
result[attr] = value
|
|
143
|
+
|
|
144
|
+
return result
|
|
145
|
+
|
|
146
|
+
def to_str(self):
|
|
147
|
+
"""Returns the string representation of the model"""
|
|
148
|
+
import simplejson as json
|
|
149
|
+
if six.PY2:
|
|
150
|
+
import sys
|
|
151
|
+
reload(sys)
|
|
152
|
+
sys.setdefaultencoding("utf-8")
|
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
154
|
+
|
|
155
|
+
def __repr__(self):
|
|
156
|
+
"""For `print`"""
|
|
157
|
+
return self.to_str()
|
|
158
|
+
|
|
159
|
+
def __eq__(self, other):
|
|
160
|
+
"""Returns true if both objects are equal"""
|
|
161
|
+
if not isinstance(other, ExpandDesktopPoolRequest):
|
|
162
|
+
return False
|
|
163
|
+
|
|
164
|
+
return self.__dict__ == other.__dict__
|
|
165
|
+
|
|
166
|
+
def __ne__(self, other):
|
|
167
|
+
"""Returns true if both objects are not equal"""
|
|
168
|
+
return not self == other
|
|
@@ -0,0 +1,116 @@
|
|
|
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 ExpandDesktopPoolResponse(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
|
+
'job_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'job_id': 'job_id'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, job_id=None):
|
|
29
|
+
"""ExpandDesktopPoolResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param job_id: 创建云桌面总任务id
|
|
34
|
+
:type job_id: str
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
super(ExpandDesktopPoolResponse, self).__init__()
|
|
38
|
+
|
|
39
|
+
self._job_id = None
|
|
40
|
+
self.discriminator = None
|
|
41
|
+
|
|
42
|
+
if job_id is not None:
|
|
43
|
+
self.job_id = job_id
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def job_id(self):
|
|
47
|
+
"""Gets the job_id of this ExpandDesktopPoolResponse.
|
|
48
|
+
|
|
49
|
+
创建云桌面总任务id
|
|
50
|
+
|
|
51
|
+
:return: The job_id of this ExpandDesktopPoolResponse.
|
|
52
|
+
:rtype: str
|
|
53
|
+
"""
|
|
54
|
+
return self._job_id
|
|
55
|
+
|
|
56
|
+
@job_id.setter
|
|
57
|
+
def job_id(self, job_id):
|
|
58
|
+
"""Sets the job_id of this ExpandDesktopPoolResponse.
|
|
59
|
+
|
|
60
|
+
创建云桌面总任务id
|
|
61
|
+
|
|
62
|
+
:param job_id: The job_id of this ExpandDesktopPoolResponse.
|
|
63
|
+
:type job_id: str
|
|
64
|
+
"""
|
|
65
|
+
self._job_id = job_id
|
|
66
|
+
|
|
67
|
+
def to_dict(self):
|
|
68
|
+
"""Returns the model properties as a dict"""
|
|
69
|
+
result = {}
|
|
70
|
+
|
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
72
|
+
value = getattr(self, attr)
|
|
73
|
+
if isinstance(value, list):
|
|
74
|
+
result[attr] = list(map(
|
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
76
|
+
value
|
|
77
|
+
))
|
|
78
|
+
elif hasattr(value, "to_dict"):
|
|
79
|
+
result[attr] = value.to_dict()
|
|
80
|
+
elif isinstance(value, dict):
|
|
81
|
+
result[attr] = dict(map(
|
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
|
84
|
+
value.items()
|
|
85
|
+
))
|
|
86
|
+
else:
|
|
87
|
+
if attr in self.sensitive_list:
|
|
88
|
+
result[attr] = "****"
|
|
89
|
+
else:
|
|
90
|
+
result[attr] = value
|
|
91
|
+
|
|
92
|
+
return result
|
|
93
|
+
|
|
94
|
+
def to_str(self):
|
|
95
|
+
"""Returns the string representation of the model"""
|
|
96
|
+
import simplejson as json
|
|
97
|
+
if six.PY2:
|
|
98
|
+
import sys
|
|
99
|
+
reload(sys)
|
|
100
|
+
sys.setdefaultencoding("utf-8")
|
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
102
|
+
|
|
103
|
+
def __repr__(self):
|
|
104
|
+
"""For `print`"""
|
|
105
|
+
return self.to_str()
|
|
106
|
+
|
|
107
|
+
def __eq__(self, other):
|
|
108
|
+
"""Returns true if both objects are equal"""
|
|
109
|
+
if not isinstance(other, ExpandDesktopPoolResponse):
|
|
110
|
+
return False
|
|
111
|
+
|
|
112
|
+
return self.__dict__ == other.__dict__
|
|
113
|
+
|
|
114
|
+
def __ne__(self, other):
|
|
115
|
+
"""Returns true if both objects are not equal"""
|
|
116
|
+
return not self == other
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ExpandDesktopPoolVolumesReq:
|
|
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
|
+
'order_id': 'str',
|
|
21
|
+
'volumes': 'list[VolumeInfo]'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'order_id': 'order_id',
|
|
26
|
+
'volumes': 'volumes'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, order_id=None, volumes=None):
|
|
30
|
+
"""ExpandDesktopPoolVolumesReq
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param order_id: 包周期订购ID,CBC订购回调时使用。
|
|
35
|
+
:type order_id: str
|
|
36
|
+
:param volumes: 扩容的桌面池磁盘列表。
|
|
37
|
+
:type volumes: list[:class:`huaweicloudsdkworkspace.v2.VolumeInfo`]
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._order_id = None
|
|
43
|
+
self._volumes = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if order_id is not None:
|
|
47
|
+
self.order_id = order_id
|
|
48
|
+
if volumes is not None:
|
|
49
|
+
self.volumes = volumes
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def order_id(self):
|
|
53
|
+
"""Gets the order_id of this ExpandDesktopPoolVolumesReq.
|
|
54
|
+
|
|
55
|
+
包周期订购ID,CBC订购回调时使用。
|
|
56
|
+
|
|
57
|
+
:return: The order_id of this ExpandDesktopPoolVolumesReq.
|
|
58
|
+
:rtype: str
|
|
59
|
+
"""
|
|
60
|
+
return self._order_id
|
|
61
|
+
|
|
62
|
+
@order_id.setter
|
|
63
|
+
def order_id(self, order_id):
|
|
64
|
+
"""Sets the order_id of this ExpandDesktopPoolVolumesReq.
|
|
65
|
+
|
|
66
|
+
包周期订购ID,CBC订购回调时使用。
|
|
67
|
+
|
|
68
|
+
:param order_id: The order_id of this ExpandDesktopPoolVolumesReq.
|
|
69
|
+
:type order_id: str
|
|
70
|
+
"""
|
|
71
|
+
self._order_id = order_id
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def volumes(self):
|
|
75
|
+
"""Gets the volumes of this ExpandDesktopPoolVolumesReq.
|
|
76
|
+
|
|
77
|
+
扩容的桌面池磁盘列表。
|
|
78
|
+
|
|
79
|
+
:return: The volumes of this ExpandDesktopPoolVolumesReq.
|
|
80
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.VolumeInfo`]
|
|
81
|
+
"""
|
|
82
|
+
return self._volumes
|
|
83
|
+
|
|
84
|
+
@volumes.setter
|
|
85
|
+
def volumes(self, volumes):
|
|
86
|
+
"""Sets the volumes of this ExpandDesktopPoolVolumesReq.
|
|
87
|
+
|
|
88
|
+
扩容的桌面池磁盘列表。
|
|
89
|
+
|
|
90
|
+
:param volumes: The volumes of this ExpandDesktopPoolVolumesReq.
|
|
91
|
+
:type volumes: list[:class:`huaweicloudsdkworkspace.v2.VolumeInfo`]
|
|
92
|
+
"""
|
|
93
|
+
self._volumes = volumes
|
|
94
|
+
|
|
95
|
+
def to_dict(self):
|
|
96
|
+
"""Returns the model properties as a dict"""
|
|
97
|
+
result = {}
|
|
98
|
+
|
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
100
|
+
value = getattr(self, attr)
|
|
101
|
+
if isinstance(value, list):
|
|
102
|
+
result[attr] = list(map(
|
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
104
|
+
value
|
|
105
|
+
))
|
|
106
|
+
elif hasattr(value, "to_dict"):
|
|
107
|
+
result[attr] = value.to_dict()
|
|
108
|
+
elif isinstance(value, dict):
|
|
109
|
+
result[attr] = dict(map(
|
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
|
112
|
+
value.items()
|
|
113
|
+
))
|
|
114
|
+
else:
|
|
115
|
+
if attr in self.sensitive_list:
|
|
116
|
+
result[attr] = "****"
|
|
117
|
+
else:
|
|
118
|
+
result[attr] = value
|
|
119
|
+
|
|
120
|
+
return result
|
|
121
|
+
|
|
122
|
+
def to_str(self):
|
|
123
|
+
"""Returns the string representation of the model"""
|
|
124
|
+
import simplejson as json
|
|
125
|
+
if six.PY2:
|
|
126
|
+
import sys
|
|
127
|
+
reload(sys)
|
|
128
|
+
sys.setdefaultencoding("utf-8")
|
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
130
|
+
|
|
131
|
+
def __repr__(self):
|
|
132
|
+
"""For `print`"""
|
|
133
|
+
return self.to_str()
|
|
134
|
+
|
|
135
|
+
def __eq__(self, other):
|
|
136
|
+
"""Returns true if both objects are equal"""
|
|
137
|
+
if not isinstance(other, ExpandDesktopPoolVolumesReq):
|
|
138
|
+
return False
|
|
139
|
+
|
|
140
|
+
return self.__dict__ == other.__dict__
|
|
141
|
+
|
|
142
|
+
def __ne__(self, other):
|
|
143
|
+
"""Returns true if both objects are not equal"""
|
|
144
|
+
return not self == other
|