tencentcloud-sdk-python-intl-en 3.0.1173__py2.py3-none-any.whl → 3.0.1174__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 CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1173'
16
+ __version__ = '3.0.1174'
File without changes
File without changes
@@ -0,0 +1,48 @@
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
+
17
+ # Operation failed.
18
+ FAILEDOPERATION = 'FailedOperation'
19
+
20
+ # Parameter error.
21
+ INVALIDPARAMETER = 'InvalidParameter'
22
+
23
+ # The IdP name is already in use.
24
+ INVALIDPARAMETER_IDENTITYNAMEINUSE = 'InvalidParameter.IdentityNameInUse'
25
+
26
+ # IdP metadata document error.
27
+ INVALIDPARAMETER_METADATAERROR = 'InvalidParameter.MetadataError'
28
+
29
+ # Parameter error.
30
+ INVALIDPARAMETER_PARAMERROR = 'InvalidParameter.ParamError'
31
+
32
+ # The OIDC signature public key is incorrect.
33
+ INVALIDPARAMETERVALUE_IDENTITYKEYERROR = 'InvalidParameterValue.IdentityKeyError'
34
+
35
+ # The IdP URL is incorrect.
36
+ INVALIDPARAMETERVALUE_IDENTITYURLERROR = 'InvalidParameterValue.IdentityUrlError'
37
+
38
+ # IdP name error.
39
+ INVALIDPARAMETERVALUE_NAMEERROR = 'InvalidParameterValue.NameError'
40
+
41
+ # The upper limit on the number of IdPs has been reached.
42
+ LIMITEXCEEDED_IDENTITYFULL = 'LimitExceeded.IdentityFull'
43
+
44
+ # The IdP does not exist.
45
+ RESOURCENOTFOUND_IDENTITYNOTEXIST = 'ResourceNotFound.IdentityNotExist'
46
+
47
+ # No data.
48
+ RESOURCENOTFOUND_RECORDNOTEXISTS = 'ResourceNotFound.RecordNotExists'
@@ -0,0 +1,164 @@
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 json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.iap.v20240713 import models
21
+
22
+
23
+ class IapClient(AbstractClient):
24
+ _apiVersion = '2024-07-13'
25
+ _endpoint = 'iap.intl.tencentcloudapi.com'
26
+ _service = 'iap'
27
+
28
+
29
+ def CreateIAPUserOIDCConfig(self, request):
30
+ """This API is used to create a user OIDC configuration. Only one user OIDC IdP can be created, and the user SAML SSO IdP will be automatically disabled after it is created.
31
+
32
+ :param request: Request instance for CreateIAPUserOIDCConfig.
33
+ :type request: :class:`tencentcloud.iap.v20240713.models.CreateIAPUserOIDCConfigRequest`
34
+ :rtype: :class:`tencentcloud.iap.v20240713.models.CreateIAPUserOIDCConfigResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("CreateIAPUserOIDCConfig", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.CreateIAPUserOIDCConfigResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
52
+ def DescribeIAPLoginSessionDuration(self, request):
53
+ """This API is used to query login session duration.
54
+
55
+ :param request: Request instance for DescribeIAPLoginSessionDuration.
56
+ :type request: :class:`tencentcloud.iap.v20240713.models.DescribeIAPLoginSessionDurationRequest`
57
+ :rtype: :class:`tencentcloud.iap.v20240713.models.DescribeIAPLoginSessionDurationResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("DescribeIAPLoginSessionDuration", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.DescribeIAPLoginSessionDurationResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
75
+ def DescribeIAPUserOIDCConfig(self, request):
76
+ """This API is used to query a user OIDC configuration.
77
+
78
+ :param request: Request instance for DescribeIAPUserOIDCConfig.
79
+ :type request: :class:`tencentcloud.iap.v20240713.models.DescribeIAPUserOIDCConfigRequest`
80
+ :rtype: :class:`tencentcloud.iap.v20240713.models.DescribeIAPUserOIDCConfigResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("DescribeIAPUserOIDCConfig", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.DescribeIAPUserOIDCConfigResponse()
89
+ model._deserialize(response["Response"])
90
+ return model
91
+ except Exception as e:
92
+ if isinstance(e, TencentCloudSDKException):
93
+ raise
94
+ else:
95
+ raise TencentCloudSDKException(type(e).__name__, str(e))
96
+
97
+
98
+ def DisableIAPUserSSO(self, request):
99
+ """This API is used to disable user SSO.
100
+
101
+ :param request: Request instance for DisableIAPUserSSO.
102
+ :type request: :class:`tencentcloud.iap.v20240713.models.DisableIAPUserSSORequest`
103
+ :rtype: :class:`tencentcloud.iap.v20240713.models.DisableIAPUserSSOResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("DisableIAPUserSSO", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.DisableIAPUserSSOResponse()
112
+ model._deserialize(response["Response"])
113
+ return model
114
+ except Exception as e:
115
+ if isinstance(e, TencentCloudSDKException):
116
+ raise
117
+ else:
118
+ raise TencentCloudSDKException(type(e).__name__, str(e))
119
+
120
+
121
+ def ModifyIAPLoginSessionDuration(self, request):
122
+ """This API is used to modify login session duration.
123
+
124
+ :param request: Request instance for ModifyIAPLoginSessionDuration.
125
+ :type request: :class:`tencentcloud.iap.v20240713.models.ModifyIAPLoginSessionDurationRequest`
126
+ :rtype: :class:`tencentcloud.iap.v20240713.models.ModifyIAPLoginSessionDurationResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("ModifyIAPLoginSessionDuration", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.ModifyIAPLoginSessionDurationResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
144
+ def UpdateIAPUserOIDCConfig(self, request):
145
+ """This API is used to modify a user OIDC configuration.
146
+
147
+ :param request: Request instance for UpdateIAPUserOIDCConfig.
148
+ :type request: :class:`tencentcloud.iap.v20240713.models.UpdateIAPUserOIDCConfigRequest`
149
+ :rtype: :class:`tencentcloud.iap.v20240713.models.UpdateIAPUserOIDCConfigResponse`
150
+
151
+ """
152
+ try:
153
+ params = request._serialize()
154
+ headers = request.headers
155
+ body = self.call("UpdateIAPUserOIDCConfig", params, headers=headers)
156
+ response = json.loads(body)
157
+ model = models.UpdateIAPUserOIDCConfigResponse()
158
+ model._deserialize(response["Response"])
159
+ return model
160
+ except Exception as e:
161
+ if isinstance(e, TencentCloudSDKException):
162
+ raise
163
+ else:
164
+ raise TencentCloudSDKException(type(e).__name__, str(e))
@@ -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")
@@ -1437,6 +1437,8 @@ class CreatePrivateZoneRequest(AbstractModel):
1437
1437
 
1438
1438
  @property
1439
1439
  def Vpcs(self):
1440
+ warnings.warn("parameter `Vpcs` is deprecated", DeprecationWarning)
1441
+
1440
1442
  """Associates the private domain to a VPC when it is created
1441
1443
  :rtype: list of VpcInfo
1442
1444
  """
@@ -1444,6 +1446,8 @@ class CreatePrivateZoneRequest(AbstractModel):
1444
1446
 
1445
1447
  @Vpcs.setter
1446
1448
  def Vpcs(self, Vpcs):
1449
+ warnings.warn("parameter `Vpcs` is deprecated", DeprecationWarning)
1450
+
1447
1451
  self._Vpcs = Vpcs
1448
1452
 
1449
1453
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-intl-en
3
- Version: 3.0.1173
3
+ Version: 3.0.1174
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python-intl-en
6
6
  Author: Tencent Cloud
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=w4c3_P1LB03DE27yZw2kqGxn47x1ieIoMzKQjgz86AM,630
1
+ tencentcloud/__init__.py,sha256=uoM3MFDJMmZHl60g7NCKV24TEBH0TUtASOM1MohNZSI,630
2
2
  tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/advisor/v20200721/advisor_client.py,sha256=FuBG5ZJpmnVpDyVC84G_cjEWSa-mm6oyBvOIDe5SP-g,2924
@@ -325,6 +325,11 @@ tencentcloud/iai/v20200303/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
325
325
  tencentcloud/iai/v20200303/errorcodes.py,sha256=rbNWAATJzXeihSnGbe6giOB49FQ060aoOVtPRiyZ_i8,12935
326
326
  tencentcloud/iai/v20200303/iai_client.py,sha256=6YPJ02LBe2nicyVR8EEdR05To3K6Sx3Wym9X2_ry9-E,44171
327
327
  tencentcloud/iai/v20200303/models.py,sha256=-iUeIIN56n9gPbWBIRi0N18mqimDX5GRNKp5-ws58kk,320336
328
+ tencentcloud/iap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
329
+ tencentcloud/iap/v20240713/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
330
+ tencentcloud/iap/v20240713/errorcodes.py,sha256=JAXLmoJUgjUIIp4B4CS5RDWnh2aKt99My_hXLAuD21I,1679
331
+ tencentcloud/iap/v20240713/iap_client.py,sha256=K1s_t4fJR5uyHs09lqY3hcgZ4MuEaDy31jl4WKqsQZs,6795
332
+ tencentcloud/iap/v20240713/models.py,sha256=PqM_fazZPMX0ou06h7kKhGEgjOkiF7W7LMGeRHMy4Rw,26225
328
333
  tencentcloud/ims/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
329
334
  tencentcloud/ims/v20201229/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
330
335
  tencentcloud/ims/v20201229/errorcodes.py,sha256=n9s6tHq60CJXD9e8RHZmq03SVK2PEaOzlu2zp-w_ahQ,3861
@@ -432,7 +437,7 @@ tencentcloud/postgres/v20170312/postgres_client.py,sha256=AN7SNPDorzf2Gs1QkCW-fV
432
437
  tencentcloud/privatedns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
433
438
  tencentcloud/privatedns/v20201028/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
434
439
  tencentcloud/privatedns/v20201028/errorcodes.py,sha256=aDEaYiBKIOFSpxw9Bgnv9d6nIGg08S8W9rFkvfE84ls,9343
435
- tencentcloud/privatedns/v20201028/models.py,sha256=_1p2WSxem5che6-72I6C-zTUeGOCaV789-2v6d_cKoU,178305
440
+ tencentcloud/privatedns/v20201028/models.py,sha256=EEoqr3KbDp42Hnfbvo2533X5TK5zv5RwpVf7lXMGsls,178461
436
441
  tencentcloud/privatedns/v20201028/privatedns_client.py,sha256=YFqVXqQNBniNaVHXEqePSSXl8UqufRT4aNuxDtNp6EE,29299
437
442
  tencentcloud/pts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
438
443
  tencentcloud/pts/v20210728/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -639,7 +644,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
639
644
  tencentcloud/yunjing/v20180228/errorcodes.py,sha256=VEqwMbMBe7F2oAW6ZDu3vAivBr60lbo7FWduFqRTEVg,3195
640
645
  tencentcloud/yunjing/v20180228/models.py,sha256=0rnsJ4JkA5aCTV1cVwCuKnzooe6IhQ0NS3ij6tJ22uw,330670
641
646
  tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=LY01pPiy1k_AXnHgG0FonGekRSFMY3t9pcYH8aE27oQ,67389
642
- tencentcloud_sdk_python_intl_en-3.0.1173.dist-info/METADATA,sha256=0AidR_EUvurcv2uyZxtihoCZDP8tES2AwA1b0Ks_mcM,1628
643
- tencentcloud_sdk_python_intl_en-3.0.1173.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
644
- tencentcloud_sdk_python_intl_en-3.0.1173.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
645
- tencentcloud_sdk_python_intl_en-3.0.1173.dist-info/RECORD,,
647
+ tencentcloud_sdk_python_intl_en-3.0.1174.dist-info/METADATA,sha256=CchHn8pEQuRAR9xYx9vK2OWFhSG2UZ-maqTR3PcMkZk,1628
648
+ tencentcloud_sdk_python_intl_en-3.0.1174.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
649
+ tencentcloud_sdk_python_intl_en-3.0.1174.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
650
+ tencentcloud_sdk_python_intl_en-3.0.1174.dist-info/RECORD,,