tccli 3.0.1214.1__py2.py3-none-any.whl → 3.0.1216.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/configure.py +46 -1
- tccli/services/__init__.py +0 -3
- tccli/services/ams/v20201229/examples.json +2 -2
- tccli/services/apm/v20210622/api.json +20 -0
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/bi/v20220105/api.json +32 -4
- tccli/services/bi/v20220105/examples.json +1 -1
- tccli/services/billing/billing_client.py +53 -0
- tccli/services/billing/v20180709/api.json +304 -0
- tccli/services/billing/v20180709/examples.json +8 -0
- tccli/services/bsca/v20210811/api.json +222 -17
- tccli/services/bsca/v20210811/examples.json +4 -4
- tccli/services/ccc/ccc_client.py +53 -0
- tccli/services/ccc/v20200210/api.json +176 -18
- tccli/services/ccc/v20200210/examples.json +11 -3
- tccli/services/cdb/v20170320/api.json +22 -4
- tccli/services/cdb/v20170320/examples.json +1 -1
- tccli/services/cdn/v20180606/api.json +5 -3
- tccli/services/cdwdoris/v20211228/api.json +23 -2
- tccli/services/cfs/v20190719/api.json +3 -3
- tccli/services/cfw/v20190904/api.json +86 -52
- tccli/services/cfw/v20190904/examples.json +68 -56
- tccli/services/ciam/v20220331/api.json +316 -315
- tccli/services/ciam/v20220331/examples.json +49 -49
- tccli/services/ckafka/v20190819/api.json +1 -1
- tccli/services/cloudaudit/cloudaudit_client.py +30 -30
- tccli/services/cloudaudit/v20190319/api.json +215 -186
- tccli/services/cloudaudit/v20190319/examples.json +13 -13
- tccli/services/cls/v20201016/api.json +365 -66
- tccli/services/cls/v20201016/examples.json +9 -3
- tccli/services/csip/v20221121/api.json +4 -4
- tccli/services/cvm/v20170312/api.json +42 -0
- tccli/services/cwp/v20180228/api.json +865 -809
- tccli/services/cwp/v20180228/examples.json +98 -110
- tccli/services/cynosdb/v20190107/api.json +77 -29
- tccli/services/cynosdb/v20190107/examples.json +22 -22
- tccli/services/dasb/v20191018/api.json +77 -0
- tccli/services/dasb/v20191018/examples.json +5 -5
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +11 -0
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/eb/v20210416/api.json +15 -15
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/es/es_client.py +249 -37
- tccli/services/es/v20180416/api.json +521 -0
- tccli/services/es/v20180416/examples.json +32 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +155 -10
- tccli/services/ess/v20201111/examples.json +15 -1
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +244 -13
- tccli/services/essbasic/v20210526/examples.json +22 -0
- tccli/services/gaap/v20180529/api.json +44 -26
- tccli/services/gaap/v20180529/examples.json +24 -30
- tccli/services/hunyuan/v20230901/examples.json +6 -0
- tccli/services/iotexplorer/v20190423/api.json +40 -0
- tccli/services/iss/v20230517/api.json +19 -0
- tccli/services/live/v20180801/api.json +35 -9
- tccli/services/mongodb/v20190725/api.json +6 -8
- tccli/services/mqtt/v20240516/api.json +2 -2
- tccli/services/mqtt/v20240516/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +2 -2
- tccli/services/organization/organization_client.py +352 -34
- tccli/services/organization/v20210331/api.json +451 -0
- tccli/services/organization/v20210331/examples.json +48 -0
- tccli/services/partners/partners_client.py +57 -4
- tccli/services/partners/v20180321/api.json +44 -0
- tccli/services/partners/v20180321/examples.json +8 -0
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/scf/scf_client.py +269 -4
- tccli/services/scf/v20180416/api.json +554 -0
- tccli/services/scf/v20180416/examples.json +46 -0
- tccli/services/ssl/v20191205/api.json +34 -5
- tccli/services/tat/v20201028/api.json +27 -25
- tccli/services/tat/v20201028/examples.json +4 -4
- tccli/services/tcss/v20201101/api.json +256 -14
- tccli/services/tcss/v20201101/examples.json +7 -7
- tccli/services/tdmq/v20200217/api.json +64 -63
- tccli/services/tdmq/v20200217/examples.json +2 -2
- tccli/services/tem/v20210701/api.json +144 -103
- tccli/services/tem/v20210701/examples.json +27 -27
- tccli/services/teo/teo_client.py +277 -12
- tccli/services/teo/v20220901/api.json +1023 -146
- tccli/services/teo/v20220901/examples.json +71 -1
- tccli/services/tke/tke_client.py +53 -0
- tccli/services/tke/v20180525/api.json +43 -0
- tccli/services/tke/v20180525/examples.json +8 -0
- tccli/services/tms/tms_client.py +4 -57
- tccli/services/tms/v20201229/api.json +0 -354
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/trtc/v20190722/api.json +221 -22
- tccli/services/vpc/v20170312/api.json +111 -34
- tccli/services/vpc/v20170312/examples.json +11 -3
- tccli/services/vpc/vpc_client.py +107 -54
- tccli/services/waf/v20180125/api.json +61 -0
- tccli/services/waf/v20180125/examples.json +8 -0
- tccli/services/waf/waf_client.py +53 -0
- tccli/services/wedata/v20210820/api.json +686 -0
- tccli/services/wedata/v20210820/examples.json +16 -0
- tccli/services/wedata/wedata_client.py +106 -0
- {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/METADATA +6 -2
- {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/RECORD +108 -112
- tccli/services/cr/__init__.py +0 -4
- tccli/services/cr/cr_client.py +0 -1626
- tccli/services/cr/v20180321/api.json +0 -2829
- tccli/services/cr/v20180321/examples.json +0 -235
- {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1214.1.dist-info → tccli-3.0.1216.1.dist-info}/license_files/LICENSE +0 -0
@@ -123,7 +123,7 @@ def doListOrganizationNodes(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 doListGroupMembers(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,11 @@ def doDescribeOrganizationMemberAuthAccounts(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.ListGroupMembersRequest()
|
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.ListGroupMembers(model)
|
160
160
|
result = rsp.to_json_string()
|
161
161
|
try:
|
162
162
|
json_obj = json.loads(result)
|
@@ -175,7 +175,7 @@ def doDescribeOrganizationMemberAuthAccounts(args, parsed_globals):
|
|
175
175
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
176
176
|
|
177
177
|
|
178
|
-
def
|
178
|
+
def doListOrganizationIdentity(args, parsed_globals):
|
179
179
|
g_param = parse_global_arg(parsed_globals)
|
180
180
|
|
181
181
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -204,11 +204,11 @@ def doListGroupMembers(args, parsed_globals):
|
|
204
204
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
205
205
|
client._sdkVersion += ("_CLI_" + __version__)
|
206
206
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
207
|
-
model = models.
|
207
|
+
model = models.ListOrganizationIdentityRequest()
|
208
208
|
model.from_json_string(json.dumps(args))
|
209
209
|
start_time = time.time()
|
210
210
|
while True:
|
211
|
-
rsp = client.
|
211
|
+
rsp = client.ListOrganizationIdentity(model)
|
212
212
|
result = rsp.to_json_string()
|
213
213
|
try:
|
214
214
|
json_obj = json.loads(result)
|
@@ -227,7 +227,7 @@ def doListGroupMembers(args, parsed_globals):
|
|
227
227
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
228
228
|
|
229
229
|
|
230
|
-
def
|
230
|
+
def doAddOrganizationNode(args, parsed_globals):
|
231
231
|
g_param = parse_global_arg(parsed_globals)
|
232
232
|
|
233
233
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -256,11 +256,11 @@ def doListOrganizationIdentity(args, parsed_globals):
|
|
256
256
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
257
257
|
client._sdkVersion += ("_CLI_" + __version__)
|
258
258
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
259
|
-
model = models.
|
259
|
+
model = models.AddOrganizationNodeRequest()
|
260
260
|
model.from_json_string(json.dumps(args))
|
261
261
|
start_time = time.time()
|
262
262
|
while True:
|
263
|
-
rsp = client.
|
263
|
+
rsp = client.AddOrganizationNode(model)
|
264
264
|
result = rsp.to_json_string()
|
265
265
|
try:
|
266
266
|
json_obj = json.loads(result)
|
@@ -279,7 +279,7 @@ def doListOrganizationIdentity(args, parsed_globals):
|
|
279
279
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
280
280
|
|
281
281
|
|
282
|
-
def
|
282
|
+
def doUpdateOrganizationMemberEmailBind(args, parsed_globals):
|
283
283
|
g_param = parse_global_arg(parsed_globals)
|
284
284
|
|
285
285
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -308,11 +308,11 @@ def doAddOrganizationNode(args, parsed_globals):
|
|
308
308
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
309
309
|
client._sdkVersion += ("_CLI_" + __version__)
|
310
310
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
311
|
-
model = models.
|
311
|
+
model = models.UpdateOrganizationMemberEmailBindRequest()
|
312
312
|
model.from_json_string(json.dumps(args))
|
313
313
|
start_time = time.time()
|
314
314
|
while True:
|
315
|
-
rsp = client.
|
315
|
+
rsp = client.UpdateOrganizationMemberEmailBind(model)
|
316
316
|
result = rsp.to_json_string()
|
317
317
|
try:
|
318
318
|
json_obj = json.loads(result)
|
@@ -331,7 +331,7 @@ def doAddOrganizationNode(args, parsed_globals):
|
|
331
331
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
332
332
|
|
333
333
|
|
334
|
-
def
|
334
|
+
def doRemovePermissionPolicyFromRoleConfiguration(args, parsed_globals):
|
335
335
|
g_param = parse_global_arg(parsed_globals)
|
336
336
|
|
337
337
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -360,11 +360,11 @@ def doUpdateOrganizationMemberEmailBind(args, parsed_globals):
|
|
360
360
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
361
361
|
client._sdkVersion += ("_CLI_" + __version__)
|
362
362
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
363
|
-
model = models.
|
363
|
+
model = models.RemovePermissionPolicyFromRoleConfigurationRequest()
|
364
364
|
model.from_json_string(json.dumps(args))
|
365
365
|
start_time = time.time()
|
366
366
|
while True:
|
367
|
-
rsp = client.
|
367
|
+
rsp = client.RemovePermissionPolicyFromRoleConfiguration(model)
|
368
368
|
result = rsp.to_json_string()
|
369
369
|
try:
|
370
370
|
json_obj = json.loads(result)
|
@@ -383,7 +383,7 @@ def doUpdateOrganizationMemberEmailBind(args, parsed_globals):
|
|
383
383
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
384
384
|
|
385
385
|
|
386
|
-
def
|
386
|
+
def doUpdateSCIMCredentialStatus(args, parsed_globals):
|
387
387
|
g_param = parse_global_arg(parsed_globals)
|
388
388
|
|
389
389
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -412,11 +412,11 @@ def doRemovePermissionPolicyFromRoleConfiguration(args, parsed_globals):
|
|
412
412
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
413
413
|
client._sdkVersion += ("_CLI_" + __version__)
|
414
414
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
415
|
-
model = models.
|
415
|
+
model = models.UpdateSCIMCredentialStatusRequest()
|
416
416
|
model.from_json_string(json.dumps(args))
|
417
417
|
start_time = time.time()
|
418
418
|
while True:
|
419
|
-
rsp = client.
|
419
|
+
rsp = client.UpdateSCIMCredentialStatus(model)
|
420
420
|
result = rsp.to_json_string()
|
421
421
|
try:
|
422
422
|
json_obj = json.loads(result)
|
@@ -2879,7 +2879,7 @@ def doAddShareUnit(args, parsed_globals):
|
|
2879
2879
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2880
2880
|
|
2881
2881
|
|
2882
|
-
def
|
2882
|
+
def doDescribeOrganizationMemberAuthAccounts(args, parsed_globals):
|
2883
2883
|
g_param = parse_global_arg(parsed_globals)
|
2884
2884
|
|
2885
2885
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2908,11 +2908,11 @@ def doDescribeOrganizationAuthNode(args, parsed_globals):
|
|
2908
2908
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
2909
2909
|
client._sdkVersion += ("_CLI_" + __version__)
|
2910
2910
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2911
|
-
model = models.
|
2911
|
+
model = models.DescribeOrganizationMemberAuthAccountsRequest()
|
2912
2912
|
model.from_json_string(json.dumps(args))
|
2913
2913
|
start_time = time.time()
|
2914
2914
|
while True:
|
2915
|
-
rsp = client.
|
2915
|
+
rsp = client.DescribeOrganizationMemberAuthAccounts(model)
|
2916
2916
|
result = rsp.to_json_string()
|
2917
2917
|
try:
|
2918
2918
|
json_obj = json.loads(result)
|
@@ -4075,6 +4075,58 @@ def doDeleteGroup(args, parsed_globals):
|
|
4075
4075
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4076
4076
|
|
4077
4077
|
|
4078
|
+
def doGetSCIMSynchronizationStatus(args, parsed_globals):
|
4079
|
+
g_param = parse_global_arg(parsed_globals)
|
4080
|
+
|
4081
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4082
|
+
cred = credential.CVMRoleCredential()
|
4083
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4084
|
+
cred = credential.STSAssumeRoleCredential(
|
4085
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4086
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4087
|
+
)
|
4088
|
+
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):
|
4089
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4090
|
+
else:
|
4091
|
+
cred = credential.Credential(
|
4092
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4093
|
+
)
|
4094
|
+
http_profile = HttpProfile(
|
4095
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4096
|
+
reqMethod="POST",
|
4097
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4098
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4099
|
+
)
|
4100
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4101
|
+
if g_param[OptionsDefine.Language]:
|
4102
|
+
profile.language = g_param[OptionsDefine.Language]
|
4103
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4104
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
4105
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4106
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4107
|
+
model = models.GetSCIMSynchronizationStatusRequest()
|
4108
|
+
model.from_json_string(json.dumps(args))
|
4109
|
+
start_time = time.time()
|
4110
|
+
while True:
|
4111
|
+
rsp = client.GetSCIMSynchronizationStatus(model)
|
4112
|
+
result = rsp.to_json_string()
|
4113
|
+
try:
|
4114
|
+
json_obj = json.loads(result)
|
4115
|
+
except TypeError as e:
|
4116
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4117
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4118
|
+
break
|
4119
|
+
cur_time = time.time()
|
4120
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4121
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4122
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4123
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4124
|
+
else:
|
4125
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4126
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4127
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4128
|
+
|
4129
|
+
|
4078
4130
|
def doSetExternalSAMLIdentityProvider(args, parsed_globals):
|
4079
4131
|
g_param = parse_global_arg(parsed_globals)
|
4080
4132
|
|
@@ -4179,6 +4231,58 @@ def doDeleteOrganization(args, parsed_globals):
|
|
4179
4231
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4180
4232
|
|
4181
4233
|
|
4234
|
+
def doListPoliciesForTarget(args, parsed_globals):
|
4235
|
+
g_param = parse_global_arg(parsed_globals)
|
4236
|
+
|
4237
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4238
|
+
cred = credential.CVMRoleCredential()
|
4239
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4240
|
+
cred = credential.STSAssumeRoleCredential(
|
4241
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4242
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4243
|
+
)
|
4244
|
+
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):
|
4245
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4246
|
+
else:
|
4247
|
+
cred = credential.Credential(
|
4248
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4249
|
+
)
|
4250
|
+
http_profile = HttpProfile(
|
4251
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4252
|
+
reqMethod="POST",
|
4253
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4254
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4255
|
+
)
|
4256
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4257
|
+
if g_param[OptionsDefine.Language]:
|
4258
|
+
profile.language = g_param[OptionsDefine.Language]
|
4259
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4260
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
4261
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4262
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4263
|
+
model = models.ListPoliciesForTargetRequest()
|
4264
|
+
model.from_json_string(json.dumps(args))
|
4265
|
+
start_time = time.time()
|
4266
|
+
while True:
|
4267
|
+
rsp = client.ListPoliciesForTarget(model)
|
4268
|
+
result = rsp.to_json_string()
|
4269
|
+
try:
|
4270
|
+
json_obj = json.loads(result)
|
4271
|
+
except TypeError as e:
|
4272
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4273
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4274
|
+
break
|
4275
|
+
cur_time = time.time()
|
4276
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4277
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4278
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4279
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4280
|
+
else:
|
4281
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4282
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4283
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4284
|
+
|
4285
|
+
|
4182
4286
|
def doGetOrganizationMember(args, parsed_globals):
|
4183
4287
|
g_param = parse_global_arg(parsed_globals)
|
4184
4288
|
|
@@ -4231,6 +4335,58 @@ def doGetOrganizationMember(args, parsed_globals):
|
|
4231
4335
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4232
4336
|
|
4233
4337
|
|
4338
|
+
def doDeleteSCIMCredential(args, parsed_globals):
|
4339
|
+
g_param = parse_global_arg(parsed_globals)
|
4340
|
+
|
4341
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4342
|
+
cred = credential.CVMRoleCredential()
|
4343
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4344
|
+
cred = credential.STSAssumeRoleCredential(
|
4345
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4346
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4347
|
+
)
|
4348
|
+
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):
|
4349
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4350
|
+
else:
|
4351
|
+
cred = credential.Credential(
|
4352
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4353
|
+
)
|
4354
|
+
http_profile = HttpProfile(
|
4355
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4356
|
+
reqMethod="POST",
|
4357
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4358
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4359
|
+
)
|
4360
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4361
|
+
if g_param[OptionsDefine.Language]:
|
4362
|
+
profile.language = g_param[OptionsDefine.Language]
|
4363
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4364
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
4365
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4366
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4367
|
+
model = models.DeleteSCIMCredentialRequest()
|
4368
|
+
model.from_json_string(json.dumps(args))
|
4369
|
+
start_time = time.time()
|
4370
|
+
while True:
|
4371
|
+
rsp = client.DeleteSCIMCredential(model)
|
4372
|
+
result = rsp.to_json_string()
|
4373
|
+
try:
|
4374
|
+
json_obj = json.loads(result)
|
4375
|
+
except TypeError as e:
|
4376
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4377
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4378
|
+
break
|
4379
|
+
cur_time = time.time()
|
4380
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4381
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4382
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4383
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4384
|
+
else:
|
4385
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4386
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4387
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4388
|
+
|
4389
|
+
|
4234
4390
|
def doUpdateUserSyncProvisioning(args, parsed_globals):
|
4235
4391
|
g_param = parse_global_arg(parsed_globals)
|
4236
4392
|
|
@@ -4439,6 +4595,58 @@ def doListOrganizationMembers(args, parsed_globals):
|
|
4439
4595
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4440
4596
|
|
4441
4597
|
|
4598
|
+
def doUpdateSCIMSynchronizationStatus(args, parsed_globals):
|
4599
|
+
g_param = parse_global_arg(parsed_globals)
|
4600
|
+
|
4601
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4602
|
+
cred = credential.CVMRoleCredential()
|
4603
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4604
|
+
cred = credential.STSAssumeRoleCredential(
|
4605
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4606
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4607
|
+
)
|
4608
|
+
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):
|
4609
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4610
|
+
else:
|
4611
|
+
cred = credential.Credential(
|
4612
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4613
|
+
)
|
4614
|
+
http_profile = HttpProfile(
|
4615
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4616
|
+
reqMethod="POST",
|
4617
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4618
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4619
|
+
)
|
4620
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4621
|
+
if g_param[OptionsDefine.Language]:
|
4622
|
+
profile.language = g_param[OptionsDefine.Language]
|
4623
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4624
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
4625
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4626
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4627
|
+
model = models.UpdateSCIMSynchronizationStatusRequest()
|
4628
|
+
model.from_json_string(json.dumps(args))
|
4629
|
+
start_time = time.time()
|
4630
|
+
while True:
|
4631
|
+
rsp = client.UpdateSCIMSynchronizationStatus(model)
|
4632
|
+
result = rsp.to_json_string()
|
4633
|
+
try:
|
4634
|
+
json_obj = json.loads(result)
|
4635
|
+
except TypeError as e:
|
4636
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4637
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4638
|
+
break
|
4639
|
+
cur_time = time.time()
|
4640
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4641
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4642
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4643
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4644
|
+
else:
|
4645
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4646
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4647
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4648
|
+
|
4649
|
+
|
4442
4650
|
def doListGroups(args, parsed_globals):
|
4443
4651
|
g_param = parse_global_arg(parsed_globals)
|
4444
4652
|
|
@@ -4907,7 +5115,7 @@ def doUpdateOrganizationMember(args, parsed_globals):
|
|
4907
5115
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4908
5116
|
|
4909
5117
|
|
4910
|
-
def
|
5118
|
+
def doDescribeOrganizationAuthNode(args, parsed_globals):
|
4911
5119
|
g_param = parse_global_arg(parsed_globals)
|
4912
5120
|
|
4913
5121
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4936,11 +5144,11 @@ def doListPoliciesForTarget(args, parsed_globals):
|
|
4936
5144
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
4937
5145
|
client._sdkVersion += ("_CLI_" + __version__)
|
4938
5146
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4939
|
-
model = models.
|
5147
|
+
model = models.DescribeOrganizationAuthNodeRequest()
|
4940
5148
|
model.from_json_string(json.dumps(args))
|
4941
5149
|
start_time = time.time()
|
4942
5150
|
while True:
|
4943
|
-
rsp = client.
|
5151
|
+
rsp = client.DescribeOrganizationAuthNode(model)
|
4944
5152
|
result = rsp.to_json_string()
|
4945
5153
|
try:
|
4946
5154
|
json_obj = json.loads(result)
|
@@ -4959,7 +5167,7 @@ def doListPoliciesForTarget(args, parsed_globals):
|
|
4959
5167
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4960
5168
|
|
4961
5169
|
|
4962
|
-
def
|
5170
|
+
def doDescribeIdentityCenter(args, parsed_globals):
|
4963
5171
|
g_param = parse_global_arg(parsed_globals)
|
4964
5172
|
|
4965
5173
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4988,11 +5196,11 @@ def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals):
|
|
4988
5196
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
4989
5197
|
client._sdkVersion += ("_CLI_" + __version__)
|
4990
5198
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4991
|
-
model = models.
|
5199
|
+
model = models.DescribeIdentityCenterRequest()
|
4992
5200
|
model.from_json_string(json.dumps(args))
|
4993
5201
|
start_time = time.time()
|
4994
5202
|
while True:
|
4995
|
-
rsp = client.
|
5203
|
+
rsp = client.DescribeIdentityCenter(model)
|
4996
5204
|
result = rsp.to_json_string()
|
4997
5205
|
try:
|
4998
5206
|
json_obj = json.loads(result)
|
@@ -5011,7 +5219,7 @@ def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals):
|
|
5011
5219
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5012
5220
|
|
5013
5221
|
|
5014
|
-
def
|
5222
|
+
def doCreateSCIMCredential(args, parsed_globals):
|
5015
5223
|
g_param = parse_global_arg(parsed_globals)
|
5016
5224
|
|
5017
5225
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5040,11 +5248,63 @@ def doDescribeIdentityCenter(args, parsed_globals):
|
|
5040
5248
|
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
5041
5249
|
client._sdkVersion += ("_CLI_" + __version__)
|
5042
5250
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5043
|
-
model = models.
|
5251
|
+
model = models.CreateSCIMCredentialRequest()
|
5044
5252
|
model.from_json_string(json.dumps(args))
|
5045
5253
|
start_time = time.time()
|
5046
5254
|
while True:
|
5047
|
-
rsp = client.
|
5255
|
+
rsp = client.CreateSCIMCredential(model)
|
5256
|
+
result = rsp.to_json_string()
|
5257
|
+
try:
|
5258
|
+
json_obj = json.loads(result)
|
5259
|
+
except TypeError as e:
|
5260
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5261
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5262
|
+
break
|
5263
|
+
cur_time = time.time()
|
5264
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5265
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5266
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5267
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5268
|
+
else:
|
5269
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5270
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5271
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5272
|
+
|
5273
|
+
|
5274
|
+
def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals):
|
5275
|
+
g_param = parse_global_arg(parsed_globals)
|
5276
|
+
|
5277
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5278
|
+
cred = credential.CVMRoleCredential()
|
5279
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5280
|
+
cred = credential.STSAssumeRoleCredential(
|
5281
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5282
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5283
|
+
)
|
5284
|
+
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):
|
5285
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5286
|
+
else:
|
5287
|
+
cred = credential.Credential(
|
5288
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5289
|
+
)
|
5290
|
+
http_profile = HttpProfile(
|
5291
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5292
|
+
reqMethod="POST",
|
5293
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5294
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5295
|
+
)
|
5296
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5297
|
+
if g_param[OptionsDefine.Language]:
|
5298
|
+
profile.language = g_param[OptionsDefine.Language]
|
5299
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5300
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
5301
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5302
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5303
|
+
model = models.DescribeOrganizationMemberAuthIdentitiesRequest()
|
5304
|
+
model.from_json_string(json.dumps(args))
|
5305
|
+
start_time = time.time()
|
5306
|
+
while True:
|
5307
|
+
rsp = client.DescribeOrganizationMemberAuthIdentities(model)
|
5048
5308
|
result = rsp.to_json_string()
|
5049
5309
|
try:
|
5050
5310
|
json_obj = json.loads(result)
|
@@ -5219,6 +5479,58 @@ def doDetachPolicy(args, parsed_globals):
|
|
5219
5479
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5220
5480
|
|
5221
5481
|
|
5482
|
+
def doListSCIMCredentials(args, parsed_globals):
|
5483
|
+
g_param = parse_global_arg(parsed_globals)
|
5484
|
+
|
5485
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5486
|
+
cred = credential.CVMRoleCredential()
|
5487
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5488
|
+
cred = credential.STSAssumeRoleCredential(
|
5489
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5490
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5491
|
+
)
|
5492
|
+
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):
|
5493
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5494
|
+
else:
|
5495
|
+
cred = credential.Credential(
|
5496
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5497
|
+
)
|
5498
|
+
http_profile = HttpProfile(
|
5499
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5500
|
+
reqMethod="POST",
|
5501
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5502
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5503
|
+
)
|
5504
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5505
|
+
if g_param[OptionsDefine.Language]:
|
5506
|
+
profile.language = g_param[OptionsDefine.Language]
|
5507
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5508
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
5509
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5510
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5511
|
+
model = models.ListSCIMCredentialsRequest()
|
5512
|
+
model.from_json_string(json.dumps(args))
|
5513
|
+
start_time = time.time()
|
5514
|
+
while True:
|
5515
|
+
rsp = client.ListSCIMCredentials(model)
|
5516
|
+
result = rsp.to_json_string()
|
5517
|
+
try:
|
5518
|
+
json_obj = json.loads(result)
|
5519
|
+
except TypeError as e:
|
5520
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5521
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5522
|
+
break
|
5523
|
+
cur_time = time.time()
|
5524
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5525
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5526
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5527
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5528
|
+
else:
|
5529
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5530
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5531
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5532
|
+
|
5533
|
+
|
5222
5534
|
def doDeleteShareUnitMembers(args, parsed_globals):
|
5223
5535
|
g_param = parse_global_arg(parsed_globals)
|
5224
5536
|
|
@@ -6794,12 +7106,12 @@ MODELS_MAP = {
|
|
6794
7106
|
ACTION_MAP = {
|
6795
7107
|
"QuitOrganization": doQuitOrganization,
|
6796
7108
|
"ListOrganizationNodes": doListOrganizationNodes,
|
6797
|
-
"DescribeOrganizationMemberAuthAccounts": doDescribeOrganizationMemberAuthAccounts,
|
6798
7109
|
"ListGroupMembers": doListGroupMembers,
|
6799
7110
|
"ListOrganizationIdentity": doListOrganizationIdentity,
|
6800
7111
|
"AddOrganizationNode": doAddOrganizationNode,
|
6801
7112
|
"UpdateOrganizationMemberEmailBind": doUpdateOrganizationMemberEmailBind,
|
6802
7113
|
"RemovePermissionPolicyFromRoleConfiguration": doRemovePermissionPolicyFromRoleConfiguration,
|
7114
|
+
"UpdateSCIMCredentialStatus": doUpdateSCIMCredentialStatus,
|
6803
7115
|
"UpdateUser": doUpdateUser,
|
6804
7116
|
"CreateOrgServiceAssign": doCreateOrgServiceAssign,
|
6805
7117
|
"DescribeEffectivePolicy": doDescribeEffectivePolicy,
|
@@ -6847,7 +7159,7 @@ ACTION_MAP = {
|
|
6847
7159
|
"ListJoinedGroupsForUser": doListJoinedGroupsForUser,
|
6848
7160
|
"ListPermissionPoliciesInRoleConfiguration": doListPermissionPoliciesInRoleConfiguration,
|
6849
7161
|
"AddShareUnit": doAddShareUnit,
|
6850
|
-
"
|
7162
|
+
"DescribeOrganizationMemberAuthAccounts": doDescribeOrganizationMemberAuthAccounts,
|
6851
7163
|
"ListRoleConfigurationProvisionings": doListRoleConfigurationProvisionings,
|
6852
7164
|
"AddShareUnitMembers": doAddShareUnitMembers,
|
6853
7165
|
"DescribePolicyConfig": doDescribePolicyConfig,
|
@@ -6870,13 +7182,17 @@ ACTION_MAP = {
|
|
6870
7182
|
"RejectJoinShareUnitInvitation": doRejectJoinShareUnitInvitation,
|
6871
7183
|
"ListNonCompliantResource": doListNonCompliantResource,
|
6872
7184
|
"DeleteGroup": doDeleteGroup,
|
7185
|
+
"GetSCIMSynchronizationStatus": doGetSCIMSynchronizationStatus,
|
6873
7186
|
"SetExternalSAMLIdentityProvider": doSetExternalSAMLIdentityProvider,
|
6874
7187
|
"DeleteOrganization": doDeleteOrganization,
|
7188
|
+
"ListPoliciesForTarget": doListPoliciesForTarget,
|
6875
7189
|
"GetOrganizationMember": doGetOrganizationMember,
|
7190
|
+
"DeleteSCIMCredential": doDeleteSCIMCredential,
|
6876
7191
|
"UpdateUserSyncProvisioning": doUpdateUserSyncProvisioning,
|
6877
7192
|
"GetUserSyncProvisioning": doGetUserSyncProvisioning,
|
6878
7193
|
"DescribeOrganization": doDescribeOrganization,
|
6879
7194
|
"ListOrganizationMembers": doListOrganizationMembers,
|
7195
|
+
"UpdateSCIMSynchronizationStatus": doUpdateSCIMSynchronizationStatus,
|
6880
7196
|
"ListGroups": doListGroups,
|
6881
7197
|
"CreateOrganizationMember": doCreateOrganizationMember,
|
6882
7198
|
"BindOrganizationMemberAuthAccount": doBindOrganizationMemberAuthAccount,
|
@@ -6886,12 +7202,14 @@ ACTION_MAP = {
|
|
6886
7202
|
"UpdateUserStatus": doUpdateUserStatus,
|
6887
7203
|
"UpdateShareUnit": doUpdateShareUnit,
|
6888
7204
|
"UpdateOrganizationMember": doUpdateOrganizationMember,
|
6889
|
-
"
|
6890
|
-
"DescribeOrganizationMemberAuthIdentities": doDescribeOrganizationMemberAuthIdentities,
|
7205
|
+
"DescribeOrganizationAuthNode": doDescribeOrganizationAuthNode,
|
6891
7206
|
"DescribeIdentityCenter": doDescribeIdentityCenter,
|
7207
|
+
"CreateSCIMCredential": doCreateSCIMCredential,
|
7208
|
+
"DescribeOrganizationMemberAuthIdentities": doDescribeOrganizationMemberAuthIdentities,
|
6892
7209
|
"SendOrgMemberAccountBindEmail": doSendOrgMemberAccountBindEmail,
|
6893
7210
|
"GetZoneStatistics": doGetZoneStatistics,
|
6894
7211
|
"DetachPolicy": doDetachPolicy,
|
7212
|
+
"ListSCIMCredentials": doListSCIMCredentials,
|
6895
7213
|
"DeleteShareUnitMembers": doDeleteShareUnitMembers,
|
6896
7214
|
"DescribeOrganizationFinancialByMonth": doDescribeOrganizationFinancialByMonth,
|
6897
7215
|
"DeleteAccount": doDeleteAccount,
|