tencentcloud-sdk-python-intl-en 3.0.1286__py2.py3-none-any.whl → 3.0.1288__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/cvm/v20170312/errorcodes.py +1 -1
- tencentcloud/cvm/v20170312/models.py +141 -120
- tencentcloud/dlc/v20210125/dlc_client.py +46 -0
- tencentcloud/dlc/v20210125/models.py +424 -14
- tencentcloud/mdl/v20200326/models.py +72 -2
- tencentcloud/mdp/v20200527/models.py +100 -2
- tencentcloud/message/__init__.py +0 -0
- tencentcloud/message/v20181225/__init__.py +0 -0
- tencentcloud/message/v20181225/errorcodes.py +27 -0
- tencentcloud/message/v20181225/message_client.py +49 -0
- tencentcloud/message/v20181225/models.py +138 -0
- tencentcloud/teo/v20220901/teo_client.py +3 -3
- {tencentcloud_sdk_python_intl_en-3.0.1286.dist-info → tencentcloud_sdk_python_intl_en-3.0.1288.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1286.dist-info → tencentcloud_sdk_python_intl_en-3.0.1288.dist-info}/RECORD +17 -12
- {tencentcloud_sdk_python_intl_en-3.0.1286.dist-info → tencentcloud_sdk_python_intl_en-3.0.1288.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1286.dist-info → tencentcloud_sdk_python_intl_en-3.0.1288.dist-info}/top_level.txt +0 -0
|
@@ -72,6 +72,29 @@ class DlcClient(AbstractClient):
|
|
|
72
72
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
def AttachDataMaskPolicy(self, request):
|
|
76
|
+
r"""This API is used to bind a DMask policy.
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for AttachDataMaskPolicy.
|
|
79
|
+
:type request: :class:`tencentcloud.dlc.v20210125.models.AttachDataMaskPolicyRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.AttachDataMaskPolicyResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("AttachDataMaskPolicy", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.AttachDataMaskPolicyResponse()
|
|
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
|
+
|
|
75
98
|
def AttachUserPolicy(self, request):
|
|
76
99
|
r"""This API is used to bind the authentication policy to the user.
|
|
77
100
|
|
|
@@ -394,6 +417,29 @@ class DlcClient(AbstractClient):
|
|
|
394
417
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
395
418
|
|
|
396
419
|
|
|
420
|
+
def CreateDataMaskStrategy(self, request):
|
|
421
|
+
r"""This API is used to create a DMask policy.
|
|
422
|
+
|
|
423
|
+
:param request: Request instance for CreateDataMaskStrategy.
|
|
424
|
+
:type request: :class:`tencentcloud.dlc.v20210125.models.CreateDataMaskStrategyRequest`
|
|
425
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.CreateDataMaskStrategyResponse`
|
|
426
|
+
|
|
427
|
+
"""
|
|
428
|
+
try:
|
|
429
|
+
params = request._serialize()
|
|
430
|
+
headers = request.headers
|
|
431
|
+
body = self.call("CreateDataMaskStrategy", params, headers=headers)
|
|
432
|
+
response = json.loads(body)
|
|
433
|
+
model = models.CreateDataMaskStrategyResponse()
|
|
434
|
+
model._deserialize(response["Response"])
|
|
435
|
+
return model
|
|
436
|
+
except Exception as e:
|
|
437
|
+
if isinstance(e, TencentCloudSDKException):
|
|
438
|
+
raise
|
|
439
|
+
else:
|
|
440
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
441
|
+
|
|
442
|
+
|
|
397
443
|
def CreateInternalTable(self, request):
|
|
398
444
|
r"""This API is used to create a managed internal table. It has been disused.
|
|
399
445
|
|
|
@@ -504,6 +504,75 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
504
504
|
|
|
505
505
|
|
|
506
506
|
|
|
507
|
+
class AttachDataMaskPolicyRequest(AbstractModel):
|
|
508
|
+
r"""AttachDataMaskPolicy request structure.
|
|
509
|
+
|
|
510
|
+
"""
|
|
511
|
+
|
|
512
|
+
def __init__(self):
|
|
513
|
+
r"""
|
|
514
|
+
:param _DataMaskStrategyPolicySet: Collection of DMask permission objects that should be bound.
|
|
515
|
+
:type DataMaskStrategyPolicySet: list of DataMaskStrategyPolicy
|
|
516
|
+
"""
|
|
517
|
+
self._DataMaskStrategyPolicySet = None
|
|
518
|
+
|
|
519
|
+
@property
|
|
520
|
+
def DataMaskStrategyPolicySet(self):
|
|
521
|
+
r"""Collection of DMask permission objects that should be bound.
|
|
522
|
+
:rtype: list of DataMaskStrategyPolicy
|
|
523
|
+
"""
|
|
524
|
+
return self._DataMaskStrategyPolicySet
|
|
525
|
+
|
|
526
|
+
@DataMaskStrategyPolicySet.setter
|
|
527
|
+
def DataMaskStrategyPolicySet(self, DataMaskStrategyPolicySet):
|
|
528
|
+
self._DataMaskStrategyPolicySet = DataMaskStrategyPolicySet
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
def _deserialize(self, params):
|
|
532
|
+
if params.get("DataMaskStrategyPolicySet") is not None:
|
|
533
|
+
self._DataMaskStrategyPolicySet = []
|
|
534
|
+
for item in params.get("DataMaskStrategyPolicySet"):
|
|
535
|
+
obj = DataMaskStrategyPolicy()
|
|
536
|
+
obj._deserialize(item)
|
|
537
|
+
self._DataMaskStrategyPolicySet.append(obj)
|
|
538
|
+
memeber_set = set(params.keys())
|
|
539
|
+
for name, value in vars(self).items():
|
|
540
|
+
property_name = name[1:]
|
|
541
|
+
if property_name in memeber_set:
|
|
542
|
+
memeber_set.remove(property_name)
|
|
543
|
+
if len(memeber_set) > 0:
|
|
544
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
class AttachDataMaskPolicyResponse(AbstractModel):
|
|
549
|
+
r"""AttachDataMaskPolicy response structure.
|
|
550
|
+
|
|
551
|
+
"""
|
|
552
|
+
|
|
553
|
+
def __init__(self):
|
|
554
|
+
r"""
|
|
555
|
+
: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.
|
|
556
|
+
:type RequestId: str
|
|
557
|
+
"""
|
|
558
|
+
self._RequestId = None
|
|
559
|
+
|
|
560
|
+
@property
|
|
561
|
+
def RequestId(self):
|
|
562
|
+
r"""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.
|
|
563
|
+
:rtype: str
|
|
564
|
+
"""
|
|
565
|
+
return self._RequestId
|
|
566
|
+
|
|
567
|
+
@RequestId.setter
|
|
568
|
+
def RequestId(self, RequestId):
|
|
569
|
+
self._RequestId = RequestId
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
def _deserialize(self, params):
|
|
573
|
+
self._RequestId = params.get("RequestId")
|
|
574
|
+
|
|
575
|
+
|
|
507
576
|
class AttachUserPolicyRequest(AbstractModel):
|
|
508
577
|
r"""AttachUserPolicy request structure.
|
|
509
578
|
|
|
@@ -3137,6 +3206,87 @@ class CreateDataEngineResponse(AbstractModel):
|
|
|
3137
3206
|
self._RequestId = params.get("RequestId")
|
|
3138
3207
|
|
|
3139
3208
|
|
|
3209
|
+
class CreateDataMaskStrategyRequest(AbstractModel):
|
|
3210
|
+
r"""CreateDataMaskStrategy request structure.
|
|
3211
|
+
|
|
3212
|
+
"""
|
|
3213
|
+
|
|
3214
|
+
def __init__(self):
|
|
3215
|
+
r"""
|
|
3216
|
+
:param _Strategy: Masking policy description.
|
|
3217
|
+
:type Strategy: :class:`tencentcloud.dlc.v20210125.models.DataMaskStrategyInfo`
|
|
3218
|
+
"""
|
|
3219
|
+
self._Strategy = None
|
|
3220
|
+
|
|
3221
|
+
@property
|
|
3222
|
+
def Strategy(self):
|
|
3223
|
+
r"""Masking policy description.
|
|
3224
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.DataMaskStrategyInfo`
|
|
3225
|
+
"""
|
|
3226
|
+
return self._Strategy
|
|
3227
|
+
|
|
3228
|
+
@Strategy.setter
|
|
3229
|
+
def Strategy(self, Strategy):
|
|
3230
|
+
self._Strategy = Strategy
|
|
3231
|
+
|
|
3232
|
+
|
|
3233
|
+
def _deserialize(self, params):
|
|
3234
|
+
if params.get("Strategy") is not None:
|
|
3235
|
+
self._Strategy = DataMaskStrategyInfo()
|
|
3236
|
+
self._Strategy._deserialize(params.get("Strategy"))
|
|
3237
|
+
memeber_set = set(params.keys())
|
|
3238
|
+
for name, value in vars(self).items():
|
|
3239
|
+
property_name = name[1:]
|
|
3240
|
+
if property_name in memeber_set:
|
|
3241
|
+
memeber_set.remove(property_name)
|
|
3242
|
+
if len(memeber_set) > 0:
|
|
3243
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3244
|
+
|
|
3245
|
+
|
|
3246
|
+
|
|
3247
|
+
class CreateDataMaskStrategyResponse(AbstractModel):
|
|
3248
|
+
r"""CreateDataMaskStrategy response structure.
|
|
3249
|
+
|
|
3250
|
+
"""
|
|
3251
|
+
|
|
3252
|
+
def __init__(self):
|
|
3253
|
+
r"""
|
|
3254
|
+
:param _StrategyId: Policy ID
|
|
3255
|
+
:type StrategyId: str
|
|
3256
|
+
: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.
|
|
3257
|
+
:type RequestId: str
|
|
3258
|
+
"""
|
|
3259
|
+
self._StrategyId = None
|
|
3260
|
+
self._RequestId = None
|
|
3261
|
+
|
|
3262
|
+
@property
|
|
3263
|
+
def StrategyId(self):
|
|
3264
|
+
r"""Policy ID
|
|
3265
|
+
:rtype: str
|
|
3266
|
+
"""
|
|
3267
|
+
return self._StrategyId
|
|
3268
|
+
|
|
3269
|
+
@StrategyId.setter
|
|
3270
|
+
def StrategyId(self, StrategyId):
|
|
3271
|
+
self._StrategyId = StrategyId
|
|
3272
|
+
|
|
3273
|
+
@property
|
|
3274
|
+
def RequestId(self):
|
|
3275
|
+
r"""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.
|
|
3276
|
+
:rtype: str
|
|
3277
|
+
"""
|
|
3278
|
+
return self._RequestId
|
|
3279
|
+
|
|
3280
|
+
@RequestId.setter
|
|
3281
|
+
def RequestId(self, RequestId):
|
|
3282
|
+
self._RequestId = RequestId
|
|
3283
|
+
|
|
3284
|
+
|
|
3285
|
+
def _deserialize(self, params):
|
|
3286
|
+
self._StrategyId = params.get("StrategyId")
|
|
3287
|
+
self._RequestId = params.get("RequestId")
|
|
3288
|
+
|
|
3289
|
+
|
|
3140
3290
|
class CreateInternalTableRequest(AbstractModel):
|
|
3141
3291
|
r"""CreateInternalTable request structure.
|
|
3142
3292
|
|
|
@@ -7756,6 +7906,198 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
7756
7906
|
|
|
7757
7907
|
|
|
7758
7908
|
|
|
7909
|
+
class DataMaskStrategyInfo(AbstractModel):
|
|
7910
|
+
r"""DMask policy information.
|
|
7911
|
+
|
|
7912
|
+
"""
|
|
7913
|
+
|
|
7914
|
+
def __init__(self):
|
|
7915
|
+
r"""
|
|
7916
|
+
:param _StrategyName: Policy name
|
|
7917
|
+
:type StrategyName: str
|
|
7918
|
+
:param _StrategyType: MASK_SHOW_FIRST_4, MASK_SHOW_LAST_4, MASK_HASH, MASK_DATE_SHOW_YEAR, MASK_NULL, MASK_DEFAULT.
|
|
7919
|
+
:type StrategyType: str
|
|
7920
|
+
:param _StrategyDesc: Policy description
|
|
7921
|
+
:type StrategyDesc: str
|
|
7922
|
+
:param _Groups: User group policy list.
|
|
7923
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7924
|
+
:type Groups: list of GroupInfo
|
|
7925
|
+
:param _Users: User sub-account uin list, concatenated by ;.
|
|
7926
|
+
:type Users: str
|
|
7927
|
+
:param _StrategyId: Policy ID
|
|
7928
|
+
:type StrategyId: str
|
|
7929
|
+
"""
|
|
7930
|
+
self._StrategyName = None
|
|
7931
|
+
self._StrategyType = None
|
|
7932
|
+
self._StrategyDesc = None
|
|
7933
|
+
self._Groups = None
|
|
7934
|
+
self._Users = None
|
|
7935
|
+
self._StrategyId = None
|
|
7936
|
+
|
|
7937
|
+
@property
|
|
7938
|
+
def StrategyName(self):
|
|
7939
|
+
r"""Policy name
|
|
7940
|
+
:rtype: str
|
|
7941
|
+
"""
|
|
7942
|
+
return self._StrategyName
|
|
7943
|
+
|
|
7944
|
+
@StrategyName.setter
|
|
7945
|
+
def StrategyName(self, StrategyName):
|
|
7946
|
+
self._StrategyName = StrategyName
|
|
7947
|
+
|
|
7948
|
+
@property
|
|
7949
|
+
def StrategyType(self):
|
|
7950
|
+
r"""MASK_SHOW_FIRST_4, MASK_SHOW_LAST_4, MASK_HASH, MASK_DATE_SHOW_YEAR, MASK_NULL, MASK_DEFAULT.
|
|
7951
|
+
:rtype: str
|
|
7952
|
+
"""
|
|
7953
|
+
return self._StrategyType
|
|
7954
|
+
|
|
7955
|
+
@StrategyType.setter
|
|
7956
|
+
def StrategyType(self, StrategyType):
|
|
7957
|
+
self._StrategyType = StrategyType
|
|
7958
|
+
|
|
7959
|
+
@property
|
|
7960
|
+
def StrategyDesc(self):
|
|
7961
|
+
r"""Policy description
|
|
7962
|
+
:rtype: str
|
|
7963
|
+
"""
|
|
7964
|
+
return self._StrategyDesc
|
|
7965
|
+
|
|
7966
|
+
@StrategyDesc.setter
|
|
7967
|
+
def StrategyDesc(self, StrategyDesc):
|
|
7968
|
+
self._StrategyDesc = StrategyDesc
|
|
7969
|
+
|
|
7970
|
+
@property
|
|
7971
|
+
def Groups(self):
|
|
7972
|
+
r"""User group policy list.
|
|
7973
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7974
|
+
:rtype: list of GroupInfo
|
|
7975
|
+
"""
|
|
7976
|
+
return self._Groups
|
|
7977
|
+
|
|
7978
|
+
@Groups.setter
|
|
7979
|
+
def Groups(self, Groups):
|
|
7980
|
+
self._Groups = Groups
|
|
7981
|
+
|
|
7982
|
+
@property
|
|
7983
|
+
def Users(self):
|
|
7984
|
+
r"""User sub-account uin list, concatenated by ;.
|
|
7985
|
+
:rtype: str
|
|
7986
|
+
"""
|
|
7987
|
+
return self._Users
|
|
7988
|
+
|
|
7989
|
+
@Users.setter
|
|
7990
|
+
def Users(self, Users):
|
|
7991
|
+
self._Users = Users
|
|
7992
|
+
|
|
7993
|
+
@property
|
|
7994
|
+
def StrategyId(self):
|
|
7995
|
+
r"""Policy ID
|
|
7996
|
+
:rtype: str
|
|
7997
|
+
"""
|
|
7998
|
+
return self._StrategyId
|
|
7999
|
+
|
|
8000
|
+
@StrategyId.setter
|
|
8001
|
+
def StrategyId(self, StrategyId):
|
|
8002
|
+
self._StrategyId = StrategyId
|
|
8003
|
+
|
|
8004
|
+
|
|
8005
|
+
def _deserialize(self, params):
|
|
8006
|
+
self._StrategyName = params.get("StrategyName")
|
|
8007
|
+
self._StrategyType = params.get("StrategyType")
|
|
8008
|
+
self._StrategyDesc = params.get("StrategyDesc")
|
|
8009
|
+
if params.get("Groups") is not None:
|
|
8010
|
+
self._Groups = []
|
|
8011
|
+
for item in params.get("Groups"):
|
|
8012
|
+
obj = GroupInfo()
|
|
8013
|
+
obj._deserialize(item)
|
|
8014
|
+
self._Groups.append(obj)
|
|
8015
|
+
self._Users = params.get("Users")
|
|
8016
|
+
self._StrategyId = params.get("StrategyId")
|
|
8017
|
+
memeber_set = set(params.keys())
|
|
8018
|
+
for name, value in vars(self).items():
|
|
8019
|
+
property_name = name[1:]
|
|
8020
|
+
if property_name in memeber_set:
|
|
8021
|
+
memeber_set.remove(property_name)
|
|
8022
|
+
if len(memeber_set) > 0:
|
|
8023
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8024
|
+
|
|
8025
|
+
|
|
8026
|
+
|
|
8027
|
+
class DataMaskStrategyPolicy(AbstractModel):
|
|
8028
|
+
r"""Masking policy permission object.
|
|
8029
|
+
|
|
8030
|
+
"""
|
|
8031
|
+
|
|
8032
|
+
def __init__(self):
|
|
8033
|
+
r"""
|
|
8034
|
+
:param _PolicyInfo: Masking permission object.
|
|
8035
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8036
|
+
:type PolicyInfo: :class:`tencentcloud.dlc.v20210125.models.Policy`
|
|
8037
|
+
:param _DataMaskStrategyId: Masking policy ID. specifies the ID of the data masking policy.
|
|
8038
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8039
|
+
:type DataMaskStrategyId: str
|
|
8040
|
+
:param _ColumnType: Bound field type.
|
|
8041
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8042
|
+
:type ColumnType: str
|
|
8043
|
+
"""
|
|
8044
|
+
self._PolicyInfo = None
|
|
8045
|
+
self._DataMaskStrategyId = None
|
|
8046
|
+
self._ColumnType = None
|
|
8047
|
+
|
|
8048
|
+
@property
|
|
8049
|
+
def PolicyInfo(self):
|
|
8050
|
+
r"""Masking permission object.
|
|
8051
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8052
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.Policy`
|
|
8053
|
+
"""
|
|
8054
|
+
return self._PolicyInfo
|
|
8055
|
+
|
|
8056
|
+
@PolicyInfo.setter
|
|
8057
|
+
def PolicyInfo(self, PolicyInfo):
|
|
8058
|
+
self._PolicyInfo = PolicyInfo
|
|
8059
|
+
|
|
8060
|
+
@property
|
|
8061
|
+
def DataMaskStrategyId(self):
|
|
8062
|
+
r"""Masking policy ID. specifies the ID of the data masking policy.
|
|
8063
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8064
|
+
:rtype: str
|
|
8065
|
+
"""
|
|
8066
|
+
return self._DataMaskStrategyId
|
|
8067
|
+
|
|
8068
|
+
@DataMaskStrategyId.setter
|
|
8069
|
+
def DataMaskStrategyId(self, DataMaskStrategyId):
|
|
8070
|
+
self._DataMaskStrategyId = DataMaskStrategyId
|
|
8071
|
+
|
|
8072
|
+
@property
|
|
8073
|
+
def ColumnType(self):
|
|
8074
|
+
r"""Bound field type.
|
|
8075
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8076
|
+
:rtype: str
|
|
8077
|
+
"""
|
|
8078
|
+
return self._ColumnType
|
|
8079
|
+
|
|
8080
|
+
@ColumnType.setter
|
|
8081
|
+
def ColumnType(self, ColumnType):
|
|
8082
|
+
self._ColumnType = ColumnType
|
|
8083
|
+
|
|
8084
|
+
|
|
8085
|
+
def _deserialize(self, params):
|
|
8086
|
+
if params.get("PolicyInfo") is not None:
|
|
8087
|
+
self._PolicyInfo = Policy()
|
|
8088
|
+
self._PolicyInfo._deserialize(params.get("PolicyInfo"))
|
|
8089
|
+
self._DataMaskStrategyId = params.get("DataMaskStrategyId")
|
|
8090
|
+
self._ColumnType = params.get("ColumnType")
|
|
8091
|
+
memeber_set = set(params.keys())
|
|
8092
|
+
for name, value in vars(self).items():
|
|
8093
|
+
property_name = name[1:]
|
|
8094
|
+
if property_name in memeber_set:
|
|
8095
|
+
memeber_set.remove(property_name)
|
|
8096
|
+
if len(memeber_set) > 0:
|
|
8097
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8098
|
+
|
|
8099
|
+
|
|
8100
|
+
|
|
7759
8101
|
class DeleteCHDFSBindingProductRequest(AbstractModel):
|
|
7760
8102
|
r"""DeleteCHDFSBindingProduct request structure.
|
|
7761
8103
|
|
|
@@ -14794,6 +15136,57 @@ class GrantDLCCatalogAccessResponse(AbstractModel):
|
|
|
14794
15136
|
self._RequestId = params.get("RequestId")
|
|
14795
15137
|
|
|
14796
15138
|
|
|
15139
|
+
class GroupInfo(AbstractModel):
|
|
15140
|
+
r"""DMask user group information.
|
|
15141
|
+
|
|
15142
|
+
"""
|
|
15143
|
+
|
|
15144
|
+
def __init__(self):
|
|
15145
|
+
r"""
|
|
15146
|
+
:param _WorkGroupId: User group ID.
|
|
15147
|
+
:type WorkGroupId: int
|
|
15148
|
+
:param _StrategyType: Policy type.
|
|
15149
|
+
:type StrategyType: str
|
|
15150
|
+
"""
|
|
15151
|
+
self._WorkGroupId = None
|
|
15152
|
+
self._StrategyType = None
|
|
15153
|
+
|
|
15154
|
+
@property
|
|
15155
|
+
def WorkGroupId(self):
|
|
15156
|
+
r"""User group ID.
|
|
15157
|
+
:rtype: int
|
|
15158
|
+
"""
|
|
15159
|
+
return self._WorkGroupId
|
|
15160
|
+
|
|
15161
|
+
@WorkGroupId.setter
|
|
15162
|
+
def WorkGroupId(self, WorkGroupId):
|
|
15163
|
+
self._WorkGroupId = WorkGroupId
|
|
15164
|
+
|
|
15165
|
+
@property
|
|
15166
|
+
def StrategyType(self):
|
|
15167
|
+
r"""Policy type.
|
|
15168
|
+
:rtype: str
|
|
15169
|
+
"""
|
|
15170
|
+
return self._StrategyType
|
|
15171
|
+
|
|
15172
|
+
@StrategyType.setter
|
|
15173
|
+
def StrategyType(self, StrategyType):
|
|
15174
|
+
self._StrategyType = StrategyType
|
|
15175
|
+
|
|
15176
|
+
|
|
15177
|
+
def _deserialize(self, params):
|
|
15178
|
+
self._WorkGroupId = params.get("WorkGroupId")
|
|
15179
|
+
self._StrategyType = params.get("StrategyType")
|
|
15180
|
+
memeber_set = set(params.keys())
|
|
15181
|
+
for name, value in vars(self).items():
|
|
15182
|
+
property_name = name[1:]
|
|
15183
|
+
if property_name in memeber_set:
|
|
15184
|
+
memeber_set.remove(property_name)
|
|
15185
|
+
if len(memeber_set) > 0:
|
|
15186
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15187
|
+
|
|
15188
|
+
|
|
15189
|
+
|
|
14797
15190
|
class JobResponseInfo(AbstractModel):
|
|
14798
15191
|
r"""Job information
|
|
14799
15192
|
|
|
@@ -16876,26 +17269,26 @@ class Policy(AbstractModel):
|
|
|
16876
17269
|
|
|
16877
17270
|
def __init__(self):
|
|
16878
17271
|
r"""
|
|
16879
|
-
:param _Database: The name
|
|
17272
|
+
:param _Database: The database name requiring authorization. use * to represent all databases under the current Catalog. for administrator level authorization type, only * is allowed. for data connection level authorization type, leave it blank. for other types, any specified database is allowed.
|
|
16880
17273
|
:type Database: str
|
|
16881
|
-
:param _Catalog:
|
|
17274
|
+
:param _Catalog: Specifies the name of the data source requiring authorization. at administrator level, only * is supported (representing all resources at this level). for database-level or data source-level authentication, only COSDataCatalog or * is supported. for table-level authentication, user-defined data sources can be filled. defaults to DataLakeCatalog if left blank. note: if authenticating a user-defined data source, the permissions DLC can manage are a subset of the account provided when the user accesses the data source.
|
|
16882
17275
|
:type Catalog: str
|
|
16883
|
-
:param _Table:
|
|
17276
|
+
:param _Table: Specifies the table name requiring authorization. use * to represent all tables in the current Database. for administrator-level authorization type, only * is allowed. for data connection level or Database-level authorization type, leave it blank. for other types, any specific data table can be specified.
|
|
16884
17277
|
:type Table: str
|
|
16885
17278
|
:param _Operation: The target permissions, which vary by permission level. Admin: `ALL` (default); data connection: `CREATE`; database: `ALL`, `CREATE`, `ALTER`, and `DROP`; table: `ALL`, `SELECT`, `INSERT`, `ALTER`, `DELETE`, `DROP`, and `UPDATE`. Note: For table permissions, if a data source other than `COSDataCatalog` is specified, only the `SELECT` permission can be granted here.
|
|
16886
17279
|
:type Operation: str
|
|
16887
17280
|
:param _PolicyType: The permission type. Valid values: `ADMIN`, `DATASOURCE`, `DATABASE`, `TABLE`, `VIEW`, `FUNCTION`, `COLUMN`, and `ENGINE`. Note: If it is left empty, `ADMIN` is used.
|
|
16888
17281
|
:type PolicyType: str
|
|
16889
|
-
:param _Function:
|
|
17282
|
+
:param _Function: Name of the function requiring authorization. use * to represent all functions in the current Catalog. for administrator-level authorization type, only * is allowed. for data connection-level authorization type, leave it blank. for other types, any function can be specified.
|
|
16890
17283
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
16891
17284
|
:type Function: str
|
|
16892
|
-
:param _View:
|
|
17285
|
+
:param _View: Authorization is required for the view. fill in * to represent all views under the current Database. when the authorization type is administrator level, only * is allowed. when the authorization type is data connection level or Database level, only blank is allowed. for other types, any view can be specified.
|
|
16893
17286
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
16894
17287
|
:type View: str
|
|
16895
|
-
:param _Column:
|
|
17288
|
+
:param _Column: Columns requiring authorization. use * to represent all current columns. when the authorization type is administrator level, only * is allowed.
|
|
16896
17289
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
16897
17290
|
:type Column: str
|
|
16898
|
-
:param _DataEngine: The
|
|
17291
|
+
:param _DataEngine: The data engine requiring authorization. use * to represent all current engines. when the authorization type is administrator level, only * is allowed.
|
|
16899
17292
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
16900
17293
|
:type DataEngine: str
|
|
16901
17294
|
:param _ReAuth: Whether the grantee is allowed to further grant the permissions. Valid values: `false` (default) and `true` (the grantee can grant permissions gained here to other sub-users).
|
|
@@ -16922,6 +17315,9 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
16922
17315
|
:param _Id: The policy ID.
|
|
16923
17316
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
16924
17317
|
:type Id: int
|
|
17318
|
+
:param _EngineGeneration: Specifies the engine type.
|
|
17319
|
+
|
|
17320
|
+
:type EngineGeneration: str
|
|
16925
17321
|
"""
|
|
16926
17322
|
self._Database = None
|
|
16927
17323
|
self._Catalog = None
|
|
@@ -16940,10 +17336,11 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
16940
17336
|
self._SourceId = None
|
|
16941
17337
|
self._SourceName = None
|
|
16942
17338
|
self._Id = None
|
|
17339
|
+
self._EngineGeneration = None
|
|
16943
17340
|
|
|
16944
17341
|
@property
|
|
16945
17342
|
def Database(self):
|
|
16946
|
-
r"""The name
|
|
17343
|
+
r"""The database name requiring authorization. use * to represent all databases under the current Catalog. for administrator level authorization type, only * is allowed. for data connection level authorization type, leave it blank. for other types, any specified database is allowed.
|
|
16947
17344
|
:rtype: str
|
|
16948
17345
|
"""
|
|
16949
17346
|
return self._Database
|
|
@@ -16954,7 +17351,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
16954
17351
|
|
|
16955
17352
|
@property
|
|
16956
17353
|
def Catalog(self):
|
|
16957
|
-
r"""
|
|
17354
|
+
r"""Specifies the name of the data source requiring authorization. at administrator level, only * is supported (representing all resources at this level). for database-level or data source-level authentication, only COSDataCatalog or * is supported. for table-level authentication, user-defined data sources can be filled. defaults to DataLakeCatalog if left blank. note: if authenticating a user-defined data source, the permissions DLC can manage are a subset of the account provided when the user accesses the data source.
|
|
16958
17355
|
:rtype: str
|
|
16959
17356
|
"""
|
|
16960
17357
|
return self._Catalog
|
|
@@ -16965,7 +17362,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
16965
17362
|
|
|
16966
17363
|
@property
|
|
16967
17364
|
def Table(self):
|
|
16968
|
-
r"""
|
|
17365
|
+
r"""Specifies the table name requiring authorization. use * to represent all tables in the current Database. for administrator-level authorization type, only * is allowed. for data connection level or Database-level authorization type, leave it blank. for other types, any specific data table can be specified.
|
|
16969
17366
|
:rtype: str
|
|
16970
17367
|
"""
|
|
16971
17368
|
return self._Table
|
|
@@ -16998,7 +17395,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
16998
17395
|
|
|
16999
17396
|
@property
|
|
17000
17397
|
def Function(self):
|
|
17001
|
-
r"""
|
|
17398
|
+
r"""Name of the function requiring authorization. use * to represent all functions in the current Catalog. for administrator-level authorization type, only * is allowed. for data connection-level authorization type, leave it blank. for other types, any function can be specified.
|
|
17002
17399
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
17003
17400
|
:rtype: str
|
|
17004
17401
|
"""
|
|
@@ -17010,7 +17407,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
17010
17407
|
|
|
17011
17408
|
@property
|
|
17012
17409
|
def View(self):
|
|
17013
|
-
r"""
|
|
17410
|
+
r"""Authorization is required for the view. fill in * to represent all views under the current Database. when the authorization type is administrator level, only * is allowed. when the authorization type is data connection level or Database level, only blank is allowed. for other types, any view can be specified.
|
|
17014
17411
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
17015
17412
|
:rtype: str
|
|
17016
17413
|
"""
|
|
@@ -17022,7 +17419,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
17022
17419
|
|
|
17023
17420
|
@property
|
|
17024
17421
|
def Column(self):
|
|
17025
|
-
r"""
|
|
17422
|
+
r"""Columns requiring authorization. use * to represent all current columns. when the authorization type is administrator level, only * is allowed.
|
|
17026
17423
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
17027
17424
|
:rtype: str
|
|
17028
17425
|
"""
|
|
@@ -17034,7 +17431,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
17034
17431
|
|
|
17035
17432
|
@property
|
|
17036
17433
|
def DataEngine(self):
|
|
17037
|
-
r"""The
|
|
17434
|
+
r"""The data engine requiring authorization. use * to represent all current engines. when the authorization type is administrator level, only * is allowed.
|
|
17038
17435
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
17039
17436
|
:rtype: str
|
|
17040
17437
|
"""
|
|
@@ -17140,6 +17537,18 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
17140
17537
|
def Id(self, Id):
|
|
17141
17538
|
self._Id = Id
|
|
17142
17539
|
|
|
17540
|
+
@property
|
|
17541
|
+
def EngineGeneration(self):
|
|
17542
|
+
r"""Specifies the engine type.
|
|
17543
|
+
|
|
17544
|
+
:rtype: str
|
|
17545
|
+
"""
|
|
17546
|
+
return self._EngineGeneration
|
|
17547
|
+
|
|
17548
|
+
@EngineGeneration.setter
|
|
17549
|
+
def EngineGeneration(self, EngineGeneration):
|
|
17550
|
+
self._EngineGeneration = EngineGeneration
|
|
17551
|
+
|
|
17143
17552
|
|
|
17144
17553
|
def _deserialize(self, params):
|
|
17145
17554
|
self._Database = params.get("Database")
|
|
@@ -17159,6 +17568,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
17159
17568
|
self._SourceId = params.get("SourceId")
|
|
17160
17569
|
self._SourceName = params.get("SourceName")
|
|
17161
17570
|
self._Id = params.get("Id")
|
|
17571
|
+
self._EngineGeneration = params.get("EngineGeneration")
|
|
17162
17572
|
memeber_set = set(params.keys())
|
|
17163
17573
|
for name, value in vars(self).items():
|
|
17164
17574
|
property_name = name[1:]
|