tencentcloud-sdk-python 3.0.1283__py2.py3-none-any.whl → 3.0.1285__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apm/v20210622/models.py +31 -59
- tencentcloud/billing/v20180709/models.py +8 -0
- tencentcloud/ccc/v20200210/models.py +15 -0
- tencentcloud/cdb/v20170320/cdb_client.py +23 -0
- tencentcloud/cdb/v20170320/models.py +79 -0
- tencentcloud/cfg/v20210820/models.py +30 -0
- tencentcloud/cloudapp/v20220530/models.py +15 -0
- tencentcloud/cloudaudit/v20190319/models.py +14 -0
- tencentcloud/cvm/v20170312/models.py +6 -6
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
- tencentcloud/cynosdb/v20190107/models.py +186 -0
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +2 -2
- tencentcloud/ess/v20201111/ess_client.py +23 -0
- tencentcloud/ess/v20201111/models.py +108 -0
- tencentcloud/essbasic/v20210526/models.py +25 -2
- tencentcloud/gwlb/v20240906/models.py +48 -24
- tencentcloud/hunyuan/v20230901/models.py +2 -2
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +29 -2
- tencentcloud/iotexplorer/v20190423/models.py +220 -0
- tencentcloud/lcic/v20220817/models.py +6 -4
- tencentcloud/live/v20180801/models.py +8 -8
- tencentcloud/mongodb/v20180408/errorcodes.py +15 -0
- tencentcloud/mongodb/v20180408/models.py +27 -12
- tencentcloud/mongodb/v20180408/mongodb_client.py +0 -1
- tencentcloud/mongodb/v20190725/models.py +81 -58
- tencentcloud/mongodb/v20190725/mongodb_client.py +2 -2
- tencentcloud/sms/v20210111/models.py +2 -2
- tencentcloud/vpc/v20170312/models.py +30 -0
- tencentcloud/vrs/v20200824/models.py +117 -6
- tencentcloud/vrs/v20200824/vrs_client.py +25 -2
- tencentcloud/wedata/v20210820/models.py +813 -2
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/RECORD +38 -38
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/top_level.txt +0 -0
@@ -304,6 +304,29 @@ class IotexplorerClient(AbstractClient):
|
|
304
304
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
305
305
|
|
306
306
|
|
307
|
+
def CreateCloudStorageAIServiceTask(self, request):
|
308
|
+
"""创建设备云存 AI 分析任务
|
309
|
+
|
310
|
+
:param request: Request instance for CreateCloudStorageAIServiceTask.
|
311
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.CreateCloudStorageAIServiceTaskRequest`
|
312
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.CreateCloudStorageAIServiceTaskResponse`
|
313
|
+
|
314
|
+
"""
|
315
|
+
try:
|
316
|
+
params = request._serialize()
|
317
|
+
headers = request.headers
|
318
|
+
body = self.call("CreateCloudStorageAIServiceTask", params, headers=headers)
|
319
|
+
response = json.loads(body)
|
320
|
+
model = models.CreateCloudStorageAIServiceTaskResponse()
|
321
|
+
model._deserialize(response["Response"])
|
322
|
+
return model
|
323
|
+
except Exception as e:
|
324
|
+
if isinstance(e, TencentCloudSDKException):
|
325
|
+
raise
|
326
|
+
else:
|
327
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
328
|
+
|
329
|
+
|
307
330
|
def CreateDevice(self, request):
|
308
331
|
"""创建设备
|
309
332
|
|
@@ -2998,7 +3021,9 @@ class IotexplorerClient(AbstractClient):
|
|
2998
3021
|
|
2999
3022
|
|
3000
3023
|
def PublishBroadcastMessage(self, request):
|
3001
|
-
"""
|
3024
|
+
"""发布广播消息、发布RRPC消息属于早期服务,目前已停止维护,需要从官网下线。
|
3025
|
+
|
3026
|
+
发布广播消息
|
3002
3027
|
|
3003
3028
|
:param request: Request instance for PublishBroadcastMessage.
|
3004
3029
|
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.PublishBroadcastMessageRequest`
|
@@ -3067,7 +3092,9 @@ class IotexplorerClient(AbstractClient):
|
|
3067
3092
|
|
3068
3093
|
|
3069
3094
|
def PublishRRPCMessage(self, request):
|
3070
|
-
"""
|
3095
|
+
"""发布广播消息、发布RRPC消息属于早期服务,目前已停止维护,需要从官网下线。
|
3096
|
+
|
3097
|
+
下发RRPC消息
|
3071
3098
|
|
3072
3099
|
:param request: Request instance for PublishRRPCMessage.
|
3073
3100
|
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.PublishRRPCMessageRequest`
|
@@ -2722,6 +2722,226 @@ class CreateCloudStorageAIServiceResponse(AbstractModel):
|
|
2722
2722
|
self._RequestId = params.get("RequestId")
|
2723
2723
|
|
2724
2724
|
|
2725
|
+
class CreateCloudStorageAIServiceTaskRequest(AbstractModel):
|
2726
|
+
"""CreateCloudStorageAIServiceTask请求参数结构体
|
2727
|
+
|
2728
|
+
"""
|
2729
|
+
|
2730
|
+
def __init__(self):
|
2731
|
+
r"""
|
2732
|
+
:param _ProductId: 产品 ID
|
2733
|
+
:type ProductId: str
|
2734
|
+
:param _DeviceName: 设备名称
|
2735
|
+
:type DeviceName: str
|
2736
|
+
:param _ServiceType: 云存 AI 服务类型。可选值:
|
2737
|
+
- `RealtimeObjectDetect`:目标检测
|
2738
|
+
- `Highlight`:视频浓缩
|
2739
|
+
- `VideoToText`:视频语义理解
|
2740
|
+
:type ServiceType: str
|
2741
|
+
:param _StartTime: 待分析云存的起始时间
|
2742
|
+
:type StartTime: int
|
2743
|
+
:param _EndTime: 待分析云存的结束时间
|
2744
|
+
:type EndTime: int
|
2745
|
+
:param _ChannelId: 通道 ID
|
2746
|
+
:type ChannelId: int
|
2747
|
+
:param _Config: 视频分析配置参数
|
2748
|
+
:type Config: str
|
2749
|
+
:param _ROI: 视频分析识别区域
|
2750
|
+
:type ROI: str
|
2751
|
+
:param _VideoURLs: 分析外部传入的视频 URL 列表,支持 HLS 点播(m3u8)及常见视频格式(mp4 等)
|
2752
|
+
:type VideoURLs: list of str
|
2753
|
+
:param _CustomId: 自定义任务 ID
|
2754
|
+
:type CustomId: str
|
2755
|
+
"""
|
2756
|
+
self._ProductId = None
|
2757
|
+
self._DeviceName = None
|
2758
|
+
self._ServiceType = None
|
2759
|
+
self._StartTime = None
|
2760
|
+
self._EndTime = None
|
2761
|
+
self._ChannelId = None
|
2762
|
+
self._Config = None
|
2763
|
+
self._ROI = None
|
2764
|
+
self._VideoURLs = None
|
2765
|
+
self._CustomId = None
|
2766
|
+
|
2767
|
+
@property
|
2768
|
+
def ProductId(self):
|
2769
|
+
"""产品 ID
|
2770
|
+
:rtype: str
|
2771
|
+
"""
|
2772
|
+
return self._ProductId
|
2773
|
+
|
2774
|
+
@ProductId.setter
|
2775
|
+
def ProductId(self, ProductId):
|
2776
|
+
self._ProductId = ProductId
|
2777
|
+
|
2778
|
+
@property
|
2779
|
+
def DeviceName(self):
|
2780
|
+
"""设备名称
|
2781
|
+
:rtype: str
|
2782
|
+
"""
|
2783
|
+
return self._DeviceName
|
2784
|
+
|
2785
|
+
@DeviceName.setter
|
2786
|
+
def DeviceName(self, DeviceName):
|
2787
|
+
self._DeviceName = DeviceName
|
2788
|
+
|
2789
|
+
@property
|
2790
|
+
def ServiceType(self):
|
2791
|
+
"""云存 AI 服务类型。可选值:
|
2792
|
+
- `RealtimeObjectDetect`:目标检测
|
2793
|
+
- `Highlight`:视频浓缩
|
2794
|
+
- `VideoToText`:视频语义理解
|
2795
|
+
:rtype: str
|
2796
|
+
"""
|
2797
|
+
return self._ServiceType
|
2798
|
+
|
2799
|
+
@ServiceType.setter
|
2800
|
+
def ServiceType(self, ServiceType):
|
2801
|
+
self._ServiceType = ServiceType
|
2802
|
+
|
2803
|
+
@property
|
2804
|
+
def StartTime(self):
|
2805
|
+
"""待分析云存的起始时间
|
2806
|
+
:rtype: int
|
2807
|
+
"""
|
2808
|
+
return self._StartTime
|
2809
|
+
|
2810
|
+
@StartTime.setter
|
2811
|
+
def StartTime(self, StartTime):
|
2812
|
+
self._StartTime = StartTime
|
2813
|
+
|
2814
|
+
@property
|
2815
|
+
def EndTime(self):
|
2816
|
+
"""待分析云存的结束时间
|
2817
|
+
:rtype: int
|
2818
|
+
"""
|
2819
|
+
return self._EndTime
|
2820
|
+
|
2821
|
+
@EndTime.setter
|
2822
|
+
def EndTime(self, EndTime):
|
2823
|
+
self._EndTime = EndTime
|
2824
|
+
|
2825
|
+
@property
|
2826
|
+
def ChannelId(self):
|
2827
|
+
"""通道 ID
|
2828
|
+
:rtype: int
|
2829
|
+
"""
|
2830
|
+
return self._ChannelId
|
2831
|
+
|
2832
|
+
@ChannelId.setter
|
2833
|
+
def ChannelId(self, ChannelId):
|
2834
|
+
self._ChannelId = ChannelId
|
2835
|
+
|
2836
|
+
@property
|
2837
|
+
def Config(self):
|
2838
|
+
"""视频分析配置参数
|
2839
|
+
:rtype: str
|
2840
|
+
"""
|
2841
|
+
return self._Config
|
2842
|
+
|
2843
|
+
@Config.setter
|
2844
|
+
def Config(self, Config):
|
2845
|
+
self._Config = Config
|
2846
|
+
|
2847
|
+
@property
|
2848
|
+
def ROI(self):
|
2849
|
+
"""视频分析识别区域
|
2850
|
+
:rtype: str
|
2851
|
+
"""
|
2852
|
+
return self._ROI
|
2853
|
+
|
2854
|
+
@ROI.setter
|
2855
|
+
def ROI(self, ROI):
|
2856
|
+
self._ROI = ROI
|
2857
|
+
|
2858
|
+
@property
|
2859
|
+
def VideoURLs(self):
|
2860
|
+
"""分析外部传入的视频 URL 列表,支持 HLS 点播(m3u8)及常见视频格式(mp4 等)
|
2861
|
+
:rtype: list of str
|
2862
|
+
"""
|
2863
|
+
return self._VideoURLs
|
2864
|
+
|
2865
|
+
@VideoURLs.setter
|
2866
|
+
def VideoURLs(self, VideoURLs):
|
2867
|
+
self._VideoURLs = VideoURLs
|
2868
|
+
|
2869
|
+
@property
|
2870
|
+
def CustomId(self):
|
2871
|
+
"""自定义任务 ID
|
2872
|
+
:rtype: str
|
2873
|
+
"""
|
2874
|
+
return self._CustomId
|
2875
|
+
|
2876
|
+
@CustomId.setter
|
2877
|
+
def CustomId(self, CustomId):
|
2878
|
+
self._CustomId = CustomId
|
2879
|
+
|
2880
|
+
|
2881
|
+
def _deserialize(self, params):
|
2882
|
+
self._ProductId = params.get("ProductId")
|
2883
|
+
self._DeviceName = params.get("DeviceName")
|
2884
|
+
self._ServiceType = params.get("ServiceType")
|
2885
|
+
self._StartTime = params.get("StartTime")
|
2886
|
+
self._EndTime = params.get("EndTime")
|
2887
|
+
self._ChannelId = params.get("ChannelId")
|
2888
|
+
self._Config = params.get("Config")
|
2889
|
+
self._ROI = params.get("ROI")
|
2890
|
+
self._VideoURLs = params.get("VideoURLs")
|
2891
|
+
self._CustomId = params.get("CustomId")
|
2892
|
+
memeber_set = set(params.keys())
|
2893
|
+
for name, value in vars(self).items():
|
2894
|
+
property_name = name[1:]
|
2895
|
+
if property_name in memeber_set:
|
2896
|
+
memeber_set.remove(property_name)
|
2897
|
+
if len(memeber_set) > 0:
|
2898
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2899
|
+
|
2900
|
+
|
2901
|
+
|
2902
|
+
class CreateCloudStorageAIServiceTaskResponse(AbstractModel):
|
2903
|
+
"""CreateCloudStorageAIServiceTask返回参数结构体
|
2904
|
+
|
2905
|
+
"""
|
2906
|
+
|
2907
|
+
def __init__(self):
|
2908
|
+
r"""
|
2909
|
+
:param _TaskId: 任务 ID
|
2910
|
+
:type TaskId: str
|
2911
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2912
|
+
:type RequestId: str
|
2913
|
+
"""
|
2914
|
+
self._TaskId = None
|
2915
|
+
self._RequestId = None
|
2916
|
+
|
2917
|
+
@property
|
2918
|
+
def TaskId(self):
|
2919
|
+
"""任务 ID
|
2920
|
+
:rtype: str
|
2921
|
+
"""
|
2922
|
+
return self._TaskId
|
2923
|
+
|
2924
|
+
@TaskId.setter
|
2925
|
+
def TaskId(self, TaskId):
|
2926
|
+
self._TaskId = TaskId
|
2927
|
+
|
2928
|
+
@property
|
2929
|
+
def RequestId(self):
|
2930
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2931
|
+
:rtype: str
|
2932
|
+
"""
|
2933
|
+
return self._RequestId
|
2934
|
+
|
2935
|
+
@RequestId.setter
|
2936
|
+
def RequestId(self, RequestId):
|
2937
|
+
self._RequestId = RequestId
|
2938
|
+
|
2939
|
+
|
2940
|
+
def _deserialize(self, params):
|
2941
|
+
self._TaskId = params.get("TaskId")
|
2942
|
+
self._RequestId = params.get("RequestId")
|
2943
|
+
|
2944
|
+
|
2725
2945
|
class CreateDeviceChannelRequest(AbstractModel):
|
2726
2946
|
"""CreateDeviceChannel请求参数结构体
|
2727
2947
|
|
@@ -2201,7 +2201,7 @@ video 纯视频
|
|
2201
2201
|
:type RTCAudienceNumber: int
|
2202
2202
|
:param _AudienceType: 观看类型。互动观看 (默认)
|
2203
2203
|
:type AudienceType: int
|
2204
|
-
:param _RecordLayout:
|
2204
|
+
:param _RecordLayout: 录制模板。未配置时默认取值0。录制模板枚举值参考:https://cloud.tencent.com/document/product/1639/89744
|
2205
2205
|
:type RecordLayout: int
|
2206
2206
|
:param _GroupId: 房间绑定的群组ID,非空时限制组成员进入
|
2207
2207
|
:type GroupId: str
|
@@ -2230,7 +2230,8 @@ video 纯视频
|
|
2230
2230
|
:type EnableAutoStart: int
|
2231
2231
|
:param _RecordBackground: 录制文件背景图片,支持png、jpg、jpeg、bmp格式,暂不支持透明通道
|
2232
2232
|
:type RecordBackground: str
|
2233
|
-
:param _RecordScene:
|
2233
|
+
:param _RecordScene: 录制自定义场景。注意:仅recordlayout=9的时候此参数有效。需注意各类参数配置正确能够生效。不然会造成录制失败,失败后无法补救。
|
2234
|
+
数据内容为用户自定义场景参数,数据格式为json键值对方式,其中键值对的value为string类型。
|
2234
2235
|
:type RecordScene: str
|
2235
2236
|
:param _RecordLang: 录制自定义语言,仅recordlayout=9的时候此参数有效
|
2236
2237
|
:type RecordLang: str
|
@@ -2450,7 +2451,7 @@ video 纯视频
|
|
2450
2451
|
|
2451
2452
|
@property
|
2452
2453
|
def RecordLayout(self):
|
2453
|
-
"""
|
2454
|
+
"""录制模板。未配置时默认取值0。录制模板枚举值参考:https://cloud.tencent.com/document/product/1639/89744
|
2454
2455
|
:rtype: int
|
2455
2456
|
"""
|
2456
2457
|
return self._RecordLayout
|
@@ -2587,7 +2588,8 @@ video 纯视频
|
|
2587
2588
|
|
2588
2589
|
@property
|
2589
2590
|
def RecordScene(self):
|
2590
|
-
"""
|
2591
|
+
"""录制自定义场景。注意:仅recordlayout=9的时候此参数有效。需注意各类参数配置正确能够生效。不然会造成录制失败,失败后无法补救。
|
2592
|
+
数据内容为用户自定义场景参数,数据格式为json键值对方式,其中键值对的value为string类型。
|
2591
2593
|
:rtype: str
|
2592
2594
|
"""
|
2593
2595
|
return self._RecordScene
|
@@ -2834,7 +2834,7 @@ class CasterInputInfo(AbstractModel):
|
|
2834
2834
|
def __init__(self):
|
2835
2835
|
r"""
|
2836
2836
|
:param _InputIndex: 输入源Index。
|
2837
|
-
范围[1,
|
2837
|
+
范围[1, 24]
|
2838
2838
|
:type InputIndex: int
|
2839
2839
|
:param _InputType: 输入源类型。
|
2840
2840
|
范围[0,1,2,3,4]。
|
@@ -2894,7 +2894,7 @@ class CasterInputInfo(AbstractModel):
|
|
2894
2894
|
@property
|
2895
2895
|
def InputIndex(self):
|
2896
2896
|
"""输入源Index。
|
2897
|
-
范围[1,
|
2897
|
+
范围[1, 24]
|
2898
2898
|
:rtype: int
|
2899
2899
|
"""
|
2900
2900
|
return self._InputIndex
|
@@ -5110,7 +5110,7 @@ class CreateCasterInputPushUrlRequest(AbstractModel):
|
|
5110
5110
|
:param _CasterId: 导播台ID
|
5111
5111
|
:type CasterId: int
|
5112
5112
|
:param _InputIndex: 请求生成推流地址的输入Index。
|
5113
|
-
允许范围[1,
|
5113
|
+
允许范围[1,24]。
|
5114
5114
|
:type InputIndex: int
|
5115
5115
|
:param _Protocol: 生成推流地址协议。
|
5116
5116
|
范围[rtmp,webrtc]。
|
@@ -5135,7 +5135,7 @@ class CreateCasterInputPushUrlRequest(AbstractModel):
|
|
5135
5135
|
@property
|
5136
5136
|
def InputIndex(self):
|
5137
5137
|
"""请求生成推流地址的输入Index。
|
5138
|
-
允许范围[1,
|
5138
|
+
允许范围[1,24]。
|
5139
5139
|
:rtype: int
|
5140
5140
|
"""
|
5141
5141
|
return self._InputIndex
|
@@ -22334,12 +22334,12 @@ class DescribePushBandwidthAndFluxListRequest(AbstractModel):
|
|
22334
22334
|
def __init__(self):
|
22335
22335
|
r"""
|
22336
22336
|
:param _StartTime: 查询开始时间点,精确到分钟粒度,接口查询支持两种时间格式:
|
22337
|
-
1)YYYY-MM-DDThh:mm:ssZ:UTC时间格式,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/267/38543
|
22337
|
+
1)YYYY-MM-DDThh:mm:ssZ:UTC时间格式,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/267/38543#52)。
|
22338
22338
|
2)YYYY-MM-DD hh:mm:ss:使用此格式时,默认代表北京时间。
|
22339
22339
|
支持最近两个月的查询,查询开始和结束时间跨度不支持超过31天。
|
22340
22340
|
:type StartTime: str
|
22341
22341
|
:param _EndTime: 查询结束时间点,精确到分钟粒度,接口查询支持两种时间格式:
|
22342
|
-
1)YYYY-MM-DDThh:mm:ssZ:UTC时间格式,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/267/38543
|
22342
|
+
1)YYYY-MM-DDThh:mm:ssZ:UTC时间格式,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/267/38543#52)。
|
22343
22343
|
2)YYYY-MM-DD hh:mm:ss:使用此格式时,默认代表北京时间。
|
22344
22344
|
支持最近两个月的查询,查询开始和结束时间跨度不支持超过31天。
|
22345
22345
|
:type EndTime: str
|
@@ -22382,7 +22382,7 @@ https://cloud.tencent.com/document/product/267/34019。
|
|
22382
22382
|
@property
|
22383
22383
|
def StartTime(self):
|
22384
22384
|
"""查询开始时间点,精确到分钟粒度,接口查询支持两种时间格式:
|
22385
|
-
1)YYYY-MM-DDThh:mm:ssZ:UTC时间格式,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/267/38543
|
22385
|
+
1)YYYY-MM-DDThh:mm:ssZ:UTC时间格式,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/267/38543#52)。
|
22386
22386
|
2)YYYY-MM-DD hh:mm:ss:使用此格式时,默认代表北京时间。
|
22387
22387
|
支持最近两个月的查询,查询开始和结束时间跨度不支持超过31天。
|
22388
22388
|
:rtype: str
|
@@ -22396,7 +22396,7 @@ https://cloud.tencent.com/document/product/267/34019。
|
|
22396
22396
|
@property
|
22397
22397
|
def EndTime(self):
|
22398
22398
|
"""查询结束时间点,精确到分钟粒度,接口查询支持两种时间格式:
|
22399
|
-
1)YYYY-MM-DDThh:mm:ssZ:UTC时间格式,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/267/38543
|
22399
|
+
1)YYYY-MM-DDThh:mm:ssZ:UTC时间格式,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/267/38543#52)。
|
22400
22400
|
2)YYYY-MM-DD hh:mm:ss:使用此格式时,默认代表北京时间。
|
22401
22401
|
支持最近两个月的查询,查询开始和结束时间跨度不支持超过31天。
|
22402
22402
|
:rtype: str
|
@@ -26,6 +26,9 @@ INVALIDPARAMETER = 'InvalidParameter'
|
|
26
26
|
# 当前子账号无权执行该操作。
|
27
27
|
INVALIDPARAMETER_PERMISSIONDENIED = 'InvalidParameter.PermissionDenied'
|
28
28
|
|
29
|
+
# 可用区已关闭售卖。
|
30
|
+
INVALIDPARAMETER_ZONECLOSED = 'InvalidParameter.ZoneClosed'
|
31
|
+
|
29
32
|
# 非法的实例名。
|
30
33
|
INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = 'InvalidParameterValue.IllegalInstanceName'
|
31
34
|
|
@@ -44,6 +47,12 @@ INVALIDPARAMETERVALUE_LIMITPARAOUTOFRANGE = 'InvalidParameterValue.LimitParaOutO
|
|
44
47
|
# 实例锁定失败。
|
45
48
|
INVALIDPARAMETERVALUE_LOCKFAILED = 'InvalidParameterValue.LockFailed'
|
46
49
|
|
50
|
+
# 错误的机型。
|
51
|
+
INVALIDPARAMETERVALUE_MACHINETYPEERROR = 'InvalidParameterValue.MachineTypeError'
|
52
|
+
|
53
|
+
# 实例版本错误。
|
54
|
+
INVALIDPARAMETERVALUE_MONGOVERSIONERROR = 'InvalidParameterValue.MongoVersionError'
|
55
|
+
|
47
56
|
# 实例版本不支持查询客户端信息。
|
48
57
|
INVALIDPARAMETERVALUE_MONGOVERSIONNOTSUPPORTQUERYCLIENT = 'InvalidParameterValue.MongoVersionNotSupportQueryClient'
|
49
58
|
|
@@ -77,9 +86,15 @@ INVALIDPARAMETERVALUE_REGIONERROR = 'InvalidParameterValue.RegionError'
|
|
77
86
|
# 地域尚不支持查询客户端信息。
|
78
87
|
INVALIDPARAMETERVALUE_REGIONNOTSUPPORTQUERYCLIENT = 'InvalidParameterValue.RegionNotSupportQueryClient'
|
79
88
|
|
89
|
+
# 从节点数错误。
|
90
|
+
INVALIDPARAMETERVALUE_SECONDARYNUMERROR = 'InvalidParameterValue.SecondaryNumError'
|
91
|
+
|
80
92
|
# slowMS参数取值范围[100,65536]。
|
81
93
|
INVALIDPARAMETERVALUE_SLOWMSBELOWLIMIT = 'InvalidParameterValue.SlowMSBelowLimit'
|
82
94
|
|
95
|
+
# 购买规格错误。
|
96
|
+
INVALIDPARAMETERVALUE_SPECNOTONSALE = 'InvalidParameterValue.SpecNotOnSale'
|
97
|
+
|
83
98
|
# 起始时间晚于结束时间。
|
84
99
|
INVALIDPARAMETERVALUE_STARTTIMENOTBEFORETHANENDTIME = 'InvalidParameterValue.StartTimeNotBeforeThanEndTime'
|
85
100
|
|
@@ -480,9 +480,9 @@ class CreateDBInstanceRequest(AbstractModel):
|
|
480
480
|
:type Memory: int
|
481
481
|
:param _Volume: 实例硬盘大小,单位:GB
|
482
482
|
:type Volume: int
|
483
|
-
:param _MongoVersion:
|
483
|
+
:param _MongoVersion: 指版本信息。具体支持的版本信息 ,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。 - MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本。 - MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本。 - MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。 - MONGO_44_WT:MongoDB 4.4 WiredTiger存储引擎版本。 - MONGO_50_WT:MongoDB 5.0 WiredTiger存储引擎版本。 - MONGO_60_WT:MongoDB 6.0 WiredTiger存储引擎版本。
|
484
484
|
:type MongoVersion: str
|
485
|
-
:param _MachineCode: 机器类型,
|
485
|
+
:param _MachineCode: 机器类型,HIO10G:高IO万兆。
|
486
486
|
:type MachineCode: str
|
487
487
|
:param _GoodsNum: 实例数量,默认值为1, 最小值1,最大值为10
|
488
488
|
:type GoodsNum: int
|
@@ -500,6 +500,8 @@ class CreateDBInstanceRequest(AbstractModel):
|
|
500
500
|
:type UniqVpcId: str
|
501
501
|
:param _UniqSubnetId: 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
|
502
502
|
:type UniqSubnetId: str
|
503
|
+
:param _InstanceType: 实例类型,REPLSET-副本集,SHARD-分片集群,默认为REPLSET
|
504
|
+
:type InstanceType: str
|
503
505
|
"""
|
504
506
|
self._SecondaryNum = None
|
505
507
|
self._Memory = None
|
@@ -514,6 +516,7 @@ class CreateDBInstanceRequest(AbstractModel):
|
|
514
516
|
self._SecurityGroup = None
|
515
517
|
self._UniqVpcId = None
|
516
518
|
self._UniqSubnetId = None
|
519
|
+
self._InstanceType = None
|
517
520
|
|
518
521
|
@property
|
519
522
|
def SecondaryNum(self):
|
@@ -550,7 +553,7 @@ class CreateDBInstanceRequest(AbstractModel):
|
|
550
553
|
|
551
554
|
@property
|
552
555
|
def MongoVersion(self):
|
553
|
-
"""
|
556
|
+
"""指版本信息。具体支持的版本信息 ,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。 - MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本。 - MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本。 - MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。 - MONGO_44_WT:MongoDB 4.4 WiredTiger存储引擎版本。 - MONGO_50_WT:MongoDB 5.0 WiredTiger存储引擎版本。 - MONGO_60_WT:MongoDB 6.0 WiredTiger存储引擎版本。
|
554
557
|
:rtype: str
|
555
558
|
"""
|
556
559
|
return self._MongoVersion
|
@@ -561,7 +564,7 @@ class CreateDBInstanceRequest(AbstractModel):
|
|
561
564
|
|
562
565
|
@property
|
563
566
|
def MachineCode(self):
|
564
|
-
"""机器类型,
|
567
|
+
"""机器类型,HIO10G:高IO万兆。
|
565
568
|
:rtype: str
|
566
569
|
"""
|
567
570
|
return self._MachineCode
|
@@ -658,6 +661,17 @@ class CreateDBInstanceRequest(AbstractModel):
|
|
658
661
|
def UniqSubnetId(self, UniqSubnetId):
|
659
662
|
self._UniqSubnetId = UniqSubnetId
|
660
663
|
|
664
|
+
@property
|
665
|
+
def InstanceType(self):
|
666
|
+
"""实例类型,REPLSET-副本集,SHARD-分片集群,默认为REPLSET
|
667
|
+
:rtype: str
|
668
|
+
"""
|
669
|
+
return self._InstanceType
|
670
|
+
|
671
|
+
@InstanceType.setter
|
672
|
+
def InstanceType(self, InstanceType):
|
673
|
+
self._InstanceType = InstanceType
|
674
|
+
|
661
675
|
|
662
676
|
def _deserialize(self, params):
|
663
677
|
self._SecondaryNum = params.get("SecondaryNum")
|
@@ -673,6 +687,7 @@ class CreateDBInstanceRequest(AbstractModel):
|
|
673
687
|
self._SecurityGroup = params.get("SecurityGroup")
|
674
688
|
self._UniqVpcId = params.get("UniqVpcId")
|
675
689
|
self._UniqSubnetId = params.get("UniqSubnetId")
|
690
|
+
self._InstanceType = params.get("InstanceType")
|
676
691
|
memeber_set = set(params.keys())
|
677
692
|
for name, value in vars(self).items():
|
678
693
|
property_name = name[1:]
|
@@ -851,7 +866,7 @@ class DescribeDBInstancesRequest(AbstractModel):
|
|
851
866
|
|
852
867
|
def __init__(self):
|
853
868
|
r"""
|
854
|
-
:param _InstanceIds: 实例ID列表,格式如:cmgo-
|
869
|
+
:param _InstanceIds: 实例ID列表,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同。
|
855
870
|
:type InstanceIds: list of str
|
856
871
|
:param _InstanceType: 实例类型,取值范围:
|
857
872
|
<ul><li>0: 所有实例</li><li>1: 正式实例</li><li>2: 临时实例</li><li>3: 只读实例</li><li>-1: 正式实例+只读+灾备实例</li></ul>
|
@@ -894,7 +909,7 @@ class DescribeDBInstancesRequest(AbstractModel):
|
|
894
909
|
|
895
910
|
@property
|
896
911
|
def InstanceIds(self):
|
897
|
-
"""实例ID列表,格式如:cmgo-
|
912
|
+
"""实例ID列表,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同。
|
898
913
|
:rtype: list of str
|
899
914
|
"""
|
900
915
|
return self._InstanceIds
|
@@ -2349,11 +2364,11 @@ class SetPasswordRequest(AbstractModel):
|
|
2349
2364
|
|
2350
2365
|
def __init__(self):
|
2351
2366
|
r"""
|
2352
|
-
:param _InstanceId: 实例ID,格式如:cmgo-
|
2367
|
+
:param _InstanceId: 实例ID,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同
|
2353
2368
|
:type InstanceId: str
|
2354
2369
|
:param _UserName: 实例账户名。初始化实例密码,本参数传mongouser。
|
2355
2370
|
:type UserName: str
|
2356
|
-
:param _Password:
|
2371
|
+
:param _Password: 指定账户的新密码, 密码格式为8-32个字符长度,至少包含字母、数字和字符(!@#%^*()_)中的两种
|
2357
2372
|
:type Password: str
|
2358
2373
|
"""
|
2359
2374
|
self._InstanceId = None
|
@@ -2362,7 +2377,7 @@ class SetPasswordRequest(AbstractModel):
|
|
2362
2377
|
|
2363
2378
|
@property
|
2364
2379
|
def InstanceId(self):
|
2365
|
-
"""实例ID,格式如:cmgo-
|
2380
|
+
"""实例ID,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同
|
2366
2381
|
:rtype: str
|
2367
2382
|
"""
|
2368
2383
|
return self._InstanceId
|
@@ -2384,7 +2399,7 @@ class SetPasswordRequest(AbstractModel):
|
|
2384
2399
|
|
2385
2400
|
@property
|
2386
2401
|
def Password(self):
|
2387
|
-
"""
|
2402
|
+
"""指定账户的新密码, 密码格式为8-32个字符长度,至少包含字母、数字和字符(!@#%^*()_)中的两种
|
2388
2403
|
:rtype: str
|
2389
2404
|
"""
|
2390
2405
|
return self._Password
|
@@ -3119,7 +3134,7 @@ class UpgradeDBInstanceRequest(AbstractModel):
|
|
3119
3134
|
|
3120
3135
|
def __init__(self):
|
3121
3136
|
r"""
|
3122
|
-
:param _InstanceId: 实例ID,格式如:cmgo-
|
3137
|
+
:param _InstanceId: 实例ID,格式如:cmgo-iga0****。与云数据库控制台页面中显示的实例ID相同
|
3123
3138
|
:type InstanceId: str
|
3124
3139
|
:param _Memory: 升级后的内存大小,单位:GB
|
3125
3140
|
:type Memory: int
|
@@ -3135,7 +3150,7 @@ class UpgradeDBInstanceRequest(AbstractModel):
|
|
3135
3150
|
|
3136
3151
|
@property
|
3137
3152
|
def InstanceId(self):
|
3138
|
-
"""实例ID,格式如:cmgo-
|
3153
|
+
"""实例ID,格式如:cmgo-iga0****。与云数据库控制台页面中显示的实例ID相同
|
3139
3154
|
:rtype: str
|
3140
3155
|
"""
|
3141
3156
|
return self._InstanceId
|
@@ -236,7 +236,6 @@ class MongodbClient(AbstractClient):
|
|
236
236
|
def SetPassword(self, request):
|
237
237
|
"""本接口(SetPassword)用于设置(初始化)MongoDB云数据库实例账户密码。
|
238
238
|
|
239
|
-
|
240
239
|
:param request: Request instance for SetPassword.
|
241
240
|
:type request: :class:`tencentcloud.mongodb.v20180408.models.SetPasswordRequest`
|
242
241
|
:rtype: :class:`tencentcloud.mongodb.v20180408.models.SetPasswordResponse`
|