tccli 3.0.1083.1__py2.py3-none-any.whl → 3.0.1085.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/aiart/v20221229/QueryTextToImageProJob.md +30 -0
- tccli/examples/aiart/v20221229/SubmitTextToImageProJob.md +22 -0
- tccli/examples/billing/v20180709/DescribeCostDetail.md +36 -33
- tccli/examples/billing/v20180709/DescribeCostSummaryByProject.md +25 -80
- tccli/examples/billing/v20180709/DescribeCostSummaryByRegion.md +23 -14
- tccli/examples/billing/v20180709/DescribeCostSummaryByResource.md +53 -27
- tccli/examples/ccc/v20200210/CreateCompanyApply.md +36 -0
- tccli/examples/ccc/v20200210/DescribeCompanyList.md +33 -0
- tccli/examples/ccc/v20200210/ModifyCompanyApply.md +36 -0
- tccli/examples/cdb/v20170320/CreateCloneInstance.md +5 -5
- tccli/examples/ckafka/v20190819/CreateInstancePost.md +9 -6
- tccli/examples/ckafka/v20190819/CreatePrometheus.md +29 -0
- tccli/examples/ckafka/v20190819/DescribeGroupInfo.md +2 -2
- tccli/examples/ckafka/v20190819/DescribePrometheus.md +25 -0
- tccli/examples/ckafka/v20190819/ModifyAclRule.md +1 -1
- tccli/examples/cynosdb/v20190107/RollbackToNewCluster.md +62 -0
- tccli/examples/dlc/v20210125/QueryTaskCostDetail.md +20 -0
- tccli/examples/ess/v20201111/CreateFlowApprovers.md +34 -0
- tccli/examples/ess/v20201111/CreateFlowGroupByFiles.md +168 -0
- tccli/examples/ess/v20201111/CreateFlowGroupByTemplates.md +98 -0
- tccli/examples/ess/v20201111/CreateSchemeUrl.md +31 -3
- tccli/examples/essbasic/v20210526/ChannelCreateFlowApprovers.md +41 -0
- tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByFiles.md +171 -0
- tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByTemplates.md +92 -0
- tccli/examples/essbasic/v20210526/ChannelCreateReleaseFlow.md +1 -1
- tccli/examples/essbasic/v20210526/CreateSignUrls.md +52 -0
- tccli/examples/faceid/v20180301/GetFaceIdResult.md +4 -4
- tccli/examples/faceid/v20180301/GetFaceIdRiskInfo.md +26 -0
- tccli/examples/faceid/v20180301/GetFaceidRiskInfoToken.md +22 -0
- tccli/examples/iotexplorer/v20190423/BindCloudStorageUser.md +22 -0
- tccli/examples/iotexplorer/v20190423/CreateIotVideoCloudStorage.md +22 -0
- tccli/examples/iotexplorer/v20190423/DeleteCloudStorageEvent.md +26 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorage.md +27 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageDate.md +24 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageEvents.md +87 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageMultiThumbnail.md +28 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageOrder.md +25 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeDetails.md +21 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeStats.md +44 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageStreamData.md +24 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnail.md +24 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnailList.md +28 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageTime.md +43 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageUsers.md +29 -0
- tccli/examples/iotexplorer/v20190423/DescribeDevicePackages.md +37 -0
- tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTask.md +21 -0
- tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTasks.md +39 -0
- tccli/examples/iotexplorer/v20190423/GenerateSignedVideoURL.md +22 -0
- tccli/examples/iotexplorer/v20190423/InheritCloudStorageUser.md +23 -0
- tccli/examples/iotexplorer/v20190423/ResetCloudStorage.md +21 -0
- tccli/examples/iotexplorer/v20190423/ResetCloudStorageEvent.md +22 -0
- tccli/examples/iotexplorer/v20190423/TransferCloudStorage.md +22 -0
- tccli/examples/live/v20180801/CreateLiveTimeShiftTemplate.md +8 -8
- tccli/examples/monitor/v20180724/CreateExporterIntegration.md +626 -2
- tccli/examples/ocr/v20181119/ReconstructDocument.md +2263 -0
- tccli/examples/pts/v20210728/CreateEnvironment.md +18 -0
- tccli/examples/pts/v20210728/DeleteEnvironments.md +18 -0
- tccli/examples/pts/v20210728/DescribeEnvironments.md +18 -0
- tccli/examples/pts/v20210728/UpdateEnvironment.md +18 -0
- tccli/examples/ssl/v20191205/UploadCertificate.md +48 -3
- tccli/examples/tag/v20180813/DescribeProjects.md +1 -1
- tccli/examples/tione/v20211111/CreateModelService.md +3 -1
- tccli/examples/tione/v20211111/ModifyModelService.md +62 -228
- tccli/examples/wedata/v20210820/BatchCreateIntegrationTaskAlarms.md +11 -11
- tccli/examples/wedata/v20210820/BatchForceSuccessIntegrationTaskInstances.md +2 -2
- tccli/examples/wedata/v20210820/BatchKillIntegrationTaskInstances.md +2 -2
- tccli/examples/wedata/v20210820/BatchMakeUpIntegrationTasks.md +2 -2
- tccli/examples/wedata/v20210820/BatchRerunIntegrationTaskInstances.md +5 -2
- tccli/examples/wedata/v20210820/CheckDuplicateRuleName.md +5 -5
- tccli/examples/wedata/v20210820/CheckDuplicateTemplateName.md +4 -4
- tccli/examples/wedata/v20210820/CheckIntegrationNodeNameExists.md +4 -4
- tccli/examples/wedata/v20210820/CheckIntegrationTaskNameExists.md +4 -4
- tccli/examples/wedata/v20210820/CheckTaskNameExist.md +3 -3
- tccli/examples/wedata/v20210820/CommitExportTask.md +4 -4
- tccli/examples/wedata/v20210820/CreateInLongAgent.md +6 -6
- tccli/examples/wedata/v20210820/CreateOrUpdateResource.md +2 -1
- tccli/examples/wedata/v20210820/CreateRuleTemplate.md +1 -1
- tccli/examples/wedata/v20210820/CreateTaskAlarmRegular.md +11 -11
- tccli/examples/wedata/v20210820/DeleteInLongAgent.md +3 -3
- tccli/examples/wedata/v20210820/DeleteIntegrationNode.md +2 -2
- tccli/examples/wedata/v20210820/DeleteOfflineTask.md +4 -4
- tccli/examples/wedata/v20210820/DeleteRule.md +1 -1
- tccli/examples/wedata/v20210820/DeleteRuleTemplate.md +1 -1
- tccli/examples/wedata/v20210820/DescribeClusterNamespaceList.md +6 -6
- tccli/examples/wedata/v20210820/DescribeDataBases.md +12 -8
- tccli/examples/wedata/v20210820/DescribeDataCheckStat.md +5 -5
- tccli/examples/wedata/v20210820/DescribeDataObjects.md +6 -3
- tccli/examples/wedata/v20210820/DescribeExecStrategy.md +20 -16
- tccli/examples/wedata/v20210820/DescribeInLongAgentTaskList.md +6 -6
- tccli/examples/wedata/v20210820/DescribeInLongAgentVpcList.md +3 -3
- tccli/examples/wedata/v20210820/DescribeInstances.md +6 -6
- tccli/examples/wedata/v20210820/DescribeIntegrationNode.md +61 -43
- tccli/examples/wedata/v20210820/DescribeIntegrationStatistics.md +13 -13
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsAgentStatus.md +6 -6
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsInstanceTrend.md +8 -10
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsRecordsTrend.md +1 -1
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatus.md +5 -5
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatusTrend.md +8 -10
- tccli/examples/wedata/v20210820/DescribeMonitorsByPage.md +7 -7
- tccli/examples/wedata/v20210820/DescribeOfflineTaskToken.md +3 -3
- tccli/examples/wedata/v20210820/DescribeProdTasks.md +6 -5
- tccli/examples/wedata/v20210820/DescribeRealTimeTaskInstanceNodeInfo.md +9 -9
- tccli/examples/wedata/v20210820/DescribeRealTimeTaskSpeed.md +32 -26
- tccli/examples/wedata/v20210820/DescribeRule.md +118 -23
- tccli/examples/wedata/v20210820/DescribeRuleDataSources.md +11 -8
- tccli/examples/wedata/v20210820/DescribeRuleDimStat.md +3 -3
- tccli/examples/wedata/v20210820/DescribeRuleExecDetail.md +48 -41
- tccli/examples/wedata/v20210820/DescribeRuleExecExportResult.md +15 -10
- tccli/examples/wedata/v20210820/DescribeRuleExecLog.md +2 -2
- tccli/examples/wedata/v20210820/DescribeRuleExecResults.md +72 -4
- tccli/examples/wedata/v20210820/DescribeRuleExecResultsByPage.md +38 -33
- tccli/examples/wedata/v20210820/DescribeRuleExecStat.md +14 -14
- tccli/examples/wedata/v20210820/DescribeRuleGroup.md +50 -23
- tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPage.md +87 -14
- tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPageWithoutAuth.md +81 -12
- tccli/examples/wedata/v20210820/DescribeRuleGroupSubscription.md +12 -6
- tccli/examples/wedata/v20210820/DescribeRuleGroupTable.md +35 -27
- tccli/examples/wedata/v20210820/DescribeRuleGroupsByPage.md +51 -21
- tccli/examples/wedata/v20210820/DescribeRuleHistoryByPage.md +9 -9
- tccli/examples/wedata/v20210820/DescribeRuleTablesByPage.md +52 -35
- tccli/examples/wedata/v20210820/DescribeRuleTemplate.md +33 -16
- tccli/examples/wedata/v20210820/DescribeRuleTemplates.md +8 -8
- tccli/examples/wedata/v20210820/DescribeRuleTemplatesByPage.md +13 -13
- tccli/examples/wedata/v20210820/DescribeRulesByPage.md +123 -28
- tccli/examples/wedata/v20210820/DescribeStandardRuleDetailInfoList.md +3 -3
- tccli/examples/wedata/v20210820/DescribeTableInfoList.md +9 -2
- tccli/examples/wedata/v20210820/DescribeTaskInstance.md +35 -35
- tccli/examples/wedata/v20210820/DescribeTaskInstanceReportDetail.md +28 -26
- tccli/examples/wedata/v20210820/DescribeTaskLockStatus.md +7 -7
- tccli/examples/wedata/v20210820/DescribeTaskReport.md +6 -6
- tccli/examples/wedata/v20210820/DescribeTaskReportDetailList.md +17 -17
- tccli/examples/wedata/v20210820/DescribeTopTableStat.md +9 -9
- tccli/examples/wedata/v20210820/DescribeTrendStat.md +2 -2
- tccli/examples/wedata/v20210820/DryRunDIOfflineTask.md +10 -9
- tccli/examples/wedata/v20210820/GetIntegrationNodeColumnSchema.md +13 -11
- tccli/examples/wedata/v20210820/GetOfflineDIInstanceList.md +26 -26
- tccli/examples/wedata/v20210820/LockIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/ModifyIntegrationNode.md +42 -41
- tccli/examples/wedata/v20210820/ModifyIntegrationTask.md +110 -58
- tccli/examples/wedata/v20210820/ModifyMonitorStatus.md +4 -4
- tccli/examples/wedata/v20210820/ModifyRule.md +24 -24
- tccli/examples/wedata/v20210820/ModifyRuleGroupSubscription.md +11 -13
- tccli/examples/wedata/v20210820/ModifyTaskAlarmRegular.md +45 -16
- tccli/examples/wedata/v20210820/ModifyTaskInfo.md +79 -29
- tccli/examples/wedata/v20210820/ModifyTaskName.md +5 -5
- tccli/examples/wedata/v20210820/RestartInLongAgent.md +3 -3
- tccli/examples/wedata/v20210820/RobAndLockIntegrationTask.md +7 -7
- tccli/examples/wedata/v20210820/StopIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/TaskLog.md +5 -15
- tccli/examples/wedata/v20210820/UnlockIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/UpdateInLongAgent.md +5 -5
- tccli/services/aiart/aiart_client.py +106 -0
- tccli/services/aiart/v20221229/api.json +174 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/asr/v20190614/api.json +4 -4
- tccli/services/bi/v20220105/api.json +27 -0
- tccli/services/billing/v20180709/api.json +365 -130
- tccli/services/billing/v20180709/examples.json +4 -4
- tccli/services/ccc/ccc_client.py +159 -0
- tccli/services/ccc/v20200210/api.json +442 -0
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/v20170320/api.json +78 -24
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/cdwpg/v20201230/api.json +9 -0
- tccli/services/ckafka/ckafka_client.py +106 -0
- tccli/services/ckafka/v20190819/api.json +211 -32
- tccli/services/ckafka/v20190819/examples.json +19 -3
- tccli/services/clb/v20180317/api.json +2 -2
- tccli/services/cloudstudio/v20230508/api.json +40 -4
- tccli/services/cls/v20201016/api.json +30 -30
- tccli/services/csip/v20221121/api.json +76 -76
- tccli/services/cwp/v20180228/api.json +124 -8
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +255 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +103 -4
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/dsgc/v20190723/api.json +20 -0
- tccli/services/dts/v20211206/api.json +56 -2
- tccli/services/es/v20180416/api.json +127 -24
- tccli/services/ess/v20201111/api.json +143 -31
- tccli/services/ess/v20201111/examples.json +26 -2
- tccli/services/essbasic/v20210526/api.json +134 -13
- tccli/services/essbasic/v20210526/examples.json +25 -1
- tccli/services/faceid/faceid_client.py +136 -30
- tccli/services/faceid/v20180301/api.json +167 -10
- tccli/services/faceid/v20180301/examples.json +17 -1
- tccli/services/iotexplorer/iotexplorer_client.py +1453 -234
- tccli/services/iotexplorer/v20190423/api.json +2179 -117
- tccli/services/iotexplorer/v20190423/examples.json +184 -0
- tccli/services/lcic/v20220817/api.json +62 -4
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/live/v20180801/examples.json +2 -2
- tccli/services/monitor/v20180724/examples.json +111 -3
- tccli/services/mps/v20190612/api.json +53 -27
- tccli/services/ms/v20180408/api.json +14 -14
- tccli/services/oceanus/v20190422/api.json +1 -1
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +276 -0
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/pts/pts_client.py +212 -0
- tccli/services/pts/v20210728/api.json +96 -0
- tccli/services/pts/v20210728/examples.json +32 -0
- tccli/services/ssl/v20191205/examples.json +9 -3
- tccli/services/tag/v20180813/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +77 -3
- tccli/services/tione/v20211111/examples.json +2 -2
- tccli/services/tms/v20201229/api.json +1 -1
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tts/v20190823/api.json +10 -1
- tccli/services/vod/v20180717/api.json +6 -6
- tccli/services/wedata/v20210820/api.json +650 -200
- tccli/services/wedata/v20210820/examples.json +154 -148
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/RECORD +220 -181
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/license_files/LICENSE +0 -0
@@ -974,9 +974,9 @@
|
|
974
974
|
"status": "online"
|
975
975
|
},
|
976
976
|
"ReleaseIsolatedDBInstances": {
|
977
|
-
"document": "本接口(ReleaseIsolatedDBInstances
|
977
|
+
"document": "本接口(ReleaseIsolatedDBInstances)用于恢复已隔离云数据库实例。仅用于按量计费实例的解隔离,包年包月实例的解隔离请使用 RenewDBInstance 。",
|
978
978
|
"input": "ReleaseIsolatedDBInstancesRequest",
|
979
|
-
"name": "
|
979
|
+
"name": "解隔离按量计费云数据库实例",
|
980
980
|
"output": "ReleaseIsolatedDBInstancesResponse",
|
981
981
|
"status": "online"
|
982
982
|
},
|
@@ -5018,6 +5018,24 @@
|
|
5018
5018
|
"name": "ProjectId",
|
5019
5019
|
"required": false,
|
5020
5020
|
"type": "int"
|
5021
|
+
},
|
5022
|
+
{
|
5023
|
+
"disabled": false,
|
5024
|
+
"document": "付费类型,PRE_PAID:包年包月,USED_PAID:按量计费。默认为按量计费",
|
5025
|
+
"example": "无",
|
5026
|
+
"member": "string",
|
5027
|
+
"name": "PayType",
|
5028
|
+
"required": false,
|
5029
|
+
"type": "string"
|
5030
|
+
},
|
5031
|
+
{
|
5032
|
+
"disabled": false,
|
5033
|
+
"document": "实例时长,PayType为PRE_PAID时必传,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。",
|
5034
|
+
"example": "无",
|
5035
|
+
"member": "int64",
|
5036
|
+
"name": "Period",
|
5037
|
+
"required": false,
|
5038
|
+
"type": "int"
|
5021
5039
|
}
|
5022
5040
|
],
|
5023
5041
|
"type": "object"
|
@@ -5031,7 +5049,7 @@
|
|
5031
5049
|
"example": "256117ed-efa08b54-61784d44-91781bbd",
|
5032
5050
|
"member": "string",
|
5033
5051
|
"name": "AsyncRequestId",
|
5034
|
-
"
|
5052
|
+
"output_required": true,
|
5035
5053
|
"type": "string",
|
5036
5054
|
"value_allowed_null": false
|
5037
5055
|
},
|
@@ -16789,7 +16807,7 @@
|
|
16789
16807
|
"example": "无",
|
16790
16808
|
"member": "ReleaseResult",
|
16791
16809
|
"name": "Items",
|
16792
|
-
"
|
16810
|
+
"output_required": true,
|
16793
16811
|
"type": "list",
|
16794
16812
|
"value_allowed_null": false
|
16795
16813
|
},
|
@@ -19069,108 +19087,144 @@
|
|
19069
19087
|
],
|
19070
19088
|
"usage": "out"
|
19071
19089
|
},
|
19090
|
+
"TaskAttachInfo": {
|
19091
|
+
"document": "任务列表中的部分任务支持特定的附加信息",
|
19092
|
+
"members": [
|
19093
|
+
{
|
19094
|
+
"disabled": false,
|
19095
|
+
"document": "升级任务:\n”FastUpgradeStatus“:表示升级类型。1-原地升级;0-普通升级。\n注意:此字段可能返回 null,表示取不到有效值。",
|
19096
|
+
"example": "”FastUpgradeStatus“",
|
19097
|
+
"member": "string",
|
19098
|
+
"name": "AttachKey",
|
19099
|
+
"output_required": false,
|
19100
|
+
"type": "string",
|
19101
|
+
"value_allowed_null": true
|
19102
|
+
},
|
19103
|
+
{
|
19104
|
+
"disabled": false,
|
19105
|
+
"document": "升级任务:\n”FastUpgradeStatus“:表示升级类型。1-原地升级;0-普通升级。\n注意:此字段可能返回 null,表示取不到有效值。",
|
19106
|
+
"example": "”1“",
|
19107
|
+
"member": "string",
|
19108
|
+
"name": "AttachValue",
|
19109
|
+
"output_required": false,
|
19110
|
+
"type": "string",
|
19111
|
+
"value_allowed_null": true
|
19112
|
+
}
|
19113
|
+
],
|
19114
|
+
"usage": "out"
|
19115
|
+
},
|
19072
19116
|
"TaskDetail": {
|
19073
19117
|
"document": "实例任务详情",
|
19074
19118
|
"members": [
|
19075
19119
|
{
|
19076
19120
|
"disabled": false,
|
19077
19121
|
"document": "错误码。",
|
19078
|
-
"example": "",
|
19122
|
+
"example": "无",
|
19079
19123
|
"member": "int64",
|
19080
19124
|
"name": "Code",
|
19081
|
-
"
|
19125
|
+
"output_required": true,
|
19082
19126
|
"type": "int",
|
19083
19127
|
"value_allowed_null": false
|
19084
19128
|
},
|
19085
19129
|
{
|
19086
19130
|
"disabled": false,
|
19087
19131
|
"document": "错误信息。",
|
19088
|
-
"example": "",
|
19132
|
+
"example": "无",
|
19089
19133
|
"member": "string",
|
19090
19134
|
"name": "Message",
|
19091
|
-
"
|
19135
|
+
"output_required": true,
|
19092
19136
|
"type": "string",
|
19093
19137
|
"value_allowed_null": false
|
19094
19138
|
},
|
19095
19139
|
{
|
19096
19140
|
"disabled": false,
|
19097
19141
|
"document": "实例任务 ID。",
|
19098
|
-
"example": "",
|
19142
|
+
"example": "无",
|
19099
19143
|
"member": "int64",
|
19100
19144
|
"name": "JobId",
|
19101
|
-
"
|
19145
|
+
"output_required": true,
|
19102
19146
|
"type": "int",
|
19103
19147
|
"value_allowed_null": false
|
19104
19148
|
},
|
19105
19149
|
{
|
19106
19150
|
"disabled": false,
|
19107
19151
|
"document": "实例任务进度。",
|
19108
|
-
"example": "",
|
19152
|
+
"example": "无",
|
19109
19153
|
"member": "int64",
|
19110
19154
|
"name": "Progress",
|
19111
|
-
"
|
19155
|
+
"output_required": true,
|
19112
19156
|
"type": "int",
|
19113
19157
|
"value_allowed_null": false
|
19114
19158
|
},
|
19115
19159
|
{
|
19116
19160
|
"disabled": false,
|
19117
19161
|
"document": "实例任务状态,可能的值包括:\n\"UNDEFINED\" - 未定义;\n\"INITIAL\" - 初始化;\n\"RUNNING\" - 运行中;\n\"SUCCEED\" - 执行成功;\n\"FAILED\" - 执行失败;\n\"KILLED\" - 已终止;\n\"REMOVED\" - 已删除;\n\"PAUSED\" - 已暂停。\n\"WAITING\" - 等待中(可撤销)",
|
19118
|
-
"example": "",
|
19162
|
+
"example": "无",
|
19119
19163
|
"member": "string",
|
19120
19164
|
"name": "TaskStatus",
|
19121
|
-
"
|
19165
|
+
"output_required": true,
|
19122
19166
|
"type": "string",
|
19123
19167
|
"value_allowed_null": false
|
19124
19168
|
},
|
19125
19169
|
{
|
19126
19170
|
"disabled": false,
|
19127
19171
|
"document": "实例任务类型,可能的值包括:\n\"ROLLBACK\" - 数据库回档;\n\"SQL OPERATION\" - SQL操作;\n\"IMPORT DATA\" - 数据导入;\n\"MODIFY PARAM\" - 参数设置;\n\"INITIAL\" - 初始化云数据库实例;\n\"REBOOT\" - 重启云数据库实例;\n\"OPEN GTID\" - 开启云数据库实例GTID;\n\"UPGRADE RO\" - 只读实例升级;\n\"BATCH ROLLBACK\" - 数据库批量回档;\n\"UPGRADE MASTER\" - 主实例升级;\n\"DROP TABLES\" - 删除云数据库库表;\n\"SWITCH DR TO MASTER\" - 灾备实例提升为主。",
|
19128
|
-
"example": "",
|
19172
|
+
"example": "无",
|
19129
19173
|
"member": "string",
|
19130
19174
|
"name": "TaskType",
|
19131
|
-
"
|
19175
|
+
"output_required": true,
|
19132
19176
|
"type": "string",
|
19133
19177
|
"value_allowed_null": false
|
19134
19178
|
},
|
19135
19179
|
{
|
19136
19180
|
"disabled": false,
|
19137
19181
|
"document": "实例任务开始时间。",
|
19138
|
-
"example": "",
|
19182
|
+
"example": "无",
|
19139
19183
|
"member": "string",
|
19140
19184
|
"name": "StartTime",
|
19141
|
-
"
|
19185
|
+
"output_required": true,
|
19142
19186
|
"type": "string",
|
19143
19187
|
"value_allowed_null": false
|
19144
19188
|
},
|
19145
19189
|
{
|
19146
19190
|
"disabled": false,
|
19147
19191
|
"document": "实例任务结束时间。",
|
19148
|
-
"example": "",
|
19192
|
+
"example": "无",
|
19149
19193
|
"member": "string",
|
19150
19194
|
"name": "EndTime",
|
19151
|
-
"
|
19195
|
+
"output_required": true,
|
19152
19196
|
"type": "string",
|
19153
19197
|
"value_allowed_null": false
|
19154
19198
|
},
|
19155
19199
|
{
|
19156
19200
|
"disabled": false,
|
19157
19201
|
"document": "任务关联的实例 ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
19158
|
-
"example": "",
|
19202
|
+
"example": "无",
|
19159
19203
|
"member": "string",
|
19160
19204
|
"name": "InstanceIds",
|
19161
|
-
"
|
19205
|
+
"output_required": true,
|
19162
19206
|
"type": "list",
|
19163
19207
|
"value_allowed_null": true
|
19164
19208
|
},
|
19165
19209
|
{
|
19166
19210
|
"disabled": false,
|
19167
19211
|
"document": "异步任务的请求 ID。",
|
19168
|
-
"example": "",
|
19212
|
+
"example": "无",
|
19169
19213
|
"member": "string",
|
19170
19214
|
"name": "AsyncRequestId",
|
19171
|
-
"
|
19215
|
+
"output_required": true,
|
19172
19216
|
"type": "string",
|
19173
19217
|
"value_allowed_null": false
|
19218
|
+
},
|
19219
|
+
{
|
19220
|
+
"disabled": false,
|
19221
|
+
"document": "任务的附加信息。\n注意:此字段可能返回 null,表示取不到有效值。",
|
19222
|
+
"example": "无",
|
19223
|
+
"member": "TaskAttachInfo",
|
19224
|
+
"name": "TaskAttachInfo",
|
19225
|
+
"output_required": false,
|
19226
|
+
"type": "list",
|
19227
|
+
"value_allowed_null": true
|
19174
19228
|
}
|
19175
19229
|
],
|
19176
19230
|
"usage": "out"
|
@@ -158,8 +158,8 @@
|
|
158
158
|
],
|
159
159
|
"CreateCloneInstance": [
|
160
160
|
{
|
161
|
-
"document": "",
|
162
|
-
"input": "
|
161
|
+
"document": "克隆实例并回档到指定时间",
|
162
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloneInstance\n<公共请求参数>\n\n{\n \"UniqVpcId\": \"vpc-594gwq4l\",\n \"InstanceId\": \"cdb-9303wd4x\",\n \"Volume\": \"50\",\n \"UniqSubnetId\": \"subnet-dz5pj862\",\n \"SpecifiedRollbackTime\": \"2020-08-0116:27:43\",\n \"Memory\": \"1000\"\n}",
|
163
163
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"AsyncRequestId\": \"256117ed-efa08b54-61784d44-91781bbd\"\n }\n}",
|
164
164
|
"title": "克隆实例并回档到指定时间"
|
165
165
|
}
|
@@ -274,6 +274,15 @@
|
|
274
274
|
"name": "Tags",
|
275
275
|
"required": false,
|
276
276
|
"type": "object"
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"disabled": false,
|
280
|
+
"document": "版本",
|
281
|
+
"example": "无",
|
282
|
+
"member": "string",
|
283
|
+
"name": "ProductVersion",
|
284
|
+
"required": false,
|
285
|
+
"type": "string"
|
277
286
|
}
|
278
287
|
],
|
279
288
|
"type": "object"
|
@@ -1057,6 +1057,58 @@ def doModifyDatahubTask(args, parsed_globals):
|
|
1057
1057
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1058
1058
|
|
1059
1059
|
|
1060
|
+
def doDescribePrometheus(args, parsed_globals):
|
1061
|
+
g_param = parse_global_arg(parsed_globals)
|
1062
|
+
|
1063
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1064
|
+
cred = credential.CVMRoleCredential()
|
1065
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1066
|
+
cred = credential.STSAssumeRoleCredential(
|
1067
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1068
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1069
|
+
)
|
1070
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
1071
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1072
|
+
else:
|
1073
|
+
cred = credential.Credential(
|
1074
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1075
|
+
)
|
1076
|
+
http_profile = HttpProfile(
|
1077
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1078
|
+
reqMethod="POST",
|
1079
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1080
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1081
|
+
)
|
1082
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1083
|
+
if g_param[OptionsDefine.Language]:
|
1084
|
+
profile.language = g_param[OptionsDefine.Language]
|
1085
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1086
|
+
client = mod.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
|
1087
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1088
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1089
|
+
model = models.DescribePrometheusRequest()
|
1090
|
+
model.from_json_string(json.dumps(args))
|
1091
|
+
start_time = time.time()
|
1092
|
+
while True:
|
1093
|
+
rsp = client.DescribePrometheus(model)
|
1094
|
+
result = rsp.to_json_string()
|
1095
|
+
try:
|
1096
|
+
json_obj = json.loads(result)
|
1097
|
+
except TypeError as e:
|
1098
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1099
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1100
|
+
break
|
1101
|
+
cur_time = time.time()
|
1102
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1103
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1104
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1105
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1106
|
+
else:
|
1107
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1108
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1109
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1110
|
+
|
1111
|
+
|
1060
1112
|
def doDescribeDatahubTasks(args, parsed_globals):
|
1061
1113
|
g_param = parse_global_arg(parsed_globals)
|
1062
1114
|
|
@@ -2929,6 +2981,58 @@ def doDescribeAppInfo(args, parsed_globals):
|
|
2929
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
2982
|
|
2931
2983
|
|
2984
|
+
def doCreatePrometheus(args, parsed_globals):
|
2985
|
+
g_param = parse_global_arg(parsed_globals)
|
2986
|
+
|
2987
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2988
|
+
cred = credential.CVMRoleCredential()
|
2989
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2990
|
+
cred = credential.STSAssumeRoleCredential(
|
2991
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2992
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2993
|
+
)
|
2994
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
2995
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2996
|
+
else:
|
2997
|
+
cred = credential.Credential(
|
2998
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2999
|
+
)
|
3000
|
+
http_profile = HttpProfile(
|
3001
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3002
|
+
reqMethod="POST",
|
3003
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3004
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3005
|
+
)
|
3006
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3007
|
+
if g_param[OptionsDefine.Language]:
|
3008
|
+
profile.language = g_param[OptionsDefine.Language]
|
3009
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3010
|
+
client = mod.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
|
3011
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3012
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3013
|
+
model = models.CreatePrometheusRequest()
|
3014
|
+
model.from_json_string(json.dumps(args))
|
3015
|
+
start_time = time.time()
|
3016
|
+
while True:
|
3017
|
+
rsp = client.CreatePrometheus(model)
|
3018
|
+
result = rsp.to_json_string()
|
3019
|
+
try:
|
3020
|
+
json_obj = json.loads(result)
|
3021
|
+
except TypeError as e:
|
3022
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3023
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3024
|
+
break
|
3025
|
+
cur_time = time.time()
|
3026
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3027
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3028
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3029
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3030
|
+
else:
|
3031
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3032
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3033
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
|
+
|
3035
|
+
|
2932
3036
|
def doInstanceScalingDown(args, parsed_globals):
|
2933
3037
|
g_param = parse_global_arg(parsed_globals)
|
2934
3038
|
|
@@ -4260,6 +4364,7 @@ ACTION_MAP = {
|
|
4260
4364
|
"DeleteConnectResource": doDeleteConnectResource,
|
4261
4365
|
"DescribeGroup": doDescribeGroup,
|
4262
4366
|
"ModifyDatahubTask": doModifyDatahubTask,
|
4367
|
+
"DescribePrometheus": doDescribePrometheus,
|
4263
4368
|
"DescribeDatahubTasks": doDescribeDatahubTasks,
|
4264
4369
|
"DescribeInstances": doDescribeInstances,
|
4265
4370
|
"DescribeDatahubTopic": doDescribeDatahubTopic,
|
@@ -4296,6 +4401,7 @@ ACTION_MAP = {
|
|
4296
4401
|
"CancelAuthorizationToken": doCancelAuthorizationToken,
|
4297
4402
|
"DeleteAcl": doDeleteAcl,
|
4298
4403
|
"DescribeAppInfo": doDescribeAppInfo,
|
4404
|
+
"CreatePrometheus": doCreatePrometheus,
|
4299
4405
|
"InstanceScalingDown": doInstanceScalingDown,
|
4300
4406
|
"DescribeGroupOffsets": doDescribeGroupOffsets,
|
4301
4407
|
"DeleteInstancePre": doDeleteInstancePre,
|