tccli 3.0.1051.1__py2.py3-none-any.whl → 3.0.1053.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/ccc/v20200210/BindNumberCallOutSkillGroup.md +5 -1
- tccli/examples/ccc/v20200210/DescribeActiveCarrierPrivilegeNumber.md +9 -7
- tccli/examples/ccc/v20200210/DescribeCCCBuyInfoList.md +19 -38
- tccli/examples/ccc/v20200210/UnbindNumberCallOutSkillGroup.md +5 -1
- tccli/examples/cdb/v20170320/DescribeInstanceAlarmEvents.md +18 -0
- tccli/examples/cdb/v20170320/ModifyDBInstanceLogToCLS.md +1 -1
- tccli/examples/cfw/v20190904/AddVpcAcRule.md +1 -1
- tccli/examples/cfw/v20190904/DescribeBlockIgnoreList.md +22 -2
- tccli/examples/cynosdb/v20190107/DescribeAuditInstanceList.md +51 -0
- tccli/examples/ess/v20201111/CreateFlow.md +22 -33
- tccli/examples/ess/v20201111/CreateFlowByFiles.md +0 -76
- tccli/examples/ess/v20201111/ModifyFlowDeadline.md +99 -0
- tccli/examples/ess/v20201111/StartFlow.md +6 -6
- tccli/examples/essbasic/v20210526/ChannelCreateFlowSignReview.md +8 -7
- tccli/examples/essbasic/v20210526/CreateFlowsByTemplates.md +208 -74
- tccli/examples/essbasic/v20210526/ModifyFlowDeadline.md +111 -0
- tccli/examples/iotvideo/v20211125/DescribeDevicePackages.md +1 -0
- tccli/examples/iss/v20230517/DescribeVideoDownloadUrl.md +4 -4
- tccli/examples/mongodb/v20190725/DescribeDBInstances.md +2 -1
- tccli/examples/mongodb/v20190725/ModifyDBInstanceSpec.md +64 -0
- tccli/examples/ocr/v20181119/RecognizeEncryptedIDCardOCR.md +48 -0
- tccli/examples/postgres/v20170312/ModifyDBInstanceSpec.md +1 -1
- tccli/examples/ssl/v20191205/DeleteCertificate.md +23 -0
- tccli/examples/svp/v20240125/CreateSavingPlanOrder.md +29 -0
- tccli/examples/tag/v20180813/DescribeProjects.md +2 -2
- tccli/examples/teo/v20220901/CreateL4Proxy.md +47 -0
- tccli/examples/teo/v20220901/CreateL4ProxyRules.md +33 -0
- tccli/examples/teo/v20220901/DeleteL4Proxy.md +21 -0
- tccli/examples/teo/v20220901/DeleteL4ProxyRules.md +22 -0
- tccli/examples/teo/v20220901/DescribeBillingData.md +102 -14
- tccli/examples/teo/v20220901/DescribeL4Proxy.md +38 -0
- tccli/examples/teo/v20220901/DescribeL4ProxyRules.md +43 -0
- tccli/examples/teo/v20220901/ModifyL4Proxy.md +22 -0
- tccli/examples/teo/v20220901/ModifyL4ProxyRules.md +25 -0
- tccli/examples/teo/v20220901/ModifyL4ProxyRulesStatus.md +23 -0
- tccli/examples/teo/v20220901/ModifyL4ProxyStatus.md +22 -0
- tccli/examples/tione/v20211111/CreateBatchTask.md +1 -5
- tccli/examples/tione/v20211111/DeleteBatchTask.md +1 -1
- tccli/examples/tione/v20211111/DescribeBatchTask.md +101 -105
- tccli/examples/tione/v20211111/DescribeBatchTaskInstances.md +8 -6
- tccli/examples/tione/v20211111/DescribeBatchTasks.md +44 -75
- tccli/examples/tione/v20211111/StopBatchTask.md +2 -2
- tccli/examples/trtc/v20190722/DescribeStreamIngest.md +1 -1
- tccli/examples/trtc/v20190722/StartStreamIngest.md +2 -2
- tccli/examples/trtc/v20190722/StopStreamIngest.md +1 -1
- tccli/examples/waf/v20180125/AddAttackWhiteRule.md +7 -7
- tccli/examples/waf/v20180125/DeleteHost.md +4 -2
- tccli/examples/waf/v20180125/DescribeCertificateVerifyResult.md +5 -5
- tccli/examples/waf/v20180125/DescribeUserDomainInfo.md +13 -471
- tccli/examples/waf/v20180125/ModifyAttackWhiteRule.md +6 -6
- tccli/examples/waf/v20180125/ModifyDomainPostAction.md +22 -0
- tccli/examples/waf/v20180125/ModifyHost.md +1 -1
- tccli/examples/waf/v20180125/ModifyHostFlowMode.md +1 -1
- tccli/examples/waf/v20180125/ModifyObject.md +5 -3
- tccli/examples/wedata/v20210820/AcquireLock.md +80 -0
- tccli/examples/wedata/v20210820/AnalyzeDependentTasks.md +33 -0
- tccli/examples/wedata/v20210820/BatchCreateTaskVersionAsync.md +57 -0
- tccli/examples/wedata/v20210820/BatchCreateTaskVersionDs.md +249 -4
- tccli/examples/wedata/v20210820/BatchCreateVirtualTaskDs.md +64 -0
- tccli/examples/wedata/v20210820/BatchDeleteTasksDsAsync.md +51 -0
- tccli/examples/wedata/v20210820/BatchRunTasksDs.md +27 -0
- tccli/examples/wedata/v20210820/BatchUpdateTasksDs.md +620 -0
- tccli/examples/wedata/v20210820/CheckCustomFunctionPremise.md +24 -0
- tccli/examples/wedata/v20210820/CheckTaskNameExistDs.md +27 -0
- tccli/examples/wedata/v20210820/CheckTaskPriorityDs.md +23 -0
- tccli/examples/wedata/v20210820/ClearRecycleTask.md +21 -0
- tccli/examples/wedata/v20210820/CommitWorkflow.md +26 -0
- tccli/examples/wedata/v20210820/CompareDsTaskVersionInfo.md +695 -0
- tccli/examples/wedata/v20210820/CopyTaskDs.md +51 -0
- tccli/examples/wedata/v20210820/CopyWorkflowDs.md +25 -0
- tccli/examples/wedata/v20210820/CreateBrowsingHistory.md +28 -0
- tccli/examples/wedata/v20210820/CreateFileVersion.md +34 -0
- tccli/examples/wedata/v20210820/CreateLink.md +24 -0
- tccli/examples/wedata/v20210820/CreateOrUpdateResource.md +6 -6
- tccli/examples/wedata/v20210820/CreatePath.md +23 -0
- tccli/examples/wedata/v20210820/CreateProjectParamDs.md +36 -0
- tccli/examples/wedata/v20210820/CreateResourceDirectory.md +23 -0
- tccli/examples/wedata/v20210820/CreateResourcePath.md +1 -1
- tccli/examples/wedata/v20210820/CreateScriptsImportTasksDs.md +628 -0
- tccli/examples/wedata/v20210820/CreateTaskDs.md +50 -0
- tccli/examples/wedata/v20210820/CreateTaskFolder.md +24 -0
- tccli/examples/wedata/v20210820/CreateTaskInParamDs.md +29 -0
- tccli/examples/wedata/v20210820/CreateTaskOutParamDs.md +28 -0
- tccli/examples/wedata/v20210820/CreateTaskOutputRegistries.md +48 -0
- tccli/examples/wedata/v20210820/CreateTaskOutputRegistry.md +47 -0
- tccli/examples/wedata/v20210820/CreateTaskParamDs.md +27 -0
- tccli/examples/wedata/v20210820/CreateWorkflowDs.md +23 -0
- tccli/examples/wedata/v20210820/DeleteBatchWorkflowDs.md +26 -0
- tccli/examples/wedata/v20210820/DeleteCustomFunction.md +2 -2
- tccli/examples/wedata/v20210820/DeleteDsEvent.md +32 -0
- tccli/examples/wedata/v20210820/DeleteDsEventListener.md +25 -0
- tccli/examples/wedata/v20210820/DeleteDsEventPublisher.md +23 -0
- tccli/examples/wedata/v20210820/DeleteEventListenerByTaskId.md +25 -0
- tccli/examples/wedata/v20210820/DeleteLink.md +25 -0
- tccli/examples/wedata/v20210820/DeleteProjectParamVersionDs.md +23 -0
- tccli/examples/wedata/v20210820/DeleteRecordList.md +21 -0
- tccli/examples/wedata/v20210820/DeleteRecycleTask.md +21 -0
- tccli/examples/wedata/v20210820/DeleteResource.md +1 -1
- tccli/examples/wedata/v20210820/DeleteResourcePath.md +22 -0
- tccli/examples/wedata/v20210820/DeleteTaskFolder.md +23 -0
- tccli/examples/wedata/v20210820/DeleteTaskInParamDs.md +23 -0
- tccli/examples/wedata/v20210820/DeleteTaskOutParamDs.md +23 -0
- tccli/examples/wedata/v20210820/DeleteTaskOutputRegistry.md +46 -0
- tccli/examples/wedata/v20210820/DescribeAllParamDs.md +38 -0
- tccli/examples/wedata/v20210820/DescribeBatchTestRun.md +30 -0
- tccli/examples/wedata/v20210820/DescribeBrowsingHistories.md +31 -0
- tccli/examples/wedata/v20210820/DescribeChildrenDs.md +661 -0
- tccli/examples/wedata/v20210820/DescribeChildrenPathTrees.md +177 -0
- tccli/examples/wedata/v20210820/DescribeCodeDetail.md +33 -0
- tccli/examples/wedata/v20210820/DescribeCodeDetailV2.md +34 -0
- tccli/examples/wedata/v20210820/DescribeCodeSearchAuditInfo.md +98 -0
- tccli/examples/wedata/v20210820/DescribeCodeSearchAuditInfoV2.md +36 -0
- tccli/examples/wedata/v20210820/DescribeCodeSearchCount.md +28 -0
- tccli/examples/wedata/v20210820/DescribeCodeSearchInfo.md +51 -0
- tccli/examples/wedata/v20210820/DescribeCodeSearchInfoV2.md +65 -0
- tccli/examples/wedata/v20210820/DescribeCrontabTopNDs.md +25 -0
- tccli/examples/wedata/v20210820/DescribeCustomFunctionVersionList.md +33 -0
- tccli/examples/wedata/v20210820/DescribeDataDevelopTaskType.md +78 -0
- tccli/examples/wedata/v20210820/DescribeDataTableImportProgress.md +37 -0
- tccli/examples/wedata/v20210820/DescribeDependTasksDevDs.md +72 -0
- tccli/examples/wedata/v20210820/DescribeDependencyTasksForProjectClone.md +67 -0
- tccli/examples/wedata/v20210820/DescribeDependencyWorkflowForProjectClone.md +38 -0
- tccli/examples/wedata/v20210820/DescribeDevelopmentSpaceSupportType.md +24 -0
- tccli/examples/wedata/v20210820/DescribeDsEvent.md +106 -0
- tccli/examples/wedata/v20210820/DescribeDsEventDetail.md +58 -0
- tccli/examples/wedata/v20210820/DescribeDsEventListener.md +34 -0
- tccli/examples/wedata/v20210820/DescribeDsEventListenerList.md +34 -0
- tccli/examples/wedata/v20210820/DescribeDsEventPublisher.md +33 -0
- tccli/examples/wedata/v20210820/DescribeDsEventPublisherList.md +34 -0
- tccli/examples/wedata/v20210820/DescribeDsKettleServerFolderTree.md +54 -0
- tccli/examples/wedata/v20210820/DescribeDsLatestTaskVersionInfo.md +692 -0
- tccli/examples/wedata/v20210820/DescribeDsNotSubmitTasksAndCanRunByWorkflow.md +654 -0
- tccli/examples/wedata/v20210820/DescribeDsTaskVersionInfo.md +693 -0
- tccli/examples/wedata/v20210820/DescribeDsTaskVersionList.md +694 -0
- tccli/examples/wedata/v20210820/DescribeEtlTaskType.md +44 -0
- tccli/examples/wedata/v20210820/DescribeEventListenerByTaskId.md +25 -0
- tccli/examples/wedata/v20210820/DescribeEventListenerTask.md +27 -0
- tccli/examples/wedata/v20210820/DescribeExecutionLog.md +28 -0
- tccli/examples/wedata/v20210820/DescribeFatherDatasourceInfoDs.md +37 -0
- tccli/examples/wedata/v20210820/DescribeFileVersions.md +21 -0
- tccli/examples/wedata/v20210820/DescribeFunctionKinds.md +5 -5
- tccli/examples/wedata/v20210820/DescribeFunctionTypes.md +5 -5
- tccli/examples/wedata/v20210820/DescribeGlobalWorkflowDs.md +182 -0
- tccli/examples/wedata/v20210820/DescribeImportableOfflineTask.md +31 -0
- tccli/examples/wedata/v20210820/DescribeInfoTransByTypeIdDs.md +1031 -0
- tccli/examples/wedata/v20210820/DescribeLock.md +27 -0
- tccli/examples/wedata/v20210820/DescribeNewSqlTaskResult.md +28 -0
- tccli/examples/wedata/v20210820/DescribeOrganizationalFunctions.md +33 -29
- tccli/examples/wedata/v20210820/DescribeParentTask.md +652 -0
- tccli/examples/wedata/v20210820/DescribePathTrees.md +122 -0
- tccli/examples/wedata/v20210820/DescribeProdWorkflowCanvasInfoDs.md +36 -0
- tccli/examples/wedata/v20210820/DescribeProjectParamDs.md +38 -0
- tccli/examples/wedata/v20210820/DescribeProjectParamDsPage.md +48 -0
- tccli/examples/wedata/v20210820/DescribeProjectParamVersionDs.md +34 -0
- tccli/examples/wedata/v20210820/DescribeProjectParamVersionInfoDs.md +37 -0
- tccli/examples/wedata/v20210820/DescribeRecordList.md +50 -0
- tccli/examples/wedata/v20210820/DescribeRecycleTaskDetail.md +651 -0
- tccli/examples/wedata/v20210820/DescribeRecycleTaskList.md +62 -0
- tccli/examples/wedata/v20210820/DescribeResourceManagePathTrees.md +3 -3
- tccli/examples/wedata/v20210820/DescribeScriptsImportTaskType.md +78 -0
- tccli/examples/wedata/v20210820/DescribeSqlTaskResult.md +28 -0
- tccli/examples/wedata/v20210820/DescribeTaskBindVirtualTask.md +39 -0
- tccli/examples/wedata/v20210820/DescribeTaskDetailDs.md +653 -0
- tccli/examples/wedata/v20210820/DescribeTaskInParamDs.md +36 -0
- tccli/examples/wedata/v20210820/DescribeTaskLatestRunTime.md +49 -0
- tccli/examples/wedata/v20210820/DescribeTaskListByConditionDs.md +662 -0
- tccli/examples/wedata/v20210820/DescribeTaskOutParamDs.md +36 -0
- tccli/examples/wedata/v20210820/DescribeTaskOutputRegistries.md +35 -0
- tccli/examples/wedata/v20210820/DescribeTaskParamDs.md +63 -0
- tccli/examples/wedata/v20210820/DescribeTaskParentRunTime.md +46 -0
- tccli/examples/wedata/v20210820/DescribeTaskTypeByScriptType.md +79 -0
- tccli/examples/wedata/v20210820/DescribeTasksForProjectClone.md +74 -0
- tccli/examples/wedata/v20210820/DescribeTestRun.md +26 -0
- tccli/examples/wedata/v20210820/DescribeToken.md +19 -0
- tccli/examples/wedata/v20210820/DescribeWorkflowByFordIds.md +668 -0
- tccli/examples/wedata/v20210820/DescribeWorkflowCanvasInfoDs.md +272 -0
- tccli/examples/wedata/v20210820/DescribeWorkflowCanvasOpLogs.md +61 -0
- tccli/examples/wedata/v20210820/DescribeWorkflowCanvasOperators.md +27 -0
- tccli/examples/wedata/v20210820/DescribeWorkflowForProjectClone.md +59 -0
- tccli/examples/wedata/v20210820/DescribeWorkflowParamDs.md +39 -0
- tccli/examples/wedata/v20210820/DescribeWorkflowSchedulerInfoDs.md +44 -0
- tccli/examples/wedata/v20210820/DescribeWorkflowTasksForProjectClone.md +48 -0
- tccli/examples/wedata/v20210820/DownloadNewSqlResult.md +25 -0
- tccli/examples/wedata/v20210820/DownloadSqlResult.md +25 -0
- tccli/examples/wedata/v20210820/ExportDsEvent.md +57 -0
- tccli/examples/wedata/v20210820/ExportFiles.md +24 -0
- tccli/examples/wedata/v20210820/ExportProjectParamDs.md +34 -0
- tccli/examples/wedata/v20210820/ExportWorkflowXml.md +40 -0
- tccli/examples/wedata/v20210820/ExportWorkflowZip.md +40 -0
- tccli/examples/wedata/v20210820/FindDependTaskListDs.md +654 -0
- tccli/examples/wedata/v20210820/FindDependTaskListsDs.md +654 -0
- tccli/examples/wedata/v20210820/FindFuzzyTasksDs.md +661 -0
- tccli/examples/wedata/v20210820/FindTaskByRemotePath.md +238 -0
- tccli/examples/wedata/v20210820/GetAdvanceRunParams.md +50 -0
- tccli/examples/wedata/v20210820/GetBatchDetailErrorLog.md +22 -0
- tccli/examples/wedata/v20210820/GetCosToken.md +39 -0
- tccli/examples/wedata/v20210820/GetLatestAnalyseInfo.md +32 -0
- tccli/examples/wedata/v20210820/GetLatestTestRunInfo.md +36 -0
- tccli/examples/wedata/v20210820/GetPathTrees.md +57 -0
- tccli/examples/wedata/v20210820/GetResourceCosPath.md +23 -0
- tccli/examples/wedata/v20210820/GetResourcePathTree.md +84 -0
- tccli/examples/wedata/v20210820/GetRunSonListDs.md +25 -0
- tccli/examples/wedata/v20210820/GetTestRunTaskInstancesStatusInfo.md +31 -0
- tccli/examples/wedata/v20210820/HeartBeat.md +58 -0
- tccli/examples/wedata/v20210820/ImportDsEvent.md +22 -0
- tccli/examples/wedata/v20210820/ImportFiles.md +47 -0
- tccli/examples/wedata/v20210820/ImportOfflineTask.md +26 -0
- tccli/examples/wedata/v20210820/ImportProjectParamDs.md +25 -0
- tccli/examples/wedata/v20210820/ImportTableData.md +83 -0
- tccli/examples/wedata/v20210820/ImportWorkflowXml.md +23 -0
- tccli/examples/wedata/v20210820/ImportWorkflowZip.md +22 -0
- tccli/examples/wedata/v20210820/JudgeResourceFile.md +22 -0
- tccli/examples/wedata/v20210820/JudgeTaskListenEvent.md +24 -0
- tccli/examples/wedata/v20210820/KillTasksTestRun.md +29 -0
- tccli/examples/wedata/v20210820/ListBatchDetail.md +48 -0
- tccli/examples/wedata/v20210820/ListBatchJob.md +45 -0
- tccli/examples/wedata/v20210820/ModifyTaskFolder.md +25 -0
- tccli/examples/wedata/v20210820/ModifyTaskInfoDs.md +69 -0
- tccli/examples/wedata/v20210820/ModifyTaskLinksDs.md +56 -0
- tccli/examples/wedata/v20210820/ModifyTaskScriptDs.md +49 -0
- tccli/examples/wedata/v20210820/MoveFile.md +23 -0
- tccli/examples/wedata/v20210820/MoveTasksToFolder.md +24 -0
- tccli/examples/wedata/v20210820/PreviewDataTableCsv.md +981 -0
- tccli/examples/wedata/v20210820/QueryWorkflowVersion.md +33 -0
- tccli/examples/wedata/v20210820/RegisterDsEvent.md +68 -0
- tccli/examples/wedata/v20210820/RegisterDsEventListener.md +49 -0
- tccli/examples/wedata/v20210820/RegisterDsEventPublisher.md +37 -0
- tccli/examples/wedata/v20210820/ReleaseLock.md +44 -0
- tccli/examples/wedata/v20210820/RemoveWorkflowDs.md +25 -0
- tccli/examples/wedata/v20210820/RenameFile.md +25 -0
- tccli/examples/wedata/v20210820/RenameResource.md +24 -0
- tccli/examples/wedata/v20210820/RenameResourceFile.md +29 -0
- tccli/examples/wedata/v20210820/RenameResourcePath.md +23 -0
- tccli/examples/wedata/v20210820/RenameTaskDs.md +25 -0
- tccli/examples/wedata/v20210820/RenewWorkflowDs.md +25 -0
- tccli/examples/wedata/v20210820/RenewWorkflowFolderDs.md +23 -0
- tccli/examples/wedata/v20210820/RenewWorkflowOwnerDs.md +28 -0
- tccli/examples/wedata/v20210820/RenewWorkflowSchedulerInfoDs.md +33 -0
- tccli/examples/wedata/v20210820/ReplaceProjectParamVersionDs.md +23 -0
- tccli/examples/wedata/v20210820/RestoreRecycleTask.md +28 -0
- tccli/examples/wedata/v20210820/RollbackCustomFunctionVersion.md +24 -0
- tccli/examples/wedata/v20210820/SaveCustomFunction.md +17 -17
- tccli/examples/wedata/v20210820/SavePositionsDs.md +601 -0
- tccli/examples/wedata/v20210820/ScriptUsedByOtherTaskDs.md +21 -0
- tccli/examples/wedata/v20210820/StopAdhocTask.md +66 -0
- tccli/examples/wedata/v20210820/StopTestRun.md +21 -0
- tccli/examples/wedata/v20210820/SubmitBatchTestRun.md +28 -0
- tccli/examples/wedata/v20210820/SubmitCustomFunction.md +7 -7
- tccli/examples/wedata/v20210820/SubmitIntegrationTask.md +43 -0
- tccli/examples/wedata/v20210820/SubmitPySparkTask.md +45 -0
- tccli/examples/wedata/v20210820/SubmitPythonTask.md +85 -0
- tccli/examples/wedata/v20210820/SubmitShellTask.md +85 -0
- tccli/examples/wedata/v20210820/SubmitTestRun.md +24 -0
- tccli/examples/wedata/v20210820/UpdateBatchTaskAdvancedSettings.md +113 -0
- tccli/examples/wedata/v20210820/UpdateBatchTaskDatasource.md +104 -0
- tccli/examples/wedata/v20210820/UpdateBatchTaskInCharge.md +25 -0
- tccli/examples/wedata/v20210820/UpdateBatchTaskParameter.md +58 -0
- tccli/examples/wedata/v20210820/UpdateBatchTaskParams.md +79 -0
- tccli/examples/wedata/v20210820/UpdateBatchTaskResourceGroup.md +25 -0
- tccli/examples/wedata/v20210820/UpdateBatchTaskSchedule.md +154 -0
- tccli/examples/wedata/v20210820/UpdateDsEvent.md +25 -0
- tccli/examples/wedata/v20210820/UpdateEventListener.md +27 -0
- tccli/examples/wedata/v20210820/UpdateTaskDs.md +705 -0
- tccli/examples/wedata/v20210820/UpdateWorkflowInfo.md +34 -0
- tccli/examples/wedata/v20210820/UploadAdvanceRunParams.md +24 -0
- tccli/examples/wedata/v20210820/UploadFilesDs.md +51 -0
- tccli/examples/wedata/v20210820/UploadResource.md +53 -0
- tccli/services/__init__.py +3 -0
- tccli/services/apigateway/v20180808/api.json +1 -1
- tccli/services/ccc/v20200210/api.json +15 -12
- tccli/services/ccc/v20200210/examples.json +5 -5
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +54 -2
- tccli/services/cdb/v20170320/examples.json +9 -1
- tccli/services/cdwdoris/v20211228/api.json +30 -0
- tccli/services/cfw/v20190904/api.json +277 -21
- tccli/services/cfw/v20190904/examples.json +2 -2
- tccli/services/ckafka/v20190819/api.json +2 -1
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +288 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dasb/v20191018/api.json +25 -4
- tccli/services/emr/v20190103/api.json +91 -61
- tccli/services/es/v20180416/api.json +9 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +109 -21
- tccli/services/ess/v20201111/examples.json +37 -11
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +117 -29
- tccli/services/essbasic/v20210526/examples.json +48 -16
- tccli/services/ioa/v20220601/api.json +6 -6
- tccli/services/iotvideo/v20211125/api.json +19 -0
- tccli/services/iotvideo/v20211125/examples.json +1 -1
- tccli/services/iss/v20230517/api.json +10 -10
- tccli/services/iss/v20230517/examples.json +2 -2
- tccli/services/kms/v20190118/api.json +3 -3
- tccli/services/mna/v20210119/api.json +3 -3
- tccli/services/mongodb/v20190725/api.json +10 -0
- tccli/services/mongodb/v20190725/examples.json +13 -1
- tccli/services/monitor/v20180724/api.json +31 -11
- tccli/services/mps/v20190612/api.json +55 -20
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +320 -3
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/postgres/v20170312/api.json +7 -7
- tccli/services/postgres/v20170312/examples.json +2 -2
- tccli/services/redis/v20180412/api.json +42 -12
- tccli/services/rum/v20210622/api.json +2 -2
- tccli/services/scf/v20180416/api.json +9 -0
- tccli/services/ssl/v20191205/api.json +24 -4
- tccli/services/ssl/v20191205/examples.json +6 -0
- tccli/services/svp/__init__.py +4 -0
- tccli/services/svp/svp_client.py +195 -0
- tccli/services/svp/v20240125/api.json +129 -0
- tccli/services/svp/v20240125/examples.json +13 -0
- tccli/services/tag/v20180813/api.json +20 -2
- tccli/services/tag/v20180813/examples.json +1 -1
- tccli/services/teo/teo_client.py +878 -295
- tccli/services/teo/v20220901/api.json +1267 -152
- tccli/services/teo/v20220901/examples.json +94 -0
- tccli/services/tione/v20211111/api.json +130 -126
- tccli/services/tione/v20211111/examples.json +15 -15
- tccli/services/tmt/v20180321/api.json +5 -3
- tccli/services/trtc/v20190722/api.json +25 -16
- tccli/services/trtc/v20190722/examples.json +4 -4
- tccli/services/tse/v20201207/api.json +1 -1
- tccli/services/vod/v20180717/api.json +39 -1
- tccli/services/vpc/v20170312/api.json +11 -1
- tccli/services/waf/v20180125/api.json +564 -248
- tccli/services/waf/v20180125/examples.json +20 -20
- tccli/services/waf/waf_client.py +53 -0
- tccli/services/wedata/v20210820/api.json +165 -93
- tccli/services/wedata/v20210820/examples.json +34 -16
- {tccli-3.0.1051.1.dist-info → tccli-3.0.1053.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1051.1.dist-info → tccli-3.0.1053.1.dist-info}/RECORD +339 -117
- {tccli-3.0.1051.1.dist-info → tccli-3.0.1053.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1051.1.dist-info → tccli-3.0.1053.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1051.1.dist-info → tccli-3.0.1053.1.dist-info}/license_files/LICENSE +0 -0
@@ -3249,6 +3249,7 @@
|
|
3249
3249
|
"example": "demo",
|
3250
3250
|
"member": "string",
|
3251
3251
|
"name": "CompatibleRuntimes",
|
3252
|
+
"output_required": true,
|
3252
3253
|
"type": "list",
|
3253
3254
|
"value_allowed_null": false
|
3254
3255
|
},
|
@@ -3258,6 +3259,7 @@
|
|
3258
3259
|
"example": "test",
|
3259
3260
|
"member": "string",
|
3260
3261
|
"name": "CodeSha256",
|
3262
|
+
"output_required": true,
|
3261
3263
|
"type": "string",
|
3262
3264
|
"value_allowed_null": false
|
3263
3265
|
},
|
@@ -3267,6 +3269,7 @@
|
|
3267
3269
|
"example": "http://demo",
|
3268
3270
|
"member": "string",
|
3269
3271
|
"name": "Location",
|
3272
|
+
"output_required": true,
|
3270
3273
|
"type": "string",
|
3271
3274
|
"value_allowed_null": false
|
3272
3275
|
},
|
@@ -3276,6 +3279,7 @@
|
|
3276
3279
|
"example": "2023-01-01",
|
3277
3280
|
"member": "string",
|
3278
3281
|
"name": "AddTime",
|
3282
|
+
"output_required": true,
|
3279
3283
|
"type": "string",
|
3280
3284
|
"value_allowed_null": false
|
3281
3285
|
},
|
@@ -3285,6 +3289,7 @@
|
|
3285
3289
|
"example": "demo",
|
3286
3290
|
"member": "string",
|
3287
3291
|
"name": "Description",
|
3292
|
+
"output_required": true,
|
3288
3293
|
"type": "string",
|
3289
3294
|
"value_allowed_null": false
|
3290
3295
|
},
|
@@ -3294,6 +3299,7 @@
|
|
3294
3299
|
"example": "LicenseInfoDemo",
|
3295
3300
|
"member": "string",
|
3296
3301
|
"name": "LicenseInfo",
|
3302
|
+
"output_required": true,
|
3297
3303
|
"type": "string",
|
3298
3304
|
"value_allowed_null": false
|
3299
3305
|
},
|
@@ -3303,6 +3309,7 @@
|
|
3303
3309
|
"example": "l1",
|
3304
3310
|
"member": "int64",
|
3305
3311
|
"name": "LayerVersion",
|
3312
|
+
"output_required": true,
|
3306
3313
|
"type": "int",
|
3307
3314
|
"value_allowed_null": false
|
3308
3315
|
},
|
@@ -3312,6 +3319,7 @@
|
|
3312
3319
|
"example": "ln",
|
3313
3320
|
"member": "string",
|
3314
3321
|
"name": "LayerName",
|
3322
|
+
"output_required": true,
|
3315
3323
|
"type": "string",
|
3316
3324
|
"value_allowed_null": false
|
3317
3325
|
},
|
@@ -3321,6 +3329,7 @@
|
|
3321
3329
|
"example": "Active",
|
3322
3330
|
"member": "string",
|
3323
3331
|
"name": "Status",
|
3332
|
+
"output_required": true,
|
3324
3333
|
"type": "string",
|
3325
3334
|
"value_allowed_null": false
|
3326
3335
|
},
|
@@ -1028,7 +1028,7 @@
|
|
1028
1028
|
},
|
1029
1029
|
{
|
1030
1030
|
"disabled": false,
|
1031
|
-
"document": "证书套餐类型:\
|
1031
|
+
"document": "证书套餐类型:\n2 = TrustAsia TLS RSA CA,3 = SecureSite 增强型企业版(EV Pro), 4 = SecureSite 增强型(EV), 5 = SecureSite 企业型专业版(OV Pro), 6 = SecureSite 企业型(OV), 7 = SecureSite 企业型(OV)通配符, 8 = Geotrust 增强型(EV), 9 = Geotrust 企业型(OV), 10 = Geotrust 企业型(OV)通配符, 11 = TrustAsia 域名型多域名 SSL 证书, 12 = TrustAsia 域名型(DV)通配符, 13 = TrustAsia 企业型通配符(OV)SSL 证书(D3), 14 = TrustAsia 企业型(OV)SSL 证书(D3), 15 = TrustAsia 企业型多域名 (OV)SSL 证书(D3), 16 = TrustAsia 增强型 (EV)SSL 证书(D3), 17 = TrustAsia 增强型多域名(EV)SSL 证书(D3), 18 = GlobalSign 企业型(OV)SSL 证书, 19 = GlobalSign 企业型通配符 (OV)SSL 证书, 20 = GlobalSign 增强型 (EV)SSL 证书, 21 = TrustAsia 企业型通配符多域名(OV)SSL 证书(D3), 22 = GlobalSign 企业型多域名(OV)SSL 证书, 23 = GlobalSign 企业型通配符多域名(OV)SSL 证书, 24 = GlobalSign 增强型多域名(EV)SSL 证书,25 = Wotrus 域名型证书,26 = Wotrus 域名型多域名证书,27 = Wotrus 域名型通配符证书,28 = Wotrus 企业型证书,29 = Wotrus 企业型多域名证书,30 = Wotrus 企业型通配符证书,31 = Wotrus 增强型证书,32 = Wotrus 增强型多域名证书,33 = Wotrus 国密域名型证书,34 = Wotrus 国密域名型多域名证书,35 = Wotrus 国密域名型通配符证书,37 = Wotrus 国密企业型证书,38 = Wotrus 国密企业型多域名证书,39 = Wotrus 国密企业型通配符证书,40 = Wotrus 国密增强型证书,41 = Wotrus 国密增强型多域名证书,42 = TrustAsia 域名型通配符多域名证书,43 = DNSPod-企业型(OV)SSL证书,44 = DNSPod-企业型(OV)通配符SSL证书,45 = DNSPod-企业型(OV)多域名SSL证书, 46 = DNSPod-增强型(EV)SSL证书,47 = DNSPod-增强型(EV)多域名SSL证书,48 = DNSPod-域名型(DV)SSL证书,49 = DNSPod-域名型(DV)通配符SSL证书,50 = DNSPod-域名型(DV)多域名SSL证书,51 = DNSPod(国密)-企业型(OV)SSL证书,52 = DNSPod(国密)-企业型(OV)通配符SSL证书,53 = DNSPod(国密)-企业型(OV)多域名SSL证书,54 = DNSPod(国密)-域名型(DV)SSL证书,55 = DNSPod(国密)-域名型(DV)通配符SSL证书, 56 = DNSPod(国密)-域名型(DV)多域名SSL证书,57 = SecureSite 企业型专业版多域名(OV Pro),58 = SecureSite 企业型多域名(OV),59 = SecureSite 增强型专业版多域名(EV Pro),60 = SecureSite 增强型多域名(EV),61 = Geotrust 增强型多域名(EV)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1032
1032
|
"example": "无",
|
1033
1033
|
"member": "string",
|
1034
1034
|
"name": "PackageType",
|
@@ -2417,11 +2417,20 @@
|
|
2417
2417
|
{
|
2418
2418
|
"disabled": false,
|
2419
2419
|
"document": "证书 ID。",
|
2420
|
-
"example": "",
|
2420
|
+
"example": "qwrqwr1",
|
2421
2421
|
"member": "string",
|
2422
2422
|
"name": "CertificateId",
|
2423
2423
|
"required": true,
|
2424
2424
|
"type": "string"
|
2425
|
+
},
|
2426
|
+
{
|
2427
|
+
"disabled": false,
|
2428
|
+
"document": "删除时是否检查证书关联了云资源。默认不检查。如选择检查(需要授权服务角色SSL_QCSLinkedRoleInReplaceLoadCertificate)删除将变成异步,接口会返回异步任务ID。需使用DescribeDeleteCertificatesTaskResult接口查询删除是否成功。",
|
2429
|
+
"example": "无",
|
2430
|
+
"member": "bool",
|
2431
|
+
"name": "IsCheckResource",
|
2432
|
+
"required": false,
|
2433
|
+
"type": "bool"
|
2425
2434
|
}
|
2426
2435
|
],
|
2427
2436
|
"type": "object"
|
@@ -2432,12 +2441,23 @@
|
|
2432
2441
|
{
|
2433
2442
|
"disabled": false,
|
2434
2443
|
"document": "删除结果(true:删除成功,false:删除失败)",
|
2435
|
-
"example": "",
|
2444
|
+
"example": "true",
|
2436
2445
|
"member": "bool",
|
2437
2446
|
"name": "DeleteResult",
|
2447
|
+
"output_required": true,
|
2438
2448
|
"type": "bool",
|
2439
2449
|
"value_allowed_null": false
|
2440
2450
|
},
|
2451
|
+
{
|
2452
|
+
"disabled": false,
|
2453
|
+
"document": "异步删除的任务ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
2454
|
+
"example": "12566",
|
2455
|
+
"member": "string",
|
2456
|
+
"name": "TaskId",
|
2457
|
+
"output_required": false,
|
2458
|
+
"type": "string",
|
2459
|
+
"value_allowed_null": true
|
2460
|
+
},
|
2441
2461
|
{
|
2442
2462
|
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
2443
2463
|
"member": "string",
|
@@ -4131,7 +4151,7 @@
|
|
4131
4151
|
},
|
4132
4152
|
{
|
4133
4153
|
"disabled": false,
|
4134
|
-
"document": "每页数量,默认
|
4154
|
+
"document": "每页数量,默认10。最大1000",
|
4135
4155
|
"example": "11",
|
4136
4156
|
"member": "uint64",
|
4137
4157
|
"name": "Limit",
|
@@ -78,6 +78,12 @@
|
|
78
78
|
"input": "https://ssl.tencentcloudapi.com/?Action=DeleteCertificate\n&CertificateId=CertificateId\n&<公共请求参数>",
|
79
79
|
"output": "{\n \"Response\": {\n \"DeleteResult\": true,\n \"RequestId\": \"0b39eaa4-f938-476d-9b26-19fb07b80936\"\n }\n}",
|
80
80
|
"title": "删除证书"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"document": "",
|
84
|
+
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCertificate\n<公共请求参数>\n\n{\n \"CertificateId\": \"abc\",\n \"IsCheckResource\": true\n}",
|
85
|
+
"output": "{\n \"Response\": {\n \"DeleteResult\": false,\n \"TaskId\": \"1251261\",\n \"RequestId\": \"abc\"\n }\n}",
|
86
|
+
"title": "异步删除"
|
81
87
|
}
|
82
88
|
],
|
83
89
|
"DeleteManager": [
|
@@ -0,0 +1,195 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
import os
|
3
|
+
import sys
|
4
|
+
import six
|
5
|
+
import json
|
6
|
+
import tccli.options_define as OptionsDefine
|
7
|
+
import tccli.format_output as FormatOutput
|
8
|
+
from tccli import __version__
|
9
|
+
from tccli.utils import Utils
|
10
|
+
from tccli.exceptions import ConfigurationError, ClientError, ParamError
|
11
|
+
from tencentcloud.common import credential
|
12
|
+
from tencentcloud.common.profile.http_profile import HttpProfile
|
13
|
+
from tencentcloud.common.profile.client_profile import ClientProfile
|
14
|
+
from tencentcloud.svp.v20240125 import svp_client as svp_client_v20240125
|
15
|
+
from tencentcloud.svp.v20240125 import models as models_v20240125
|
16
|
+
|
17
|
+
from jmespath import search
|
18
|
+
import time
|
19
|
+
|
20
|
+
def doCreateSavingPlanOrder(args, parsed_globals):
|
21
|
+
g_param = parse_global_arg(parsed_globals)
|
22
|
+
|
23
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
24
|
+
cred = credential.CVMRoleCredential()
|
25
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
|
+
cred = credential.STSAssumeRoleCredential(
|
27
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
|
+
)
|
30
|
+
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):
|
31
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
32
|
+
else:
|
33
|
+
cred = credential.Credential(
|
34
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
35
|
+
)
|
36
|
+
http_profile = HttpProfile(
|
37
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
38
|
+
reqMethod="POST",
|
39
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
40
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
41
|
+
)
|
42
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
43
|
+
if g_param[OptionsDefine.Language]:
|
44
|
+
profile.language = g_param[OptionsDefine.Language]
|
45
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
46
|
+
client = mod.SvpClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
+
model = models.CreateSavingPlanOrderRequest()
|
50
|
+
model.from_json_string(json.dumps(args))
|
51
|
+
start_time = time.time()
|
52
|
+
while True:
|
53
|
+
rsp = client.CreateSavingPlanOrder(model)
|
54
|
+
result = rsp.to_json_string()
|
55
|
+
try:
|
56
|
+
json_obj = json.loads(result)
|
57
|
+
except TypeError as e:
|
58
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
59
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
60
|
+
break
|
61
|
+
cur_time = time.time()
|
62
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
63
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
64
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
65
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
66
|
+
else:
|
67
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
68
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
69
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
|
+
|
71
|
+
|
72
|
+
CLIENT_MAP = {
|
73
|
+
"v20240125": svp_client_v20240125,
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
MODELS_MAP = {
|
78
|
+
"v20240125": models_v20240125,
|
79
|
+
|
80
|
+
}
|
81
|
+
|
82
|
+
ACTION_MAP = {
|
83
|
+
"CreateSavingPlanOrder": doCreateSavingPlanOrder,
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
AVAILABLE_VERSION_LIST = [
|
88
|
+
"v20240125",
|
89
|
+
|
90
|
+
]
|
91
|
+
|
92
|
+
|
93
|
+
def action_caller():
|
94
|
+
return ACTION_MAP
|
95
|
+
|
96
|
+
|
97
|
+
def parse_global_arg(parsed_globals):
|
98
|
+
g_param = parsed_globals
|
99
|
+
|
100
|
+
is_exist_profile = True
|
101
|
+
if not parsed_globals["profile"]:
|
102
|
+
is_exist_profile = False
|
103
|
+
g_param["profile"] = os.environ.get("TCCLI_PROFILE", "default")
|
104
|
+
|
105
|
+
configure_path = os.path.join(os.path.expanduser("~"), ".tccli")
|
106
|
+
is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure")
|
107
|
+
is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential")
|
108
|
+
|
109
|
+
conf = {}
|
110
|
+
cred = {}
|
111
|
+
|
112
|
+
if is_conf_exist:
|
113
|
+
conf = Utils.load_json_msg(conf_path)
|
114
|
+
if is_cred_exist:
|
115
|
+
cred = Utils.load_json_msg(cred_path)
|
116
|
+
|
117
|
+
if not (isinstance(conf, dict) and isinstance(cred, dict)):
|
118
|
+
raise ConfigurationError(
|
119
|
+
"file: %s or %s is not json format"
|
120
|
+
% (g_param["profile"] + ".configure", g_param["profile"] + ".credential"))
|
121
|
+
|
122
|
+
if OptionsDefine.Token not in cred:
|
123
|
+
cred[OptionsDefine.Token] = None
|
124
|
+
|
125
|
+
if not is_exist_profile:
|
126
|
+
if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY):
|
127
|
+
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
128
|
+
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
129
|
+
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
130
|
+
|
131
|
+
if os.environ.get(OptionsDefine.ENV_REGION):
|
132
|
+
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
133
|
+
|
134
|
+
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
135
|
+
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
136
|
+
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
137
|
+
|
138
|
+
for param in g_param.keys():
|
139
|
+
if g_param[param] is None:
|
140
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]:
|
141
|
+
if param in cred:
|
142
|
+
g_param[param] = cred[param]
|
143
|
+
elif not (g_param[OptionsDefine.UseCVMRole.replace('-', '_')]
|
144
|
+
or os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN)):
|
145
|
+
raise ConfigurationError("%s is invalid" % param)
|
146
|
+
elif param in [OptionsDefine.Region, OptionsDefine.Output, OptionsDefine.Language]:
|
147
|
+
if param in conf[OptionsDefine.SysParam]:
|
148
|
+
g_param[param] = conf[OptionsDefine.SysParam][param]
|
149
|
+
elif param != OptionsDefine.Language:
|
150
|
+
raise ConfigurationError("%s is invalid" % param)
|
151
|
+
elif param.replace('_', '-') in [OptionsDefine.RoleArn, OptionsDefine.RoleSessionName]:
|
152
|
+
if param.replace('_', '-') in cred:
|
153
|
+
g_param[param] = cred[param.replace('_', '-')]
|
154
|
+
|
155
|
+
try:
|
156
|
+
if g_param[OptionsDefine.ServiceVersion]:
|
157
|
+
g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '')
|
158
|
+
else:
|
159
|
+
version = conf["svp"][OptionsDefine.Version]
|
160
|
+
g_param[OptionsDefine.Version] = "v" + version.replace('-', '')
|
161
|
+
|
162
|
+
if g_param[OptionsDefine.Endpoint] is None:
|
163
|
+
g_param[OptionsDefine.Endpoint] = conf["svp"][OptionsDefine.Endpoint]
|
164
|
+
g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
|
165
|
+
except Exception as err:
|
166
|
+
raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
|
167
|
+
|
168
|
+
if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST:
|
169
|
+
raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
|
170
|
+
|
171
|
+
if g_param[OptionsDefine.Waiter]:
|
172
|
+
param = eval(g_param[OptionsDefine.Waiter])
|
173
|
+
if 'expr' not in param:
|
174
|
+
raise Exception('`expr` in `--waiter` must be defined')
|
175
|
+
if 'to' not in param:
|
176
|
+
raise Exception('`to` in `--waiter` must be defined')
|
177
|
+
if 'timeout' not in param:
|
178
|
+
if 'waiter' in conf and 'timeout' in conf['waiter']:
|
179
|
+
param['timeout'] = conf['waiter']['timeout']
|
180
|
+
else:
|
181
|
+
param['timeout'] = 180
|
182
|
+
if 'interval' not in param:
|
183
|
+
if 'waiter' in conf and 'interval' in conf['waiter']:
|
184
|
+
param['interval'] = conf['waiter']['interval']
|
185
|
+
else:
|
186
|
+
param['interval'] = 5
|
187
|
+
param['interval'] = min(param['interval'], param['timeout'])
|
188
|
+
g_param['OptionsDefine.WaiterInfo'] = param
|
189
|
+
|
190
|
+
if six.PY2:
|
191
|
+
for key, value in g_param.items():
|
192
|
+
if isinstance(value, six.text_type):
|
193
|
+
g_param[key] = value.encode('utf-8')
|
194
|
+
return g_param
|
195
|
+
|
@@ -0,0 +1,129 @@
|
|
1
|
+
{
|
2
|
+
"actions": {
|
3
|
+
"CreateSavingPlanOrder": {
|
4
|
+
"document": "创建节省计划订单",
|
5
|
+
"input": "CreateSavingPlanOrderRequest",
|
6
|
+
"name": "创建节省计划订单",
|
7
|
+
"output": "CreateSavingPlanOrderResponse",
|
8
|
+
"status": "online"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"metadata": {
|
12
|
+
"apiVersion": "2024-01-25",
|
13
|
+
"api_brief": "介绍如何使用API对节省计划相关进行操作,包括购买、查询等。",
|
14
|
+
"serviceNameCN": "节省计划",
|
15
|
+
"serviceShortName": "svp"
|
16
|
+
},
|
17
|
+
"objects": {
|
18
|
+
"CreateSavingPlanOrderRequest": {
|
19
|
+
"document": "CreateSavingPlanOrder请求参数结构体",
|
20
|
+
"members": [
|
21
|
+
{
|
22
|
+
"disabled": false,
|
23
|
+
"document": "地域编码",
|
24
|
+
"example": "无",
|
25
|
+
"member": "int64",
|
26
|
+
"name": "RegionId",
|
27
|
+
"required": true,
|
28
|
+
"type": "int"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"disabled": false,
|
32
|
+
"document": "区域编码",
|
33
|
+
"example": "无",
|
34
|
+
"member": "int64",
|
35
|
+
"name": "ZoneId",
|
36
|
+
"required": true,
|
37
|
+
"type": "int"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"disabled": false,
|
41
|
+
"document": "预付费类型",
|
42
|
+
"example": "1全预费 2部分预付 3 不预付",
|
43
|
+
"member": "string",
|
44
|
+
"name": "PrePayType",
|
45
|
+
"required": true,
|
46
|
+
"type": "string"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"disabled": false,
|
50
|
+
"document": "时长",
|
51
|
+
"example": "示例值:时长为一年时,timeSpan为 1",
|
52
|
+
"member": "int64",
|
53
|
+
"name": "TimeSpan",
|
54
|
+
"required": true,
|
55
|
+
"type": "int"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"disabled": false,
|
59
|
+
"document": "时长单位",
|
60
|
+
"example": "示例值:时长为一年时,timeUnit为 y",
|
61
|
+
"member": "string",
|
62
|
+
"name": "TimeUnit",
|
63
|
+
"required": true,
|
64
|
+
"type": "string"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"disabled": false,
|
68
|
+
"document": "商品唯一标识",
|
69
|
+
"example": "无",
|
70
|
+
"member": "string",
|
71
|
+
"name": "CommodityCode",
|
72
|
+
"required": true,
|
73
|
+
"type": "string"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"disabled": false,
|
77
|
+
"document": "承诺时长内的小额金额(单位:元)",
|
78
|
+
"example": "无",
|
79
|
+
"member": "int64",
|
80
|
+
"name": "PromiseUseAmount",
|
81
|
+
"required": true,
|
82
|
+
"type": "int"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"disabled": false,
|
86
|
+
"document": "节省计划的指定生效时间,若不传则为当前下单时间。传参数格式:\"2023-10-01 00:00:00\",仅支持指定日期的0点时刻",
|
87
|
+
"example": "无",
|
88
|
+
"member": "string",
|
89
|
+
"name": "SpecifyEffectTime",
|
90
|
+
"required": false,
|
91
|
+
"type": "string"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"disabled": false,
|
95
|
+
"document": "可重入ID",
|
96
|
+
"example": "可重入标记,业务名+64位UUID",
|
97
|
+
"member": "string",
|
98
|
+
"name": "ClientToken",
|
99
|
+
"required": false,
|
100
|
+
"type": "string"
|
101
|
+
}
|
102
|
+
],
|
103
|
+
"type": "object"
|
104
|
+
},
|
105
|
+
"CreateSavingPlanOrderResponse": {
|
106
|
+
"document": "CreateSavingPlanOrder返回参数结构体",
|
107
|
+
"members": [
|
108
|
+
{
|
109
|
+
"disabled": false,
|
110
|
+
"document": "订单号",
|
111
|
+
"example": "无",
|
112
|
+
"member": "string",
|
113
|
+
"name": "BigDealId",
|
114
|
+
"output_required": false,
|
115
|
+
"type": "string",
|
116
|
+
"value_allowed_null": false
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
120
|
+
"member": "string",
|
121
|
+
"name": "RequestId",
|
122
|
+
"type": "string"
|
123
|
+
}
|
124
|
+
],
|
125
|
+
"type": "object"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"version": "1.0"
|
129
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"actions": {
|
3
|
+
"CreateSavingPlanOrder": [
|
4
|
+
{
|
5
|
+
"document": "",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: svp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSavingPlanOrder\n<公共请求参数>\n\n{\n \"RegionId\": 47,\n \"ZoneId\": 470004,\n \"PrePayType\": \"1\",\n \"SpecifyEffectTime\": \"2023-10-21 00:00:00\",\n \"TimeSpan\": 1,\n \"TimeUnit\": \"y\",\n \"CommodityCode\": \"svp_common_CYq7cGNk3FaV\",\n \"PromiseUseAmount\": 10000,\n \"ClientToken\": \"sp-856f5555-8064-43e9-8b7e-d04c5a9d6a9a,856f5555806443e98b7ed04c5a9d6a9a\"\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"BigDealId\": \"20231020400000764159521\",\n \"RequestId\": \"7525ef6b-ac63-4fa6-9bd4-d8c3c8b96220\"\n }\n}",
|
8
|
+
"title": "节省计划下单"
|
9
|
+
}
|
10
|
+
]
|
11
|
+
},
|
12
|
+
"version": "1.0"
|
13
|
+
}
|
@@ -587,6 +587,24 @@
|
|
587
587
|
"name": "Offset",
|
588
588
|
"required": true,
|
589
589
|
"type": "int"
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"disabled": false,
|
593
|
+
"document": "按项目ID筛选,大于0",
|
594
|
+
"example": "1001",
|
595
|
+
"member": "int64",
|
596
|
+
"name": "ProjectId",
|
597
|
+
"required": false,
|
598
|
+
"type": "int"
|
599
|
+
},
|
600
|
+
{
|
601
|
+
"disabled": false,
|
602
|
+
"document": "按项目名称筛选",
|
603
|
+
"example": "测试项目",
|
604
|
+
"member": "string",
|
605
|
+
"name": "ProjectName",
|
606
|
+
"required": false,
|
607
|
+
"type": "string"
|
590
608
|
}
|
591
609
|
],
|
592
610
|
"type": "object"
|
@@ -600,7 +618,7 @@
|
|
600
618
|
"example": "1000",
|
601
619
|
"member": "uint64",
|
602
620
|
"name": "Total",
|
603
|
-
"
|
621
|
+
"output_required": true,
|
604
622
|
"type": "int",
|
605
623
|
"value_allowed_null": false
|
606
624
|
},
|
@@ -610,7 +628,7 @@
|
|
610
628
|
"example": "无",
|
611
629
|
"member": "Project",
|
612
630
|
"name": "Projects",
|
613
|
-
"
|
631
|
+
"output_required": true,
|
614
632
|
"type": "list",
|
615
633
|
"value_allowed_null": false
|
616
634
|
},
|
@@ -68,7 +68,7 @@
|
|
68
68
|
{
|
69
69
|
"document": "",
|
70
70
|
"input": "POST / HTTP/1.1\nHost: tag.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProjects\n<公共请求参数>\n\n{\n \"Limit\": \"500\",\n \"AllList\": \"0\",\n \"Offset\": \"0\"\n}",
|
71
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Projects\": [\n {\n \"ProjectId\":
|
71
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Projects\": [\n {\n \"ProjectId\": 1000101,\n \"ProjectName\": \"test1\",\n \"CreatorUin\": 100000012345,\n \"ProjectInfo\": \"\",\n \"CreateTime\": \"2021-10-13 11:03:30\"\n }\n ],\n \"RequestId\": \"d75bbc07-f5bd-4020-b4bd-f877e9ccd1db\"\n }\n}",
|
72
72
|
"title": "获取项目列表"
|
73
73
|
}
|
74
74
|
],
|