alibabacloud-ecd20201002 1.2.5__py3-none-any.whl → 1.2.6__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.
@@ -1 +1 @@
1
- __version__ = '1.2.5'
1
+ __version__ = '1.2.6'
@@ -1660,20 +1660,26 @@ class Client(OpenApiClient):
1660
1660
 
1661
1661
  def get_login_token_with_options(
1662
1662
  self,
1663
- request: ecd_20201002_models.GetLoginTokenRequest,
1663
+ tmp_req: ecd_20201002_models.GetLoginTokenRequest,
1664
1664
  runtime: util_models.RuntimeOptions,
1665
1665
  ) -> ecd_20201002_models.GetLoginTokenResponse:
1666
1666
  """
1667
1667
  @summary Obtains logon credentials.
1668
1668
 
1669
- @param request: GetLoginTokenRequest
1669
+ @param tmp_req: GetLoginTokenRequest
1670
1670
  @param runtime: runtime options for this request RuntimeOptions
1671
1671
  @return: GetLoginTokenResponse
1672
1672
  """
1673
- UtilClient.validate_model(request)
1673
+ UtilClient.validate_model(tmp_req)
1674
+ request = ecd_20201002_models.GetLoginTokenShrinkRequest()
1675
+ OpenApiUtilClient.convert(tmp_req, request)
1676
+ if not UtilClient.is_unset(tmp_req.available_features):
1677
+ request.available_features_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.available_features, 'AvailableFeatures', 'json')
1674
1678
  query = {}
1675
1679
  if not UtilClient.is_unset(request.authentication_code):
1676
1680
  query['AuthenticationCode'] = request.authentication_code
1681
+ if not UtilClient.is_unset(request.available_features_shrink):
1682
+ query['AvailableFeatures'] = request.available_features_shrink
1677
1683
  if not UtilClient.is_unset(request.client_id):
1678
1684
  query['ClientId'] = request.client_id
1679
1685
  if not UtilClient.is_unset(request.client_os):
@@ -1729,20 +1735,26 @@ class Client(OpenApiClient):
1729
1735
 
1730
1736
  async def get_login_token_with_options_async(
1731
1737
  self,
1732
- request: ecd_20201002_models.GetLoginTokenRequest,
1738
+ tmp_req: ecd_20201002_models.GetLoginTokenRequest,
1733
1739
  runtime: util_models.RuntimeOptions,
1734
1740
  ) -> ecd_20201002_models.GetLoginTokenResponse:
1735
1741
  """
1736
1742
  @summary Obtains logon credentials.
1737
1743
 
1738
- @param request: GetLoginTokenRequest
1744
+ @param tmp_req: GetLoginTokenRequest
1739
1745
  @param runtime: runtime options for this request RuntimeOptions
1740
1746
  @return: GetLoginTokenResponse
1741
1747
  """
1742
- UtilClient.validate_model(request)
1748
+ UtilClient.validate_model(tmp_req)
1749
+ request = ecd_20201002_models.GetLoginTokenShrinkRequest()
1750
+ OpenApiUtilClient.convert(tmp_req, request)
1751
+ if not UtilClient.is_unset(tmp_req.available_features):
1752
+ request.available_features_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.available_features, 'AvailableFeatures', 'json')
1743
1753
  query = {}
1744
1754
  if not UtilClient.is_unset(request.authentication_code):
1745
1755
  query['AuthenticationCode'] = request.authentication_code
1756
+ if not UtilClient.is_unset(request.available_features_shrink):
1757
+ query['AvailableFeatures'] = request.available_features_shrink
1746
1758
  if not UtilClient.is_unset(request.client_id):
1747
1759
  query['ClientId'] = request.client_id
1748
1760
  if not UtilClient.is_unset(request.client_os):
@@ -3959,6 +3959,7 @@ class GetLoginTokenRequest(TeaModel):
3959
3959
  def __init__(
3960
3960
  self,
3961
3961
  authentication_code: str = None,
3962
+ available_features: Dict[str, str] = None,
3962
3963
  client_id: str = None,
3963
3964
  client_os: str = None,
3964
3965
  client_type: str = None,
@@ -3979,6 +3980,7 @@ class GetLoginTokenRequest(TeaModel):
3979
3980
  ):
3980
3981
  # The verification code that is generated by the virtual MFA device. This parameter is required if you set `CurrentStage` to `MFAVerify`.
3981
3982
  self.authentication_code = authentication_code
3983
+ self.available_features = available_features
3982
3984
  # The ID of the Alibaba Cloud Workspace client. The system generates a unique ID for each client.
3983
3985
  #
3984
3986
  # This parameter is required.
@@ -4055,6 +4057,8 @@ class GetLoginTokenRequest(TeaModel):
4055
4057
  result = dict()
4056
4058
  if self.authentication_code is not None:
4057
4059
  result['AuthenticationCode'] = self.authentication_code
4060
+ if self.available_features is not None:
4061
+ result['AvailableFeatures'] = self.available_features
4058
4062
  if self.client_id is not None:
4059
4063
  result['ClientId'] = self.client_id
4060
4064
  if self.client_os is not None:
@@ -4095,6 +4099,191 @@ class GetLoginTokenRequest(TeaModel):
4095
4099
  m = m or dict()
4096
4100
  if m.get('AuthenticationCode') is not None:
4097
4101
  self.authentication_code = m.get('AuthenticationCode')
4102
+ if m.get('AvailableFeatures') is not None:
4103
+ self.available_features = m.get('AvailableFeatures')
4104
+ if m.get('ClientId') is not None:
4105
+ self.client_id = m.get('ClientId')
4106
+ if m.get('ClientOS') is not None:
4107
+ self.client_os = m.get('ClientOS')
4108
+ if m.get('ClientType') is not None:
4109
+ self.client_type = m.get('ClientType')
4110
+ if m.get('ClientVersion') is not None:
4111
+ self.client_version = m.get('ClientVersion')
4112
+ if m.get('CurrentStage') is not None:
4113
+ self.current_stage = m.get('CurrentStage')
4114
+ if m.get('DirectoryId') is not None:
4115
+ self.directory_id = m.get('DirectoryId')
4116
+ if m.get('EndUserId') is not None:
4117
+ self.end_user_id = m.get('EndUserId')
4118
+ if m.get('KeepAlive') is not None:
4119
+ self.keep_alive = m.get('KeepAlive')
4120
+ if m.get('KeepAliveToken') is not None:
4121
+ self.keep_alive_token = m.get('KeepAliveToken')
4122
+ if m.get('NewPassword') is not None:
4123
+ self.new_password = m.get('NewPassword')
4124
+ if m.get('OfficeSiteId') is not None:
4125
+ self.office_site_id = m.get('OfficeSiteId')
4126
+ if m.get('OldPassword') is not None:
4127
+ self.old_password = m.get('OldPassword')
4128
+ if m.get('Password') is not None:
4129
+ self.password = m.get('Password')
4130
+ if m.get('RegionId') is not None:
4131
+ self.region_id = m.get('RegionId')
4132
+ if m.get('SessionId') is not None:
4133
+ self.session_id = m.get('SessionId')
4134
+ if m.get('TokenCode') is not None:
4135
+ self.token_code = m.get('TokenCode')
4136
+ if m.get('Uuid') is not None:
4137
+ self.uuid = m.get('Uuid')
4138
+ return self
4139
+
4140
+
4141
+ class GetLoginTokenShrinkRequest(TeaModel):
4142
+ def __init__(
4143
+ self,
4144
+ authentication_code: str = None,
4145
+ available_features_shrink: str = None,
4146
+ client_id: str = None,
4147
+ client_os: str = None,
4148
+ client_type: str = None,
4149
+ client_version: str = None,
4150
+ current_stage: str = None,
4151
+ directory_id: str = None,
4152
+ end_user_id: str = None,
4153
+ keep_alive: bool = None,
4154
+ keep_alive_token: str = None,
4155
+ new_password: str = None,
4156
+ office_site_id: str = None,
4157
+ old_password: str = None,
4158
+ password: str = None,
4159
+ region_id: str = None,
4160
+ session_id: str = None,
4161
+ token_code: str = None,
4162
+ uuid: str = None,
4163
+ ):
4164
+ # The verification code that is generated by the virtual MFA device. This parameter is required if you set `CurrentStage` to `MFAVerify`.
4165
+ self.authentication_code = authentication_code
4166
+ self.available_features_shrink = available_features_shrink
4167
+ # The ID of the Alibaba Cloud Workspace client. The system generates a unique ID for each client.
4168
+ #
4169
+ # This parameter is required.
4170
+ self.client_id = client_id
4171
+ # The operating system (OS) of the device that runs an Alibaba Cloud Workspace client.
4172
+ self.client_os = client_os
4173
+ # The type of Alibaba Cloud Workspace clients.
4174
+ #
4175
+ # Valid values:
4176
+ #
4177
+ # * HTML5: web client.
4178
+ #
4179
+ # * WINDOWS: Windows client.
4180
+ #
4181
+ # * MACOS: macOS client.
4182
+ #
4183
+ # * IOS: iOS client.
4184
+ #
4185
+ # * ANDROID: Android client.
4186
+ self.client_type = client_type
4187
+ # 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.
4188
+ self.client_version = client_version
4189
+ # The logon authentication stage. Valid values:
4190
+ #
4191
+ # * `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.
4192
+ # * `MFABind: the stage to bind a virtual multi-factor authentication (MFA) device.`
4193
+ # * `MFAVerify: the stage to verify the verification code that is generated by the virtual MFA device.`
4194
+ # * `TokenVerify`: the stage to perform two-factor authentication on an Alibaba Cloud Workspace client (hereinafter referred to as the client).
4195
+ # * `ChangePassword`: the stage to change the password of the user.
4196
+ # * `KeepAliveVerify`: the stage to obtain LoginToken if KeepAliveToken is valid.
4197
+ self.current_stage = current_stage
4198
+ # 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`.
4199
+ self.directory_id = directory_id
4200
+ # The name of the convenience user or the AD user. This parameter is required if you set `CurrentStage` to `ADPassword`.
4201
+ self.end_user_id = end_user_id
4202
+ # Specifies whether to keep the user logged on to the client.
4203
+ # Valid values:
4204
+ # * null: Default value. Do not keep the user logged on to the client.
4205
+ # * true: Keep the user logged on to the client.
4206
+ # * false: Do not keep the user logged on to the client.
4207
+ self.keep_alive = keep_alive
4208
+ # 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.
4209
+ self.keep_alive_token = keep_alive_token
4210
+ # The new password. This parameter is required if you set `CurrentStage` to `ChangePassword`.
4211
+ self.new_password = new_password
4212
+ # The office network ID.
4213
+ self.office_site_id = office_site_id
4214
+ # The current password. This parameter is required if you set `CurrentStage` to `ChangePassword`.
4215
+ self.old_password = old_password
4216
+ # The password of the convenience user or the AD user. This parameter is required if you set `CurrentStage` to `ADPassword`.
4217
+ self.password = password
4218
+ # The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/196646.html) operation to query the regions supported by EDS.
4219
+ #
4220
+ # This parameter is required.
4221
+ self.region_id = region_id
4222
+ # The ID of the session.
4223
+ #
4224
+ # * 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`.
4225
+ # * 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.
4226
+ self.session_id = session_id
4227
+ # 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`.
4228
+ self.token_code = token_code
4229
+ # 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.
4230
+ self.uuid = uuid
4231
+
4232
+ def validate(self):
4233
+ pass
4234
+
4235
+ def to_map(self):
4236
+ _map = super().to_map()
4237
+ if _map is not None:
4238
+ return _map
4239
+
4240
+ result = dict()
4241
+ if self.authentication_code is not None:
4242
+ result['AuthenticationCode'] = self.authentication_code
4243
+ if self.available_features_shrink is not None:
4244
+ result['AvailableFeatures'] = self.available_features_shrink
4245
+ if self.client_id is not None:
4246
+ result['ClientId'] = self.client_id
4247
+ if self.client_os is not None:
4248
+ result['ClientOS'] = self.client_os
4249
+ if self.client_type is not None:
4250
+ result['ClientType'] = self.client_type
4251
+ if self.client_version is not None:
4252
+ result['ClientVersion'] = self.client_version
4253
+ if self.current_stage is not None:
4254
+ result['CurrentStage'] = self.current_stage
4255
+ if self.directory_id is not None:
4256
+ result['DirectoryId'] = self.directory_id
4257
+ if self.end_user_id is not None:
4258
+ result['EndUserId'] = self.end_user_id
4259
+ if self.keep_alive is not None:
4260
+ result['KeepAlive'] = self.keep_alive
4261
+ if self.keep_alive_token is not None:
4262
+ result['KeepAliveToken'] = self.keep_alive_token
4263
+ if self.new_password is not None:
4264
+ result['NewPassword'] = self.new_password
4265
+ if self.office_site_id is not None:
4266
+ result['OfficeSiteId'] = self.office_site_id
4267
+ if self.old_password is not None:
4268
+ result['OldPassword'] = self.old_password
4269
+ if self.password is not None:
4270
+ result['Password'] = self.password
4271
+ if self.region_id is not None:
4272
+ result['RegionId'] = self.region_id
4273
+ if self.session_id is not None:
4274
+ result['SessionId'] = self.session_id
4275
+ if self.token_code is not None:
4276
+ result['TokenCode'] = self.token_code
4277
+ if self.uuid is not None:
4278
+ result['Uuid'] = self.uuid
4279
+ return result
4280
+
4281
+ def from_map(self, m: dict = None):
4282
+ m = m or dict()
4283
+ if m.get('AuthenticationCode') is not None:
4284
+ self.authentication_code = m.get('AuthenticationCode')
4285
+ if m.get('AvailableFeatures') is not None:
4286
+ self.available_features_shrink = m.get('AvailableFeatures')
4098
4287
  if m.get('ClientId') is not None:
4099
4288
  self.client_id = m.get('ClientId')
4100
4289
  if m.get('ClientOS') is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-ecd20201002
3
- Version: 1.2.5
3
+ Version: 1.2.6
4
4
  Summary: Alibaba Cloud ecd (20201002) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -21,7 +21,7 @@ Classifier: Topic :: Software Development
21
21
  Requires-Python: >=3.6
22
22
  Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
- Requires-Dist: alibabacloud-endpoint-util (<1.0.0,>=0.0.3)
24
+ Requires-Dist: alibabacloud-endpoint-util (<1.0.0,>=0.0.4)
25
25
  Requires-Dist: alibabacloud-openapi-util (<1.0.0,>=0.2.2)
26
26
  Requires-Dist: alibabacloud-tea-openapi (<1.0.0,>=0.3.15)
27
27
  Requires-Dist: alibabacloud-tea-util (<1.0.0,>=0.3.13)
@@ -0,0 +1,8 @@
1
+ alibabacloud_ecd20201002/__init__.py,sha256=1ZS8nopf5ctF8pWPBpzcYaLWY0cclIirqv4-wZHlejU,21
2
+ alibabacloud_ecd20201002/client.py,sha256=WjK4OdoSeTHMXxGIpKAPrF_-N4O6FUyQu6Q-iTOT6LY,157682
3
+ alibabacloud_ecd20201002/models.py,sha256=kOxAZ3m0b7S00BjHrWsZ1eCEO13HNkkUtju5UfsoFjw,252446
4
+ alibabacloud_ecd20201002-1.2.6.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ alibabacloud_ecd20201002-1.2.6.dist-info/METADATA,sha256=hTMCepjNmmBSgMAuzlyppbtUPiWvHVDP1FUvPLDFc3A,2312
6
+ alibabacloud_ecd20201002-1.2.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ alibabacloud_ecd20201002-1.2.6.dist-info/top_level.txt,sha256=StSX710186VDYReoyBW7AC51spfR_S0-5CO0fZyRBCk,25
8
+ alibabacloud_ecd20201002-1.2.6.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- alibabacloud_ecd20201002/__init__.py,sha256=pgmbrfGeFBEMsmfSmbEnYS5dCf7QqXXgG9I36m6Tong,21
2
- alibabacloud_ecd20201002/client.py,sha256=QpzFWjiVW_YLey-qv_o6NVR2l41UyRXSMpJ8Nb69cIk,156704
3
- alibabacloud_ecd20201002/models.py,sha256=BbE5nGoMmfnCXIHAF9MSpW4cbExOfWRYqhg3OjhCJEU,242153
4
- alibabacloud_ecd20201002-1.2.5.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- alibabacloud_ecd20201002-1.2.5.dist-info/METADATA,sha256=FnUlQSUyVMb7qHsWt6Gkgkk-ssFXkRMkihFThDnyl6E,2312
6
- alibabacloud_ecd20201002-1.2.5.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- alibabacloud_ecd20201002-1.2.5.dist-info/top_level.txt,sha256=StSX710186VDYReoyBW7AC51spfR_S0-5CO0fZyRBCk,25
8
- alibabacloud_ecd20201002-1.2.5.dist-info/RECORD,,