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
|
@@ -20,6 +20,7 @@ class ListUsedDesktopInfoReq:
|
|
|
20
20
|
'desktop_ids': 'list[str]',
|
|
21
21
|
'start_time': 'str',
|
|
22
22
|
'end_time': 'str',
|
|
23
|
+
'group_by_type': 'str',
|
|
23
24
|
'desktop_username': 'str',
|
|
24
25
|
'offset': 'int',
|
|
25
26
|
'limit': 'int'
|
|
@@ -29,12 +30,13 @@ class ListUsedDesktopInfoReq:
|
|
|
29
30
|
'desktop_ids': 'desktop_ids',
|
|
30
31
|
'start_time': 'start_time',
|
|
31
32
|
'end_time': 'end_time',
|
|
33
|
+
'group_by_type': 'group_by_type',
|
|
32
34
|
'desktop_username': 'desktop_username',
|
|
33
35
|
'offset': 'offset',
|
|
34
36
|
'limit': 'limit'
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
def __init__(self, desktop_ids=None, start_time=None, end_time=None, desktop_username=None, offset=None, limit=None):
|
|
39
|
+
def __init__(self, desktop_ids=None, start_time=None, end_time=None, group_by_type=None, desktop_username=None, offset=None, limit=None):
|
|
38
40
|
"""ListUsedDesktopInfoReq
|
|
39
41
|
|
|
40
42
|
The model defined in huaweicloud sdk
|
|
@@ -45,6 +47,8 @@ class ListUsedDesktopInfoReq:
|
|
|
45
47
|
:type start_time: str
|
|
46
48
|
:param end_time: 结束时间,格式:yyyy-MM-dd(UTC时间,不传查默认最近15天)最多查31天数据。
|
|
47
49
|
:type end_time: str
|
|
50
|
+
:param group_by_type: 统计方式,不传则默认按天。可选值为: - DAY: 按天。 - HOUR: 按小时。
|
|
51
|
+
:type group_by_type: str
|
|
48
52
|
:param desktop_username: 若传桌面的用户名,则查询使用时间只有该用户的使用时间。
|
|
49
53
|
:type desktop_username: str
|
|
50
54
|
:param offset: 从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。
|
|
@@ -58,6 +62,7 @@ class ListUsedDesktopInfoReq:
|
|
|
58
62
|
self._desktop_ids = None
|
|
59
63
|
self._start_time = None
|
|
60
64
|
self._end_time = None
|
|
65
|
+
self._group_by_type = None
|
|
61
66
|
self._desktop_username = None
|
|
62
67
|
self._offset = None
|
|
63
68
|
self._limit = None
|
|
@@ -69,6 +74,8 @@ class ListUsedDesktopInfoReq:
|
|
|
69
74
|
self.start_time = start_time
|
|
70
75
|
if end_time is not None:
|
|
71
76
|
self.end_time = end_time
|
|
77
|
+
if group_by_type is not None:
|
|
78
|
+
self.group_by_type = group_by_type
|
|
72
79
|
if desktop_username is not None:
|
|
73
80
|
self.desktop_username = desktop_username
|
|
74
81
|
if offset is not None:
|
|
@@ -142,6 +149,28 @@ class ListUsedDesktopInfoReq:
|
|
|
142
149
|
"""
|
|
143
150
|
self._end_time = end_time
|
|
144
151
|
|
|
152
|
+
@property
|
|
153
|
+
def group_by_type(self):
|
|
154
|
+
"""Gets the group_by_type of this ListUsedDesktopInfoReq.
|
|
155
|
+
|
|
156
|
+
统计方式,不传则默认按天。可选值为: - DAY: 按天。 - HOUR: 按小时。
|
|
157
|
+
|
|
158
|
+
:return: The group_by_type of this ListUsedDesktopInfoReq.
|
|
159
|
+
:rtype: str
|
|
160
|
+
"""
|
|
161
|
+
return self._group_by_type
|
|
162
|
+
|
|
163
|
+
@group_by_type.setter
|
|
164
|
+
def group_by_type(self, group_by_type):
|
|
165
|
+
"""Sets the group_by_type of this ListUsedDesktopInfoReq.
|
|
166
|
+
|
|
167
|
+
统计方式,不传则默认按天。可选值为: - DAY: 按天。 - HOUR: 按小时。
|
|
168
|
+
|
|
169
|
+
:param group_by_type: The group_by_type of this ListUsedDesktopInfoReq.
|
|
170
|
+
:type group_by_type: str
|
|
171
|
+
"""
|
|
172
|
+
self._group_by_type = group_by_type
|
|
173
|
+
|
|
145
174
|
@property
|
|
146
175
|
def desktop_username(self):
|
|
147
176
|
"""Gets the desktop_username of this ListUsedDesktopInfoReq.
|
|
@@ -41,6 +41,8 @@ class ListWorkspacesResponse(SdkResponse):
|
|
|
41
41
|
'fail_reason': 'str',
|
|
42
42
|
'enterprise_id': 'str',
|
|
43
43
|
'is_send_email': 'bool',
|
|
44
|
+
'authorized_collect_log': 'bool',
|
|
45
|
+
'authorized_hda_upgrade': 'bool',
|
|
44
46
|
'dc_vnc_ip': 'str'
|
|
45
47
|
}
|
|
46
48
|
|
|
@@ -68,10 +70,12 @@ class ListWorkspacesResponse(SdkResponse):
|
|
|
68
70
|
'fail_reason': 'fail_reason',
|
|
69
71
|
'enterprise_id': 'enterprise_id',
|
|
70
72
|
'is_send_email': 'is_send_email',
|
|
73
|
+
'authorized_collect_log': 'authorized_collect_log',
|
|
74
|
+
'authorized_hda_upgrade': 'authorized_hda_upgrade',
|
|
71
75
|
'dc_vnc_ip': 'dc_vnc_ip'
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
def __init__(self, id=None, ad_domains=None, vpc_id=None, vpc_name=None, access_mode=None, dedicated_subnets=None, dedicated_access_address=None, internet_access_address=None, internet_access_port=None, status=None, access_status=None, subnet_ids=None, management_subnet_cidr=None, infrastructure_security_group=None, desktop_security_group=None, closable=None, config_status=None, progress=None, job_id=None, fail_code=None, fail_reason=None, enterprise_id=None, is_send_email=None, dc_vnc_ip=None):
|
|
78
|
+
def __init__(self, id=None, ad_domains=None, vpc_id=None, vpc_name=None, access_mode=None, dedicated_subnets=None, dedicated_access_address=None, internet_access_address=None, internet_access_port=None, status=None, access_status=None, subnet_ids=None, management_subnet_cidr=None, infrastructure_security_group=None, desktop_security_group=None, closable=None, config_status=None, progress=None, job_id=None, fail_code=None, fail_reason=None, enterprise_id=None, is_send_email=None, authorized_collect_log=None, authorized_hda_upgrade=None, dc_vnc_ip=None):
|
|
75
79
|
"""ListWorkspacesResponse
|
|
76
80
|
|
|
77
81
|
The model defined in huaweicloud sdk
|
|
@@ -96,7 +100,7 @@ class ListWorkspacesResponse(SdkResponse):
|
|
|
96
100
|
:type internet_access_port: str
|
|
97
101
|
:param status: 云办公服务的状态。 - PREPARING:准备开通。 - SUBSCRIBING:开通中。 - SUBSCRIBED:已开通。 - SUBSCRIPTION_FAILED:开通失败。 - DEREGISTERING:销户中。 - DEREGISTRATION_FAILED:销户失败。 - CLOSED:已销户未开通。
|
|
98
102
|
:type status: str
|
|
99
|
-
:param access_status: 互联网和专线切换任务的状态。 - init: 初始化 - 开通服务后的初始状态。 - available: 可用 - 执行过任务且成功后恢复的正常状态。 - internetOpening: 开启中 - 开通互联网接入开启中。 - dedicatedOpening: 开启中 - 开通专线接入开启中。 - internetOpenFailed: 开启失败 - 开通互联网接入开启失败。 - dedicatedOpenFailed: 开启失败 - 开通专线接入开启失败。 - openSuccess: 开启成功 -
|
|
103
|
+
:param access_status: 互联网和专线切换任务的状态。 - init: 初始化 - 开通服务后的初始状态。 - available: 可用 - 执行过任务且成功后恢复的正常状态。 - internetOpening: 开启中 - 开通互联网接入开启中。 - dedicatedOpening: 开启中 - 开通专线接入开启中。 - internetOpenFailed: 开启失败 - 开通互联网接入开启失败。 - dedicatedOpenFailed: 开启失败 - 开通专线接入开启失败。 - openSuccess: 开启成功 - 开通接入方式成功。 - internetClosing: 关闭中 - 关闭互联网接入关闭中。 - dedicatedClosing: 关闭中 - 关闭专线接入关闭中。 - internetCloseFailed: 关闭失败 - 关闭互联网接入方式失败。 - dedicatedCloseFailed: 关闭失败 - 关闭专线接入方式失败。 - closeSuccess: 关闭成功 - 关闭接入方式成功。 - internetAccessPortModifying: 互联网接入端口修改中。 - internetAccessPortModifyFailed: 端口修改失败。
|
|
100
104
|
:type access_status: str
|
|
101
105
|
:param subnet_ids: 业务子网,可以指定返回的网络ID订购桌面。
|
|
102
106
|
:type subnet_ids: list[:class:`huaweicloudsdkworkspace.v2.SubnetInfo`]
|
|
@@ -122,6 +126,10 @@ class ListWorkspacesResponse(SdkResponse):
|
|
|
122
126
|
:type enterprise_id: str
|
|
123
127
|
:param is_send_email: 桌面退订是否发送邮件通知。
|
|
124
128
|
:type is_send_email: bool
|
|
129
|
+
:param authorized_collect_log: 是否授权收集日志。
|
|
130
|
+
:type authorized_collect_log: bool
|
|
131
|
+
:param authorized_hda_upgrade: 是否授权hda升级。
|
|
132
|
+
:type authorized_hda_upgrade: bool
|
|
125
133
|
:param dc_vnc_ip: 自定义的专线VNC地址
|
|
126
134
|
:type dc_vnc_ip: str
|
|
127
135
|
"""
|
|
@@ -151,6 +159,8 @@ class ListWorkspacesResponse(SdkResponse):
|
|
|
151
159
|
self._fail_reason = None
|
|
152
160
|
self._enterprise_id = None
|
|
153
161
|
self._is_send_email = None
|
|
162
|
+
self._authorized_collect_log = None
|
|
163
|
+
self._authorized_hda_upgrade = None
|
|
154
164
|
self._dc_vnc_ip = None
|
|
155
165
|
self.discriminator = None
|
|
156
166
|
|
|
@@ -200,6 +210,10 @@ class ListWorkspacesResponse(SdkResponse):
|
|
|
200
210
|
self.enterprise_id = enterprise_id
|
|
201
211
|
if is_send_email is not None:
|
|
202
212
|
self.is_send_email = is_send_email
|
|
213
|
+
if authorized_collect_log is not None:
|
|
214
|
+
self.authorized_collect_log = authorized_collect_log
|
|
215
|
+
if authorized_hda_upgrade is not None:
|
|
216
|
+
self.authorized_hda_upgrade = authorized_hda_upgrade
|
|
203
217
|
if dc_vnc_ip is not None:
|
|
204
218
|
self.dc_vnc_ip = dc_vnc_ip
|
|
205
219
|
|
|
@@ -423,7 +437,7 @@ class ListWorkspacesResponse(SdkResponse):
|
|
|
423
437
|
def access_status(self):
|
|
424
438
|
"""Gets the access_status of this ListWorkspacesResponse.
|
|
425
439
|
|
|
426
|
-
互联网和专线切换任务的状态。 - init: 初始化 - 开通服务后的初始状态。 - available: 可用 - 执行过任务且成功后恢复的正常状态。 - internetOpening: 开启中 - 开通互联网接入开启中。 - dedicatedOpening: 开启中 - 开通专线接入开启中。 - internetOpenFailed: 开启失败 - 开通互联网接入开启失败。 - dedicatedOpenFailed: 开启失败 - 开通专线接入开启失败。 - openSuccess: 开启成功 -
|
|
440
|
+
互联网和专线切换任务的状态。 - init: 初始化 - 开通服务后的初始状态。 - available: 可用 - 执行过任务且成功后恢复的正常状态。 - internetOpening: 开启中 - 开通互联网接入开启中。 - dedicatedOpening: 开启中 - 开通专线接入开启中。 - internetOpenFailed: 开启失败 - 开通互联网接入开启失败。 - dedicatedOpenFailed: 开启失败 - 开通专线接入开启失败。 - openSuccess: 开启成功 - 开通接入方式成功。 - internetClosing: 关闭中 - 关闭互联网接入关闭中。 - dedicatedClosing: 关闭中 - 关闭专线接入关闭中。 - internetCloseFailed: 关闭失败 - 关闭互联网接入方式失败。 - dedicatedCloseFailed: 关闭失败 - 关闭专线接入方式失败。 - closeSuccess: 关闭成功 - 关闭接入方式成功。 - internetAccessPortModifying: 互联网接入端口修改中。 - internetAccessPortModifyFailed: 端口修改失败。
|
|
427
441
|
|
|
428
442
|
:return: The access_status of this ListWorkspacesResponse.
|
|
429
443
|
:rtype: str
|
|
@@ -434,7 +448,7 @@ class ListWorkspacesResponse(SdkResponse):
|
|
|
434
448
|
def access_status(self, access_status):
|
|
435
449
|
"""Sets the access_status of this ListWorkspacesResponse.
|
|
436
450
|
|
|
437
|
-
互联网和专线切换任务的状态。 - init: 初始化 - 开通服务后的初始状态。 - available: 可用 - 执行过任务且成功后恢复的正常状态。 - internetOpening: 开启中 - 开通互联网接入开启中。 - dedicatedOpening: 开启中 - 开通专线接入开启中。 - internetOpenFailed: 开启失败 - 开通互联网接入开启失败。 - dedicatedOpenFailed: 开启失败 - 开通专线接入开启失败。 - openSuccess: 开启成功 -
|
|
451
|
+
互联网和专线切换任务的状态。 - init: 初始化 - 开通服务后的初始状态。 - available: 可用 - 执行过任务且成功后恢复的正常状态。 - internetOpening: 开启中 - 开通互联网接入开启中。 - dedicatedOpening: 开启中 - 开通专线接入开启中。 - internetOpenFailed: 开启失败 - 开通互联网接入开启失败。 - dedicatedOpenFailed: 开启失败 - 开通专线接入开启失败。 - openSuccess: 开启成功 - 开通接入方式成功。 - internetClosing: 关闭中 - 关闭互联网接入关闭中。 - dedicatedClosing: 关闭中 - 关闭专线接入关闭中。 - internetCloseFailed: 关闭失败 - 关闭互联网接入方式失败。 - dedicatedCloseFailed: 关闭失败 - 关闭专线接入方式失败。 - closeSuccess: 关闭成功 - 关闭接入方式成功。 - internetAccessPortModifying: 互联网接入端口修改中。 - internetAccessPortModifyFailed: 端口修改失败。
|
|
438
452
|
|
|
439
453
|
:param access_status: The access_status of this ListWorkspacesResponse.
|
|
440
454
|
:type access_status: str
|
|
@@ -697,6 +711,50 @@ class ListWorkspacesResponse(SdkResponse):
|
|
|
697
711
|
"""
|
|
698
712
|
self._is_send_email = is_send_email
|
|
699
713
|
|
|
714
|
+
@property
|
|
715
|
+
def authorized_collect_log(self):
|
|
716
|
+
"""Gets the authorized_collect_log of this ListWorkspacesResponse.
|
|
717
|
+
|
|
718
|
+
是否授权收集日志。
|
|
719
|
+
|
|
720
|
+
:return: The authorized_collect_log of this ListWorkspacesResponse.
|
|
721
|
+
:rtype: bool
|
|
722
|
+
"""
|
|
723
|
+
return self._authorized_collect_log
|
|
724
|
+
|
|
725
|
+
@authorized_collect_log.setter
|
|
726
|
+
def authorized_collect_log(self, authorized_collect_log):
|
|
727
|
+
"""Sets the authorized_collect_log of this ListWorkspacesResponse.
|
|
728
|
+
|
|
729
|
+
是否授权收集日志。
|
|
730
|
+
|
|
731
|
+
:param authorized_collect_log: The authorized_collect_log of this ListWorkspacesResponse.
|
|
732
|
+
:type authorized_collect_log: bool
|
|
733
|
+
"""
|
|
734
|
+
self._authorized_collect_log = authorized_collect_log
|
|
735
|
+
|
|
736
|
+
@property
|
|
737
|
+
def authorized_hda_upgrade(self):
|
|
738
|
+
"""Gets the authorized_hda_upgrade of this ListWorkspacesResponse.
|
|
739
|
+
|
|
740
|
+
是否授权hda升级。
|
|
741
|
+
|
|
742
|
+
:return: The authorized_hda_upgrade of this ListWorkspacesResponse.
|
|
743
|
+
:rtype: bool
|
|
744
|
+
"""
|
|
745
|
+
return self._authorized_hda_upgrade
|
|
746
|
+
|
|
747
|
+
@authorized_hda_upgrade.setter
|
|
748
|
+
def authorized_hda_upgrade(self, authorized_hda_upgrade):
|
|
749
|
+
"""Sets the authorized_hda_upgrade of this ListWorkspacesResponse.
|
|
750
|
+
|
|
751
|
+
是否授权hda升级。
|
|
752
|
+
|
|
753
|
+
:param authorized_hda_upgrade: The authorized_hda_upgrade of this ListWorkspacesResponse.
|
|
754
|
+
:type authorized_hda_upgrade: bool
|
|
755
|
+
"""
|
|
756
|
+
self._authorized_hda_upgrade = authorized_hda_upgrade
|
|
757
|
+
|
|
700
758
|
@property
|
|
701
759
|
def dc_vnc_ip(self):
|
|
702
760
|
"""Gets the dc_vnc_ip of this ListWorkspacesResponse.
|
|
@@ -25,7 +25,10 @@ class ModifyWorkspaceAttributesReq:
|
|
|
25
25
|
'internet_access_port': 'str',
|
|
26
26
|
'enterprise_id': 'str',
|
|
27
27
|
'is_send_email': 'bool',
|
|
28
|
-
'dc_vnc_ip': 'str'
|
|
28
|
+
'dc_vnc_ip': 'str',
|
|
29
|
+
'authorized_collect_log': 'bool',
|
|
30
|
+
'authorized_hda_upgrade': 'bool',
|
|
31
|
+
'apply_dedicated_standby_network_param': 'ApplyDedicatedStandbyNetworkParam'
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
attribute_map = {
|
|
@@ -37,10 +40,13 @@ class ModifyWorkspaceAttributesReq:
|
|
|
37
40
|
'internet_access_port': 'internet_access_port',
|
|
38
41
|
'enterprise_id': 'enterprise_id',
|
|
39
42
|
'is_send_email': 'is_send_email',
|
|
40
|
-
'dc_vnc_ip': 'dc_vnc_ip'
|
|
43
|
+
'dc_vnc_ip': 'dc_vnc_ip',
|
|
44
|
+
'authorized_collect_log': 'authorized_collect_log',
|
|
45
|
+
'authorized_hda_upgrade': 'authorized_hda_upgrade',
|
|
46
|
+
'apply_dedicated_standby_network_param': 'apply_dedicated_standby_network_param'
|
|
41
47
|
}
|
|
42
48
|
|
|
43
|
-
def __init__(self, ad_info=None, ad_domains=None, access_mode=None, dedicated_subnets=None, subnet_ids=None, internet_access_port=None, enterprise_id=None, is_send_email=None, dc_vnc_ip=None):
|
|
49
|
+
def __init__(self, ad_info=None, ad_domains=None, access_mode=None, dedicated_subnets=None, subnet_ids=None, internet_access_port=None, enterprise_id=None, is_send_email=None, dc_vnc_ip=None, authorized_collect_log=None, authorized_hda_upgrade=None, apply_dedicated_standby_network_param=None):
|
|
44
50
|
"""ModifyWorkspaceAttributesReq
|
|
45
51
|
|
|
46
52
|
The model defined in huaweicloud sdk
|
|
@@ -63,6 +69,12 @@ class ModifyWorkspaceAttributesReq:
|
|
|
63
69
|
:type is_send_email: bool
|
|
64
70
|
:param dc_vnc_ip: 开通专线访问VNC功能,如果传入的是default则自动创建,如果传入的自定义的dc_vnc_ip则直接使用,如果传入的是close表示关闭自定义VNC
|
|
65
71
|
:type dc_vnc_ip: str
|
|
72
|
+
:param authorized_collect_log: 是否授权收集日志。
|
|
73
|
+
:type authorized_collect_log: bool
|
|
74
|
+
:param authorized_hda_upgrade: 是否授权hda升级。
|
|
75
|
+
:type authorized_hda_upgrade: bool
|
|
76
|
+
:param apply_dedicated_standby_network_param:
|
|
77
|
+
:type apply_dedicated_standby_network_param: :class:`huaweicloudsdkworkspace.v2.ApplyDedicatedStandbyNetworkParam`
|
|
66
78
|
"""
|
|
67
79
|
|
|
68
80
|
|
|
@@ -76,6 +88,9 @@ class ModifyWorkspaceAttributesReq:
|
|
|
76
88
|
self._enterprise_id = None
|
|
77
89
|
self._is_send_email = None
|
|
78
90
|
self._dc_vnc_ip = None
|
|
91
|
+
self._authorized_collect_log = None
|
|
92
|
+
self._authorized_hda_upgrade = None
|
|
93
|
+
self._apply_dedicated_standby_network_param = None
|
|
79
94
|
self.discriminator = None
|
|
80
95
|
|
|
81
96
|
if ad_info is not None:
|
|
@@ -96,6 +111,12 @@ class ModifyWorkspaceAttributesReq:
|
|
|
96
111
|
self.is_send_email = is_send_email
|
|
97
112
|
if dc_vnc_ip is not None:
|
|
98
113
|
self.dc_vnc_ip = dc_vnc_ip
|
|
114
|
+
if authorized_collect_log is not None:
|
|
115
|
+
self.authorized_collect_log = authorized_collect_log
|
|
116
|
+
if authorized_hda_upgrade is not None:
|
|
117
|
+
self.authorized_hda_upgrade = authorized_hda_upgrade
|
|
118
|
+
if apply_dedicated_standby_network_param is not None:
|
|
119
|
+
self.apply_dedicated_standby_network_param = apply_dedicated_standby_network_param
|
|
99
120
|
|
|
100
121
|
@property
|
|
101
122
|
def ad_info(self):
|
|
@@ -287,6 +308,68 @@ class ModifyWorkspaceAttributesReq:
|
|
|
287
308
|
"""
|
|
288
309
|
self._dc_vnc_ip = dc_vnc_ip
|
|
289
310
|
|
|
311
|
+
@property
|
|
312
|
+
def authorized_collect_log(self):
|
|
313
|
+
"""Gets the authorized_collect_log of this ModifyWorkspaceAttributesReq.
|
|
314
|
+
|
|
315
|
+
是否授权收集日志。
|
|
316
|
+
|
|
317
|
+
:return: The authorized_collect_log of this ModifyWorkspaceAttributesReq.
|
|
318
|
+
:rtype: bool
|
|
319
|
+
"""
|
|
320
|
+
return self._authorized_collect_log
|
|
321
|
+
|
|
322
|
+
@authorized_collect_log.setter
|
|
323
|
+
def authorized_collect_log(self, authorized_collect_log):
|
|
324
|
+
"""Sets the authorized_collect_log of this ModifyWorkspaceAttributesReq.
|
|
325
|
+
|
|
326
|
+
是否授权收集日志。
|
|
327
|
+
|
|
328
|
+
:param authorized_collect_log: The authorized_collect_log of this ModifyWorkspaceAttributesReq.
|
|
329
|
+
:type authorized_collect_log: bool
|
|
330
|
+
"""
|
|
331
|
+
self._authorized_collect_log = authorized_collect_log
|
|
332
|
+
|
|
333
|
+
@property
|
|
334
|
+
def authorized_hda_upgrade(self):
|
|
335
|
+
"""Gets the authorized_hda_upgrade of this ModifyWorkspaceAttributesReq.
|
|
336
|
+
|
|
337
|
+
是否授权hda升级。
|
|
338
|
+
|
|
339
|
+
:return: The authorized_hda_upgrade of this ModifyWorkspaceAttributesReq.
|
|
340
|
+
:rtype: bool
|
|
341
|
+
"""
|
|
342
|
+
return self._authorized_hda_upgrade
|
|
343
|
+
|
|
344
|
+
@authorized_hda_upgrade.setter
|
|
345
|
+
def authorized_hda_upgrade(self, authorized_hda_upgrade):
|
|
346
|
+
"""Sets the authorized_hda_upgrade of this ModifyWorkspaceAttributesReq.
|
|
347
|
+
|
|
348
|
+
是否授权hda升级。
|
|
349
|
+
|
|
350
|
+
:param authorized_hda_upgrade: The authorized_hda_upgrade of this ModifyWorkspaceAttributesReq.
|
|
351
|
+
:type authorized_hda_upgrade: bool
|
|
352
|
+
"""
|
|
353
|
+
self._authorized_hda_upgrade = authorized_hda_upgrade
|
|
354
|
+
|
|
355
|
+
@property
|
|
356
|
+
def apply_dedicated_standby_network_param(self):
|
|
357
|
+
"""Gets the apply_dedicated_standby_network_param of this ModifyWorkspaceAttributesReq.
|
|
358
|
+
|
|
359
|
+
:return: The apply_dedicated_standby_network_param of this ModifyWorkspaceAttributesReq.
|
|
360
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.ApplyDedicatedStandbyNetworkParam`
|
|
361
|
+
"""
|
|
362
|
+
return self._apply_dedicated_standby_network_param
|
|
363
|
+
|
|
364
|
+
@apply_dedicated_standby_network_param.setter
|
|
365
|
+
def apply_dedicated_standby_network_param(self, apply_dedicated_standby_network_param):
|
|
366
|
+
"""Sets the apply_dedicated_standby_network_param of this ModifyWorkspaceAttributesReq.
|
|
367
|
+
|
|
368
|
+
:param apply_dedicated_standby_network_param: The apply_dedicated_standby_network_param of this ModifyWorkspaceAttributesReq.
|
|
369
|
+
:type apply_dedicated_standby_network_param: :class:`huaweicloudsdkworkspace.v2.ApplyDedicatedStandbyNetworkParam`
|
|
370
|
+
"""
|
|
371
|
+
self._apply_dedicated_standby_network_param = apply_dedicated_standby_network_param
|
|
372
|
+
|
|
290
373
|
def to_dict(self):
|
|
291
374
|
"""Returns the model properties as a dict"""
|
|
292
375
|
result = {}
|
|
@@ -37,7 +37,7 @@ class TagsReq:
|
|
|
37
37
|
:type action: str
|
|
38
38
|
:param tags: 标签对象
|
|
39
39
|
:type tags: list[:class:`huaweicloudsdkworkspace.v2.Tag`]
|
|
40
|
-
:param sys_tags:
|
|
40
|
+
:param sys_tags: 标签对象(已废弃)
|
|
41
41
|
:type sys_tags: list[:class:`huaweicloudsdkworkspace.v2.Tag`]
|
|
42
42
|
"""
|
|
43
43
|
|
|
@@ -103,7 +103,7 @@ class TagsReq:
|
|
|
103
103
|
def sys_tags(self):
|
|
104
104
|
"""Gets the sys_tags of this TagsReq.
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
标签对象(已废弃)
|
|
107
107
|
|
|
108
108
|
:return: The sys_tags of this TagsReq.
|
|
109
109
|
:rtype: list[:class:`huaweicloudsdkworkspace.v2.Tag`]
|
|
@@ -114,7 +114,7 @@ class TagsReq:
|
|
|
114
114
|
def sys_tags(self, sys_tags):
|
|
115
115
|
"""Sets the sys_tags of this TagsReq.
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
标签对象(已废弃)
|
|
118
118
|
|
|
119
119
|
:param sys_tags: The sys_tags of this TagsReq.
|
|
120
120
|
:type sys_tags: list[:class:`huaweicloudsdkworkspace.v2.Tag`]
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateDesktopNamePolicyReq:
|
|
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
|
+
"""UpdateDesktopNamePolicyReq
|
|
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
|
+
if policy_name is not None:
|
|
67
|
+
self.policy_name = policy_name
|
|
68
|
+
if name_prefix is not None:
|
|
69
|
+
self.name_prefix = name_prefix
|
|
70
|
+
if digit_number is not None:
|
|
71
|
+
self.digit_number = digit_number
|
|
72
|
+
if start_number is not None:
|
|
73
|
+
self.start_number = start_number
|
|
74
|
+
if single_domain_user_inc is not None:
|
|
75
|
+
self.single_domain_user_inc = single_domain_user_inc
|
|
76
|
+
if is_default_policy is not None:
|
|
77
|
+
self.is_default_policy = is_default_policy
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def policy_name(self):
|
|
81
|
+
"""Gets the policy_name of this UpdateDesktopNamePolicyReq.
|
|
82
|
+
|
|
83
|
+
策略名称,由数字、字母、下划线组成,必须以字母或下划线开头,长度范围为1~30个字符。
|
|
84
|
+
|
|
85
|
+
:return: The policy_name of this UpdateDesktopNamePolicyReq.
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._policy_name
|
|
89
|
+
|
|
90
|
+
@policy_name.setter
|
|
91
|
+
def policy_name(self, policy_name):
|
|
92
|
+
"""Sets the policy_name of this UpdateDesktopNamePolicyReq.
|
|
93
|
+
|
|
94
|
+
策略名称,由数字、字母、下划线组成,必须以字母或下划线开头,长度范围为1~30个字符。
|
|
95
|
+
|
|
96
|
+
:param policy_name: The policy_name of this UpdateDesktopNamePolicyReq.
|
|
97
|
+
:type policy_name: str
|
|
98
|
+
"""
|
|
99
|
+
self._policy_name = policy_name
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def name_prefix(self):
|
|
103
|
+
"""Gets the name_prefix of this UpdateDesktopNamePolicyReq.
|
|
104
|
+
|
|
105
|
+
策略前缀。
|
|
106
|
+
|
|
107
|
+
:return: The name_prefix of this UpdateDesktopNamePolicyReq.
|
|
108
|
+
:rtype: str
|
|
109
|
+
"""
|
|
110
|
+
return self._name_prefix
|
|
111
|
+
|
|
112
|
+
@name_prefix.setter
|
|
113
|
+
def name_prefix(self, name_prefix):
|
|
114
|
+
"""Sets the name_prefix of this UpdateDesktopNamePolicyReq.
|
|
115
|
+
|
|
116
|
+
策略前缀。
|
|
117
|
+
|
|
118
|
+
:param name_prefix: The name_prefix of this UpdateDesktopNamePolicyReq.
|
|
119
|
+
:type name_prefix: str
|
|
120
|
+
"""
|
|
121
|
+
self._name_prefix = name_prefix
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def digit_number(self):
|
|
125
|
+
"""Gets the digit_number of this UpdateDesktopNamePolicyReq.
|
|
126
|
+
|
|
127
|
+
策略后缀有效位数。
|
|
128
|
+
|
|
129
|
+
:return: The digit_number of this UpdateDesktopNamePolicyReq.
|
|
130
|
+
:rtype: int
|
|
131
|
+
"""
|
|
132
|
+
return self._digit_number
|
|
133
|
+
|
|
134
|
+
@digit_number.setter
|
|
135
|
+
def digit_number(self, digit_number):
|
|
136
|
+
"""Sets the digit_number of this UpdateDesktopNamePolicyReq.
|
|
137
|
+
|
|
138
|
+
策略后缀有效位数。
|
|
139
|
+
|
|
140
|
+
:param digit_number: The digit_number of this UpdateDesktopNamePolicyReq.
|
|
141
|
+
:type digit_number: int
|
|
142
|
+
"""
|
|
143
|
+
self._digit_number = digit_number
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def start_number(self):
|
|
147
|
+
"""Gets the start_number of this UpdateDesktopNamePolicyReq.
|
|
148
|
+
|
|
149
|
+
策略后缀起始数字。
|
|
150
|
+
|
|
151
|
+
:return: The start_number of this UpdateDesktopNamePolicyReq.
|
|
152
|
+
:rtype: int
|
|
153
|
+
"""
|
|
154
|
+
return self._start_number
|
|
155
|
+
|
|
156
|
+
@start_number.setter
|
|
157
|
+
def start_number(self, start_number):
|
|
158
|
+
"""Sets the start_number of this UpdateDesktopNamePolicyReq.
|
|
159
|
+
|
|
160
|
+
策略后缀起始数字。
|
|
161
|
+
|
|
162
|
+
:param start_number: The start_number of this UpdateDesktopNamePolicyReq.
|
|
163
|
+
:type start_number: int
|
|
164
|
+
"""
|
|
165
|
+
self._start_number = start_number
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def single_domain_user_inc(self):
|
|
169
|
+
"""Gets the single_domain_user_inc of this UpdateDesktopNamePolicyReq.
|
|
170
|
+
|
|
171
|
+
是否单用户名递增。 - 1 单用户名递增。 - 0 租户递增。
|
|
172
|
+
|
|
173
|
+
:return: The single_domain_user_inc of this UpdateDesktopNamePolicyReq.
|
|
174
|
+
:rtype: int
|
|
175
|
+
"""
|
|
176
|
+
return self._single_domain_user_inc
|
|
177
|
+
|
|
178
|
+
@single_domain_user_inc.setter
|
|
179
|
+
def single_domain_user_inc(self, single_domain_user_inc):
|
|
180
|
+
"""Sets the single_domain_user_inc of this UpdateDesktopNamePolicyReq.
|
|
181
|
+
|
|
182
|
+
是否单用户名递增。 - 1 单用户名递增。 - 0 租户递增。
|
|
183
|
+
|
|
184
|
+
:param single_domain_user_inc: The single_domain_user_inc of this UpdateDesktopNamePolicyReq.
|
|
185
|
+
:type single_domain_user_inc: int
|
|
186
|
+
"""
|
|
187
|
+
self._single_domain_user_inc = single_domain_user_inc
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def is_default_policy(self):
|
|
191
|
+
"""Gets the is_default_policy of this UpdateDesktopNamePolicyReq.
|
|
192
|
+
|
|
193
|
+
是否为默认策略,true默认策略。
|
|
194
|
+
|
|
195
|
+
:return: The is_default_policy of this UpdateDesktopNamePolicyReq.
|
|
196
|
+
:rtype: bool
|
|
197
|
+
"""
|
|
198
|
+
return self._is_default_policy
|
|
199
|
+
|
|
200
|
+
@is_default_policy.setter
|
|
201
|
+
def is_default_policy(self, is_default_policy):
|
|
202
|
+
"""Sets the is_default_policy of this UpdateDesktopNamePolicyReq.
|
|
203
|
+
|
|
204
|
+
是否为默认策略,true默认策略。
|
|
205
|
+
|
|
206
|
+
:param is_default_policy: The is_default_policy of this UpdateDesktopNamePolicyReq.
|
|
207
|
+
:type is_default_policy: bool
|
|
208
|
+
"""
|
|
209
|
+
self._is_default_policy = is_default_policy
|
|
210
|
+
|
|
211
|
+
def to_dict(self):
|
|
212
|
+
"""Returns the model properties as a dict"""
|
|
213
|
+
result = {}
|
|
214
|
+
|
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
216
|
+
value = getattr(self, attr)
|
|
217
|
+
if isinstance(value, list):
|
|
218
|
+
result[attr] = list(map(
|
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
220
|
+
value
|
|
221
|
+
))
|
|
222
|
+
elif hasattr(value, "to_dict"):
|
|
223
|
+
result[attr] = value.to_dict()
|
|
224
|
+
elif isinstance(value, dict):
|
|
225
|
+
result[attr] = dict(map(
|
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
|
228
|
+
value.items()
|
|
229
|
+
))
|
|
230
|
+
else:
|
|
231
|
+
if attr in self.sensitive_list:
|
|
232
|
+
result[attr] = "****"
|
|
233
|
+
else:
|
|
234
|
+
result[attr] = value
|
|
235
|
+
|
|
236
|
+
return result
|
|
237
|
+
|
|
238
|
+
def to_str(self):
|
|
239
|
+
"""Returns the string representation of the model"""
|
|
240
|
+
import simplejson as json
|
|
241
|
+
if six.PY2:
|
|
242
|
+
import sys
|
|
243
|
+
reload(sys)
|
|
244
|
+
sys.setdefaultencoding("utf-8")
|
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
246
|
+
|
|
247
|
+
def __repr__(self):
|
|
248
|
+
"""For `print`"""
|
|
249
|
+
return self.to_str()
|
|
250
|
+
|
|
251
|
+
def __eq__(self, other):
|
|
252
|
+
"""Returns true if both objects are equal"""
|
|
253
|
+
if not isinstance(other, UpdateDesktopNamePolicyReq):
|
|
254
|
+
return False
|
|
255
|
+
|
|
256
|
+
return self.__dict__ == other.__dict__
|
|
257
|
+
|
|
258
|
+
def __ne__(self, other):
|
|
259
|
+
"""Returns true if both objects are not equal"""
|
|
260
|
+
return not self == other
|