huaweicloudsdkworkspace 3.1.47__py2.py3-none-any.whl → 3.1.49__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.
@@ -2,10 +2,9 @@
2
2
 
3
3
  from __future__ import absolute_import
4
4
 
5
- # import WorkspaceClient
6
5
  from huaweicloudsdkworkspace.v2.workspace_client import WorkspaceClient
7
6
  from huaweicloudsdkworkspace.v2.workspace_async_client import WorkspaceAsyncClient
8
- # import models into sdk package
7
+
9
8
  from huaweicloudsdkworkspace.v2.model.access_policy_detail_info import AccessPolicyDetailInfo
10
9
  from huaweicloudsdkworkspace.v2.model.access_policy_info import AccessPolicyInfo
11
10
  from huaweicloudsdkworkspace.v2.model.access_policy_object import AccessPolicyObject
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkworkspace
3
- Version: 3.1.47
3
+ Version: 3.1.49
4
4
  Summary: Workspace
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore (>=3.1.47)
25
+ Requires-Dist: huaweicloudsdkcore (>=3.1.49)
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,5 +1,5 @@
1
1
  huaweicloudsdkworkspace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkworkspace/v2/__init__.py,sha256=CN1ZLnWhMGWUDBdQSKpVOul7c_BZc7i1QvqAwed0gbc,20522
2
+ huaweicloudsdkworkspace/v2/__init__.py,sha256=Nfxs2V1XoID13JSIn76YXMpcRQ3r7tWr1yR0BcmaXFE,20465
3
3
  huaweicloudsdkworkspace/v2/workspace_async_client.py,sha256=jBNLCLdLnGp8jC62ZDaG5oXXwTwyoL8d5kGcB7hWdlY,126702
4
4
  huaweicloudsdkworkspace/v2/workspace_client.py,sha256=g_q7XIQIIGVCOvh3mjJpoqFR0GKoxoiUTnZibq99pmo,126221
5
5
  huaweicloudsdkworkspace/v2/model/__init__.py,sha256=7xlQXLuVBtg_9AOQJ6zzOjY3a1oUyev_yIaxS5bTsjM,20343
@@ -29,7 +29,6 @@ huaweicloudsdkworkspace/v2/model/associate_desktops_eip_request.py,sha256=v75z8w
29
29
  huaweicloudsdkworkspace/v2/model/associate_desktops_eip_response.py,sha256=4oU4f1enrNlm7Hi9_Px7v6hwk9d2t4m2jWuHJ6cgQrM,2463
30
30
  huaweicloudsdkworkspace/v2/model/auth_assist_enum.py,sha256=-SbzteHIwGOcIxgvFa9fElCgLQPgKLDcPlwClvWK0x4,2415
31
31
  huaweicloudsdkworkspace/v2/model/auth_server_access_mode.py,sha256=7476HY4fAxJHl8RGWaYxefu5xW8OIt2WwuLiu0YNerM,2449
32
- huaweicloudsdkworkspace/v2/model/availability_zone.py,sha256=Q7K84QfS1GjS1Vs32DmCsS1ccXwQ35E9W1KEiP94BHY,8741
33
32
  huaweicloudsdkworkspace/v2/model/availability_zone_info.py,sha256=1Yh_nwQAvCvTrxK6dm2g_dCVetx44JW4hLblOmLsmtk,8865
34
33
  huaweicloudsdkworkspace/v2/model/base_response.py,sha256=IeHOTLZBnBWie3GPm5Vl_iQCgjcLRGsv8LJF8LmPJy8,3834
35
34
  huaweicloudsdkworkspace/v2/model/batch_action_desktops_req.py,sha256=Oa5xZ_nHU_PqZTOEBI205LfiJzHWF77Dy3aGAxh5G2I,5103
@@ -72,7 +71,6 @@ huaweicloudsdkworkspace/v2/model/create_terminals_binding_desktops_response.py,s
72
71
  huaweicloudsdkworkspace/v2/model/create_user_group_req.py,sha256=l2S8UYdkzcOJR719zrHstiBJeWdOq31WWUoV8P9zYkA,4948
73
72
  huaweicloudsdkworkspace/v2/model/create_user_group_request.py,sha256=e2GIu0CyjsmqjoSOCRzlDHepJK9CEmclI09duJ5vaCI,3149
74
73
  huaweicloudsdkworkspace/v2/model/create_user_group_response.py,sha256=P9HGmADAXT92pTf_hpYLznoSvUfpA5UFl-gGPTwzCbs,2443
75
- huaweicloudsdkworkspace/v2/model/create_user_req.py,sha256=ot2eJ9wnEi8B-uc30kr9wGsjGW-9NzeKxsPlT9oXlCM,9995
76
74
  huaweicloudsdkworkspace/v2/model/create_user_request.py,sha256=QaD5VtThgsAidCGWfEcyVfEjzQ5aDxpEFTbgaXJIi7g,13217
77
75
  huaweicloudsdkworkspace/v2/model/del_otp_devices_req.py,sha256=Z-cw_Moa2ZmFpN8wqNKHL8foRUgOhI-yZoWpiicyyho,3114
78
76
  huaweicloudsdkworkspace/v2/model/delete_desktop_request.py,sha256=WAKS5AvosMsSyE8N3wlkeHjSIpBxNj18B1fc_876TJ8,5670
@@ -166,7 +164,6 @@ huaweicloudsdkworkspace/v2/model/reset_random_password_request.py,sha256=ZGuVnoy
166
164
  huaweicloudsdkworkspace/v2/model/reset_random_password_response.py,sha256=wWYplmcwD0BLEhijubFIXUVfW9QvPOIyJ2y5BPl4TyY,3241
167
165
  huaweicloudsdkworkspace/v2/model/resize_desktop_data.py,sha256=KKf1uFfGoL-YwJH8DGV-eITB7Tf15yUUnsxYWHc7AGU,3103
168
166
  huaweicloudsdkworkspace/v2/model/resize_desktop_job_response.py,sha256=CyJCh0bQx-QVOOKiqrYuI71i8_gvuta3jioy00WwYrk,3882
169
- huaweicloudsdkworkspace/v2/model/resize_desktop_job_result.py,sha256=8J3s-IvNekPTtmoHXv-f5chZ8gm9dq9uushnzvc7Hmc,3860
170
167
  huaweicloudsdkworkspace/v2/model/resize_desktop_req.py,sha256=2ihir6yEtJed2CPVqJDpU6sq4AirLiVj0XH43g935ko,5315
171
168
  huaweicloudsdkworkspace/v2/model/resize_desktop_request.py,sha256=gkS08kxBqLa_sz_Rdj4JVGYCal3_VTeHRtSQMy4Wamo,3125
172
169
  huaweicloudsdkworkspace/v2/model/resize_desktop_response.py,sha256=z5dOme8_cYkgSr06lVDFpvz9vzVQXgfVz0hPXGQFcRo,4353
@@ -174,7 +171,6 @@ huaweicloudsdkworkspace/v2/model/resource_no_limit.py,sha256=4wparQXOdlh2CbA_MAw
174
171
  huaweicloudsdkworkspace/v2/model/run_actions_on_group_request.py,sha256=_A6ucPG9dnFmR3mCEnuWn0DNGD1GzjApoGRCsMI3ElM,3971
175
172
  huaweicloudsdkworkspace/v2/model/run_actions_on_group_response.py,sha256=Y7WyO3QL2pXrJt6NEm82BgvjVBwTyzOfQBOwQEcS-4w,2451
176
173
  huaweicloudsdkworkspace/v2/model/security_group.py,sha256=LXKKZ_23LI6dG4BXpuG_ib3BRt0gjsxJ6cmSlXINFl8,3530
177
- huaweicloudsdkworkspace/v2/model/security_group_info.py,sha256=NMYdWHYH7zfK5aJIkNKS_Oe0-NasJQeuOZ2qm-DdnSo,2897
178
174
  huaweicloudsdkworkspace/v2/model/show_assist_auth_config_request.py,sha256=nc39RCGQ3nLesUWBTocGt2eEdqBdTaPH0XiPhVQ3DkA,2339
179
175
  huaweicloudsdkworkspace/v2/model/show_assist_auth_config_response.py,sha256=FhfihmkQGrndfU6ZpYn368oJ56IJDhc-bfaK-wkRz68,3511
180
176
  huaweicloudsdkworkspace/v2/model/show_desktop_detail_request.py,sha256=mG01bSurS2OyMmP9ZAYkwfjbmYBJ5obIZoUpitk6mcQ,3113
@@ -224,8 +220,8 @@ huaweicloudsdkworkspace/v2/model/volume.py,sha256=-znugzxsYnq5S-SsC7NOqUU8bA_a0g
224
220
  huaweicloudsdkworkspace/v2/model/volume_detail.py,sha256=b1lcY0RpsM-6Kh0R4olyTK0XvhCReqJtFGO1Jds0nDM,7617
225
221
  huaweicloudsdkworkspace/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
226
222
  huaweicloudsdkworkspace/v2/region/workspace_region.py,sha256=HO8bDoyPlbwkbF14DdOzEOOOq-OXDYM2d_VGxSeJbDo,1982
227
- huaweicloudsdkworkspace-3.1.47.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
228
- huaweicloudsdkworkspace-3.1.47.dist-info/METADATA,sha256=Ttn-cMTTyGKDx6sMDNSMMUOsjYwppEjVSkyTsW0R19o,1154
229
- huaweicloudsdkworkspace-3.1.47.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
230
- huaweicloudsdkworkspace-3.1.47.dist-info/top_level.txt,sha256=Iqj0R-5g-jAYosVE4_il8rB8wRuaDb2fefMXUBmIAs4,24
231
- huaweicloudsdkworkspace-3.1.47.dist-info/RECORD,,
223
+ huaweicloudsdkworkspace-3.1.49.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
224
+ huaweicloudsdkworkspace-3.1.49.dist-info/METADATA,sha256=fi7fE9w6kFLBguxGWUD6L-CfDLFyPXqcI88khFU56yE,1154
225
+ huaweicloudsdkworkspace-3.1.49.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
226
+ huaweicloudsdkworkspace-3.1.49.dist-info/top_level.txt,sha256=Iqj0R-5g-jAYosVE4_il8rB8wRuaDb2fefMXUBmIAs4,24
227
+ huaweicloudsdkworkspace-3.1.49.dist-info/RECORD,,
@@ -1,285 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class AvailabilityZone:
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
- 'availability_zone': 'str',
21
- 'display_name': 'str',
22
- 'i18n': 'dict(str, str)',
23
- 'sold_out': 'SoldOutInfo',
24
- 'product_ids': 'list[str]',
25
- 'visible': 'bool',
26
- 'default_availability_zone': 'bool'
27
- }
28
-
29
- attribute_map = {
30
- 'availability_zone': 'availability_zone',
31
- 'display_name': 'display_name',
32
- 'i18n': 'i18n',
33
- 'sold_out': 'sold_out',
34
- 'product_ids': 'product_ids',
35
- 'visible': 'visible',
36
- 'default_availability_zone': 'default_availability_zone'
37
- }
38
-
39
- def __init__(self, availability_zone=None, display_name=None, i18n=None, sold_out=None, product_ids=None, visible=None, default_availability_zone=None):
40
- """AvailabilityZone
41
-
42
- The model defined in huaweicloud sdk
43
-
44
- :param availability_zone: 可用分区编码。
45
- :type availability_zone: str
46
- :param display_name: 可用分区名称。
47
- :type display_name: str
48
- :param i18n: 可用分区国际化信息。
49
- :type i18n: dict(str, str)
50
- :param sold_out:
51
- :type sold_out: :class:`huaweicloudsdkworkspace.v2.SoldOutInfo`
52
- :param product_ids: 指定当前分区下自定义支持的产品ID列表,如果为空则支持所有套餐。
53
- :type product_ids: list[str]
54
- :param visible: 是否可见。
55
- :type visible: bool
56
- :param default_availability_zone: 是否默认可用分区。
57
- :type default_availability_zone: bool
58
- """
59
-
60
-
61
-
62
- self._availability_zone = None
63
- self._display_name = None
64
- self._i18n = None
65
- self._sold_out = None
66
- self._product_ids = None
67
- self._visible = None
68
- self._default_availability_zone = None
69
- self.discriminator = None
70
-
71
- if availability_zone is not None:
72
- self.availability_zone = availability_zone
73
- if display_name is not None:
74
- self.display_name = display_name
75
- if i18n is not None:
76
- self.i18n = i18n
77
- if sold_out is not None:
78
- self.sold_out = sold_out
79
- if product_ids is not None:
80
- self.product_ids = product_ids
81
- if visible is not None:
82
- self.visible = visible
83
- if default_availability_zone is not None:
84
- self.default_availability_zone = default_availability_zone
85
-
86
- @property
87
- def availability_zone(self):
88
- """Gets the availability_zone of this AvailabilityZone.
89
-
90
- 可用分区编码。
91
-
92
- :return: The availability_zone of this AvailabilityZone.
93
- :rtype: str
94
- """
95
- return self._availability_zone
96
-
97
- @availability_zone.setter
98
- def availability_zone(self, availability_zone):
99
- """Sets the availability_zone of this AvailabilityZone.
100
-
101
- 可用分区编码。
102
-
103
- :param availability_zone: The availability_zone of this AvailabilityZone.
104
- :type availability_zone: str
105
- """
106
- self._availability_zone = availability_zone
107
-
108
- @property
109
- def display_name(self):
110
- """Gets the display_name of this AvailabilityZone.
111
-
112
- 可用分区名称。
113
-
114
- :return: The display_name of this AvailabilityZone.
115
- :rtype: str
116
- """
117
- return self._display_name
118
-
119
- @display_name.setter
120
- def display_name(self, display_name):
121
- """Sets the display_name of this AvailabilityZone.
122
-
123
- 可用分区名称。
124
-
125
- :param display_name: The display_name of this AvailabilityZone.
126
- :type display_name: str
127
- """
128
- self._display_name = display_name
129
-
130
- @property
131
- def i18n(self):
132
- """Gets the i18n of this AvailabilityZone.
133
-
134
- 可用分区国际化信息。
135
-
136
- :return: The i18n of this AvailabilityZone.
137
- :rtype: dict(str, str)
138
- """
139
- return self._i18n
140
-
141
- @i18n.setter
142
- def i18n(self, i18n):
143
- """Sets the i18n of this AvailabilityZone.
144
-
145
- 可用分区国际化信息。
146
-
147
- :param i18n: The i18n of this AvailabilityZone.
148
- :type i18n: dict(str, str)
149
- """
150
- self._i18n = i18n
151
-
152
- @property
153
- def sold_out(self):
154
- """Gets the sold_out of this AvailabilityZone.
155
-
156
- :return: The sold_out of this AvailabilityZone.
157
- :rtype: :class:`huaweicloudsdkworkspace.v2.SoldOutInfo`
158
- """
159
- return self._sold_out
160
-
161
- @sold_out.setter
162
- def sold_out(self, sold_out):
163
- """Sets the sold_out of this AvailabilityZone.
164
-
165
- :param sold_out: The sold_out of this AvailabilityZone.
166
- :type sold_out: :class:`huaweicloudsdkworkspace.v2.SoldOutInfo`
167
- """
168
- self._sold_out = sold_out
169
-
170
- @property
171
- def product_ids(self):
172
- """Gets the product_ids of this AvailabilityZone.
173
-
174
- 指定当前分区下自定义支持的产品ID列表,如果为空则支持所有套餐。
175
-
176
- :return: The product_ids of this AvailabilityZone.
177
- :rtype: list[str]
178
- """
179
- return self._product_ids
180
-
181
- @product_ids.setter
182
- def product_ids(self, product_ids):
183
- """Sets the product_ids of this AvailabilityZone.
184
-
185
- 指定当前分区下自定义支持的产品ID列表,如果为空则支持所有套餐。
186
-
187
- :param product_ids: The product_ids of this AvailabilityZone.
188
- :type product_ids: list[str]
189
- """
190
- self._product_ids = product_ids
191
-
192
- @property
193
- def visible(self):
194
- """Gets the visible of this AvailabilityZone.
195
-
196
- 是否可见。
197
-
198
- :return: The visible of this AvailabilityZone.
199
- :rtype: bool
200
- """
201
- return self._visible
202
-
203
- @visible.setter
204
- def visible(self, visible):
205
- """Sets the visible of this AvailabilityZone.
206
-
207
- 是否可见。
208
-
209
- :param visible: The visible of this AvailabilityZone.
210
- :type visible: bool
211
- """
212
- self._visible = visible
213
-
214
- @property
215
- def default_availability_zone(self):
216
- """Gets the default_availability_zone of this AvailabilityZone.
217
-
218
- 是否默认可用分区。
219
-
220
- :return: The default_availability_zone of this AvailabilityZone.
221
- :rtype: bool
222
- """
223
- return self._default_availability_zone
224
-
225
- @default_availability_zone.setter
226
- def default_availability_zone(self, default_availability_zone):
227
- """Sets the default_availability_zone of this AvailabilityZone.
228
-
229
- 是否默认可用分区。
230
-
231
- :param default_availability_zone: The default_availability_zone of this AvailabilityZone.
232
- :type default_availability_zone: bool
233
- """
234
- self._default_availability_zone = default_availability_zone
235
-
236
- def to_dict(self):
237
- """Returns the model properties as a dict"""
238
- result = {}
239
-
240
- for attr, _ in six.iteritems(self.openapi_types):
241
- value = getattr(self, attr)
242
- if isinstance(value, list):
243
- result[attr] = list(map(
244
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
245
- value
246
- ))
247
- elif hasattr(value, "to_dict"):
248
- result[attr] = value.to_dict()
249
- elif isinstance(value, dict):
250
- result[attr] = dict(map(
251
- lambda item: (item[0], item[1].to_dict())
252
- if hasattr(item[1], "to_dict") else item,
253
- value.items()
254
- ))
255
- else:
256
- if attr in self.sensitive_list:
257
- result[attr] = "****"
258
- else:
259
- result[attr] = value
260
-
261
- return result
262
-
263
- def to_str(self):
264
- """Returns the string representation of the model"""
265
- import simplejson as json
266
- if six.PY2:
267
- import sys
268
- reload(sys)
269
- sys.setdefaultencoding("utf-8")
270
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
271
-
272
- def __repr__(self):
273
- """For `print`"""
274
- return self.to_str()
275
-
276
- def __eq__(self, other):
277
- """Returns true if both objects are equal"""
278
- if not isinstance(other, AvailabilityZone):
279
- return False
280
-
281
- return self.__dict__ == other.__dict__
282
-
283
- def __ne__(self, other):
284
- """Returns true if both objects are not equal"""
285
- return not self == other
@@ -1,317 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class CreateUserReq:
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
- 'user_name': 'str',
21
- 'user_email': 'str',
22
- 'account_expires': 'str',
23
- 'enable_change_password': 'bool',
24
- 'next_login_change_password': 'bool',
25
- 'group_ids': 'list[str]',
26
- 'description': 'str',
27
- 'alias_name': 'str'
28
- }
29
-
30
- attribute_map = {
31
- 'user_name': 'user_name',
32
- 'user_email': 'user_email',
33
- 'account_expires': 'account_expires',
34
- 'enable_change_password': 'enable_change_password',
35
- 'next_login_change_password': 'next_login_change_password',
36
- 'group_ids': 'group_ids',
37
- 'description': 'description',
38
- 'alias_name': 'alias_name'
39
- }
40
-
41
- def __init__(self, user_name=None, user_email=None, account_expires=None, enable_change_password=None, next_login_change_password=None, group_ids=None, description=None, alias_name=None):
42
- """CreateUserReq
43
-
44
- The model defined in huaweicloud sdk
45
-
46
- :param user_name: 用户名称。
47
- :type user_name: str
48
- :param user_email: 用户邮箱。
49
- :type user_email: str
50
- :param account_expires: 账户过期时间,0表示永远不过期。时间格式:yyyy-MM-ddTHH:mm:ssZ或yyyy-MM-ddTHH:mm:ss.SSSZ。
51
- :type account_expires: str
52
- :param enable_change_password: 是否允许用户更改密码,缺省值为true。
53
- :type enable_change_password: bool
54
- :param next_login_change_password: 下次登录是否必须更改密码,缺省值为true。
55
- :type next_login_change_password: bool
56
- :param group_ids: 用户组的专有ID列表。
57
- :type group_ids: list[str]
58
- :param description: 用户描述,字符串长度区间[0, 255]。
59
- :type description: str
60
- :param alias_name: 别名。
61
- :type alias_name: str
62
- """
63
-
64
-
65
-
66
- self._user_name = None
67
- self._user_email = None
68
- self._account_expires = None
69
- self._enable_change_password = None
70
- self._next_login_change_password = None
71
- self._group_ids = None
72
- self._description = None
73
- self._alias_name = None
74
- self.discriminator = None
75
-
76
- self.user_name = user_name
77
- if user_email is not None:
78
- self.user_email = user_email
79
- if account_expires is not None:
80
- self.account_expires = account_expires
81
- if enable_change_password is not None:
82
- self.enable_change_password = enable_change_password
83
- if next_login_change_password is not None:
84
- self.next_login_change_password = next_login_change_password
85
- if group_ids is not None:
86
- self.group_ids = group_ids
87
- if description is not None:
88
- self.description = description
89
- if alias_name is not None:
90
- self.alias_name = alias_name
91
-
92
- @property
93
- def user_name(self):
94
- """Gets the user_name of this CreateUserReq.
95
-
96
- 用户名称。
97
-
98
- :return: The user_name of this CreateUserReq.
99
- :rtype: str
100
- """
101
- return self._user_name
102
-
103
- @user_name.setter
104
- def user_name(self, user_name):
105
- """Sets the user_name of this CreateUserReq.
106
-
107
- 用户名称。
108
-
109
- :param user_name: The user_name of this CreateUserReq.
110
- :type user_name: str
111
- """
112
- self._user_name = user_name
113
-
114
- @property
115
- def user_email(self):
116
- """Gets the user_email of this CreateUserReq.
117
-
118
- 用户邮箱。
119
-
120
- :return: The user_email of this CreateUserReq.
121
- :rtype: str
122
- """
123
- return self._user_email
124
-
125
- @user_email.setter
126
- def user_email(self, user_email):
127
- """Sets the user_email of this CreateUserReq.
128
-
129
- 用户邮箱。
130
-
131
- :param user_email: The user_email of this CreateUserReq.
132
- :type user_email: str
133
- """
134
- self._user_email = user_email
135
-
136
- @property
137
- def account_expires(self):
138
- """Gets the account_expires of this CreateUserReq.
139
-
140
- 账户过期时间,0表示永远不过期。时间格式:yyyy-MM-ddTHH:mm:ssZ或yyyy-MM-ddTHH:mm:ss.SSSZ。
141
-
142
- :return: The account_expires of this CreateUserReq.
143
- :rtype: str
144
- """
145
- return self._account_expires
146
-
147
- @account_expires.setter
148
- def account_expires(self, account_expires):
149
- """Sets the account_expires of this CreateUserReq.
150
-
151
- 账户过期时间,0表示永远不过期。时间格式:yyyy-MM-ddTHH:mm:ssZ或yyyy-MM-ddTHH:mm:ss.SSSZ。
152
-
153
- :param account_expires: The account_expires of this CreateUserReq.
154
- :type account_expires: str
155
- """
156
- self._account_expires = account_expires
157
-
158
- @property
159
- def enable_change_password(self):
160
- """Gets the enable_change_password of this CreateUserReq.
161
-
162
- 是否允许用户更改密码,缺省值为true。
163
-
164
- :return: The enable_change_password of this CreateUserReq.
165
- :rtype: bool
166
- """
167
- return self._enable_change_password
168
-
169
- @enable_change_password.setter
170
- def enable_change_password(self, enable_change_password):
171
- """Sets the enable_change_password of this CreateUserReq.
172
-
173
- 是否允许用户更改密码,缺省值为true。
174
-
175
- :param enable_change_password: The enable_change_password of this CreateUserReq.
176
- :type enable_change_password: bool
177
- """
178
- self._enable_change_password = enable_change_password
179
-
180
- @property
181
- def next_login_change_password(self):
182
- """Gets the next_login_change_password of this CreateUserReq.
183
-
184
- 下次登录是否必须更改密码,缺省值为true。
185
-
186
- :return: The next_login_change_password of this CreateUserReq.
187
- :rtype: bool
188
- """
189
- return self._next_login_change_password
190
-
191
- @next_login_change_password.setter
192
- def next_login_change_password(self, next_login_change_password):
193
- """Sets the next_login_change_password of this CreateUserReq.
194
-
195
- 下次登录是否必须更改密码,缺省值为true。
196
-
197
- :param next_login_change_password: The next_login_change_password of this CreateUserReq.
198
- :type next_login_change_password: bool
199
- """
200
- self._next_login_change_password = next_login_change_password
201
-
202
- @property
203
- def group_ids(self):
204
- """Gets the group_ids of this CreateUserReq.
205
-
206
- 用户组的专有ID列表。
207
-
208
- :return: The group_ids of this CreateUserReq.
209
- :rtype: list[str]
210
- """
211
- return self._group_ids
212
-
213
- @group_ids.setter
214
- def group_ids(self, group_ids):
215
- """Sets the group_ids of this CreateUserReq.
216
-
217
- 用户组的专有ID列表。
218
-
219
- :param group_ids: The group_ids of this CreateUserReq.
220
- :type group_ids: list[str]
221
- """
222
- self._group_ids = group_ids
223
-
224
- @property
225
- def description(self):
226
- """Gets the description of this CreateUserReq.
227
-
228
- 用户描述,字符串长度区间[0, 255]。
229
-
230
- :return: The description of this CreateUserReq.
231
- :rtype: str
232
- """
233
- return self._description
234
-
235
- @description.setter
236
- def description(self, description):
237
- """Sets the description of this CreateUserReq.
238
-
239
- 用户描述,字符串长度区间[0, 255]。
240
-
241
- :param description: The description of this CreateUserReq.
242
- :type description: str
243
- """
244
- self._description = description
245
-
246
- @property
247
- def alias_name(self):
248
- """Gets the alias_name of this CreateUserReq.
249
-
250
- 别名。
251
-
252
- :return: The alias_name of this CreateUserReq.
253
- :rtype: str
254
- """
255
- return self._alias_name
256
-
257
- @alias_name.setter
258
- def alias_name(self, alias_name):
259
- """Sets the alias_name of this CreateUserReq.
260
-
261
- 别名。
262
-
263
- :param alias_name: The alias_name of this CreateUserReq.
264
- :type alias_name: str
265
- """
266
- self._alias_name = alias_name
267
-
268
- def to_dict(self):
269
- """Returns the model properties as a dict"""
270
- result = {}
271
-
272
- for attr, _ in six.iteritems(self.openapi_types):
273
- value = getattr(self, attr)
274
- if isinstance(value, list):
275
- result[attr] = list(map(
276
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
277
- value
278
- ))
279
- elif hasattr(value, "to_dict"):
280
- result[attr] = value.to_dict()
281
- elif isinstance(value, dict):
282
- result[attr] = dict(map(
283
- lambda item: (item[0], item[1].to_dict())
284
- if hasattr(item[1], "to_dict") else item,
285
- value.items()
286
- ))
287
- else:
288
- if attr in self.sensitive_list:
289
- result[attr] = "****"
290
- else:
291
- result[attr] = value
292
-
293
- return result
294
-
295
- def to_str(self):
296
- """Returns the string representation of the model"""
297
- import simplejson as json
298
- if six.PY2:
299
- import sys
300
- reload(sys)
301
- sys.setdefaultencoding("utf-8")
302
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
303
-
304
- def __repr__(self):
305
- """For `print`"""
306
- return self.to_str()
307
-
308
- def __eq__(self, other):
309
- """Returns true if both objects are equal"""
310
- if not isinstance(other, CreateUserReq):
311
- return False
312
-
313
- return self.__dict__ == other.__dict__
314
-
315
- def __ne__(self, other):
316
- """Returns true if both objects are not equal"""
317
- return not self == other
@@ -1,144 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class ResizeDesktopJobResult:
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
- 'desktop_id': 'str',
21
- 'job_id': 'str'
22
- }
23
-
24
- attribute_map = {
25
- 'desktop_id': 'desktop_id',
26
- 'job_id': 'job_id'
27
- }
28
-
29
- def __init__(self, desktop_id=None, job_id=None):
30
- """ResizeDesktopJobResult
31
-
32
- The model defined in huaweicloud sdk
33
-
34
- :param desktop_id: 桌面ID。
35
- :type desktop_id: str
36
- :param job_id: 任务ID。
37
- :type job_id: str
38
- """
39
-
40
-
41
-
42
- self._desktop_id = None
43
- self._job_id = None
44
- self.discriminator = None
45
-
46
- if desktop_id is not None:
47
- self.desktop_id = desktop_id
48
- if job_id is not None:
49
- self.job_id = job_id
50
-
51
- @property
52
- def desktop_id(self):
53
- """Gets the desktop_id of this ResizeDesktopJobResult.
54
-
55
- 桌面ID。
56
-
57
- :return: The desktop_id of this ResizeDesktopJobResult.
58
- :rtype: str
59
- """
60
- return self._desktop_id
61
-
62
- @desktop_id.setter
63
- def desktop_id(self, desktop_id):
64
- """Sets the desktop_id of this ResizeDesktopJobResult.
65
-
66
- 桌面ID。
67
-
68
- :param desktop_id: The desktop_id of this ResizeDesktopJobResult.
69
- :type desktop_id: str
70
- """
71
- self._desktop_id = desktop_id
72
-
73
- @property
74
- def job_id(self):
75
- """Gets the job_id of this ResizeDesktopJobResult.
76
-
77
- 任务ID。
78
-
79
- :return: The job_id of this ResizeDesktopJobResult.
80
- :rtype: str
81
- """
82
- return self._job_id
83
-
84
- @job_id.setter
85
- def job_id(self, job_id):
86
- """Sets the job_id of this ResizeDesktopJobResult.
87
-
88
- 任务ID。
89
-
90
- :param job_id: The job_id of this ResizeDesktopJobResult.
91
- :type job_id: str
92
- """
93
- self._job_id = job_id
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, ResizeDesktopJobResult):
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
@@ -1,114 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class SecurityGroupInfo:
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
- 'id': 'str'
21
- }
22
-
23
- attribute_map = {
24
- 'id': 'id'
25
- }
26
-
27
- def __init__(self, id=None):
28
- """SecurityGroupInfo
29
-
30
- The model defined in huaweicloud sdk
31
-
32
- :param id: 安全组ID。
33
- :type id: str
34
- """
35
-
36
-
37
-
38
- self._id = None
39
- self.discriminator = None
40
-
41
- self.id = id
42
-
43
- @property
44
- def id(self):
45
- """Gets the id of this SecurityGroupInfo.
46
-
47
- 安全组ID。
48
-
49
- :return: The id of this SecurityGroupInfo.
50
- :rtype: str
51
- """
52
- return self._id
53
-
54
- @id.setter
55
- def id(self, id):
56
- """Sets the id of this SecurityGroupInfo.
57
-
58
- 安全组ID。
59
-
60
- :param id: The id of this SecurityGroupInfo.
61
- :type id: str
62
- """
63
- self._id = id
64
-
65
- def to_dict(self):
66
- """Returns the model properties as a dict"""
67
- result = {}
68
-
69
- for attr, _ in six.iteritems(self.openapi_types):
70
- value = getattr(self, attr)
71
- if isinstance(value, list):
72
- result[attr] = list(map(
73
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
- value
75
- ))
76
- elif hasattr(value, "to_dict"):
77
- result[attr] = value.to_dict()
78
- elif isinstance(value, dict):
79
- result[attr] = dict(map(
80
- lambda item: (item[0], item[1].to_dict())
81
- if hasattr(item[1], "to_dict") else item,
82
- value.items()
83
- ))
84
- else:
85
- if attr in self.sensitive_list:
86
- result[attr] = "****"
87
- else:
88
- result[attr] = value
89
-
90
- return result
91
-
92
- def to_str(self):
93
- """Returns the string representation of the model"""
94
- import simplejson as json
95
- if six.PY2:
96
- import sys
97
- reload(sys)
98
- sys.setdefaultencoding("utf-8")
99
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
-
101
- def __repr__(self):
102
- """For `print`"""
103
- return self.to_str()
104
-
105
- def __eq__(self, other):
106
- """Returns true if both objects are equal"""
107
- if not isinstance(other, SecurityGroupInfo):
108
- return False
109
-
110
- return self.__dict__ == other.__dict__
111
-
112
- def __ne__(self, other):
113
- """Returns true if both objects are not equal"""
114
- return not self == other