tencentcloud-sdk-python 3.0.976__py2.py3-none-any.whl → 3.0.977__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 might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cdwch/v20200915/cdwch_client.py +23 -0
- tencentcloud/cdwch/v20200915/models.py +75 -0
- tencentcloud/cfw/v20190904/cfw_client.py +644 -0
- tencentcloud/cfw/v20190904/models.py +11557 -5960
- tencentcloud/domain/v20180808/errorcodes.py +1 -1
- tencentcloud/eb/v20210416/eb_client.py +92 -0
- tencentcloud/eb/v20210416/models.py +407 -0
- tencentcloud/ess/v20201111/ess_client.py +41 -16
- tencentcloud/ess/v20201111/models.py +312 -185
- tencentcloud/facefusion/v20181201/facefusion_client.py +3 -1
- tencentcloud/iai/v20180301/iai_client.py +0 -1
- tencentcloud/iai/v20180301/models.py +1 -5
- tencentcloud/iai/v20200303/models.py +2 -6
- tencentcloud/sqlserver/v20180328/models.py +315 -0
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +46 -0
- tencentcloud/tcr/v20190924/models.py +17 -3
- tencentcloud/tcr/v20190924/tcr_client.py +1 -1
- tencentcloud/trocket/v20230308/errorcodes.py +9 -0
- tencentcloud/trocket/v20230308/models.py +985 -6
- tencentcloud/trocket/v20230308/trocket_client.py +92 -0
- tencentcloud/trtc/v20190722/models.py +1 -1
- tencentcloud/waf/v20180125/models.py +94 -180
- tencentcloud/waf/v20180125/waf_client.py +23 -46
- {tencentcloud_sdk_python-3.0.976.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.976.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/RECORD +29 -29
- {tencentcloud_sdk_python-3.0.976.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.976.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.976.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/top_level.txt +0 -0
|
@@ -75,7 +75,9 @@ class FacefusionClient(AbstractClient):
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
def FaceFusionLite(self, request):
|
|
78
|
-
"""
|
|
78
|
+
"""接口不再使用
|
|
79
|
+
|
|
80
|
+
人脸融合活动专用版,不推荐使用。人脸融合接口建议使用[人脸融合](https://cloud.tencent.com/document/product/670/31061)或[选脸融合](https://cloud.tencent.com/document/product/670/37736)接口
|
|
79
81
|
|
|
80
82
|
:param request: Request instance for FaceFusionLite.
|
|
81
83
|
:type request: :class:`tencentcloud.facefusion.v20181201.models.FaceFusionLiteRequest`
|
|
@@ -317,7 +317,6 @@ class IaiClient(AbstractClient):
|
|
|
317
317
|
>
|
|
318
318
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
319
319
|
|
|
320
|
-
|
|
321
320
|
:param request: Request instance for DetectFace.
|
|
322
321
|
:type request: :class:`tencentcloud.iai.v20180301.models.DetectFaceRequest`
|
|
323
322
|
:rtype: :class:`tencentcloud.iai.v20180301.models.DetectFaceResponse`
|
|
@@ -2300,13 +2300,9 @@ class DetectFaceResponse(AbstractModel):
|
|
|
2300
2300
|
:param _FaceInfos: 人脸信息列表。包含人脸坐标信息、属性信息(若需要)、质量分信息(若需要)。
|
|
2301
2301
|
:type FaceInfos: list of FaceInfo
|
|
2302
2302
|
:param _FaceModelVersion: 人脸识别服务所用的算法模型版本。
|
|
2303
|
-
|
|
2304
2303
|
目前入参支持 “2.0”和“3.0“ 两个输入。
|
|
2305
|
-
|
|
2306
2304
|
2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。
|
|
2307
|
-
|
|
2308
2305
|
2020年11月26日后开通服务的账号仅支持输入“3.0”。
|
|
2309
|
-
|
|
2310
2306
|
不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
|
|
2311
2307
|
:type FaceModelVersion: str
|
|
2312
2308
|
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -2665,7 +2661,7 @@ class FaceAttributesInfo(AbstractModel):
|
|
|
2665
2661
|
:type Gender: int
|
|
2666
2662
|
:param _Age: 年龄 [0~100]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
|
2667
2663
|
:type Age: int
|
|
2668
|
-
:param _Expression: 微笑[0(normal,正常)
|
|
2664
|
+
:param _Expression: 微笑[0(normal,正常))~100(laugh,大笑)]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
|
2669
2665
|
:type Expression: int
|
|
2670
2666
|
:param _Glass: 是否有眼镜 [true,false]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
|
2671
2667
|
:type Glass: bool
|
|
@@ -2370,13 +2370,9 @@ Url、Image必须提供一个,如果都提供,只使用 Url。
|
|
|
2370
2370
|
建议:人脸入库操作建议开启此功能。
|
|
2371
2371
|
:type NeedQualityDetection: int
|
|
2372
2372
|
:param _FaceModelVersion: 人脸识别服务所用的算法模型版本。
|
|
2373
|
-
|
|
2374
2373
|
目前入参支持 “2.0”和“3.0“ 两个输入。
|
|
2375
|
-
|
|
2376
2374
|
2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。
|
|
2377
|
-
|
|
2378
2375
|
2020年11月26日后开通服务的账号仅支持输入“3.0”。
|
|
2379
|
-
|
|
2380
2376
|
不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
|
|
2381
2377
|
:type FaceModelVersion: str
|
|
2382
2378
|
:param _NeedRotateDetection: 是否开启图片旋转识别支持。0为不开启,1为开启。默认为0。本参数的作用为,当图片中的人脸被旋转且图片没有exif信息时,如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况,请不要开启本参数。开启后,整体耗时将可能增加数百毫秒。
|
|
@@ -2964,7 +2960,7 @@ class FaceAttributesInfo(AbstractModel):
|
|
|
2964
2960
|
:type Gender: int
|
|
2965
2961
|
:param _Age: 年龄 [0~100]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
|
2966
2962
|
:type Age: int
|
|
2967
|
-
:param _Expression: 微笑[0(normal,正常)~
|
|
2963
|
+
:param _Expression: 微笑[0(normal,正常)~100(laugh,大笑)]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
|
2968
2964
|
:type Expression: int
|
|
2969
2965
|
:param _Glass: 是否有眼镜 [true,false]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
|
2970
2966
|
:type Glass: bool
|
|
@@ -4093,7 +4089,7 @@ class GetGroupInfoResponse(AbstractModel):
|
|
|
4093
4089
|
:type Tag: str
|
|
4094
4090
|
:param _FaceModelVersion: 人脸识别所用的算法模型版本。
|
|
4095
4091
|
:type FaceModelVersion: str
|
|
4096
|
-
:param _CreationTimestamp: Group
|
|
4092
|
+
:param _CreationTimestamp: Group的创建时间和日期。CreationTimestamp 的值是自 Unix 纪元时间到Group创建时间的毫秒数。
|
|
4097
4093
|
:type CreationTimestamp: int
|
|
4098
4094
|
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4099
4095
|
:type RequestId: str
|
|
@@ -9116,6 +9116,153 @@ class DescribeFlowStatusResponse(AbstractModel):
|
|
|
9116
9116
|
self._RequestId = params.get("RequestId")
|
|
9117
9117
|
|
|
9118
9118
|
|
|
9119
|
+
class DescribeHASwitchLogRequest(AbstractModel):
|
|
9120
|
+
"""DescribeHASwitchLog请求参数结构体
|
|
9121
|
+
|
|
9122
|
+
"""
|
|
9123
|
+
|
|
9124
|
+
def __init__(self):
|
|
9125
|
+
r"""
|
|
9126
|
+
:param _InstanceId: 实例ID
|
|
9127
|
+
:type InstanceId: str
|
|
9128
|
+
:param _StartTime: 开始时间(yyyy-MM-dd HH:mm:ss)
|
|
9129
|
+
:type StartTime: str
|
|
9130
|
+
:param _EndTime: 结束时间(yyyy-MM-dd HH:mm:ss)
|
|
9131
|
+
:type EndTime: str
|
|
9132
|
+
:param _SwitchType: 切换模式 0-系统自动切换,1-手动切换,不填默认查全部。
|
|
9133
|
+
:type SwitchType: int
|
|
9134
|
+
:param _Limit: 分页,页大小
|
|
9135
|
+
:type Limit: int
|
|
9136
|
+
:param _Offset: 分页,页数
|
|
9137
|
+
:type Offset: int
|
|
9138
|
+
"""
|
|
9139
|
+
self._InstanceId = None
|
|
9140
|
+
self._StartTime = None
|
|
9141
|
+
self._EndTime = None
|
|
9142
|
+
self._SwitchType = None
|
|
9143
|
+
self._Limit = None
|
|
9144
|
+
self._Offset = None
|
|
9145
|
+
|
|
9146
|
+
@property
|
|
9147
|
+
def InstanceId(self):
|
|
9148
|
+
return self._InstanceId
|
|
9149
|
+
|
|
9150
|
+
@InstanceId.setter
|
|
9151
|
+
def InstanceId(self, InstanceId):
|
|
9152
|
+
self._InstanceId = InstanceId
|
|
9153
|
+
|
|
9154
|
+
@property
|
|
9155
|
+
def StartTime(self):
|
|
9156
|
+
return self._StartTime
|
|
9157
|
+
|
|
9158
|
+
@StartTime.setter
|
|
9159
|
+
def StartTime(self, StartTime):
|
|
9160
|
+
self._StartTime = StartTime
|
|
9161
|
+
|
|
9162
|
+
@property
|
|
9163
|
+
def EndTime(self):
|
|
9164
|
+
return self._EndTime
|
|
9165
|
+
|
|
9166
|
+
@EndTime.setter
|
|
9167
|
+
def EndTime(self, EndTime):
|
|
9168
|
+
self._EndTime = EndTime
|
|
9169
|
+
|
|
9170
|
+
@property
|
|
9171
|
+
def SwitchType(self):
|
|
9172
|
+
return self._SwitchType
|
|
9173
|
+
|
|
9174
|
+
@SwitchType.setter
|
|
9175
|
+
def SwitchType(self, SwitchType):
|
|
9176
|
+
self._SwitchType = SwitchType
|
|
9177
|
+
|
|
9178
|
+
@property
|
|
9179
|
+
def Limit(self):
|
|
9180
|
+
return self._Limit
|
|
9181
|
+
|
|
9182
|
+
@Limit.setter
|
|
9183
|
+
def Limit(self, Limit):
|
|
9184
|
+
self._Limit = Limit
|
|
9185
|
+
|
|
9186
|
+
@property
|
|
9187
|
+
def Offset(self):
|
|
9188
|
+
return self._Offset
|
|
9189
|
+
|
|
9190
|
+
@Offset.setter
|
|
9191
|
+
def Offset(self, Offset):
|
|
9192
|
+
self._Offset = Offset
|
|
9193
|
+
|
|
9194
|
+
|
|
9195
|
+
def _deserialize(self, params):
|
|
9196
|
+
self._InstanceId = params.get("InstanceId")
|
|
9197
|
+
self._StartTime = params.get("StartTime")
|
|
9198
|
+
self._EndTime = params.get("EndTime")
|
|
9199
|
+
self._SwitchType = params.get("SwitchType")
|
|
9200
|
+
self._Limit = params.get("Limit")
|
|
9201
|
+
self._Offset = params.get("Offset")
|
|
9202
|
+
memeber_set = set(params.keys())
|
|
9203
|
+
for name, value in vars(self).items():
|
|
9204
|
+
property_name = name[1:]
|
|
9205
|
+
if property_name in memeber_set:
|
|
9206
|
+
memeber_set.remove(property_name)
|
|
9207
|
+
if len(memeber_set) > 0:
|
|
9208
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9209
|
+
|
|
9210
|
+
|
|
9211
|
+
|
|
9212
|
+
class DescribeHASwitchLogResponse(AbstractModel):
|
|
9213
|
+
"""DescribeHASwitchLog返回参数结构体
|
|
9214
|
+
|
|
9215
|
+
"""
|
|
9216
|
+
|
|
9217
|
+
def __init__(self):
|
|
9218
|
+
r"""
|
|
9219
|
+
:param _TotalCount: 日志总数量
|
|
9220
|
+
:type TotalCount: int
|
|
9221
|
+
:param _SwitchLog: 主备切换日志
|
|
9222
|
+
:type SwitchLog: list of SwitchLog
|
|
9223
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
9224
|
+
:type RequestId: str
|
|
9225
|
+
"""
|
|
9226
|
+
self._TotalCount = None
|
|
9227
|
+
self._SwitchLog = None
|
|
9228
|
+
self._RequestId = None
|
|
9229
|
+
|
|
9230
|
+
@property
|
|
9231
|
+
def TotalCount(self):
|
|
9232
|
+
return self._TotalCount
|
|
9233
|
+
|
|
9234
|
+
@TotalCount.setter
|
|
9235
|
+
def TotalCount(self, TotalCount):
|
|
9236
|
+
self._TotalCount = TotalCount
|
|
9237
|
+
|
|
9238
|
+
@property
|
|
9239
|
+
def SwitchLog(self):
|
|
9240
|
+
return self._SwitchLog
|
|
9241
|
+
|
|
9242
|
+
@SwitchLog.setter
|
|
9243
|
+
def SwitchLog(self, SwitchLog):
|
|
9244
|
+
self._SwitchLog = SwitchLog
|
|
9245
|
+
|
|
9246
|
+
@property
|
|
9247
|
+
def RequestId(self):
|
|
9248
|
+
return self._RequestId
|
|
9249
|
+
|
|
9250
|
+
@RequestId.setter
|
|
9251
|
+
def RequestId(self, RequestId):
|
|
9252
|
+
self._RequestId = RequestId
|
|
9253
|
+
|
|
9254
|
+
|
|
9255
|
+
def _deserialize(self, params):
|
|
9256
|
+
self._TotalCount = params.get("TotalCount")
|
|
9257
|
+
if params.get("SwitchLog") is not None:
|
|
9258
|
+
self._SwitchLog = []
|
|
9259
|
+
for item in params.get("SwitchLog"):
|
|
9260
|
+
obj = SwitchLog()
|
|
9261
|
+
obj._deserialize(item)
|
|
9262
|
+
self._SwitchLog.append(obj)
|
|
9263
|
+
self._RequestId = params.get("RequestId")
|
|
9264
|
+
|
|
9265
|
+
|
|
9119
9266
|
class DescribeIncrementalMigrationRequest(AbstractModel):
|
|
9120
9267
|
"""DescribeIncrementalMigration请求参数结构体
|
|
9121
9268
|
|
|
@@ -19453,6 +19600,174 @@ class StopMigrationResponse(AbstractModel):
|
|
|
19453
19600
|
self._RequestId = params.get("RequestId")
|
|
19454
19601
|
|
|
19455
19602
|
|
|
19603
|
+
class SwitchCloudInstanceHARequest(AbstractModel):
|
|
19604
|
+
"""SwitchCloudInstanceHA请求参数结构体
|
|
19605
|
+
|
|
19606
|
+
"""
|
|
19607
|
+
|
|
19608
|
+
def __init__(self):
|
|
19609
|
+
r"""
|
|
19610
|
+
:param _InstanceId: 实例ID
|
|
19611
|
+
:type InstanceId: str
|
|
19612
|
+
:param _WaitSwitch: 切换执行方式,0-立刻执行,1-时间窗内执行,默认取值为0。
|
|
19613
|
+
:type WaitSwitch: int
|
|
19614
|
+
"""
|
|
19615
|
+
self._InstanceId = None
|
|
19616
|
+
self._WaitSwitch = None
|
|
19617
|
+
|
|
19618
|
+
@property
|
|
19619
|
+
def InstanceId(self):
|
|
19620
|
+
return self._InstanceId
|
|
19621
|
+
|
|
19622
|
+
@InstanceId.setter
|
|
19623
|
+
def InstanceId(self, InstanceId):
|
|
19624
|
+
self._InstanceId = InstanceId
|
|
19625
|
+
|
|
19626
|
+
@property
|
|
19627
|
+
def WaitSwitch(self):
|
|
19628
|
+
return self._WaitSwitch
|
|
19629
|
+
|
|
19630
|
+
@WaitSwitch.setter
|
|
19631
|
+
def WaitSwitch(self, WaitSwitch):
|
|
19632
|
+
self._WaitSwitch = WaitSwitch
|
|
19633
|
+
|
|
19634
|
+
|
|
19635
|
+
def _deserialize(self, params):
|
|
19636
|
+
self._InstanceId = params.get("InstanceId")
|
|
19637
|
+
self._WaitSwitch = params.get("WaitSwitch")
|
|
19638
|
+
memeber_set = set(params.keys())
|
|
19639
|
+
for name, value in vars(self).items():
|
|
19640
|
+
property_name = name[1:]
|
|
19641
|
+
if property_name in memeber_set:
|
|
19642
|
+
memeber_set.remove(property_name)
|
|
19643
|
+
if len(memeber_set) > 0:
|
|
19644
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
19645
|
+
|
|
19646
|
+
|
|
19647
|
+
|
|
19648
|
+
class SwitchCloudInstanceHAResponse(AbstractModel):
|
|
19649
|
+
"""SwitchCloudInstanceHA返回参数结构体
|
|
19650
|
+
|
|
19651
|
+
"""
|
|
19652
|
+
|
|
19653
|
+
def __init__(self):
|
|
19654
|
+
r"""
|
|
19655
|
+
:param _FlowId: 异步任务流程ID
|
|
19656
|
+
:type FlowId: int
|
|
19657
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
19658
|
+
:type RequestId: str
|
|
19659
|
+
"""
|
|
19660
|
+
self._FlowId = None
|
|
19661
|
+
self._RequestId = None
|
|
19662
|
+
|
|
19663
|
+
@property
|
|
19664
|
+
def FlowId(self):
|
|
19665
|
+
return self._FlowId
|
|
19666
|
+
|
|
19667
|
+
@FlowId.setter
|
|
19668
|
+
def FlowId(self, FlowId):
|
|
19669
|
+
self._FlowId = FlowId
|
|
19670
|
+
|
|
19671
|
+
@property
|
|
19672
|
+
def RequestId(self):
|
|
19673
|
+
return self._RequestId
|
|
19674
|
+
|
|
19675
|
+
@RequestId.setter
|
|
19676
|
+
def RequestId(self, RequestId):
|
|
19677
|
+
self._RequestId = RequestId
|
|
19678
|
+
|
|
19679
|
+
|
|
19680
|
+
def _deserialize(self, params):
|
|
19681
|
+
self._FlowId = params.get("FlowId")
|
|
19682
|
+
self._RequestId = params.get("RequestId")
|
|
19683
|
+
|
|
19684
|
+
|
|
19685
|
+
class SwitchLog(AbstractModel):
|
|
19686
|
+
"""主备切换日志
|
|
19687
|
+
|
|
19688
|
+
"""
|
|
19689
|
+
|
|
19690
|
+
def __init__(self):
|
|
19691
|
+
r"""
|
|
19692
|
+
:param _EventId: 切换事件ID
|
|
19693
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
19694
|
+
:type EventId: str
|
|
19695
|
+
:param _SwitchType: 切换模式 0-系统自动切换,1-手动切换
|
|
19696
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
19697
|
+
:type SwitchType: int
|
|
19698
|
+
:param _StartTime: 切换开始时间
|
|
19699
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
19700
|
+
:type StartTime: str
|
|
19701
|
+
:param _EndTime: 切换结束时间
|
|
19702
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
19703
|
+
:type EndTime: str
|
|
19704
|
+
:param _Reason: 机器故障导致自动切换
|
|
19705
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
19706
|
+
:type Reason: str
|
|
19707
|
+
"""
|
|
19708
|
+
self._EventId = None
|
|
19709
|
+
self._SwitchType = None
|
|
19710
|
+
self._StartTime = None
|
|
19711
|
+
self._EndTime = None
|
|
19712
|
+
self._Reason = None
|
|
19713
|
+
|
|
19714
|
+
@property
|
|
19715
|
+
def EventId(self):
|
|
19716
|
+
return self._EventId
|
|
19717
|
+
|
|
19718
|
+
@EventId.setter
|
|
19719
|
+
def EventId(self, EventId):
|
|
19720
|
+
self._EventId = EventId
|
|
19721
|
+
|
|
19722
|
+
@property
|
|
19723
|
+
def SwitchType(self):
|
|
19724
|
+
return self._SwitchType
|
|
19725
|
+
|
|
19726
|
+
@SwitchType.setter
|
|
19727
|
+
def SwitchType(self, SwitchType):
|
|
19728
|
+
self._SwitchType = SwitchType
|
|
19729
|
+
|
|
19730
|
+
@property
|
|
19731
|
+
def StartTime(self):
|
|
19732
|
+
return self._StartTime
|
|
19733
|
+
|
|
19734
|
+
@StartTime.setter
|
|
19735
|
+
def StartTime(self, StartTime):
|
|
19736
|
+
self._StartTime = StartTime
|
|
19737
|
+
|
|
19738
|
+
@property
|
|
19739
|
+
def EndTime(self):
|
|
19740
|
+
return self._EndTime
|
|
19741
|
+
|
|
19742
|
+
@EndTime.setter
|
|
19743
|
+
def EndTime(self, EndTime):
|
|
19744
|
+
self._EndTime = EndTime
|
|
19745
|
+
|
|
19746
|
+
@property
|
|
19747
|
+
def Reason(self):
|
|
19748
|
+
return self._Reason
|
|
19749
|
+
|
|
19750
|
+
@Reason.setter
|
|
19751
|
+
def Reason(self, Reason):
|
|
19752
|
+
self._Reason = Reason
|
|
19753
|
+
|
|
19754
|
+
|
|
19755
|
+
def _deserialize(self, params):
|
|
19756
|
+
self._EventId = params.get("EventId")
|
|
19757
|
+
self._SwitchType = params.get("SwitchType")
|
|
19758
|
+
self._StartTime = params.get("StartTime")
|
|
19759
|
+
self._EndTime = params.get("EndTime")
|
|
19760
|
+
self._Reason = params.get("Reason")
|
|
19761
|
+
memeber_set = set(params.keys())
|
|
19762
|
+
for name, value in vars(self).items():
|
|
19763
|
+
property_name = name[1:]
|
|
19764
|
+
if property_name in memeber_set:
|
|
19765
|
+
memeber_set.remove(property_name)
|
|
19766
|
+
if len(memeber_set) > 0:
|
|
19767
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
19768
|
+
|
|
19769
|
+
|
|
19770
|
+
|
|
19456
19771
|
class TDEConfigAttribute(AbstractModel):
|
|
19457
19772
|
"""TDE透明数据加密配置
|
|
19458
19773
|
|
|
@@ -1038,6 +1038,29 @@ class SqlserverClient(AbstractClient):
|
|
|
1038
1038
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1039
1039
|
|
|
1040
1040
|
|
|
1041
|
+
def DescribeHASwitchLog(self, request):
|
|
1042
|
+
"""本接口(DescribeHASwitchLog)用于手动主备切换。
|
|
1043
|
+
|
|
1044
|
+
:param request: Request instance for DescribeHASwitchLog.
|
|
1045
|
+
:type request: :class:`tencentcloud.sqlserver.v20180328.models.DescribeHASwitchLogRequest`
|
|
1046
|
+
:rtype: :class:`tencentcloud.sqlserver.v20180328.models.DescribeHASwitchLogResponse`
|
|
1047
|
+
|
|
1048
|
+
"""
|
|
1049
|
+
try:
|
|
1050
|
+
params = request._serialize()
|
|
1051
|
+
headers = request.headers
|
|
1052
|
+
body = self.call("DescribeHASwitchLog", params, headers=headers)
|
|
1053
|
+
response = json.loads(body)
|
|
1054
|
+
model = models.DescribeHASwitchLogResponse()
|
|
1055
|
+
model._deserialize(response["Response"])
|
|
1056
|
+
return model
|
|
1057
|
+
except Exception as e:
|
|
1058
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1059
|
+
raise
|
|
1060
|
+
else:
|
|
1061
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1062
|
+
|
|
1063
|
+
|
|
1041
1064
|
def DescribeIncrementalMigration(self, request):
|
|
1042
1065
|
"""本接口(DescribeIncrementalMigration)用于查询增量备份导入任务。
|
|
1043
1066
|
|
|
@@ -2559,6 +2582,29 @@ class SqlserverClient(AbstractClient):
|
|
|
2559
2582
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2560
2583
|
|
|
2561
2584
|
|
|
2585
|
+
def SwitchCloudInstanceHA(self, request):
|
|
2586
|
+
"""本接口(SwitchCloudInstanceHA)用于手动主备切换。
|
|
2587
|
+
|
|
2588
|
+
:param request: Request instance for SwitchCloudInstanceHA.
|
|
2589
|
+
:type request: :class:`tencentcloud.sqlserver.v20180328.models.SwitchCloudInstanceHARequest`
|
|
2590
|
+
:rtype: :class:`tencentcloud.sqlserver.v20180328.models.SwitchCloudInstanceHAResponse`
|
|
2591
|
+
|
|
2592
|
+
"""
|
|
2593
|
+
try:
|
|
2594
|
+
params = request._serialize()
|
|
2595
|
+
headers = request.headers
|
|
2596
|
+
body = self.call("SwitchCloudInstanceHA", params, headers=headers)
|
|
2597
|
+
response = json.loads(body)
|
|
2598
|
+
model = models.SwitchCloudInstanceHAResponse()
|
|
2599
|
+
model._deserialize(response["Response"])
|
|
2600
|
+
return model
|
|
2601
|
+
except Exception as e:
|
|
2602
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2603
|
+
raise
|
|
2604
|
+
else:
|
|
2605
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2606
|
+
|
|
2607
|
+
|
|
2562
2608
|
def TerminateDBInstance(self, request):
|
|
2563
2609
|
"""本接口(TerminateDBInstance)用于主动隔离实例,使得实例进入回收站。
|
|
2564
2610
|
|
|
@@ -8493,7 +8493,7 @@ class DescribeServiceAccountsRequest(AbstractModel):
|
|
|
8493
8493
|
:type RegistryId: str
|
|
8494
8494
|
:param _All: 列出所有服务级账号
|
|
8495
8495
|
:type All: bool
|
|
8496
|
-
:param _EmbedPermission:
|
|
8496
|
+
:param _EmbedPermission: 是否填充权限信息
|
|
8497
8497
|
:type EmbedPermission: bool
|
|
8498
8498
|
:param _Filters: 过滤条件
|
|
8499
8499
|
:type Filters: list of Filter
|
|
@@ -8590,7 +8590,7 @@ class DescribeServiceAccountsResponse(AbstractModel):
|
|
|
8590
8590
|
:param _ServiceAccounts: 服务级账号列表
|
|
8591
8591
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8592
8592
|
:type ServiceAccounts: list of ServiceAccount
|
|
8593
|
-
:param _TotalCount:
|
|
8593
|
+
:param _TotalCount: 服务级账户数量
|
|
8594
8594
|
:type TotalCount: int
|
|
8595
8595
|
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
8596
8596
|
:type RequestId: str
|
|
@@ -12453,7 +12453,7 @@ class Permission(AbstractModel):
|
|
|
12453
12453
|
:param _Resource: 资源路径,目前仅支持Namespace
|
|
12454
12454
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12455
12455
|
:type Resource: str
|
|
12456
|
-
:param _Actions: 动作,目前仅支持:tcr:PushRepository、tcr:PullRepository
|
|
12456
|
+
:param _Actions: 动作,目前仅支持:tcr:PushRepository、tcr:PullRepository、tcr:CreateRepository、tcr:CreateHelmChart、tcr:DescribeHelmCharts
|
|
12457
12457
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12458
12458
|
:type Actions: list of str
|
|
12459
12459
|
"""
|
|
@@ -12648,6 +12648,8 @@ class Registry(AbstractModel):
|
|
|
12648
12648
|
:param _RenewFlag: 预付费续费标识,0表示手动续费,1表示自动续费,2不续费并且不通知
|
|
12649
12649
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12650
12650
|
:type RenewFlag: int
|
|
12651
|
+
:param _DeletionProtection: 是否开启实例删除保护,false表示不开启
|
|
12652
|
+
:type DeletionProtection: bool
|
|
12651
12653
|
"""
|
|
12652
12654
|
self._RegistryId = None
|
|
12653
12655
|
self._RegistryName = None
|
|
@@ -12664,6 +12666,7 @@ class Registry(AbstractModel):
|
|
|
12664
12666
|
self._ExpiredAt = None
|
|
12665
12667
|
self._PayMod = None
|
|
12666
12668
|
self._RenewFlag = None
|
|
12669
|
+
self._DeletionProtection = None
|
|
12667
12670
|
|
|
12668
12671
|
@property
|
|
12669
12672
|
def RegistryId(self):
|
|
@@ -12785,6 +12788,14 @@ class Registry(AbstractModel):
|
|
|
12785
12788
|
def RenewFlag(self, RenewFlag):
|
|
12786
12789
|
self._RenewFlag = RenewFlag
|
|
12787
12790
|
|
|
12791
|
+
@property
|
|
12792
|
+
def DeletionProtection(self):
|
|
12793
|
+
return self._DeletionProtection
|
|
12794
|
+
|
|
12795
|
+
@DeletionProtection.setter
|
|
12796
|
+
def DeletionProtection(self, DeletionProtection):
|
|
12797
|
+
self._DeletionProtection = DeletionProtection
|
|
12798
|
+
|
|
12788
12799
|
|
|
12789
12800
|
def _deserialize(self, params):
|
|
12790
12801
|
self._RegistryId = params.get("RegistryId")
|
|
@@ -12804,6 +12815,7 @@ class Registry(AbstractModel):
|
|
|
12804
12815
|
self._ExpiredAt = params.get("ExpiredAt")
|
|
12805
12816
|
self._PayMod = params.get("PayMod")
|
|
12806
12817
|
self._RenewFlag = params.get("RenewFlag")
|
|
12818
|
+
self._DeletionProtection = params.get("DeletionProtection")
|
|
12807
12819
|
memeber_set = set(params.keys())
|
|
12808
12820
|
for name, value in vars(self).items():
|
|
12809
12821
|
property_name = name[1:]
|
|
@@ -14491,8 +14503,10 @@ class Tag(AbstractModel):
|
|
|
14491
14503
|
def __init__(self):
|
|
14492
14504
|
r"""
|
|
14493
14505
|
:param _Key: 云标签的key
|
|
14506
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14494
14507
|
:type Key: str
|
|
14495
14508
|
:param _Value: 云标签的值
|
|
14509
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14496
14510
|
:type Value: str
|
|
14497
14511
|
"""
|
|
14498
14512
|
self._Key = None
|
|
@@ -464,7 +464,7 @@ class TcrClient(AbstractClient):
|
|
|
464
464
|
|
|
465
465
|
|
|
466
466
|
def CreateServiceAccount(self, request):
|
|
467
|
-
"""
|
|
467
|
+
"""创建服务级账户
|
|
468
468
|
|
|
469
469
|
:param request: Request instance for CreateServiceAccount.
|
|
470
470
|
:type request: :class:`tencentcloud.tcr.v20190924.models.CreateServiceAccountRequest`
|
|
@@ -17,5 +17,14 @@
|
|
|
17
17
|
# 操作失败。
|
|
18
18
|
FAILEDOPERATION = 'FailedOperation'
|
|
19
19
|
|
|
20
|
+
# 实例未就绪,请稍后重试。
|
|
21
|
+
FAILEDOPERATION_INSTANCENOTREADY = 'FailedOperation.InstanceNotReady'
|
|
22
|
+
|
|
23
|
+
# 资源被占用。
|
|
24
|
+
RESOURCEINUSE = 'ResourceInUse'
|
|
25
|
+
|
|
20
26
|
# 实例不存在。
|
|
21
27
|
RESOURCENOTFOUND_INSTANCE = 'ResourceNotFound.Instance'
|
|
28
|
+
|
|
29
|
+
# 资源不可用。
|
|
30
|
+
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|