tccli 3.0.1266.1__py2.py3-none-any.whl → 3.0.1267.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.
Files changed (30) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/antiddos/v20200309/api.json +12 -6
  3. tccli/services/antiddos/v20200309/examples.json +2 -2
  4. tccli/services/ccc/v20200210/api.json +2 -2
  5. tccli/services/emr/v20190103/api.json +11 -1
  6. tccli/services/ess/ess_client.py +159 -0
  7. tccli/services/ess/v20201111/api.json +350 -2
  8. tccli/services/ess/v20201111/examples.json +36 -0
  9. tccli/services/gme/v20180711/api.json +77 -39
  10. tccli/services/gme/v20180711/examples.json +2 -2
  11. tccli/services/hunyuan/v20230901/api.json +5 -5
  12. tccli/services/hunyuan/v20230901/examples.json +6 -6
  13. tccli/services/lcic/v20220817/api.json +18 -18
  14. tccli/services/lighthouse/v20200324/api.json +10 -10
  15. tccli/services/live/v20180801/api.json +1 -1
  16. tccli/services/lkeap/v20240522/api.json +3 -3
  17. tccli/services/mps/v20190612/api.json +40 -0
  18. tccli/services/ocr/v20181119/api.json +22 -2
  19. tccli/services/redis/v20180412/api.json +40 -40
  20. tccli/services/smop/v20201203/api.json +34 -34
  21. tccli/services/vms/v20200902/api.json +2 -2
  22. tccli/services/vpc/v20170312/api.json +997 -9
  23. tccli/services/vpc/v20170312/examples.json +100 -4
  24. tccli/services/vpc/vpc_client.py +690 -54
  25. tccli/services/wedata/v20210820/api.json +79 -3
  26. {tccli-3.0.1266.1.dist-info → tccli-3.0.1267.1.dist-info}/METADATA +2 -2
  27. {tccli-3.0.1266.1.dist-info → tccli-3.0.1267.1.dist-info}/RECORD +30 -30
  28. {tccli-3.0.1266.1.dist-info → tccli-3.0.1267.1.dist-info}/WHEEL +0 -0
  29. {tccli-3.0.1266.1.dist-info → tccli-3.0.1267.1.dist-info}/entry_points.txt +0 -0
  30. {tccli-3.0.1266.1.dist-info → tccli-3.0.1267.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1266.1'
1
+ __version__ = '3.0.1267.1'
@@ -2109,6 +2109,7 @@
2109
2109
  "example": "1.1.1.1",
2110
2110
  "member": "string",
2111
2111
  "name": "Ip",
2112
+ "output_required": true,
2112
2113
  "required": true,
2113
2114
  "type": "string",
2114
2115
  "value_allowed_null": false
@@ -2119,6 +2120,7 @@
2119
2120
  "example": "public",
2120
2121
  "member": "string",
2121
2122
  "name": "BizType",
2123
+ "output_required": true,
2122
2124
  "required": false,
2123
2125
  "type": "string",
2124
2126
  "value_allowed_null": false
@@ -2129,6 +2131,7 @@
2129
2131
  "example": "none",
2130
2132
  "member": "string",
2131
2133
  "name": "InstanceId",
2134
+ "output_required": true,
2132
2135
  "required": false,
2133
2136
  "type": "string",
2134
2137
  "value_allowed_null": false
@@ -2139,6 +2142,7 @@
2139
2142
  "example": "cvm",
2140
2143
  "member": "string",
2141
2144
  "name": "DeviceType",
2145
+ "output_required": true,
2142
2146
  "required": false,
2143
2147
  "type": "string",
2144
2148
  "value_allowed_null": false
@@ -2149,6 +2153,7 @@
2149
2153
  "example": "5",
2150
2154
  "member": "uint64",
2151
2155
  "name": "IspCode",
2156
+ "output_required": true,
2152
2157
  "required": false,
2153
2158
  "type": "int",
2154
2159
  "value_allowed_null": false
@@ -2156,9 +2161,10 @@
2156
2161
  {
2157
2162
  "disabled": false,
2158
2163
  "document": "域名化资产对应的域名\n注意:此字段可能返回 null,表示取不到有效值。",
2159
- "example": "",
2164
+ "example": "www.abc.com",
2160
2165
  "member": "string",
2161
2166
  "name": "Domain",
2167
+ "output_required": true,
2162
2168
  "required": false,
2163
2169
  "type": "string",
2164
2170
  "value_allowed_null": true
@@ -3137,7 +3143,7 @@
3137
3143
  },
3138
3144
  {
3139
3145
  "disabled": false,
3140
- "document": "如果该资源实例为域名化资产则,该参数必填",
3146
+ "document": "如果该资源实例为域名化资产以及跨地域绑定则,该参数必填",
3141
3147
  "example": "ap-guangzhou",
3142
3148
  "member": "string",
3143
3149
  "name": "FilterRegion",
@@ -12222,20 +12228,20 @@
12222
12228
  {
12223
12229
  "disabled": false,
12224
12230
  "document": "描述",
12225
- "example": "",
12231
+ "example": "msg",
12226
12232
  "member": "string",
12227
12233
  "name": "Message",
12228
- "required": true,
12234
+ "output_required": true,
12229
12235
  "type": "string",
12230
12236
  "value_allowed_null": false
12231
12237
  },
12232
12238
  {
12233
12239
  "disabled": false,
12234
12240
  "document": "成功/错误码",
12235
- "example": "",
12241
+ "example": "200",
12236
12242
  "member": "string",
12237
12243
  "name": "Code",
12238
- "required": true,
12244
+ "output_required": true,
12239
12245
  "type": "string",
12240
12246
  "value_allowed_null": false
12241
12247
  }
@@ -27,8 +27,8 @@
27
27
  "CreateBoundIP": [
28
28
  {
29
29
  "document": "绑定资产到高防包",
30
- "input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBoundIP\n<公共请求参数>\n\n{\n \"BoundDevList\": [\n {\n \"BizType\": \"abc\",\n \"Ip\": \"abc\",\n \"InstanceId\": \"abc\",\n \"DeviceType\": \"abc\",\n \"IspCode\": 1,\n \"Domain\": \"abc\"\n }\n ],\n \"Business\": \"abc\",\n \"Id\": \"abc\",\n \"UnBoundDevList\": [\n {\n \"BizType\": \"abc\",\n \"Ip\": \"abc\",\n \"InstanceId\": \"abc\",\n \"DeviceType\": \"abc\",\n \"IspCode\": 1,\n \"Domain\": \"abc\"\n }\n ],\n \"CopyPolicy\": \"abc\",\n \"FilterRegion\": \"abc\"\n}",
31
- "output": "{\n \"Response\": {\n \"Success\": {\n \"Message\": \"abc\",\n \"Code\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
30
+ "input": "POST / HTTP/1.1\nHost: antiddos.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBoundIP\n<公共请求参数>\n\n{\n \"BoundDevList\": [\n {\n \"BizType\": \"cvm\",\n \"Ip\": \"1.1.1.1\",\n \"InstanceId\": \"id-xxx\",\n \"DeviceType\": \"cvm\",\n \"IspCode\": 1,\n \"Domain\": \"www.abc.com\"\n }\n ],\n \"Business\": \"bgp\",\n \"Id\": \"id-xxx\",\n \"UnBoundDevList\": [\n {\n \"BizType\": \"cvm\",\n \"Ip\": \"1.1.1.1\",\n \"InstanceId\": \"id-xxx\",\n \"DeviceType\": \"cvm\",\n \"IspCode\": 1,\n \"Domain\": \"www.abc.com\"\n }\n ],\n \"CopyPolicy\": \"policy\",\n \"FilterRegion\": \"guangzhou\"\n}",
31
+ "output": "{\n \"Response\": {\n \"Success\": {\n \"Message\": \"msg\",\n \"Code\": \"200\"\n },\n \"RequestId\": \"reqid\"\n }\n}",
32
32
  "title": "绑定资产到高防包"
33
33
  }
34
34
  ],
@@ -8060,7 +8060,7 @@
8060
8060
  },
8061
8061
  {
8062
8062
  "disabled": false,
8063
- "document": "EndStatus与EndStatusString一一对应,具体枚举如下:\n\n**场景\t EndStatus\tEndStatusString\t状态说明**\n\n电话呼入&呼出\t1\t ok\t 正常结束\n\n电话呼入&呼出\t0\t error\t 系统错误\n\n电话呼入\t 102\t ivrGiveUp\t IVR 期间用户放弃\n\n电话呼入\t 103\t waitingGiveUp\t 会话排队期间用户放弃\n\n电话呼入\t 104\t ringingGiveUp\t 会话振铃期间用户放弃\n\n电话呼入\t 105\t noSeatOnline\t 无座席在线\n\n电话呼入 106\t notWorkTime\t 非工作时间 \n\n电话呼入\t 107\t ivrEnd\t IVR 后直接结束\n\n电话呼入\t 100\t blackList 呼入黑名单 \n\n电话呼出 2\t unconnected\t未接通\n\n电话呼出 108\t restrictedCallee\t被叫因高风险受限\n\n电话呼出 109\t tooManyRequest\t 超频\n\n电话呼出 110\t restrictedArea\t 外呼盲区\n\n电话呼出 111\t restrictedTime\t外呼时间限制\n \n电话呼出 201 unknown\t未知状态\n\n电话呼出 202 notAnswer\t未接听\n\n电话呼出 203\t userReject\t拒接挂断\n\n电话呼出\t 204\t powerOff\t关机\n\n电话呼出 205 numberNotExist\t空号\n\n电话呼出\t 206\t busy\t通话中\n\n电话呼出 \t 207\t outOfCredit\t欠费\n\n电话呼出\t 208\t operatorError\t运营商线路异常\n\n电话呼出 \t209\t callerCancel\t主叫取消\n\n电话呼出\t 210\t notInService\t不在服务区\n\n电话呼入&呼出\t211 clientError 客户端错误\n",
8063
+ "document": "EndStatus与EndStatusString一一对应,具体枚举如下:\n\n**场景\t EndStatus\tEndStatusString\t状态说明**\n\n电话呼入&呼出\t1\t ok\t 正常结束\n\n电话呼入&呼出\t0\t error\t 系统错误\n\n电话呼入\t 102\t ivrGiveUp\t IVR 期间用户放弃\n\n电话呼入\t 103\t waitingGiveUp\t 会话排队期间用户放弃\n\n电话呼入\t 104\t ringingGiveUp\t 会话振铃期间用户放弃\n\n电话呼入\t 105\t noSeatOnline\t 无座席在线\n\n电话呼入 106\t notWorkTime\t 非工作时间 \n\n电话呼入\t 107\t ivrEnd\t IVR 后直接结束\n\n电话呼入\t 100\t blackList 呼入黑名单 \n\n电话呼出 2\t unconnected\t未接通\n\n电话呼出 108\t restrictedCallee\t被叫因高风险受限\n\n电话呼出 109\t tooManyRequest\t 超频\n\n电话呼出 110\t restrictedArea\t 外呼盲区\n\n电话呼出 111\t restrictedTime\t外呼时间限制\n \n电话呼出 201 unknown\t未知状态\n\n电话呼出 202 notAnswer\t未接听\n\n电话呼出 203\t userReject\t拒接挂断\n\n电话呼出\t 204\t powerOff\t关机\n\n电话呼出 205 numberNotExist\t空号\n\n电话呼出\t 206\t busy\t通话中\n\n电话呼出 \t 207\t outOfCredit\t欠费\n\n电话呼出\t 208\t operatorError\t运营商线路异常\n\n电话呼出 \t209\t callerCancel\t主叫取消\n\n电话呼出\t 210\t notInService\t不在服务区\n\n电话呼入&呼出\t211 clientError 客户端错误\n电话呼出 212 carrierBlocked 运营商拦截",
8064
8064
  "example": "1",
8065
8065
  "member": "int64",
8066
8066
  "name": "EndStatus",
@@ -8170,7 +8170,7 @@
8170
8170
  },
8171
8171
  {
8172
8172
  "disabled": false,
8173
- "document": "EndStatus与EndStatusString一一对应,具体枚举如下:\n\n**场景\t EndStatus\tEndStatusString\t状态说明**\n\n电话呼入&呼出\t1\t ok\t 正常结束\n\n电话呼入&呼出\t0\t error\t 系统错误\n\n电话呼入\t 102\t ivrGiveUp\t IVR 期间用户放弃\n\n电话呼入\t 103\t waitingGiveUp\t 会话排队期间用户放弃\n\n电话呼入\t 104\t ringingGiveUp\t 会话振铃期间用户放弃\n\n电话呼入\t 105\t noSeatOnline\t 无座席在线\n\n电话呼入 106\t notWorkTime\t 非工作时间 \n\n电话呼入\t 107\t ivrEnd\t IVR 后直接结束\n\n电话呼入\t 100\t blackList 呼入黑名单 \n\n电话呼出 2\t unconnected\t未接通\n\n电话呼出 108\t restrictedCallee\t被叫因高风险受限\n\n电话呼出 109\t tooManyRequest\t 超频\n\n电话呼出 110\t restrictedArea\t 外呼盲区\n\n电话呼出 111\t restrictedTime\t外呼时间限制\n \n电话呼出 201 unknown\t未知状态\n\n电话呼出 202 notAnswer\t未接听\n\n电话呼出 203\t userReject\t拒接挂断\n\n电话呼出\t 204\t powerOff\t关机\n\n电话呼出 205 numberNotExist\t空号\n\n电话呼出\t 206\t busy\t通话中\n\n电话呼出 \t 207\t outOfCredit\t欠费\n\n电话呼出\t 208\t operatorError\t运营商线路异常\n\n电话呼出 \t209\t callerCancel\t主叫取消\n\n电话呼出\t 210\t notInService\t不在服务区\n\n电话呼入&呼出\t211 clientError 客户端错误\n",
8173
+ "document": "EndStatus与EndStatusString一一对应,具体枚举如下:\n\n**场景\t EndStatus\tEndStatusString\t状态说明**\n\n电话呼入&呼出\t1\t ok\t 正常结束\n\n电话呼入&呼出\t0\t error\t 系统错误\n\n电话呼入\t 102\t ivrGiveUp\t IVR 期间用户放弃\n\n电话呼入\t 103\t waitingGiveUp\t 会话排队期间用户放弃\n\n电话呼入\t 104\t ringingGiveUp\t 会话振铃期间用户放弃\n\n电话呼入\t 105\t noSeatOnline\t 无座席在线\n\n电话呼入 106\t notWorkTime\t 非工作时间 \n\n电话呼入\t 107\t ivrEnd\t IVR 后直接结束\n\n电话呼入\t 100\t blackList 呼入黑名单 \n\n电话呼出 2\t unconnected\t未接通\n\n电话呼出 108\t restrictedCallee\t被叫因高风险受限\n\n电话呼出 109\t tooManyRequest\t 超频\n\n电话呼出 110\t restrictedArea\t 外呼盲区\n\n电话呼出 111\t restrictedTime\t外呼时间限制\n \n电话呼出 201 unknown\t未知状态\n\n电话呼出 202 notAnswer\t未接听\n\n电话呼出 203\t userReject\t拒接挂断\n\n电话呼出\t 204\t powerOff\t关机\n\n电话呼出 205 numberNotExist\t空号\n\n电话呼出\t 206\t busy\t通话中\n\n电话呼出 \t 207\t outOfCredit\t欠费\n\n电话呼出\t 208\t operatorError\t运营商线路异常\n\n电话呼出 \t209\t callerCancel\t主叫取消\n\n电话呼出\t 210\t notInService\t不在服务区\n\n电话呼入&呼出\t211 clientError 客户端错误\n电话呼出 212 carrierBlocked 运营商拦截",
8174
8174
  "example": "ok",
8175
8175
  "member": "string",
8176
8176
  "name": "EndStatusString",
@@ -15010,7 +15010,7 @@
15010
15010
  "type": "object"
15011
15011
  },
15012
15012
  "SLInstanceInfo": {
15013
- "document": "Serverless HBase 实例信息",
15013
+ "document": "Serverless HBase实例信息",
15014
15014
  "members": [
15015
15015
  {
15016
15016
  "disabled": false,
@@ -15042,6 +15042,16 @@
15042
15042
  "type": "string",
15043
15043
  "value_allowed_null": false
15044
15044
  },
15045
+ {
15046
+ "disabled": false,
15047
+ "document": "健康状态",
15048
+ "example": "Green",
15049
+ "member": "string",
15050
+ "name": "HealthStatus",
15051
+ "output_required": false,
15052
+ "type": "string",
15053
+ "value_allowed_null": false
15054
+ },
15045
15055
  {
15046
15056
  "disabled": false,
15047
15057
  "document": "实例名称",
@@ -693,6 +693,58 @@ def doCreateFlowGroupByTemplates(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
+ def doVerifyDigitFile(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('-', '_')], endpoint=g_param["sts_cred_endpoint"]
705
+ )
706
+ 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):
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.VerifyDigitFileRequest()
726
+ model.from_json_string(json.dumps(args))
727
+ start_time = time.time()
728
+ while True:
729
+ rsp = client.VerifyDigitFile(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
+
696
748
  def doCreatePartnerAutoSignAuthUrl(args, parsed_globals):
697
749
  g_param = parse_global_arg(parsed_globals)
698
750
 
@@ -4541,6 +4593,58 @@ def doDisableUserAutoSign(args, parsed_globals):
4541
4593
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4542
4594
 
4543
4595
 
4596
+ def doDescribeFileCounterSignResult(args, parsed_globals):
4597
+ g_param = parse_global_arg(parsed_globals)
4598
+
4599
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4600
+ cred = credential.CVMRoleCredential()
4601
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4602
+ cred = credential.STSAssumeRoleCredential(
4603
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4604
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4605
+ )
4606
+ 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):
4607
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4608
+ else:
4609
+ cred = credential.Credential(
4610
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4611
+ )
4612
+ http_profile = HttpProfile(
4613
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4614
+ reqMethod="POST",
4615
+ endpoint=g_param[OptionsDefine.Endpoint],
4616
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4617
+ )
4618
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4619
+ if g_param[OptionsDefine.Language]:
4620
+ profile.language = g_param[OptionsDefine.Language]
4621
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4622
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
4623
+ client._sdkVersion += ("_CLI_" + __version__)
4624
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4625
+ model = models.DescribeFileCounterSignResultRequest()
4626
+ model.from_json_string(json.dumps(args))
4627
+ start_time = time.time()
4628
+ while True:
4629
+ rsp = client.DescribeFileCounterSignResult(model)
4630
+ result = rsp.to_json_string()
4631
+ try:
4632
+ json_obj = json.loads(result)
4633
+ except TypeError as e:
4634
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4635
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4636
+ break
4637
+ cur_time = time.time()
4638
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4639
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4640
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4641
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4642
+ else:
4643
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4644
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4645
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4646
+
4647
+
4544
4648
  def doGetTaskResultApi(args, parsed_globals):
4545
4649
  g_param = parse_global_arg(parsed_globals)
4546
4650
 
@@ -4853,6 +4957,58 @@ def doDescribeThirdPartyAuthCode(args, parsed_globals):
4853
4957
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4854
4958
 
4855
4959
 
4960
+ def doCreateFileCounterSign(args, parsed_globals):
4961
+ g_param = parse_global_arg(parsed_globals)
4962
+
4963
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4964
+ cred = credential.CVMRoleCredential()
4965
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4966
+ cred = credential.STSAssumeRoleCredential(
4967
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4968
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4969
+ )
4970
+ 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):
4971
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4972
+ else:
4973
+ cred = credential.Credential(
4974
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4975
+ )
4976
+ http_profile = HttpProfile(
4977
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4978
+ reqMethod="POST",
4979
+ endpoint=g_param[OptionsDefine.Endpoint],
4980
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4981
+ )
4982
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4983
+ if g_param[OptionsDefine.Language]:
4984
+ profile.language = g_param[OptionsDefine.Language]
4985
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4986
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
4987
+ client._sdkVersion += ("_CLI_" + __version__)
4988
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4989
+ model = models.CreateFileCounterSignRequest()
4990
+ model.from_json_string(json.dumps(args))
4991
+ start_time = time.time()
4992
+ while True:
4993
+ rsp = client.CreateFileCounterSign(model)
4994
+ result = rsp.to_json_string()
4995
+ try:
4996
+ json_obj = json.loads(result)
4997
+ except TypeError as e:
4998
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4999
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5000
+ break
5001
+ cur_time = time.time()
5002
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5003
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5004
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5005
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5006
+ else:
5007
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5008
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5009
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5010
+
5011
+
4856
5012
  def doDescribeOrganizationSeals(args, parsed_globals):
4857
5013
  g_param = parse_global_arg(parsed_globals)
4858
5014
 
@@ -5033,6 +5189,7 @@ ACTION_MAP = {
5033
5189
  "CreateReleaseFlow": doCreateReleaseFlow,
5034
5190
  "DescribeUserAutoSignStatus": doDescribeUserAutoSignStatus,
5035
5191
  "CreateFlowGroupByTemplates": doCreateFlowGroupByTemplates,
5192
+ "VerifyDigitFile": doVerifyDigitFile,
5036
5193
  "CreatePartnerAutoSignAuthUrl": doCreatePartnerAutoSignAuthUrl,
5037
5194
  "CreateFlowByFiles": doCreateFlowByFiles,
5038
5195
  "DescribeIntegrationRoles": doDescribeIntegrationRoles,
@@ -5107,12 +5264,14 @@ ACTION_MAP = {
5107
5264
  "CreateSchemeUrl": doCreateSchemeUrl,
5108
5265
  "CreateOrganizationGroupInvitationLink": doCreateOrganizationGroupInvitationLink,
5109
5266
  "DisableUserAutoSign": doDisableUserAutoSign,
5267
+ "DescribeFileCounterSignResult": doDescribeFileCounterSignResult,
5110
5268
  "GetTaskResultApi": doGetTaskResultApi,
5111
5269
  "DescribeBillUsage": doDescribeBillUsage,
5112
5270
  "ArchiveDynamicFlow": doArchiveDynamicFlow,
5113
5271
  "UpdateIntegrationEmployees": doUpdateIntegrationEmployees,
5114
5272
  "CreateOrganizationBatchSignUrl": doCreateOrganizationBatchSignUrl,
5115
5273
  "DescribeThirdPartyAuthCode": doDescribeThirdPartyAuthCode,
5274
+ "CreateFileCounterSign": doCreateFileCounterSign,
5116
5275
  "DescribeOrganizationSeals": doDescribeOrganizationSeals,
5117
5276
  "DescribeOrganizationVerifyStatus": doDescribeOrganizationVerifyStatus,
5118
5277
  "DeleteExtendedServiceAuthInfos": doDeleteExtendedServiceAuthInfos,