tccli 3.0.1093.1__py2.py3-none-any.whl → 3.0.1094.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/domain/v20180808/DescribeReservedBidInfo.md +27 -11
- tccli/examples/ess/v20201111/DescribeBillUsage.md +26 -0
- tccli/examples/gaap/v20180529/DescribeProxyDetail.md +136 -108
- tccli/examples/gaap/v20180529/DescribeProxyGroupDetails.md +34 -27
- tccli/examples/gaap/v20180529/DescribeRules.md +55 -70
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIService.md +25 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIServiceCallback.md +23 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIServiceTasks.md +40 -0
- tccli/examples/iotexplorer/v20190423/DescribeProductCloudStorageAIService.md +22 -0
- tccli/examples/iotexplorer/v20190423/ModifyCloudStorageAIService.md +23 -0
- tccli/examples/iotexplorer/v20190423/ModifyCloudStorageAIServiceCallback.md +23 -0
- tccli/examples/iotexplorer/v20190423/ModifyProductCloudStorageAIService.md +21 -0
- tccli/examples/lcic/v20220817/BatchDescribeDocument.md +3 -1
- tccli/examples/organization/v20210331/AttachPolicy.md +22 -0
- tccli/examples/organization/v20210331/CreatePolicy.md +24 -0
- tccli/examples/organization/v20210331/DeletePolicy.md +20 -0
- tccli/examples/organization/v20210331/DescribePolicy.md +27 -0
- tccli/examples/organization/v20210331/DescribePolicyConfig.md +22 -0
- tccli/examples/organization/v20210331/DetachPolicy.md +22 -0
- tccli/examples/organization/v20210331/DisablePolicyType.md +21 -0
- tccli/examples/organization/v20210331/EnablePolicyType.md +21 -0
- tccli/examples/organization/v20210331/ListPolicies.md +41 -0
- tccli/examples/organization/v20210331/ListPoliciesForTarget.md +45 -0
- tccli/examples/organization/v20210331/ListTargetsForPolicy.md +35 -0
- tccli/examples/organization/v20210331/UpdatePolicy.md +23 -0
- tccli/examples/tke/v20180525/DescribeClusterNodePoolDetail.md +4 -0
- tccli/examples/tke/v20180525/DescribeClusterNodePools.md +4 -0
- tccli/examples/wedata/v20210820/BatchCreateIntegrationTaskAlarms.md +13 -13
- tccli/examples/wedata/v20210820/BatchDeleteIntegrationTasks.md +2 -2
- tccli/examples/wedata/v20210820/BatchDeleteOpsTasks.md +4 -85
- tccli/examples/wedata/v20210820/BatchForceSuccessIntegrationTaskInstances.md +4 -4
- tccli/examples/wedata/v20210820/BatchKillIntegrationTaskInstances.md +4 -4
- tccli/examples/wedata/v20210820/BatchMakeUpIntegrationTasks.md +3 -3
- tccli/examples/wedata/v20210820/BatchModifyOpsOwners.md +5 -5
- tccli/examples/wedata/v20210820/BatchRerunIntegrationTaskInstances.md +5 -5
- tccli/examples/wedata/v20210820/BatchResumeIntegrationTasks.md +1 -1
- tccli/examples/wedata/v20210820/BatchRunOpsTask.md +5 -5
- tccli/examples/wedata/v20210820/BatchStartIntegrationTasks.md +5 -5
- tccli/examples/wedata/v20210820/BatchStopIntegrationTasks.md +4 -4
- tccli/examples/wedata/v20210820/BatchStopWorkflowsByIds.md +6 -6
- tccli/examples/wedata/v20210820/BatchSuspendIntegrationTasks.md +3 -3
- tccli/examples/wedata/v20210820/BatchUpdateIntegrationTasks.md +4 -4
- tccli/examples/wedata/v20210820/CheckAlarmRegularNameExist.md +2 -2
- tccli/examples/wedata/v20210820/CheckIntegrationNodeNameExists.md +4 -4
- tccli/examples/wedata/v20210820/CheckIntegrationTaskNameExists.md +4 -4
- tccli/examples/wedata/v20210820/CheckTaskNameExist.md +3 -3
- tccli/examples/wedata/v20210820/CommitIntegrationTask.md +6 -6
- tccli/examples/wedata/v20210820/CommitRuleGroupTask.md +84 -14
- tccli/examples/wedata/v20210820/CountOpsInstanceState.md +4 -4
- tccli/examples/wedata/v20210820/CreateCustomFunction.md +8 -8
- tccli/examples/wedata/v20210820/CreateDataSource.md +8 -8
- tccli/examples/wedata/v20210820/CreateDsFolder.md +5 -5
- tccli/examples/wedata/v20210820/CreateHiveTable.md +1 -1
- tccli/examples/wedata/v20210820/CreateHiveTableByDDL.md +8 -8
- tccli/examples/wedata/v20210820/CreateIntegrationNode.md +2 -2
- tccli/examples/wedata/v20210820/CreateOfflineTask.md +12 -12
- tccli/examples/wedata/v20210820/CreateOpsMakePlan.md +2 -2
- tccli/examples/wedata/v20210820/CreateRule.md +118 -68
- tccli/examples/wedata/v20210820/CreateRuleTemplate.md +9 -9
- tccli/examples/wedata/v20210820/CreateTask.md +1 -1
- tccli/examples/wedata/v20210820/CreateTaskAlarmRegular.md +13 -13
- tccli/examples/wedata/v20210820/CreateTaskVersionDs.md +8 -10
- tccli/examples/wedata/v20210820/DagInstances.md +105 -2
- tccli/examples/wedata/v20210820/DeleteCustomFunction.md +7 -9
- tccli/examples/wedata/v20210820/DeleteDataSources.md +2 -2
- tccli/examples/wedata/v20210820/DeleteDsFolder.md +3 -3
- tccli/examples/wedata/v20210820/DeleteFile.md +3 -3
- tccli/examples/wedata/v20210820/DeleteIntegrationNode.md +3 -3
- tccli/examples/wedata/v20210820/DeleteIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/DeleteOfflineTask.md +4 -4
- tccli/examples/wedata/v20210820/DeleteProjectParamDs.md +3 -3
- tccli/examples/wedata/v20210820/DeleteProjectUsers.md +4 -19
- tccli/examples/wedata/v20210820/DeleteResourceFile.md +3 -3
- tccli/examples/wedata/v20210820/DeleteResourceFiles.md +4 -4
- tccli/examples/wedata/v20210820/DeleteRule.md +1 -1
- tccli/examples/wedata/v20210820/DeleteRuleTemplate.md +1 -1
- tccli/examples/wedata/v20210820/DeleteTaskAlarmRegular.md +3 -3
- tccli/examples/wedata/v20210820/DeleteTaskDs.md +4 -4
- tccli/examples/wedata/v20210820/DeleteWorkflowById.md +6 -6
- tccli/examples/wedata/v20210820/DescribeAlarmEvents.md +2 -2
- tccli/examples/wedata/v20210820/DescribeAllByFolderNew.md +111 -101
- tccli/examples/wedata/v20210820/DescribeApproveList.md +19 -66
- tccli/examples/wedata/v20210820/DescribeApproveTypeList.md +1 -33
- tccli/examples/wedata/v20210820/DescribeBatchOperateTask.md +21 -19
- tccli/examples/wedata/v20210820/DescribeDataCheckStat.md +1 -1
- tccli/examples/wedata/v20210820/DescribeDataSourceInfoList.md +10 -9
- tccli/examples/wedata/v20210820/DescribeDataSourceList.md +45 -4
- tccli/examples/wedata/v20210820/DescribeDatabaseInfoList.md +8 -8
- tccli/examples/wedata/v20210820/DescribeDatasource.md +35 -12
- tccli/examples/wedata/v20210820/DescribeDependOpsTasks.md +37 -44
- tccli/examples/wedata/v20210820/DescribeDependTaskLists.md +85 -74
- tccli/examples/wedata/v20210820/DescribeDimensionScore.md +59 -10
- tccli/examples/wedata/v20210820/DescribeDsFolderTree.md +27 -27
- tccli/examples/wedata/v20210820/DescribeDsParentFolderTree.md +20 -20
- tccli/examples/wedata/v20210820/DescribeEventCases.md +35 -62
- tccli/examples/wedata/v20210820/DescribeEventConsumeTasks.md +2 -0
- tccli/examples/wedata/v20210820/DescribeExecStrategy.md +3 -3
- tccli/examples/wedata/v20210820/DescribeFolderWorkflowList.md +21 -61
- tccli/examples/wedata/v20210820/DescribeFunctionKinds.md +14 -4
- tccli/examples/wedata/v20210820/DescribeFunctionTypes.md +1 -1
- tccli/examples/wedata/v20210820/DescribeInstanceLastLog.md +4 -4
- tccli/examples/wedata/v20210820/DescribeInstanceList.md +19 -19
- tccli/examples/wedata/v20210820/DescribeInstanceLog.md +7 -7
- tccli/examples/wedata/v20210820/DescribeInstanceLogList.md +15 -15
- tccli/examples/wedata/v20210820/DescribeIntegrationNode.md +89 -51
- tccli/examples/wedata/v20210820/DescribeIntegrationStatistics.md +2 -2
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsInstanceTrend.md +9 -7
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsRecordsTrend.md +1 -1
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatus.md +5 -5
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatusTrend.md +10 -8
- tccli/examples/wedata/v20210820/DescribeIntegrationTask.md +181 -119
- tccli/examples/wedata/v20210820/DescribeIntegrationTasks.md +198 -239
- tccli/examples/wedata/v20210820/DescribeIntegrationVersionNodesInfo.md +117 -52
- tccli/examples/wedata/v20210820/DescribeOfflineTaskToken.md +3 -3
- tccli/examples/wedata/v20210820/DescribeOperateOpsTasks.md +91 -147
- tccli/examples/wedata/v20210820/DescribeOpsInstanceLogList.md +14 -14
- tccli/examples/wedata/v20210820/DescribeOpsMakePlanInstances.md +313 -45
- tccli/examples/wedata/v20210820/DescribeOpsMakePlanTasks.md +92 -76
- tccli/examples/wedata/v20210820/DescribeOpsMakePlans.md +13 -9
- tccli/examples/wedata/v20210820/DescribeOpsWorkflows.md +19 -29
- tccli/examples/wedata/v20210820/DescribeOrganizationalFunctions.md +2 -2
- tccli/examples/wedata/v20210820/DescribeProject.md +3 -47
- tccli/examples/wedata/v20210820/DescribeQualityScore.md +15 -15
- tccli/examples/wedata/v20210820/DescribeRealTimeTaskInstanceNodeInfo.md +8 -8
- tccli/examples/wedata/v20210820/DescribeRealTimeTaskMetricOverview.md +12 -12
- tccli/examples/wedata/v20210820/DescribeRealTimeTaskSpeed.md +13 -13
- tccli/examples/wedata/v20210820/DescribeRule.md +81 -101
- tccli/examples/wedata/v20210820/DescribeRuleExecDetail.md +42 -66
- tccli/examples/wedata/v20210820/DescribeRuleExecLog.md +2 -2
- tccli/examples/wedata/v20210820/DescribeRuleExecResults.md +34 -58
- tccli/examples/wedata/v20210820/DescribeRuleGroup.md +19 -63
- tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPage.md +52 -76
- tccli/examples/wedata/v20210820/DescribeRuleGroupTable.md +12 -12
- tccli/examples/wedata/v20210820/DescribeRuleGroupsByPage.md +34 -29
- tccli/examples/wedata/v20210820/DescribeRuleTemplate.md +9 -9
- tccli/examples/wedata/v20210820/DescribeRuleTemplates.md +10 -10
- tccli/examples/wedata/v20210820/DescribeRuleTemplatesByPage.md +2 -2
- tccli/examples/wedata/v20210820/DescribeRules.md +92 -33
- tccli/examples/wedata/v20210820/DescribeRulesByPage.md +12 -12
- tccli/examples/wedata/v20210820/DescribeScheduleInstances.md +8 -2
- tccli/examples/wedata/v20210820/DescribeSchedulerInstanceStatus.md +11 -66
- tccli/examples/wedata/v20210820/DescribeSchedulerRunTimeInstanceCntByStatus.md +2 -32
- tccli/examples/wedata/v20210820/DescribeSchedulerTaskCntByStatus.md +2 -24
- tccli/examples/wedata/v20210820/DescribeSchedulerTaskTypeCnt.md +12 -36
- tccli/examples/wedata/v20210820/DescribeStatisticInstanceStatusTrendOps.md +16 -73
- tccli/examples/wedata/v20210820/DescribeStreamTaskLogList.md +13 -13
- tccli/examples/wedata/v20210820/DescribeSuccessorOpsTaskInfos.md +83 -85
- tccli/examples/wedata/v20210820/DescribeTableInfoList.md +5 -5
- tccli/examples/wedata/v20210820/DescribeTableQualityDetails.md +15 -15
- tccli/examples/wedata/v20210820/DescribeTableSchemaInfo.md +5 -5
- tccli/examples/wedata/v20210820/DescribeTableScoreTrend.md +5 -5
- tccli/examples/wedata/v20210820/DescribeTaskAlarmRegulations.md +48 -31
- tccli/examples/wedata/v20210820/DescribeTaskByCycle.md +1 -26
- tccli/examples/wedata/v20210820/DescribeTaskByStatusReport.md +21 -70
- tccli/examples/wedata/v20210820/DescribeTaskLockStatus.md +6 -6
- tccli/examples/wedata/v20210820/DescribeTaskRunHistory.md +75 -70
- tccli/examples/wedata/v20210820/DescribeTaskScript.md +2 -2
- tccli/examples/wedata/v20210820/DescribeTemplateDimCount.md +23 -3
- tccli/examples/wedata/v20210820/DescribeTopTableStat.md +1 -1
- tccli/examples/wedata/v20210820/DescribeTrendStat.md +1 -1
- tccli/examples/wedata/v20210820/DescribeWorkflowCanvasInfo.md +285 -100
- tccli/examples/wedata/v20210820/DescribeWorkflowExecuteById.md +17 -11
- tccli/examples/wedata/v20210820/DescribeWorkflowInfoById.md +24 -24
- tccli/examples/wedata/v20210820/DescribeWorkflowListByProjectId.md +32 -176
- tccli/examples/wedata/v20210820/DescribeWorkflowTaskCount.md +26 -10
- tccli/examples/wedata/v20210820/DiagnosePro.md +72 -0
- tccli/examples/wedata/v20210820/DryRunDIOfflineTask.md +10 -10
- tccli/examples/wedata/v20210820/FindAllFolder.md +902 -1
- tccli/examples/wedata/v20210820/GenHiveTableDDLSql.md +22 -22
- tccli/examples/wedata/v20210820/GetIntegrationNodeColumnSchema.md +37 -15
- tccli/examples/wedata/v20210820/GetOfflineDIInstanceList.md +27 -27
- tccli/examples/wedata/v20210820/GetOfflineInstanceList.md +28 -28
- tccli/examples/wedata/v20210820/KillScheduleInstances.md +2 -2
- tccli/examples/wedata/v20210820/LockIntegrationTask.md +3 -3
- tccli/examples/wedata/v20210820/ModifyApproveStatus.md +1 -25
- tccli/examples/wedata/v20210820/ModifyDataSource.md +7 -7
- tccli/examples/wedata/v20210820/ModifyDsFolder.md +5 -5
- tccli/examples/wedata/v20210820/ModifyExecStrategy.md +16 -16
- tccli/examples/wedata/v20210820/ModifyIntegrationNode.md +42 -42
- tccli/examples/wedata/v20210820/ModifyIntegrationTask.md +132 -105
- tccli/examples/wedata/v20210820/ModifyRule.md +8 -8
- tccli/examples/wedata/v20210820/ModifyRuleTemplate.md +4 -4
- tccli/examples/wedata/v20210820/ModifyTaskAlarmRegular.md +34 -34
- tccli/examples/wedata/v20210820/ModifyTaskInfo.md +27 -54
- tccli/examples/wedata/v20210820/ModifyTaskLinks.md +9 -9
- tccli/examples/wedata/v20210820/ModifyTaskName.md +5 -5
- tccli/examples/wedata/v20210820/ModifyTaskScript.md +6 -15
- tccli/examples/wedata/v20210820/ModifyWorkflowInfo.md +7 -7
- tccli/examples/wedata/v20210820/ModifyWorkflowSchedule.md +7 -7
- tccli/examples/wedata/v20210820/RegisterEvent.md +12 -40
- tccli/examples/wedata/v20210820/RemoveWorkflowDs.md +2 -2
- tccli/examples/wedata/v20210820/ResumeIntegrationTask.md +7 -32
- tccli/examples/wedata/v20210820/RobAndLockIntegrationTask.md +5 -5
- tccli/examples/wedata/v20210820/RunForceSucScheduleInstances.md +14 -7
- tccli/examples/wedata/v20210820/RunRerunScheduleInstances.md +17 -12
- tccli/examples/wedata/v20210820/RunTasksByMultiWorkflow.md +6 -6
- tccli/examples/wedata/v20210820/SaveCustomFunction.md +1 -1
- tccli/examples/wedata/v20210820/SetTaskAlarmNew.md +12 -13
- tccli/examples/wedata/v20210820/StartIntegrationTask.md +7 -32
- tccli/examples/wedata/v20210820/StopIntegrationTask.md +3 -3
- tccli/examples/wedata/v20210820/SubmitCustomFunction.md +1 -1
- tccli/examples/wedata/v20210820/SubmitSqlTask.md +27 -28
- tccli/examples/wedata/v20210820/SubmitTask.md +8 -8
- tccli/examples/wedata/v20210820/SubmitTaskTestRun.md +6 -26
- tccli/examples/wedata/v20210820/SubmitWorkflow.md +13 -9
- tccli/examples/wedata/v20210820/SuspendIntegrationTask.md +2 -2
- tccli/examples/wedata/v20210820/TaskLog.md +5 -5
- tccli/examples/wedata/v20210820/TriggerDsEvent.md +1 -1
- tccli/examples/wedata/v20210820/TriggerEvent.md +28 -0
- tccli/examples/wedata/v20210820/UnlockIntegrationTask.md +5 -5
- tccli/examples/wedata/v20210820/UpdateWorkflowOwner.md +6 -6
- tccli/examples/wedata/v20210820/UploadContent.md +29 -29
- tccli/services/cfs/v20190719/api.json +2 -2
- tccli/services/ckafka/v20190819/api.json +17 -17
- tccli/services/cls/v20201016/api.json +5 -3
- tccli/services/cynosdb/v20190107/api.json +70 -0
- tccli/services/dnspod/v20210323/api.json +2 -2
- tccli/services/domain/v20180808/api.json +40 -0
- tccli/services/domain/v20180808/examples.json +1 -1
- tccli/services/dsgc/v20190723/api.json +90 -20
- tccli/services/dts/v20180330/api.json +1 -1
- tccli/services/dts/v20211206/api.json +2 -1
- tccli/services/eb/v20210416/api.json +64 -0
- tccli/services/emr/v20190103/api.json +1 -1
- tccli/services/ess/ess_client.py +57 -4
- tccli/services/ess/v20201111/api.json +179 -0
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/facefusion/v20220927/api.json +1 -1
- tccli/services/gaap/v20180529/api.json +68 -40
- tccli/services/gaap/v20180529/examples.json +6 -6
- tccli/services/iotexplorer/iotexplorer_client.py +375 -4
- tccli/services/iotexplorer/v20190423/api.json +589 -0
- tccli/services/iotexplorer/v20190423/examples.json +56 -0
- tccli/services/lcic/v20220817/api.json +5 -5
- tccli/services/lcic/v20220817/examples.json +1 -1
- tccli/services/organization/organization_client.py +783 -147
- tccli/services/organization/v20210331/api.json +1259 -207
- tccli/services/organization/v20210331/examples.json +96 -0
- tccli/services/tke/v20180525/api.json +23 -25
- tccli/services/tke/v20180525/examples.json +2 -2
- tccli/services/trocket/trocket_client.py +8 -61
- tccli/services/trocket/v20230308/api.json +0 -34
- tccli/services/trocket/v20230308/examples.json +0 -8
- tccli/services/tse/v20201207/api.json +10 -1
- tccli/services/vod/v20180717/api.json +13 -13
- tccli/services/wedata/v20210820/api.json +19900 -34093
- tccli/services/wedata/v20210820/examples.json +404 -1256
- tccli/services/wedata/wedata_client.py +714 -5166
- {tccli-3.0.1093.1.dist-info → tccli-3.0.1094.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1093.1.dist-info → tccli-3.0.1094.1.dist-info}/RECORD +254 -233
- {tccli-3.0.1093.1.dist-info → tccli-3.0.1094.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1093.1.dist-info → tccli-3.0.1094.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1093.1.dist-info → tccli-3.0.1094.1.dist-info}/license_files/LICENSE +0 -0
@@ -277,6 +277,58 @@ def doDescribeTopicPolicy(args, parsed_globals):
|
|
277
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
278
|
|
279
279
|
|
280
|
+
def doModifyProductCloudStorageAIService(args, parsed_globals):
|
281
|
+
g_param = parse_global_arg(parsed_globals)
|
282
|
+
|
283
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
284
|
+
cred = credential.CVMRoleCredential()
|
285
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
286
|
+
cred = credential.STSAssumeRoleCredential(
|
287
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
288
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
289
|
+
)
|
290
|
+
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):
|
291
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
292
|
+
else:
|
293
|
+
cred = credential.Credential(
|
294
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
295
|
+
)
|
296
|
+
http_profile = HttpProfile(
|
297
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
298
|
+
reqMethod="POST",
|
299
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
300
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
301
|
+
)
|
302
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
303
|
+
if g_param[OptionsDefine.Language]:
|
304
|
+
profile.language = g_param[OptionsDefine.Language]
|
305
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
306
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
307
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
308
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
+
model = models.ModifyProductCloudStorageAIServiceRequest()
|
310
|
+
model.from_json_string(json.dumps(args))
|
311
|
+
start_time = time.time()
|
312
|
+
while True:
|
313
|
+
rsp = client.ModifyProductCloudStorageAIService(model)
|
314
|
+
result = rsp.to_json_string()
|
315
|
+
try:
|
316
|
+
json_obj = json.loads(result)
|
317
|
+
except TypeError as e:
|
318
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
319
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
320
|
+
break
|
321
|
+
cur_time = time.time()
|
322
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
323
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
324
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
325
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
326
|
+
else:
|
327
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
328
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
329
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
|
+
|
331
|
+
|
280
332
|
def doGetProjectList(args, parsed_globals):
|
281
333
|
g_param = parse_global_arg(parsed_globals)
|
282
334
|
|
@@ -1005,6 +1057,58 @@ def doModifyFenceBind(args, parsed_globals):
|
|
1005
1057
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1006
1058
|
|
1007
1059
|
|
1060
|
+
def doDescribeProductCloudStorageAIService(args, parsed_globals):
|
1061
|
+
g_param = parse_global_arg(parsed_globals)
|
1062
|
+
|
1063
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1064
|
+
cred = credential.CVMRoleCredential()
|
1065
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1066
|
+
cred = credential.STSAssumeRoleCredential(
|
1067
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1068
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1069
|
+
)
|
1070
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
1071
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1072
|
+
else:
|
1073
|
+
cred = credential.Credential(
|
1074
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1075
|
+
)
|
1076
|
+
http_profile = HttpProfile(
|
1077
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1078
|
+
reqMethod="POST",
|
1079
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1080
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1081
|
+
)
|
1082
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1083
|
+
if g_param[OptionsDefine.Language]:
|
1084
|
+
profile.language = g_param[OptionsDefine.Language]
|
1085
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1086
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
1087
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1088
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1089
|
+
model = models.DescribeProductCloudStorageAIServiceRequest()
|
1090
|
+
model.from_json_string(json.dumps(args))
|
1091
|
+
start_time = time.time()
|
1092
|
+
while True:
|
1093
|
+
rsp = client.DescribeProductCloudStorageAIService(model)
|
1094
|
+
result = rsp.to_json_string()
|
1095
|
+
try:
|
1096
|
+
json_obj = json.loads(result)
|
1097
|
+
except TypeError as e:
|
1098
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1099
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1100
|
+
break
|
1101
|
+
cur_time = time.time()
|
1102
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1103
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1104
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1105
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1106
|
+
else:
|
1107
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1108
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1109
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1110
|
+
|
1111
|
+
|
1008
1112
|
def doDescribePackageConsumeTasks(args, parsed_globals):
|
1009
1113
|
g_param = parse_global_arg(parsed_globals)
|
1010
1114
|
|
@@ -1421,7 +1525,7 @@ def doDeleteTopicRule(args, parsed_globals):
|
|
1421
1525
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
1526
|
|
1423
1527
|
|
1424
|
-
def
|
1528
|
+
def doDescribeCloudStorageAIService(args, parsed_globals):
|
1425
1529
|
g_param = parse_global_arg(parsed_globals)
|
1426
1530
|
|
1427
1531
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1450,11 +1554,11 @@ def doPublishRRPCMessage(args, parsed_globals):
|
|
1450
1554
|
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
1555
|
client._sdkVersion += ("_CLI_" + __version__)
|
1452
1556
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
-
model = models.
|
1557
|
+
model = models.DescribeCloudStorageAIServiceRequest()
|
1454
1558
|
model.from_json_string(json.dumps(args))
|
1455
1559
|
start_time = time.time()
|
1456
1560
|
while True:
|
1457
|
-
rsp = client.
|
1561
|
+
rsp = client.DescribeCloudStorageAIService(model)
|
1458
1562
|
result = rsp.to_json_string()
|
1459
1563
|
try:
|
1460
1564
|
json_obj = json.loads(result)
|
@@ -3501,6 +3605,58 @@ def doCreateTopicPolicy(args, parsed_globals):
|
|
3501
3605
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
3606
|
|
3503
3607
|
|
3608
|
+
def doPublishRRPCMessage(args, parsed_globals):
|
3609
|
+
g_param = parse_global_arg(parsed_globals)
|
3610
|
+
|
3611
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3612
|
+
cred = credential.CVMRoleCredential()
|
3613
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3614
|
+
cred = credential.STSAssumeRoleCredential(
|
3615
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3616
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3617
|
+
)
|
3618
|
+
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):
|
3619
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3620
|
+
else:
|
3621
|
+
cred = credential.Credential(
|
3622
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3623
|
+
)
|
3624
|
+
http_profile = HttpProfile(
|
3625
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3626
|
+
reqMethod="POST",
|
3627
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3628
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3629
|
+
)
|
3630
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3631
|
+
if g_param[OptionsDefine.Language]:
|
3632
|
+
profile.language = g_param[OptionsDefine.Language]
|
3633
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3634
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
3635
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3636
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3637
|
+
model = models.PublishRRPCMessageRequest()
|
3638
|
+
model.from_json_string(json.dumps(args))
|
3639
|
+
start_time = time.time()
|
3640
|
+
while True:
|
3641
|
+
rsp = client.PublishRRPCMessage(model)
|
3642
|
+
result = rsp.to_json_string()
|
3643
|
+
try:
|
3644
|
+
json_obj = json.loads(result)
|
3645
|
+
except TypeError as e:
|
3646
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3647
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3648
|
+
break
|
3649
|
+
cur_time = time.time()
|
3650
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3651
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3652
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3653
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3654
|
+
else:
|
3655
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3656
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3657
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3658
|
+
|
3659
|
+
|
3504
3660
|
def doDescribeCloudStorage(args, parsed_globals):
|
3505
3661
|
g_param = parse_global_arg(parsed_globals)
|
3506
3662
|
|
@@ -4281,6 +4437,58 @@ def doGetFamilyDeviceUserList(args, parsed_globals):
|
|
4281
4437
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4282
4438
|
|
4283
4439
|
|
4440
|
+
def doModifyCloudStorageAIService(args, parsed_globals):
|
4441
|
+
g_param = parse_global_arg(parsed_globals)
|
4442
|
+
|
4443
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4444
|
+
cred = credential.CVMRoleCredential()
|
4445
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4446
|
+
cred = credential.STSAssumeRoleCredential(
|
4447
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4448
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4449
|
+
)
|
4450
|
+
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):
|
4451
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4452
|
+
else:
|
4453
|
+
cred = credential.Credential(
|
4454
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4455
|
+
)
|
4456
|
+
http_profile = HttpProfile(
|
4457
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4458
|
+
reqMethod="POST",
|
4459
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4460
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4461
|
+
)
|
4462
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4463
|
+
if g_param[OptionsDefine.Language]:
|
4464
|
+
profile.language = g_param[OptionsDefine.Language]
|
4465
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4466
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
4467
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4468
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4469
|
+
model = models.ModifyCloudStorageAIServiceRequest()
|
4470
|
+
model.from_json_string(json.dumps(args))
|
4471
|
+
start_time = time.time()
|
4472
|
+
while True:
|
4473
|
+
rsp = client.ModifyCloudStorageAIService(model)
|
4474
|
+
result = rsp.to_json_string()
|
4475
|
+
try:
|
4476
|
+
json_obj = json.loads(result)
|
4477
|
+
except TypeError as e:
|
4478
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4479
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4480
|
+
break
|
4481
|
+
cur_time = time.time()
|
4482
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4483
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4484
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4485
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4486
|
+
else:
|
4487
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4488
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4489
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4490
|
+
|
4491
|
+
|
4284
4492
|
def doGetStudioProductList(args, parsed_globals):
|
4285
4493
|
g_param = parse_global_arg(parsed_globals)
|
4286
4494
|
|
@@ -5113,6 +5321,58 @@ def doResetCloudStorageEvent(args, parsed_globals):
|
|
5113
5321
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5114
5322
|
|
5115
5323
|
|
5324
|
+
def doDescribeCloudStorageAIServiceCallback(args, parsed_globals):
|
5325
|
+
g_param = parse_global_arg(parsed_globals)
|
5326
|
+
|
5327
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5328
|
+
cred = credential.CVMRoleCredential()
|
5329
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5330
|
+
cred = credential.STSAssumeRoleCredential(
|
5331
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5332
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5333
|
+
)
|
5334
|
+
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):
|
5335
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5336
|
+
else:
|
5337
|
+
cred = credential.Credential(
|
5338
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5339
|
+
)
|
5340
|
+
http_profile = HttpProfile(
|
5341
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5342
|
+
reqMethod="POST",
|
5343
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5344
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5345
|
+
)
|
5346
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5347
|
+
if g_param[OptionsDefine.Language]:
|
5348
|
+
profile.language = g_param[OptionsDefine.Language]
|
5349
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5350
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
5351
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5352
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5353
|
+
model = models.DescribeCloudStorageAIServiceCallbackRequest()
|
5354
|
+
model.from_json_string(json.dumps(args))
|
5355
|
+
start_time = time.time()
|
5356
|
+
while True:
|
5357
|
+
rsp = client.DescribeCloudStorageAIServiceCallback(model)
|
5358
|
+
result = rsp.to_json_string()
|
5359
|
+
try:
|
5360
|
+
json_obj = json.loads(result)
|
5361
|
+
except TypeError as e:
|
5362
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5363
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5364
|
+
break
|
5365
|
+
cur_time = time.time()
|
5366
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5367
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5368
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5369
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5370
|
+
else:
|
5371
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5372
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5373
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5374
|
+
|
5375
|
+
|
5116
5376
|
def doModifySpaceProperty(args, parsed_globals):
|
5117
5377
|
g_param = parse_global_arg(parsed_globals)
|
5118
5378
|
|
@@ -5529,6 +5789,110 @@ def doDeletePositionFence(args, parsed_globals):
|
|
5529
5789
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5530
5790
|
|
5531
5791
|
|
5792
|
+
def doModifyCloudStorageAIServiceCallback(args, parsed_globals):
|
5793
|
+
g_param = parse_global_arg(parsed_globals)
|
5794
|
+
|
5795
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5796
|
+
cred = credential.CVMRoleCredential()
|
5797
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5798
|
+
cred = credential.STSAssumeRoleCredential(
|
5799
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5800
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5801
|
+
)
|
5802
|
+
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):
|
5803
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5804
|
+
else:
|
5805
|
+
cred = credential.Credential(
|
5806
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5807
|
+
)
|
5808
|
+
http_profile = HttpProfile(
|
5809
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5810
|
+
reqMethod="POST",
|
5811
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5812
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5813
|
+
)
|
5814
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5815
|
+
if g_param[OptionsDefine.Language]:
|
5816
|
+
profile.language = g_param[OptionsDefine.Language]
|
5817
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5818
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
5819
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5820
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5821
|
+
model = models.ModifyCloudStorageAIServiceCallbackRequest()
|
5822
|
+
model.from_json_string(json.dumps(args))
|
5823
|
+
start_time = time.time()
|
5824
|
+
while True:
|
5825
|
+
rsp = client.ModifyCloudStorageAIServiceCallback(model)
|
5826
|
+
result = rsp.to_json_string()
|
5827
|
+
try:
|
5828
|
+
json_obj = json.loads(result)
|
5829
|
+
except TypeError as e:
|
5830
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5831
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5832
|
+
break
|
5833
|
+
cur_time = time.time()
|
5834
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5835
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5836
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5837
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5838
|
+
else:
|
5839
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5840
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5841
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5842
|
+
|
5843
|
+
|
5844
|
+
def doDescribeCloudStorageAIServiceTasks(args, parsed_globals):
|
5845
|
+
g_param = parse_global_arg(parsed_globals)
|
5846
|
+
|
5847
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5848
|
+
cred = credential.CVMRoleCredential()
|
5849
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5850
|
+
cred = credential.STSAssumeRoleCredential(
|
5851
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5852
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5853
|
+
)
|
5854
|
+
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):
|
5855
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5856
|
+
else:
|
5857
|
+
cred = credential.Credential(
|
5858
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5859
|
+
)
|
5860
|
+
http_profile = HttpProfile(
|
5861
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5862
|
+
reqMethod="POST",
|
5863
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5864
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5865
|
+
)
|
5866
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5867
|
+
if g_param[OptionsDefine.Language]:
|
5868
|
+
profile.language = g_param[OptionsDefine.Language]
|
5869
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5870
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
5871
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5872
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5873
|
+
model = models.DescribeCloudStorageAIServiceTasksRequest()
|
5874
|
+
model.from_json_string(json.dumps(args))
|
5875
|
+
start_time = time.time()
|
5876
|
+
while True:
|
5877
|
+
rsp = client.DescribeCloudStorageAIServiceTasks(model)
|
5878
|
+
result = rsp.to_json_string()
|
5879
|
+
try:
|
5880
|
+
json_obj = json.loads(result)
|
5881
|
+
except TypeError as e:
|
5882
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5883
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5884
|
+
break
|
5885
|
+
cur_time = time.time()
|
5886
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5887
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5888
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5889
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5890
|
+
else:
|
5891
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5892
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5893
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5894
|
+
|
5895
|
+
|
5532
5896
|
def doSearchTopicRule(args, parsed_globals):
|
5533
5897
|
g_param = parse_global_arg(parsed_globals)
|
5534
5898
|
|
@@ -6065,6 +6429,7 @@ ACTION_MAP = {
|
|
6065
6429
|
"DescribeDevicePackages": doDescribeDevicePackages,
|
6066
6430
|
"DescribeDevice": doDescribeDevice,
|
6067
6431
|
"DescribeTopicPolicy": doDescribeTopicPolicy,
|
6432
|
+
"ModifyProductCloudStorageAIService": doModifyProductCloudStorageAIService,
|
6068
6433
|
"GetProjectList": doGetProjectList,
|
6069
6434
|
"CallDeviceActionSync": doCallDeviceActionSync,
|
6070
6435
|
"DescribeGatewayBindDevices": doDescribeGatewayBindDevices,
|
@@ -6079,6 +6444,7 @@ ACTION_MAP = {
|
|
6079
6444
|
"ReleaseStudioProduct": doReleaseStudioProduct,
|
6080
6445
|
"DescribeCloudStorageThumbnailList": doDescribeCloudStorageThumbnailList,
|
6081
6446
|
"ModifyFenceBind": doModifyFenceBind,
|
6447
|
+
"DescribeProductCloudStorageAIService": doDescribeProductCloudStorageAIService,
|
6082
6448
|
"DescribePackageConsumeTasks": doDescribePackageConsumeTasks,
|
6083
6449
|
"DescribeCloudStoragePackageConsumeStats": doDescribeCloudStoragePackageConsumeStats,
|
6084
6450
|
"DeletePositionSpace": doDeletePositionSpace,
|
@@ -6087,7 +6453,7 @@ ACTION_MAP = {
|
|
6087
6453
|
"ControlDeviceData": doControlDeviceData,
|
6088
6454
|
"CreateIotVideoCloudStorage": doCreateIotVideoCloudStorage,
|
6089
6455
|
"DeleteTopicRule": doDeleteTopicRule,
|
6090
|
-
"
|
6456
|
+
"DescribeCloudStorageAIService": doDescribeCloudStorageAIService,
|
6091
6457
|
"DescribeFenceBindList": doDescribeFenceBindList,
|
6092
6458
|
"DeleteLoRaGateway": doDeleteLoRaGateway,
|
6093
6459
|
"CreateStudioProduct": doCreateStudioProduct,
|
@@ -6127,6 +6493,7 @@ ACTION_MAP = {
|
|
6127
6493
|
"CreateTopicRule": doCreateTopicRule,
|
6128
6494
|
"CreateLoRaFrequency": doCreateLoRaFrequency,
|
6129
6495
|
"CreateTopicPolicy": doCreateTopicPolicy,
|
6496
|
+
"PublishRRPCMessage": doPublishRRPCMessage,
|
6130
6497
|
"DescribeCloudStorage": doDescribeCloudStorage,
|
6131
6498
|
"UploadFirmware": doUploadFirmware,
|
6132
6499
|
"UpdateDevicesEnableState": doUpdateDevicesEnableState,
|
@@ -6142,6 +6509,7 @@ ACTION_MAP = {
|
|
6142
6509
|
"CreateBatchProduction": doCreateBatchProduction,
|
6143
6510
|
"DisableTopicRule": doDisableTopicRule,
|
6144
6511
|
"GetFamilyDeviceUserList": doGetFamilyDeviceUserList,
|
6512
|
+
"ModifyCloudStorageAIService": doModifyCloudStorageAIService,
|
6145
6513
|
"GetStudioProductList": doGetStudioProductList,
|
6146
6514
|
"DescribeModelDefinition": doDescribeModelDefinition,
|
6147
6515
|
"GetGatewaySubDeviceList": doGetGatewaySubDeviceList,
|
@@ -6158,6 +6526,7 @@ ACTION_MAP = {
|
|
6158
6526
|
"DeleteLoRaFrequency": doDeleteLoRaFrequency,
|
6159
6527
|
"DescribePackageConsumeTask": doDescribePackageConsumeTask,
|
6160
6528
|
"ResetCloudStorageEvent": doResetCloudStorageEvent,
|
6529
|
+
"DescribeCloudStorageAIServiceCallback": doDescribeCloudStorageAIServiceCallback,
|
6161
6530
|
"ModifySpaceProperty": doModifySpaceProperty,
|
6162
6531
|
"DeleteTopicPolicy": doDeleteTopicPolicy,
|
6163
6532
|
"GetDeviceList": doGetDeviceList,
|
@@ -6166,6 +6535,8 @@ ACTION_MAP = {
|
|
6166
6535
|
"DescribeInstance": doDescribeInstance,
|
6167
6536
|
"ModifyLoRaFrequency": doModifyLoRaFrequency,
|
6168
6537
|
"DeletePositionFence": doDeletePositionFence,
|
6538
|
+
"ModifyCloudStorageAIServiceCallback": doModifyCloudStorageAIServiceCallback,
|
6539
|
+
"DescribeCloudStorageAIServiceTasks": doDescribeCloudStorageAIServiceTasks,
|
6169
6540
|
"SearchTopicRule": doSearchTopicRule,
|
6170
6541
|
"DescribeCloudStorageEvents": doDescribeCloudStorageEvents,
|
6171
6542
|
"ModifyModelDefinition": doModifyModelDefinition,
|