tccli 3.0.1363.1__py2.py3-none-any.whl → 3.0.1364.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/bi/v20220105/api.json +97 -5
- tccli/services/bi/v20220105/examples.json +5 -5
- tccli/services/cam/cam_client.py +61 -8
- tccli/services/cam/v20190116/api.json +96 -0
- tccli/services/cam/v20190116/examples.json +8 -0
- tccli/services/cdb/v20170320/api.json +35 -35
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cfs/cfs_client.py +817 -128
- tccli/services/cfs/v20190719/api.json +2241 -833
- tccli/services/cfs/v20190719/examples.json +104 -0
- tccli/services/clb/v20180317/api.json +29 -9
- tccli/services/cls/v20201016/api.json +59 -59
- tccli/services/cls/v20201016/examples.json +3 -3
- tccli/services/ctem/v20231128/api.json +331 -97
- tccli/services/ctem/v20231128/examples.json +8 -8
- tccli/services/kms/v20190118/api.json +2 -2
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lowcode/lowcode_client.py +212 -0
- tccli/services/lowcode/v20210108/api.json +239 -0
- tccli/services/lowcode/v20210108/examples.json +32 -0
- tccli/services/ssl/v20191205/api.json +35 -25
- tccli/services/teo/v20220901/api.json +21 -1
- tccli/services/wedata/v20210820/api.json +191 -11
- tccli/services/wedata/v20210820/examples.json +10 -2
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/RECORD +31 -31
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1364.1'
|
@@ -649,6 +649,24 @@
|
|
649
649
|
"name": "ClusterId",
|
650
650
|
"required": false,
|
651
651
|
"type": "string"
|
652
|
+
},
|
653
|
+
{
|
654
|
+
"disabled": false,
|
655
|
+
"document": "数据库schema",
|
656
|
+
"example": "DB2INST1",
|
657
|
+
"member": "string",
|
658
|
+
"name": "Schema",
|
659
|
+
"required": false,
|
660
|
+
"type": "string"
|
661
|
+
},
|
662
|
+
{
|
663
|
+
"disabled": false,
|
664
|
+
"document": "数据库版本",
|
665
|
+
"example": "11.5",
|
666
|
+
"member": "string",
|
667
|
+
"name": "DbVersion",
|
668
|
+
"required": false,
|
669
|
+
"type": "string"
|
652
670
|
}
|
653
671
|
],
|
654
672
|
"type": "object"
|
@@ -659,7 +677,7 @@
|
|
659
677
|
{
|
660
678
|
"disabled": false,
|
661
679
|
"document": "自定义错误信息对象\n注意:此字段可能返回 null,表示取不到有效值。",
|
662
|
-
"example": "
|
680
|
+
"example": "{\"ErrorMessage\":\"错误提示消息\"}",
|
663
681
|
"member": "ErrorInfo",
|
664
682
|
"name": "ErrorInfo",
|
665
683
|
"output_required": false,
|
@@ -905,6 +923,24 @@
|
|
905
923
|
"name": "RegionId",
|
906
924
|
"required": false,
|
907
925
|
"type": "string"
|
926
|
+
},
|
927
|
+
{
|
928
|
+
"disabled": false,
|
929
|
+
"document": "数据库schema",
|
930
|
+
"example": "DB2INST1",
|
931
|
+
"member": "string",
|
932
|
+
"name": "Schema",
|
933
|
+
"required": false,
|
934
|
+
"type": "string"
|
935
|
+
},
|
936
|
+
{
|
937
|
+
"disabled": false,
|
938
|
+
"document": "数据库版本",
|
939
|
+
"example": "11.5",
|
940
|
+
"member": "string",
|
941
|
+
"name": "DbVersion",
|
942
|
+
"required": false,
|
943
|
+
"type": "string"
|
908
944
|
}
|
909
945
|
],
|
910
946
|
"type": "object"
|
@@ -915,7 +951,7 @@
|
|
915
951
|
{
|
916
952
|
"disabled": false,
|
917
953
|
"document": "自定义错误信息对象\n注意:此字段可能返回 null,表示取不到有效值。",
|
918
|
-
"example": "
|
954
|
+
"example": "{\"ErrorMessage\":\"错误提示消息\"}",
|
919
955
|
"member": "ErrorInfo",
|
920
956
|
"name": "ErrorInfo",
|
921
957
|
"output_required": false,
|
@@ -1879,6 +1915,26 @@
|
|
1879
1915
|
"output_required": false,
|
1880
1916
|
"type": "string",
|
1881
1917
|
"value_allowed_null": true
|
1918
|
+
},
|
1919
|
+
{
|
1920
|
+
"disabled": false,
|
1921
|
+
"document": "数据库schema\n注意:此字段可能返回 null,表示取不到有效值。",
|
1922
|
+
"example": "DB2INST1",
|
1923
|
+
"member": "string",
|
1924
|
+
"name": "Schema",
|
1925
|
+
"output_required": false,
|
1926
|
+
"type": "string",
|
1927
|
+
"value_allowed_null": true
|
1928
|
+
},
|
1929
|
+
{
|
1930
|
+
"disabled": false,
|
1931
|
+
"document": "数据库版本\n注意:此字段可能返回 null,表示取不到有效值。",
|
1932
|
+
"example": "11.5",
|
1933
|
+
"member": "string",
|
1934
|
+
"name": "DbVersion",
|
1935
|
+
"output_required": false,
|
1936
|
+
"type": "string",
|
1937
|
+
"value_allowed_null": true
|
1882
1938
|
}
|
1883
1939
|
],
|
1884
1940
|
"usage": "out"
|
@@ -3625,6 +3681,24 @@
|
|
3625
3681
|
"name": "ClusterId",
|
3626
3682
|
"required": false,
|
3627
3683
|
"type": "string"
|
3684
|
+
},
|
3685
|
+
{
|
3686
|
+
"disabled": false,
|
3687
|
+
"document": "数据库schema",
|
3688
|
+
"example": "DB2INST1",
|
3689
|
+
"member": "string",
|
3690
|
+
"name": "Schema",
|
3691
|
+
"required": false,
|
3692
|
+
"type": "string"
|
3693
|
+
},
|
3694
|
+
{
|
3695
|
+
"disabled": false,
|
3696
|
+
"document": "数据库版本",
|
3697
|
+
"example": "11.5",
|
3698
|
+
"member": "string",
|
3699
|
+
"name": "DbVersion",
|
3700
|
+
"required": false,
|
3701
|
+
"type": "string"
|
3628
3702
|
}
|
3629
3703
|
],
|
3630
3704
|
"type": "object"
|
@@ -3635,7 +3709,7 @@
|
|
3635
3709
|
{
|
3636
3710
|
"disabled": false,
|
3637
3711
|
"document": "自定义错误信息对象\n注意:此字段可能返回 null,表示取不到有效值。",
|
3638
|
-
"example": "
|
3712
|
+
"example": "{\"ErrorMessage\":\"错误提示消息\"}",
|
3639
3713
|
"member": "ErrorInfo",
|
3640
3714
|
"name": "ErrorInfo",
|
3641
3715
|
"output_required": false,
|
@@ -3644,7 +3718,7 @@
|
|
3644
3718
|
},
|
3645
3719
|
{
|
3646
3720
|
"disabled": false,
|
3647
|
-
"document": "
|
3721
|
+
"document": "无\n注意:此字段可能返回 null,表示取不到有效值。",
|
3648
3722
|
"example": "1",
|
3649
3723
|
"member": "string",
|
3650
3724
|
"name": "Data",
|
@@ -3881,6 +3955,24 @@
|
|
3881
3955
|
"name": "RegionId",
|
3882
3956
|
"required": false,
|
3883
3957
|
"type": "string"
|
3958
|
+
},
|
3959
|
+
{
|
3960
|
+
"disabled": false,
|
3961
|
+
"document": "数据库schema",
|
3962
|
+
"example": "DB2INST1",
|
3963
|
+
"member": "string",
|
3964
|
+
"name": "Schema",
|
3965
|
+
"required": false,
|
3966
|
+
"type": "string"
|
3967
|
+
},
|
3968
|
+
{
|
3969
|
+
"disabled": false,
|
3970
|
+
"document": "数据库版本",
|
3971
|
+
"example": "11.5",
|
3972
|
+
"member": "string",
|
3973
|
+
"name": "DbVersion",
|
3974
|
+
"required": false,
|
3975
|
+
"type": "string"
|
3884
3976
|
}
|
3885
3977
|
],
|
3886
3978
|
"type": "object"
|
@@ -3891,7 +3983,7 @@
|
|
3891
3983
|
{
|
3892
3984
|
"disabled": false,
|
3893
3985
|
"document": "自定义错误信息对象\n注意:此字段可能返回 null,表示取不到有效值。",
|
3894
|
-
"example": "
|
3986
|
+
"example": "{\"ErrorMessage\":\"错误提示消息\"}",
|
3895
3987
|
"member": "ErrorInfo",
|
3896
3988
|
"name": "ErrorInfo",
|
3897
3989
|
"output_required": false,
|
@@ -11,17 +11,17 @@
|
|
11
11
|
"CreateDatasource": [
|
12
12
|
{
|
13
13
|
"document": "创建数据源",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: bi.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatasource\n<公共请求参数>\n\n{\n \"DbHost\": \"
|
14
|
+
"input": "POST / HTTP/1.1\nHost: bi.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatasource\n<公共请求参数>\n\n{\n \"DbHost\": \"DbHost\",\n \"DbPort\": 1982493789748932,\n \"ServiceType\": \"ServiceType\",\n \"DbType\": \"DbType\",\n \"Charset\": \"Charset\",\n \"DbUser\": \"DbUser\",\n \"DbPwd\": \"DbPwd\",\n \"DbName\": \"DbName\",\n \"SourceName\": \"SourceName\",\n \"ProjectId\": 1982493789748932,\n \"Catalog\": \"Catalog\",\n \"DataOrigin\": \"DataOrigin\",\n \"DataOriginProjectId\": \"DataOriginProjectId\",\n \"DataOriginDatasourceId\": \"DataOriginDatasourceId\",\n \"ExtraParam\": \"ExtraParam\",\n \"UniqVpcId\": \"UniqVpcId\",\n \"Vip\": \"Vip\",\n \"Vport\": \"Vport\",\n \"VpcId\": \"VpcId\",\n \"OperationAuthLimit\": [\n \"OperationAuthLimit\"\n ],\n \"UseVPC\": false,\n \"RegionId\": \"RegionId\"\n}",
|
15
15
|
"output": "{\n \"Response\": {\n \"Msg\": \"服务器内部错误\",\n \"RequestId\": \"xxx-xx-x\",\n \"Extra\": \"\",\n \"Data\": null,\n \"ErrorInfo\": {\n \"ErrorTip\": \"服务器内部错误\",\n \"ErrorMessage\": \"服务器内部错误\",\n \"ErrorLevel\": \"ERROR\"\n }\n }\n}",
|
16
16
|
"title": "创建数据源"
|
17
17
|
}
|
18
18
|
],
|
19
19
|
"CreateDatasourceCloud": [
|
20
20
|
{
|
21
|
-
"document": "
|
21
|
+
"document": "创建云数据库示例",
|
22
22
|
"input": "POST / HTTP/1.1\nHost: bi.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDatasourceCloud\n<公共请求参数>\n\n{\n \"ServiceType\": \"ServiceType\",\n \"DbType\": \"DbType\",\n \"Charset\": \"Charset\",\n \"DbUser\": \"DbUser\",\n \"DbPwd\": \"DbPwd\",\n \"DbName\": \"DbName\",\n \"SourceName\": \"SourceName\",\n \"ProjectId\": \"ProjectId\",\n \"Vip\": \"Vip\",\n \"Vport\": \"Vport\",\n \"VpcId\": \"VpcId\",\n \"UniqVpcId\": \"UniqVpcId\",\n \"RegionId\": \"RegionId\",\n \"ExtraParam\": \"ExtraParam\",\n \"InstanceId\": \"InstanceId\",\n \"ProdDbName\": \"ProdDbName\",\n \"DataOrigin\": \"DataOrigin\",\n \"DataOriginProjectId\": \"DataOriginProjectId\",\n \"DataOriginDatasourceId\": \"DataOriginDatasourceId\",\n \"ClusterId\": \"ClusterId\"\n}",
|
23
23
|
"output": "{\n \"Response\": {\n \"Data\": {\n \"Id\": 0,\n \"AccessKey\": \"AccessKey***AccessKey\",\n \"ProjectId\": 1,\n \"TranId\": \"jgvk213439\",\n \"TranStatus\": 0\n },\n \"Extra\": \"\",\n \"Msg\": \"成功\",\n \"RequestId\": \"RequestId-123\"\n }\n}",
|
24
|
-
"title": "
|
24
|
+
"title": "创建云数据库示例"
|
25
25
|
}
|
26
26
|
],
|
27
27
|
"CreateEmbedToken": [
|
@@ -173,7 +173,7 @@
|
|
173
173
|
"ModifyDatasource": [
|
174
174
|
{
|
175
175
|
"document": "",
|
176
|
-
"input": "POST / HTTP/1.1\nHost: bi.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDatasource\n<公共请求参数>\n\n{\n \"DbHost\": \"
|
176
|
+
"input": "POST / HTTP/1.1\nHost: bi.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDatasource\n<公共请求参数>\n\n{\n \"DbHost\": \"DbHost\",\n \"DbPort\": 1982493789748932,\n \"ServiceType\": \"ServiceType\",\n \"DbType\": \"DbType\",\n \"Charset\": \"Charset\",\n \"DbUser\": \"DbUser\",\n \"DbPwd\": \"DbPwd\",\n \"DbName\": \"DbName\",\n \"SourceName\": \"SourceName\",\n \"Id\": 1982493789748932,\n \"ProjectId\": 1982493789748932,\n \"Catalog\": \"Catalog\",\n \"DataOrigin\": \"DataOrigin\",\n \"DataOriginProjectId\": \"DataOriginProjectId\",\n \"DataOriginDatasourceId\": \"DataOriginDatasourceId\",\n \"ExtraParam\": \"ExtraParam\",\n \"UniqVpcId\": \"UniqVpcId\",\n \"Vip\": \"Vip\",\n \"Vport\": \"Vport\",\n \"VpcId\": \"VpcId\",\n \"UseVPC\": false,\n \"RegionId\": \"RegionId\"\n}",
|
177
177
|
"output": "{\n \"Response\": {\n \"Msg\": \"服务器内部错误\",\n \"RequestId\": \"xxx-xx-x\",\n \"Extra\": \"\",\n \"Data\": null,\n \"ErrorInfo\": {\n \"ErrorTip\": \"服务器内部错误\",\n \"ErrorMessage\": \"服务器内部错误\",\n \"ErrorLevel\": \"ERROR\"\n }\n }\n}",
|
178
178
|
"title": "更新数据源"
|
179
179
|
}
|
@@ -181,7 +181,7 @@
|
|
181
181
|
"ModifyDatasourceCloud": [
|
182
182
|
{
|
183
183
|
"document": "",
|
184
|
-
"input": "POST / HTTP/1.1\nHost: bi.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDatasourceCloud\n<公共请求参数>\n\n{\n \"
|
184
|
+
"input": "POST / HTTP/1.1\nHost: bi.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDatasourceCloud\n<公共请求参数>\n\n{\n \"ServiceType\": \"ServiceType\",\n \"DbType\": \"DbType\",\n \"Charset\": \"Charset\",\n \"DbUser\": \"DbUser\",\n \"DbPwd\": \"DbPwd\",\n \"DbName\": \"DbName\",\n \"SourceName\": \"SourceName\",\n \"ProjectId\": \"ProjectId\",\n \"Id\": 1982493789748932,\n \"Vip\": \"Vip\",\n \"Vport\": \"Vport\",\n \"VpcId\": \"VpcId\",\n \"UniqVpcId\": \"UniqVpcId\",\n \"RegionId\": \"RegionId\",\n \"ExtraParam\": \"ExtraParam\",\n \"InstanceId\": \"InstanceId\",\n \"ProdDbName\": \"ProdDbName\",\n \"DataOrigin\": \"DataOrigin\",\n \"DataOriginProjectId\": \"DataOriginProjectId\",\n \"DataOriginDatasourceId\": \"DataOriginDatasourceId\",\n \"ClusterId\": \"ClusterId\"\n}",
|
185
185
|
"output": "{\n \"Response\": {\n \"RequestId\": \"63f50c98-1e5b-41bc-9a6a-d630312f8de9\",\n \"Extra\": \"\",\n \"Data\": \"\",\n \"Msg\": \"success\"\n }\n}",
|
186
186
|
"title": "更新云数据库示例"
|
187
187
|
}
|
tccli/services/cam/cam_client.py
CHANGED
@@ -641,6 +641,58 @@ def doDeleteUserPermissionsBoundary(args, parsed_globals):
|
|
641
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
642
|
|
643
643
|
|
644
|
+
def doCreateSubAccountLoginIpPolicy(args, parsed_globals):
|
645
|
+
g_param = parse_global_arg(parsed_globals)
|
646
|
+
|
647
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
648
|
+
cred = credential.CVMRoleCredential()
|
649
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
650
|
+
cred = credential.STSAssumeRoleCredential(
|
651
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
652
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
653
|
+
)
|
654
|
+
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):
|
655
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
656
|
+
else:
|
657
|
+
cred = credential.Credential(
|
658
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
659
|
+
)
|
660
|
+
http_profile = HttpProfile(
|
661
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
662
|
+
reqMethod="POST",
|
663
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
664
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
665
|
+
)
|
666
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
667
|
+
if g_param[OptionsDefine.Language]:
|
668
|
+
profile.language = g_param[OptionsDefine.Language]
|
669
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
670
|
+
client = mod.CamClient(cred, g_param[OptionsDefine.Region], profile)
|
671
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
672
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
+
model = models.CreateSubAccountLoginIpPolicyRequest()
|
674
|
+
model.from_json_string(json.dumps(args))
|
675
|
+
start_time = time.time()
|
676
|
+
while True:
|
677
|
+
rsp = client.CreateSubAccountLoginIpPolicy(model)
|
678
|
+
result = rsp.to_json_string()
|
679
|
+
try:
|
680
|
+
json_obj = json.loads(result)
|
681
|
+
except TypeError as e:
|
682
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
683
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
684
|
+
break
|
685
|
+
cur_time = time.time()
|
686
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
687
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
688
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
689
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
690
|
+
else:
|
691
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
692
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
693
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
|
+
|
695
|
+
|
644
696
|
def doGetServiceLinkedRoleDeletionStatus(args, parsed_globals):
|
645
697
|
g_param = parse_global_arg(parsed_globals)
|
646
698
|
|
@@ -1317,7 +1369,7 @@ def doUpdateAccessKey(args, parsed_globals):
|
|
1317
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1370
|
|
1319
1371
|
|
1320
|
-
def
|
1372
|
+
def doCreateUserOIDCConfig(args, parsed_globals):
|
1321
1373
|
g_param = parse_global_arg(parsed_globals)
|
1322
1374
|
|
1323
1375
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1346,11 +1398,11 @@ def doDeleteOIDCConfig(args, parsed_globals):
|
|
1346
1398
|
client = mod.CamClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
1399
|
client._sdkVersion += ("_CLI_" + __version__)
|
1348
1400
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
-
model = models.
|
1401
|
+
model = models.CreateUserOIDCConfigRequest()
|
1350
1402
|
model.from_json_string(json.dumps(args))
|
1351
1403
|
start_time = time.time()
|
1352
1404
|
while True:
|
1353
|
-
rsp = client.
|
1405
|
+
rsp = client.CreateUserOIDCConfig(model)
|
1354
1406
|
result = rsp.to_json_string()
|
1355
1407
|
try:
|
1356
1408
|
json_obj = json.loads(result)
|
@@ -1837,7 +1889,7 @@ def doCreateSAMLProvider(args, parsed_globals):
|
|
1837
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1890
|
|
1839
1891
|
|
1840
|
-
def
|
1892
|
+
def doDeleteOIDCConfig(args, parsed_globals):
|
1841
1893
|
g_param = parse_global_arg(parsed_globals)
|
1842
1894
|
|
1843
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +1918,11 @@ def doCreateUserOIDCConfig(args, parsed_globals):
|
|
1866
1918
|
client = mod.CamClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
1921
|
+
model = models.DeleteOIDCConfigRequest()
|
1870
1922
|
model.from_json_string(json.dumps(args))
|
1871
1923
|
start_time = time.time()
|
1872
1924
|
while True:
|
1873
|
-
rsp = client.
|
1925
|
+
rsp = client.DeleteOIDCConfig(model)
|
1874
1926
|
result = rsp.to_json_string()
|
1875
1927
|
try:
|
1876
1928
|
json_obj = json.loads(result)
|
@@ -4772,6 +4824,7 @@ ACTION_MAP = {
|
|
4772
4824
|
"GetCustomMFATokenInfo": doGetCustomMFATokenInfo,
|
4773
4825
|
"GetUser": doGetUser,
|
4774
4826
|
"DeleteUserPermissionsBoundary": doDeleteUserPermissionsBoundary,
|
4827
|
+
"CreateSubAccountLoginIpPolicy": doCreateSubAccountLoginIpPolicy,
|
4775
4828
|
"GetServiceLinkedRoleDeletionStatus": doGetServiceLinkedRoleDeletionStatus,
|
4776
4829
|
"DescribeUserOIDCConfig": doDescribeUserOIDCConfig,
|
4777
4830
|
"CreateAccessKey": doCreateAccessKey,
|
@@ -4785,7 +4838,7 @@ ACTION_MAP = {
|
|
4785
4838
|
"ListSAMLProviders": doListSAMLProviders,
|
4786
4839
|
"ListUsersForGroup": doListUsersForGroup,
|
4787
4840
|
"UpdateAccessKey": doUpdateAccessKey,
|
4788
|
-
"
|
4841
|
+
"CreateUserOIDCConfig": doCreateUserOIDCConfig,
|
4789
4842
|
"DeleteAccessKey": doDeleteAccessKey,
|
4790
4843
|
"GetUserAppId": doGetUserAppId,
|
4791
4844
|
"PutRolePermissionsBoundary": doPutRolePermissionsBoundary,
|
@@ -4795,7 +4848,7 @@ ACTION_MAP = {
|
|
4795
4848
|
"DetachRolePolicy": doDetachRolePolicy,
|
4796
4849
|
"DescribeRoleList": doDescribeRoleList,
|
4797
4850
|
"CreateSAMLProvider": doCreateSAMLProvider,
|
4798
|
-
"
|
4851
|
+
"DeleteOIDCConfig": doDeleteOIDCConfig,
|
4799
4852
|
"UpdateOIDCConfig": doUpdateOIDCConfig,
|
4800
4853
|
"DeleteRole": doDeleteRole,
|
4801
4854
|
"UpdateGroup": doUpdateGroup,
|
@@ -112,6 +112,13 @@
|
|
112
112
|
"output": "CreateServiceLinkedRoleResponse",
|
113
113
|
"status": "online"
|
114
114
|
},
|
115
|
+
"CreateSubAccountLoginIpPolicy": {
|
116
|
+
"document": "增加子账号登录IP策略",
|
117
|
+
"input": "CreateSubAccountLoginIpPolicyRequest",
|
118
|
+
"name": "增加子账号登录IP策略",
|
119
|
+
"output": "CreateSubAccountLoginIpPolicyResponse",
|
120
|
+
"status": "online"
|
121
|
+
},
|
115
122
|
"CreateUserOIDCConfig": {
|
116
123
|
"document": "创建用户OIDC配置。只能创建一个用户OIDC身份提供商,并且创建用户OIDC配置之后会自动关闭用户SAML SSO身份提供商。",
|
117
124
|
"input": "CreateUserOIDCConfigRequest",
|
@@ -2115,6 +2122,69 @@
|
|
2115
2122
|
],
|
2116
2123
|
"type": "object"
|
2117
2124
|
},
|
2125
|
+
"CreateSubAccountLoginIpPolicyRequest": {
|
2126
|
+
"document": "CreateSubAccountLoginIpPolicy请求参数结构体",
|
2127
|
+
"members": [
|
2128
|
+
{
|
2129
|
+
"disabled": false,
|
2130
|
+
"document": "IP策略集合",
|
2131
|
+
"example": "无",
|
2132
|
+
"member": "IpPolicy",
|
2133
|
+
"name": "IpPolicies",
|
2134
|
+
"required": false,
|
2135
|
+
"type": "list"
|
2136
|
+
},
|
2137
|
+
{
|
2138
|
+
"disabled": false,
|
2139
|
+
"document": "审批人类型,目前支持的类型有:SubAccountLoginLimitApproval(子账号登录限制审批)",
|
2140
|
+
"example": "SubAccountLoginLimitApproval",
|
2141
|
+
"member": "string",
|
2142
|
+
"name": "ApproverType",
|
2143
|
+
"required": false,
|
2144
|
+
"type": "string"
|
2145
|
+
},
|
2146
|
+
{
|
2147
|
+
"disabled": false,
|
2148
|
+
"document": "被添加为协助审批人的账号ID数组",
|
2149
|
+
"example": "[\"20548499\"]",
|
2150
|
+
"member": "uint64",
|
2151
|
+
"name": "ApproverUin",
|
2152
|
+
"required": false,
|
2153
|
+
"type": "list"
|
2154
|
+
},
|
2155
|
+
{
|
2156
|
+
"disabled": false,
|
2157
|
+
"document": "是否禁用策略:0:不禁用,1:禁用",
|
2158
|
+
"example": "0",
|
2159
|
+
"member": "uint64",
|
2160
|
+
"name": "DisablePolicy",
|
2161
|
+
"required": false,
|
2162
|
+
"type": "int"
|
2163
|
+
},
|
2164
|
+
{
|
2165
|
+
"disabled": false,
|
2166
|
+
"document": "策略类型:1:更新IP策略,2:设置异地登录校验校验规则",
|
2167
|
+
"example": "1",
|
2168
|
+
"member": "uint64",
|
2169
|
+
"name": "PolicyType",
|
2170
|
+
"required": false,
|
2171
|
+
"type": "int"
|
2172
|
+
}
|
2173
|
+
],
|
2174
|
+
"type": "object"
|
2175
|
+
},
|
2176
|
+
"CreateSubAccountLoginIpPolicyResponse": {
|
2177
|
+
"document": "CreateSubAccountLoginIpPolicy返回参数结构体",
|
2178
|
+
"members": [
|
2179
|
+
{
|
2180
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2181
|
+
"member": "string",
|
2182
|
+
"name": "RequestId",
|
2183
|
+
"type": "string"
|
2184
|
+
}
|
2185
|
+
],
|
2186
|
+
"type": "object"
|
2187
|
+
},
|
2118
2188
|
"CreateUserOIDCConfigRequest": {
|
2119
2189
|
"document": "CreateUserOIDCConfig请求参数结构体",
|
2120
2190
|
"members": [
|
@@ -4440,6 +4510,32 @@
|
|
4440
4510
|
],
|
4441
4511
|
"usage": "out"
|
4442
4512
|
},
|
4513
|
+
"IpPolicy": {
|
4514
|
+
"document": "IP限制策略",
|
4515
|
+
"members": [
|
4516
|
+
{
|
4517
|
+
"disabled": false,
|
4518
|
+
"document": "IP段",
|
4519
|
+
"example": "",
|
4520
|
+
"member": "string",
|
4521
|
+
"name": "IP",
|
4522
|
+
"required": true,
|
4523
|
+
"type": "string",
|
4524
|
+
"value_allowed_null": false
|
4525
|
+
},
|
4526
|
+
{
|
4527
|
+
"disabled": false,
|
4528
|
+
"document": "策略效力,Allow或Deny",
|
4529
|
+
"example": "",
|
4530
|
+
"member": "string",
|
4531
|
+
"name": "Effect",
|
4532
|
+
"required": true,
|
4533
|
+
"type": "string",
|
4534
|
+
"value_allowed_null": false
|
4535
|
+
}
|
4536
|
+
],
|
4537
|
+
"usage": "both"
|
4538
|
+
},
|
4443
4539
|
"ListAccessKeysRequest": {
|
4444
4540
|
"document": "ListAccessKeys请求参数结构体",
|
4445
4541
|
"members": [
|
@@ -128,6 +128,14 @@
|
|
128
128
|
"title": "创建服务相关角色"
|
129
129
|
}
|
130
130
|
],
|
131
|
+
"CreateSubAccountLoginIpPolicy": [
|
132
|
+
{
|
133
|
+
"document": "",
|
134
|
+
"input": "POST / HTTP/1.1\nHost: cam.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSubAccountLoginIpPolicy\n<公共请求参数>\n\n{\n \"ApproverType\": \"SubAccountLoginLimitApproval\",\n \"IpPolicies\": [\n {\n \"IP\": \"192.168.1.171\",\n \"Effect\": \"Allow\"\n }\n ],\n \"PolicyType\": \"1\",\n \"DisablePolicy\": \"0\"\n}",
|
135
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"9ad60b60-222f-4e22-8350-3227bebaa3dd\"\n }\n}",
|
136
|
+
"title": "增加子账号登录IP策略"
|
137
|
+
}
|
138
|
+
],
|
131
139
|
"CreateUserOIDCConfig": [
|
132
140
|
{
|
133
141
|
"document": "",
|