huaweicloudsdkworkspace 3.1.75__py2.py3-none-any.whl → 3.1.77__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 +13 -0
- huaweicloudsdkworkspace/v2/model/__init__.py +13 -0
- huaweicloudsdkworkspace/v2/model/apply_dedicated_standby_network_param.py +173 -0
- huaweicloudsdkworkspace/v2/model/batch_delete_desktop_name_policy_req.py +115 -0
- huaweicloudsdkworkspace/v2/model/batch_delete_desktop_name_policy_request.py +111 -0
- huaweicloudsdkworkspace/v2/model/batch_delete_desktop_name_policy_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_name_policy_req.py +255 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_name_policy_request.py +111 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_name_policy_response.py +116 -0
- huaweicloudsdkworkspace/v2/model/create_desktop_req.py +32 -3
- huaweicloudsdkworkspace/v2/model/create_user_group_response.py +61 -1
- huaweicloudsdkworkspace/v2/model/desktop_name_policy_info.py +318 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_name_policy_request.py +231 -0
- huaweicloudsdkworkspace/v2/model/list_desktop_name_policy_response.py +145 -0
- huaweicloudsdkworkspace/v2/model/list_used_desktop_info_req.py +30 -1
- huaweicloudsdkworkspace/v2/model/list_workspaces_response.py +62 -4
- huaweicloudsdkworkspace/v2/model/modify_workspace_attributes_req.py +86 -3
- huaweicloudsdkworkspace/v2/model/tags_req.py +3 -3
- huaweicloudsdkworkspace/v2/model/update_desktop_name_policy_req.py +260 -0
- huaweicloudsdkworkspace/v2/model/update_desktop_name_policy_request.py +139 -0
- huaweicloudsdkworkspace/v2/model/update_desktop_name_policy_response.py +85 -0
- huaweicloudsdkworkspace/v2/workspace_async_client.py +270 -0
- huaweicloudsdkworkspace/v2/workspace_client.py +270 -0
- {huaweicloudsdkworkspace-3.1.75.dist-info → huaweicloudsdkworkspace-3.1.77.dist-info}/METADATA +2 -2
- {huaweicloudsdkworkspace-3.1.75.dist-info → huaweicloudsdkworkspace-3.1.77.dist-info}/RECORD +28 -15
- {huaweicloudsdkworkspace-3.1.75.dist-info → huaweicloudsdkworkspace-3.1.77.dist-info}/LICENSE +0 -0
- {huaweicloudsdkworkspace-3.1.75.dist-info → huaweicloudsdkworkspace-3.1.77.dist-info}/WHEEL +0 -0
- {huaweicloudsdkworkspace-3.1.75.dist-info → huaweicloudsdkworkspace-3.1.77.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DesktopNamePolicyInfo:
|
|
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
|
+
'policy_id': 'str',
|
|
21
|
+
'policy_name': 'str',
|
|
22
|
+
'name_prefix': 'str',
|
|
23
|
+
'digit_number': 'int',
|
|
24
|
+
'start_number': 'int',
|
|
25
|
+
'single_domain_user_inc': 'int',
|
|
26
|
+
'is_default_policy': 'bool',
|
|
27
|
+
'is_contain_user': 'bool'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
attribute_map = {
|
|
31
|
+
'policy_id': 'policy_id',
|
|
32
|
+
'policy_name': 'policy_name',
|
|
33
|
+
'name_prefix': 'name_prefix',
|
|
34
|
+
'digit_number': 'digit_number',
|
|
35
|
+
'start_number': 'start_number',
|
|
36
|
+
'single_domain_user_inc': 'single_domain_user_inc',
|
|
37
|
+
'is_default_policy': 'is_default_policy',
|
|
38
|
+
'is_contain_user': 'is_contain_user'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, policy_id=None, policy_name=None, name_prefix=None, digit_number=None, start_number=None, single_domain_user_inc=None, is_default_policy=None, is_contain_user=None):
|
|
42
|
+
"""DesktopNamePolicyInfo
|
|
43
|
+
|
|
44
|
+
The model defined in huaweicloud sdk
|
|
45
|
+
|
|
46
|
+
:param policy_id: 策略id。
|
|
47
|
+
:type policy_id: str
|
|
48
|
+
:param policy_name: 策略名称。
|
|
49
|
+
:type policy_name: str
|
|
50
|
+
:param name_prefix: 策略前缀。
|
|
51
|
+
:type name_prefix: str
|
|
52
|
+
:param digit_number: 策略后缀有效位数。
|
|
53
|
+
:type digit_number: int
|
|
54
|
+
:param start_number: 策略后缀起始数字。
|
|
55
|
+
:type start_number: int
|
|
56
|
+
:param single_domain_user_inc: 是否单用户名递增。 - 1 单用户名递增。 - 0 租户递增。
|
|
57
|
+
:type single_domain_user_inc: int
|
|
58
|
+
:param is_default_policy: 是否为默认策略,true默认策略。
|
|
59
|
+
:type is_default_policy: bool
|
|
60
|
+
:param is_contain_user: 是否包含用户名的桌面名称策略,true包含。
|
|
61
|
+
:type is_contain_user: bool
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
self._policy_id = None
|
|
67
|
+
self._policy_name = None
|
|
68
|
+
self._name_prefix = None
|
|
69
|
+
self._digit_number = None
|
|
70
|
+
self._start_number = None
|
|
71
|
+
self._single_domain_user_inc = None
|
|
72
|
+
self._is_default_policy = None
|
|
73
|
+
self._is_contain_user = None
|
|
74
|
+
self.discriminator = None
|
|
75
|
+
|
|
76
|
+
if policy_id is not None:
|
|
77
|
+
self.policy_id = policy_id
|
|
78
|
+
if policy_name is not None:
|
|
79
|
+
self.policy_name = policy_name
|
|
80
|
+
if name_prefix is not None:
|
|
81
|
+
self.name_prefix = name_prefix
|
|
82
|
+
if digit_number is not None:
|
|
83
|
+
self.digit_number = digit_number
|
|
84
|
+
if start_number is not None:
|
|
85
|
+
self.start_number = start_number
|
|
86
|
+
if single_domain_user_inc is not None:
|
|
87
|
+
self.single_domain_user_inc = single_domain_user_inc
|
|
88
|
+
if is_default_policy is not None:
|
|
89
|
+
self.is_default_policy = is_default_policy
|
|
90
|
+
if is_contain_user is not None:
|
|
91
|
+
self.is_contain_user = is_contain_user
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def policy_id(self):
|
|
95
|
+
"""Gets the policy_id of this DesktopNamePolicyInfo.
|
|
96
|
+
|
|
97
|
+
策略id。
|
|
98
|
+
|
|
99
|
+
:return: The policy_id of this DesktopNamePolicyInfo.
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._policy_id
|
|
103
|
+
|
|
104
|
+
@policy_id.setter
|
|
105
|
+
def policy_id(self, policy_id):
|
|
106
|
+
"""Sets the policy_id of this DesktopNamePolicyInfo.
|
|
107
|
+
|
|
108
|
+
策略id。
|
|
109
|
+
|
|
110
|
+
:param policy_id: The policy_id of this DesktopNamePolicyInfo.
|
|
111
|
+
:type policy_id: str
|
|
112
|
+
"""
|
|
113
|
+
self._policy_id = policy_id
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def policy_name(self):
|
|
117
|
+
"""Gets the policy_name of this DesktopNamePolicyInfo.
|
|
118
|
+
|
|
119
|
+
策略名称。
|
|
120
|
+
|
|
121
|
+
:return: The policy_name of this DesktopNamePolicyInfo.
|
|
122
|
+
:rtype: str
|
|
123
|
+
"""
|
|
124
|
+
return self._policy_name
|
|
125
|
+
|
|
126
|
+
@policy_name.setter
|
|
127
|
+
def policy_name(self, policy_name):
|
|
128
|
+
"""Sets the policy_name of this DesktopNamePolicyInfo.
|
|
129
|
+
|
|
130
|
+
策略名称。
|
|
131
|
+
|
|
132
|
+
:param policy_name: The policy_name of this DesktopNamePolicyInfo.
|
|
133
|
+
:type policy_name: str
|
|
134
|
+
"""
|
|
135
|
+
self._policy_name = policy_name
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def name_prefix(self):
|
|
139
|
+
"""Gets the name_prefix of this DesktopNamePolicyInfo.
|
|
140
|
+
|
|
141
|
+
策略前缀。
|
|
142
|
+
|
|
143
|
+
:return: The name_prefix of this DesktopNamePolicyInfo.
|
|
144
|
+
:rtype: str
|
|
145
|
+
"""
|
|
146
|
+
return self._name_prefix
|
|
147
|
+
|
|
148
|
+
@name_prefix.setter
|
|
149
|
+
def name_prefix(self, name_prefix):
|
|
150
|
+
"""Sets the name_prefix of this DesktopNamePolicyInfo.
|
|
151
|
+
|
|
152
|
+
策略前缀。
|
|
153
|
+
|
|
154
|
+
:param name_prefix: The name_prefix of this DesktopNamePolicyInfo.
|
|
155
|
+
:type name_prefix: str
|
|
156
|
+
"""
|
|
157
|
+
self._name_prefix = name_prefix
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def digit_number(self):
|
|
161
|
+
"""Gets the digit_number of this DesktopNamePolicyInfo.
|
|
162
|
+
|
|
163
|
+
策略后缀有效位数。
|
|
164
|
+
|
|
165
|
+
:return: The digit_number of this DesktopNamePolicyInfo.
|
|
166
|
+
:rtype: int
|
|
167
|
+
"""
|
|
168
|
+
return self._digit_number
|
|
169
|
+
|
|
170
|
+
@digit_number.setter
|
|
171
|
+
def digit_number(self, digit_number):
|
|
172
|
+
"""Sets the digit_number of this DesktopNamePolicyInfo.
|
|
173
|
+
|
|
174
|
+
策略后缀有效位数。
|
|
175
|
+
|
|
176
|
+
:param digit_number: The digit_number of this DesktopNamePolicyInfo.
|
|
177
|
+
:type digit_number: int
|
|
178
|
+
"""
|
|
179
|
+
self._digit_number = digit_number
|
|
180
|
+
|
|
181
|
+
@property
|
|
182
|
+
def start_number(self):
|
|
183
|
+
"""Gets the start_number of this DesktopNamePolicyInfo.
|
|
184
|
+
|
|
185
|
+
策略后缀起始数字。
|
|
186
|
+
|
|
187
|
+
:return: The start_number of this DesktopNamePolicyInfo.
|
|
188
|
+
:rtype: int
|
|
189
|
+
"""
|
|
190
|
+
return self._start_number
|
|
191
|
+
|
|
192
|
+
@start_number.setter
|
|
193
|
+
def start_number(self, start_number):
|
|
194
|
+
"""Sets the start_number of this DesktopNamePolicyInfo.
|
|
195
|
+
|
|
196
|
+
策略后缀起始数字。
|
|
197
|
+
|
|
198
|
+
:param start_number: The start_number of this DesktopNamePolicyInfo.
|
|
199
|
+
:type start_number: int
|
|
200
|
+
"""
|
|
201
|
+
self._start_number = start_number
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
def single_domain_user_inc(self):
|
|
205
|
+
"""Gets the single_domain_user_inc of this DesktopNamePolicyInfo.
|
|
206
|
+
|
|
207
|
+
是否单用户名递增。 - 1 单用户名递增。 - 0 租户递增。
|
|
208
|
+
|
|
209
|
+
:return: The single_domain_user_inc of this DesktopNamePolicyInfo.
|
|
210
|
+
:rtype: int
|
|
211
|
+
"""
|
|
212
|
+
return self._single_domain_user_inc
|
|
213
|
+
|
|
214
|
+
@single_domain_user_inc.setter
|
|
215
|
+
def single_domain_user_inc(self, single_domain_user_inc):
|
|
216
|
+
"""Sets the single_domain_user_inc of this DesktopNamePolicyInfo.
|
|
217
|
+
|
|
218
|
+
是否单用户名递增。 - 1 单用户名递增。 - 0 租户递增。
|
|
219
|
+
|
|
220
|
+
:param single_domain_user_inc: The single_domain_user_inc of this DesktopNamePolicyInfo.
|
|
221
|
+
:type single_domain_user_inc: int
|
|
222
|
+
"""
|
|
223
|
+
self._single_domain_user_inc = single_domain_user_inc
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
def is_default_policy(self):
|
|
227
|
+
"""Gets the is_default_policy of this DesktopNamePolicyInfo.
|
|
228
|
+
|
|
229
|
+
是否为默认策略,true默认策略。
|
|
230
|
+
|
|
231
|
+
:return: The is_default_policy of this DesktopNamePolicyInfo.
|
|
232
|
+
:rtype: bool
|
|
233
|
+
"""
|
|
234
|
+
return self._is_default_policy
|
|
235
|
+
|
|
236
|
+
@is_default_policy.setter
|
|
237
|
+
def is_default_policy(self, is_default_policy):
|
|
238
|
+
"""Sets the is_default_policy of this DesktopNamePolicyInfo.
|
|
239
|
+
|
|
240
|
+
是否为默认策略,true默认策略。
|
|
241
|
+
|
|
242
|
+
:param is_default_policy: The is_default_policy of this DesktopNamePolicyInfo.
|
|
243
|
+
:type is_default_policy: bool
|
|
244
|
+
"""
|
|
245
|
+
self._is_default_policy = is_default_policy
|
|
246
|
+
|
|
247
|
+
@property
|
|
248
|
+
def is_contain_user(self):
|
|
249
|
+
"""Gets the is_contain_user of this DesktopNamePolicyInfo.
|
|
250
|
+
|
|
251
|
+
是否包含用户名的桌面名称策略,true包含。
|
|
252
|
+
|
|
253
|
+
:return: The is_contain_user of this DesktopNamePolicyInfo.
|
|
254
|
+
:rtype: bool
|
|
255
|
+
"""
|
|
256
|
+
return self._is_contain_user
|
|
257
|
+
|
|
258
|
+
@is_contain_user.setter
|
|
259
|
+
def is_contain_user(self, is_contain_user):
|
|
260
|
+
"""Sets the is_contain_user of this DesktopNamePolicyInfo.
|
|
261
|
+
|
|
262
|
+
是否包含用户名的桌面名称策略,true包含。
|
|
263
|
+
|
|
264
|
+
:param is_contain_user: The is_contain_user of this DesktopNamePolicyInfo.
|
|
265
|
+
:type is_contain_user: bool
|
|
266
|
+
"""
|
|
267
|
+
self._is_contain_user = is_contain_user
|
|
268
|
+
|
|
269
|
+
def to_dict(self):
|
|
270
|
+
"""Returns the model properties as a dict"""
|
|
271
|
+
result = {}
|
|
272
|
+
|
|
273
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
274
|
+
value = getattr(self, attr)
|
|
275
|
+
if isinstance(value, list):
|
|
276
|
+
result[attr] = list(map(
|
|
277
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
278
|
+
value
|
|
279
|
+
))
|
|
280
|
+
elif hasattr(value, "to_dict"):
|
|
281
|
+
result[attr] = value.to_dict()
|
|
282
|
+
elif isinstance(value, dict):
|
|
283
|
+
result[attr] = dict(map(
|
|
284
|
+
lambda item: (item[0], item[1].to_dict())
|
|
285
|
+
if hasattr(item[1], "to_dict") else item,
|
|
286
|
+
value.items()
|
|
287
|
+
))
|
|
288
|
+
else:
|
|
289
|
+
if attr in self.sensitive_list:
|
|
290
|
+
result[attr] = "****"
|
|
291
|
+
else:
|
|
292
|
+
result[attr] = value
|
|
293
|
+
|
|
294
|
+
return result
|
|
295
|
+
|
|
296
|
+
def to_str(self):
|
|
297
|
+
"""Returns the string representation of the model"""
|
|
298
|
+
import simplejson as json
|
|
299
|
+
if six.PY2:
|
|
300
|
+
import sys
|
|
301
|
+
reload(sys)
|
|
302
|
+
sys.setdefaultencoding("utf-8")
|
|
303
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
304
|
+
|
|
305
|
+
def __repr__(self):
|
|
306
|
+
"""For `print`"""
|
|
307
|
+
return self.to_str()
|
|
308
|
+
|
|
309
|
+
def __eq__(self, other):
|
|
310
|
+
"""Returns true if both objects are equal"""
|
|
311
|
+
if not isinstance(other, DesktopNamePolicyInfo):
|
|
312
|
+
return False
|
|
313
|
+
|
|
314
|
+
return self.__dict__ == other.__dict__
|
|
315
|
+
|
|
316
|
+
def __ne__(self, other):
|
|
317
|
+
"""Returns true if both objects are not equal"""
|
|
318
|
+
return not self == other
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListDesktopNamePolicyRequest:
|
|
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
|
+
'is_contain_user': 'bool',
|
|
21
|
+
'policy_name': 'str',
|
|
22
|
+
'policy_id': 'str',
|
|
23
|
+
'offset': 'int',
|
|
24
|
+
'limit': 'int'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'is_contain_user': 'is_contain_user',
|
|
29
|
+
'policy_name': 'policy_name',
|
|
30
|
+
'policy_id': 'policy_id',
|
|
31
|
+
'offset': 'offset',
|
|
32
|
+
'limit': 'limit'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, is_contain_user=None, policy_name=None, policy_id=None, offset=None, limit=None):
|
|
36
|
+
"""ListDesktopNamePolicyRequest
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param is_contain_user: 是否包含用户名的桌面名称策略。 - true 包含 - false 不包含
|
|
41
|
+
:type is_contain_user: bool
|
|
42
|
+
:param policy_name: 策略名称,由数字、字母、下划线组成,必须以字母或下划线开头,长度范围为1~30个字符,支持模糊筛选。
|
|
43
|
+
:type policy_name: str
|
|
44
|
+
:param policy_id: 策略id。
|
|
45
|
+
:type policy_id: str
|
|
46
|
+
:param offset: 用于分页查询,查询的起始记录序号,从0开始。
|
|
47
|
+
:type offset: int
|
|
48
|
+
:param limit: 用于分页查询,取值范围0-50,默认值50。
|
|
49
|
+
:type limit: int
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._is_contain_user = None
|
|
55
|
+
self._policy_name = None
|
|
56
|
+
self._policy_id = None
|
|
57
|
+
self._offset = None
|
|
58
|
+
self._limit = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if is_contain_user is not None:
|
|
62
|
+
self.is_contain_user = is_contain_user
|
|
63
|
+
if policy_name is not None:
|
|
64
|
+
self.policy_name = policy_name
|
|
65
|
+
if policy_id is not None:
|
|
66
|
+
self.policy_id = policy_id
|
|
67
|
+
if offset is not None:
|
|
68
|
+
self.offset = offset
|
|
69
|
+
if limit is not None:
|
|
70
|
+
self.limit = limit
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def is_contain_user(self):
|
|
74
|
+
"""Gets the is_contain_user of this ListDesktopNamePolicyRequest.
|
|
75
|
+
|
|
76
|
+
是否包含用户名的桌面名称策略。 - true 包含 - false 不包含
|
|
77
|
+
|
|
78
|
+
:return: The is_contain_user of this ListDesktopNamePolicyRequest.
|
|
79
|
+
:rtype: bool
|
|
80
|
+
"""
|
|
81
|
+
return self._is_contain_user
|
|
82
|
+
|
|
83
|
+
@is_contain_user.setter
|
|
84
|
+
def is_contain_user(self, is_contain_user):
|
|
85
|
+
"""Sets the is_contain_user of this ListDesktopNamePolicyRequest.
|
|
86
|
+
|
|
87
|
+
是否包含用户名的桌面名称策略。 - true 包含 - false 不包含
|
|
88
|
+
|
|
89
|
+
:param is_contain_user: The is_contain_user of this ListDesktopNamePolicyRequest.
|
|
90
|
+
:type is_contain_user: bool
|
|
91
|
+
"""
|
|
92
|
+
self._is_contain_user = is_contain_user
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def policy_name(self):
|
|
96
|
+
"""Gets the policy_name of this ListDesktopNamePolicyRequest.
|
|
97
|
+
|
|
98
|
+
策略名称,由数字、字母、下划线组成,必须以字母或下划线开头,长度范围为1~30个字符,支持模糊筛选。
|
|
99
|
+
|
|
100
|
+
:return: The policy_name of this ListDesktopNamePolicyRequest.
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._policy_name
|
|
104
|
+
|
|
105
|
+
@policy_name.setter
|
|
106
|
+
def policy_name(self, policy_name):
|
|
107
|
+
"""Sets the policy_name of this ListDesktopNamePolicyRequest.
|
|
108
|
+
|
|
109
|
+
策略名称,由数字、字母、下划线组成,必须以字母或下划线开头,长度范围为1~30个字符,支持模糊筛选。
|
|
110
|
+
|
|
111
|
+
:param policy_name: The policy_name of this ListDesktopNamePolicyRequest.
|
|
112
|
+
:type policy_name: str
|
|
113
|
+
"""
|
|
114
|
+
self._policy_name = policy_name
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def policy_id(self):
|
|
118
|
+
"""Gets the policy_id of this ListDesktopNamePolicyRequest.
|
|
119
|
+
|
|
120
|
+
策略id。
|
|
121
|
+
|
|
122
|
+
:return: The policy_id of this ListDesktopNamePolicyRequest.
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._policy_id
|
|
126
|
+
|
|
127
|
+
@policy_id.setter
|
|
128
|
+
def policy_id(self, policy_id):
|
|
129
|
+
"""Sets the policy_id of this ListDesktopNamePolicyRequest.
|
|
130
|
+
|
|
131
|
+
策略id。
|
|
132
|
+
|
|
133
|
+
:param policy_id: The policy_id of this ListDesktopNamePolicyRequest.
|
|
134
|
+
:type policy_id: str
|
|
135
|
+
"""
|
|
136
|
+
self._policy_id = policy_id
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def offset(self):
|
|
140
|
+
"""Gets the offset of this ListDesktopNamePolicyRequest.
|
|
141
|
+
|
|
142
|
+
用于分页查询,查询的起始记录序号,从0开始。
|
|
143
|
+
|
|
144
|
+
:return: The offset of this ListDesktopNamePolicyRequest.
|
|
145
|
+
:rtype: int
|
|
146
|
+
"""
|
|
147
|
+
return self._offset
|
|
148
|
+
|
|
149
|
+
@offset.setter
|
|
150
|
+
def offset(self, offset):
|
|
151
|
+
"""Sets the offset of this ListDesktopNamePolicyRequest.
|
|
152
|
+
|
|
153
|
+
用于分页查询,查询的起始记录序号,从0开始。
|
|
154
|
+
|
|
155
|
+
:param offset: The offset of this ListDesktopNamePolicyRequest.
|
|
156
|
+
:type offset: int
|
|
157
|
+
"""
|
|
158
|
+
self._offset = offset
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def limit(self):
|
|
162
|
+
"""Gets the limit of this ListDesktopNamePolicyRequest.
|
|
163
|
+
|
|
164
|
+
用于分页查询,取值范围0-50,默认值50。
|
|
165
|
+
|
|
166
|
+
:return: The limit of this ListDesktopNamePolicyRequest.
|
|
167
|
+
:rtype: int
|
|
168
|
+
"""
|
|
169
|
+
return self._limit
|
|
170
|
+
|
|
171
|
+
@limit.setter
|
|
172
|
+
def limit(self, limit):
|
|
173
|
+
"""Sets the limit of this ListDesktopNamePolicyRequest.
|
|
174
|
+
|
|
175
|
+
用于分页查询,取值范围0-50,默认值50。
|
|
176
|
+
|
|
177
|
+
:param limit: The limit of this ListDesktopNamePolicyRequest.
|
|
178
|
+
:type limit: int
|
|
179
|
+
"""
|
|
180
|
+
self._limit = limit
|
|
181
|
+
|
|
182
|
+
def to_dict(self):
|
|
183
|
+
"""Returns the model properties as a dict"""
|
|
184
|
+
result = {}
|
|
185
|
+
|
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
187
|
+
value = getattr(self, attr)
|
|
188
|
+
if isinstance(value, list):
|
|
189
|
+
result[attr] = list(map(
|
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
191
|
+
value
|
|
192
|
+
))
|
|
193
|
+
elif hasattr(value, "to_dict"):
|
|
194
|
+
result[attr] = value.to_dict()
|
|
195
|
+
elif isinstance(value, dict):
|
|
196
|
+
result[attr] = dict(map(
|
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
|
199
|
+
value.items()
|
|
200
|
+
))
|
|
201
|
+
else:
|
|
202
|
+
if attr in self.sensitive_list:
|
|
203
|
+
result[attr] = "****"
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
|
|
207
|
+
return result
|
|
208
|
+
|
|
209
|
+
def to_str(self):
|
|
210
|
+
"""Returns the string representation of the model"""
|
|
211
|
+
import simplejson as json
|
|
212
|
+
if six.PY2:
|
|
213
|
+
import sys
|
|
214
|
+
reload(sys)
|
|
215
|
+
sys.setdefaultencoding("utf-8")
|
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
217
|
+
|
|
218
|
+
def __repr__(self):
|
|
219
|
+
"""For `print`"""
|
|
220
|
+
return self.to_str()
|
|
221
|
+
|
|
222
|
+
def __eq__(self, other):
|
|
223
|
+
"""Returns true if both objects are equal"""
|
|
224
|
+
if not isinstance(other, ListDesktopNamePolicyRequest):
|
|
225
|
+
return False
|
|
226
|
+
|
|
227
|
+
return self.__dict__ == other.__dict__
|
|
228
|
+
|
|
229
|
+
def __ne__(self, other):
|
|
230
|
+
"""Returns true if both objects are not equal"""
|
|
231
|
+
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 ListDesktopNamePolicyResponse(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
|
+
'desktop_name_policy_infos': 'list[DesktopNamePolicyInfo]',
|
|
22
|
+
'total_count': 'int'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'desktop_name_policy_infos': 'desktop_name_policy_infos',
|
|
27
|
+
'total_count': 'total_count'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, desktop_name_policy_infos=None, total_count=None):
|
|
31
|
+
"""ListDesktopNamePolicyResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param desktop_name_policy_infos: 桌面名称策略信息。
|
|
36
|
+
:type desktop_name_policy_infos: list[:class:`huaweicloudsdkworkspace.v2.DesktopNamePolicyInfo`]
|
|
37
|
+
:param total_count: 查询返回总条数。
|
|
38
|
+
:type total_count: int
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
super(ListDesktopNamePolicyResponse, self).__init__()
|
|
42
|
+
|
|
43
|
+
self._desktop_name_policy_infos = None
|
|
44
|
+
self._total_count = None
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
if desktop_name_policy_infos is not None:
|
|
48
|
+
self.desktop_name_policy_infos = desktop_name_policy_infos
|
|
49
|
+
if total_count is not None:
|
|
50
|
+
self.total_count = total_count
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def desktop_name_policy_infos(self):
|
|
54
|
+
"""Gets the desktop_name_policy_infos of this ListDesktopNamePolicyResponse.
|
|
55
|
+
|
|
56
|
+
桌面名称策略信息。
|
|
57
|
+
|
|
58
|
+
:return: The desktop_name_policy_infos of this ListDesktopNamePolicyResponse.
|
|
59
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.DesktopNamePolicyInfo`]
|
|
60
|
+
"""
|
|
61
|
+
return self._desktop_name_policy_infos
|
|
62
|
+
|
|
63
|
+
@desktop_name_policy_infos.setter
|
|
64
|
+
def desktop_name_policy_infos(self, desktop_name_policy_infos):
|
|
65
|
+
"""Sets the desktop_name_policy_infos of this ListDesktopNamePolicyResponse.
|
|
66
|
+
|
|
67
|
+
桌面名称策略信息。
|
|
68
|
+
|
|
69
|
+
:param desktop_name_policy_infos: The desktop_name_policy_infos of this ListDesktopNamePolicyResponse.
|
|
70
|
+
:type desktop_name_policy_infos: list[:class:`huaweicloudsdkworkspace.v2.DesktopNamePolicyInfo`]
|
|
71
|
+
"""
|
|
72
|
+
self._desktop_name_policy_infos = desktop_name_policy_infos
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def total_count(self):
|
|
76
|
+
"""Gets the total_count of this ListDesktopNamePolicyResponse.
|
|
77
|
+
|
|
78
|
+
查询返回总条数。
|
|
79
|
+
|
|
80
|
+
:return: The total_count of this ListDesktopNamePolicyResponse.
|
|
81
|
+
:rtype: int
|
|
82
|
+
"""
|
|
83
|
+
return self._total_count
|
|
84
|
+
|
|
85
|
+
@total_count.setter
|
|
86
|
+
def total_count(self, total_count):
|
|
87
|
+
"""Sets the total_count of this ListDesktopNamePolicyResponse.
|
|
88
|
+
|
|
89
|
+
查询返回总条数。
|
|
90
|
+
|
|
91
|
+
:param total_count: The total_count of this ListDesktopNamePolicyResponse.
|
|
92
|
+
:type total_count: int
|
|
93
|
+
"""
|
|
94
|
+
self._total_count = total_count
|
|
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, ListDesktopNamePolicyResponse):
|
|
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
|