tccli 3.0.845.1__py2.py3-none-any.whl → 3.0.847.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/billing/v20180709/api.json +18 -62
  3. tccli/services/billing/v20180709/examples.json +8 -8
  4. tccli/services/cat/v20180409/api.json +0 -28
  5. tccli/services/cat/v20180409/examples.json +7 -7
  6. tccli/services/ccc/v20200210/api.json +16 -7
  7. tccli/services/ccc/v20200210/examples.json +2 -2
  8. tccli/services/cdb/v20170320/api.json +71 -50
  9. tccli/services/cdb/v20170320/examples.json +4 -4
  10. tccli/services/cdn/v20180606/api.json +1 -11
  11. tccli/services/cdn/v20180606/examples.json +1 -1
  12. tccli/services/ckafka/v20190819/api.json +8 -5
  13. tccli/services/ckafka/v20190819/examples.json +3 -3
  14. tccli/services/cls/v20201016/api.json +44 -33
  15. tccli/services/cls/v20201016/examples.json +3 -3
  16. tccli/services/cvm/v20170312/api.json +2 -4
  17. tccli/services/dbbrain/v20210527/api.json +36 -30
  18. tccli/services/dcdb/dcdb_client.py +53 -0
  19. tccli/services/dcdb/v20180411/api.json +812 -157
  20. tccli/services/dcdb/v20180411/examples.json +8 -0
  21. tccli/services/dlc/v20210125/api.json +9 -0
  22. tccli/services/emr/v20190103/api.json +9 -29
  23. tccli/services/ess/ess_client.py +273 -8
  24. tccli/services/ess/v20201111/api.json +639 -89
  25. tccli/services/ess/v20201111/examples.json +58 -6
  26. tccli/services/essbasic/essbasic_client.py +159 -0
  27. tccli/services/essbasic/v20210526/api.json +287 -3
  28. tccli/services/essbasic/v20210526/examples.json +24 -0
  29. tccli/services/iotexplorer/v20190423/api.json +25 -33
  30. tccli/services/iotexplorer/v20190423/examples.json +9 -9
  31. tccli/services/mariadb/mariadb_client.py +53 -0
  32. tccli/services/mariadb/v20170312/api.json +520 -0
  33. tccli/services/mariadb/v20170312/examples.json +8 -0
  34. tccli/services/monitor/v20180724/api.json +10 -11
  35. tccli/services/monitor/v20180724/examples.json +5 -5
  36. tccli/services/mps/v20190612/api.json +2 -7
  37. tccli/services/ocr/v20181119/api.json +73 -89
  38. tccli/services/ocr/v20181119/examples.json +23 -23
  39. tccli/services/redis/redis_client.py +53 -0
  40. tccli/services/redis/v20180412/api.json +214 -0
  41. tccli/services/redis/v20180412/examples.json +8 -0
  42. tccli/services/tcss/v20201101/api.json +40 -7
  43. tccli/services/tcss/v20201101/examples.json +3 -3
  44. tccli/services/tdid/v20210519/api.json +68 -68
  45. tccli/services/tiw/tiw_client.py +1403 -78
  46. tccli/services/tiw/v20190919/api.json +2439 -461
  47. tccli/services/tiw/v20190919/examples.json +200 -0
  48. tccli/services/trtc/v20190722/api.json +41 -29
  49. tccli/services/trtc/v20190722/examples.json +10 -10
  50. tccli/services/vpc/v20170312/api.json +15 -27
  51. tccli/services/vpc/v20170312/examples.json +6 -6
  52. tccli/services/waf/v20180125/api.json +50 -6
  53. tccli/services/waf/v20180125/examples.json +2 -2
  54. {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/METADATA +2 -2
  55. {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/RECORD +59 -59
  56. {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/LICENSE +0 -0
  57. {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/WHEEL +0 -0
  58. {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/entry_points.txt +0 -0
  59. {tccli-3.0.845.1.dist-info → tccli-3.0.847.1.dist-info}/top_level.txt +0 -0
@@ -136,6 +136,14 @@
136
136
  "title": "查询云数据库同步模式"
137
137
  }
138
138
  ],
139
+ "DescribeDCDBInstanceDetail": [
140
+ {
141
+ "document": "",
142
+ "input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDCDBInstanceDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"dcdbt-21dfpcv1\"\n}",
143
+ "output": "{\n \"Response\": {\n \"AutoRenewFlag\": 0,\n \"Cpu\": 3,\n \"CreateTime\": \"2016-07-13 11:08:38\",\n \"DbEngine\": \"MariaDB\",\n \"DbVersion\": \"10.0.10\",\n \"DcnDstNum\": 0,\n \"DcnFlag\": 0,\n \"DcnStatus\": 0,\n \"ExclusterId\": \"\",\n \"InstanceId\": \"dcdbt-21dfpcv1\",\n \"InstanceName\": \"dcdbt-21dfpcv1\",\n \"InstanceType\": 2,\n \"Ipv6Flag\": 0,\n \"IsAuditSupported\": 1,\n \"IsEncryptSupported\": 0,\n \"LogStorage\": 16,\n \"Machine\": \"TS85\",\n \"MasterZone\": \"ap-guangzhou-1\",\n \"Memory\": 6,\n \"NodeCount\": 2,\n \"PayMode\": \"prepaid\",\n \"PeriodEndTime\": \"2023-01-01 11:12:24\",\n \"Pid\": 1001670,\n \"ProjectId\": 0,\n \"Qps\": 4000,\n \"Region\": \"ap-guangzhou\",\n \"RequestId\": \"e1828feb-9a21-409a-8964-309215615d84\",\n \"ResourceTags\": [],\n \"Shards\": [\n {\n \"Cpu\": 2,\n \"CreateTime\": \"2021-12-01 11:49:54\",\n \"LogDisk\": 8,\n \"Memory\": 4,\n \"NodeCount\": 2,\n \"NodesInfo\": [\n {\n \"NodeId\": \"85409b834943\",\n \"Role\": \"master\"\n },\n {\n \"NodeId\": \"9de9c0321ccd\",\n \"Role\": \"slave\"\n }\n ],\n \"ProxyVersion\": \"\\\"1.17.6-M-V2.0R723D002\\\"\",\n \"ShardInstanceId\": \"shard-ngbrea6b\",\n \"ShardMasterZone\": \"ap-guangzhou-1\",\n \"ShardSerialId\": \"set_1643096858_1\",\n \"ShardSlaveZones\": [\n \"ap-guangzhou-1\"\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 10,\n \"StorageUsage\": 0.01\n },\n {\n \"Cpu\": 1,\n \"CreateTime\": \"2021-12-01 11:49:54\",\n \"LogDisk\": 8,\n \"Memory\": 2,\n \"NodeCount\": 2,\n \"NodesInfo\": [\n {\n \"NodeId\": \"1e2025d21782\",\n \"Role\": \"master\"\n },\n {\n \"NodeId\": \"b228c46e9b63\",\n \"Role\": \"slave\"\n }\n ],\n \"ProxyVersion\": \"\\\"1.17.6-M-V2.0R723D002\\\"\",\n \"ShardInstanceId\": \"shard-5zf65smf\",\n \"ShardMasterZone\": \"ap-guangzhou-1\",\n \"ShardSerialId\": \"set_1643096949_3\",\n \"ShardSlaveZones\": [\n \"ap-guangzhou-1\"\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 10,\n \"StorageUsage\": 0.011\n }\n ],\n \"SlaveZones\": [\n \"ap-guangzhou-1\"\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 20,\n \"StorageUsage\": 0.0105,\n \"SubnetId\": \"subnet-ovkcc9x6\",\n \"Vip\": \"10.1.0.5\",\n \"Vip6\": \"\",\n \"VpcId\": \"vpc-j97vcvb5\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanPort\": 0,\n \"WanPortIpv6\": 0,\n \"WanStatus\": 0,\n \"WanStatusIpv6\": 0,\n \"WanVip\": \"\",\n \"WanVipv6\": \"\",\n \"IsMaxUserConnectionsSupported\": true,\n \"DbVersionId\": \"xx\",\n \"EncryptStatus\": 0,\n \"ExclusterType\": 0\n }\n}",
144
+ "title": "无"
145
+ }
146
+ ],
139
147
  "DescribeDCDBInstanceNodeInfo": [
140
148
  {
141
149
  "document": "",
@@ -9515,6 +9515,15 @@
9515
9515
  "required": false,
9516
9516
  "type": "int",
9517
9517
  "value_allowed_null": true
9518
+ },
9519
+ {
9520
+ "document": "镜像版本\n注意:此字段可能返回 null,表示取不到有效值。",
9521
+ "example": "pyspark3.2",
9522
+ "member": "string",
9523
+ "name": "SparkImageVersion",
9524
+ "required": false,
9525
+ "type": "string",
9526
+ "value_allowed_null": true
9518
9527
  }
9519
9528
  ],
9520
9529
  "usage": "out"
@@ -2903,7 +2903,6 @@
2903
2903
  "document": "集群列表返回示例",
2904
2904
  "members": [
2905
2905
  {
2906
- "default": "",
2907
2906
  "document": "集群ID",
2908
2907
  "example": "emr-xxxx",
2909
2908
  "member": "string",
@@ -2913,7 +2912,6 @@
2913
2912
  "value_allowed_null": false
2914
2913
  },
2915
2914
  {
2916
- "default": "",
2917
2915
  "document": "状态描述\n注意:此字段可能返回 null,表示取不到有效值。",
2918
2916
  "example": "状态描述",
2919
2917
  "member": "string",
@@ -2923,7 +2921,6 @@
2923
2921
  "value_allowed_null": true
2924
2922
  },
2925
2923
  {
2926
- "default": "",
2927
2924
  "document": "集群名字",
2928
2925
  "example": "集群名字",
2929
2926
  "member": "string",
@@ -2933,7 +2930,6 @@
2933
2930
  "value_allowed_null": false
2934
2931
  },
2935
2932
  {
2936
- "default": "",
2937
2933
  "document": "集群地域",
2938
2934
  "example": "集群地域",
2939
2935
  "member": "uint64",
@@ -2943,7 +2939,6 @@
2943
2939
  "value_allowed_null": false
2944
2940
  },
2945
2941
  {
2946
- "default": "",
2947
2942
  "document": "用户APPID",
2948
2943
  "example": "663622",
2949
2944
  "member": "uint64",
@@ -2953,7 +2948,6 @@
2953
2948
  "value_allowed_null": false
2954
2949
  },
2955
2950
  {
2956
- "default": "",
2957
2951
  "document": "创建时间",
2958
2952
  "example": "创建时间",
2959
2953
  "member": "string",
@@ -2963,7 +2957,6 @@
2963
2957
  "value_allowed_null": false
2964
2958
  },
2965
2959
  {
2966
- "default": "",
2967
2960
  "document": "运行时间",
2968
2961
  "example": "运行时间",
2969
2962
  "member": "string",
@@ -2973,7 +2966,6 @@
2973
2966
  "value_allowed_null": false
2974
2967
  },
2975
2968
  {
2976
- "default": "",
2977
2969
  "document": "集群IP",
2978
2970
  "example": "集群ID",
2979
2971
  "member": "string",
@@ -2983,7 +2975,6 @@
2983
2975
  "value_allowed_null": false
2984
2976
  },
2985
2977
  {
2986
- "default": "",
2987
2978
  "document": "集群版本",
2988
2979
  "example": "集群版本",
2989
2980
  "member": "string",
@@ -2993,7 +2984,6 @@
2993
2984
  "value_allowed_null": false
2994
2985
  },
2995
2986
  {
2996
- "default": "",
2997
2987
  "document": "集群计费类型",
2998
2988
  "example": "0",
2999
2989
  "member": "uint64",
@@ -3003,7 +2993,6 @@
3003
2993
  "value_allowed_null": false
3004
2994
  },
3005
2995
  {
3006
- "default": "",
3007
2996
  "document": "emr ID",
3008
2997
  "example": "23321",
3009
2998
  "member": "uint64",
@@ -3013,7 +3002,6 @@
3013
3002
  "value_allowed_null": false
3014
3003
  },
3015
3004
  {
3016
- "default": "",
3017
3005
  "document": "产品ID\n注意:此字段可能返回 null,表示取不到有效值。",
3018
3006
  "example": "44333",
3019
3007
  "member": "uint64",
@@ -3023,7 +3011,6 @@
3023
3011
  "value_allowed_null": true
3024
3012
  },
3025
3013
  {
3026
- "default": "",
3027
3014
  "document": "项目ID\n注意:此字段可能返回 null,表示取不到有效值。",
3028
3015
  "example": "4555",
3029
3016
  "member": "uint64",
@@ -3033,7 +3020,6 @@
3033
3020
  "value_allowed_null": true
3034
3021
  },
3035
3022
  {
3036
- "default": "",
3037
3023
  "document": "区域\n注意:此字段可能返回 null,表示取不到有效值。",
3038
3024
  "example": "4552",
3039
3025
  "member": "uint64",
@@ -3043,7 +3029,6 @@
3043
3029
  "value_allowed_null": true
3044
3030
  },
3045
3031
  {
3046
- "default": "",
3047
3032
  "document": "子网ID\n注意:此字段可能返回 null,表示取不到有效值。",
3048
3033
  "example": "3422",
3049
3034
  "member": "uint64",
@@ -3053,7 +3038,6 @@
3053
3038
  "value_allowed_null": true
3054
3039
  },
3055
3040
  {
3056
- "default": "",
3057
3041
  "document": "网络ID\n注意:此字段可能返回 null,表示取不到有效值。",
3058
3042
  "example": "45666",
3059
3043
  "member": "uint64",
@@ -3063,7 +3047,6 @@
3063
3047
  "value_allowed_null": true
3064
3048
  },
3065
3049
  {
3066
- "default": "",
3067
3050
  "document": "地区\n注意:此字段可能返回 null,表示取不到有效值。",
3068
3051
  "example": "zone",
3069
3052
  "member": "string",
@@ -3073,7 +3056,6 @@
3073
3056
  "value_allowed_null": true
3074
3057
  },
3075
3058
  {
3076
- "default": "",
3077
3059
  "document": "状态码\n注意:此字段可能返回 null,表示取不到有效值。",
3078
3060
  "example": "1",
3079
3061
  "member": "uint64",
@@ -3083,7 +3065,6 @@
3083
3065
  "value_allowed_null": true
3084
3066
  },
3085
3067
  {
3086
- "default": "",
3087
3068
  "document": "实例标签\n注意:此字段可能返回 null,表示取不到有效值。",
3088
3069
  "example": "[]",
3089
3070
  "member": "Tag",
@@ -3093,7 +3074,6 @@
3093
3074
  "value_allowed_null": true
3094
3075
  },
3095
3076
  {
3096
- "default": "",
3097
3077
  "document": "告警信息\n注意:此字段可能返回 null,表示取不到有效值。",
3098
3078
  "example": "告警信息",
3099
3079
  "member": "string",
@@ -3103,7 +3083,6 @@
3103
3083
  "value_allowed_null": true
3104
3084
  },
3105
3085
  {
3106
- "default": "",
3107
3086
  "document": "是否是woodpecker集群\n注意:此字段可能返回 null,表示取不到有效值。",
3108
3087
  "example": "1",
3109
3088
  "member": "uint64",
@@ -3113,7 +3092,6 @@
3113
3092
  "value_allowed_null": true
3114
3093
  },
3115
3094
  {
3116
- "default": "",
3117
3095
  "document": "Vpc中文\n注意:此字段可能返回 null,表示取不到有效值。",
3118
3096
  "example": "emr",
3119
3097
  "member": "string",
@@ -3123,7 +3101,6 @@
3123
3101
  "value_allowed_null": true
3124
3102
  },
3125
3103
  {
3126
- "default": "",
3127
3104
  "document": "子网中文\n注意:此字段可能返回 null,表示取不到有效值。",
3128
3105
  "example": "emr",
3129
3106
  "member": "string",
@@ -3133,7 +3110,6 @@
3133
3110
  "value_allowed_null": true
3134
3111
  },
3135
3112
  {
3136
- "default": "",
3137
3113
  "document": "字符串VpcId\n注意:此字段可能返回 null,表示取不到有效值。",
3138
3114
  "example": "vpc-lzd3w8jz",
3139
3115
  "member": "string",
@@ -3143,7 +3119,6 @@
3143
3119
  "value_allowed_null": true
3144
3120
  },
3145
3121
  {
3146
- "default": "",
3147
3122
  "document": "字符串子网\n注意:此字段可能返回 null,表示取不到有效值。",
3148
3123
  "example": "subnet-3d73yezg",
3149
3124
  "member": "string",
@@ -3153,7 +3128,6 @@
3153
3128
  "value_allowed_null": true
3154
3129
  },
3155
3130
  {
3156
- "default": "",
3157
3131
  "document": "集群类型\n注意:此字段可能返回 null,表示取不到有效值。",
3158
3132
  "example": "spark",
3159
3133
  "member": "string",
@@ -3163,7 +3137,6 @@
3163
3137
  "value_allowed_null": true
3164
3138
  },
3165
3139
  {
3166
- "default": "",
3167
3140
  "document": "是否为跨AZ集群\n注意:此字段可能返回 null,表示取不到有效值。",
3168
3141
  "example": "true",
3169
3142
  "member": "bool",
@@ -3173,7 +3146,6 @@
3173
3146
  "value_allowed_null": true
3174
3147
  },
3175
3148
  {
3176
- "default": "",
3177
3149
  "document": "是否手戳集群\n注意:此字段可能返回 null,表示取不到有效值。",
3178
3150
  "example": "false",
3179
3151
  "member": "bool",
@@ -3183,7 +3155,6 @@
3183
3155
  "value_allowed_null": true
3184
3156
  },
3185
3157
  {
3186
- "default": "",
3187
3158
  "document": "体外客户端组件信息\n注意:此字段可能返回 null,表示取不到有效值。",
3188
3159
  "example": "[\"hdfs-2.8.5\",true]",
3189
3160
  "member": "SoftDependInfo",
@@ -3191,6 +3162,15 @@
3191
3162
  "required": true,
3192
3163
  "type": "list",
3193
3164
  "value_allowed_null": true
3165
+ },
3166
+ {
3167
+ "document": "当前集群的应用场景是否支持体外客户端\n注意:此字段可能返回 null,表示取不到有效值。",
3168
+ "example": "true",
3169
+ "member": "bool",
3170
+ "name": "IsSupportOutsideCluster",
3171
+ "required": false,
3172
+ "type": "bool",
3173
+ "value_allowed_null": true
3194
3174
  }
3195
3175
  ],
3196
3176
  "usage": "out"
@@ -589,6 +589,58 @@ def doCreateBatchCancelFlowUrl(args, parsed_globals):
589
589
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
590
 
591
591
 
592
+ def doCreatePreparedPersonalEsign(args, parsed_globals):
593
+ g_param = parse_global_arg(parsed_globals)
594
+
595
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
596
+ cred = credential.CVMRoleCredential()
597
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
598
+ cred = credential.STSAssumeRoleCredential(
599
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
600
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
601
+ )
602
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
603
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
604
+ else:
605
+ cred = credential.Credential(
606
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
607
+ )
608
+ http_profile = HttpProfile(
609
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
610
+ reqMethod="POST",
611
+ endpoint=g_param[OptionsDefine.Endpoint],
612
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
613
+ )
614
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
615
+ if g_param[OptionsDefine.Language]:
616
+ profile.language = g_param[OptionsDefine.Language]
617
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
618
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
619
+ client._sdkVersion += ("_CLI_" + __version__)
620
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
621
+ model = models.CreatePreparedPersonalEsignRequest()
622
+ model.from_json_string(json.dumps(args))
623
+ start_time = time.time()
624
+ while True:
625
+ rsp = client.CreatePreparedPersonalEsign(model)
626
+ result = rsp.to_json_string()
627
+ try:
628
+ json_obj = json.loads(result)
629
+ except TypeError as e:
630
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
631
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
632
+ break
633
+ cur_time = time.time()
634
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
635
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
636
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
637
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
638
+ else:
639
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
640
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
641
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
+
643
+
592
644
  def doCreateFlowApprovers(args, parsed_globals):
593
645
  g_param = parse_global_arg(parsed_globals)
594
646
 
@@ -641,6 +693,58 @@ def doCreateFlowApprovers(args, parsed_globals):
641
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
694
 
643
695
 
696
+ def doDeleteIntegrationRoleUsers(args, parsed_globals):
697
+ g_param = parse_global_arg(parsed_globals)
698
+
699
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
700
+ cred = credential.CVMRoleCredential()
701
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
702
+ cred = credential.STSAssumeRoleCredential(
703
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
704
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
705
+ )
706
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
707
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
708
+ else:
709
+ cred = credential.Credential(
710
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
711
+ )
712
+ http_profile = HttpProfile(
713
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
714
+ reqMethod="POST",
715
+ endpoint=g_param[OptionsDefine.Endpoint],
716
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
717
+ )
718
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
719
+ if g_param[OptionsDefine.Language]:
720
+ profile.language = g_param[OptionsDefine.Language]
721
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
722
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
723
+ client._sdkVersion += ("_CLI_" + __version__)
724
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
+ model = models.DeleteIntegrationRoleUsersRequest()
726
+ model.from_json_string(json.dumps(args))
727
+ start_time = time.time()
728
+ while True:
729
+ rsp = client.DeleteIntegrationRoleUsers(model)
730
+ result = rsp.to_json_string()
731
+ try:
732
+ json_obj = json.loads(result)
733
+ except TypeError as e:
734
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
735
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
736
+ break
737
+ cur_time = time.time()
738
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
739
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
740
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
741
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
742
+ else:
743
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
744
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
745
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
+
747
+
644
748
  def doCreateFlowSignReview(args, parsed_globals):
645
749
  g_param = parse_global_arg(parsed_globals)
646
750
 
@@ -1057,7 +1161,7 @@ def doDescribeUserAutoSignStatus(args, parsed_globals):
1057
1161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
1162
 
1059
1163
 
1060
- def doDescribeFlowEvidenceReport(args, parsed_globals):
1164
+ def doDisableUserAutoSign(args, parsed_globals):
1061
1165
  g_param = parse_global_arg(parsed_globals)
1062
1166
 
1063
1167
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1086,11 +1190,11 @@ def doDescribeFlowEvidenceReport(args, parsed_globals):
1086
1190
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1087
1191
  client._sdkVersion += ("_CLI_" + __version__)
1088
1192
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1089
- model = models.DescribeFlowEvidenceReportRequest()
1193
+ model = models.DisableUserAutoSignRequest()
1090
1194
  model.from_json_string(json.dumps(args))
1091
1195
  start_time = time.time()
1092
1196
  while True:
1093
- rsp = client.DescribeFlowEvidenceReport(model)
1197
+ rsp = client.DisableUserAutoSign(model)
1094
1198
  result = rsp.to_json_string()
1095
1199
  try:
1096
1200
  json_obj = json.loads(result)
@@ -1161,6 +1265,58 @@ def doCreateFlowByFiles(args, parsed_globals):
1161
1265
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1162
1266
 
1163
1267
 
1268
+ def doDescribeIntegrationRoles(args, parsed_globals):
1269
+ g_param = parse_global_arg(parsed_globals)
1270
+
1271
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1272
+ cred = credential.CVMRoleCredential()
1273
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1274
+ cred = credential.STSAssumeRoleCredential(
1275
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1276
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1277
+ )
1278
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1279
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1280
+ else:
1281
+ cred = credential.Credential(
1282
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1283
+ )
1284
+ http_profile = HttpProfile(
1285
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1286
+ reqMethod="POST",
1287
+ endpoint=g_param[OptionsDefine.Endpoint],
1288
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1289
+ )
1290
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1291
+ if g_param[OptionsDefine.Language]:
1292
+ profile.language = g_param[OptionsDefine.Language]
1293
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1294
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1295
+ client._sdkVersion += ("_CLI_" + __version__)
1296
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1297
+ model = models.DescribeIntegrationRolesRequest()
1298
+ model.from_json_string(json.dumps(args))
1299
+ start_time = time.time()
1300
+ while True:
1301
+ rsp = client.DescribeIntegrationRoles(model)
1302
+ result = rsp.to_json_string()
1303
+ try:
1304
+ json_obj = json.loads(result)
1305
+ except TypeError as e:
1306
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1307
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1308
+ break
1309
+ cur_time = time.time()
1310
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1311
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1312
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1313
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1314
+ else:
1315
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1316
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1317
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
+
1319
+
1164
1320
  def doCreateMultiFlowSignQRCode(args, parsed_globals):
1165
1321
  g_param = parse_global_arg(parsed_globals)
1166
1322
 
@@ -1525,6 +1681,58 @@ def doDescribeFlowBriefs(args, parsed_globals):
1525
1681
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
1682
 
1527
1683
 
1684
+ def doCreateIntegrationUserRoles(args, parsed_globals):
1685
+ g_param = parse_global_arg(parsed_globals)
1686
+
1687
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1688
+ cred = credential.CVMRoleCredential()
1689
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1690
+ cred = credential.STSAssumeRoleCredential(
1691
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1692
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1693
+ )
1694
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1695
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1696
+ else:
1697
+ cred = credential.Credential(
1698
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1699
+ )
1700
+ http_profile = HttpProfile(
1701
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1702
+ reqMethod="POST",
1703
+ endpoint=g_param[OptionsDefine.Endpoint],
1704
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1705
+ )
1706
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1707
+ if g_param[OptionsDefine.Language]:
1708
+ profile.language = g_param[OptionsDefine.Language]
1709
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1710
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1711
+ client._sdkVersion += ("_CLI_" + __version__)
1712
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1713
+ model = models.CreateIntegrationUserRolesRequest()
1714
+ model.from_json_string(json.dumps(args))
1715
+ start_time = time.time()
1716
+ while True:
1717
+ rsp = client.CreateIntegrationUserRoles(model)
1718
+ result = rsp.to_json_string()
1719
+ try:
1720
+ json_obj = json.loads(result)
1721
+ except TypeError as e:
1722
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1723
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1724
+ break
1725
+ cur_time = time.time()
1726
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1727
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1728
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1729
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1730
+ else:
1731
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1732
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1733
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
+
1735
+
1528
1736
  def doUploadFiles(args, parsed_globals):
1529
1737
  g_param = parse_global_arg(parsed_globals)
1530
1738
 
@@ -1681,7 +1889,7 @@ def doDescribeIntegrationMainOrganizationUser(args, parsed_globals):
1681
1889
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1890
 
1683
1891
 
1684
- def doDisableUserAutoSign(args, parsed_globals):
1892
+ def doDescribeFlowEvidenceReport(args, parsed_globals):
1685
1893
  g_param = parse_global_arg(parsed_globals)
1686
1894
 
1687
1895
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1710,11 +1918,11 @@ def doDisableUserAutoSign(args, parsed_globals):
1710
1918
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1711
1919
  client._sdkVersion += ("_CLI_" + __version__)
1712
1920
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1713
- model = models.DisableUserAutoSignRequest()
1921
+ model = models.DescribeFlowEvidenceReportRequest()
1714
1922
  model.from_json_string(json.dumps(args))
1715
1923
  start_time = time.time()
1716
1924
  while True:
1717
- rsp = client.DisableUserAutoSign(model)
1925
+ rsp = client.DescribeFlowEvidenceReport(model)
1718
1926
  result = rsp.to_json_string()
1719
1927
  try:
1720
1928
  json_obj = json.loads(result)
@@ -1993,6 +2201,58 @@ def doCreateIntegrationEmployees(args, parsed_globals):
1993
2201
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
2202
 
1995
2203
 
2204
+ def doUpdateIntegrationEmployees(args, parsed_globals):
2205
+ g_param = parse_global_arg(parsed_globals)
2206
+
2207
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2208
+ cred = credential.CVMRoleCredential()
2209
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2210
+ cred = credential.STSAssumeRoleCredential(
2211
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2212
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2213
+ )
2214
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2215
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2216
+ else:
2217
+ cred = credential.Credential(
2218
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2219
+ )
2220
+ http_profile = HttpProfile(
2221
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2222
+ reqMethod="POST",
2223
+ endpoint=g_param[OptionsDefine.Endpoint],
2224
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2225
+ )
2226
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2227
+ if g_param[OptionsDefine.Language]:
2228
+ profile.language = g_param[OptionsDefine.Language]
2229
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2230
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
2231
+ client._sdkVersion += ("_CLI_" + __version__)
2232
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2233
+ model = models.UpdateIntegrationEmployeesRequest()
2234
+ model.from_json_string(json.dumps(args))
2235
+ start_time = time.time()
2236
+ while True:
2237
+ rsp = client.UpdateIntegrationEmployees(model)
2238
+ result = rsp.to_json_string()
2239
+ try:
2240
+ json_obj = json.loads(result)
2241
+ except TypeError as e:
2242
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2243
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2244
+ break
2245
+ cur_time = time.time()
2246
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2247
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2248
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2249
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2250
+ else:
2251
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2252
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2253
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
+
2255
+
1996
2256
  CLIENT_MAP = {
1997
2257
  "v20201111": ess_client_v20201111,
1998
2258
 
@@ -2015,7 +2275,9 @@ ACTION_MAP = {
2015
2275
  "CreateFlowEvidenceReport": doCreateFlowEvidenceReport,
2016
2276
  "VerifyPdf": doVerifyPdf,
2017
2277
  "CreateBatchCancelFlowUrl": doCreateBatchCancelFlowUrl,
2278
+ "CreatePreparedPersonalEsign": doCreatePreparedPersonalEsign,
2018
2279
  "CreateFlowApprovers": doCreateFlowApprovers,
2280
+ "DeleteIntegrationRoleUsers": doDeleteIntegrationRoleUsers,
2019
2281
  "CreateFlowSignReview": doCreateFlowSignReview,
2020
2282
  "CreatePrepareFlow": doCreatePrepareFlow,
2021
2283
  "CreateDocument": doCreateDocument,
@@ -2024,8 +2286,9 @@ ACTION_MAP = {
2024
2286
  "CreateFlow": doCreateFlow,
2025
2287
  "CreateReleaseFlow": doCreateReleaseFlow,
2026
2288
  "DescribeUserAutoSignStatus": doDescribeUserAutoSignStatus,
2027
- "DescribeFlowEvidenceReport": doDescribeFlowEvidenceReport,
2289
+ "DisableUserAutoSign": doDisableUserAutoSign,
2028
2290
  "CreateFlowByFiles": doCreateFlowByFiles,
2291
+ "DescribeIntegrationRoles": doDescribeIntegrationRoles,
2029
2292
  "CreateMultiFlowSignQRCode": doCreateMultiFlowSignQRCode,
2030
2293
  "GetTaskResultApi": doGetTaskResultApi,
2031
2294
  "CancelMultiFlowSignQRCode": doCancelMultiFlowSignQRCode,
@@ -2033,15 +2296,17 @@ ACTION_MAP = {
2033
2296
  "CreateFlowReminds": doCreateFlowReminds,
2034
2297
  "CreateConvertTaskApi": doCreateConvertTaskApi,
2035
2298
  "DescribeFlowBriefs": doDescribeFlowBriefs,
2299
+ "CreateIntegrationUserRoles": doCreateIntegrationUserRoles,
2036
2300
  "UploadFiles": doUploadFiles,
2037
2301
  "CreateFlowSignUrl": doCreateFlowSignUrl,
2038
2302
  "DescribeIntegrationMainOrganizationUser": doDescribeIntegrationMainOrganizationUser,
2039
- "DisableUserAutoSign": doDisableUserAutoSign,
2303
+ "DescribeFlowEvidenceReport": doDescribeFlowEvidenceReport,
2040
2304
  "DescribeOrganizationSeals": doDescribeOrganizationSeals,
2041
2305
  "DeleteIntegrationEmployees": doDeleteIntegrationEmployees,
2042
2306
  "CreateSchemeUrl": doCreateSchemeUrl,
2043
2307
  "DescribeThirdPartyAuthCode": doDescribeThirdPartyAuthCode,
2044
2308
  "CreateIntegrationEmployees": doCreateIntegrationEmployees,
2309
+ "UpdateIntegrationEmployees": doUpdateIntegrationEmployees,
2045
2310
 
2046
2311
  }
2047
2312