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,255 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateDesktopNamePolicyReq:
|
|
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_name': 'str',
|
|
21
|
+
'name_prefix': 'str',
|
|
22
|
+
'digit_number': 'int',
|
|
23
|
+
'start_number': 'int',
|
|
24
|
+
'single_domain_user_inc': 'int',
|
|
25
|
+
'is_default_policy': 'bool'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
attribute_map = {
|
|
29
|
+
'policy_name': 'policy_name',
|
|
30
|
+
'name_prefix': 'name_prefix',
|
|
31
|
+
'digit_number': 'digit_number',
|
|
32
|
+
'start_number': 'start_number',
|
|
33
|
+
'single_domain_user_inc': 'single_domain_user_inc',
|
|
34
|
+
'is_default_policy': 'is_default_policy'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def __init__(self, policy_name=None, name_prefix=None, digit_number=None, start_number=None, single_domain_user_inc=None, is_default_policy=None):
|
|
38
|
+
"""CreateDesktopNamePolicyReq
|
|
39
|
+
|
|
40
|
+
The model defined in huaweicloud sdk
|
|
41
|
+
|
|
42
|
+
:param policy_name: 策略名称,由数字、字母、下划线组成,必须以字母或下划线开头,长度范围为1~30个字符。
|
|
43
|
+
:type policy_name: str
|
|
44
|
+
:param name_prefix: 策略前缀。
|
|
45
|
+
:type name_prefix: str
|
|
46
|
+
:param digit_number: 策略后缀有效位数。
|
|
47
|
+
:type digit_number: int
|
|
48
|
+
:param start_number: 策略后缀起始数字。
|
|
49
|
+
:type start_number: int
|
|
50
|
+
:param single_domain_user_inc: 是否单用户名递增。 - 1 单用户名递增。 - 0 租户递增。
|
|
51
|
+
:type single_domain_user_inc: int
|
|
52
|
+
:param is_default_policy: 是否为默认策略,true默认策略。
|
|
53
|
+
:type is_default_policy: bool
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
self._policy_name = None
|
|
59
|
+
self._name_prefix = None
|
|
60
|
+
self._digit_number = None
|
|
61
|
+
self._start_number = None
|
|
62
|
+
self._single_domain_user_inc = None
|
|
63
|
+
self._is_default_policy = None
|
|
64
|
+
self.discriminator = None
|
|
65
|
+
|
|
66
|
+
self.policy_name = policy_name
|
|
67
|
+
self.name_prefix = name_prefix
|
|
68
|
+
self.digit_number = digit_number
|
|
69
|
+
self.start_number = start_number
|
|
70
|
+
self.single_domain_user_inc = single_domain_user_inc
|
|
71
|
+
if is_default_policy is not None:
|
|
72
|
+
self.is_default_policy = is_default_policy
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def policy_name(self):
|
|
76
|
+
"""Gets the policy_name of this CreateDesktopNamePolicyReq.
|
|
77
|
+
|
|
78
|
+
策略名称,由数字、字母、下划线组成,必须以字母或下划线开头,长度范围为1~30个字符。
|
|
79
|
+
|
|
80
|
+
:return: The policy_name of this CreateDesktopNamePolicyReq.
|
|
81
|
+
:rtype: str
|
|
82
|
+
"""
|
|
83
|
+
return self._policy_name
|
|
84
|
+
|
|
85
|
+
@policy_name.setter
|
|
86
|
+
def policy_name(self, policy_name):
|
|
87
|
+
"""Sets the policy_name of this CreateDesktopNamePolicyReq.
|
|
88
|
+
|
|
89
|
+
策略名称,由数字、字母、下划线组成,必须以字母或下划线开头,长度范围为1~30个字符。
|
|
90
|
+
|
|
91
|
+
:param policy_name: The policy_name of this CreateDesktopNamePolicyReq.
|
|
92
|
+
:type policy_name: str
|
|
93
|
+
"""
|
|
94
|
+
self._policy_name = policy_name
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def name_prefix(self):
|
|
98
|
+
"""Gets the name_prefix of this CreateDesktopNamePolicyReq.
|
|
99
|
+
|
|
100
|
+
策略前缀。
|
|
101
|
+
|
|
102
|
+
:return: The name_prefix of this CreateDesktopNamePolicyReq.
|
|
103
|
+
:rtype: str
|
|
104
|
+
"""
|
|
105
|
+
return self._name_prefix
|
|
106
|
+
|
|
107
|
+
@name_prefix.setter
|
|
108
|
+
def name_prefix(self, name_prefix):
|
|
109
|
+
"""Sets the name_prefix of this CreateDesktopNamePolicyReq.
|
|
110
|
+
|
|
111
|
+
策略前缀。
|
|
112
|
+
|
|
113
|
+
:param name_prefix: The name_prefix of this CreateDesktopNamePolicyReq.
|
|
114
|
+
:type name_prefix: str
|
|
115
|
+
"""
|
|
116
|
+
self._name_prefix = name_prefix
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def digit_number(self):
|
|
120
|
+
"""Gets the digit_number of this CreateDesktopNamePolicyReq.
|
|
121
|
+
|
|
122
|
+
策略后缀有效位数。
|
|
123
|
+
|
|
124
|
+
:return: The digit_number of this CreateDesktopNamePolicyReq.
|
|
125
|
+
:rtype: int
|
|
126
|
+
"""
|
|
127
|
+
return self._digit_number
|
|
128
|
+
|
|
129
|
+
@digit_number.setter
|
|
130
|
+
def digit_number(self, digit_number):
|
|
131
|
+
"""Sets the digit_number of this CreateDesktopNamePolicyReq.
|
|
132
|
+
|
|
133
|
+
策略后缀有效位数。
|
|
134
|
+
|
|
135
|
+
:param digit_number: The digit_number of this CreateDesktopNamePolicyReq.
|
|
136
|
+
:type digit_number: int
|
|
137
|
+
"""
|
|
138
|
+
self._digit_number = digit_number
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
def start_number(self):
|
|
142
|
+
"""Gets the start_number of this CreateDesktopNamePolicyReq.
|
|
143
|
+
|
|
144
|
+
策略后缀起始数字。
|
|
145
|
+
|
|
146
|
+
:return: The start_number of this CreateDesktopNamePolicyReq.
|
|
147
|
+
:rtype: int
|
|
148
|
+
"""
|
|
149
|
+
return self._start_number
|
|
150
|
+
|
|
151
|
+
@start_number.setter
|
|
152
|
+
def start_number(self, start_number):
|
|
153
|
+
"""Sets the start_number of this CreateDesktopNamePolicyReq.
|
|
154
|
+
|
|
155
|
+
策略后缀起始数字。
|
|
156
|
+
|
|
157
|
+
:param start_number: The start_number of this CreateDesktopNamePolicyReq.
|
|
158
|
+
:type start_number: int
|
|
159
|
+
"""
|
|
160
|
+
self._start_number = start_number
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def single_domain_user_inc(self):
|
|
164
|
+
"""Gets the single_domain_user_inc of this CreateDesktopNamePolicyReq.
|
|
165
|
+
|
|
166
|
+
是否单用户名递增。 - 1 单用户名递增。 - 0 租户递增。
|
|
167
|
+
|
|
168
|
+
:return: The single_domain_user_inc of this CreateDesktopNamePolicyReq.
|
|
169
|
+
:rtype: int
|
|
170
|
+
"""
|
|
171
|
+
return self._single_domain_user_inc
|
|
172
|
+
|
|
173
|
+
@single_domain_user_inc.setter
|
|
174
|
+
def single_domain_user_inc(self, single_domain_user_inc):
|
|
175
|
+
"""Sets the single_domain_user_inc of this CreateDesktopNamePolicyReq.
|
|
176
|
+
|
|
177
|
+
是否单用户名递增。 - 1 单用户名递增。 - 0 租户递增。
|
|
178
|
+
|
|
179
|
+
:param single_domain_user_inc: The single_domain_user_inc of this CreateDesktopNamePolicyReq.
|
|
180
|
+
:type single_domain_user_inc: int
|
|
181
|
+
"""
|
|
182
|
+
self._single_domain_user_inc = single_domain_user_inc
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
def is_default_policy(self):
|
|
186
|
+
"""Gets the is_default_policy of this CreateDesktopNamePolicyReq.
|
|
187
|
+
|
|
188
|
+
是否为默认策略,true默认策略。
|
|
189
|
+
|
|
190
|
+
:return: The is_default_policy of this CreateDesktopNamePolicyReq.
|
|
191
|
+
:rtype: bool
|
|
192
|
+
"""
|
|
193
|
+
return self._is_default_policy
|
|
194
|
+
|
|
195
|
+
@is_default_policy.setter
|
|
196
|
+
def is_default_policy(self, is_default_policy):
|
|
197
|
+
"""Sets the is_default_policy of this CreateDesktopNamePolicyReq.
|
|
198
|
+
|
|
199
|
+
是否为默认策略,true默认策略。
|
|
200
|
+
|
|
201
|
+
:param is_default_policy: The is_default_policy of this CreateDesktopNamePolicyReq.
|
|
202
|
+
:type is_default_policy: bool
|
|
203
|
+
"""
|
|
204
|
+
self._is_default_policy = is_default_policy
|
|
205
|
+
|
|
206
|
+
def to_dict(self):
|
|
207
|
+
"""Returns the model properties as a dict"""
|
|
208
|
+
result = {}
|
|
209
|
+
|
|
210
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
211
|
+
value = getattr(self, attr)
|
|
212
|
+
if isinstance(value, list):
|
|
213
|
+
result[attr] = list(map(
|
|
214
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
215
|
+
value
|
|
216
|
+
))
|
|
217
|
+
elif hasattr(value, "to_dict"):
|
|
218
|
+
result[attr] = value.to_dict()
|
|
219
|
+
elif isinstance(value, dict):
|
|
220
|
+
result[attr] = dict(map(
|
|
221
|
+
lambda item: (item[0], item[1].to_dict())
|
|
222
|
+
if hasattr(item[1], "to_dict") else item,
|
|
223
|
+
value.items()
|
|
224
|
+
))
|
|
225
|
+
else:
|
|
226
|
+
if attr in self.sensitive_list:
|
|
227
|
+
result[attr] = "****"
|
|
228
|
+
else:
|
|
229
|
+
result[attr] = value
|
|
230
|
+
|
|
231
|
+
return result
|
|
232
|
+
|
|
233
|
+
def to_str(self):
|
|
234
|
+
"""Returns the string representation of the model"""
|
|
235
|
+
import simplejson as json
|
|
236
|
+
if six.PY2:
|
|
237
|
+
import sys
|
|
238
|
+
reload(sys)
|
|
239
|
+
sys.setdefaultencoding("utf-8")
|
|
240
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
241
|
+
|
|
242
|
+
def __repr__(self):
|
|
243
|
+
"""For `print`"""
|
|
244
|
+
return self.to_str()
|
|
245
|
+
|
|
246
|
+
def __eq__(self, other):
|
|
247
|
+
"""Returns true if both objects are equal"""
|
|
248
|
+
if not isinstance(other, CreateDesktopNamePolicyReq):
|
|
249
|
+
return False
|
|
250
|
+
|
|
251
|
+
return self.__dict__ == other.__dict__
|
|
252
|
+
|
|
253
|
+
def __ne__(self, other):
|
|
254
|
+
"""Returns true if both objects are not equal"""
|
|
255
|
+
return not self == other
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateDesktopNamePolicyRequest:
|
|
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
|
+
'body': 'CreateDesktopNamePolicyReq'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, body=None):
|
|
28
|
+
"""CreateDesktopNamePolicyRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param body: Body of the CreateDesktopNamePolicyRequest
|
|
33
|
+
:type body: :class:`huaweicloudsdkworkspace.v2.CreateDesktopNamePolicyReq`
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._body = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
if body is not None:
|
|
42
|
+
self.body = body
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def body(self):
|
|
46
|
+
"""Gets the body of this CreateDesktopNamePolicyRequest.
|
|
47
|
+
|
|
48
|
+
:return: The body of this CreateDesktopNamePolicyRequest.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.CreateDesktopNamePolicyReq`
|
|
50
|
+
"""
|
|
51
|
+
return self._body
|
|
52
|
+
|
|
53
|
+
@body.setter
|
|
54
|
+
def body(self, body):
|
|
55
|
+
"""Sets the body of this CreateDesktopNamePolicyRequest.
|
|
56
|
+
|
|
57
|
+
:param body: The body of this CreateDesktopNamePolicyRequest.
|
|
58
|
+
:type body: :class:`huaweicloudsdkworkspace.v2.CreateDesktopNamePolicyReq`
|
|
59
|
+
"""
|
|
60
|
+
self._body = body
|
|
61
|
+
|
|
62
|
+
def to_dict(self):
|
|
63
|
+
"""Returns the model properties as a dict"""
|
|
64
|
+
result = {}
|
|
65
|
+
|
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
67
|
+
value = getattr(self, attr)
|
|
68
|
+
if isinstance(value, list):
|
|
69
|
+
result[attr] = list(map(
|
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
71
|
+
value
|
|
72
|
+
))
|
|
73
|
+
elif hasattr(value, "to_dict"):
|
|
74
|
+
result[attr] = value.to_dict()
|
|
75
|
+
elif isinstance(value, dict):
|
|
76
|
+
result[attr] = dict(map(
|
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
|
79
|
+
value.items()
|
|
80
|
+
))
|
|
81
|
+
else:
|
|
82
|
+
if attr in self.sensitive_list:
|
|
83
|
+
result[attr] = "****"
|
|
84
|
+
else:
|
|
85
|
+
result[attr] = value
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def to_str(self):
|
|
90
|
+
"""Returns the string representation of the model"""
|
|
91
|
+
import simplejson as json
|
|
92
|
+
if six.PY2:
|
|
93
|
+
import sys
|
|
94
|
+
reload(sys)
|
|
95
|
+
sys.setdefaultencoding("utf-8")
|
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
97
|
+
|
|
98
|
+
def __repr__(self):
|
|
99
|
+
"""For `print`"""
|
|
100
|
+
return self.to_str()
|
|
101
|
+
|
|
102
|
+
def __eq__(self, other):
|
|
103
|
+
"""Returns true if both objects are equal"""
|
|
104
|
+
if not isinstance(other, CreateDesktopNamePolicyRequest):
|
|
105
|
+
return False
|
|
106
|
+
|
|
107
|
+
return self.__dict__ == other.__dict__
|
|
108
|
+
|
|
109
|
+
def __ne__(self, other):
|
|
110
|
+
"""Returns true if both objects are not equal"""
|
|
111
|
+
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 CreateDesktopNamePolicyResponse(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
|
+
'policy_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'policy_id': 'policy_id'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, policy_id=None):
|
|
29
|
+
"""CreateDesktopNamePolicyResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param policy_id: 策略id。
|
|
34
|
+
:type policy_id: str
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
super(CreateDesktopNamePolicyResponse, self).__init__()
|
|
38
|
+
|
|
39
|
+
self._policy_id = None
|
|
40
|
+
self.discriminator = None
|
|
41
|
+
|
|
42
|
+
if policy_id is not None:
|
|
43
|
+
self.policy_id = policy_id
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def policy_id(self):
|
|
47
|
+
"""Gets the policy_id of this CreateDesktopNamePolicyResponse.
|
|
48
|
+
|
|
49
|
+
策略id。
|
|
50
|
+
|
|
51
|
+
:return: The policy_id of this CreateDesktopNamePolicyResponse.
|
|
52
|
+
:rtype: str
|
|
53
|
+
"""
|
|
54
|
+
return self._policy_id
|
|
55
|
+
|
|
56
|
+
@policy_id.setter
|
|
57
|
+
def policy_id(self, policy_id):
|
|
58
|
+
"""Sets the policy_id of this CreateDesktopNamePolicyResponse.
|
|
59
|
+
|
|
60
|
+
策略id。
|
|
61
|
+
|
|
62
|
+
:param policy_id: The policy_id of this CreateDesktopNamePolicyResponse.
|
|
63
|
+
:type policy_id: str
|
|
64
|
+
"""
|
|
65
|
+
self._policy_id = policy_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, CreateDesktopNamePolicyResponse):
|
|
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
|
|
@@ -32,7 +32,8 @@ class CreateDesktopReq:
|
|
|
32
32
|
'email_notification': 'bool',
|
|
33
33
|
'enterprise_project_id': 'str',
|
|
34
34
|
'tags': 'list[Tag]',
|
|
35
|
-
'eip': 'Eip'
|
|
35
|
+
'eip': 'Eip',
|
|
36
|
+
'desktop_name_policy_id': 'str'
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
attribute_map = {
|
|
@@ -51,10 +52,11 @@ class CreateDesktopReq:
|
|
|
51
52
|
'email_notification': 'email_notification',
|
|
52
53
|
'enterprise_project_id': 'enterprise_project_id',
|
|
53
54
|
'tags': 'tags',
|
|
54
|
-
'eip': 'eip'
|
|
55
|
+
'eip': 'eip',
|
|
56
|
+
'desktop_name_policy_id': 'desktop_name_policy_id'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, desktop_type=None, availability_zone=None, product_id=None, image_type=None, image_id=None, root_volume=None, data_volumes=None, nics=None, security_groups=None, desktops=None, desktop_name=None, size=None, email_notification=None, enterprise_project_id=None, tags=None, eip=None):
|
|
59
|
+
def __init__(self, desktop_type=None, availability_zone=None, product_id=None, image_type=None, image_id=None, root_volume=None, data_volumes=None, nics=None, security_groups=None, desktops=None, desktop_name=None, size=None, email_notification=None, enterprise_project_id=None, tags=None, eip=None, desktop_name_policy_id=None):
|
|
58
60
|
"""CreateDesktopReq
|
|
59
61
|
|
|
60
62
|
The model defined in huaweicloud sdk
|
|
@@ -91,6 +93,8 @@ class CreateDesktopReq:
|
|
|
91
93
|
:type tags: list[:class:`huaweicloudsdkworkspace.v2.Tag`]
|
|
92
94
|
:param eip:
|
|
93
95
|
:type eip: :class:`huaweicloudsdkworkspace.v2.Eip`
|
|
96
|
+
:param desktop_name_policy_id: 策略id,用于指定生成桌面名称策略,如果指定了桌面名称则优先使用指定的桌面名称。
|
|
97
|
+
:type desktop_name_policy_id: str
|
|
94
98
|
"""
|
|
95
99
|
|
|
96
100
|
|
|
@@ -111,6 +115,7 @@ class CreateDesktopReq:
|
|
|
111
115
|
self._enterprise_project_id = None
|
|
112
116
|
self._tags = None
|
|
113
117
|
self._eip = None
|
|
118
|
+
self._desktop_name_policy_id = None
|
|
114
119
|
self.discriminator = None
|
|
115
120
|
|
|
116
121
|
self.desktop_type = desktop_type
|
|
@@ -139,6 +144,8 @@ class CreateDesktopReq:
|
|
|
139
144
|
self.tags = tags
|
|
140
145
|
if eip is not None:
|
|
141
146
|
self.eip = eip
|
|
147
|
+
if desktop_name_policy_id is not None:
|
|
148
|
+
self.desktop_name_policy_id = desktop_name_policy_id
|
|
142
149
|
|
|
143
150
|
@property
|
|
144
151
|
def desktop_type(self):
|
|
@@ -484,6 +491,28 @@ class CreateDesktopReq:
|
|
|
484
491
|
"""
|
|
485
492
|
self._eip = eip
|
|
486
493
|
|
|
494
|
+
@property
|
|
495
|
+
def desktop_name_policy_id(self):
|
|
496
|
+
"""Gets the desktop_name_policy_id of this CreateDesktopReq.
|
|
497
|
+
|
|
498
|
+
策略id,用于指定生成桌面名称策略,如果指定了桌面名称则优先使用指定的桌面名称。
|
|
499
|
+
|
|
500
|
+
:return: The desktop_name_policy_id of this CreateDesktopReq.
|
|
501
|
+
:rtype: str
|
|
502
|
+
"""
|
|
503
|
+
return self._desktop_name_policy_id
|
|
504
|
+
|
|
505
|
+
@desktop_name_policy_id.setter
|
|
506
|
+
def desktop_name_policy_id(self, desktop_name_policy_id):
|
|
507
|
+
"""Sets the desktop_name_policy_id of this CreateDesktopReq.
|
|
508
|
+
|
|
509
|
+
策略id,用于指定生成桌面名称策略,如果指定了桌面名称则优先使用指定的桌面名称。
|
|
510
|
+
|
|
511
|
+
:param desktop_name_policy_id: The desktop_name_policy_id of this CreateDesktopReq.
|
|
512
|
+
:type desktop_name_policy_id: str
|
|
513
|
+
"""
|
|
514
|
+
self._desktop_name_policy_id = desktop_name_policy_id
|
|
515
|
+
|
|
487
516
|
def to_dict(self):
|
|
488
517
|
"""Returns the model properties as a dict"""
|
|
489
518
|
result = {}
|
|
@@ -18,21 +18,81 @@ class CreateUserGroupResponse(SdkResponse):
|
|
|
18
18
|
sensitive_list = []
|
|
19
19
|
|
|
20
20
|
openapi_types = {
|
|
21
|
+
'error_code': 'str',
|
|
22
|
+
'error_msg': 'str'
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
attribute_map = {
|
|
26
|
+
'error_code': 'error_code',
|
|
27
|
+
'error_msg': 'error_msg'
|
|
24
28
|
}
|
|
25
29
|
|
|
26
|
-
def __init__(self):
|
|
30
|
+
def __init__(self, error_code=None, error_msg=None):
|
|
27
31
|
"""CreateUserGroupResponse
|
|
28
32
|
|
|
29
33
|
The model defined in huaweicloud sdk
|
|
30
34
|
|
|
35
|
+
:param error_code: 错误码。
|
|
36
|
+
:type error_code: str
|
|
37
|
+
:param error_msg: 错误描述。
|
|
38
|
+
:type error_msg: str
|
|
31
39
|
"""
|
|
32
40
|
|
|
33
41
|
super(CreateUserGroupResponse, self).__init__()
|
|
42
|
+
|
|
43
|
+
self._error_code = None
|
|
44
|
+
self._error_msg = None
|
|
34
45
|
self.discriminator = None
|
|
35
46
|
|
|
47
|
+
if error_code is not None:
|
|
48
|
+
self.error_code = error_code
|
|
49
|
+
if error_msg is not None:
|
|
50
|
+
self.error_msg = error_msg
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def error_code(self):
|
|
54
|
+
"""Gets the error_code of this CreateUserGroupResponse.
|
|
55
|
+
|
|
56
|
+
错误码。
|
|
57
|
+
|
|
58
|
+
:return: The error_code of this CreateUserGroupResponse.
|
|
59
|
+
:rtype: str
|
|
60
|
+
"""
|
|
61
|
+
return self._error_code
|
|
62
|
+
|
|
63
|
+
@error_code.setter
|
|
64
|
+
def error_code(self, error_code):
|
|
65
|
+
"""Sets the error_code of this CreateUserGroupResponse.
|
|
66
|
+
|
|
67
|
+
错误码。
|
|
68
|
+
|
|
69
|
+
:param error_code: The error_code of this CreateUserGroupResponse.
|
|
70
|
+
:type error_code: str
|
|
71
|
+
"""
|
|
72
|
+
self._error_code = error_code
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def error_msg(self):
|
|
76
|
+
"""Gets the error_msg of this CreateUserGroupResponse.
|
|
77
|
+
|
|
78
|
+
错误描述。
|
|
79
|
+
|
|
80
|
+
:return: The error_msg of this CreateUserGroupResponse.
|
|
81
|
+
:rtype: str
|
|
82
|
+
"""
|
|
83
|
+
return self._error_msg
|
|
84
|
+
|
|
85
|
+
@error_msg.setter
|
|
86
|
+
def error_msg(self, error_msg):
|
|
87
|
+
"""Sets the error_msg of this CreateUserGroupResponse.
|
|
88
|
+
|
|
89
|
+
错误描述。
|
|
90
|
+
|
|
91
|
+
:param error_msg: The error_msg of this CreateUserGroupResponse.
|
|
92
|
+
:type error_msg: str
|
|
93
|
+
"""
|
|
94
|
+
self._error_msg = error_msg
|
|
95
|
+
|
|
36
96
|
def to_dict(self):
|
|
37
97
|
"""Returns the model properties as a dict"""
|
|
38
98
|
result = {}
|