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
@@ -123,7 +123,7 @@ def doQuitOrganization(args, parsed_globals):
|
|
123
123
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
124
124
|
|
125
125
|
|
126
|
-
def
|
126
|
+
def doDisablePolicyType(args, parsed_globals):
|
127
127
|
g_param = parse_global_arg(parsed_globals)
|
128
128
|
|
129
129
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -152,11 +152,63 @@ def doListOrganizationIdentity(args, parsed_globals):
|
|
152
152
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
153
153
|
client._sdkVersion += ("_CLI_" + __version__)
|
154
154
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
155
|
-
model = models.
|
155
|
+
model = models.DisablePolicyTypeRequest()
|
156
156
|
model.from_json_string(json.dumps(args))
|
157
157
|
start_time = time.time()
|
158
158
|
while True:
|
159
|
-
rsp = client.
|
159
|
+
rsp = client.DisablePolicyType(model)
|
160
|
+
result = rsp.to_json_string()
|
161
|
+
try:
|
162
|
+
json_obj = json.loads(result)
|
163
|
+
except TypeError as e:
|
164
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
165
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
166
|
+
break
|
167
|
+
cur_time = time.time()
|
168
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
169
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
170
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
171
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
172
|
+
else:
|
173
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
174
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
175
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
176
|
+
|
177
|
+
|
178
|
+
def doDescribeOrganizationMemberAuthAccounts(args, parsed_globals):
|
179
|
+
g_param = parse_global_arg(parsed_globals)
|
180
|
+
|
181
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
182
|
+
cred = credential.CVMRoleCredential()
|
183
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
184
|
+
cred = credential.STSAssumeRoleCredential(
|
185
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
186
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
187
|
+
)
|
188
|
+
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):
|
189
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
190
|
+
else:
|
191
|
+
cred = credential.Credential(
|
192
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
193
|
+
)
|
194
|
+
http_profile = HttpProfile(
|
195
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
196
|
+
reqMethod="POST",
|
197
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
198
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
199
|
+
)
|
200
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
201
|
+
if g_param[OptionsDefine.Language]:
|
202
|
+
profile.language = g_param[OptionsDefine.Language]
|
203
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
204
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
205
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
206
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
207
|
+
model = models.DescribeOrganizationMemberAuthAccountsRequest()
|
208
|
+
model.from_json_string(json.dumps(args))
|
209
|
+
start_time = time.time()
|
210
|
+
while True:
|
211
|
+
rsp = client.DescribeOrganizationMemberAuthAccounts(model)
|
160
212
|
result = rsp.to_json_string()
|
161
213
|
try:
|
162
214
|
json_obj = json.loads(result)
|
@@ -331,7 +383,7 @@ def doUpdateOrganizationMember(args, parsed_globals):
|
|
331
383
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
332
384
|
|
333
385
|
|
334
|
-
def
|
386
|
+
def doListPoliciesForTarget(args, parsed_globals):
|
335
387
|
g_param = parse_global_arg(parsed_globals)
|
336
388
|
|
337
389
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -360,11 +412,11 @@ def doDescribeOrganizationMemberAuthAccounts(args, parsed_globals):
|
|
360
412
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
361
413
|
client._sdkVersion += ("_CLI_" + __version__)
|
362
414
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
363
|
-
model = models.
|
415
|
+
model = models.ListPoliciesForTargetRequest()
|
364
416
|
model.from_json_string(json.dumps(args))
|
365
417
|
start_time = time.time()
|
366
418
|
while True:
|
367
|
-
rsp = client.
|
419
|
+
rsp = client.ListPoliciesForTarget(model)
|
368
420
|
result = rsp.to_json_string()
|
369
421
|
try:
|
370
422
|
json_obj = json.loads(result)
|
@@ -487,6 +539,58 @@ def doDeleteOrganizationMembersPolicy(args, parsed_globals):
|
|
487
539
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
488
540
|
|
489
541
|
|
542
|
+
def doListOrganizationIdentity(args, parsed_globals):
|
543
|
+
g_param = parse_global_arg(parsed_globals)
|
544
|
+
|
545
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
546
|
+
cred = credential.CVMRoleCredential()
|
547
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
548
|
+
cred = credential.STSAssumeRoleCredential(
|
549
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
550
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
551
|
+
)
|
552
|
+
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):
|
553
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
554
|
+
else:
|
555
|
+
cred = credential.Credential(
|
556
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
557
|
+
)
|
558
|
+
http_profile = HttpProfile(
|
559
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
560
|
+
reqMethod="POST",
|
561
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
562
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
563
|
+
)
|
564
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
565
|
+
if g_param[OptionsDefine.Language]:
|
566
|
+
profile.language = g_param[OptionsDefine.Language]
|
567
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
568
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
569
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
570
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
571
|
+
model = models.ListOrganizationIdentityRequest()
|
572
|
+
model.from_json_string(json.dumps(args))
|
573
|
+
start_time = time.time()
|
574
|
+
while True:
|
575
|
+
rsp = client.ListOrganizationIdentity(model)
|
576
|
+
result = rsp.to_json_string()
|
577
|
+
try:
|
578
|
+
json_obj = json.loads(result)
|
579
|
+
except TypeError as e:
|
580
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
581
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
582
|
+
break
|
583
|
+
cur_time = time.time()
|
584
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
585
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
586
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
587
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
588
|
+
else:
|
589
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
590
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
591
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
592
|
+
|
593
|
+
|
490
594
|
def doAddOrganizationNode(args, parsed_globals):
|
491
595
|
g_param = parse_global_arg(parsed_globals)
|
492
596
|
|
@@ -591,7 +695,527 @@ def doUpdateOrganizationMemberEmailBind(args, parsed_globals):
|
|
591
695
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
592
696
|
|
593
697
|
|
594
|
-
def doDescribeShareUnitMembers(args, parsed_globals):
|
698
|
+
def doDescribeShareUnitMembers(args, parsed_globals):
|
699
|
+
g_param = parse_global_arg(parsed_globals)
|
700
|
+
|
701
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
702
|
+
cred = credential.CVMRoleCredential()
|
703
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
704
|
+
cred = credential.STSAssumeRoleCredential(
|
705
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
706
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
707
|
+
)
|
708
|
+
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):
|
709
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
710
|
+
else:
|
711
|
+
cred = credential.Credential(
|
712
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
713
|
+
)
|
714
|
+
http_profile = HttpProfile(
|
715
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
716
|
+
reqMethod="POST",
|
717
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
718
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
719
|
+
)
|
720
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
721
|
+
if g_param[OptionsDefine.Language]:
|
722
|
+
profile.language = g_param[OptionsDefine.Language]
|
723
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
724
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
725
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
726
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
727
|
+
model = models.DescribeShareUnitMembersRequest()
|
728
|
+
model.from_json_string(json.dumps(args))
|
729
|
+
start_time = time.time()
|
730
|
+
while True:
|
731
|
+
rsp = client.DescribeShareUnitMembers(model)
|
732
|
+
result = rsp.to_json_string()
|
733
|
+
try:
|
734
|
+
json_obj = json.loads(result)
|
735
|
+
except TypeError as e:
|
736
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
737
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
738
|
+
break
|
739
|
+
cur_time = time.time()
|
740
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
741
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
742
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
743
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
744
|
+
else:
|
745
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
746
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
747
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
748
|
+
|
749
|
+
|
750
|
+
def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals):
|
751
|
+
g_param = parse_global_arg(parsed_globals)
|
752
|
+
|
753
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
754
|
+
cred = credential.CVMRoleCredential()
|
755
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
756
|
+
cred = credential.STSAssumeRoleCredential(
|
757
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
758
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
759
|
+
)
|
760
|
+
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):
|
761
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
762
|
+
else:
|
763
|
+
cred = credential.Credential(
|
764
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
765
|
+
)
|
766
|
+
http_profile = HttpProfile(
|
767
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
768
|
+
reqMethod="POST",
|
769
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
770
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
771
|
+
)
|
772
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
773
|
+
if g_param[OptionsDefine.Language]:
|
774
|
+
profile.language = g_param[OptionsDefine.Language]
|
775
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
776
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
777
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
778
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
779
|
+
model = models.DescribeOrganizationMemberAuthIdentitiesRequest()
|
780
|
+
model.from_json_string(json.dumps(args))
|
781
|
+
start_time = time.time()
|
782
|
+
while True:
|
783
|
+
rsp = client.DescribeOrganizationMemberAuthIdentities(model)
|
784
|
+
result = rsp.to_json_string()
|
785
|
+
try:
|
786
|
+
json_obj = json.loads(result)
|
787
|
+
except TypeError as e:
|
788
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
789
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
790
|
+
break
|
791
|
+
cur_time = time.time()
|
792
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
793
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
794
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
795
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
796
|
+
else:
|
797
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
798
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
799
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
800
|
+
|
801
|
+
|
802
|
+
def doDescribePolicy(args, parsed_globals):
|
803
|
+
g_param = parse_global_arg(parsed_globals)
|
804
|
+
|
805
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
806
|
+
cred = credential.CVMRoleCredential()
|
807
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
808
|
+
cred = credential.STSAssumeRoleCredential(
|
809
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
810
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
811
|
+
)
|
812
|
+
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):
|
813
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
814
|
+
else:
|
815
|
+
cred = credential.Credential(
|
816
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
817
|
+
)
|
818
|
+
http_profile = HttpProfile(
|
819
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
820
|
+
reqMethod="POST",
|
821
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
822
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
823
|
+
)
|
824
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
825
|
+
if g_param[OptionsDefine.Language]:
|
826
|
+
profile.language = g_param[OptionsDefine.Language]
|
827
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
828
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
829
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
830
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
831
|
+
model = models.DescribePolicyRequest()
|
832
|
+
model.from_json_string(json.dumps(args))
|
833
|
+
start_time = time.time()
|
834
|
+
while True:
|
835
|
+
rsp = client.DescribePolicy(model)
|
836
|
+
result = rsp.to_json_string()
|
837
|
+
try:
|
838
|
+
json_obj = json.loads(result)
|
839
|
+
except TypeError as e:
|
840
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
841
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
842
|
+
break
|
843
|
+
cur_time = time.time()
|
844
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
845
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
846
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
847
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
848
|
+
else:
|
849
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
850
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
851
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
852
|
+
|
853
|
+
|
854
|
+
def doUpdateOrganizationNode(args, parsed_globals):
|
855
|
+
g_param = parse_global_arg(parsed_globals)
|
856
|
+
|
857
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
858
|
+
cred = credential.CVMRoleCredential()
|
859
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
860
|
+
cred = credential.STSAssumeRoleCredential(
|
861
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
862
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
863
|
+
)
|
864
|
+
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):
|
865
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
866
|
+
else:
|
867
|
+
cred = credential.Credential(
|
868
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
869
|
+
)
|
870
|
+
http_profile = HttpProfile(
|
871
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
872
|
+
reqMethod="POST",
|
873
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
874
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
875
|
+
)
|
876
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
877
|
+
if g_param[OptionsDefine.Language]:
|
878
|
+
profile.language = g_param[OptionsDefine.Language]
|
879
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
880
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
881
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
882
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
883
|
+
model = models.UpdateOrganizationNodeRequest()
|
884
|
+
model.from_json_string(json.dumps(args))
|
885
|
+
start_time = time.time()
|
886
|
+
while True:
|
887
|
+
rsp = client.UpdateOrganizationNode(model)
|
888
|
+
result = rsp.to_json_string()
|
889
|
+
try:
|
890
|
+
json_obj = json.loads(result)
|
891
|
+
except TypeError as e:
|
892
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
893
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
894
|
+
break
|
895
|
+
cur_time = time.time()
|
896
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
897
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
898
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
899
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
900
|
+
else:
|
901
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
902
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
903
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
904
|
+
|
905
|
+
|
906
|
+
def doCreateOrganizationMemberAuthIdentity(args, parsed_globals):
|
907
|
+
g_param = parse_global_arg(parsed_globals)
|
908
|
+
|
909
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
910
|
+
cred = credential.CVMRoleCredential()
|
911
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
912
|
+
cred = credential.STSAssumeRoleCredential(
|
913
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
914
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
915
|
+
)
|
916
|
+
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):
|
917
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
918
|
+
else:
|
919
|
+
cred = credential.Credential(
|
920
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
921
|
+
)
|
922
|
+
http_profile = HttpProfile(
|
923
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
924
|
+
reqMethod="POST",
|
925
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
926
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
927
|
+
)
|
928
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
929
|
+
if g_param[OptionsDefine.Language]:
|
930
|
+
profile.language = g_param[OptionsDefine.Language]
|
931
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
932
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
933
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
934
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
935
|
+
model = models.CreateOrganizationMemberAuthIdentityRequest()
|
936
|
+
model.from_json_string(json.dumps(args))
|
937
|
+
start_time = time.time()
|
938
|
+
while True:
|
939
|
+
rsp = client.CreateOrganizationMemberAuthIdentity(model)
|
940
|
+
result = rsp.to_json_string()
|
941
|
+
try:
|
942
|
+
json_obj = json.loads(result)
|
943
|
+
except TypeError as e:
|
944
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
945
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
946
|
+
break
|
947
|
+
cur_time = time.time()
|
948
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
949
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
950
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
951
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
952
|
+
else:
|
953
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
954
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
955
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
956
|
+
|
957
|
+
|
958
|
+
def doDeleteOrganizationMembers(args, parsed_globals):
|
959
|
+
g_param = parse_global_arg(parsed_globals)
|
960
|
+
|
961
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
962
|
+
cred = credential.CVMRoleCredential()
|
963
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
964
|
+
cred = credential.STSAssumeRoleCredential(
|
965
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
966
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
967
|
+
)
|
968
|
+
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):
|
969
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
970
|
+
else:
|
971
|
+
cred = credential.Credential(
|
972
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
973
|
+
)
|
974
|
+
http_profile = HttpProfile(
|
975
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
976
|
+
reqMethod="POST",
|
977
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
978
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
979
|
+
)
|
980
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
981
|
+
if g_param[OptionsDefine.Language]:
|
982
|
+
profile.language = g_param[OptionsDefine.Language]
|
983
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
984
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
985
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
986
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
987
|
+
model = models.DeleteOrganizationMembersRequest()
|
988
|
+
model.from_json_string(json.dumps(args))
|
989
|
+
start_time = time.time()
|
990
|
+
while True:
|
991
|
+
rsp = client.DeleteOrganizationMembers(model)
|
992
|
+
result = rsp.to_json_string()
|
993
|
+
try:
|
994
|
+
json_obj = json.loads(result)
|
995
|
+
except TypeError as e:
|
996
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
997
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
998
|
+
break
|
999
|
+
cur_time = time.time()
|
1000
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1001
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1002
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1003
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1004
|
+
else:
|
1005
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1006
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1007
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1008
|
+
|
1009
|
+
|
1010
|
+
def doUpdateOrganizationIdentity(args, parsed_globals):
|
1011
|
+
g_param = parse_global_arg(parsed_globals)
|
1012
|
+
|
1013
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1014
|
+
cred = credential.CVMRoleCredential()
|
1015
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1016
|
+
cred = credential.STSAssumeRoleCredential(
|
1017
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1018
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1019
|
+
)
|
1020
|
+
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):
|
1021
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1022
|
+
else:
|
1023
|
+
cred = credential.Credential(
|
1024
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1025
|
+
)
|
1026
|
+
http_profile = HttpProfile(
|
1027
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1028
|
+
reqMethod="POST",
|
1029
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1030
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1031
|
+
)
|
1032
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1033
|
+
if g_param[OptionsDefine.Language]:
|
1034
|
+
profile.language = g_param[OptionsDefine.Language]
|
1035
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1036
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1037
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1038
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1039
|
+
model = models.UpdateOrganizationIdentityRequest()
|
1040
|
+
model.from_json_string(json.dumps(args))
|
1041
|
+
start_time = time.time()
|
1042
|
+
while True:
|
1043
|
+
rsp = client.UpdateOrganizationIdentity(model)
|
1044
|
+
result = rsp.to_json_string()
|
1045
|
+
try:
|
1046
|
+
json_obj = json.loads(result)
|
1047
|
+
except TypeError as e:
|
1048
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1049
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1050
|
+
break
|
1051
|
+
cur_time = time.time()
|
1052
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1053
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1054
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1055
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1056
|
+
else:
|
1057
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1058
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1059
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1060
|
+
|
1061
|
+
|
1062
|
+
def doDescribeOrganizationFinancialByMonth(args, parsed_globals):
|
1063
|
+
g_param = parse_global_arg(parsed_globals)
|
1064
|
+
|
1065
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1066
|
+
cred = credential.CVMRoleCredential()
|
1067
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1068
|
+
cred = credential.STSAssumeRoleCredential(
|
1069
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1070
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1071
|
+
)
|
1072
|
+
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):
|
1073
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1074
|
+
else:
|
1075
|
+
cred = credential.Credential(
|
1076
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1077
|
+
)
|
1078
|
+
http_profile = HttpProfile(
|
1079
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1080
|
+
reqMethod="POST",
|
1081
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1082
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1083
|
+
)
|
1084
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1085
|
+
if g_param[OptionsDefine.Language]:
|
1086
|
+
profile.language = g_param[OptionsDefine.Language]
|
1087
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1088
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1089
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1090
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1091
|
+
model = models.DescribeOrganizationFinancialByMonthRequest()
|
1092
|
+
model.from_json_string(json.dumps(args))
|
1093
|
+
start_time = time.time()
|
1094
|
+
while True:
|
1095
|
+
rsp = client.DescribeOrganizationFinancialByMonth(model)
|
1096
|
+
result = rsp.to_json_string()
|
1097
|
+
try:
|
1098
|
+
json_obj = json.loads(result)
|
1099
|
+
except TypeError as e:
|
1100
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1101
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1102
|
+
break
|
1103
|
+
cur_time = time.time()
|
1104
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1105
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1106
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1107
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1108
|
+
else:
|
1109
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1110
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1111
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1112
|
+
|
1113
|
+
|
1114
|
+
def doDeleteAccount(args, parsed_globals):
|
1115
|
+
g_param = parse_global_arg(parsed_globals)
|
1116
|
+
|
1117
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1118
|
+
cred = credential.CVMRoleCredential()
|
1119
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1120
|
+
cred = credential.STSAssumeRoleCredential(
|
1121
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1122
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1123
|
+
)
|
1124
|
+
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):
|
1125
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1126
|
+
else:
|
1127
|
+
cred = credential.Credential(
|
1128
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1129
|
+
)
|
1130
|
+
http_profile = HttpProfile(
|
1131
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1132
|
+
reqMethod="POST",
|
1133
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1134
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1135
|
+
)
|
1136
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1137
|
+
if g_param[OptionsDefine.Language]:
|
1138
|
+
profile.language = g_param[OptionsDefine.Language]
|
1139
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1140
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1141
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1142
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1143
|
+
model = models.DeleteAccountRequest()
|
1144
|
+
model.from_json_string(json.dumps(args))
|
1145
|
+
start_time = time.time()
|
1146
|
+
while True:
|
1147
|
+
rsp = client.DeleteAccount(model)
|
1148
|
+
result = rsp.to_json_string()
|
1149
|
+
try:
|
1150
|
+
json_obj = json.loads(result)
|
1151
|
+
except TypeError as e:
|
1152
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1153
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1154
|
+
break
|
1155
|
+
cur_time = time.time()
|
1156
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1157
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1158
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1159
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1160
|
+
else:
|
1161
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1162
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1163
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1164
|
+
|
1165
|
+
|
1166
|
+
def doDeleteOrganizationNodes(args, parsed_globals):
|
1167
|
+
g_param = parse_global_arg(parsed_globals)
|
1168
|
+
|
1169
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1170
|
+
cred = credential.CVMRoleCredential()
|
1171
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1172
|
+
cred = credential.STSAssumeRoleCredential(
|
1173
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1174
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1175
|
+
)
|
1176
|
+
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):
|
1177
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1178
|
+
else:
|
1179
|
+
cred = credential.Credential(
|
1180
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1181
|
+
)
|
1182
|
+
http_profile = HttpProfile(
|
1183
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1184
|
+
reqMethod="POST",
|
1185
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1186
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1187
|
+
)
|
1188
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1189
|
+
if g_param[OptionsDefine.Language]:
|
1190
|
+
profile.language = g_param[OptionsDefine.Language]
|
1191
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1192
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1193
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1194
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1195
|
+
model = models.DeleteOrganizationNodesRequest()
|
1196
|
+
model.from_json_string(json.dumps(args))
|
1197
|
+
start_time = time.time()
|
1198
|
+
while True:
|
1199
|
+
rsp = client.DeleteOrganizationNodes(model)
|
1200
|
+
result = rsp.to_json_string()
|
1201
|
+
try:
|
1202
|
+
json_obj = json.loads(result)
|
1203
|
+
except TypeError as e:
|
1204
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1205
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1206
|
+
break
|
1207
|
+
cur_time = time.time()
|
1208
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1209
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1210
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1211
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1212
|
+
else:
|
1213
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1214
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1215
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1216
|
+
|
1217
|
+
|
1218
|
+
def doDeleteShareUnitResources(args, parsed_globals):
|
595
1219
|
g_param = parse_global_arg(parsed_globals)
|
596
1220
|
|
597
1221
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -620,11 +1244,11 @@ def doDescribeShareUnitMembers(args, parsed_globals):
|
|
620
1244
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
621
1245
|
client._sdkVersion += ("_CLI_" + __version__)
|
622
1246
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
623
|
-
model = models.
|
1247
|
+
model = models.DeleteShareUnitResourcesRequest()
|
624
1248
|
model.from_json_string(json.dumps(args))
|
625
1249
|
start_time = time.time()
|
626
1250
|
while True:
|
627
|
-
rsp = client.
|
1251
|
+
rsp = client.DeleteShareUnitResources(model)
|
628
1252
|
result = rsp.to_json_string()
|
629
1253
|
try:
|
630
1254
|
json_obj = json.loads(result)
|
@@ -643,7 +1267,7 @@ def doDescribeShareUnitMembers(args, parsed_globals):
|
|
643
1267
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
644
1268
|
|
645
1269
|
|
646
|
-
def
|
1270
|
+
def doDescribeOrganizationMemberPolicies(args, parsed_globals):
|
647
1271
|
g_param = parse_global_arg(parsed_globals)
|
648
1272
|
|
649
1273
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -672,11 +1296,11 @@ def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals):
|
|
672
1296
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
673
1297
|
client._sdkVersion += ("_CLI_" + __version__)
|
674
1298
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
675
|
-
model = models.
|
1299
|
+
model = models.DescribeOrganizationMemberPoliciesRequest()
|
676
1300
|
model.from_json_string(json.dumps(args))
|
677
1301
|
start_time = time.time()
|
678
1302
|
while True:
|
679
|
-
rsp = client.
|
1303
|
+
rsp = client.DescribeOrganizationMemberPolicies(model)
|
680
1304
|
result = rsp.to_json_string()
|
681
1305
|
try:
|
682
1306
|
json_obj = json.loads(result)
|
@@ -695,7 +1319,7 @@ def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals):
|
|
695
1319
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
696
1320
|
|
697
1321
|
|
698
|
-
def
|
1322
|
+
def doCancelOrganizationInvitation(args, parsed_globals):
|
699
1323
|
g_param = parse_global_arg(parsed_globals)
|
700
1324
|
|
701
1325
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -724,11 +1348,11 @@ def doUpdateOrganizationNode(args, parsed_globals):
|
|
724
1348
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
725
1349
|
client._sdkVersion += ("_CLI_" + __version__)
|
726
1350
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
727
|
-
model = models.
|
1351
|
+
model = models.CancelOrganizationInvitationRequest()
|
728
1352
|
model.from_json_string(json.dumps(args))
|
729
1353
|
start_time = time.time()
|
730
1354
|
while True:
|
731
|
-
rsp = client.
|
1355
|
+
rsp = client.CancelOrganizationInvitation(model)
|
732
1356
|
result = rsp.to_json_string()
|
733
1357
|
try:
|
734
1358
|
json_obj = json.loads(result)
|
@@ -747,7 +1371,7 @@ def doUpdateOrganizationNode(args, parsed_globals):
|
|
747
1371
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
748
1372
|
|
749
1373
|
|
750
|
-
def
|
1374
|
+
def doDeleteOrganization(args, parsed_globals):
|
751
1375
|
g_param = parse_global_arg(parsed_globals)
|
752
1376
|
|
753
1377
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -776,11 +1400,11 @@ def doDeleteShareUnit(args, parsed_globals):
|
|
776
1400
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
777
1401
|
client._sdkVersion += ("_CLI_" + __version__)
|
778
1402
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
779
|
-
model = models.
|
1403
|
+
model = models.DeleteOrganizationRequest()
|
780
1404
|
model.from_json_string(json.dumps(args))
|
781
1405
|
start_time = time.time()
|
782
1406
|
while True:
|
783
|
-
rsp = client.
|
1407
|
+
rsp = client.DeleteOrganization(model)
|
784
1408
|
result = rsp.to_json_string()
|
785
1409
|
try:
|
786
1410
|
json_obj = json.loads(result)
|
@@ -799,7 +1423,7 @@ def doDeleteShareUnit(args, parsed_globals):
|
|
799
1423
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
800
1424
|
|
801
1425
|
|
802
|
-
def
|
1426
|
+
def doCancelOrganizationMemberAuthAccount(args, parsed_globals):
|
803
1427
|
g_param = parse_global_arg(parsed_globals)
|
804
1428
|
|
805
1429
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -828,11 +1452,11 @@ def doDeleteOrganizationMembers(args, parsed_globals):
|
|
828
1452
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
829
1453
|
client._sdkVersion += ("_CLI_" + __version__)
|
830
1454
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
831
|
-
model = models.
|
1455
|
+
model = models.CancelOrganizationMemberAuthAccountRequest()
|
832
1456
|
model.from_json_string(json.dumps(args))
|
833
1457
|
start_time = time.time()
|
834
1458
|
while True:
|
835
|
-
rsp = client.
|
1459
|
+
rsp = client.CancelOrganizationMemberAuthAccount(model)
|
836
1460
|
result = rsp.to_json_string()
|
837
1461
|
try:
|
838
1462
|
json_obj = json.loads(result)
|
@@ -851,7 +1475,7 @@ def doDeleteOrganizationMembers(args, parsed_globals):
|
|
851
1475
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
852
1476
|
|
853
1477
|
|
854
|
-
def
|
1478
|
+
def doSendOrganizationInvitation(args, parsed_globals):
|
855
1479
|
g_param = parse_global_arg(parsed_globals)
|
856
1480
|
|
857
1481
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -880,11 +1504,11 @@ def doUpdateOrganizationIdentity(args, parsed_globals):
|
|
880
1504
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
881
1505
|
client._sdkVersion += ("_CLI_" + __version__)
|
882
1506
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
883
|
-
model = models.
|
1507
|
+
model = models.SendOrganizationInvitationRequest()
|
884
1508
|
model.from_json_string(json.dumps(args))
|
885
1509
|
start_time = time.time()
|
886
1510
|
while True:
|
887
|
-
rsp = client.
|
1511
|
+
rsp = client.SendOrganizationInvitation(model)
|
888
1512
|
result = rsp.to_json_string()
|
889
1513
|
try:
|
890
1514
|
json_obj = json.loads(result)
|
@@ -903,7 +1527,7 @@ def doUpdateOrganizationIdentity(args, parsed_globals):
|
|
903
1527
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
904
1528
|
|
905
1529
|
|
906
|
-
def
|
1530
|
+
def doDescribeOrganizationFinancialByMember(args, parsed_globals):
|
907
1531
|
g_param = parse_global_arg(parsed_globals)
|
908
1532
|
|
909
1533
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -932,11 +1556,11 @@ def doDescribeOrganizationFinancialByMonth(args, parsed_globals):
|
|
932
1556
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
933
1557
|
client._sdkVersion += ("_CLI_" + __version__)
|
934
1558
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
935
|
-
model = models.
|
1559
|
+
model = models.DescribeOrganizationFinancialByMemberRequest()
|
936
1560
|
model.from_json_string(json.dumps(args))
|
937
1561
|
start_time = time.time()
|
938
1562
|
while True:
|
939
|
-
rsp = client.
|
1563
|
+
rsp = client.DescribeOrganizationFinancialByMember(model)
|
940
1564
|
result = rsp.to_json_string()
|
941
1565
|
try:
|
942
1566
|
json_obj = json.loads(result)
|
@@ -955,7 +1579,7 @@ def doDescribeOrganizationFinancialByMonth(args, parsed_globals):
|
|
955
1579
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
956
1580
|
|
957
1581
|
|
958
|
-
def
|
1582
|
+
def doGetOrganizationMember(args, parsed_globals):
|
959
1583
|
g_param = parse_global_arg(parsed_globals)
|
960
1584
|
|
961
1585
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -984,11 +1608,11 @@ def doDeleteAccount(args, parsed_globals):
|
|
984
1608
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
985
1609
|
client._sdkVersion += ("_CLI_" + __version__)
|
986
1610
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
987
|
-
model = models.
|
1611
|
+
model = models.GetOrganizationMemberRequest()
|
988
1612
|
model.from_json_string(json.dumps(args))
|
989
1613
|
start_time = time.time()
|
990
1614
|
while True:
|
991
|
-
rsp = client.
|
1615
|
+
rsp = client.GetOrganizationMember(model)
|
992
1616
|
result = rsp.to_json_string()
|
993
1617
|
try:
|
994
1618
|
json_obj = json.loads(result)
|
@@ -1007,7 +1631,7 @@ def doDeleteAccount(args, parsed_globals):
|
|
1007
1631
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1008
1632
|
|
1009
1633
|
|
1010
|
-
def
|
1634
|
+
def doAddShareUnitResources(args, parsed_globals):
|
1011
1635
|
g_param = parse_global_arg(parsed_globals)
|
1012
1636
|
|
1013
1637
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1036,11 +1660,11 @@ def doDeleteOrganizationNodes(args, parsed_globals):
|
|
1036
1660
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1037
1661
|
client._sdkVersion += ("_CLI_" + __version__)
|
1038
1662
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1039
|
-
model = models.
|
1663
|
+
model = models.AddShareUnitResourcesRequest()
|
1040
1664
|
model.from_json_string(json.dumps(args))
|
1041
1665
|
start_time = time.time()
|
1042
1666
|
while True:
|
1043
|
-
rsp = client.
|
1667
|
+
rsp = client.AddShareUnitResources(model)
|
1044
1668
|
result = rsp.to_json_string()
|
1045
1669
|
try:
|
1046
1670
|
json_obj = json.loads(result)
|
@@ -1059,7 +1683,7 @@ def doDeleteOrganizationNodes(args, parsed_globals):
|
|
1059
1683
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1060
1684
|
|
1061
1685
|
|
1062
|
-
def
|
1686
|
+
def doAttachPolicy(args, parsed_globals):
|
1063
1687
|
g_param = parse_global_arg(parsed_globals)
|
1064
1688
|
|
1065
1689
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1088,11 +1712,11 @@ def doDeleteShareUnitResources(args, parsed_globals):
|
|
1088
1712
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1089
1713
|
client._sdkVersion += ("_CLI_" + __version__)
|
1090
1714
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1091
|
-
model = models.
|
1715
|
+
model = models.AttachPolicyRequest()
|
1092
1716
|
model.from_json_string(json.dumps(args))
|
1093
1717
|
start_time = time.time()
|
1094
1718
|
while True:
|
1095
|
-
rsp = client.
|
1719
|
+
rsp = client.AttachPolicy(model)
|
1096
1720
|
result = rsp.to_json_string()
|
1097
1721
|
try:
|
1098
1722
|
json_obj = json.loads(result)
|
@@ -1111,7 +1735,7 @@ def doDeleteShareUnitResources(args, parsed_globals):
|
|
1111
1735
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1112
1736
|
|
1113
1737
|
|
1114
|
-
def
|
1738
|
+
def doCreateOrganizationMembersPolicy(args, parsed_globals):
|
1115
1739
|
g_param = parse_global_arg(parsed_globals)
|
1116
1740
|
|
1117
1741
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1140,11 +1764,11 @@ def doDescribeOrganizationMemberPolicies(args, parsed_globals):
|
|
1140
1764
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1141
1765
|
client._sdkVersion += ("_CLI_" + __version__)
|
1142
1766
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1143
|
-
model = models.
|
1767
|
+
model = models.CreateOrganizationMembersPolicyRequest()
|
1144
1768
|
model.from_json_string(json.dumps(args))
|
1145
1769
|
start_time = time.time()
|
1146
1770
|
while True:
|
1147
|
-
rsp = client.
|
1771
|
+
rsp = client.CreateOrganizationMembersPolicy(model)
|
1148
1772
|
result = rsp.to_json_string()
|
1149
1773
|
try:
|
1150
1774
|
json_obj = json.loads(result)
|
@@ -1163,7 +1787,7 @@ def doDescribeOrganizationMemberPolicies(args, parsed_globals):
|
|
1163
1787
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1164
1788
|
|
1165
1789
|
|
1166
|
-
def
|
1790
|
+
def doDescribeShareAreas(args, parsed_globals):
|
1167
1791
|
g_param = parse_global_arg(parsed_globals)
|
1168
1792
|
|
1169
1793
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1192,11 +1816,11 @@ def doCancelOrganizationInvitation(args, parsed_globals):
|
|
1192
1816
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1193
1817
|
client._sdkVersion += ("_CLI_" + __version__)
|
1194
1818
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1195
|
-
model = models.
|
1819
|
+
model = models.DescribeShareAreasRequest()
|
1196
1820
|
model.from_json_string(json.dumps(args))
|
1197
1821
|
start_time = time.time()
|
1198
1822
|
while True:
|
1199
|
-
rsp = client.
|
1823
|
+
rsp = client.DescribeShareAreas(model)
|
1200
1824
|
result = rsp.to_json_string()
|
1201
1825
|
try:
|
1202
1826
|
json_obj = json.loads(result)
|
@@ -1215,7 +1839,7 @@ def doCancelOrganizationInvitation(args, parsed_globals):
|
|
1215
1839
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1216
1840
|
|
1217
1841
|
|
1218
|
-
def
|
1842
|
+
def doDescribeOrganization(args, parsed_globals):
|
1219
1843
|
g_param = parse_global_arg(parsed_globals)
|
1220
1844
|
|
1221
1845
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1244,11 +1868,11 @@ def doDeleteOrganization(args, parsed_globals):
|
|
1244
1868
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1245
1869
|
client._sdkVersion += ("_CLI_" + __version__)
|
1246
1870
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1247
|
-
model = models.
|
1871
|
+
model = models.DescribeOrganizationRequest()
|
1248
1872
|
model.from_json_string(json.dumps(args))
|
1249
1873
|
start_time = time.time()
|
1250
1874
|
while True:
|
1251
|
-
rsp = client.
|
1875
|
+
rsp = client.DescribeOrganization(model)
|
1252
1876
|
result = rsp.to_json_string()
|
1253
1877
|
try:
|
1254
1878
|
json_obj = json.loads(result)
|
@@ -1267,7 +1891,7 @@ def doDeleteOrganization(args, parsed_globals):
|
|
1267
1891
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1268
1892
|
|
1269
1893
|
|
1270
|
-
def
|
1894
|
+
def doMoveOrganizationNodeMembers(args, parsed_globals):
|
1271
1895
|
g_param = parse_global_arg(parsed_globals)
|
1272
1896
|
|
1273
1897
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1296,11 +1920,11 @@ def doCancelOrganizationMemberAuthAccount(args, parsed_globals):
|
|
1296
1920
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1297
1921
|
client._sdkVersion += ("_CLI_" + __version__)
|
1298
1922
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1299
|
-
model = models.
|
1923
|
+
model = models.MoveOrganizationNodeMembersRequest()
|
1300
1924
|
model.from_json_string(json.dumps(args))
|
1301
1925
|
start_time = time.time()
|
1302
1926
|
while True:
|
1303
|
-
rsp = client.
|
1927
|
+
rsp = client.MoveOrganizationNodeMembers(model)
|
1304
1928
|
result = rsp.to_json_string()
|
1305
1929
|
try:
|
1306
1930
|
json_obj = json.loads(result)
|
@@ -1319,7 +1943,7 @@ def doCancelOrganizationMemberAuthAccount(args, parsed_globals):
|
|
1319
1943
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1320
1944
|
|
1321
1945
|
|
1322
|
-
def
|
1946
|
+
def doListOrganizationMembers(args, parsed_globals):
|
1323
1947
|
g_param = parse_global_arg(parsed_globals)
|
1324
1948
|
|
1325
1949
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1348,11 +1972,11 @@ def doSendOrganizationInvitation(args, parsed_globals):
|
|
1348
1972
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1349
1973
|
client._sdkVersion += ("_CLI_" + __version__)
|
1350
1974
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1351
|
-
model = models.
|
1975
|
+
model = models.ListOrganizationMembersRequest()
|
1352
1976
|
model.from_json_string(json.dumps(args))
|
1353
1977
|
start_time = time.time()
|
1354
1978
|
while True:
|
1355
|
-
rsp = client.
|
1979
|
+
rsp = client.ListOrganizationMembers(model)
|
1356
1980
|
result = rsp.to_json_string()
|
1357
1981
|
try:
|
1358
1982
|
json_obj = json.loads(result)
|
@@ -1371,7 +1995,7 @@ def doSendOrganizationInvitation(args, parsed_globals):
|
|
1371
1995
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1372
1996
|
|
1373
1997
|
|
1374
|
-
def
|
1998
|
+
def doDeleteOrganizationMemberFromNode(args, parsed_globals):
|
1375
1999
|
g_param = parse_global_arg(parsed_globals)
|
1376
2000
|
|
1377
2001
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1400,11 +2024,11 @@ def doDescribeOrganizationFinancialByMember(args, parsed_globals):
|
|
1400
2024
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1401
2025
|
client._sdkVersion += ("_CLI_" + __version__)
|
1402
2026
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1403
|
-
model = models.
|
2027
|
+
model = models.DeleteOrganizationMemberFromNodeRequest()
|
1404
2028
|
model.from_json_string(json.dumps(args))
|
1405
2029
|
start_time = time.time()
|
1406
2030
|
while True:
|
1407
|
-
rsp = client.
|
2031
|
+
rsp = client.DeleteOrganizationMemberFromNode(model)
|
1408
2032
|
result = rsp.to_json_string()
|
1409
2033
|
try:
|
1410
2034
|
json_obj = json.loads(result)
|
@@ -1475,7 +2099,7 @@ def doCreateOrganization(args, parsed_globals):
|
|
1475
2099
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1476
2100
|
|
1477
2101
|
|
1478
|
-
def
|
2102
|
+
def doDetachPolicy(args, parsed_globals):
|
1479
2103
|
g_param = parse_global_arg(parsed_globals)
|
1480
2104
|
|
1481
2105
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1504,11 +2128,11 @@ def doGetOrganizationMember(args, parsed_globals):
|
|
1504
2128
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1505
2129
|
client._sdkVersion += ("_CLI_" + __version__)
|
1506
2130
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1507
|
-
model = models.
|
2131
|
+
model = models.DetachPolicyRequest()
|
1508
2132
|
model.from_json_string(json.dumps(args))
|
1509
2133
|
start_time = time.time()
|
1510
2134
|
while True:
|
1511
|
-
rsp = client.
|
2135
|
+
rsp = client.DetachPolicy(model)
|
1512
2136
|
result = rsp.to_json_string()
|
1513
2137
|
try:
|
1514
2138
|
json_obj = json.loads(result)
|
@@ -1527,7 +2151,7 @@ def doGetOrganizationMember(args, parsed_globals):
|
|
1527
2151
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1528
2152
|
|
1529
2153
|
|
1530
|
-
def
|
2154
|
+
def doCreateOrganizationIdentity(args, parsed_globals):
|
1531
2155
|
g_param = parse_global_arg(parsed_globals)
|
1532
2156
|
|
1533
2157
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1556,11 +2180,11 @@ def doAddShareUnitResources(args, parsed_globals):
|
|
1556
2180
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1557
2181
|
client._sdkVersion += ("_CLI_" + __version__)
|
1558
2182
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1559
|
-
model = models.
|
2183
|
+
model = models.CreateOrganizationIdentityRequest()
|
1560
2184
|
model.from_json_string(json.dumps(args))
|
1561
2185
|
start_time = time.time()
|
1562
2186
|
while True:
|
1563
|
-
rsp = client.
|
2187
|
+
rsp = client.CreateOrganizationIdentity(model)
|
1564
2188
|
result = rsp.to_json_string()
|
1565
2189
|
try:
|
1566
2190
|
json_obj = json.loads(result)
|
@@ -1579,7 +2203,7 @@ def doAddShareUnitResources(args, parsed_globals):
|
|
1579
2203
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1580
2204
|
|
1581
2205
|
|
1582
|
-
def
|
2206
|
+
def doDeleteOrganizationIdentity(args, parsed_globals):
|
1583
2207
|
g_param = parse_global_arg(parsed_globals)
|
1584
2208
|
|
1585
2209
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1608,11 +2232,11 @@ def doCreateOrganizationMembersPolicy(args, parsed_globals):
|
|
1608
2232
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1609
2233
|
client._sdkVersion += ("_CLI_" + __version__)
|
1610
2234
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1611
|
-
model = models.
|
2235
|
+
model = models.DeleteOrganizationIdentityRequest()
|
1612
2236
|
model.from_json_string(json.dumps(args))
|
1613
2237
|
start_time = time.time()
|
1614
2238
|
while True:
|
1615
|
-
rsp = client.
|
2239
|
+
rsp = client.DeleteOrganizationIdentity(model)
|
1616
2240
|
result = rsp.to_json_string()
|
1617
2241
|
try:
|
1618
2242
|
json_obj = json.loads(result)
|
@@ -1631,7 +2255,7 @@ def doCreateOrganizationMembersPolicy(args, parsed_globals):
|
|
1631
2255
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1632
2256
|
|
1633
2257
|
|
1634
|
-
def
|
2258
|
+
def doAcceptOrganizationInvitation(args, parsed_globals):
|
1635
2259
|
g_param = parse_global_arg(parsed_globals)
|
1636
2260
|
|
1637
2261
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1660,11 +2284,11 @@ def doDescribeShareAreas(args, parsed_globals):
|
|
1660
2284
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1661
2285
|
client._sdkVersion += ("_CLI_" + __version__)
|
1662
2286
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1663
|
-
model = models.
|
2287
|
+
model = models.AcceptOrganizationInvitationRequest()
|
1664
2288
|
model.from_json_string(json.dumps(args))
|
1665
2289
|
start_time = time.time()
|
1666
2290
|
while True:
|
1667
|
-
rsp = client.
|
2291
|
+
rsp = client.AcceptOrganizationInvitation(model)
|
1668
2292
|
result = rsp.to_json_string()
|
1669
2293
|
try:
|
1670
2294
|
json_obj = json.loads(result)
|
@@ -1683,7 +2307,7 @@ def doDescribeShareAreas(args, parsed_globals):
|
|
1683
2307
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1684
2308
|
|
1685
2309
|
|
1686
|
-
def
|
2310
|
+
def doDenyOrganizationInvitation(args, parsed_globals):
|
1687
2311
|
g_param = parse_global_arg(parsed_globals)
|
1688
2312
|
|
1689
2313
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1712,11 +2336,11 @@ def doDescribeOrganization(args, parsed_globals):
|
|
1712
2336
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1713
2337
|
client._sdkVersion += ("_CLI_" + __version__)
|
1714
2338
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1715
|
-
model = models.
|
2339
|
+
model = models.DenyOrganizationInvitationRequest()
|
1716
2340
|
model.from_json_string(json.dumps(args))
|
1717
2341
|
start_time = time.time()
|
1718
2342
|
while True:
|
1719
|
-
rsp = client.
|
2343
|
+
rsp = client.DenyOrganizationInvitation(model)
|
1720
2344
|
result = rsp.to_json_string()
|
1721
2345
|
try:
|
1722
2346
|
json_obj = json.loads(result)
|
@@ -1735,7 +2359,7 @@ def doDescribeOrganization(args, parsed_globals):
|
|
1735
2359
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1736
2360
|
|
1737
2361
|
|
1738
|
-
def
|
2362
|
+
def doAddOrganizationMemberEmail(args, parsed_globals):
|
1739
2363
|
g_param = parse_global_arg(parsed_globals)
|
1740
2364
|
|
1741
2365
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1764,11 +2388,11 @@ def doMoveOrganizationNodeMembers(args, parsed_globals):
|
|
1764
2388
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1765
2389
|
client._sdkVersion += ("_CLI_" + __version__)
|
1766
2390
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1767
|
-
model = models.
|
2391
|
+
model = models.AddOrganizationMemberEmailRequest()
|
1768
2392
|
model.from_json_string(json.dumps(args))
|
1769
2393
|
start_time = time.time()
|
1770
2394
|
while True:
|
1771
|
-
rsp = client.
|
2395
|
+
rsp = client.AddOrganizationMemberEmail(model)
|
1772
2396
|
result = rsp.to_json_string()
|
1773
2397
|
try:
|
1774
2398
|
json_obj = json.loads(result)
|
@@ -1787,7 +2411,7 @@ def doMoveOrganizationNodeMembers(args, parsed_globals):
|
|
1787
2411
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1788
2412
|
|
1789
2413
|
|
1790
|
-
def
|
2414
|
+
def doDeleteShareUnitMembers(args, parsed_globals):
|
1791
2415
|
g_param = parse_global_arg(parsed_globals)
|
1792
2416
|
|
1793
2417
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1816,11 +2440,11 @@ def doListOrganizationMembers(args, parsed_globals):
|
|
1816
2440
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1817
2441
|
client._sdkVersion += ("_CLI_" + __version__)
|
1818
2442
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1819
|
-
model = models.
|
2443
|
+
model = models.DeleteShareUnitMembersRequest()
|
1820
2444
|
model.from_json_string(json.dumps(args))
|
1821
2445
|
start_time = time.time()
|
1822
2446
|
while True:
|
1823
|
-
rsp = client.
|
2447
|
+
rsp = client.DeleteShareUnitMembers(model)
|
1824
2448
|
result = rsp.to_json_string()
|
1825
2449
|
try:
|
1826
2450
|
json_obj = json.loads(result)
|
@@ -1839,7 +2463,7 @@ def doListOrganizationMembers(args, parsed_globals):
|
|
1839
2463
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1840
2464
|
|
1841
2465
|
|
1842
|
-
def
|
2466
|
+
def doDescribeOrganizationMemberEmailBind(args, parsed_globals):
|
1843
2467
|
g_param = parse_global_arg(parsed_globals)
|
1844
2468
|
|
1845
2469
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1868,11 +2492,11 @@ def doDeleteOrganizationMemberFromNode(args, parsed_globals):
|
|
1868
2492
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1869
2493
|
client._sdkVersion += ("_CLI_" + __version__)
|
1870
2494
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1871
|
-
model = models.
|
2495
|
+
model = models.DescribeOrganizationMemberEmailBindRequest()
|
1872
2496
|
model.from_json_string(json.dumps(args))
|
1873
2497
|
start_time = time.time()
|
1874
2498
|
while True:
|
1875
|
-
rsp = client.
|
2499
|
+
rsp = client.DescribeOrganizationMemberEmailBind(model)
|
1876
2500
|
result = rsp.to_json_string()
|
1877
2501
|
try:
|
1878
2502
|
json_obj = json.loads(result)
|
@@ -1891,7 +2515,7 @@ def doDeleteOrganizationMemberFromNode(args, parsed_globals):
|
|
1891
2515
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1892
2516
|
|
1893
2517
|
|
1894
|
-
def
|
2518
|
+
def doEnablePolicyType(args, parsed_globals):
|
1895
2519
|
g_param = parse_global_arg(parsed_globals)
|
1896
2520
|
|
1897
2521
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1920,11 +2544,11 @@ def doCreateOrganizationMemberAuthIdentity(args, parsed_globals):
|
|
1920
2544
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1921
2545
|
client._sdkVersion += ("_CLI_" + __version__)
|
1922
2546
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1923
|
-
model = models.
|
2547
|
+
model = models.EnablePolicyTypeRequest()
|
1924
2548
|
model.from_json_string(json.dumps(args))
|
1925
2549
|
start_time = time.time()
|
1926
2550
|
while True:
|
1927
|
-
rsp = client.
|
2551
|
+
rsp = client.EnablePolicyType(model)
|
1928
2552
|
result = rsp.to_json_string()
|
1929
2553
|
try:
|
1930
2554
|
json_obj = json.loads(result)
|
@@ -1943,7 +2567,7 @@ def doCreateOrganizationMemberAuthIdentity(args, parsed_globals):
|
|
1943
2567
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1944
2568
|
|
1945
2569
|
|
1946
|
-
def
|
2570
|
+
def doListOrganizationInvitations(args, parsed_globals):
|
1947
2571
|
g_param = parse_global_arg(parsed_globals)
|
1948
2572
|
|
1949
2573
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1972,11 +2596,11 @@ def doCreateOrganizationIdentity(args, parsed_globals):
|
|
1972
2596
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
1973
2597
|
client._sdkVersion += ("_CLI_" + __version__)
|
1974
2598
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1975
|
-
model = models.
|
2599
|
+
model = models.ListOrganizationInvitationsRequest()
|
1976
2600
|
model.from_json_string(json.dumps(args))
|
1977
2601
|
start_time = time.time()
|
1978
2602
|
while True:
|
1979
|
-
rsp = client.
|
2603
|
+
rsp = client.ListOrganizationInvitations(model)
|
1980
2604
|
result = rsp.to_json_string()
|
1981
2605
|
try:
|
1982
2606
|
json_obj = json.loads(result)
|
@@ -1995,7 +2619,7 @@ def doCreateOrganizationIdentity(args, parsed_globals):
|
|
1995
2619
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1996
2620
|
|
1997
2621
|
|
1998
|
-
def
|
2622
|
+
def doCreateOrganizationMember(args, parsed_globals):
|
1999
2623
|
g_param = parse_global_arg(parsed_globals)
|
2000
2624
|
|
2001
2625
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2024,11 +2648,11 @@ def doDeleteOrganizationIdentity(args, parsed_globals):
|
|
2024
2648
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2025
2649
|
client._sdkVersion += ("_CLI_" + __version__)
|
2026
2650
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2027
|
-
model = models.
|
2651
|
+
model = models.CreateOrganizationMemberRequest()
|
2028
2652
|
model.from_json_string(json.dumps(args))
|
2029
2653
|
start_time = time.time()
|
2030
2654
|
while True:
|
2031
|
-
rsp = client.
|
2655
|
+
rsp = client.CreateOrganizationMember(model)
|
2032
2656
|
result = rsp.to_json_string()
|
2033
2657
|
try:
|
2034
2658
|
json_obj = json.loads(result)
|
@@ -2047,7 +2671,7 @@ def doDeleteOrganizationIdentity(args, parsed_globals):
|
|
2047
2671
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2048
2672
|
|
2049
2673
|
|
2050
|
-
def
|
2674
|
+
def doBindOrganizationMemberAuthAccount(args, parsed_globals):
|
2051
2675
|
g_param = parse_global_arg(parsed_globals)
|
2052
2676
|
|
2053
2677
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2076,11 +2700,11 @@ def doAcceptOrganizationInvitation(args, parsed_globals):
|
|
2076
2700
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2077
2701
|
client._sdkVersion += ("_CLI_" + __version__)
|
2078
2702
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2079
|
-
model = models.
|
2703
|
+
model = models.BindOrganizationMemberAuthAccountRequest()
|
2080
2704
|
model.from_json_string(json.dumps(args))
|
2081
2705
|
start_time = time.time()
|
2082
2706
|
while True:
|
2083
|
-
rsp = client.
|
2707
|
+
rsp = client.BindOrganizationMemberAuthAccount(model)
|
2084
2708
|
result = rsp.to_json_string()
|
2085
2709
|
try:
|
2086
2710
|
json_obj = json.loads(result)
|
@@ -2099,7 +2723,7 @@ def doAcceptOrganizationInvitation(args, parsed_globals):
|
|
2099
2723
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2100
2724
|
|
2101
2725
|
|
2102
|
-
def
|
2726
|
+
def doMoveOrganizationMembersToNode(args, parsed_globals):
|
2103
2727
|
g_param = parse_global_arg(parsed_globals)
|
2104
2728
|
|
2105
2729
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2128,11 +2752,11 @@ def doDenyOrganizationInvitation(args, parsed_globals):
|
|
2128
2752
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2129
2753
|
client._sdkVersion += ("_CLI_" + __version__)
|
2130
2754
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2131
|
-
model = models.
|
2755
|
+
model = models.MoveOrganizationMembersToNodeRequest()
|
2132
2756
|
model.from_json_string(json.dumps(args))
|
2133
2757
|
start_time = time.time()
|
2134
2758
|
while True:
|
2135
|
-
rsp = client.
|
2759
|
+
rsp = client.MoveOrganizationMembersToNode(model)
|
2136
2760
|
result = rsp.to_json_string()
|
2137
2761
|
try:
|
2138
2762
|
json_obj = json.loads(result)
|
@@ -2151,7 +2775,7 @@ def doDenyOrganizationInvitation(args, parsed_globals):
|
|
2151
2775
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2152
2776
|
|
2153
2777
|
|
2154
|
-
def
|
2778
|
+
def doAddShareUnit(args, parsed_globals):
|
2155
2779
|
g_param = parse_global_arg(parsed_globals)
|
2156
2780
|
|
2157
2781
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2180,11 +2804,11 @@ def doAddOrganizationMemberEmail(args, parsed_globals):
|
|
2180
2804
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2181
2805
|
client._sdkVersion += ("_CLI_" + __version__)
|
2182
2806
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2183
|
-
model = models.
|
2807
|
+
model = models.AddShareUnitRequest()
|
2184
2808
|
model.from_json_string(json.dumps(args))
|
2185
2809
|
start_time = time.time()
|
2186
2810
|
while True:
|
2187
|
-
rsp = client.
|
2811
|
+
rsp = client.AddShareUnit(model)
|
2188
2812
|
result = rsp.to_json_string()
|
2189
2813
|
try:
|
2190
2814
|
json_obj = json.loads(result)
|
@@ -2203,7 +2827,7 @@ def doAddOrganizationMemberEmail(args, parsed_globals):
|
|
2203
2827
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2204
2828
|
|
2205
2829
|
|
2206
|
-
def
|
2830
|
+
def doDeleteShareUnit(args, parsed_globals):
|
2207
2831
|
g_param = parse_global_arg(parsed_globals)
|
2208
2832
|
|
2209
2833
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2232,11 +2856,11 @@ def doDeleteShareUnitMembers(args, parsed_globals):
|
|
2232
2856
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2233
2857
|
client._sdkVersion += ("_CLI_" + __version__)
|
2234
2858
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2235
|
-
model = models.
|
2859
|
+
model = models.DeleteShareUnitRequest()
|
2236
2860
|
model.from_json_string(json.dumps(args))
|
2237
2861
|
start_time = time.time()
|
2238
2862
|
while True:
|
2239
|
-
rsp = client.
|
2863
|
+
rsp = client.DeleteShareUnit(model)
|
2240
2864
|
result = rsp.to_json_string()
|
2241
2865
|
try:
|
2242
2866
|
json_obj = json.loads(result)
|
@@ -2255,7 +2879,7 @@ def doDeleteShareUnitMembers(args, parsed_globals):
|
|
2255
2879
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2256
2880
|
|
2257
2881
|
|
2258
|
-
def
|
2882
|
+
def doListPolicies(args, parsed_globals):
|
2259
2883
|
g_param = parse_global_arg(parsed_globals)
|
2260
2884
|
|
2261
2885
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2284,11 +2908,11 @@ def doDescribeOrganizationMemberEmailBind(args, parsed_globals):
|
|
2284
2908
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2285
2909
|
client._sdkVersion += ("_CLI_" + __version__)
|
2286
2910
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2287
|
-
model = models.
|
2911
|
+
model = models.ListPoliciesRequest()
|
2288
2912
|
model.from_json_string(json.dumps(args))
|
2289
2913
|
start_time = time.time()
|
2290
2914
|
while True:
|
2291
|
-
rsp = client.
|
2915
|
+
rsp = client.ListPolicies(model)
|
2292
2916
|
result = rsp.to_json_string()
|
2293
2917
|
try:
|
2294
2918
|
json_obj = json.loads(result)
|
@@ -2307,7 +2931,7 @@ def doDescribeOrganizationMemberEmailBind(args, parsed_globals):
|
|
2307
2931
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2308
2932
|
|
2309
2933
|
|
2310
|
-
def
|
2934
|
+
def doDescribeOrganizationFinancialByProduct(args, parsed_globals):
|
2311
2935
|
g_param = parse_global_arg(parsed_globals)
|
2312
2936
|
|
2313
2937
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2336,11 +2960,11 @@ def doListOrganizationInvitations(args, parsed_globals):
|
|
2336
2960
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2337
2961
|
client._sdkVersion += ("_CLI_" + __version__)
|
2338
2962
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2339
|
-
model = models.
|
2963
|
+
model = models.DescribeOrganizationFinancialByProductRequest()
|
2340
2964
|
model.from_json_string(json.dumps(args))
|
2341
2965
|
start_time = time.time()
|
2342
2966
|
while True:
|
2343
|
-
rsp = client.
|
2967
|
+
rsp = client.DescribeOrganizationFinancialByProduct(model)
|
2344
2968
|
result = rsp.to_json_string()
|
2345
2969
|
try:
|
2346
2970
|
json_obj = json.loads(result)
|
@@ -2359,7 +2983,7 @@ def doListOrganizationInvitations(args, parsed_globals):
|
|
2359
2983
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2360
2984
|
|
2361
2985
|
|
2362
|
-
def
|
2986
|
+
def doDescribeOrganizationAuthNode(args, parsed_globals):
|
2363
2987
|
g_param = parse_global_arg(parsed_globals)
|
2364
2988
|
|
2365
2989
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2388,11 +3012,11 @@ def doCreateOrganizationMember(args, parsed_globals):
|
|
2388
3012
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2389
3013
|
client._sdkVersion += ("_CLI_" + __version__)
|
2390
3014
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2391
|
-
model = models.
|
3015
|
+
model = models.DescribeOrganizationAuthNodeRequest()
|
2392
3016
|
model.from_json_string(json.dumps(args))
|
2393
3017
|
start_time = time.time()
|
2394
3018
|
while True:
|
2395
|
-
rsp = client.
|
3019
|
+
rsp = client.DescribeOrganizationAuthNode(model)
|
2396
3020
|
result = rsp.to_json_string()
|
2397
3021
|
try:
|
2398
3022
|
json_obj = json.loads(result)
|
@@ -2411,7 +3035,7 @@ def doCreateOrganizationMember(args, parsed_globals):
|
|
2411
3035
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2412
3036
|
|
2413
3037
|
|
2414
|
-
def
|
3038
|
+
def doAddShareUnitMembers(args, parsed_globals):
|
2415
3039
|
g_param = parse_global_arg(parsed_globals)
|
2416
3040
|
|
2417
3041
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2440,11 +3064,11 @@ def doBindOrganizationMemberAuthAccount(args, parsed_globals):
|
|
2440
3064
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2441
3065
|
client._sdkVersion += ("_CLI_" + __version__)
|
2442
3066
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2443
|
-
model = models.
|
3067
|
+
model = models.AddShareUnitMembersRequest()
|
2444
3068
|
model.from_json_string(json.dumps(args))
|
2445
3069
|
start_time = time.time()
|
2446
3070
|
while True:
|
2447
|
-
rsp = client.
|
3071
|
+
rsp = client.AddShareUnitMembers(model)
|
2448
3072
|
result = rsp.to_json_string()
|
2449
3073
|
try:
|
2450
3074
|
json_obj = json.loads(result)
|
@@ -2463,7 +3087,7 @@ def doBindOrganizationMemberAuthAccount(args, parsed_globals):
|
|
2463
3087
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2464
3088
|
|
2465
3089
|
|
2466
|
-
def
|
3090
|
+
def doDescribePolicyConfig(args, parsed_globals):
|
2467
3091
|
g_param = parse_global_arg(parsed_globals)
|
2468
3092
|
|
2469
3093
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2492,11 +3116,11 @@ def doAddShareUnit(args, parsed_globals):
|
|
2492
3116
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2493
3117
|
client._sdkVersion += ("_CLI_" + __version__)
|
2494
3118
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2495
|
-
model = models.
|
3119
|
+
model = models.DescribePolicyConfigRequest()
|
2496
3120
|
model.from_json_string(json.dumps(args))
|
2497
3121
|
start_time = time.time()
|
2498
3122
|
while True:
|
2499
|
-
rsp = client.
|
3123
|
+
rsp = client.DescribePolicyConfig(model)
|
2500
3124
|
result = rsp.to_json_string()
|
2501
3125
|
try:
|
2502
3126
|
json_obj = json.loads(result)
|
@@ -2515,7 +3139,7 @@ def doAddShareUnit(args, parsed_globals):
|
|
2515
3139
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2516
3140
|
|
2517
3141
|
|
2518
|
-
def
|
3142
|
+
def doDescribeOrganizationNodes(args, parsed_globals):
|
2519
3143
|
g_param = parse_global_arg(parsed_globals)
|
2520
3144
|
|
2521
3145
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2544,11 +3168,11 @@ def doDescribeOrganizationFinancialByProduct(args, parsed_globals):
|
|
2544
3168
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2545
3169
|
client._sdkVersion += ("_CLI_" + __version__)
|
2546
3170
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2547
|
-
model = models.
|
3171
|
+
model = models.DescribeOrganizationNodesRequest()
|
2548
3172
|
model.from_json_string(json.dumps(args))
|
2549
3173
|
start_time = time.time()
|
2550
3174
|
while True:
|
2551
|
-
rsp = client.
|
3175
|
+
rsp = client.DescribeOrganizationNodes(model)
|
2552
3176
|
result = rsp.to_json_string()
|
2553
3177
|
try:
|
2554
3178
|
json_obj = json.loads(result)
|
@@ -2567,7 +3191,7 @@ def doDescribeOrganizationFinancialByProduct(args, parsed_globals):
|
|
2567
3191
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2568
3192
|
|
2569
3193
|
|
2570
|
-
def
|
3194
|
+
def doDescribeShareUnits(args, parsed_globals):
|
2571
3195
|
g_param = parse_global_arg(parsed_globals)
|
2572
3196
|
|
2573
3197
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2596,11 +3220,11 @@ def doDescribeOrganizationAuthNode(args, parsed_globals):
|
|
2596
3220
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2597
3221
|
client._sdkVersion += ("_CLI_" + __version__)
|
2598
3222
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2599
|
-
model = models.
|
3223
|
+
model = models.DescribeShareUnitsRequest()
|
2600
3224
|
model.from_json_string(json.dumps(args))
|
2601
3225
|
start_time = time.time()
|
2602
3226
|
while True:
|
2603
|
-
rsp = client.
|
3227
|
+
rsp = client.DescribeShareUnits(model)
|
2604
3228
|
result = rsp.to_json_string()
|
2605
3229
|
try:
|
2606
3230
|
json_obj = json.loads(result)
|
@@ -2619,7 +3243,7 @@ def doDescribeOrganizationAuthNode(args, parsed_globals):
|
|
2619
3243
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2620
3244
|
|
2621
3245
|
|
2622
|
-
def
|
3246
|
+
def doListOrganizationNodes(args, parsed_globals):
|
2623
3247
|
g_param = parse_global_arg(parsed_globals)
|
2624
3248
|
|
2625
3249
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2648,11 +3272,11 @@ def doAddShareUnitMembers(args, parsed_globals):
|
|
2648
3272
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2649
3273
|
client._sdkVersion += ("_CLI_" + __version__)
|
2650
3274
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2651
|
-
model = models.
|
3275
|
+
model = models.ListOrganizationNodesRequest()
|
2652
3276
|
model.from_json_string(json.dumps(args))
|
2653
3277
|
start_time = time.time()
|
2654
3278
|
while True:
|
2655
|
-
rsp = client.
|
3279
|
+
rsp = client.ListOrganizationNodes(model)
|
2656
3280
|
result = rsp.to_json_string()
|
2657
3281
|
try:
|
2658
3282
|
json_obj = json.loads(result)
|
@@ -2671,7 +3295,7 @@ def doAddShareUnitMembers(args, parsed_globals):
|
|
2671
3295
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2672
3296
|
|
2673
3297
|
|
2674
|
-
def
|
3298
|
+
def doCheckAccountDelete(args, parsed_globals):
|
2675
3299
|
g_param = parse_global_arg(parsed_globals)
|
2676
3300
|
|
2677
3301
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2700,11 +3324,11 @@ def doDescribeOrganizationNodes(args, parsed_globals):
|
|
2700
3324
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2701
3325
|
client._sdkVersion += ("_CLI_" + __version__)
|
2702
3326
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2703
|
-
model = models.
|
3327
|
+
model = models.CheckAccountDeleteRequest()
|
2704
3328
|
model.from_json_string(json.dumps(args))
|
2705
3329
|
start_time = time.time()
|
2706
3330
|
while True:
|
2707
|
-
rsp = client.
|
3331
|
+
rsp = client.CheckAccountDelete(model)
|
2708
3332
|
result = rsp.to_json_string()
|
2709
3333
|
try:
|
2710
3334
|
json_obj = json.loads(result)
|
@@ -2723,7 +3347,7 @@ def doDescribeOrganizationNodes(args, parsed_globals):
|
|
2723
3347
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2724
3348
|
|
2725
3349
|
|
2726
|
-
def
|
3350
|
+
def doCreatePolicy(args, parsed_globals):
|
2727
3351
|
g_param = parse_global_arg(parsed_globals)
|
2728
3352
|
|
2729
3353
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2752,11 +3376,11 @@ def doDescribeShareUnits(args, parsed_globals):
|
|
2752
3376
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2753
3377
|
client._sdkVersion += ("_CLI_" + __version__)
|
2754
3378
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2755
|
-
model = models.
|
3379
|
+
model = models.CreatePolicyRequest()
|
2756
3380
|
model.from_json_string(json.dumps(args))
|
2757
3381
|
start_time = time.time()
|
2758
3382
|
while True:
|
2759
|
-
rsp = client.
|
3383
|
+
rsp = client.CreatePolicy(model)
|
2760
3384
|
result = rsp.to_json_string()
|
2761
3385
|
try:
|
2762
3386
|
json_obj = json.loads(result)
|
@@ -2775,7 +3399,7 @@ def doDescribeShareUnits(args, parsed_globals):
|
|
2775
3399
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2776
3400
|
|
2777
3401
|
|
2778
|
-
def
|
3402
|
+
def doCreateOrganizationMemberPolicy(args, parsed_globals):
|
2779
3403
|
g_param = parse_global_arg(parsed_globals)
|
2780
3404
|
|
2781
3405
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2804,11 +3428,11 @@ def doListOrganizationNodes(args, parsed_globals):
|
|
2804
3428
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2805
3429
|
client._sdkVersion += ("_CLI_" + __version__)
|
2806
3430
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2807
|
-
model = models.
|
3431
|
+
model = models.CreateOrganizationMemberPolicyRequest()
|
2808
3432
|
model.from_json_string(json.dumps(args))
|
2809
3433
|
start_time = time.time()
|
2810
3434
|
while True:
|
2811
|
-
rsp = client.
|
3435
|
+
rsp = client.CreateOrganizationMemberPolicy(model)
|
2812
3436
|
result = rsp.to_json_string()
|
2813
3437
|
try:
|
2814
3438
|
json_obj = json.loads(result)
|
@@ -2827,7 +3451,7 @@ def doListOrganizationNodes(args, parsed_globals):
|
|
2827
3451
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2828
3452
|
|
2829
3453
|
|
2830
|
-
def
|
3454
|
+
def doDeletePolicy(args, parsed_globals):
|
2831
3455
|
g_param = parse_global_arg(parsed_globals)
|
2832
3456
|
|
2833
3457
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2856,11 +3480,11 @@ def doCheckAccountDelete(args, parsed_globals):
|
|
2856
3480
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2857
3481
|
client._sdkVersion += ("_CLI_" + __version__)
|
2858
3482
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2859
|
-
model = models.
|
3483
|
+
model = models.DeletePolicyRequest()
|
2860
3484
|
model.from_json_string(json.dumps(args))
|
2861
3485
|
start_time = time.time()
|
2862
3486
|
while True:
|
2863
|
-
rsp = client.
|
3487
|
+
rsp = client.DeletePolicy(model)
|
2864
3488
|
result = rsp.to_json_string()
|
2865
3489
|
try:
|
2866
3490
|
json_obj = json.loads(result)
|
@@ -2879,7 +3503,7 @@ def doCheckAccountDelete(args, parsed_globals):
|
|
2879
3503
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2880
3504
|
|
2881
3505
|
|
2882
|
-
def
|
3506
|
+
def doListTargetsForPolicy(args, parsed_globals):
|
2883
3507
|
g_param = parse_global_arg(parsed_globals)
|
2884
3508
|
|
2885
3509
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2908,11 +3532,11 @@ def doCreateOrganizationMemberPolicy(args, parsed_globals):
|
|
2908
3532
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2909
3533
|
client._sdkVersion += ("_CLI_" + __version__)
|
2910
3534
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2911
|
-
model = models.
|
3535
|
+
model = models.ListTargetsForPolicyRequest()
|
2912
3536
|
model.from_json_string(json.dumps(args))
|
2913
3537
|
start_time = time.time()
|
2914
3538
|
while True:
|
2915
|
-
rsp = client.
|
3539
|
+
rsp = client.ListTargetsForPolicy(model)
|
2916
3540
|
result = rsp.to_json_string()
|
2917
3541
|
try:
|
2918
3542
|
json_obj = json.loads(result)
|
@@ -3035,7 +3659,7 @@ def doDeleteOrganizationMemberAuthIdentity(args, parsed_globals):
|
|
3035
3659
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3036
3660
|
|
3037
3661
|
|
3038
|
-
def
|
3662
|
+
def doUpdatePolicy(args, parsed_globals):
|
3039
3663
|
g_param = parse_global_arg(parsed_globals)
|
3040
3664
|
|
3041
3665
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3064,11 +3688,11 @@ def doMoveOrganizationMembersToNode(args, parsed_globals):
|
|
3064
3688
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
3065
3689
|
client._sdkVersion += ("_CLI_" + __version__)
|
3066
3690
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3067
|
-
model = models.
|
3691
|
+
model = models.UpdatePolicyRequest()
|
3068
3692
|
model.from_json_string(json.dumps(args))
|
3069
3693
|
start_time = time.time()
|
3070
3694
|
while True:
|
3071
|
-
rsp = client.
|
3695
|
+
rsp = client.UpdatePolicy(model)
|
3072
3696
|
result = rsp.to_json_string()
|
3073
3697
|
try:
|
3074
3698
|
json_obj = json.loads(result)
|
@@ -3102,19 +3726,22 @@ MODELS_MAP = {
|
|
3102
3726
|
ACTION_MAP = {
|
3103
3727
|
"DescribeOrganizationMembers": doDescribeOrganizationMembers,
|
3104
3728
|
"QuitOrganization": doQuitOrganization,
|
3105
|
-
"
|
3729
|
+
"DisablePolicyType": doDisablePolicyType,
|
3730
|
+
"DescribeOrganizationMemberAuthAccounts": doDescribeOrganizationMemberAuthAccounts,
|
3106
3731
|
"GetOrganization": doGetOrganization,
|
3107
3732
|
"UpdateShareUnit": doUpdateShareUnit,
|
3108
3733
|
"UpdateOrganizationMember": doUpdateOrganizationMember,
|
3109
|
-
"
|
3734
|
+
"ListPoliciesForTarget": doListPoliciesForTarget,
|
3110
3735
|
"DescribeShareUnitResources": doDescribeShareUnitResources,
|
3111
3736
|
"DeleteOrganizationMembersPolicy": doDeleteOrganizationMembersPolicy,
|
3737
|
+
"ListOrganizationIdentity": doListOrganizationIdentity,
|
3112
3738
|
"AddOrganizationNode": doAddOrganizationNode,
|
3113
3739
|
"UpdateOrganizationMemberEmailBind": doUpdateOrganizationMemberEmailBind,
|
3114
3740
|
"DescribeShareUnitMembers": doDescribeShareUnitMembers,
|
3115
3741
|
"DescribeOrganizationMemberAuthIdentities": doDescribeOrganizationMemberAuthIdentities,
|
3742
|
+
"DescribePolicy": doDescribePolicy,
|
3116
3743
|
"UpdateOrganizationNode": doUpdateOrganizationNode,
|
3117
|
-
"
|
3744
|
+
"CreateOrganizationMemberAuthIdentity": doCreateOrganizationMemberAuthIdentity,
|
3118
3745
|
"DeleteOrganizationMembers": doDeleteOrganizationMembers,
|
3119
3746
|
"UpdateOrganizationIdentity": doUpdateOrganizationIdentity,
|
3120
3747
|
"DescribeOrganizationFinancialByMonth": doDescribeOrganizationFinancialByMonth,
|
@@ -3127,16 +3754,17 @@ ACTION_MAP = {
|
|
3127
3754
|
"CancelOrganizationMemberAuthAccount": doCancelOrganizationMemberAuthAccount,
|
3128
3755
|
"SendOrganizationInvitation": doSendOrganizationInvitation,
|
3129
3756
|
"DescribeOrganizationFinancialByMember": doDescribeOrganizationFinancialByMember,
|
3130
|
-
"CreateOrganization": doCreateOrganization,
|
3131
3757
|
"GetOrganizationMember": doGetOrganizationMember,
|
3132
3758
|
"AddShareUnitResources": doAddShareUnitResources,
|
3759
|
+
"AttachPolicy": doAttachPolicy,
|
3133
3760
|
"CreateOrganizationMembersPolicy": doCreateOrganizationMembersPolicy,
|
3134
3761
|
"DescribeShareAreas": doDescribeShareAreas,
|
3135
3762
|
"DescribeOrganization": doDescribeOrganization,
|
3136
3763
|
"MoveOrganizationNodeMembers": doMoveOrganizationNodeMembers,
|
3137
3764
|
"ListOrganizationMembers": doListOrganizationMembers,
|
3138
3765
|
"DeleteOrganizationMemberFromNode": doDeleteOrganizationMemberFromNode,
|
3139
|
-
"
|
3766
|
+
"CreateOrganization": doCreateOrganization,
|
3767
|
+
"DetachPolicy": doDetachPolicy,
|
3140
3768
|
"CreateOrganizationIdentity": doCreateOrganizationIdentity,
|
3141
3769
|
"DeleteOrganizationIdentity": doDeleteOrganizationIdentity,
|
3142
3770
|
"AcceptOrganizationInvitation": doAcceptOrganizationInvitation,
|
@@ -3144,21 +3772,29 @@ ACTION_MAP = {
|
|
3144
3772
|
"AddOrganizationMemberEmail": doAddOrganizationMemberEmail,
|
3145
3773
|
"DeleteShareUnitMembers": doDeleteShareUnitMembers,
|
3146
3774
|
"DescribeOrganizationMemberEmailBind": doDescribeOrganizationMemberEmailBind,
|
3775
|
+
"EnablePolicyType": doEnablePolicyType,
|
3147
3776
|
"ListOrganizationInvitations": doListOrganizationInvitations,
|
3148
3777
|
"CreateOrganizationMember": doCreateOrganizationMember,
|
3149
3778
|
"BindOrganizationMemberAuthAccount": doBindOrganizationMemberAuthAccount,
|
3779
|
+
"MoveOrganizationMembersToNode": doMoveOrganizationMembersToNode,
|
3150
3780
|
"AddShareUnit": doAddShareUnit,
|
3781
|
+
"DeleteShareUnit": doDeleteShareUnit,
|
3782
|
+
"ListPolicies": doListPolicies,
|
3151
3783
|
"DescribeOrganizationFinancialByProduct": doDescribeOrganizationFinancialByProduct,
|
3152
3784
|
"DescribeOrganizationAuthNode": doDescribeOrganizationAuthNode,
|
3153
3785
|
"AddShareUnitMembers": doAddShareUnitMembers,
|
3786
|
+
"DescribePolicyConfig": doDescribePolicyConfig,
|
3154
3787
|
"DescribeOrganizationNodes": doDescribeOrganizationNodes,
|
3155
3788
|
"DescribeShareUnits": doDescribeShareUnits,
|
3156
3789
|
"ListOrganizationNodes": doListOrganizationNodes,
|
3157
3790
|
"CheckAccountDelete": doCheckAccountDelete,
|
3791
|
+
"CreatePolicy": doCreatePolicy,
|
3158
3792
|
"CreateOrganizationMemberPolicy": doCreateOrganizationMemberPolicy,
|
3793
|
+
"DeletePolicy": doDeletePolicy,
|
3794
|
+
"ListTargetsForPolicy": doListTargetsForPolicy,
|
3159
3795
|
"ListOrganizationNodeMembers": doListOrganizationNodeMembers,
|
3160
3796
|
"DeleteOrganizationMemberAuthIdentity": doDeleteOrganizationMemberAuthIdentity,
|
3161
|
-
"
|
3797
|
+
"UpdatePolicy": doUpdatePolicy,
|
3162
3798
|
|
3163
3799
|
}
|
3164
3800
|
|