huaweicloudsdkworkspace 3.1.123__py2.py3-none-any.whl → 3.1.125__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of huaweicloudsdkworkspace might be problematic. Click here for more details.

Files changed (63) hide show
  1. huaweicloudsdkworkspace/v2/__init__.py +54 -0
  2. huaweicloudsdkworkspace/v2/model/__init__.py +54 -0
  3. huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_req.py +144 -0
  4. huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_request.py +168 -0
  5. huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_response.py +319 -0
  6. huaweicloudsdkworkspace/v2/model/authorized_objects.py +227 -0
  7. huaweicloudsdkworkspace/v2/model/autoscale_policy.py +202 -0
  8. huaweicloudsdkworkspace/v2/model/base_error.py +144 -0
  9. huaweicloudsdkworkspace/v2/model/batch_delete_user_req.py +114 -0
  10. huaweicloudsdkworkspace/v2/model/batch_delete_user_request.py +111 -0
  11. huaweicloudsdkworkspace/v2/model/batch_delete_user_response.py +85 -0
  12. huaweicloudsdkworkspace/v2/model/cbc_callback_rsp.py +289 -0
  13. huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request.py +139 -0
  14. huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request_body.py +143 -0
  15. huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_response.py +85 -0
  16. huaweicloudsdkworkspace/v2/model/create_desktop_pool_req.py +708 -0
  17. huaweicloudsdkworkspace/v2/model/create_desktop_pool_request.py +140 -0
  18. huaweicloudsdkworkspace/v2/model/create_desktop_pool_response.py +116 -0
  19. huaweicloudsdkworkspace/v2/model/create_desktop_rsp.py +115 -0
  20. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_request.py +114 -0
  21. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_response.py +85 -0
  22. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_req.py +115 -0
  23. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_request.py +139 -0
  24. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_response.py +116 -0
  25. huaweicloudsdkworkspace/v2/model/desktop_pool_action_req.py +143 -0
  26. huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_request.py +139 -0
  27. huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_response.py +116 -0
  28. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_req.py +143 -0
  29. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_request.py +168 -0
  30. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_response.py +116 -0
  31. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_req.py +144 -0
  32. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_request.py +168 -0
  33. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_response.py +319 -0
  34. huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_request.py +172 -0
  35. huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_response.py +145 -0
  36. huaweicloudsdkworkspace/v2/model/list_desktop_pools_request.py +260 -0
  37. huaweicloudsdkworkspace/v2/model/list_desktop_pools_response.py +145 -0
  38. huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_request.py +201 -0
  39. huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_response.py +203 -0
  40. huaweicloudsdkworkspace/v2/model/pool_desktops_detail_info.py +1147 -0
  41. huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_req.py +288 -0
  42. huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_request.py +168 -0
  43. huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_response.py +232 -0
  44. huaweicloudsdkworkspace/v2/model/resize_desktop_extend_param.py +115 -0
  45. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_job_response.py +144 -0
  46. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_req.py +197 -0
  47. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_request.py +168 -0
  48. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_response.py +174 -0
  49. huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_request.py +114 -0
  50. huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_response.py +887 -0
  51. huaweicloudsdkworkspace/v2/model/simple_desktop_pool_info.py +886 -0
  52. huaweicloudsdkworkspace/v2/model/update_desktop_pool_attributes_req.py +372 -0
  53. huaweicloudsdkworkspace/v2/model/update_desktop_pool_request.py +139 -0
  54. huaweicloudsdkworkspace/v2/model/update_desktop_pool_response.py +85 -0
  55. huaweicloudsdkworkspace/v2/model/volume_add_info.py +200 -0
  56. huaweicloudsdkworkspace/v2/model/volume_info.py +229 -0
  57. huaweicloudsdkworkspace/v2/workspace_async_client.py +1091 -0
  58. huaweicloudsdkworkspace/v2/workspace_client.py +1091 -0
  59. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/METADATA +2 -2
  60. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/RECORD +63 -9
  61. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/WHEEL +1 -1
  62. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/LICENSE +0 -0
  63. {huaweicloudsdkworkspace-3.1.123.dist-info → huaweicloudsdkworkspace-3.1.125.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,319 @@
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 AddDesktopPoolVolumesResponse(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
+ 'error_code': 'str',
22
+ 'error_msg': 'str',
23
+ 'cbc_job_id': 'str',
24
+ 'get_job_endpoint': 'str',
25
+ 'max_provision_time': 'int',
26
+ 'min_provision_time': 'int',
27
+ 'periodic_query_time': 'int',
28
+ 'job_id': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'error_code': 'error_code',
33
+ 'error_msg': 'error_msg',
34
+ 'cbc_job_id': 'cbcJobId',
35
+ 'get_job_endpoint': 'getJobEndpoint',
36
+ 'max_provision_time': 'maxProvisionTime',
37
+ 'min_provision_time': 'minProvisionTime',
38
+ 'periodic_query_time': 'periodicQueryTime',
39
+ 'job_id': 'job_id'
40
+ }
41
+
42
+ def __init__(self, error_code=None, error_msg=None, cbc_job_id=None, get_job_endpoint=None, max_provision_time=None, min_provision_time=None, periodic_query_time=None, job_id=None):
43
+ """AddDesktopPoolVolumesResponse
44
+
45
+ The model defined in huaweicloud sdk
46
+
47
+ :param error_code: 错误码,失败时返回。
48
+ :type error_code: str
49
+ :param error_msg: 错误描述。
50
+ :type error_msg: str
51
+ :param cbc_job_id: 创建云桌面总任务ID,CBC根据此ID定期查询任务是否成功
52
+ :type cbc_job_id: str
53
+ :param get_job_endpoint: 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果
54
+ :type get_job_endpoint: str
55
+ :param max_provision_time: 在线开通最大时间 在maxProvisionTime时间范围内,CBC会周期性的查询云服务开通结果;超过maxProvisionTime还没有开通成功,CBC会发失败工单,人工去分析处理。 单位:分钟。 如果为空,CBC默认为6小时。 取值范围(0,43200],即30天。
56
+ :type max_provision_time: int
57
+ :param min_provision_time: 开通最小时间(云服务最快开通时长,或一般开通时长) 获取到JobId后,经过minProvisionTime时间后,才来查询获取云服务开通结果。如果为空,云运营平台获取到JobId后,就去查询云服务开通结果。 单位:分钟。 取值范围:(0, 43200)
58
+ :type min_provision_time: int
59
+ :param periodic_query_time: Job周期性查询时间,默认2分钟查询一次 云运营平台会使用getJobEndpoint(Job查询接口)、每隔periodicQueryTime时间去查询云服务开通结果。 单位:分钟。 如果为空,则使用CBC默认的间隔时间(1分钟,2分钟,4分钟……15分钟)来查询云服务开通结果。 取值范围:(0, 43200)
60
+ :type periodic_query_time: int
61
+ :param job_id: 任务ID
62
+ :type job_id: str
63
+ """
64
+
65
+ super(AddDesktopPoolVolumesResponse, self).__init__()
66
+
67
+ self._error_code = None
68
+ self._error_msg = None
69
+ self._cbc_job_id = None
70
+ self._get_job_endpoint = None
71
+ self._max_provision_time = None
72
+ self._min_provision_time = None
73
+ self._periodic_query_time = None
74
+ self._job_id = None
75
+ self.discriminator = None
76
+
77
+ if error_code is not None:
78
+ self.error_code = error_code
79
+ if error_msg is not None:
80
+ self.error_msg = error_msg
81
+ if cbc_job_id is not None:
82
+ self.cbc_job_id = cbc_job_id
83
+ if get_job_endpoint is not None:
84
+ self.get_job_endpoint = get_job_endpoint
85
+ if max_provision_time is not None:
86
+ self.max_provision_time = max_provision_time
87
+ if min_provision_time is not None:
88
+ self.min_provision_time = min_provision_time
89
+ if periodic_query_time is not None:
90
+ self.periodic_query_time = periodic_query_time
91
+ if job_id is not None:
92
+ self.job_id = job_id
93
+
94
+ @property
95
+ def error_code(self):
96
+ """Gets the error_code of this AddDesktopPoolVolumesResponse.
97
+
98
+ 错误码,失败时返回。
99
+
100
+ :return: The error_code of this AddDesktopPoolVolumesResponse.
101
+ :rtype: str
102
+ """
103
+ return self._error_code
104
+
105
+ @error_code.setter
106
+ def error_code(self, error_code):
107
+ """Sets the error_code of this AddDesktopPoolVolumesResponse.
108
+
109
+ 错误码,失败时返回。
110
+
111
+ :param error_code: The error_code of this AddDesktopPoolVolumesResponse.
112
+ :type error_code: str
113
+ """
114
+ self._error_code = error_code
115
+
116
+ @property
117
+ def error_msg(self):
118
+ """Gets the error_msg of this AddDesktopPoolVolumesResponse.
119
+
120
+ 错误描述。
121
+
122
+ :return: The error_msg of this AddDesktopPoolVolumesResponse.
123
+ :rtype: str
124
+ """
125
+ return self._error_msg
126
+
127
+ @error_msg.setter
128
+ def error_msg(self, error_msg):
129
+ """Sets the error_msg of this AddDesktopPoolVolumesResponse.
130
+
131
+ 错误描述。
132
+
133
+ :param error_msg: The error_msg of this AddDesktopPoolVolumesResponse.
134
+ :type error_msg: str
135
+ """
136
+ self._error_msg = error_msg
137
+
138
+ @property
139
+ def cbc_job_id(self):
140
+ """Gets the cbc_job_id of this AddDesktopPoolVolumesResponse.
141
+
142
+ 创建云桌面总任务ID,CBC根据此ID定期查询任务是否成功
143
+
144
+ :return: The cbc_job_id of this AddDesktopPoolVolumesResponse.
145
+ :rtype: str
146
+ """
147
+ return self._cbc_job_id
148
+
149
+ @cbc_job_id.setter
150
+ def cbc_job_id(self, cbc_job_id):
151
+ """Sets the cbc_job_id of this AddDesktopPoolVolumesResponse.
152
+
153
+ 创建云桌面总任务ID,CBC根据此ID定期查询任务是否成功
154
+
155
+ :param cbc_job_id: The cbc_job_id of this AddDesktopPoolVolumesResponse.
156
+ :type cbc_job_id: str
157
+ """
158
+ self._cbc_job_id = cbc_job_id
159
+
160
+ @property
161
+ def get_job_endpoint(self):
162
+ """Gets the get_job_endpoint of this AddDesktopPoolVolumesResponse.
163
+
164
+ 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果
165
+
166
+ :return: The get_job_endpoint of this AddDesktopPoolVolumesResponse.
167
+ :rtype: str
168
+ """
169
+ return self._get_job_endpoint
170
+
171
+ @get_job_endpoint.setter
172
+ def get_job_endpoint(self, get_job_endpoint):
173
+ """Sets the get_job_endpoint of this AddDesktopPoolVolumesResponse.
174
+
175
+ 云运营平台CBC获取到JobId后,会使用getJobEndpoint当做URL,调用云服务,查询获取Job结果
176
+
177
+ :param get_job_endpoint: The get_job_endpoint of this AddDesktopPoolVolumesResponse.
178
+ :type get_job_endpoint: str
179
+ """
180
+ self._get_job_endpoint = get_job_endpoint
181
+
182
+ @property
183
+ def max_provision_time(self):
184
+ """Gets the max_provision_time of this AddDesktopPoolVolumesResponse.
185
+
186
+ 在线开通最大时间 在maxProvisionTime时间范围内,CBC会周期性的查询云服务开通结果;超过maxProvisionTime还没有开通成功,CBC会发失败工单,人工去分析处理。 单位:分钟。 如果为空,CBC默认为6小时。 取值范围(0,43200],即30天。
187
+
188
+ :return: The max_provision_time of this AddDesktopPoolVolumesResponse.
189
+ :rtype: int
190
+ """
191
+ return self._max_provision_time
192
+
193
+ @max_provision_time.setter
194
+ def max_provision_time(self, max_provision_time):
195
+ """Sets the max_provision_time of this AddDesktopPoolVolumesResponse.
196
+
197
+ 在线开通最大时间 在maxProvisionTime时间范围内,CBC会周期性的查询云服务开通结果;超过maxProvisionTime还没有开通成功,CBC会发失败工单,人工去分析处理。 单位:分钟。 如果为空,CBC默认为6小时。 取值范围(0,43200],即30天。
198
+
199
+ :param max_provision_time: The max_provision_time of this AddDesktopPoolVolumesResponse.
200
+ :type max_provision_time: int
201
+ """
202
+ self._max_provision_time = max_provision_time
203
+
204
+ @property
205
+ def min_provision_time(self):
206
+ """Gets the min_provision_time of this AddDesktopPoolVolumesResponse.
207
+
208
+ 开通最小时间(云服务最快开通时长,或一般开通时长) 获取到JobId后,经过minProvisionTime时间后,才来查询获取云服务开通结果。如果为空,云运营平台获取到JobId后,就去查询云服务开通结果。 单位:分钟。 取值范围:(0, 43200)
209
+
210
+ :return: The min_provision_time of this AddDesktopPoolVolumesResponse.
211
+ :rtype: int
212
+ """
213
+ return self._min_provision_time
214
+
215
+ @min_provision_time.setter
216
+ def min_provision_time(self, min_provision_time):
217
+ """Sets the min_provision_time of this AddDesktopPoolVolumesResponse.
218
+
219
+ 开通最小时间(云服务最快开通时长,或一般开通时长) 获取到JobId后,经过minProvisionTime时间后,才来查询获取云服务开通结果。如果为空,云运营平台获取到JobId后,就去查询云服务开通结果。 单位:分钟。 取值范围:(0, 43200)
220
+
221
+ :param min_provision_time: The min_provision_time of this AddDesktopPoolVolumesResponse.
222
+ :type min_provision_time: int
223
+ """
224
+ self._min_provision_time = min_provision_time
225
+
226
+ @property
227
+ def periodic_query_time(self):
228
+ """Gets the periodic_query_time of this AddDesktopPoolVolumesResponse.
229
+
230
+ Job周期性查询时间,默认2分钟查询一次 云运营平台会使用getJobEndpoint(Job查询接口)、每隔periodicQueryTime时间去查询云服务开通结果。 单位:分钟。 如果为空,则使用CBC默认的间隔时间(1分钟,2分钟,4分钟……15分钟)来查询云服务开通结果。 取值范围:(0, 43200)
231
+
232
+ :return: The periodic_query_time of this AddDesktopPoolVolumesResponse.
233
+ :rtype: int
234
+ """
235
+ return self._periodic_query_time
236
+
237
+ @periodic_query_time.setter
238
+ def periodic_query_time(self, periodic_query_time):
239
+ """Sets the periodic_query_time of this AddDesktopPoolVolumesResponse.
240
+
241
+ Job周期性查询时间,默认2分钟查询一次 云运营平台会使用getJobEndpoint(Job查询接口)、每隔periodicQueryTime时间去查询云服务开通结果。 单位:分钟。 如果为空,则使用CBC默认的间隔时间(1分钟,2分钟,4分钟……15分钟)来查询云服务开通结果。 取值范围:(0, 43200)
242
+
243
+ :param periodic_query_time: The periodic_query_time of this AddDesktopPoolVolumesResponse.
244
+ :type periodic_query_time: int
245
+ """
246
+ self._periodic_query_time = periodic_query_time
247
+
248
+ @property
249
+ def job_id(self):
250
+ """Gets the job_id of this AddDesktopPoolVolumesResponse.
251
+
252
+ 任务ID
253
+
254
+ :return: The job_id of this AddDesktopPoolVolumesResponse.
255
+ :rtype: str
256
+ """
257
+ return self._job_id
258
+
259
+ @job_id.setter
260
+ def job_id(self, job_id):
261
+ """Sets the job_id of this AddDesktopPoolVolumesResponse.
262
+
263
+ 任务ID
264
+
265
+ :param job_id: The job_id of this AddDesktopPoolVolumesResponse.
266
+ :type job_id: str
267
+ """
268
+ self._job_id = job_id
269
+
270
+ def to_dict(self):
271
+ """Returns the model properties as a dict"""
272
+ result = {}
273
+
274
+ for attr, _ in six.iteritems(self.openapi_types):
275
+ value = getattr(self, attr)
276
+ if isinstance(value, list):
277
+ result[attr] = list(map(
278
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
279
+ value
280
+ ))
281
+ elif hasattr(value, "to_dict"):
282
+ result[attr] = value.to_dict()
283
+ elif isinstance(value, dict):
284
+ result[attr] = dict(map(
285
+ lambda item: (item[0], item[1].to_dict())
286
+ if hasattr(item[1], "to_dict") else item,
287
+ value.items()
288
+ ))
289
+ else:
290
+ if attr in self.sensitive_list:
291
+ result[attr] = "****"
292
+ else:
293
+ result[attr] = value
294
+
295
+ return result
296
+
297
+ def to_str(self):
298
+ """Returns the string representation of the model"""
299
+ import simplejson as json
300
+ if six.PY2:
301
+ import sys
302
+ reload(sys)
303
+ sys.setdefaultencoding("utf-8")
304
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
305
+
306
+ def __repr__(self):
307
+ """For `print`"""
308
+ return self.to_str()
309
+
310
+ def __eq__(self, other):
311
+ """Returns true if both objects are equal"""
312
+ if not isinstance(other, AddDesktopPoolVolumesResponse):
313
+ return False
314
+
315
+ return self.__dict__ == other.__dict__
316
+
317
+ def __ne__(self, other):
318
+ """Returns true if both objects are not equal"""
319
+ return not self == other
@@ -0,0 +1,227 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AuthorizedObjects:
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
+ 'object_type': 'str',
21
+ 'object_id': 'str',
22
+ 'object_name': 'str',
23
+ 'user_group': 'str',
24
+ 'created_at': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'object_type': 'object_type',
29
+ 'object_id': 'object_id',
30
+ 'object_name': 'object_name',
31
+ 'user_group': 'user_group',
32
+ 'created_at': 'created_at'
33
+ }
34
+
35
+ def __init__(self, object_type=None, object_id=None, object_name=None, user_group=None, created_at=None):
36
+ """AuthorizedObjects
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param object_type: 绑定对象类型枚举。 - USER:用户 - USER_GROUP:用户组
41
+ :type object_type: str
42
+ :param object_id: 用户/用户组id
43
+ :type object_id: str
44
+ :param object_name: 用户/用户组名称
45
+ :type object_name: str
46
+ :param user_group: 桌面用户所属的用户权限组。 - sudo:Linux管理员组。 - default:Linux默认用户组。 - administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。 - users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。
47
+ :type user_group: str
48
+ :param created_at: 创建时间。格式为:UTC格式,例如“2022-05-11T11:45:42.000Z”。
49
+ :type created_at: str
50
+ """
51
+
52
+
53
+
54
+ self._object_type = None
55
+ self._object_id = None
56
+ self._object_name = None
57
+ self._user_group = None
58
+ self._created_at = None
59
+ self.discriminator = None
60
+
61
+ self.object_type = object_type
62
+ self.object_id = object_id
63
+ self.object_name = object_name
64
+ self.user_group = user_group
65
+ if created_at is not None:
66
+ self.created_at = created_at
67
+
68
+ @property
69
+ def object_type(self):
70
+ """Gets the object_type of this AuthorizedObjects.
71
+
72
+ 绑定对象类型枚举。 - USER:用户 - USER_GROUP:用户组
73
+
74
+ :return: The object_type of this AuthorizedObjects.
75
+ :rtype: str
76
+ """
77
+ return self._object_type
78
+
79
+ @object_type.setter
80
+ def object_type(self, object_type):
81
+ """Sets the object_type of this AuthorizedObjects.
82
+
83
+ 绑定对象类型枚举。 - USER:用户 - USER_GROUP:用户组
84
+
85
+ :param object_type: The object_type of this AuthorizedObjects.
86
+ :type object_type: str
87
+ """
88
+ self._object_type = object_type
89
+
90
+ @property
91
+ def object_id(self):
92
+ """Gets the object_id of this AuthorizedObjects.
93
+
94
+ 用户/用户组id
95
+
96
+ :return: The object_id of this AuthorizedObjects.
97
+ :rtype: str
98
+ """
99
+ return self._object_id
100
+
101
+ @object_id.setter
102
+ def object_id(self, object_id):
103
+ """Sets the object_id of this AuthorizedObjects.
104
+
105
+ 用户/用户组id
106
+
107
+ :param object_id: The object_id of this AuthorizedObjects.
108
+ :type object_id: str
109
+ """
110
+ self._object_id = object_id
111
+
112
+ @property
113
+ def object_name(self):
114
+ """Gets the object_name of this AuthorizedObjects.
115
+
116
+ 用户/用户组名称
117
+
118
+ :return: The object_name of this AuthorizedObjects.
119
+ :rtype: str
120
+ """
121
+ return self._object_name
122
+
123
+ @object_name.setter
124
+ def object_name(self, object_name):
125
+ """Sets the object_name of this AuthorizedObjects.
126
+
127
+ 用户/用户组名称
128
+
129
+ :param object_name: The object_name of this AuthorizedObjects.
130
+ :type object_name: str
131
+ """
132
+ self._object_name = object_name
133
+
134
+ @property
135
+ def user_group(self):
136
+ """Gets the user_group of this AuthorizedObjects.
137
+
138
+ 桌面用户所属的用户权限组。 - sudo:Linux管理员组。 - default:Linux默认用户组。 - administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。 - users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。
139
+
140
+ :return: The user_group of this AuthorizedObjects.
141
+ :rtype: str
142
+ """
143
+ return self._user_group
144
+
145
+ @user_group.setter
146
+ def user_group(self, user_group):
147
+ """Sets the user_group of this AuthorizedObjects.
148
+
149
+ 桌面用户所属的用户权限组。 - sudo:Linux管理员组。 - default:Linux默认用户组。 - administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。 - users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。
150
+
151
+ :param user_group: The user_group of this AuthorizedObjects.
152
+ :type user_group: str
153
+ """
154
+ self._user_group = user_group
155
+
156
+ @property
157
+ def created_at(self):
158
+ """Gets the created_at of this AuthorizedObjects.
159
+
160
+ 创建时间。格式为:UTC格式,例如“2022-05-11T11:45:42.000Z”。
161
+
162
+ :return: The created_at of this AuthorizedObjects.
163
+ :rtype: str
164
+ """
165
+ return self._created_at
166
+
167
+ @created_at.setter
168
+ def created_at(self, created_at):
169
+ """Sets the created_at of this AuthorizedObjects.
170
+
171
+ 创建时间。格式为:UTC格式,例如“2022-05-11T11:45:42.000Z”。
172
+
173
+ :param created_at: The created_at of this AuthorizedObjects.
174
+ :type created_at: str
175
+ """
176
+ self._created_at = created_at
177
+
178
+ def to_dict(self):
179
+ """Returns the model properties as a dict"""
180
+ result = {}
181
+
182
+ for attr, _ in six.iteritems(self.openapi_types):
183
+ value = getattr(self, attr)
184
+ if isinstance(value, list):
185
+ result[attr] = list(map(
186
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
187
+ value
188
+ ))
189
+ elif hasattr(value, "to_dict"):
190
+ result[attr] = value.to_dict()
191
+ elif isinstance(value, dict):
192
+ result[attr] = dict(map(
193
+ lambda item: (item[0], item[1].to_dict())
194
+ if hasattr(item[1], "to_dict") else item,
195
+ value.items()
196
+ ))
197
+ else:
198
+ if attr in self.sensitive_list:
199
+ result[attr] = "****"
200
+ else:
201
+ result[attr] = value
202
+
203
+ return result
204
+
205
+ def to_str(self):
206
+ """Returns the string representation of the model"""
207
+ import simplejson as json
208
+ if six.PY2:
209
+ import sys
210
+ reload(sys)
211
+ sys.setdefaultencoding("utf-8")
212
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
213
+
214
+ def __repr__(self):
215
+ """For `print`"""
216
+ return self.to_str()
217
+
218
+ def __eq__(self, other):
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, AuthorizedObjects):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other):
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other