alibabacloud-ecd20201002 1.1.1__py3-none-any.whl → 1.1.3__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.
- alibabacloud_ecd20201002/__init__.py +1 -1
- alibabacloud_ecd20201002/client.py +608 -8
- alibabacloud_ecd20201002/models.py +265 -19
- {alibabacloud_ecd20201002-1.1.1.dist-info → alibabacloud_ecd20201002-1.1.3.dist-info}/METADATA +6 -7
- alibabacloud_ecd20201002-1.1.3.dist-info/RECORD +8 -0
- {alibabacloud_ecd20201002-1.1.1.dist-info → alibabacloud_ecd20201002-1.1.3.dist-info}/WHEEL +1 -1
- alibabacloud_ecd20201002-1.1.1.dist-info/RECORD +0 -8
- {alibabacloud_ecd20201002-1.1.1.dist-info → alibabacloud_ecd20201002-1.1.3.dist-info}/LICENSE +0 -0
- {alibabacloud_ecd20201002-1.1.1.dist-info → alibabacloud_ecd20201002-1.1.3.dist-info}/top_level.txt +0 -0
|
@@ -4,6 +4,63 @@ from Tea.model import TeaModel
|
|
|
4
4
|
from typing import Dict, List
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
class OssUploadCredential(TeaModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
access_key_id: str = None,
|
|
11
|
+
endpoint: str = None,
|
|
12
|
+
file_path: str = None,
|
|
13
|
+
oss_policy: str = None,
|
|
14
|
+
oss_signature: str = None,
|
|
15
|
+
sts_token: str = None,
|
|
16
|
+
):
|
|
17
|
+
self.access_key_id = access_key_id
|
|
18
|
+
self.endpoint = endpoint
|
|
19
|
+
self.file_path = file_path
|
|
20
|
+
self.oss_policy = oss_policy
|
|
21
|
+
self.oss_signature = oss_signature
|
|
22
|
+
self.sts_token = sts_token
|
|
23
|
+
|
|
24
|
+
def validate(self):
|
|
25
|
+
pass
|
|
26
|
+
|
|
27
|
+
def to_map(self):
|
|
28
|
+
_map = super().to_map()
|
|
29
|
+
if _map is not None:
|
|
30
|
+
return _map
|
|
31
|
+
|
|
32
|
+
result = dict()
|
|
33
|
+
if self.access_key_id is not None:
|
|
34
|
+
result['AccessKeyId'] = self.access_key_id
|
|
35
|
+
if self.endpoint is not None:
|
|
36
|
+
result['Endpoint'] = self.endpoint
|
|
37
|
+
if self.file_path is not None:
|
|
38
|
+
result['FilePath'] = self.file_path
|
|
39
|
+
if self.oss_policy is not None:
|
|
40
|
+
result['OssPolicy'] = self.oss_policy
|
|
41
|
+
if self.oss_signature is not None:
|
|
42
|
+
result['OssSignature'] = self.oss_signature
|
|
43
|
+
if self.sts_token is not None:
|
|
44
|
+
result['StsToken'] = self.sts_token
|
|
45
|
+
return result
|
|
46
|
+
|
|
47
|
+
def from_map(self, m: dict = None):
|
|
48
|
+
m = m or dict()
|
|
49
|
+
if m.get('AccessKeyId') is not None:
|
|
50
|
+
self.access_key_id = m.get('AccessKeyId')
|
|
51
|
+
if m.get('Endpoint') is not None:
|
|
52
|
+
self.endpoint = m.get('Endpoint')
|
|
53
|
+
if m.get('FilePath') is not None:
|
|
54
|
+
self.file_path = m.get('FilePath')
|
|
55
|
+
if m.get('OssPolicy') is not None:
|
|
56
|
+
self.oss_policy = m.get('OssPolicy')
|
|
57
|
+
if m.get('OssSignature') is not None:
|
|
58
|
+
self.oss_signature = m.get('OssSignature')
|
|
59
|
+
if m.get('StsToken') is not None:
|
|
60
|
+
self.sts_token = m.get('StsToken')
|
|
61
|
+
return self
|
|
62
|
+
|
|
63
|
+
|
|
7
64
|
class ApproveFotaUpdateRequest(TeaModel):
|
|
8
65
|
def __init__(
|
|
9
66
|
self,
|
|
@@ -15,10 +72,14 @@ class ApproveFotaUpdateRequest(TeaModel):
|
|
|
15
72
|
session_id: str = None,
|
|
16
73
|
uuid: str = None,
|
|
17
74
|
):
|
|
75
|
+
# This parameter is required.
|
|
18
76
|
self.app_version = app_version
|
|
77
|
+
# This parameter is required.
|
|
19
78
|
self.client_id = client_id
|
|
20
79
|
self.desktop_id = desktop_id
|
|
80
|
+
# This parameter is required.
|
|
21
81
|
self.login_token = login_token
|
|
82
|
+
# This parameter is required.
|
|
22
83
|
self.region_id = region_id
|
|
23
84
|
self.session_id = session_id
|
|
24
85
|
self.uuid = uuid
|
|
@@ -147,12 +208,19 @@ class ChangePasswordRequest(TeaModel):
|
|
|
147
208
|
region_id: str = None,
|
|
148
209
|
session_id: str = None,
|
|
149
210
|
):
|
|
211
|
+
# This parameter is required.
|
|
150
212
|
self.client_id = client_id
|
|
213
|
+
# This parameter is required.
|
|
151
214
|
self.end_user_id = end_user_id
|
|
215
|
+
# This parameter is required.
|
|
152
216
|
self.login_token = login_token
|
|
217
|
+
# This parameter is required.
|
|
153
218
|
self.new_password = new_password
|
|
219
|
+
# This parameter is required.
|
|
154
220
|
self.office_site_id = office_site_id
|
|
221
|
+
# This parameter is required.
|
|
155
222
|
self.old_password = old_password
|
|
223
|
+
# This parameter is required.
|
|
156
224
|
self.region_id = region_id
|
|
157
225
|
self.session_id = session_id
|
|
158
226
|
|
|
@@ -288,11 +356,16 @@ class DeleteFingerPrintTemplateRequest(TeaModel):
|
|
|
288
356
|
region_id: str = None,
|
|
289
357
|
session_id: str = None,
|
|
290
358
|
):
|
|
359
|
+
# This parameter is required.
|
|
291
360
|
self.client_id = client_id
|
|
292
361
|
self.client_token = client_token
|
|
362
|
+
# This parameter is required.
|
|
293
363
|
self.index = index
|
|
364
|
+
# This parameter is required.
|
|
294
365
|
self.login_token = login_token
|
|
366
|
+
# This parameter is required.
|
|
295
367
|
self.region_id = region_id
|
|
368
|
+
# This parameter is required.
|
|
296
369
|
self.session_id = session_id
|
|
297
370
|
|
|
298
371
|
def validate(self):
|
|
@@ -410,8 +483,10 @@ class DescribeDirectoriesRequest(TeaModel):
|
|
|
410
483
|
directory_id: List[str] = None,
|
|
411
484
|
region_id: str = None,
|
|
412
485
|
):
|
|
486
|
+
# This parameter is required.
|
|
413
487
|
self.client_id = client_id
|
|
414
488
|
self.directory_id = directory_id
|
|
489
|
+
# This parameter is required.
|
|
415
490
|
self.region_id = region_id
|
|
416
491
|
|
|
417
492
|
def validate(self):
|
|
@@ -583,9 +658,13 @@ class DescribeFingerPrintTemplatesRequest(TeaModel):
|
|
|
583
658
|
region_id: str = None,
|
|
584
659
|
session_id: str = None,
|
|
585
660
|
):
|
|
661
|
+
# This parameter is required.
|
|
586
662
|
self.client_id = client_id
|
|
663
|
+
# This parameter is required.
|
|
587
664
|
self.login_token = login_token
|
|
665
|
+
# This parameter is required.
|
|
588
666
|
self.region_id = region_id
|
|
667
|
+
# This parameter is required.
|
|
589
668
|
self.session_id = session_id
|
|
590
669
|
|
|
591
670
|
def validate(self):
|
|
@@ -788,6 +867,7 @@ class DescribeGlobalDesktopsRequest(TeaModel):
|
|
|
788
867
|
sort_type: str = None,
|
|
789
868
|
without_latency: bool = None,
|
|
790
869
|
):
|
|
870
|
+
# This parameter is required.
|
|
791
871
|
self.client_id = client_id
|
|
792
872
|
self.desktop_access_type = desktop_access_type
|
|
793
873
|
self.desktop_id = desktop_id
|
|
@@ -797,6 +877,7 @@ class DescribeGlobalDesktopsRequest(TeaModel):
|
|
|
797
877
|
# 关键字。支持模糊搜索桌面ID、云桌面名称和终端用户自定义的桌面名称。
|
|
798
878
|
self.keyword = keyword
|
|
799
879
|
self.login_region_id = login_region_id
|
|
880
|
+
# This parameter is required.
|
|
800
881
|
self.login_token = login_token
|
|
801
882
|
self.max_results = max_results
|
|
802
883
|
self.next_token = next_token
|
|
@@ -1199,6 +1280,7 @@ class DescribeGlobalDesktopsResponseBodyDesktops(TeaModel):
|
|
|
1199
1280
|
protocol_type: str = None,
|
|
1200
1281
|
real_desktop_id: str = None,
|
|
1201
1282
|
region_id: str = None,
|
|
1283
|
+
region_location: str = None,
|
|
1202
1284
|
session_type: str = None,
|
|
1203
1285
|
sessions: List[DescribeGlobalDesktopsResponseBodyDesktopsSessions] = None,
|
|
1204
1286
|
support_hibernation: bool = None,
|
|
@@ -1239,6 +1321,7 @@ class DescribeGlobalDesktopsResponseBodyDesktops(TeaModel):
|
|
|
1239
1321
|
self.protocol_type = protocol_type
|
|
1240
1322
|
self.real_desktop_id = real_desktop_id
|
|
1241
1323
|
self.region_id = region_id
|
|
1324
|
+
self.region_location = region_location
|
|
1242
1325
|
self.session_type = session_type
|
|
1243
1326
|
self.sessions = sessions
|
|
1244
1327
|
self.support_hibernation = support_hibernation
|
|
@@ -1344,6 +1427,8 @@ class DescribeGlobalDesktopsResponseBodyDesktops(TeaModel):
|
|
|
1344
1427
|
result['RealDesktopId'] = self.real_desktop_id
|
|
1345
1428
|
if self.region_id is not None:
|
|
1346
1429
|
result['RegionId'] = self.region_id
|
|
1430
|
+
if self.region_location is not None:
|
|
1431
|
+
result['RegionLocation'] = self.region_location
|
|
1347
1432
|
if self.session_type is not None:
|
|
1348
1433
|
result['SessionType'] = self.session_type
|
|
1349
1434
|
result['Sessions'] = []
|
|
@@ -1436,6 +1521,8 @@ class DescribeGlobalDesktopsResponseBodyDesktops(TeaModel):
|
|
|
1436
1521
|
self.real_desktop_id = m.get('RealDesktopId')
|
|
1437
1522
|
if m.get('RegionId') is not None:
|
|
1438
1523
|
self.region_id = m.get('RegionId')
|
|
1524
|
+
if m.get('RegionLocation') is not None:
|
|
1525
|
+
self.region_location = m.get('RegionLocation')
|
|
1439
1526
|
if m.get('SessionType') is not None:
|
|
1440
1527
|
self.session_type = m.get('SessionType')
|
|
1441
1528
|
self.sessions = []
|
|
@@ -1545,8 +1632,10 @@ class DescribeOfficeSitesRequest(TeaModel):
|
|
|
1545
1632
|
office_site_id: List[str] = None,
|
|
1546
1633
|
region_id: str = None,
|
|
1547
1634
|
):
|
|
1635
|
+
# This parameter is required.
|
|
1548
1636
|
self.client_id = client_id
|
|
1549
1637
|
self.office_site_id = office_site_id
|
|
1638
|
+
# This parameter is required.
|
|
1550
1639
|
self.region_id = region_id
|
|
1551
1640
|
|
|
1552
1641
|
def validate(self):
|
|
@@ -1722,6 +1811,7 @@ class DescribeRegionsRequest(TeaModel):
|
|
|
1722
1811
|
client_id: str = None,
|
|
1723
1812
|
region_id: str = None,
|
|
1724
1813
|
):
|
|
1814
|
+
# This parameter is required.
|
|
1725
1815
|
self.client_id = client_id
|
|
1726
1816
|
self.region_id = region_id
|
|
1727
1817
|
|
|
@@ -1876,11 +1966,14 @@ class DescribeSnapshotsRequest(TeaModel):
|
|
|
1876
1966
|
session_id: str = None,
|
|
1877
1967
|
snapshot_id: str = None,
|
|
1878
1968
|
):
|
|
1969
|
+
# This parameter is required.
|
|
1879
1970
|
self.client_id = client_id
|
|
1880
1971
|
self.desktop_id = desktop_id
|
|
1972
|
+
# This parameter is required.
|
|
1881
1973
|
self.login_token = login_token
|
|
1882
1974
|
self.max_results = max_results
|
|
1883
1975
|
self.next_token = next_token
|
|
1976
|
+
# This parameter is required.
|
|
1884
1977
|
self.region_id = region_id
|
|
1885
1978
|
self.session_id = session_id
|
|
1886
1979
|
self.snapshot_id = snapshot_id
|
|
@@ -2119,12 +2212,17 @@ class EncryptPasswordRequest(TeaModel):
|
|
|
2119
2212
|
region_id: str = None,
|
|
2120
2213
|
session_id: str = None,
|
|
2121
2214
|
):
|
|
2215
|
+
# This parameter is required.
|
|
2122
2216
|
self.client_id = client_id
|
|
2123
2217
|
self.directory_id = directory_id
|
|
2218
|
+
# This parameter is required.
|
|
2124
2219
|
self.login_token = login_token
|
|
2125
2220
|
self.office_site_id = office_site_id
|
|
2221
|
+
# This parameter is required.
|
|
2126
2222
|
self.password = password
|
|
2223
|
+
# This parameter is required.
|
|
2127
2224
|
self.region_id = region_id
|
|
2225
|
+
# This parameter is required.
|
|
2128
2226
|
self.session_id = session_id
|
|
2129
2227
|
|
|
2130
2228
|
def validate(self):
|
|
@@ -2447,14 +2545,17 @@ class GetConnectionTicketRequest(TeaModel):
|
|
|
2447
2545
|
task_id: str = None,
|
|
2448
2546
|
uuid: str = None,
|
|
2449
2547
|
):
|
|
2548
|
+
# This parameter is required.
|
|
2450
2549
|
self.client_id = client_id
|
|
2451
2550
|
self.client_os = client_os
|
|
2452
2551
|
self.client_type = client_type
|
|
2453
2552
|
self.client_version = client_version
|
|
2454
2553
|
self.command_content = command_content
|
|
2455
2554
|
self.desktop_id = desktop_id
|
|
2555
|
+
# This parameter is required.
|
|
2456
2556
|
self.login_token = login_token
|
|
2457
2557
|
self.owner_id = owner_id
|
|
2558
|
+
# This parameter is required.
|
|
2458
2559
|
self.region_id = region_id
|
|
2459
2560
|
self.resource_owner_account = resource_owner_account
|
|
2460
2561
|
self.resource_owner_id = resource_owner_id
|
|
@@ -2657,23 +2758,37 @@ class GetLoginTokenRequest(TeaModel):
|
|
|
2657
2758
|
# The verification code that is generated by the virtual MFA device. This parameter is required if you set `CurrentStage` to `MFAVerify`.
|
|
2658
2759
|
self.authentication_code = authentication_code
|
|
2659
2760
|
# The ID of the Alibaba Cloud Workspace client. The system generates a unique ID for each client.
|
|
2761
|
+
#
|
|
2762
|
+
# This parameter is required.
|
|
2660
2763
|
self.client_id = client_id
|
|
2661
|
-
# The OS
|
|
2764
|
+
# The operating system (OS) of the device that runs an Alibaba Cloud Workspace client.
|
|
2662
2765
|
self.client_os = client_os
|
|
2663
|
-
# The type of
|
|
2766
|
+
# The type of Alibaba Cloud Workspace clients.
|
|
2767
|
+
#
|
|
2768
|
+
# Valid values:
|
|
2769
|
+
#
|
|
2770
|
+
# * HTML5: web client.
|
|
2771
|
+
#
|
|
2772
|
+
# * WINDOWS: Windows client.
|
|
2773
|
+
#
|
|
2774
|
+
# * MACOS: macOS client.
|
|
2775
|
+
#
|
|
2776
|
+
# * IOS: iOS client.
|
|
2777
|
+
#
|
|
2778
|
+
# * ANDROID: Android client.
|
|
2664
2779
|
self.client_type = client_type
|
|
2665
2780
|
# The version of the client. When you use an Alibaba Cloud Workspace client, you can view the client version in the **About** dialog box on the client logon page.
|
|
2666
2781
|
self.client_version = client_version
|
|
2667
2782
|
# The logon authentication stage. Valid values:
|
|
2668
2783
|
#
|
|
2669
2784
|
# * `ADPassword`: the stage to verify the identity of the Active Directory (AD) user. You must specify the value when the system verifies the identity of a convenience account or an AD account.
|
|
2670
|
-
# * `MFABind
|
|
2671
|
-
# * `MFAVerify
|
|
2672
|
-
# * `TokenVerify`: the stage to perform two-factor authentication
|
|
2785
|
+
# * `MFABind: the stage to bind a virtual multi-factor authentication (MFA) device.`
|
|
2786
|
+
# * `MFAVerify: the stage to verify the verification code that is generated by the virtual MFA device.`
|
|
2787
|
+
# * `TokenVerify`: the stage to perform two-factor authentication on an Alibaba Cloud Workspace client (hereinafter referred to as the client).
|
|
2673
2788
|
# * `ChangePassword`: the stage to change the password of the user.
|
|
2674
|
-
# * `
|
|
2789
|
+
# * `KeepAliveVerify`: the stage to obtain LoginToken if KeepAliveToken is valid.
|
|
2675
2790
|
self.current_stage = current_stage
|
|
2676
|
-
# The
|
|
2791
|
+
# The office network ID. This parameter has the same meaning as `OfficeSiteId`. We recommend that you replace `DirectoryId` with `OfficeSiteId`. You can specify a value for `DirectoryId` or `OfficeSiteId`.
|
|
2677
2792
|
self.directory_id = directory_id
|
|
2678
2793
|
# The name of the convenience user or the AD user. This parameter is required if you set `CurrentStage` to `ADPassword`.
|
|
2679
2794
|
self.end_user_id = end_user_id
|
|
@@ -2683,24 +2798,26 @@ class GetLoginTokenRequest(TeaModel):
|
|
|
2683
2798
|
# * true: Keep the user logged on to the client.
|
|
2684
2799
|
# * false: Do not keep the user logged on to the client.
|
|
2685
2800
|
self.keep_alive = keep_alive
|
|
2686
|
-
# The token
|
|
2801
|
+
# The token to keep logging on to an Alibaba Cloud Workspace client. When an end user logs on to the Alibaba Cloud Workspace client and select Auto Sign-in, `KeepAliveToken` is returned after you call this operation. Within the valid period of the returned token``, you can call the `GetLoginToken` operation and set `CurrentStage` to `KeepAliveVerify`. Then, you can obtain LoginToken. If you set `CurrentStage` to `KeepAliveVerify`, `KeepAliveToken` is required.
|
|
2687
2802
|
self.keep_alive_token = keep_alive_token
|
|
2688
2803
|
# The new password. This parameter is required if you set `CurrentStage` to `ChangePassword`.
|
|
2689
2804
|
self.new_password = new_password
|
|
2690
|
-
# The
|
|
2805
|
+
# The office network ID.
|
|
2691
2806
|
self.office_site_id = office_site_id
|
|
2692
2807
|
# The current password. This parameter is required if you set `CurrentStage` to `ChangePassword`.
|
|
2693
2808
|
self.old_password = old_password
|
|
2694
2809
|
# The password of the convenience user or the AD user. This parameter is required if you set `CurrentStage` to `ADPassword`.
|
|
2695
2810
|
self.password = password
|
|
2696
|
-
# The ID
|
|
2811
|
+
# The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/196646.html) operation to query the regions supported by EDS.
|
|
2812
|
+
#
|
|
2813
|
+
# This parameter is required.
|
|
2697
2814
|
self.region_id = region_id
|
|
2698
2815
|
# The ID of the session.
|
|
2699
2816
|
#
|
|
2700
2817
|
# * If the virtual multi-factor authentication (MFA) device is not bound or two-factor authentication is not enabled for the client, you do not need to specify a value for `SessionId`.
|
|
2701
2818
|
# * If the virtual MFA device is not bound or two-factor authentication is enabled for the client, you must specify a value for `SessionId` to verify the user identity after you specify a value for `ADPassword`. The value of the `SessionId` parameter is returned only if the CurrentStage parameter is set to `ADPassword` when you call the `GetLoginToken` operation.
|
|
2702
2819
|
self.session_id = session_id
|
|
2703
|
-
# If two-factor authentication is enabled
|
|
2820
|
+
# If two-factor authentication is enabled for Alibaba Cloud Workspace terminals in the EDS console and the system detects that the current logon user is exposed to risks, the system sends a verification code to the email address of the user. This parameter is required if you set `CurrentStage` to `TokenVerify`.
|
|
2704
2821
|
self.token_code = token_code
|
|
2705
2822
|
# The unique identifier of the client. When you use an Alibaba Cloud Workspace client, you can view the client version in the **About** dialog box on the client logon page.
|
|
2706
2823
|
self.uuid = uuid
|
|
@@ -2793,6 +2910,41 @@ class GetLoginTokenRequest(TeaModel):
|
|
|
2793
2910
|
return self
|
|
2794
2911
|
|
|
2795
2912
|
|
|
2913
|
+
class GetLoginTokenResponseBodyPasswordStrategy(TeaModel):
|
|
2914
|
+
def __init__(
|
|
2915
|
+
self,
|
|
2916
|
+
tenant_alternative_chars: List[str] = None,
|
|
2917
|
+
tenant_password_length: str = None,
|
|
2918
|
+
):
|
|
2919
|
+
# > This is a parameter only for internal use.
|
|
2920
|
+
self.tenant_alternative_chars = tenant_alternative_chars
|
|
2921
|
+
# > This is a parameter only for internal use.
|
|
2922
|
+
self.tenant_password_length = tenant_password_length
|
|
2923
|
+
|
|
2924
|
+
def validate(self):
|
|
2925
|
+
pass
|
|
2926
|
+
|
|
2927
|
+
def to_map(self):
|
|
2928
|
+
_map = super().to_map()
|
|
2929
|
+
if _map is not None:
|
|
2930
|
+
return _map
|
|
2931
|
+
|
|
2932
|
+
result = dict()
|
|
2933
|
+
if self.tenant_alternative_chars is not None:
|
|
2934
|
+
result['TenantAlternativeChars'] = self.tenant_alternative_chars
|
|
2935
|
+
if self.tenant_password_length is not None:
|
|
2936
|
+
result['TenantPasswordLength'] = self.tenant_password_length
|
|
2937
|
+
return result
|
|
2938
|
+
|
|
2939
|
+
def from_map(self, m: dict = None):
|
|
2940
|
+
m = m or dict()
|
|
2941
|
+
if m.get('TenantAlternativeChars') is not None:
|
|
2942
|
+
self.tenant_alternative_chars = m.get('TenantAlternativeChars')
|
|
2943
|
+
if m.get('TenantPasswordLength') is not None:
|
|
2944
|
+
self.tenant_password_length = m.get('TenantPasswordLength')
|
|
2945
|
+
return self
|
|
2946
|
+
|
|
2947
|
+
|
|
2796
2948
|
class GetLoginTokenResponseBodyRiskVerifyInfo(TeaModel):
|
|
2797
2949
|
def __init__(
|
|
2798
2950
|
self,
|
|
@@ -2801,9 +2953,13 @@ class GetLoginTokenResponseBodyRiskVerifyInfo(TeaModel):
|
|
|
2801
2953
|
locked: str = None,
|
|
2802
2954
|
phone: str = None,
|
|
2803
2955
|
):
|
|
2956
|
+
# The email used for authentication.
|
|
2804
2957
|
self.email = email
|
|
2958
|
+
# The duration of the lock.
|
|
2805
2959
|
self.last_lock_duration = last_lock_duration
|
|
2960
|
+
# Whether the account is locked or not.
|
|
2806
2961
|
self.locked = locked
|
|
2962
|
+
# The mobile number used for authentication.
|
|
2807
2963
|
self.phone = phone
|
|
2808
2964
|
|
|
2809
2965
|
def validate(self):
|
|
@@ -2848,9 +3004,11 @@ class GetLoginTokenResponseBody(TeaModel):
|
|
|
2848
3004
|
label: str = None,
|
|
2849
3005
|
login_token: str = None,
|
|
2850
3006
|
next_stage: str = None,
|
|
3007
|
+
password_strategy: GetLoginTokenResponseBodyPasswordStrategy = None,
|
|
2851
3008
|
phone: str = None,
|
|
2852
3009
|
props: Dict[str, str] = None,
|
|
2853
3010
|
qr_code_png: str = None,
|
|
3011
|
+
reason: str = None,
|
|
2854
3012
|
request_id: str = None,
|
|
2855
3013
|
risk_verify_info: GetLoginTokenResponseBodyRiskVerifyInfo = None,
|
|
2856
3014
|
secret: str = None,
|
|
@@ -2873,10 +3031,12 @@ class GetLoginTokenResponseBody(TeaModel):
|
|
|
2873
3031
|
self.label = label
|
|
2874
3032
|
# The logon token.
|
|
2875
3033
|
self.login_token = login_token
|
|
2876
|
-
# The next stage that is expected to enter. For example,
|
|
3034
|
+
# The next stage that is expected to enter. For example, an administrator enables MFA in the EDS console. When an end user enters the password, that is, the end user completes the `ADPassword` stage, this parameter returns `MFAVerify`. This indicates that MFA is required.
|
|
2877
3035
|
#
|
|
2878
|
-
# >
|
|
3036
|
+
# > For more information about the authentication stages, see the `CurrentStage` parameter.
|
|
2879
3037
|
self.next_stage = next_stage
|
|
3038
|
+
# > This is a parameter only for internal use.
|
|
3039
|
+
self.password_strategy = password_strategy
|
|
2880
3040
|
# Enter the mobile number of the convenience user. For an AD user, null is returned.
|
|
2881
3041
|
self.phone = phone
|
|
2882
3042
|
# > This is a parameter only for internal use.
|
|
@@ -2885,8 +3045,11 @@ class GetLoginTokenResponseBody(TeaModel):
|
|
|
2885
3045
|
#
|
|
2886
3046
|
# > For more information about each authentication stage, see the parameter description of the request parameter `CurrentStage`.
|
|
2887
3047
|
self.qr_code_png = qr_code_png
|
|
3048
|
+
# > This is a parameter only for internal use.
|
|
3049
|
+
self.reason = reason
|
|
2888
3050
|
# The ID of the request.
|
|
2889
3051
|
self.request_id = request_id
|
|
3052
|
+
# Risk identification information regarding the signin process.
|
|
2890
3053
|
self.risk_verify_info = risk_verify_info
|
|
2891
3054
|
# The key that is generated when you bind the virtual MFA device. This parameter is required when the CurrentStage parameter is set to `MFABind`.
|
|
2892
3055
|
#
|
|
@@ -2902,6 +3065,8 @@ class GetLoginTokenResponseBody(TeaModel):
|
|
|
2902
3065
|
self.window_display_mode = window_display_mode
|
|
2903
3066
|
|
|
2904
3067
|
def validate(self):
|
|
3068
|
+
if self.password_strategy:
|
|
3069
|
+
self.password_strategy.validate()
|
|
2905
3070
|
if self.risk_verify_info:
|
|
2906
3071
|
self.risk_verify_info.validate()
|
|
2907
3072
|
|
|
@@ -2925,12 +3090,16 @@ class GetLoginTokenResponseBody(TeaModel):
|
|
|
2925
3090
|
result['LoginToken'] = self.login_token
|
|
2926
3091
|
if self.next_stage is not None:
|
|
2927
3092
|
result['NextStage'] = self.next_stage
|
|
3093
|
+
if self.password_strategy is not None:
|
|
3094
|
+
result['PasswordStrategy'] = self.password_strategy.to_map()
|
|
2928
3095
|
if self.phone is not None:
|
|
2929
3096
|
result['Phone'] = self.phone
|
|
2930
3097
|
if self.props is not None:
|
|
2931
3098
|
result['Props'] = self.props
|
|
2932
3099
|
if self.qr_code_png is not None:
|
|
2933
3100
|
result['QrCodePng'] = self.qr_code_png
|
|
3101
|
+
if self.reason is not None:
|
|
3102
|
+
result['Reason'] = self.reason
|
|
2934
3103
|
if self.request_id is not None:
|
|
2935
3104
|
result['RequestId'] = self.request_id
|
|
2936
3105
|
if self.risk_verify_info is not None:
|
|
@@ -2961,12 +3130,17 @@ class GetLoginTokenResponseBody(TeaModel):
|
|
|
2961
3130
|
self.login_token = m.get('LoginToken')
|
|
2962
3131
|
if m.get('NextStage') is not None:
|
|
2963
3132
|
self.next_stage = m.get('NextStage')
|
|
3133
|
+
if m.get('PasswordStrategy') is not None:
|
|
3134
|
+
temp_model = GetLoginTokenResponseBodyPasswordStrategy()
|
|
3135
|
+
self.password_strategy = temp_model.from_map(m['PasswordStrategy'])
|
|
2964
3136
|
if m.get('Phone') is not None:
|
|
2965
3137
|
self.phone = m.get('Phone')
|
|
2966
3138
|
if m.get('Props') is not None:
|
|
2967
3139
|
self.props = m.get('Props')
|
|
2968
3140
|
if m.get('QrCodePng') is not None:
|
|
2969
3141
|
self.qr_code_png = m.get('QrCodePng')
|
|
3142
|
+
if m.get('Reason') is not None:
|
|
3143
|
+
self.reason = m.get('Reason')
|
|
2970
3144
|
if m.get('RequestId') is not None:
|
|
2971
3145
|
self.request_id = m.get('RequestId')
|
|
2972
3146
|
if m.get('RiskVerifyInfo') is not None:
|
|
@@ -3031,6 +3205,7 @@ class IsKeepAliveRequest(TeaModel):
|
|
|
3031
3205
|
office_site_id: str = None,
|
|
3032
3206
|
region_id: str = None,
|
|
3033
3207
|
):
|
|
3208
|
+
# This parameter is required.
|
|
3034
3209
|
self.client_id = client_id
|
|
3035
3210
|
self.office_site_id = office_site_id
|
|
3036
3211
|
self.region_id = region_id
|
|
@@ -3306,23 +3481,30 @@ class RebootDesktopsRequest(TeaModel):
|
|
|
3306
3481
|
uuid: str = None,
|
|
3307
3482
|
):
|
|
3308
3483
|
# The client ID. The system generates a unique ID for each client.
|
|
3484
|
+
#
|
|
3485
|
+
# This parameter is required.
|
|
3309
3486
|
self.client_id = client_id
|
|
3310
3487
|
# The operating system (OS) of the device that runs the Alibaba Cloud Workspace client (hereinafter referred to as WUYING client).
|
|
3311
3488
|
self.client_os = client_os
|
|
3312
|
-
# The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How do I ensure the idempotence of a request?](
|
|
3489
|
+
# The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How do I ensure the idempotence of a request?](https://help.aliyun.com/document_detail/25693.html)
|
|
3313
3490
|
self.client_token = client_token
|
|
3314
3491
|
# The client version. If you use a WUYING client, you can view the client version in the **About** dialog box on the client logon page.
|
|
3315
3492
|
self.client_version = client_version
|
|
3316
3493
|
# The IDs of the cloud computers. You can specify the IDs of 1 to 20 cloud computers.
|
|
3494
|
+
#
|
|
3495
|
+
# This parameter is required.
|
|
3317
3496
|
self.desktop_id = desktop_id
|
|
3318
3497
|
# The logon token.
|
|
3319
3498
|
self.login_token = login_token
|
|
3320
|
-
# The region ID. You can call the [DescribeRegions](
|
|
3499
|
+
# The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/196646.html) operation to query the regions supported by WUYING Workspace.
|
|
3500
|
+
#
|
|
3501
|
+
# This parameter is required.
|
|
3321
3502
|
self.region_id = region_id
|
|
3322
3503
|
# The session ID.
|
|
3323
3504
|
self.session_id = session_id
|
|
3324
3505
|
# The logon token.
|
|
3325
3506
|
self.session_token = session_token
|
|
3507
|
+
# The UUID of the client.
|
|
3326
3508
|
self.uuid = uuid
|
|
3327
3509
|
|
|
3328
3510
|
def validate(self):
|
|
@@ -3461,11 +3643,15 @@ class RefreshLoginTokenRequest(TeaModel):
|
|
|
3461
3643
|
region_id: str = None,
|
|
3462
3644
|
session_id: str = None,
|
|
3463
3645
|
):
|
|
3646
|
+
# This parameter is required.
|
|
3464
3647
|
self.client_id = client_id
|
|
3465
3648
|
self.directory_id = directory_id
|
|
3649
|
+
# This parameter is required.
|
|
3466
3650
|
self.end_user_id = end_user_id
|
|
3651
|
+
# This parameter is required.
|
|
3467
3652
|
self.login_token = login_token
|
|
3468
3653
|
self.office_site_id = office_site_id
|
|
3654
|
+
# This parameter is required.
|
|
3469
3655
|
self.region_id = region_id
|
|
3470
3656
|
self.session_id = session_id
|
|
3471
3657
|
|
|
@@ -3711,10 +3897,15 @@ class ReportSessionStatusRequest(TeaModel):
|
|
|
3711
3897
|
session_status: str = None,
|
|
3712
3898
|
):
|
|
3713
3899
|
self.end_user_id = end_user_id
|
|
3900
|
+
# This parameter is required.
|
|
3714
3901
|
self.instance_id = instance_id
|
|
3902
|
+
# This parameter is required.
|
|
3715
3903
|
self.region_id = region_id
|
|
3904
|
+
# This parameter is required.
|
|
3716
3905
|
self.session_change_time = session_change_time
|
|
3906
|
+
# This parameter is required.
|
|
3717
3907
|
self.session_id = session_id
|
|
3908
|
+
# This parameter is required.
|
|
3718
3909
|
self.session_status = session_status
|
|
3719
3910
|
|
|
3720
3911
|
def validate(self):
|
|
@@ -3836,11 +4027,15 @@ class ResetPasswordRequest(TeaModel):
|
|
|
3836
4027
|
region_id: str = None,
|
|
3837
4028
|
phone: str = None,
|
|
3838
4029
|
):
|
|
4030
|
+
# This parameter is required.
|
|
3839
4031
|
self.client_id = client_id
|
|
3840
4032
|
self.client_token = client_token
|
|
3841
4033
|
self.email = email
|
|
4034
|
+
# This parameter is required.
|
|
3842
4035
|
self.end_user_id = end_user_id
|
|
4036
|
+
# This parameter is required.
|
|
3843
4037
|
self.office_site_id = office_site_id
|
|
4038
|
+
# This parameter is required.
|
|
3844
4039
|
self.region_id = region_id
|
|
3845
4040
|
self.phone = phone
|
|
3846
4041
|
|
|
@@ -3965,10 +4160,14 @@ class ResetSnapshotRequest(TeaModel):
|
|
|
3965
4160
|
session_id: str = None,
|
|
3966
4161
|
snapshot_id: str = None,
|
|
3967
4162
|
):
|
|
4163
|
+
# This parameter is required.
|
|
3968
4164
|
self.client_id = client_id
|
|
4165
|
+
# This parameter is required.
|
|
3969
4166
|
self.login_token = login_token
|
|
4167
|
+
# This parameter is required.
|
|
3970
4168
|
self.region_id = region_id
|
|
3971
4169
|
self.session_id = session_id
|
|
4170
|
+
# This parameter is required.
|
|
3972
4171
|
self.snapshot_id = snapshot_id
|
|
3973
4172
|
|
|
3974
4173
|
def validate(self):
|
|
@@ -4087,6 +4286,7 @@ class SendTokenCodeRequest(TeaModel):
|
|
|
4087
4286
|
session_id: str = None,
|
|
4088
4287
|
token_code: str = None,
|
|
4089
4288
|
):
|
|
4289
|
+
# This parameter is required.
|
|
4090
4290
|
self.client_id = client_id
|
|
4091
4291
|
self.client_os = client_os
|
|
4092
4292
|
self.client_version = client_version
|
|
@@ -4226,15 +4426,20 @@ class SetFingerPrintTemplateRequest(TeaModel):
|
|
|
4226
4426
|
region_id: str = None,
|
|
4227
4427
|
session_id: str = None,
|
|
4228
4428
|
):
|
|
4429
|
+
# This parameter is required.
|
|
4229
4430
|
self.client_id = client_id
|
|
4230
4431
|
self.client_token = client_token
|
|
4231
4432
|
self.description = description
|
|
4232
4433
|
self.encrypted_finger_print_template = encrypted_finger_print_template
|
|
4233
4434
|
self.encrypted_key = encrypted_key
|
|
4234
4435
|
self.finger_print_template = finger_print_template
|
|
4436
|
+
# This parameter is required.
|
|
4235
4437
|
self.login_token = login_token
|
|
4438
|
+
# This parameter is required.
|
|
4236
4439
|
self.password = password
|
|
4440
|
+
# This parameter is required.
|
|
4237
4441
|
self.region_id = region_id
|
|
4442
|
+
# This parameter is required.
|
|
4238
4443
|
self.session_id = session_id
|
|
4239
4444
|
|
|
4240
4445
|
def validate(self):
|
|
@@ -4384,12 +4589,18 @@ class SetFingerPrintTemplateDescriptionRequest(TeaModel):
|
|
|
4384
4589
|
region_id: str = None,
|
|
4385
4590
|
session_id: str = None,
|
|
4386
4591
|
):
|
|
4592
|
+
# This parameter is required.
|
|
4387
4593
|
self.client_id = client_id
|
|
4388
4594
|
self.client_token = client_token
|
|
4595
|
+
# This parameter is required.
|
|
4389
4596
|
self.description = description
|
|
4597
|
+
# This parameter is required.
|
|
4390
4598
|
self.index = index
|
|
4599
|
+
# This parameter is required.
|
|
4391
4600
|
self.login_token = login_token
|
|
4601
|
+
# This parameter is required.
|
|
4392
4602
|
self.region_id = region_id
|
|
4603
|
+
# This parameter is required.
|
|
4393
4604
|
self.session_id = session_id
|
|
4394
4605
|
|
|
4395
4606
|
def validate(self):
|
|
@@ -4518,21 +4729,30 @@ class StartDesktopsRequest(TeaModel):
|
|
|
4518
4729
|
uuid: str = None,
|
|
4519
4730
|
):
|
|
4520
4731
|
# The ID of the Alibaba Cloud Workspace client (hereinafter referred to as WUYING client). The system generates a unique ID for each client.
|
|
4732
|
+
#
|
|
4733
|
+
# This parameter is required.
|
|
4521
4734
|
self.client_id = client_id
|
|
4522
4735
|
# The operating system (OS) of the device that run the client.
|
|
4523
4736
|
self.client_os = client_os
|
|
4524
|
-
# The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](
|
|
4737
|
+
# The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](https://help.aliyun.com/document_detail/25693.html).
|
|
4525
4738
|
self.client_token = client_token
|
|
4526
4739
|
# The client version. If you use a WUYING client, you can click **About** on the client logon page to view the version of the client.
|
|
4527
4740
|
self.client_version = client_version
|
|
4528
4741
|
# The IDs of the cloud computers. You can specify the IDs of 1 to 20 cloud computers.
|
|
4742
|
+
#
|
|
4743
|
+
# This parameter is required.
|
|
4529
4744
|
self.desktop_id = desktop_id
|
|
4530
4745
|
# The logon token.
|
|
4746
|
+
#
|
|
4747
|
+
# This parameter is required.
|
|
4531
4748
|
self.login_token = login_token
|
|
4532
|
-
# The region ID. You can call the [DescribeRegions](
|
|
4749
|
+
# The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/196646.html) operation to query the regions supported by WUYING Workspace.
|
|
4750
|
+
#
|
|
4751
|
+
# This parameter is required.
|
|
4533
4752
|
self.region_id = region_id
|
|
4534
4753
|
# The session ID.
|
|
4535
4754
|
self.session_id = session_id
|
|
4755
|
+
# The UUID of the client.
|
|
4536
4756
|
self.uuid = uuid
|
|
4537
4757
|
|
|
4538
4758
|
def validate(self):
|
|
@@ -4668,13 +4888,18 @@ class StartRecordContentRequest(TeaModel):
|
|
|
4668
4888
|
region_id: str = None,
|
|
4669
4889
|
session_id: str = None,
|
|
4670
4890
|
):
|
|
4891
|
+
# This parameter is required.
|
|
4671
4892
|
self.client_id = client_id
|
|
4672
4893
|
self.client_os = client_os
|
|
4673
4894
|
self.client_version = client_version
|
|
4895
|
+
# This parameter is required.
|
|
4674
4896
|
self.desktop_id = desktop_id
|
|
4675
4897
|
self.file_path = file_path
|
|
4898
|
+
# This parameter is required.
|
|
4676
4899
|
self.login_token = login_token
|
|
4900
|
+
# This parameter is required.
|
|
4677
4901
|
self.region_id = region_id
|
|
4902
|
+
# This parameter is required.
|
|
4678
4903
|
self.session_id = session_id
|
|
4679
4904
|
|
|
4680
4905
|
def validate(self):
|
|
@@ -4807,18 +5032,24 @@ class StopDesktopsRequest(TeaModel):
|
|
|
4807
5032
|
session_token: str = None,
|
|
4808
5033
|
):
|
|
4809
5034
|
# The client ID. The system generates a unique ID for each client.
|
|
5035
|
+
#
|
|
5036
|
+
# This parameter is required.
|
|
4810
5037
|
self.client_id = client_id
|
|
4811
5038
|
# The operating system (OS) of the device that runs the Alibaba Cloud Workspace client (hereinafter referred to as WUYING client).
|
|
4812
5039
|
self.client_os = client_os
|
|
4813
|
-
# The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How do I ensure the idempotence of a request?](
|
|
5040
|
+
# The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How do I ensure the idempotence of a request?](https://help.aliyun.com/document_detail/25693.html)
|
|
4814
5041
|
self.client_token = client_token
|
|
4815
5042
|
# The client version. If you use a WUYING client, you can view the client version in the **About** dialog box on the client logon page.
|
|
4816
5043
|
self.client_version = client_version
|
|
4817
5044
|
# The IDs of the cloud computers. You can specify the IDs of 1 to 20 cloud computers.
|
|
5045
|
+
#
|
|
5046
|
+
# This parameter is required.
|
|
4818
5047
|
self.desktop_id = desktop_id
|
|
4819
5048
|
# The logon token.
|
|
4820
5049
|
self.login_token = login_token
|
|
4821
|
-
# The region ID. You can call the [DescribeRegions](
|
|
5050
|
+
# The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/196646.html) operation to query the regions supported by WUYING Workspace.
|
|
5051
|
+
#
|
|
5052
|
+
# This parameter is required.
|
|
4822
5053
|
self.region_id = region_id
|
|
4823
5054
|
# The session ID.
|
|
4824
5055
|
self.session_id = session_id
|
|
@@ -4957,12 +5188,17 @@ class StopRecordContentRequest(TeaModel):
|
|
|
4957
5188
|
region_id: str = None,
|
|
4958
5189
|
session_id: str = None,
|
|
4959
5190
|
):
|
|
5191
|
+
# This parameter is required.
|
|
4960
5192
|
self.client_id = client_id
|
|
4961
5193
|
self.client_os = client_os
|
|
4962
5194
|
self.client_version = client_version
|
|
5195
|
+
# This parameter is required.
|
|
4963
5196
|
self.desktop_id = desktop_id
|
|
5197
|
+
# This parameter is required.
|
|
4964
5198
|
self.login_token = login_token
|
|
5199
|
+
# This parameter is required.
|
|
4965
5200
|
self.region_id = region_id
|
|
5201
|
+
# This parameter is required.
|
|
4966
5202
|
self.session_id = session_id
|
|
4967
5203
|
|
|
4968
5204
|
def validate(self):
|
|
@@ -5088,12 +5324,17 @@ class UnbindUserDesktopRequest(TeaModel):
|
|
|
5088
5324
|
session_id: str = None,
|
|
5089
5325
|
user_desktop_id: str = None,
|
|
5090
5326
|
):
|
|
5327
|
+
# This parameter is required.
|
|
5091
5328
|
self.client_id = client_id
|
|
5092
5329
|
self.client_type = client_type
|
|
5093
5330
|
self.force = force
|
|
5331
|
+
# This parameter is required.
|
|
5094
5332
|
self.login_token = login_token
|
|
5333
|
+
# This parameter is required.
|
|
5095
5334
|
self.region_id = region_id
|
|
5335
|
+
# This parameter is required.
|
|
5096
5336
|
self.session_id = session_id
|
|
5337
|
+
# This parameter is required.
|
|
5097
5338
|
self.user_desktop_id = user_desktop_id
|
|
5098
5339
|
|
|
5099
5340
|
def validate(self):
|
|
@@ -5220,12 +5461,17 @@ class VerifyCredentialRequest(TeaModel):
|
|
|
5220
5461
|
region_id: str = None,
|
|
5221
5462
|
session_id: str = None,
|
|
5222
5463
|
):
|
|
5464
|
+
# This parameter is required.
|
|
5223
5465
|
self.client_id = client_id
|
|
5466
|
+
# This parameter is required.
|
|
5224
5467
|
self.credential = credential
|
|
5225
5468
|
self.credential_type = credential_type
|
|
5226
5469
|
self.encrypted_key = encrypted_key
|
|
5470
|
+
# This parameter is required.
|
|
5227
5471
|
self.login_token = login_token
|
|
5472
|
+
# This parameter is required.
|
|
5228
5473
|
self.office_site_id = office_site_id
|
|
5474
|
+
# This parameter is required.
|
|
5229
5475
|
self.region_id = region_id
|
|
5230
5476
|
self.session_id = session_id
|
|
5231
5477
|
|