huaweicloudsdkworkspace 3.1.88__py2.py3-none-any.whl → 3.1.90__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 +6 -0
- huaweicloudsdkworkspace/v2/model/__init__.py +6 -0
- huaweicloudsdkworkspace/v2/model/cancel_remote_assistance_request.py +114 -0
- huaweicloudsdkworkspace/v2/model/cancel_remote_assistance_response.py +85 -0
- huaweicloudsdkworkspace/v2/model/create_remote_assistance_request.py +114 -0
- huaweicloudsdkworkspace/v2/model/create_remote_assistance_response.py +203 -0
- huaweicloudsdkworkspace/v2/model/show_desktop_remote_assistance_info_request.py +114 -0
- huaweicloudsdkworkspace/v2/model/show_desktop_remote_assistance_info_response.py +348 -0
- huaweicloudsdkworkspace/v2/workspace_async_client.py +195 -0
- huaweicloudsdkworkspace/v2/workspace_client.py +195 -0
- {huaweicloudsdkworkspace-3.1.88.dist-info → huaweicloudsdkworkspace-3.1.90.dist-info}/METADATA +2 -2
- {huaweicloudsdkworkspace-3.1.88.dist-info → huaweicloudsdkworkspace-3.1.90.dist-info}/RECORD +15 -9
- {huaweicloudsdkworkspace-3.1.88.dist-info → huaweicloudsdkworkspace-3.1.90.dist-info}/LICENSE +0 -0
- {huaweicloudsdkworkspace-3.1.88.dist-info → huaweicloudsdkworkspace-3.1.90.dist-info}/WHEEL +0 -0
- {huaweicloudsdkworkspace-3.1.88.dist-info → huaweicloudsdkworkspace-3.1.90.dist-info}/top_level.txt +0 -0
|
@@ -81,6 +81,8 @@ from huaweicloudsdkworkspace.v2.model.batch_rebuild_desktops_system_disk_request
|
|
|
81
81
|
from huaweicloudsdkworkspace.v2.model.batch_rebuild_desktops_system_disk_response import BatchRebuildDesktopsSystemDiskResponse
|
|
82
82
|
from huaweicloudsdkworkspace.v2.model.batch_run_desktops_request import BatchRunDesktopsRequest
|
|
83
83
|
from huaweicloudsdkworkspace.v2.model.batch_run_desktops_response import BatchRunDesktopsResponse
|
|
84
|
+
from huaweicloudsdkworkspace.v2.model.cancel_remote_assistance_request import CancelRemoteAssistanceRequest
|
|
85
|
+
from huaweicloudsdkworkspace.v2.model.cancel_remote_assistance_response import CancelRemoteAssistanceResponse
|
|
84
86
|
from huaweicloudsdkworkspace.v2.model.cancel_workspace_request import CancelWorkspaceRequest
|
|
85
87
|
from huaweicloudsdkworkspace.v2.model.cancel_workspace_response import CancelWorkspaceResponse
|
|
86
88
|
from huaweicloudsdkworkspace.v2.model.change_desktop_network_req import ChangeDesktopNetworkReq
|
|
@@ -101,6 +103,8 @@ from huaweicloudsdkworkspace.v2.model.create_desktop_request import CreateDeskto
|
|
|
101
103
|
from huaweicloudsdkworkspace.v2.model.create_desktop_response import CreateDesktopResponse
|
|
102
104
|
from huaweicloudsdkworkspace.v2.model.create_desktop_user_request import CreateDesktopUserRequest
|
|
103
105
|
from huaweicloudsdkworkspace.v2.model.create_desktop_user_response import CreateDesktopUserResponse
|
|
106
|
+
from huaweicloudsdkworkspace.v2.model.create_remote_assistance_request import CreateRemoteAssistanceRequest
|
|
107
|
+
from huaweicloudsdkworkspace.v2.model.create_remote_assistance_response import CreateRemoteAssistanceResponse
|
|
104
108
|
from huaweicloudsdkworkspace.v2.model.create_scheduled_tasks_req import CreateScheduledTasksReq
|
|
105
109
|
from huaweicloudsdkworkspace.v2.model.create_scheduled_tasks_request import CreateScheduledTasksRequest
|
|
106
110
|
from huaweicloudsdkworkspace.v2.model.create_scheduled_tasks_response import CreateScheduledTasksResponse
|
|
@@ -273,6 +277,8 @@ from huaweicloudsdkworkspace.v2.model.show_desktop_detail_request import ShowDes
|
|
|
273
277
|
from huaweicloudsdkworkspace.v2.model.show_desktop_detail_response import ShowDesktopDetailResponse
|
|
274
278
|
from huaweicloudsdkworkspace.v2.model.show_desktop_network_request import ShowDesktopNetworkRequest
|
|
275
279
|
from huaweicloudsdkworkspace.v2.model.show_desktop_network_response import ShowDesktopNetworkResponse
|
|
280
|
+
from huaweicloudsdkworkspace.v2.model.show_desktop_remote_assistance_info_request import ShowDesktopRemoteAssistanceInfoRequest
|
|
281
|
+
from huaweicloudsdkworkspace.v2.model.show_desktop_remote_assistance_info_response import ShowDesktopRemoteAssistanceInfoResponse
|
|
276
282
|
from huaweicloudsdkworkspace.v2.model.show_quotas_request import ShowQuotasRequest
|
|
277
283
|
from huaweicloudsdkworkspace.v2.model.show_quotas_response import ShowQuotasResponse
|
|
278
284
|
from huaweicloudsdkworkspace.v2.model.show_scheduled_tasks_request import ShowScheduledTasksRequest
|
|
@@ -79,6 +79,8 @@ from huaweicloudsdkworkspace.v2.model.batch_rebuild_desktops_system_disk_request
|
|
|
79
79
|
from huaweicloudsdkworkspace.v2.model.batch_rebuild_desktops_system_disk_response import BatchRebuildDesktopsSystemDiskResponse
|
|
80
80
|
from huaweicloudsdkworkspace.v2.model.batch_run_desktops_request import BatchRunDesktopsRequest
|
|
81
81
|
from huaweicloudsdkworkspace.v2.model.batch_run_desktops_response import BatchRunDesktopsResponse
|
|
82
|
+
from huaweicloudsdkworkspace.v2.model.cancel_remote_assistance_request import CancelRemoteAssistanceRequest
|
|
83
|
+
from huaweicloudsdkworkspace.v2.model.cancel_remote_assistance_response import CancelRemoteAssistanceResponse
|
|
82
84
|
from huaweicloudsdkworkspace.v2.model.cancel_workspace_request import CancelWorkspaceRequest
|
|
83
85
|
from huaweicloudsdkworkspace.v2.model.cancel_workspace_response import CancelWorkspaceResponse
|
|
84
86
|
from huaweicloudsdkworkspace.v2.model.change_desktop_network_req import ChangeDesktopNetworkReq
|
|
@@ -99,6 +101,8 @@ from huaweicloudsdkworkspace.v2.model.create_desktop_request import CreateDeskto
|
|
|
99
101
|
from huaweicloudsdkworkspace.v2.model.create_desktop_response import CreateDesktopResponse
|
|
100
102
|
from huaweicloudsdkworkspace.v2.model.create_desktop_user_request import CreateDesktopUserRequest
|
|
101
103
|
from huaweicloudsdkworkspace.v2.model.create_desktop_user_response import CreateDesktopUserResponse
|
|
104
|
+
from huaweicloudsdkworkspace.v2.model.create_remote_assistance_request import CreateRemoteAssistanceRequest
|
|
105
|
+
from huaweicloudsdkworkspace.v2.model.create_remote_assistance_response import CreateRemoteAssistanceResponse
|
|
102
106
|
from huaweicloudsdkworkspace.v2.model.create_scheduled_tasks_req import CreateScheduledTasksReq
|
|
103
107
|
from huaweicloudsdkworkspace.v2.model.create_scheduled_tasks_request import CreateScheduledTasksRequest
|
|
104
108
|
from huaweicloudsdkworkspace.v2.model.create_scheduled_tasks_response import CreateScheduledTasksResponse
|
|
@@ -271,6 +275,8 @@ from huaweicloudsdkworkspace.v2.model.show_desktop_detail_request import ShowDes
|
|
|
271
275
|
from huaweicloudsdkworkspace.v2.model.show_desktop_detail_response import ShowDesktopDetailResponse
|
|
272
276
|
from huaweicloudsdkworkspace.v2.model.show_desktop_network_request import ShowDesktopNetworkRequest
|
|
273
277
|
from huaweicloudsdkworkspace.v2.model.show_desktop_network_response import ShowDesktopNetworkResponse
|
|
278
|
+
from huaweicloudsdkworkspace.v2.model.show_desktop_remote_assistance_info_request import ShowDesktopRemoteAssistanceInfoRequest
|
|
279
|
+
from huaweicloudsdkworkspace.v2.model.show_desktop_remote_assistance_info_response import ShowDesktopRemoteAssistanceInfoResponse
|
|
274
280
|
from huaweicloudsdkworkspace.v2.model.show_quotas_request import ShowQuotasRequest
|
|
275
281
|
from huaweicloudsdkworkspace.v2.model.show_quotas_response import ShowQuotasResponse
|
|
276
282
|
from huaweicloudsdkworkspace.v2.model.show_scheduled_tasks_request import ShowScheduledTasksRequest
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CancelRemoteAssistanceRequest:
|
|
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
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'desktop_id': 'desktop_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, desktop_id=None):
|
|
28
|
+
"""CancelRemoteAssistanceRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param desktop_id: 桌面ID。
|
|
33
|
+
:type desktop_id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._desktop_id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.desktop_id = desktop_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def desktop_id(self):
|
|
45
|
+
"""Gets the desktop_id of this CancelRemoteAssistanceRequest.
|
|
46
|
+
|
|
47
|
+
桌面ID。
|
|
48
|
+
|
|
49
|
+
:return: The desktop_id of this CancelRemoteAssistanceRequest.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._desktop_id
|
|
53
|
+
|
|
54
|
+
@desktop_id.setter
|
|
55
|
+
def desktop_id(self, desktop_id):
|
|
56
|
+
"""Sets the desktop_id of this CancelRemoteAssistanceRequest.
|
|
57
|
+
|
|
58
|
+
桌面ID。
|
|
59
|
+
|
|
60
|
+
:param desktop_id: The desktop_id of this CancelRemoteAssistanceRequest.
|
|
61
|
+
:type desktop_id: str
|
|
62
|
+
"""
|
|
63
|
+
self._desktop_id = desktop_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, CancelRemoteAssistanceRequest):
|
|
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
|
|
@@ -0,0 +1,85 @@
|
|
|
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 CancelRemoteAssistanceResponse(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
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
"""CancelRemoteAssistanceResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
super(CancelRemoteAssistanceResponse, self).__init__()
|
|
34
|
+
self.discriminator = None
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""Returns the model properties as a dict"""
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
if six.PY2:
|
|
67
|
+
import sys
|
|
68
|
+
reload(sys)
|
|
69
|
+
sys.setdefaultencoding("utf-8")
|
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
71
|
+
|
|
72
|
+
def __repr__(self):
|
|
73
|
+
"""For `print`"""
|
|
74
|
+
return self.to_str()
|
|
75
|
+
|
|
76
|
+
def __eq__(self, other):
|
|
77
|
+
"""Returns true if both objects are equal"""
|
|
78
|
+
if not isinstance(other, CancelRemoteAssistanceResponse):
|
|
79
|
+
return False
|
|
80
|
+
|
|
81
|
+
return self.__dict__ == other.__dict__
|
|
82
|
+
|
|
83
|
+
def __ne__(self, other):
|
|
84
|
+
"""Returns true if both objects are not equal"""
|
|
85
|
+
return not self == other
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateRemoteAssistanceRequest:
|
|
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
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'desktop_id': 'desktop_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, desktop_id=None):
|
|
28
|
+
"""CreateRemoteAssistanceRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param desktop_id: 桌面ID。
|
|
33
|
+
:type desktop_id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._desktop_id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.desktop_id = desktop_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def desktop_id(self):
|
|
45
|
+
"""Gets the desktop_id of this CreateRemoteAssistanceRequest.
|
|
46
|
+
|
|
47
|
+
桌面ID。
|
|
48
|
+
|
|
49
|
+
:return: The desktop_id of this CreateRemoteAssistanceRequest.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._desktop_id
|
|
53
|
+
|
|
54
|
+
@desktop_id.setter
|
|
55
|
+
def desktop_id(self, desktop_id):
|
|
56
|
+
"""Sets the desktop_id of this CreateRemoteAssistanceRequest.
|
|
57
|
+
|
|
58
|
+
桌面ID。
|
|
59
|
+
|
|
60
|
+
:param desktop_id: The desktop_id of this CreateRemoteAssistanceRequest.
|
|
61
|
+
:type desktop_id: str
|
|
62
|
+
"""
|
|
63
|
+
self._desktop_id = desktop_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, CreateRemoteAssistanceRequest):
|
|
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
|
|
@@ -0,0 +1,203 @@
|
|
|
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 CreateRemoteAssistanceResponse(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
|
+
'share_space_id': 'str',
|
|
22
|
+
'status': 'str',
|
|
23
|
+
'desktop_id': 'str',
|
|
24
|
+
'initiator_type': 'str'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'share_space_id': 'share_space_id',
|
|
29
|
+
'status': 'status',
|
|
30
|
+
'desktop_id': 'desktop_id',
|
|
31
|
+
'initiator_type': 'initiator_type'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
def __init__(self, share_space_id=None, status=None, desktop_id=None, initiator_type=None):
|
|
35
|
+
"""CreateRemoteAssistanceResponse
|
|
36
|
+
|
|
37
|
+
The model defined in huaweicloud sdk
|
|
38
|
+
|
|
39
|
+
:param share_space_id: 协同空间ID
|
|
40
|
+
:type share_space_id: str
|
|
41
|
+
:param status: 协同空间状态 - OPEN 协同空间已创建 - CLOSE 协同空间已关闭 - WAIT_USER_CONFIRM 等待用户确认进入远程协助 - WAIT_USER_ACCESS 等待用户进入远程协助
|
|
42
|
+
:type status: str
|
|
43
|
+
:param desktop_id: 桌面的desktopId
|
|
44
|
+
:type desktop_id: str
|
|
45
|
+
:param initiator_type: 发起方类型 - ADMIN_INITIATE 管理员发起 - ENDUSER_INITIATE 终端用户发起
|
|
46
|
+
:type initiator_type: str
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
super(CreateRemoteAssistanceResponse, self).__init__()
|
|
50
|
+
|
|
51
|
+
self._share_space_id = None
|
|
52
|
+
self._status = None
|
|
53
|
+
self._desktop_id = None
|
|
54
|
+
self._initiator_type = None
|
|
55
|
+
self.discriminator = None
|
|
56
|
+
|
|
57
|
+
if share_space_id is not None:
|
|
58
|
+
self.share_space_id = share_space_id
|
|
59
|
+
if status is not None:
|
|
60
|
+
self.status = status
|
|
61
|
+
if desktop_id is not None:
|
|
62
|
+
self.desktop_id = desktop_id
|
|
63
|
+
if initiator_type is not None:
|
|
64
|
+
self.initiator_type = initiator_type
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def share_space_id(self):
|
|
68
|
+
"""Gets the share_space_id of this CreateRemoteAssistanceResponse.
|
|
69
|
+
|
|
70
|
+
协同空间ID
|
|
71
|
+
|
|
72
|
+
:return: The share_space_id of this CreateRemoteAssistanceResponse.
|
|
73
|
+
:rtype: str
|
|
74
|
+
"""
|
|
75
|
+
return self._share_space_id
|
|
76
|
+
|
|
77
|
+
@share_space_id.setter
|
|
78
|
+
def share_space_id(self, share_space_id):
|
|
79
|
+
"""Sets the share_space_id of this CreateRemoteAssistanceResponse.
|
|
80
|
+
|
|
81
|
+
协同空间ID
|
|
82
|
+
|
|
83
|
+
:param share_space_id: The share_space_id of this CreateRemoteAssistanceResponse.
|
|
84
|
+
:type share_space_id: str
|
|
85
|
+
"""
|
|
86
|
+
self._share_space_id = share_space_id
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def status(self):
|
|
90
|
+
"""Gets the status of this CreateRemoteAssistanceResponse.
|
|
91
|
+
|
|
92
|
+
协同空间状态 - OPEN 协同空间已创建 - CLOSE 协同空间已关闭 - WAIT_USER_CONFIRM 等待用户确认进入远程协助 - WAIT_USER_ACCESS 等待用户进入远程协助
|
|
93
|
+
|
|
94
|
+
:return: The status of this CreateRemoteAssistanceResponse.
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._status
|
|
98
|
+
|
|
99
|
+
@status.setter
|
|
100
|
+
def status(self, status):
|
|
101
|
+
"""Sets the status of this CreateRemoteAssistanceResponse.
|
|
102
|
+
|
|
103
|
+
协同空间状态 - OPEN 协同空间已创建 - CLOSE 协同空间已关闭 - WAIT_USER_CONFIRM 等待用户确认进入远程协助 - WAIT_USER_ACCESS 等待用户进入远程协助
|
|
104
|
+
|
|
105
|
+
:param status: The status of this CreateRemoteAssistanceResponse.
|
|
106
|
+
:type status: str
|
|
107
|
+
"""
|
|
108
|
+
self._status = status
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def desktop_id(self):
|
|
112
|
+
"""Gets the desktop_id of this CreateRemoteAssistanceResponse.
|
|
113
|
+
|
|
114
|
+
桌面的desktopId
|
|
115
|
+
|
|
116
|
+
:return: The desktop_id of this CreateRemoteAssistanceResponse.
|
|
117
|
+
:rtype: str
|
|
118
|
+
"""
|
|
119
|
+
return self._desktop_id
|
|
120
|
+
|
|
121
|
+
@desktop_id.setter
|
|
122
|
+
def desktop_id(self, desktop_id):
|
|
123
|
+
"""Sets the desktop_id of this CreateRemoteAssistanceResponse.
|
|
124
|
+
|
|
125
|
+
桌面的desktopId
|
|
126
|
+
|
|
127
|
+
:param desktop_id: The desktop_id of this CreateRemoteAssistanceResponse.
|
|
128
|
+
:type desktop_id: str
|
|
129
|
+
"""
|
|
130
|
+
self._desktop_id = desktop_id
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def initiator_type(self):
|
|
134
|
+
"""Gets the initiator_type of this CreateRemoteAssistanceResponse.
|
|
135
|
+
|
|
136
|
+
发起方类型 - ADMIN_INITIATE 管理员发起 - ENDUSER_INITIATE 终端用户发起
|
|
137
|
+
|
|
138
|
+
:return: The initiator_type of this CreateRemoteAssistanceResponse.
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._initiator_type
|
|
142
|
+
|
|
143
|
+
@initiator_type.setter
|
|
144
|
+
def initiator_type(self, initiator_type):
|
|
145
|
+
"""Sets the initiator_type of this CreateRemoteAssistanceResponse.
|
|
146
|
+
|
|
147
|
+
发起方类型 - ADMIN_INITIATE 管理员发起 - ENDUSER_INITIATE 终端用户发起
|
|
148
|
+
|
|
149
|
+
:param initiator_type: The initiator_type of this CreateRemoteAssistanceResponse.
|
|
150
|
+
:type initiator_type: str
|
|
151
|
+
"""
|
|
152
|
+
self._initiator_type = initiator_type
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
if attr in self.sensitive_list:
|
|
175
|
+
result[attr] = "****"
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
import simplejson as json
|
|
184
|
+
if six.PY2:
|
|
185
|
+
import sys
|
|
186
|
+
reload(sys)
|
|
187
|
+
sys.setdefaultencoding("utf-8")
|
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
189
|
+
|
|
190
|
+
def __repr__(self):
|
|
191
|
+
"""For `print`"""
|
|
192
|
+
return self.to_str()
|
|
193
|
+
|
|
194
|
+
def __eq__(self, other):
|
|
195
|
+
"""Returns true if both objects are equal"""
|
|
196
|
+
if not isinstance(other, CreateRemoteAssistanceResponse):
|
|
197
|
+
return False
|
|
198
|
+
|
|
199
|
+
return self.__dict__ == other.__dict__
|
|
200
|
+
|
|
201
|
+
def __ne__(self, other):
|
|
202
|
+
"""Returns true if both objects are not equal"""
|
|
203
|
+
return not self == other
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ShowDesktopRemoteAssistanceInfoRequest:
|
|
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
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'desktop_id': 'desktop_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, desktop_id=None):
|
|
28
|
+
"""ShowDesktopRemoteAssistanceInfoRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param desktop_id: 桌面ID。
|
|
33
|
+
:type desktop_id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._desktop_id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.desktop_id = desktop_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def desktop_id(self):
|
|
45
|
+
"""Gets the desktop_id of this ShowDesktopRemoteAssistanceInfoRequest.
|
|
46
|
+
|
|
47
|
+
桌面ID。
|
|
48
|
+
|
|
49
|
+
:return: The desktop_id of this ShowDesktopRemoteAssistanceInfoRequest.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._desktop_id
|
|
53
|
+
|
|
54
|
+
@desktop_id.setter
|
|
55
|
+
def desktop_id(self, desktop_id):
|
|
56
|
+
"""Sets the desktop_id of this ShowDesktopRemoteAssistanceInfoRequest.
|
|
57
|
+
|
|
58
|
+
桌面ID。
|
|
59
|
+
|
|
60
|
+
:param desktop_id: The desktop_id of this ShowDesktopRemoteAssistanceInfoRequest.
|
|
61
|
+
:type desktop_id: str
|
|
62
|
+
"""
|
|
63
|
+
self._desktop_id = desktop_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, ShowDesktopRemoteAssistanceInfoRequest):
|
|
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
|