tencentcloud-sdk-python-intl-en 3.0.1173__py2.py3-none-any.whl → 3.0.1175__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 tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/iap/__init__.py +0 -0
- tencentcloud/iap/v20240713/__init__.py +0 -0
- tencentcloud/iap/v20240713/errorcodes.py +48 -0
- tencentcloud/iap/v20240713/iap_client.py +164 -0
- tencentcloud/iap/v20240713/models.py +762 -0
- tencentcloud/intlpartnersmgt/v20220928/errorcodes.py +3 -0
- tencentcloud/intlpartnersmgt/v20220928/intlpartnersmgt_client.py +24 -0
- tencentcloud/intlpartnersmgt/v20220928/models.py +257 -0
- tencentcloud/privatedns/v20201028/models.py +4 -0
- {tencentcloud_sdk_python_intl_en-3.0.1173.dist-info → tencentcloud_sdk_python_intl_en-3.0.1175.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1173.dist-info → tencentcloud_sdk_python_intl_en-3.0.1175.dist-info}/RECORD +14 -9
- {tencentcloud_sdk_python_intl_en-3.0.1173.dist-info → tencentcloud_sdk_python_intl_en-3.0.1175.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1173.dist-info → tencentcloud_sdk_python_intl_en-3.0.1175.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,762 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import warnings
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class CreateIAPUserOIDCConfigRequest(AbstractModel):
|
|
22
|
+
"""CreateIAPUserOIDCConfig request structure.
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _IdentityUrl: OpenID Connect IdP URL. It corresponds to the value of the "issuer" field in the Openid-configuration provided by the enterprise IdP.
|
|
29
|
+
:type IdentityUrl: str
|
|
30
|
+
:param _ClientId: Client ID registered with the OpenID Connect IdP.
|
|
31
|
+
:type ClientId: str
|
|
32
|
+
:param _AuthorizationEndpoint: OpenID Connect IdP authorization endpoint. It corresponds to the value of the "authorization_endpoint" field in the Openid-configuration provided by the enterprise IdP.
|
|
33
|
+
:type AuthorizationEndpoint: str
|
|
34
|
+
:param _ResponseType: Authorization response type, which is always id_token.
|
|
35
|
+
:type ResponseType: str
|
|
36
|
+
:param _ResponseMode: Authorization response mode. Valid values: form_post (recommended); fragment.
|
|
37
|
+
:type ResponseMode: str
|
|
38
|
+
:param _MappingFiled: Mapping field name. It indicates which field in the id_token of the IdP is mapped to the username of a sub-user. It is usually the sub or name field.
|
|
39
|
+
:type MappingFiled: str
|
|
40
|
+
:param _IdentityKey: Signature public key, which is used to verify the OpenID Connect IdP's ID token and must be Base64-encoded. For the security of your account, we recommend you rotate it regularly.
|
|
41
|
+
:type IdentityKey: str
|
|
42
|
+
:param _Scope: Authorization information scope. Valid values: openid (default); email; profile.
|
|
43
|
+
:type Scope: list of str
|
|
44
|
+
:param _Description: Description
|
|
45
|
+
:type Description: str
|
|
46
|
+
"""
|
|
47
|
+
self._IdentityUrl = None
|
|
48
|
+
self._ClientId = None
|
|
49
|
+
self._AuthorizationEndpoint = None
|
|
50
|
+
self._ResponseType = None
|
|
51
|
+
self._ResponseMode = None
|
|
52
|
+
self._MappingFiled = None
|
|
53
|
+
self._IdentityKey = None
|
|
54
|
+
self._Scope = None
|
|
55
|
+
self._Description = None
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def IdentityUrl(self):
|
|
59
|
+
"""OpenID Connect IdP URL. It corresponds to the value of the "issuer" field in the Openid-configuration provided by the enterprise IdP.
|
|
60
|
+
:rtype: str
|
|
61
|
+
"""
|
|
62
|
+
return self._IdentityUrl
|
|
63
|
+
|
|
64
|
+
@IdentityUrl.setter
|
|
65
|
+
def IdentityUrl(self, IdentityUrl):
|
|
66
|
+
self._IdentityUrl = IdentityUrl
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def ClientId(self):
|
|
70
|
+
"""Client ID registered with the OpenID Connect IdP.
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._ClientId
|
|
74
|
+
|
|
75
|
+
@ClientId.setter
|
|
76
|
+
def ClientId(self, ClientId):
|
|
77
|
+
self._ClientId = ClientId
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def AuthorizationEndpoint(self):
|
|
81
|
+
"""OpenID Connect IdP authorization endpoint. It corresponds to the value of the "authorization_endpoint" field in the Openid-configuration provided by the enterprise IdP.
|
|
82
|
+
:rtype: str
|
|
83
|
+
"""
|
|
84
|
+
return self._AuthorizationEndpoint
|
|
85
|
+
|
|
86
|
+
@AuthorizationEndpoint.setter
|
|
87
|
+
def AuthorizationEndpoint(self, AuthorizationEndpoint):
|
|
88
|
+
self._AuthorizationEndpoint = AuthorizationEndpoint
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def ResponseType(self):
|
|
92
|
+
"""Authorization response type, which is always id_token.
|
|
93
|
+
:rtype: str
|
|
94
|
+
"""
|
|
95
|
+
return self._ResponseType
|
|
96
|
+
|
|
97
|
+
@ResponseType.setter
|
|
98
|
+
def ResponseType(self, ResponseType):
|
|
99
|
+
self._ResponseType = ResponseType
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def ResponseMode(self):
|
|
103
|
+
"""Authorization response mode. Valid values: form_post (recommended); fragment.
|
|
104
|
+
:rtype: str
|
|
105
|
+
"""
|
|
106
|
+
return self._ResponseMode
|
|
107
|
+
|
|
108
|
+
@ResponseMode.setter
|
|
109
|
+
def ResponseMode(self, ResponseMode):
|
|
110
|
+
self._ResponseMode = ResponseMode
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def MappingFiled(self):
|
|
114
|
+
"""Mapping field name. It indicates which field in the id_token of the IdP is mapped to the username of a sub-user. It is usually the sub or name field.
|
|
115
|
+
:rtype: str
|
|
116
|
+
"""
|
|
117
|
+
return self._MappingFiled
|
|
118
|
+
|
|
119
|
+
@MappingFiled.setter
|
|
120
|
+
def MappingFiled(self, MappingFiled):
|
|
121
|
+
self._MappingFiled = MappingFiled
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def IdentityKey(self):
|
|
125
|
+
"""Signature public key, which is used to verify the OpenID Connect IdP's ID token and must be Base64-encoded. For the security of your account, we recommend you rotate it regularly.
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._IdentityKey
|
|
129
|
+
|
|
130
|
+
@IdentityKey.setter
|
|
131
|
+
def IdentityKey(self, IdentityKey):
|
|
132
|
+
self._IdentityKey = IdentityKey
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def Scope(self):
|
|
136
|
+
"""Authorization information scope. Valid values: openid (default); email; profile.
|
|
137
|
+
:rtype: list of str
|
|
138
|
+
"""
|
|
139
|
+
return self._Scope
|
|
140
|
+
|
|
141
|
+
@Scope.setter
|
|
142
|
+
def Scope(self, Scope):
|
|
143
|
+
self._Scope = Scope
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def Description(self):
|
|
147
|
+
"""Description
|
|
148
|
+
:rtype: str
|
|
149
|
+
"""
|
|
150
|
+
return self._Description
|
|
151
|
+
|
|
152
|
+
@Description.setter
|
|
153
|
+
def Description(self, Description):
|
|
154
|
+
self._Description = Description
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def _deserialize(self, params):
|
|
158
|
+
self._IdentityUrl = params.get("IdentityUrl")
|
|
159
|
+
self._ClientId = params.get("ClientId")
|
|
160
|
+
self._AuthorizationEndpoint = params.get("AuthorizationEndpoint")
|
|
161
|
+
self._ResponseType = params.get("ResponseType")
|
|
162
|
+
self._ResponseMode = params.get("ResponseMode")
|
|
163
|
+
self._MappingFiled = params.get("MappingFiled")
|
|
164
|
+
self._IdentityKey = params.get("IdentityKey")
|
|
165
|
+
self._Scope = params.get("Scope")
|
|
166
|
+
self._Description = params.get("Description")
|
|
167
|
+
memeber_set = set(params.keys())
|
|
168
|
+
for name, value in vars(self).items():
|
|
169
|
+
property_name = name[1:]
|
|
170
|
+
if property_name in memeber_set:
|
|
171
|
+
memeber_set.remove(property_name)
|
|
172
|
+
if len(memeber_set) > 0:
|
|
173
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
class CreateIAPUserOIDCConfigResponse(AbstractModel):
|
|
178
|
+
"""CreateIAPUserOIDCConfig response structure.
|
|
179
|
+
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
def __init__(self):
|
|
183
|
+
r"""
|
|
184
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
185
|
+
:type RequestId: str
|
|
186
|
+
"""
|
|
187
|
+
self._RequestId = None
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def RequestId(self):
|
|
191
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
192
|
+
:rtype: str
|
|
193
|
+
"""
|
|
194
|
+
return self._RequestId
|
|
195
|
+
|
|
196
|
+
@RequestId.setter
|
|
197
|
+
def RequestId(self, RequestId):
|
|
198
|
+
self._RequestId = RequestId
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
def _deserialize(self, params):
|
|
202
|
+
self._RequestId = params.get("RequestId")
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
class DescribeIAPLoginSessionDurationRequest(AbstractModel):
|
|
206
|
+
"""DescribeIAPLoginSessionDuration request structure.
|
|
207
|
+
|
|
208
|
+
"""
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
class DescribeIAPLoginSessionDurationResponse(AbstractModel):
|
|
212
|
+
"""DescribeIAPLoginSessionDuration response structure.
|
|
213
|
+
|
|
214
|
+
"""
|
|
215
|
+
|
|
216
|
+
def __init__(self):
|
|
217
|
+
r"""
|
|
218
|
+
:param _Duration: Login session duration.
|
|
219
|
+
:type Duration: int
|
|
220
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
221
|
+
:type RequestId: str
|
|
222
|
+
"""
|
|
223
|
+
self._Duration = None
|
|
224
|
+
self._RequestId = None
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
def Duration(self):
|
|
228
|
+
"""Login session duration.
|
|
229
|
+
:rtype: int
|
|
230
|
+
"""
|
|
231
|
+
return self._Duration
|
|
232
|
+
|
|
233
|
+
@Duration.setter
|
|
234
|
+
def Duration(self, Duration):
|
|
235
|
+
self._Duration = Duration
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def RequestId(self):
|
|
239
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
240
|
+
:rtype: str
|
|
241
|
+
"""
|
|
242
|
+
return self._RequestId
|
|
243
|
+
|
|
244
|
+
@RequestId.setter
|
|
245
|
+
def RequestId(self, RequestId):
|
|
246
|
+
self._RequestId = RequestId
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
def _deserialize(self, params):
|
|
250
|
+
self._Duration = params.get("Duration")
|
|
251
|
+
self._RequestId = params.get("RequestId")
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
class DescribeIAPUserOIDCConfigRequest(AbstractModel):
|
|
255
|
+
"""DescribeIAPUserOIDCConfig request structure.
|
|
256
|
+
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
class DescribeIAPUserOIDCConfigResponse(AbstractModel):
|
|
261
|
+
"""DescribeIAPUserOIDCConfig response structure.
|
|
262
|
+
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
def __init__(self):
|
|
266
|
+
r"""
|
|
267
|
+
:param _ProviderType: IdP type. 13: IAP user OIDC IdP.
|
|
268
|
+
:type ProviderType: int
|
|
269
|
+
:param _IdentityUrl: IdP URL.
|
|
270
|
+
:type IdentityUrl: str
|
|
271
|
+
:param _IdentityKey: Public key for signature.
|
|
272
|
+
:type IdentityKey: str
|
|
273
|
+
:param _ClientId: Client ID.
|
|
274
|
+
:type ClientId: str
|
|
275
|
+
:param _Status: Status. 0: Not set; 2: Disabled; 11: Enabled.
|
|
276
|
+
:type Status: int
|
|
277
|
+
:param _Fingerprints: The verification fingerprint of the HTTPS CA certificate. English letters and digits are allowed, and each fingerprint is 40 characters long, with a maximum of 5 fingerprints.
|
|
278
|
+
:type Fingerprints: list of str
|
|
279
|
+
:param _EnableAutoPublicKey: Whether to enable the automatic use of the OIDC signature public key. 1: Yes, 2: No (default).
|
|
280
|
+
:type EnableAutoPublicKey: int
|
|
281
|
+
:param _AuthorizationEndpoint: Authorization endpoint.
|
|
282
|
+
:type AuthorizationEndpoint: str
|
|
283
|
+
:param _Scope: Authorization scope.
|
|
284
|
+
:type Scope: list of str
|
|
285
|
+
:param _ResponseType: Authorization response type.
|
|
286
|
+
:type ResponseType: str
|
|
287
|
+
:param _ResponseMode: Authorization response mode.
|
|
288
|
+
:type ResponseMode: str
|
|
289
|
+
:param _MappingFiled: Mapping field name.
|
|
290
|
+
:type MappingFiled: str
|
|
291
|
+
:param _Description: Description
|
|
292
|
+
:type Description: str
|
|
293
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
294
|
+
:type RequestId: str
|
|
295
|
+
"""
|
|
296
|
+
self._ProviderType = None
|
|
297
|
+
self._IdentityUrl = None
|
|
298
|
+
self._IdentityKey = None
|
|
299
|
+
self._ClientId = None
|
|
300
|
+
self._Status = None
|
|
301
|
+
self._Fingerprints = None
|
|
302
|
+
self._EnableAutoPublicKey = None
|
|
303
|
+
self._AuthorizationEndpoint = None
|
|
304
|
+
self._Scope = None
|
|
305
|
+
self._ResponseType = None
|
|
306
|
+
self._ResponseMode = None
|
|
307
|
+
self._MappingFiled = None
|
|
308
|
+
self._Description = None
|
|
309
|
+
self._RequestId = None
|
|
310
|
+
|
|
311
|
+
@property
|
|
312
|
+
def ProviderType(self):
|
|
313
|
+
"""IdP type. 13: IAP user OIDC IdP.
|
|
314
|
+
:rtype: int
|
|
315
|
+
"""
|
|
316
|
+
return self._ProviderType
|
|
317
|
+
|
|
318
|
+
@ProviderType.setter
|
|
319
|
+
def ProviderType(self, ProviderType):
|
|
320
|
+
self._ProviderType = ProviderType
|
|
321
|
+
|
|
322
|
+
@property
|
|
323
|
+
def IdentityUrl(self):
|
|
324
|
+
"""IdP URL.
|
|
325
|
+
:rtype: str
|
|
326
|
+
"""
|
|
327
|
+
return self._IdentityUrl
|
|
328
|
+
|
|
329
|
+
@IdentityUrl.setter
|
|
330
|
+
def IdentityUrl(self, IdentityUrl):
|
|
331
|
+
self._IdentityUrl = IdentityUrl
|
|
332
|
+
|
|
333
|
+
@property
|
|
334
|
+
def IdentityKey(self):
|
|
335
|
+
"""Public key for signature.
|
|
336
|
+
:rtype: str
|
|
337
|
+
"""
|
|
338
|
+
return self._IdentityKey
|
|
339
|
+
|
|
340
|
+
@IdentityKey.setter
|
|
341
|
+
def IdentityKey(self, IdentityKey):
|
|
342
|
+
self._IdentityKey = IdentityKey
|
|
343
|
+
|
|
344
|
+
@property
|
|
345
|
+
def ClientId(self):
|
|
346
|
+
"""Client ID.
|
|
347
|
+
:rtype: str
|
|
348
|
+
"""
|
|
349
|
+
return self._ClientId
|
|
350
|
+
|
|
351
|
+
@ClientId.setter
|
|
352
|
+
def ClientId(self, ClientId):
|
|
353
|
+
self._ClientId = ClientId
|
|
354
|
+
|
|
355
|
+
@property
|
|
356
|
+
def Status(self):
|
|
357
|
+
"""Status. 0: Not set; 2: Disabled; 11: Enabled.
|
|
358
|
+
:rtype: int
|
|
359
|
+
"""
|
|
360
|
+
return self._Status
|
|
361
|
+
|
|
362
|
+
@Status.setter
|
|
363
|
+
def Status(self, Status):
|
|
364
|
+
self._Status = Status
|
|
365
|
+
|
|
366
|
+
@property
|
|
367
|
+
def Fingerprints(self):
|
|
368
|
+
"""The verification fingerprint of the HTTPS CA certificate. English letters and digits are allowed, and each fingerprint is 40 characters long, with a maximum of 5 fingerprints.
|
|
369
|
+
:rtype: list of str
|
|
370
|
+
"""
|
|
371
|
+
return self._Fingerprints
|
|
372
|
+
|
|
373
|
+
@Fingerprints.setter
|
|
374
|
+
def Fingerprints(self, Fingerprints):
|
|
375
|
+
self._Fingerprints = Fingerprints
|
|
376
|
+
|
|
377
|
+
@property
|
|
378
|
+
def EnableAutoPublicKey(self):
|
|
379
|
+
"""Whether to enable the automatic use of the OIDC signature public key. 1: Yes, 2: No (default).
|
|
380
|
+
:rtype: int
|
|
381
|
+
"""
|
|
382
|
+
return self._EnableAutoPublicKey
|
|
383
|
+
|
|
384
|
+
@EnableAutoPublicKey.setter
|
|
385
|
+
def EnableAutoPublicKey(self, EnableAutoPublicKey):
|
|
386
|
+
self._EnableAutoPublicKey = EnableAutoPublicKey
|
|
387
|
+
|
|
388
|
+
@property
|
|
389
|
+
def AuthorizationEndpoint(self):
|
|
390
|
+
"""Authorization endpoint.
|
|
391
|
+
:rtype: str
|
|
392
|
+
"""
|
|
393
|
+
return self._AuthorizationEndpoint
|
|
394
|
+
|
|
395
|
+
@AuthorizationEndpoint.setter
|
|
396
|
+
def AuthorizationEndpoint(self, AuthorizationEndpoint):
|
|
397
|
+
self._AuthorizationEndpoint = AuthorizationEndpoint
|
|
398
|
+
|
|
399
|
+
@property
|
|
400
|
+
def Scope(self):
|
|
401
|
+
"""Authorization scope.
|
|
402
|
+
:rtype: list of str
|
|
403
|
+
"""
|
|
404
|
+
return self._Scope
|
|
405
|
+
|
|
406
|
+
@Scope.setter
|
|
407
|
+
def Scope(self, Scope):
|
|
408
|
+
self._Scope = Scope
|
|
409
|
+
|
|
410
|
+
@property
|
|
411
|
+
def ResponseType(self):
|
|
412
|
+
"""Authorization response type.
|
|
413
|
+
:rtype: str
|
|
414
|
+
"""
|
|
415
|
+
return self._ResponseType
|
|
416
|
+
|
|
417
|
+
@ResponseType.setter
|
|
418
|
+
def ResponseType(self, ResponseType):
|
|
419
|
+
self._ResponseType = ResponseType
|
|
420
|
+
|
|
421
|
+
@property
|
|
422
|
+
def ResponseMode(self):
|
|
423
|
+
"""Authorization response mode.
|
|
424
|
+
:rtype: str
|
|
425
|
+
"""
|
|
426
|
+
return self._ResponseMode
|
|
427
|
+
|
|
428
|
+
@ResponseMode.setter
|
|
429
|
+
def ResponseMode(self, ResponseMode):
|
|
430
|
+
self._ResponseMode = ResponseMode
|
|
431
|
+
|
|
432
|
+
@property
|
|
433
|
+
def MappingFiled(self):
|
|
434
|
+
"""Mapping field name.
|
|
435
|
+
:rtype: str
|
|
436
|
+
"""
|
|
437
|
+
return self._MappingFiled
|
|
438
|
+
|
|
439
|
+
@MappingFiled.setter
|
|
440
|
+
def MappingFiled(self, MappingFiled):
|
|
441
|
+
self._MappingFiled = MappingFiled
|
|
442
|
+
|
|
443
|
+
@property
|
|
444
|
+
def Description(self):
|
|
445
|
+
"""Description
|
|
446
|
+
:rtype: str
|
|
447
|
+
"""
|
|
448
|
+
return self._Description
|
|
449
|
+
|
|
450
|
+
@Description.setter
|
|
451
|
+
def Description(self, Description):
|
|
452
|
+
self._Description = Description
|
|
453
|
+
|
|
454
|
+
@property
|
|
455
|
+
def RequestId(self):
|
|
456
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
457
|
+
:rtype: str
|
|
458
|
+
"""
|
|
459
|
+
return self._RequestId
|
|
460
|
+
|
|
461
|
+
@RequestId.setter
|
|
462
|
+
def RequestId(self, RequestId):
|
|
463
|
+
self._RequestId = RequestId
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def _deserialize(self, params):
|
|
467
|
+
self._ProviderType = params.get("ProviderType")
|
|
468
|
+
self._IdentityUrl = params.get("IdentityUrl")
|
|
469
|
+
self._IdentityKey = params.get("IdentityKey")
|
|
470
|
+
self._ClientId = params.get("ClientId")
|
|
471
|
+
self._Status = params.get("Status")
|
|
472
|
+
self._Fingerprints = params.get("Fingerprints")
|
|
473
|
+
self._EnableAutoPublicKey = params.get("EnableAutoPublicKey")
|
|
474
|
+
self._AuthorizationEndpoint = params.get("AuthorizationEndpoint")
|
|
475
|
+
self._Scope = params.get("Scope")
|
|
476
|
+
self._ResponseType = params.get("ResponseType")
|
|
477
|
+
self._ResponseMode = params.get("ResponseMode")
|
|
478
|
+
self._MappingFiled = params.get("MappingFiled")
|
|
479
|
+
self._Description = params.get("Description")
|
|
480
|
+
self._RequestId = params.get("RequestId")
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
class DisableIAPUserSSORequest(AbstractModel):
|
|
484
|
+
"""DisableIAPUserSSO request structure.
|
|
485
|
+
|
|
486
|
+
"""
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
class DisableIAPUserSSOResponse(AbstractModel):
|
|
490
|
+
"""DisableIAPUserSSO response structure.
|
|
491
|
+
|
|
492
|
+
"""
|
|
493
|
+
|
|
494
|
+
def __init__(self):
|
|
495
|
+
r"""
|
|
496
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
497
|
+
:type RequestId: str
|
|
498
|
+
"""
|
|
499
|
+
self._RequestId = None
|
|
500
|
+
|
|
501
|
+
@property
|
|
502
|
+
def RequestId(self):
|
|
503
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
504
|
+
:rtype: str
|
|
505
|
+
"""
|
|
506
|
+
return self._RequestId
|
|
507
|
+
|
|
508
|
+
@RequestId.setter
|
|
509
|
+
def RequestId(self, RequestId):
|
|
510
|
+
self._RequestId = RequestId
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
def _deserialize(self, params):
|
|
514
|
+
self._RequestId = params.get("RequestId")
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
class ModifyIAPLoginSessionDurationRequest(AbstractModel):
|
|
518
|
+
"""ModifyIAPLoginSessionDuration request structure.
|
|
519
|
+
|
|
520
|
+
"""
|
|
521
|
+
|
|
522
|
+
def __init__(self):
|
|
523
|
+
r"""
|
|
524
|
+
:param _Duration: Login session duration.
|
|
525
|
+
:type Duration: int
|
|
526
|
+
"""
|
|
527
|
+
self._Duration = None
|
|
528
|
+
|
|
529
|
+
@property
|
|
530
|
+
def Duration(self):
|
|
531
|
+
"""Login session duration.
|
|
532
|
+
:rtype: int
|
|
533
|
+
"""
|
|
534
|
+
return self._Duration
|
|
535
|
+
|
|
536
|
+
@Duration.setter
|
|
537
|
+
def Duration(self, Duration):
|
|
538
|
+
self._Duration = Duration
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
def _deserialize(self, params):
|
|
542
|
+
self._Duration = params.get("Duration")
|
|
543
|
+
memeber_set = set(params.keys())
|
|
544
|
+
for name, value in vars(self).items():
|
|
545
|
+
property_name = name[1:]
|
|
546
|
+
if property_name in memeber_set:
|
|
547
|
+
memeber_set.remove(property_name)
|
|
548
|
+
if len(memeber_set) > 0:
|
|
549
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
class ModifyIAPLoginSessionDurationResponse(AbstractModel):
|
|
554
|
+
"""ModifyIAPLoginSessionDuration response structure.
|
|
555
|
+
|
|
556
|
+
"""
|
|
557
|
+
|
|
558
|
+
def __init__(self):
|
|
559
|
+
r"""
|
|
560
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
561
|
+
:type RequestId: str
|
|
562
|
+
"""
|
|
563
|
+
self._RequestId = None
|
|
564
|
+
|
|
565
|
+
@property
|
|
566
|
+
def RequestId(self):
|
|
567
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
568
|
+
:rtype: str
|
|
569
|
+
"""
|
|
570
|
+
return self._RequestId
|
|
571
|
+
|
|
572
|
+
@RequestId.setter
|
|
573
|
+
def RequestId(self, RequestId):
|
|
574
|
+
self._RequestId = RequestId
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
def _deserialize(self, params):
|
|
578
|
+
self._RequestId = params.get("RequestId")
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
class UpdateIAPUserOIDCConfigRequest(AbstractModel):
|
|
582
|
+
"""UpdateIAPUserOIDCConfig request structure.
|
|
583
|
+
|
|
584
|
+
"""
|
|
585
|
+
|
|
586
|
+
def __init__(self):
|
|
587
|
+
r"""
|
|
588
|
+
:param _IdentityUrl: OpenID Connect IdP URL. It corresponds to the value of the "issuer" field in the Openid-configuration provided by the enterprise IdP.
|
|
589
|
+
:type IdentityUrl: str
|
|
590
|
+
:param _ClientId: Client ID registered with the OpenID Connect IdP.
|
|
591
|
+
:type ClientId: str
|
|
592
|
+
:param _AuthorizationEndpoint: OpenID Connect IdP authorization endpoint. It corresponds to the value of the "authorization_endpoint" field in the Openid-configuration provided by the enterprise IdP.
|
|
593
|
+
:type AuthorizationEndpoint: str
|
|
594
|
+
:param _ResponseType: Authorization response type, which is always id_token.
|
|
595
|
+
:type ResponseType: str
|
|
596
|
+
:param _ResponseMode: Authorization response mode. Valid values: form_post (recommended); fragment.
|
|
597
|
+
:type ResponseMode: str
|
|
598
|
+
:param _MappingFiled: Mapping field name. It indicates which field in the id_token of the IdP is mapped to the username of a sub-user. It is usually the sub or name field.
|
|
599
|
+
:type MappingFiled: str
|
|
600
|
+
:param _IdentityKey: RSA signature public key in the JWKS format, which is used to verify the OpenID Connect IdP's ID token and must be Base64-encoded. For the security of your account, we recommend you rotate it regularly.
|
|
601
|
+
:type IdentityKey: str
|
|
602
|
+
:param _Scope: Authorization information scope. Valid values: openid (default); email; profile.
|
|
603
|
+
:type Scope: list of str
|
|
604
|
+
:param _Description: Description, with a length of 1 to 255 English or Chinese characters. It is empty by default.
|
|
605
|
+
:type Description: str
|
|
606
|
+
"""
|
|
607
|
+
self._IdentityUrl = None
|
|
608
|
+
self._ClientId = None
|
|
609
|
+
self._AuthorizationEndpoint = None
|
|
610
|
+
self._ResponseType = None
|
|
611
|
+
self._ResponseMode = None
|
|
612
|
+
self._MappingFiled = None
|
|
613
|
+
self._IdentityKey = None
|
|
614
|
+
self._Scope = None
|
|
615
|
+
self._Description = None
|
|
616
|
+
|
|
617
|
+
@property
|
|
618
|
+
def IdentityUrl(self):
|
|
619
|
+
"""OpenID Connect IdP URL. It corresponds to the value of the "issuer" field in the Openid-configuration provided by the enterprise IdP.
|
|
620
|
+
:rtype: str
|
|
621
|
+
"""
|
|
622
|
+
return self._IdentityUrl
|
|
623
|
+
|
|
624
|
+
@IdentityUrl.setter
|
|
625
|
+
def IdentityUrl(self, IdentityUrl):
|
|
626
|
+
self._IdentityUrl = IdentityUrl
|
|
627
|
+
|
|
628
|
+
@property
|
|
629
|
+
def ClientId(self):
|
|
630
|
+
"""Client ID registered with the OpenID Connect IdP.
|
|
631
|
+
:rtype: str
|
|
632
|
+
"""
|
|
633
|
+
return self._ClientId
|
|
634
|
+
|
|
635
|
+
@ClientId.setter
|
|
636
|
+
def ClientId(self, ClientId):
|
|
637
|
+
self._ClientId = ClientId
|
|
638
|
+
|
|
639
|
+
@property
|
|
640
|
+
def AuthorizationEndpoint(self):
|
|
641
|
+
"""OpenID Connect IdP authorization endpoint. It corresponds to the value of the "authorization_endpoint" field in the Openid-configuration provided by the enterprise IdP.
|
|
642
|
+
:rtype: str
|
|
643
|
+
"""
|
|
644
|
+
return self._AuthorizationEndpoint
|
|
645
|
+
|
|
646
|
+
@AuthorizationEndpoint.setter
|
|
647
|
+
def AuthorizationEndpoint(self, AuthorizationEndpoint):
|
|
648
|
+
self._AuthorizationEndpoint = AuthorizationEndpoint
|
|
649
|
+
|
|
650
|
+
@property
|
|
651
|
+
def ResponseType(self):
|
|
652
|
+
"""Authorization response type, which is always id_token.
|
|
653
|
+
:rtype: str
|
|
654
|
+
"""
|
|
655
|
+
return self._ResponseType
|
|
656
|
+
|
|
657
|
+
@ResponseType.setter
|
|
658
|
+
def ResponseType(self, ResponseType):
|
|
659
|
+
self._ResponseType = ResponseType
|
|
660
|
+
|
|
661
|
+
@property
|
|
662
|
+
def ResponseMode(self):
|
|
663
|
+
"""Authorization response mode. Valid values: form_post (recommended); fragment.
|
|
664
|
+
:rtype: str
|
|
665
|
+
"""
|
|
666
|
+
return self._ResponseMode
|
|
667
|
+
|
|
668
|
+
@ResponseMode.setter
|
|
669
|
+
def ResponseMode(self, ResponseMode):
|
|
670
|
+
self._ResponseMode = ResponseMode
|
|
671
|
+
|
|
672
|
+
@property
|
|
673
|
+
def MappingFiled(self):
|
|
674
|
+
"""Mapping field name. It indicates which field in the id_token of the IdP is mapped to the username of a sub-user. It is usually the sub or name field.
|
|
675
|
+
:rtype: str
|
|
676
|
+
"""
|
|
677
|
+
return self._MappingFiled
|
|
678
|
+
|
|
679
|
+
@MappingFiled.setter
|
|
680
|
+
def MappingFiled(self, MappingFiled):
|
|
681
|
+
self._MappingFiled = MappingFiled
|
|
682
|
+
|
|
683
|
+
@property
|
|
684
|
+
def IdentityKey(self):
|
|
685
|
+
"""RSA signature public key in the JWKS format, which is used to verify the OpenID Connect IdP's ID token and must be Base64-encoded. For the security of your account, we recommend you rotate it regularly.
|
|
686
|
+
:rtype: str
|
|
687
|
+
"""
|
|
688
|
+
return self._IdentityKey
|
|
689
|
+
|
|
690
|
+
@IdentityKey.setter
|
|
691
|
+
def IdentityKey(self, IdentityKey):
|
|
692
|
+
self._IdentityKey = IdentityKey
|
|
693
|
+
|
|
694
|
+
@property
|
|
695
|
+
def Scope(self):
|
|
696
|
+
"""Authorization information scope. Valid values: openid (default); email; profile.
|
|
697
|
+
:rtype: list of str
|
|
698
|
+
"""
|
|
699
|
+
return self._Scope
|
|
700
|
+
|
|
701
|
+
@Scope.setter
|
|
702
|
+
def Scope(self, Scope):
|
|
703
|
+
self._Scope = Scope
|
|
704
|
+
|
|
705
|
+
@property
|
|
706
|
+
def Description(self):
|
|
707
|
+
"""Description, with a length of 1 to 255 English or Chinese characters. It is empty by default.
|
|
708
|
+
:rtype: str
|
|
709
|
+
"""
|
|
710
|
+
return self._Description
|
|
711
|
+
|
|
712
|
+
@Description.setter
|
|
713
|
+
def Description(self, Description):
|
|
714
|
+
self._Description = Description
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
def _deserialize(self, params):
|
|
718
|
+
self._IdentityUrl = params.get("IdentityUrl")
|
|
719
|
+
self._ClientId = params.get("ClientId")
|
|
720
|
+
self._AuthorizationEndpoint = params.get("AuthorizationEndpoint")
|
|
721
|
+
self._ResponseType = params.get("ResponseType")
|
|
722
|
+
self._ResponseMode = params.get("ResponseMode")
|
|
723
|
+
self._MappingFiled = params.get("MappingFiled")
|
|
724
|
+
self._IdentityKey = params.get("IdentityKey")
|
|
725
|
+
self._Scope = params.get("Scope")
|
|
726
|
+
self._Description = params.get("Description")
|
|
727
|
+
memeber_set = set(params.keys())
|
|
728
|
+
for name, value in vars(self).items():
|
|
729
|
+
property_name = name[1:]
|
|
730
|
+
if property_name in memeber_set:
|
|
731
|
+
memeber_set.remove(property_name)
|
|
732
|
+
if len(memeber_set) > 0:
|
|
733
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
class UpdateIAPUserOIDCConfigResponse(AbstractModel):
|
|
738
|
+
"""UpdateIAPUserOIDCConfig response structure.
|
|
739
|
+
|
|
740
|
+
"""
|
|
741
|
+
|
|
742
|
+
def __init__(self):
|
|
743
|
+
r"""
|
|
744
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
745
|
+
:type RequestId: str
|
|
746
|
+
"""
|
|
747
|
+
self._RequestId = None
|
|
748
|
+
|
|
749
|
+
@property
|
|
750
|
+
def RequestId(self):
|
|
751
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
752
|
+
:rtype: str
|
|
753
|
+
"""
|
|
754
|
+
return self._RequestId
|
|
755
|
+
|
|
756
|
+
@RequestId.setter
|
|
757
|
+
def RequestId(self, RequestId):
|
|
758
|
+
self._RequestId = RequestId
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
def _deserialize(self, params):
|
|
762
|
+
self._RequestId = params.get("RequestId")
|