tccli 3.0.1086.1__py2.py3-none-any.whl → 3.0.1088.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/acp/v20220105/CreateAppScanTask.md +30 -30
- tccli/examples/acp/v20220105/CreateAppScanTaskRepeat.md +26 -26
- tccli/examples/acp/v20220105/DescribeResourceUsageInfo.md +7 -7
- tccli/examples/acp/v20220105/DescribeScanTaskList.md +29 -29
- tccli/examples/acp/v20220105/DescribeScanTaskReportUrl.md +20 -20
- tccli/examples/af/v20200226/DescribeAntiFraud.md +26 -26
- tccli/examples/ams/v20201229/CreateAudioModerationTask.md +19 -19
- tccli/examples/antiddos/v20200309/DescribeBasicDeviceStatus.md +18 -18
- tccli/examples/apigateway/v20180808/DescribeLogSearch.md +28 -28
- tccli/examples/apm/v20210622/DescribeGeneralMetricData.md +122 -122
- tccli/examples/apm/v20210622/DescribeMetricRecords.md +53 -53
- tccli/examples/asr/v20190614/DescribeTaskStatus.md +32 -32
- tccli/examples/autoscaling/v20180419/CreateLifecycleHook.md +38 -38
- tccli/examples/autoscaling/v20180419/CreateScalingPolicy.md +29 -29
- tccli/examples/autoscaling/v20180419/DescribeLaunchConfigurations.md +47 -47
- tccli/examples/autoscaling/v20180419/ModifyLaunchConfigurationAttributes.md +12 -12
- tccli/examples/autoscaling/v20180419/ModifyLoadBalancers.md +18 -18
- tccli/examples/autoscaling/v20180419/ModifyScalingPolicy.md +24 -24
- tccli/examples/bi/v20220105/CreateUserRoleProject.md +23 -23
- tccli/examples/bi/v20220105/DeleteDatasource.md +10 -10
- tccli/examples/bi/v20220105/DescribeDatasourceList.md +12 -12
- tccli/examples/bi/v20220105/ModifyDatasourceCloud.md +38 -38
- tccli/examples/billing/v20180709/DescribeBillSummary.md +147 -147
- tccli/examples/billing/v20180709/DescribeBillSummaryForOrganization.md +147 -147
- tccli/examples/bmvpc/v20180625/BindEipsToNatGateway.md +8 -8
- tccli/examples/bmvpc/v20180625/CreateNatGateway.md +18 -18
- tccli/examples/btoe/v20210514/CreateHashDepositNoCert.md +16 -16
- tccli/examples/cat/v20180409/CreateProbeTasks.md +17 -17
- tccli/examples/cat/v20180409/DescribeProbeTasks.md +46 -46
- tccli/examples/cbs/v20170312/CreateDisks.md +19 -19
- tccli/examples/cbs/v20170312/InquiryPriceCreateDisks.md +32 -32
- tccli/examples/cbs/v20170312/ModifyAutoSnapshotPolicyAttribute.md +11 -11
- tccli/examples/cdb/v20170320/AnalyzeAuditLogs.md +43 -43
- tccli/examples/cdb/v20170320/DescribeAuditLogs.md +19 -19
- tccli/examples/cdn/v20180606/ModifyDomainConfig.md +20 -20
- tccli/examples/cdn/v20180606/VerifyDomainRecord.md +11 -11
- tccli/examples/cdwch/v20200915/ScaleOutInstance.md +10 -11
- tccli/examples/cdwdoris/v20211228/DescribeInstanceNodesInfo.md +4 -4
- tccli/examples/cfg/v20210820/ModifyTaskRunStatus.md +10 -10
- tccli/examples/cfw/v20190904/CreateNatFwInstanceWithDomain.md +10 -10
- tccli/examples/cfw/v20190904/ModifyNatFwSwitch.md +6 -6
- tccli/examples/cfw/v20190904/SetNatFwEip.md +7 -7
- tccli/examples/ckafka/v20190819/CreateConnectResource.md +21 -21
- tccli/examples/ckafka/v20190819/CreateDatahubTask.md +36 -36
- tccli/examples/clb/v20180317/CreateListener.md +34 -34
- tccli/examples/clb/v20180317/DeleteLoadBalancerListeners.md +7 -7
- tccli/examples/clb/v20180317/DescribeListeners.md +7 -7
- tccli/examples/clb/v20180317/DescribeLoadBalancerListByCertId.md +27 -27
- tccli/examples/clb/v20180317/DescribeLoadBalancers.md +23 -23
- tccli/examples/clb/v20180317/DescribeTargets.md +55 -55
- tccli/examples/clb/v20180317/InquiryPriceCreateLoadBalancer.md +35 -35
- tccli/examples/clb/v20180317/ModifyBlockIPList.md +13 -13
- tccli/examples/clb/v20180317/ModifyListener.md +20 -20
- tccli/examples/clb/v20180317/RegisterTargets.md +9 -9
- tccli/examples/clb/v20180317/SetLoadBalancerClsLog.md +8 -8
- tccli/examples/clb/v20180317/SetLoadBalancerSecurityGroups.md +9 -9
- tccli/examples/cls/v20201016/CreateConfig.md +57 -57
- tccli/examples/cls/v20201016/DescribeDashboards.md +40 -40
- tccli/examples/cme/v20191029/CreateLink.md +24 -24
- tccli/examples/cme/v20191029/CreateProject.md +50 -50
- tccli/examples/cme/v20191029/DescribeMaterials.md +73 -73
- tccli/examples/cme/v20191029/DescribeTeamMembers.md +19 -19
- tccli/examples/cme/v20191029/DescribeTeams.md +18 -18
- tccli/examples/cme/v20191029/ExportVideoByEditorTrackData.md +29 -29
- tccli/examples/cme/v20191029/ExportVideoByVideoSegmentationData.md +11 -11
- tccli/examples/cme/v20191029/ExportVideoEditProject.md +42 -42
- tccli/examples/cme/v20191029/HandleMediaCastProject.md +125 -125
- tccli/examples/cme/v20191029/HandleStreamConnectProject.md +107 -107
- tccli/examples/cme/v20191029/ImportMaterial.md +48 -48
- tccli/examples/cme/v20191029/ImportMediaToProject.md +14 -14
- tccli/examples/cme/v20191029/ModifyMaterial.md +7 -7
- tccli/examples/cme/v20191029/MoveResource.md +20 -20
- tccli/examples/cme/v20191029/ParseEvent.md +66 -66
- tccli/examples/cme/v20191029/SearchMaterial.md +11 -11
- tccli/examples/cvm/v20170312/InquiryPriceRunInstances.md +42 -42
- tccli/examples/cvm/v20170312/ModifyInstancesChargeType.md +7 -7
- tccli/examples/cvm/v20170312/RunInstances.md +28 -28
- tccli/examples/cwp/v20180228/ModifyBaselinePolicy.md +15 -15
- tccli/examples/cwp/v20180228/ModifyBaselinePolicyState.md +6 -6
- tccli/examples/cwp/v20180228/ModifyBashPolicyStatus.md +6 -6
- tccli/examples/cynosdb/v20190107/DescribeAuditLogs.md +19 -19
- tccli/examples/cynosdb/v20190107/DescribeProxySpecs.md +16 -16
- tccli/examples/dc/v20180410/CreateDirectConnectTunnel.md +38 -38
- tccli/examples/dc/v20180410/DescribeDirectConnects.md +47 -47
- tccli/examples/dlc/v20210125/DescribeUserRoles.md +33 -33
- tccli/examples/dnspod/v20210323/DescribeSnapshotRollbackResult.md +20 -20
- tccli/examples/domain/v20180808/DescribeTldList.md +170 -0
- tccli/examples/dsgc/v20190723/DescribeDSPASupportedMetas.md +33 -33
- tccli/examples/dts/v20180330/CreateMigrateJob.md +29 -29
- tccli/examples/dts/v20180330/DescribeMigrateCheckJob.md +14 -14
- tccli/examples/ecc/v20181213/CorrectMultiImage.md +29 -29
- tccli/examples/ecc/v20181213/EHOCR.md +10 -10
- tccli/examples/ecm/v20190719/CreateDisks.md +19 -19
- tccli/examples/ecm/v20190719/DeleteSecurityGroupPolicies.md +20 -20
- tccli/examples/ecm/v20190719/DescribeInstances.md +160 -160
- tccli/examples/emr/v20190103/InquiryPriceRenewInstance.md +27 -27
- tccli/examples/emr/v20190103/ModifyAutoScaleStrategy.md +26 -26
- tccli/examples/ess/v20201111/CancelUserAutoSignEnableUrl.md +10 -10
- tccli/examples/ess/v20201111/CreateBatchQuickSignUrl.md +81 -81
- tccli/examples/ess/v20201111/CreateDocument.md +34 -34
- tccli/examples/ess/v20201111/CreateExtendedServiceAuthInfos.md +13 -13
- tccli/examples/ess/v20201111/CreateFlowApprovers.md +84 -84
- tccli/examples/ess/v20201111/CreateFlowByFiles.md +765 -765
- tccli/examples/ess/v20201111/CreateFlowEvidenceReport.md +13 -13
- tccli/examples/ess/v20201111/CreateFlowGroupByFiles.md +91 -91
- tccli/examples/ess/v20201111/CreateFlowGroupByTemplates.md +97 -97
- tccli/examples/ess/v20201111/CreateFlowSignUrl.md +73 -73
- tccli/examples/ess/v20201111/CreateIntegrationDepartment.md +17 -17
- tccli/examples/ess/v20201111/CreateIntegrationEmployees.md +41 -41
- tccli/examples/ess/v20201111/CreateIntegrationRole.md +25 -25
- tccli/examples/ess/v20201111/CreateMultiFlowSignQRCode.md +69 -69
- tccli/examples/ess/v20201111/CreateOrganizationBatchSignUrl.md +21 -21
- tccli/examples/ess/v20201111/CreateOrganizationInfoChangeUrl.md +17 -17
- tccli/examples/ess/v20201111/CreatePrepareFlow.md +67 -67
- tccli/examples/ess/v20201111/CreateReleaseFlow.md +65 -65
- tccli/examples/ess/v20201111/CreateSchemeUrl.md +68 -68
- tccli/examples/ess/v20201111/CreateSeal.md +44 -44
- tccli/examples/ess/v20201111/DeleteExtendedServiceAuthInfos.md +8 -8
- tccli/examples/ess/v20201111/DescribeExtendedServiceAuthDetail.md +20 -20
- tccli/examples/ess/v20201111/DescribeExtendedServiceAuthInfos.md +27 -27
- tccli/examples/ess/v20201111/DescribeFileUrls.md +47 -47
- tccli/examples/ess/v20201111/DescribeFlowEvidenceReport.md +14 -14
- tccli/examples/ess/v20201111/DescribeIntegrationDepartments.md +29 -29
- tccli/examples/ess/v20201111/DescribeIntegrationEmployees.md +77 -77
- tccli/examples/ess/v20201111/ModifyApplicationCallbackInfo.md +18 -18
- tccli/examples/ess/v20201111/ModifyFlowDeadline.md +31 -31
- tccli/examples/ess/v20201111/ModifyIntegrationRole.md +25 -25
- tccli/examples/ess/v20201111/StartFlow.md +17 -17
- tccli/examples/ess/v20201111/UnbindEmployeeUserIdWithClientOpenId.md +13 -13
- tccli/examples/ess/v20201111/UpdateIntegrationEmployees.md +25 -25
- tccli/examples/essbasic/v20210526/ChannelBatchCancelFlows.md +10 -10
- tccli/examples/essbasic/v20210526/ChannelCreateBatchQuickSignUrl.md +43 -43
- tccli/examples/essbasic/v20210526/ChannelCreateBoundFlows.md +10 -10
- tccli/examples/essbasic/v20210526/ChannelCreateFlowApprovers.md +34 -34
- tccli/examples/essbasic/v20210526/ChannelCreateFlowByFiles.md +67 -67
- tccli/examples/essbasic/v20210526/ChannelCreateMultiFlowSignQRCode.md +17 -17
- tccli/examples/essbasic/v20210526/ChannelCreatePreparedPersonalEsign.md +27 -27
- tccli/examples/essbasic/v20210526/ChannelCreateReleaseFlow.md +70 -70
- tccli/examples/essbasic/v20210526/ChannelCreateRole.md +26 -26
- tccli/examples/essbasic/v20210526/ChannelCreateSealPolicy.md +10 -10
- tccli/examples/essbasic/v20210526/ChannelDescribeBillUsageDetail.md +7 -7
- tccli/examples/essbasic/v20210526/ChannelModifyRole.md +27 -27
- tccli/examples/essbasic/v20210526/ChannelVerifyPdf.md +29 -29
- tccli/examples/essbasic/v20210526/CreateBatchOrganizationRegistrationTasks.md +16 -16
- tccli/examples/essbasic/v20210526/CreateChannelFlowEvidenceReport.md +14 -14
- tccli/examples/essbasic/v20210526/CreateConsoleLoginUrl.md +18 -18
- tccli/examples/essbasic/v20210526/CreateFlowGroupSignReview.md +22 -22
- tccli/examples/essbasic/v20210526/CreateFlowsByTemplates.md +161 -161
- tccli/examples/essbasic/v20210526/CreatePartnerAutoSignAuthUrl.md +5 -5
- tccli/examples/essbasic/v20210526/CreateSealByImage.md +22 -22
- tccli/examples/essbasic/v20210526/CreateSignUrls.md +153 -153
- tccli/examples/essbasic/v20210526/DescribeChannelFlowEvidenceReport.md +6 -6
- tccli/examples/essbasic/v20210526/DescribeChannelOrganizations.md +20 -20
- tccli/examples/essbasic/v20210526/DescribeExtendedServiceAuthDetail.md +20 -20
- tccli/examples/essbasic/v20210526/DescribeExtendedServiceAuthInfo.md +27 -27
- tccli/examples/essbasic/v20210526/DescribeResourceUrlsByFlows.md +22 -22
- tccli/examples/essbasic/v20210526/DescribeTemplates.md +87 -87
- tccli/examples/essbasic/v20210526/ModifyFlowDeadline.md +31 -31
- tccli/examples/essbasic/v20210526/OperateChannelTemplate.md +41 -41
- tccli/examples/facefusion/v20181201/FaceFusion.md +26 -26
- tccli/examples/faceid/v20180301/BankCardVerification.md +10 -10
- tccli/examples/faceid/v20180301/DetectAIFakeFaces.md +20 -20
- tccli/examples/faceid/v20180301/IdCardOCRVerification.md +18 -18
- tccli/examples/faceid/v20180301/MobileNetworkTimeVerification.md +12 -12
- tccli/examples/fmu/v20191213/CreateModel.md +9 -9
- tccli/examples/fmu/v20191213/DeleteModel.md +8 -8
- tccli/examples/fmu/v20191213/StyleImagePro.md +13 -13
- tccli/examples/fmu/v20191213/TryLipstickPic.md +28 -28
- tccli/examples/gaap/v20180529/DescribeDestRegions.md +24 -24
- tccli/examples/gaap/v20180529/ModifyProxyGroupAttribute.md +8 -8
- tccli/examples/gme/v20180711/ScanVoice.md +13 -13
- tccli/examples/hunyuan/v20230901/ChatPro.md +66 -66
- tccli/examples/hunyuan/v20230901/ChatStd.md +39 -39
- tccli/examples/iai/v20180301/CopyPerson.md +17 -17
- tccli/examples/iai/v20180301/CreateFace.md +26 -26
- tccli/examples/iai/v20180301/CreateGroup.md +34 -34
- tccli/examples/iai/v20180301/CreatePerson.md +60 -60
- tccli/examples/iai/v20180301/DeleteFace.md +16 -16
- tccli/examples/iai/v20180301/DeleteGroup.md +12 -12
- tccli/examples/iai/v20180301/DeletePerson.md +12 -12
- tccli/examples/iai/v20180301/DeletePersonFromGroup.md +14 -14
- tccli/examples/iai/v20180301/GetGroupList.md +26 -26
- tccli/examples/iai/v20180301/GetPersonBaseInfo.md +18 -18
- tccli/examples/iai/v20180301/GetPersonGroupInfo.md +22 -22
- tccli/examples/iai/v20180301/GetPersonList.md +29 -29
- tccli/examples/iai/v20180301/GetPersonListNum.md +14 -14
- tccli/examples/iai/v20180301/ModifyGroup.md +31 -31
- tccli/examples/iai/v20180301/ModifyPersonBaseInfo.md +13 -13
- tccli/examples/iai/v20180301/ModifyPersonGroupInfo.md +14 -14
- tccli/examples/iai/v20180301/SearchFaces.md +52 -52
- tccli/examples/iai/v20180301/SearchPersons.md +26 -26
- tccli/examples/iai/v20180301/SearchPersonsReturnsByGroup.md +29 -29
- tccli/examples/iai/v20200303/CopyPerson.md +17 -17
- tccli/examples/iai/v20200303/CreateFace.md +26 -26
- tccli/examples/iai/v20200303/CreateGroup.md +34 -34
- tccli/examples/iai/v20200303/CreatePerson.md +58 -58
- tccli/examples/iai/v20200303/DeleteFace.md +16 -16
- tccli/examples/iai/v20200303/DeleteGroup.md +12 -12
- tccli/examples/iai/v20200303/DeletePerson.md +12 -12
- tccli/examples/iai/v20200303/DeletePersonFromGroup.md +14 -14
- tccli/examples/iai/v20200303/GetGroupList.md +26 -26
- tccli/examples/iai/v20200303/GetPersonBaseInfo.md +18 -18
- tccli/examples/iai/v20200303/GetPersonGroupInfo.md +28 -28
- tccli/examples/iai/v20200303/GetPersonList.md +28 -28
- tccli/examples/iai/v20200303/GetPersonListNum.md +14 -14
- tccli/examples/iai/v20200303/GetUpgradeGroupFaceModelVersionResult.md +16 -16
- tccli/examples/iai/v20200303/ModifyGroup.md +31 -31
- tccli/examples/iai/v20200303/ModifyPersonGroupInfo.md +21 -21
- tccli/examples/iai/v20200303/SearchFaces.md +52 -52
- tccli/examples/iai/v20200303/SearchPersons.md +26 -26
- tccli/examples/iai/v20200303/SearchPersonsReturnsByGroup.md +29 -29
- tccli/examples/iai/v20200303/UpgradeGroupFaceModelVersion.md +19 -19
- tccli/examples/iecp/v20210914/CreateEdgeUnitCloud.md +18 -18
- tccli/examples/iotexplorer/v20190423/CallDeviceActionSync.md +13 -13
- tccli/examples/iotexplorer/v20190423/ControlDeviceData.md +8 -8
- tccli/examples/iotexplorer/v20190423/CreateBatchProduction.md +10 -10
- tccli/examples/iotexplorer/v20190423/GetLoRaGatewayList.md +20 -20
- tccli/examples/iotvideo/v20191126/DescribeAccountBalance.md +14 -14
- tccli/examples/iotvideo/v20191126/DescribeRechargeRecords.md +17 -17
- tccli/examples/iotvideoindustry/v20201201/DescribeRecordStream.md +7 -7
- tccli/examples/iotvideoindustry/v20201201/GetVideoListByCon.md +5 -5
- tccli/examples/iss/v20230517/AddUserDevice.md +10 -10
- tccli/examples/iss/v20230517/ListOrganizationChannels.md +56 -56
- tccli/examples/iss/v20230517/ListRecordPlanDevices.md +67 -67
- tccli/examples/iss/v20230517/ListRecordRetrieveTasks.md +20 -20
- tccli/examples/iss/v20230517/UpdateRecordPlan.md +12 -12
- tccli/examples/iss/v20230517/UpdateRecordTemplate.md +16 -16
- tccli/examples/iss/v20230517/UpdateUserDevice.md +25 -25
- tccli/examples/ivld/v20210903/DescribeCustomCategories.md +12 -12
- tccli/examples/ivld/v20210903/DescribeMedia.md +24 -24
- tccli/examples/ivld/v20210903/ImportMedia.md +11 -11
- tccli/examples/lcic/v20220817/DescribeDocument.md +33 -33
- tccli/examples/lcic/v20220817/DescribeRoom.md +40 -40
- tccli/examples/lcic/v20220817/ModifyRoom.md +26 -26
- tccli/examples/live/v20180801/CreateCommonMixStream.md +8 -8
- tccli/examples/live/v20180801/CreateLiveRecordTemplate.md +22 -22
- tccli/examples/monitor/v20180724/CreateExporterIntegration.md +204 -204
- tccli/examples/monitor/v20180724/CreatePrometheusClusterAgent.md +25 -25
- tccli/examples/monitor/v20180724/DescribeAlarmPolicies.md +32 -32
- tccli/examples/monitor/v20180724/DescribeMonitorResourceInfo.md +4 -4
- tccli/examples/monitor/v20180724/DescribePrometheusInstanceInitStatus.md +6 -6
- tccli/examples/monitor/v20180724/GetMonitorData.md +51 -51
- tccli/examples/monitor/v20180724/ModifyAlarmPolicyCondition.md +31 -31
- tccli/examples/mps/v20190612/CreateAIRecognitionTemplate.md +22 -22
- tccli/examples/mps/v20190612/CreateContentReviewTemplate.md +23 -23
- tccli/examples/mps/v20190612/CreateWordSamples.md +13 -13
- tccli/examples/mps/v20190612/DescribeAIAnalysisTemplates.md +29 -29
- tccli/examples/mps/v20190612/DescribeAIRecognitionTemplates.md +17 -17
- tccli/examples/mps/v20190612/DescribeContentReviewTemplates.md +51 -51
- tccli/examples/mps/v20190612/DescribeTasks.md +9 -9
- tccli/examples/mps/v20190612/ModifyAIAnalysisTemplate.md +6 -6
- tccli/examples/mps/v20190612/ModifyContentReviewTemplate.md +7 -7
- tccli/examples/ms/v20180408/CreateEncryptInstance.md +48 -48
- tccli/examples/ms/v20180408/DescribeEncryptInstances.md +63 -63
- tccli/examples/ms/v20180408/DescribeEncryptPlan.md +30 -30
- tccli/examples/ms/v20180408/DescribeShieldResult.md +42 -42
- tccli/examples/oceanus/v20190422/CheckSavepoint.md +16 -16
- tccli/examples/oceanus/v20190422/DescribeJobSubmissionLog.md +42 -42
- tccli/examples/oceanus/v20190422/DescribeTreeResources.md +48 -48
- tccli/examples/ocr/v20181119/GeneralHandwritingOCR.md +48 -48
- tccli/examples/ocr/v20181119/IDCardOCR.md +30 -30
- tccli/examples/omics/v20221128/RetryRuns.md +11 -11
- tccli/examples/partners/v20180321/DescribeAgentClients.md +26 -26
- tccli/examples/postgres/v20170312/CreateInstances.md +15 -15
- tccli/examples/postgres/v20170312/DescribeDBInstanceHAConfig.md +12 -12
- tccli/examples/postgres/v20170312/DescribeDBInstanceSecurityGroups.md +49 -49
- tccli/examples/postgres/v20170312/ModifyDBInstanceDeployment.md +8 -8
- tccli/examples/postgres/v20170312/ModifyDBInstanceHAConfig.md +15 -15
- tccli/examples/postgres/v20170312/ModifyDBInstanceName.md +12 -12
- tccli/examples/rum/v20210622/CreateWhitelist.md +14 -14
- tccli/examples/rum/v20210622/DescribeDataFetchProject.md +25 -25
- tccli/examples/rum/v20210622/DescribeDataFetchUrl.md +29 -29
- tccli/examples/rum/v20210622/DescribeDataPerformancePage.md +25 -25
- tccli/examples/rum/v20210622/DescribeDataPvUrlStatistics.md +32 -32
- tccli/examples/rum/v20210622/DescribeDataSetUrlStatistics.md +25 -25
- tccli/examples/rum/v20210622/DescribeProjects.md +6 -6
- tccli/examples/rum/v20210622/DescribeRumGroupLog.md +22 -22
- tccli/examples/rum/v20210622/DescribeRumLogExport.md +17 -17
- tccli/examples/rum/v20210622/DescribeRumLogExports.md +12 -12
- tccli/examples/rum/v20210622/DescribeRumLogList.md +18 -18
- tccli/examples/rum/v20210622/DescribeRumStatsLogList.md +16 -16
- tccli/examples/rum/v20210622/ModifyProjectLimit.md +13 -13
- tccli/examples/ses/v20201002/SendEmail.md +5 -5
- tccli/examples/soe/v20180724/InitOralProcess.md +18 -18
- tccli/examples/soe/v20180724/TransmitOralProcessWithInit.md +155 -155
- tccli/examples/sqlserver/v20180328/DescribeBackupByFlowId.md +24 -24
- tccli/examples/sqlserver/v20180328/DescribeBackupCommand.md +12 -12
- tccli/examples/sqlserver/v20180328/ModifyDBInstanceNetwork.md +15 -15
- tccli/examples/ssl/v20191205/UploadCertificate.md +17 -17
- tccli/examples/sts/v20180813/GetCallerIdentity.md +14 -14
- tccli/examples/tag/v20180813/ModifyResourceTags.md +8 -8
- tccli/examples/tan/v20220420/CreateBlockNodeRecords.md +4 -4
- tccli/examples/tat/v20201028/DescribeCommands.md +39 -39
- tccli/examples/tcb/v20180608/CreateWxCloudBaseRunServerDBCluster.md +16 -16
- tccli/examples/tcbr/v20220217/CreateCloudRunEnv.md +30 -30
- tccli/examples/tcbr/v20220217/CreateCloudRunServer.md +48 -48
- tccli/examples/tcbr/v20220217/DescribeCloudRunEnvs.md +24 -24
- tccli/examples/tcbr/v20220217/DescribeCloudRunServerDetail.md +25 -25
- tccli/examples/tcr/v20190924/CreateServiceAccount.md +28 -28
- tccli/examples/tcr/v20190924/ModifyInstanceToken.md +7 -7
- tccli/examples/tcr/v20190924/ModifyServiceAccountPassword.md +11 -11
- tccli/examples/tcss/v20201101/AddAssetImageRegistryRegistryDetail.md +31 -31
- tccli/examples/tcss/v20201101/CreateAssetImageRegistryScanTask.md +12 -12
- tccli/examples/tcss/v20201101/DescribeAbnormalProcessRuleDetail.md +52 -52
- tccli/examples/tcss/v20201101/DescribeAccessControlRuleDetail.md +54 -54
- tccli/examples/tcss/v20201101/DescribeAssetImageRegistryDetail.md +36 -36
- tccli/examples/tcss/v20201101/DescribeAssetImageRegistryScanStatusOneKey.md +29 -29
- tccli/examples/tcss/v20201101/ModifyAssetImageRegistryScanStop.md +9 -9
- tccli/examples/tcss/v20201101/ModifyAssetImageRegistryScanStopOneKey.md +8 -8
- tccli/examples/tdmq/v20200217/CreateCmqQueue.md +8 -8
- tccli/examples/tdmq/v20200217/CreateCmqTopic.md +8 -8
- tccli/examples/tdmq/v20200217/DescribeRocketMQMigratingTopicList.md +33 -33
- tccli/examples/tdmq/v20200217/DescribeRocketMQSourceClusterGroupList.md +54 -54
- tccli/examples/tdmq/v20200217/DescribeRocketMQSourceClusterTopicList.md +44 -44
- tccli/examples/tdmq/v20200217/ImportRocketMQConsumerGroups.md +14 -14
- tccli/examples/teo/v20220901/CreateAccelerationDomain.md +19 -19
- tccli/examples/teo/v20220901/CreatePurgeTask.md +24 -24
- tccli/examples/teo/v20220901/CreateRule.md +59 -59
- tccli/examples/teo/v20220901/CreateZone.md +32 -32
- tccli/examples/teo/v20220901/DescribeOverviewL7Data.md +16 -16
- tccli/examples/teo/v20220901/DescribeTimingL4Data.md +6 -6
- tccli/examples/teo/v20220901/DescribeTimingL7AnalysisData.md +7 -7
- tccli/examples/teo/v20220901/DescribeTimingL7CacheData.md +14 -14
- tccli/examples/teo/v20220901/DescribeTopL7AnalysisData.md +9 -9
- tccli/examples/teo/v20220901/DescribeTopL7CacheData.md +24 -24
- tccli/examples/tiia/v20190529/CreateImage.md +11 -11
- tccli/examples/tiia/v20190529/DeleteImages.md +8 -8
- tccli/examples/tiia/v20190529/DetectChefDress.md +25 -25
- tccli/examples/tiia/v20190529/DetectLabel.md +25 -25
- tccli/examples/tiia/v20190529/DetectPet.md +24 -24
- tccli/examples/tiia/v20190529/DetectSecurity.md +25 -25
- tccli/examples/tiia/v20190529/EnhanceImage.md +11 -11
- tccli/examples/tiia/v20190529/RecognizeCarPro.md +25 -25
- tccli/examples/tiia/v20190529/UpdateImage.md +13 -13
- tccli/examples/tke/v20180525/DeleteReservedInstances.md +12 -12
- tccli/examples/tke/v20180525/DescribePodsBySpec.md +15 -15
- tccli/examples/tke/v20180525/DescribeRIUtilizationDetail.md +16 -16
- tccli/examples/tke/v20180525/DescribeReservedInstances.md +17 -17
- tccli/examples/tke/v20180525/ModifyReservedInstanceScope.md +19 -19
- tccli/examples/trocket/v20230308/DescribeMQTTClient.md +30 -30
- tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +6 -6
- tccli/examples/trtc/v20190722/StartPublishCdnStream.md +24 -24
- tccli/examples/trtc/v20190722/UpdatePublishCdnStream.md +27 -27
- tccli/examples/tse/v20201207/DescribeConfigFileReleaseHistories.md +48 -48
- tccli/examples/tsf/v20180326/DeployGroup.md +15 -15
- tccli/examples/tsf/v20180326/DescribeApiGroups.md +47 -47
- tccli/examples/vm/v20201229/CreateVideoModerationTask.md +19 -19
- tccli/examples/vod/v20180717/CreateAIRecognitionTemplate.md +12 -12
- tccli/examples/vod/v20180717/CreateContentReviewTemplate.md +16 -16
- tccli/examples/vod/v20180717/CreateImageProcessingTemplate.md +12 -12
- tccli/examples/vod/v20180717/CreateProcedureTemplate.md +23 -23
- tccli/examples/vod/v20180717/CreateWordSamples.md +13 -13
- tccli/examples/vod/v20180717/DeleteMedia.md +10 -10
- tccli/examples/vod/v20180717/DescribeAIAnalysisTemplates.md +32 -32
- tccli/examples/vod/v20180717/DescribeAIRecognitionTemplates.md +46 -46
- tccli/examples/vod/v20180717/DescribeCDNUsageData.md +13 -13
- tccli/examples/vod/v20180717/DescribeContentReviewTemplates.md +7 -7
- tccli/examples/vod/v20180717/DescribeTaskDetail.md +119 -119
- tccli/examples/vod/v20180717/EditMedia.md +53 -53
- tccli/examples/vod/v20180717/ModifyAIAnalysisTemplate.md +6 -6
- tccli/examples/vod/v20180717/ModifyAIRecognitionTemplate.md +9 -9
- tccli/examples/vod/v20180717/ModifyMediaInfo.md +23 -23
- tccli/examples/vod/v20180717/ModifyVodDomainConfig.md +13 -13
- tccli/examples/vod/v20180717/ProcessMedia.md +29 -29
- tccli/examples/vod/v20180717/ProcessMediaByUrl.md +8 -8
- tccli/examples/vod/v20180717/SearchMedia.md +12 -12
- tccli/examples/vod/v20180717/SimpleHlsClip.md +6 -6
- tccli/examples/vpc/v20170312/CheckAssistantCidr.md +19 -19
- tccli/examples/vpc/v20170312/CloneSecurityGroup.md +15 -15
- tccli/examples/vpc/v20170312/CreateDefaultVpc.md +14 -14
- tccli/examples/vpc/v20170312/DeleteSecurityGroupPolicies.md +24 -24
- tccli/examples/vpc/v20170312/DescribeAddresses.md +74 -74
- tccli/examples/vpc/v20170312/DescribeCrossBorderCcnRegionBandwidthLimits.md +43 -43
- tccli/examples/vpc/v20170312/DescribeDhcpIps.md +5 -5
- tccli/examples/vpc/v20170312/DescribeIp6Addresses.md +7 -7
- tccli/examples/vpc/v20170312/DescribeNatGatewayDestinationIpPortTranslationNatRules.md +13 -13
- tccli/examples/vpc/v20170312/DescribeNatGateways.md +39 -39
- tccli/examples/vpc/v20170312/ModifyNetworkAclEntries.md +14 -14
- tccli/examples/vpc/v20170312/RefreshDirectConnectGatewayRouteToNatGateway.md +8 -8
- tccli/examples/vpc/v20170312/ReleaseIp6AddressesBandwidth.md +10 -10
- tccli/examples/vpc/v20170312/SetCcnRegionBandwidthLimits.md +11 -11
- tccli/examples/waf/v20180125/AddAntiFakeUrl.md +10 -10
- tccli/examples/waf/v20180125/AddSpartaProtection.md +42 -42
- tccli/examples/waf/v20180125/DescribeCCRuleList.md +48 -48
- tccli/examples/waf/v20180125/DescribeCustomRuleList.md +25 -25
- tccli/examples/waf/v20180125/DescribeTlsVersion.md +4 -4
- tccli/examples/waf/v20180125/ModifyApiAnalyzeStatus.md +7 -7
- tccli/examples/waf/v20180125/ModifyBotStatus.md +9 -9
- tccli/examples/waf/v20180125/ModifySpartaProtection.md +46 -46
- tccli/examples/waf/v20180125/UpsertCCRule.md +25 -25
- tccli/examples/wedata/v20210820/BatchCreateTaskVersionDs.md +33 -33
- tccli/examples/wedata/v20210820/BatchDeleteTasksDs.md +13 -13
- tccli/examples/wedata/v20210820/BatchStopIntegrationTasks.md +18 -18
- tccli/examples/wedata/v20210820/CommitIntegrationTask.md +23 -23
- tccli/examples/wedata/v20210820/DeleteProjectUsers.md +4 -4
- tccli/examples/wedata/v20210820/DescribeBatchOperateTask.md +32 -32
- tccli/examples/wedata/v20210820/DescribeColumnsMeta.md +48 -48
- tccli/examples/wedata/v20210820/DescribeIntegrationTasks.md +142 -142
- tccli/examples/wedata/v20210820/DescribeOperateOpsTasks.md +49 -49
- tccli/examples/wedata/v20210820/DescribeProject.md +6 -6
- tccli/examples/wedata/v20210820/DescribeSchedulerInstanceStatus.md +35 -35
- tccli/examples/wedata/v20210820/DescribeSchedulerRunTimeInstanceCntByStatus.md +29 -29
- tccli/examples/wedata/v20210820/DescribeSchedulerTaskCntByStatus.md +23 -23
- tccli/examples/wedata/v20210820/DescribeSchedulerTaskTypeCnt.md +26 -26
- tccli/examples/wedata/v20210820/DescribeStatisticInstanceStatusTrendOps.md +34 -34
- tccli/examples/wedata/v20210820/DescribeTableLineage.md +48 -48
- tccli/examples/wedata/v20210820/DescribeTaskByCycle.md +20 -20
- tccli/examples/wedata/v20210820/ModifyBaselineAlarmStatus.md +10 -10
- tccli/examples/wedata/v20210820/ResumeIntegrationTask.md +18 -18
- tccli/examples/wedata/v20210820/StartIntegrationTask.md +18 -18
- tccli/examples/weilingwith/v20230427/BatchDeleteDevice.md +22 -0
- tccli/examples/weilingwith/v20230427/DeleteDeviceGroup.md +27 -0
- tccli/examples/weilingwith/v20230427/DescribeDeviceGroupList.md +61 -0
- tccli/examples/weilingwith/v20230427/DescribeSpaceRelationByDeviceId.md +36 -36
- tccli/examples/weilingwith/v20230427/DescribeTenantDepartmentList.md +6 -6
- tccli/examples/weilingwith/v20230427/ModifyDeviceField.md +27 -0
- tccli/examples/weilingwith/v20230427/ModifyDeviceGroup.md +26 -0
- tccli/examples/weilingwith/v20230427/ModifyDeviceTag.md +26 -0
- tccli/examples/weilingwith/v20230427/SaveDeviceGroup.md +31 -0
- tccli/examples/yinsuda/v20220527/SyncKTVRobotCommand.md +20 -20
- tccli/services/acp/v20220105/examples.json +42 -42
- tccli/services/af/v20200226/examples.json +4 -4
- tccli/services/afc/v20200226/examples.json +15 -15
- tccli/services/ams/v20201229/examples.json +6 -6
- tccli/services/antiddos/v20200309/examples.json +6 -6
- tccli/services/apigateway/v20180808/examples.json +6 -6
- tccli/services/apm/v20210622/examples.json +14 -14
- tccli/services/asr/v20190614/examples.json +6 -6
- tccli/services/autoscaling/v20180419/examples.json +40 -40
- tccli/services/bi/v20220105/examples.json +24 -24
- tccli/services/billing/v20180709/examples.json +24 -24
- tccli/services/bmvpc/v20180625/examples.json +12 -12
- tccli/services/btoe/v20210514/examples.json +6 -6
- tccli/services/cat/v20180409/examples.json +12 -12
- tccli/services/cbs/v20170312/examples.json +18 -18
- tccli/services/cdb/v20170320/examples.json +12 -12
- tccli/services/cdn/v20180606/examples.json +20 -20
- tccli/services/cdwch/v20200915/api.json +3 -0
- tccli/services/cdwch/v20200915/examples.json +3 -3
- tccli/services/cdwdoris/v20211228/examples.json +4 -4
- tccli/services/cfg/v20210820/examples.json +6 -6
- tccli/services/cfw/v20190904/examples.json +16 -16
- tccli/services/ckafka/v20190819/examples.json +12 -12
- tccli/services/clb/v20180317/examples.json +86 -86
- tccli/services/cls/v20201016/examples.json +18 -18
- tccli/services/cme/v20191029/examples.json +192 -192
- tccli/services/cvm/v20170312/examples.json +20 -20
- tccli/services/cwp/v20180228/examples.json +18 -18
- tccli/services/cynosdb/v20190107/examples.json +10 -10
- tccli/services/dc/v20180410/examples.json +20 -20
- tccli/services/dlc/v20210125/examples.json +6 -6
- tccli/services/dnspod/v20210323/examples.json +4 -4
- tccli/services/domain/domain_client.py +61 -8
- tccli/services/domain/v20180808/api.json +34 -0
- tccli/services/domain/v20180808/examples.json +8 -0
- tccli/services/dsgc/v20190723/examples.json +6 -6
- tccli/services/dts/v20180330/examples.json +12 -12
- tccli/services/ecc/v20181213/examples.json +14 -14
- tccli/services/ecm/v20190719/examples.json +20 -20
- tccli/services/emr/v20190103/examples.json +12 -12
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/ess/v20201111/examples.json +355 -355
- tccli/services/essbasic/v20210526/api.json +10 -1
- tccli/services/essbasic/v20210526/examples.json +215 -215
- tccli/services/facefusion/v20181201/examples.json +4 -4
- tccli/services/faceid/v20180301/examples.json +24 -24
- tccli/services/fmu/v20191213/examples.json +20 -20
- tccli/services/gaap/v20180529/examples.json +10 -10
- tccli/services/gme/v20180711/examples.json +6 -6
- tccli/services/hunyuan/v20230901/examples.json +17 -17
- tccli/services/iai/v20180301/examples.json +142 -142
- tccli/services/iai/v20200303/examples.json +136 -136
- tccli/services/iecp/v20210914/examples.json +6 -6
- tccli/services/ioa/v20220601/api.json +1 -1
- tccli/services/iotexplorer/v20190423/examples.json +22 -22
- tccli/services/iotvideo/v20191126/examples.json +12 -12
- tccli/services/iotvideoindustry/v20201201/examples.json +12 -12
- tccli/services/iss/v20230517/examples.json +40 -40
- tccli/services/ivld/v20210903/examples.json +14 -14
- tccli/services/lcic/v20220817/examples.json +18 -18
- tccli/services/live/v20180801/api.json +9 -0
- tccli/services/live/v20180801/examples.json +12 -12
- tccli/services/monitor/v20180724/examples.json +98 -98
- tccli/services/mps/v20190612/examples.json +58 -58
- tccli/services/mrs/v20200910/api.json +2 -1
- tccli/services/ms/v20180408/examples.json +24 -24
- tccli/services/oceanus/v20190422/examples.json +18 -18
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/ocr/v20181119/examples.json +12 -12
- tccli/services/omics/v20221128/api.json +25 -7
- tccli/services/omics/v20221128/examples.json +6 -6
- tccli/services/partners/v20180321/examples.json +6 -6
- tccli/services/postgres/v20170312/examples.json +36 -36
- tccli/services/rum/v20210622/examples.json +78 -78
- tccli/services/ses/v20201002/examples.json +4 -4
- tccli/services/soe/v20180724/examples.json +12 -12
- tccli/services/sqlserver/v20180328/examples.json +18 -18
- tccli/services/ssl/v20191205/examples.json +6 -6
- tccli/services/sts/v20180813/examples.json +6 -6
- tccli/services/tag/v20180813/examples.json +4 -4
- tccli/services/tan/v20220420/examples.json +4 -4
- tccli/services/tat/v20201028/examples.json +6 -6
- tccli/services/tcb/v20180608/examples.json +6 -6
- tccli/services/tcbr/v20220217/examples.json +24 -24
- tccli/services/tcr/v20190924/examples.json +18 -18
- tccli/services/tcss/v20201101/examples.json +47 -47
- tccli/services/tdmq/v20200217/examples.json +36 -36
- tccli/services/teo/v20220901/examples.json +78 -78
- tccli/services/tiia/v20190529/examples.json +52 -52
- tccli/services/tke/v20180525/examples.json +36 -36
- tccli/services/trocket/v20230308/api.json +9 -0
- tccli/services/trocket/v20230308/examples.json +12 -12
- tccli/services/trtc/v20190722/api.json +4 -7
- tccli/services/trtc/v20190722/examples.json +15 -15
- tccli/services/tse/v20201207/examples.json +6 -6
- tccli/services/tsf/v20180326/examples.json +12 -12
- tccli/services/vm/v20201229/examples.json +6 -6
- tccli/services/vod/v20180717/examples.json +141 -141
- tccli/services/vpc/v20170312/examples.json +90 -90
- tccli/services/waf/v20180125/examples.json +58 -58
- tccli/services/wedata/v20210820/examples.json +122 -122
- tccli/services/weilingwith/v20230427/api.json +625 -0
- tccli/services/weilingwith/v20230427/examples.json +68 -12
- tccli/services/weilingwith/weilingwith_client.py +379 -8
- tccli/services/yinsuda/v20220527/examples.json +12 -12
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/RECORD +531 -523
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/license_files/LICENSE +0 -0
@@ -745,6 +745,110 @@ def doDescribeDeviceTagList(args, parsed_globals):
|
|
745
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
746
|
|
747
747
|
|
748
|
+
def doDeleteDeviceGroup(args, parsed_globals):
|
749
|
+
g_param = parse_global_arg(parsed_globals)
|
750
|
+
|
751
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
752
|
+
cred = credential.CVMRoleCredential()
|
753
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
754
|
+
cred = credential.STSAssumeRoleCredential(
|
755
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
756
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
757
|
+
)
|
758
|
+
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):
|
759
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
760
|
+
else:
|
761
|
+
cred = credential.Credential(
|
762
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
763
|
+
)
|
764
|
+
http_profile = HttpProfile(
|
765
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
766
|
+
reqMethod="POST",
|
767
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
768
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
769
|
+
)
|
770
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
771
|
+
if g_param[OptionsDefine.Language]:
|
772
|
+
profile.language = g_param[OptionsDefine.Language]
|
773
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
774
|
+
client = mod.WeilingwithClient(cred, g_param[OptionsDefine.Region], profile)
|
775
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
776
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
777
|
+
model = models.DeleteDeviceGroupRequest()
|
778
|
+
model.from_json_string(json.dumps(args))
|
779
|
+
start_time = time.time()
|
780
|
+
while True:
|
781
|
+
rsp = client.DeleteDeviceGroup(model)
|
782
|
+
result = rsp.to_json_string()
|
783
|
+
try:
|
784
|
+
json_obj = json.loads(result)
|
785
|
+
except TypeError as e:
|
786
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
787
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
788
|
+
break
|
789
|
+
cur_time = time.time()
|
790
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
791
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
792
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
793
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
794
|
+
else:
|
795
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
796
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
797
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
|
+
|
799
|
+
|
800
|
+
def doModifyDeviceField(args, parsed_globals):
|
801
|
+
g_param = parse_global_arg(parsed_globals)
|
802
|
+
|
803
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
804
|
+
cred = credential.CVMRoleCredential()
|
805
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
806
|
+
cred = credential.STSAssumeRoleCredential(
|
807
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
808
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
809
|
+
)
|
810
|
+
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):
|
811
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
812
|
+
else:
|
813
|
+
cred = credential.Credential(
|
814
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
815
|
+
)
|
816
|
+
http_profile = HttpProfile(
|
817
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
818
|
+
reqMethod="POST",
|
819
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
820
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
821
|
+
)
|
822
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
823
|
+
if g_param[OptionsDefine.Language]:
|
824
|
+
profile.language = g_param[OptionsDefine.Language]
|
825
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
826
|
+
client = mod.WeilingwithClient(cred, g_param[OptionsDefine.Region], profile)
|
827
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
828
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
829
|
+
model = models.ModifyDeviceFieldRequest()
|
830
|
+
model.from_json_string(json.dumps(args))
|
831
|
+
start_time = time.time()
|
832
|
+
while True:
|
833
|
+
rsp = client.ModifyDeviceField(model)
|
834
|
+
result = rsp.to_json_string()
|
835
|
+
try:
|
836
|
+
json_obj = json.loads(result)
|
837
|
+
except TypeError as e:
|
838
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
839
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
840
|
+
break
|
841
|
+
cur_time = time.time()
|
842
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
843
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
844
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
845
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
846
|
+
else:
|
847
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
848
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
849
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
|
+
|
851
|
+
|
748
852
|
def doDescribeDeviceTypeList(args, parsed_globals):
|
749
853
|
g_param = parse_global_arg(parsed_globals)
|
750
854
|
|
@@ -849,6 +953,58 @@ def doDescribeActionList(args, parsed_globals):
|
|
849
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
954
|
|
851
955
|
|
956
|
+
def doModifyDeviceGroup(args, parsed_globals):
|
957
|
+
g_param = parse_global_arg(parsed_globals)
|
958
|
+
|
959
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
960
|
+
cred = credential.CVMRoleCredential()
|
961
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
962
|
+
cred = credential.STSAssumeRoleCredential(
|
963
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
964
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
965
|
+
)
|
966
|
+
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):
|
967
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
968
|
+
else:
|
969
|
+
cred = credential.Credential(
|
970
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
971
|
+
)
|
972
|
+
http_profile = HttpProfile(
|
973
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
974
|
+
reqMethod="POST",
|
975
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
976
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
977
|
+
)
|
978
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
979
|
+
if g_param[OptionsDefine.Language]:
|
980
|
+
profile.language = g_param[OptionsDefine.Language]
|
981
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
982
|
+
client = mod.WeilingwithClient(cred, g_param[OptionsDefine.Region], profile)
|
983
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
984
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
985
|
+
model = models.ModifyDeviceGroupRequest()
|
986
|
+
model.from_json_string(json.dumps(args))
|
987
|
+
start_time = time.time()
|
988
|
+
while True:
|
989
|
+
rsp = client.ModifyDeviceGroup(model)
|
990
|
+
result = rsp.to_json_string()
|
991
|
+
try:
|
992
|
+
json_obj = json.loads(result)
|
993
|
+
except TypeError as e:
|
994
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
995
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
996
|
+
break
|
997
|
+
cur_time = time.time()
|
998
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
999
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1000
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1001
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1002
|
+
else:
|
1003
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1004
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1005
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1006
|
+
|
1007
|
+
|
852
1008
|
def doModifyDeviceName(args, parsed_globals):
|
853
1009
|
g_param = parse_global_arg(parsed_globals)
|
854
1010
|
|
@@ -1265,6 +1421,58 @@ def doDescribeEventList(args, parsed_globals):
|
|
1265
1421
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
1422
|
|
1267
1423
|
|
1424
|
+
def doBatchDeleteDevice(args, parsed_globals):
|
1425
|
+
g_param = parse_global_arg(parsed_globals)
|
1426
|
+
|
1427
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1428
|
+
cred = credential.CVMRoleCredential()
|
1429
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1430
|
+
cred = credential.STSAssumeRoleCredential(
|
1431
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1432
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1433
|
+
)
|
1434
|
+
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):
|
1435
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1436
|
+
else:
|
1437
|
+
cred = credential.Credential(
|
1438
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1439
|
+
)
|
1440
|
+
http_profile = HttpProfile(
|
1441
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1442
|
+
reqMethod="POST",
|
1443
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1444
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1445
|
+
)
|
1446
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1447
|
+
if g_param[OptionsDefine.Language]:
|
1448
|
+
profile.language = g_param[OptionsDefine.Language]
|
1449
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1450
|
+
client = mod.WeilingwithClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1452
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
+
model = models.BatchDeleteDeviceRequest()
|
1454
|
+
model.from_json_string(json.dumps(args))
|
1455
|
+
start_time = time.time()
|
1456
|
+
while True:
|
1457
|
+
rsp = client.BatchDeleteDevice(model)
|
1458
|
+
result = rsp.to_json_string()
|
1459
|
+
try:
|
1460
|
+
json_obj = json.loads(result)
|
1461
|
+
except TypeError as e:
|
1462
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1463
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1464
|
+
break
|
1465
|
+
cur_time = time.time()
|
1466
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1467
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1468
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1469
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1470
|
+
else:
|
1471
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1472
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1473
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
|
+
|
1475
|
+
|
1268
1476
|
def doDescribeProductList(args, parsed_globals):
|
1269
1477
|
g_param = parse_global_arg(parsed_globals)
|
1270
1478
|
|
@@ -1889,6 +2097,58 @@ def doBatchCreateDevice(args, parsed_globals):
|
|
1889
2097
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
2098
|
|
1891
2099
|
|
2100
|
+
def doModifyDeviceTag(args, parsed_globals):
|
2101
|
+
g_param = parse_global_arg(parsed_globals)
|
2102
|
+
|
2103
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2104
|
+
cred = credential.CVMRoleCredential()
|
2105
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2106
|
+
cred = credential.STSAssumeRoleCredential(
|
2107
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2108
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2109
|
+
)
|
2110
|
+
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):
|
2111
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2112
|
+
else:
|
2113
|
+
cred = credential.Credential(
|
2114
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2115
|
+
)
|
2116
|
+
http_profile = HttpProfile(
|
2117
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2118
|
+
reqMethod="POST",
|
2119
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2120
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2121
|
+
)
|
2122
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2123
|
+
if g_param[OptionsDefine.Language]:
|
2124
|
+
profile.language = g_param[OptionsDefine.Language]
|
2125
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2126
|
+
client = mod.WeilingwithClient(cred, g_param[OptionsDefine.Region], profile)
|
2127
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2128
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2129
|
+
model = models.ModifyDeviceTagRequest()
|
2130
|
+
model.from_json_string(json.dumps(args))
|
2131
|
+
start_time = time.time()
|
2132
|
+
while True:
|
2133
|
+
rsp = client.ModifyDeviceTag(model)
|
2134
|
+
result = rsp.to_json_string()
|
2135
|
+
try:
|
2136
|
+
json_obj = json.loads(result)
|
2137
|
+
except TypeError as e:
|
2138
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2139
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2140
|
+
break
|
2141
|
+
cur_time = time.time()
|
2142
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2143
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2144
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2145
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2146
|
+
else:
|
2147
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2148
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2149
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
|
+
|
2151
|
+
|
1892
2152
|
def doDescribeSpaceDeviceRelationList(args, parsed_globals):
|
1893
2153
|
g_param = parse_global_arg(parsed_globals)
|
1894
2154
|
|
@@ -2097,7 +2357,7 @@ def doDescribeCityWorkspaceList(args, parsed_globals):
|
|
2097
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
2358
|
|
2099
2359
|
|
2100
|
-
def
|
2360
|
+
def doStopVideoStreaming(args, parsed_globals):
|
2101
2361
|
g_param = parse_global_arg(parsed_globals)
|
2102
2362
|
|
2103
2363
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2126,11 +2386,11 @@ def doDescribeEdgeApplicationToken(args, parsed_globals):
|
|
2126
2386
|
client = mod.WeilingwithClient(cred, g_param[OptionsDefine.Region], profile)
|
2127
2387
|
client._sdkVersion += ("_CLI_" + __version__)
|
2128
2388
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2129
|
-
model = models.
|
2389
|
+
model = models.StopVideoStreamingRequest()
|
2130
2390
|
model.from_json_string(json.dumps(args))
|
2131
2391
|
start_time = time.time()
|
2132
2392
|
while True:
|
2133
|
-
rsp = client.
|
2393
|
+
rsp = client.StopVideoStreaming(model)
|
2134
2394
|
result = rsp.to_json_string()
|
2135
2395
|
try:
|
2136
2396
|
json_obj = json.loads(result)
|
@@ -2201,6 +2461,58 @@ def doDescribeBuildingModel(args, parsed_globals):
|
|
2201
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2462
|
|
2203
2463
|
|
2464
|
+
def doDescribeDeviceGroupList(args, parsed_globals):
|
2465
|
+
g_param = parse_global_arg(parsed_globals)
|
2466
|
+
|
2467
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2468
|
+
cred = credential.CVMRoleCredential()
|
2469
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2470
|
+
cred = credential.STSAssumeRoleCredential(
|
2471
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2472
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2473
|
+
)
|
2474
|
+
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):
|
2475
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2476
|
+
else:
|
2477
|
+
cred = credential.Credential(
|
2478
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2479
|
+
)
|
2480
|
+
http_profile = HttpProfile(
|
2481
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2482
|
+
reqMethod="POST",
|
2483
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2484
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2485
|
+
)
|
2486
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2487
|
+
if g_param[OptionsDefine.Language]:
|
2488
|
+
profile.language = g_param[OptionsDefine.Language]
|
2489
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2490
|
+
client = mod.WeilingwithClient(cred, g_param[OptionsDefine.Region], profile)
|
2491
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2492
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2493
|
+
model = models.DescribeDeviceGroupListRequest()
|
2494
|
+
model.from_json_string(json.dumps(args))
|
2495
|
+
start_time = time.time()
|
2496
|
+
while True:
|
2497
|
+
rsp = client.DescribeDeviceGroupList(model)
|
2498
|
+
result = rsp.to_json_string()
|
2499
|
+
try:
|
2500
|
+
json_obj = json.loads(result)
|
2501
|
+
except TypeError as e:
|
2502
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2503
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2504
|
+
break
|
2505
|
+
cur_time = time.time()
|
2506
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2507
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2508
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2509
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2510
|
+
else:
|
2511
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2512
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2513
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
|
+
|
2515
|
+
|
2204
2516
|
def doDescribeSpaceTypeList(args, parsed_globals):
|
2205
2517
|
g_param = parse_global_arg(parsed_globals)
|
2206
2518
|
|
@@ -2305,6 +2617,58 @@ def doDescribeBuildingList(args, parsed_globals):
|
|
2305
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2306
2618
|
|
2307
2619
|
|
2620
|
+
def doSaveDeviceGroup(args, parsed_globals):
|
2621
|
+
g_param = parse_global_arg(parsed_globals)
|
2622
|
+
|
2623
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2624
|
+
cred = credential.CVMRoleCredential()
|
2625
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2626
|
+
cred = credential.STSAssumeRoleCredential(
|
2627
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2628
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2629
|
+
)
|
2630
|
+
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):
|
2631
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2632
|
+
else:
|
2633
|
+
cred = credential.Credential(
|
2634
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2635
|
+
)
|
2636
|
+
http_profile = HttpProfile(
|
2637
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2638
|
+
reqMethod="POST",
|
2639
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2640
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2641
|
+
)
|
2642
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2643
|
+
if g_param[OptionsDefine.Language]:
|
2644
|
+
profile.language = g_param[OptionsDefine.Language]
|
2645
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2646
|
+
client = mod.WeilingwithClient(cred, g_param[OptionsDefine.Region], profile)
|
2647
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2648
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2649
|
+
model = models.SaveDeviceGroupRequest()
|
2650
|
+
model.from_json_string(json.dumps(args))
|
2651
|
+
start_time = time.time()
|
2652
|
+
while True:
|
2653
|
+
rsp = client.SaveDeviceGroup(model)
|
2654
|
+
result = rsp.to_json_string()
|
2655
|
+
try:
|
2656
|
+
json_obj = json.loads(result)
|
2657
|
+
except TypeError as e:
|
2658
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2659
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2660
|
+
break
|
2661
|
+
cur_time = time.time()
|
2662
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2663
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2664
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2665
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2666
|
+
else:
|
2667
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2668
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2669
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
|
+
|
2671
|
+
|
2308
2672
|
def doDescribeDeviceStatusList(args, parsed_globals):
|
2309
2673
|
g_param = parse_global_arg(parsed_globals)
|
2310
2674
|
|
@@ -2929,7 +3293,7 @@ def doAddAlarmProcessRecord(args, parsed_globals):
|
|
2929
3293
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
3294
|
|
2931
3295
|
|
2932
|
-
def
|
3296
|
+
def doDescribeEdgeApplicationToken(args, parsed_globals):
|
2933
3297
|
g_param = parse_global_arg(parsed_globals)
|
2934
3298
|
|
2935
3299
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2958,11 +3322,11 @@ def doStopVideoStreaming(args, parsed_globals):
|
|
2958
3322
|
client = mod.WeilingwithClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
3323
|
client._sdkVersion += ("_CLI_" + __version__)
|
2960
3324
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
-
model = models.
|
3325
|
+
model = models.DescribeEdgeApplicationTokenRequest()
|
2962
3326
|
model.from_json_string(json.dumps(args))
|
2963
3327
|
start_time = time.time()
|
2964
3328
|
while True:
|
2965
|
-
rsp = client.
|
3329
|
+
rsp = client.DescribeEdgeApplicationToken(model)
|
2966
3330
|
result = rsp.to_json_string()
|
2967
3331
|
try:
|
2968
3332
|
json_obj = json.loads(result)
|
@@ -3006,8 +3370,11 @@ ACTION_MAP = {
|
|
3006
3370
|
"CreateApplicationToken": doCreateApplicationToken,
|
3007
3371
|
"DescribeDeviceShadowList": doDescribeDeviceShadowList,
|
3008
3372
|
"DescribeDeviceTagList": doDescribeDeviceTagList,
|
3373
|
+
"DeleteDeviceGroup": doDeleteDeviceGroup,
|
3374
|
+
"ModifyDeviceField": doModifyDeviceField,
|
3009
3375
|
"DescribeDeviceTypeList": doDescribeDeviceTypeList,
|
3010
3376
|
"DescribeActionList": doDescribeActionList,
|
3377
|
+
"ModifyDeviceGroup": doModifyDeviceGroup,
|
3011
3378
|
"ModifyDeviceName": doModifyDeviceName,
|
3012
3379
|
"DescribeSpaceInfoByDeviceId": doDescribeSpaceInfoByDeviceId,
|
3013
3380
|
"DescribeWorkspaceList": doDescribeWorkspaceList,
|
@@ -3016,6 +3383,7 @@ ACTION_MAP = {
|
|
3016
3383
|
"DescribeModelList": doDescribeModelList,
|
3017
3384
|
"DescribePropertyList": doDescribePropertyList,
|
3018
3385
|
"DescribeEventList": doDescribeEventList,
|
3386
|
+
"BatchDeleteDevice": doBatchDeleteDevice,
|
3019
3387
|
"DescribeProductList": doDescribeProductList,
|
3020
3388
|
"DescribeSceneList": doDescribeSceneList,
|
3021
3389
|
"DescribeSpaceRelationByDeviceId": doDescribeSpaceRelationByDeviceId,
|
@@ -3028,14 +3396,17 @@ ACTION_MAP = {
|
|
3028
3396
|
"UpdateWorkspaceParkAttributes": doUpdateWorkspaceParkAttributes,
|
3029
3397
|
"DescribeDeviceStatusStat": doDescribeDeviceStatusStat,
|
3030
3398
|
"BatchCreateDevice": doBatchCreateDevice,
|
3399
|
+
"ModifyDeviceTag": doModifyDeviceTag,
|
3031
3400
|
"DescribeSpaceDeviceRelationList": doDescribeSpaceDeviceRelationList,
|
3032
3401
|
"DescribeCameraExtendInfo": doDescribeCameraExtendInfo,
|
3033
3402
|
"DescribeFileDownloadURL": doDescribeFileDownloadURL,
|
3034
3403
|
"DescribeCityWorkspaceList": doDescribeCityWorkspaceList,
|
3035
|
-
"
|
3404
|
+
"StopVideoStreaming": doStopVideoStreaming,
|
3036
3405
|
"DescribeBuildingModel": doDescribeBuildingModel,
|
3406
|
+
"DescribeDeviceGroupList": doDescribeDeviceGroupList,
|
3037
3407
|
"DescribeSpaceTypeList": doDescribeSpaceTypeList,
|
3038
3408
|
"DescribeBuildingList": doDescribeBuildingList,
|
3409
|
+
"SaveDeviceGroup": doSaveDeviceGroup,
|
3039
3410
|
"DescribeDeviceStatusList": doDescribeDeviceStatusList,
|
3040
3411
|
"ControlCameraPTZ": doControlCameraPTZ,
|
3041
3412
|
"DescribeInterfaceList": doDescribeInterfaceList,
|
@@ -3048,7 +3419,7 @@ ACTION_MAP = {
|
|
3048
3419
|
"DescribeAlarmLevelList": doDescribeAlarmLevelList,
|
3049
3420
|
"DescribeAlarmTypeList": doDescribeAlarmTypeList,
|
3050
3421
|
"AddAlarmProcessRecord": doAddAlarmProcessRecord,
|
3051
|
-
"
|
3422
|
+
"DescribeEdgeApplicationToken": doDescribeEdgeApplicationToken,
|
3052
3423
|
|
3053
3424
|
}
|
3054
3425
|
|
@@ -172,10 +172,16 @@
|
|
172
172
|
"title": "播放指定音乐"
|
173
173
|
},
|
174
174
|
{
|
175
|
-
"document": "",
|
176
|
-
"input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SyncKTVRobotCommand\n<公共请求参数>\n\n{\n \"AppName\": \"ktv\",\n \"UserId\": \"10001\",\n \"RobotId\": \"xxxxx\",\n \"SyncRobotCommands\": [\n {\n \"Command\": \"
|
175
|
+
"document": "设置播放模式为随机播放。",
|
176
|
+
"input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SyncKTVRobotCommand\n<公共请求参数>\n\n{\n \"AppName\": \"ktv\",\n \"UserId\": \"10001\",\n \"RobotId\": \"xxxxx\",\n \"SyncRobotCommands\": [\n {\n \"Command\": \"SetPlayMode\",\n \"SetPlayModeCommandInput\": {\n \"PlayMode\": \"Shuffle\"\n }\n }\n ]\n}",
|
177
177
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
178
|
-
"title": "
|
178
|
+
"title": "设置播放模式"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"document": "设置销毁模式为:房间没人后,2分钟内无人进入自动销毁。",
|
182
|
+
"input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SyncKTVRobotCommand\n<公共请求参数>\n\n{\n \"AppName\": \"ktv\",\n \"UserId\": \"10001\",\n \"RobotId\": \"xxxxx\",\n \"SyncRobotCommands\": [\n {\n \"Command\": \"SetDestroyMode\",\n \"SetDestroyModeCommandInput\": {\n \"DestroyMode\": \"Expire\",\n \"DestroyExpireTime\": 120\n }\n }\n ]\n}",
|
183
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
184
|
+
"title": "设置销毁模式"
|
179
185
|
},
|
180
186
|
{
|
181
187
|
"document": "",
|
@@ -190,16 +196,10 @@
|
|
190
196
|
"title": "发送自定义消息"
|
191
197
|
},
|
192
198
|
{
|
193
|
-
"document": "
|
194
|
-
"input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SyncKTVRobotCommand\n<公共请求参数>\n\n{\n \"AppName\": \"ktv\",\n \"UserId\": \"10001\",\n \"RobotId\": \"xxxxx\",\n \"SyncRobotCommands\": [\n {\n \"Command\": \"
|
195
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
196
|
-
"title": "设置播放模式"
|
197
|
-
},
|
198
|
-
{
|
199
|
-
"document": "设置销毁模式为:房间没人后,2分钟内无人进入自动销毁。",
|
200
|
-
"input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SyncKTVRobotCommand\n<公共请求参数>\n\n{\n \"AppName\": \"ktv\",\n \"UserId\": \"10001\",\n \"RobotId\": \"xxxxx\",\n \"SyncRobotCommands\": [\n {\n \"Command\": \"SetDestroyMode\",\n \"SetDestroyModeCommandInput\": {\n \"DestroyMode\": \"Expire\",\n \"DestroyExpireTime\": 120\n }\n }\n ]\n}",
|
199
|
+
"document": "",
|
200
|
+
"input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SyncKTVRobotCommand\n<公共请求参数>\n\n{\n \"AppName\": \"ktv\",\n \"UserId\": \"10001\",\n \"RobotId\": \"xxxxx\",\n \"SyncRobotCommands\": [\n {\n \"Command\": \"SetAudioParam\",\n \"SetAudioParamCommandInput\": {\n \"Type\": \"Accompaniment\"\n }\n }\n ]\n}",
|
201
201
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
202
|
-
"title": "
|
202
|
+
"title": "变更歌曲音频参数"
|
203
203
|
},
|
204
204
|
{
|
205
205
|
"document": "",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1088.1
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
15
15
|
Requires-Dist: six==1.16.0
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1088
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|