tccli 3.0.1405.1__py2.py3-none-any.whl → 3.0.1406.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/autoscaling/v20180419/api.json +1 -1
 - tccli/services/batch/v20170312/api.json +1 -1
 - tccli/services/cdb/v20170320/api.json +31 -21
 - tccli/services/cdn/v20180606/api.json +1 -1
 - tccli/services/cloudhsm/v20191112/api.json +10 -10
 - tccli/services/cls/v20201016/api.json +40 -31
 - tccli/services/cls/v20201016/examples.json +8 -2
 - tccli/services/ctem/v20231128/api.json +30 -0
 - tccli/services/dbbrain/v20210527/api.json +17 -7
 - tccli/services/dbbrain/v20210527/examples.json +1 -1
 - tccli/services/dts/v20211206/api.json +13 -3
 - tccli/services/emr/v20190103/api.json +9 -0
 - tccli/services/es/es_client.py +57 -4
 - tccli/services/es/v20250101/api.json +133 -0
 - tccli/services/es/v20250101/examples.json +8 -0
 - tccli/services/ess/ess_client.py +106 -0
 - tccli/services/ess/v20201111/api.json +345 -24
 - tccli/services/ess/v20201111/examples.json +25 -3
 - tccli/services/essbasic/v20210526/api.json +12 -3
 - tccli/services/essbasic/v20210526/examples.json +2 -2
 - tccli/services/gwlb/gwlb_client.py +53 -0
 - tccli/services/gwlb/v20240906/api.json +80 -0
 - tccli/services/gwlb/v20240906/examples.json +8 -0
 - tccli/services/hunyuan/v20230901/api.json +2 -2
 - tccli/services/ioa/ioa_client.py +220 -8
 - tccli/services/ioa/v20220601/api.json +559 -0
 - tccli/services/ioa/v20220601/examples.json +38 -0
 - tccli/services/iotexplorer/iotexplorer_client.py +220 -8
 - tccli/services/iotexplorer/v20190423/api.json +959 -12
 - tccli/services/iotexplorer/v20190423/examples.json +68 -0
 - tccli/services/lcic/v20220817/api.json +2 -2
 - tccli/services/lke/v20231130/api.json +1 -1
 - tccli/services/lke/v20231130/examples.json +2 -2
 - tccli/services/lkeap/v20240522/api.json +1 -1
 - tccli/services/lkeap/v20240522/examples.json +7 -1
 - tccli/services/monitor/monitor_client.py +53 -0
 - tccli/services/monitor/v20180724/api.json +248 -0
 - tccli/services/monitor/v20180724/examples.json +8 -0
 - tccli/services/mps/v20190612/api.json +140 -2
 - tccli/services/mqtt/v20240516/api.json +10 -0
 - tccli/services/mqtt/v20240516/examples.json +3 -9
 - tccli/services/nlp/v20190408/api.json +6 -6
 - tccli/services/oceanus/oceanus_client.py +110 -4
 - tccli/services/oceanus/v20190422/api.json +152 -8
 - tccli/services/oceanus/v20190422/examples.json +16 -0
 - tccli/services/privatedns/privatedns_client.py +641 -58
 - tccli/services/privatedns/v20201028/api.json +923 -12
 - tccli/services/privatedns/v20201028/examples.json +88 -0
 - tccli/services/redis/v20180412/api.json +1 -1
 - tccli/services/teo/v20220901/api.json +51 -51
 - tccli/services/tione/v20211111/api.json +1 -1
 - tccli/services/tke/v20180525/api.json +23 -14
 - tccli/services/tke/v20180525/examples.json +1 -1
 - tccli/services/trtc/v20190722/api.json +9 -9
 - tccli/services/trtc/v20190722/examples.json +1 -1
 - tccli/services/tse/v20201207/api.json +30 -1
 - tccli/services/vpc/v20170312/api.json +11 -2
 - tccli/services/wedata/v20210820/api.json +1281 -601
 - tccli/services/wedata/v20210820/examples.json +127 -157
 - tccli/services/wedata/v20250806/api.json +477 -15
 - tccli/services/wedata/v20250806/examples.json +38 -6
 - tccli/services/wedata/wedata_client.py +216 -4
 - {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/METADATA +2 -2
 - {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/RECORD +68 -68
 - {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/WHEEL +0 -0
 - {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/entry_points.txt +0 -0
 - {tccli-3.0.1405.1.dist-info → tccli-3.0.1406.1.dist-info}/license_files/LICENSE +0 -0
 
| 
         @@ -2149,6 +2149,58 @@ def doDeleteTopicRule(args, parsed_globals): 
     | 
|
| 
       2149 
2149 
     | 
    
         
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
       2150 
2150 
     | 
    
         | 
| 
       2151 
2151 
     | 
    
         | 
| 
      
 2152 
     | 
    
         
            +
            def doDescribeTWeTalkProductConfigV2(args, parsed_globals):
         
     | 
| 
      
 2153 
     | 
    
         
            +
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
      
 2154 
     | 
    
         
            +
             
     | 
| 
      
 2155 
     | 
    
         
            +
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         
     | 
| 
      
 2156 
     | 
    
         
            +
                    cred = credential.CVMRoleCredential()
         
     | 
| 
      
 2157 
     | 
    
         
            +
                elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
         
     | 
| 
      
 2158 
     | 
    
         
            +
                    cred = credential.STSAssumeRoleCredential(
         
     | 
| 
      
 2159 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
         
     | 
| 
      
 2160 
     | 
    
         
            +
                        g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
         
     | 
| 
      
 2161 
     | 
    
         
            +
                    )
         
     | 
| 
      
 2162 
     | 
    
         
            +
                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):
         
     | 
| 
      
 2163 
     | 
    
         
            +
                    cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
         
     | 
| 
      
 2164 
     | 
    
         
            +
                else:
         
     | 
| 
      
 2165 
     | 
    
         
            +
                    cred = credential.Credential(
         
     | 
| 
      
 2166 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
         
     | 
| 
      
 2167 
     | 
    
         
            +
                    )
         
     | 
| 
      
 2168 
     | 
    
         
            +
                http_profile = HttpProfile(
         
     | 
| 
      
 2169 
     | 
    
         
            +
                    reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
         
     | 
| 
      
 2170 
     | 
    
         
            +
                    reqMethod="POST",
         
     | 
| 
      
 2171 
     | 
    
         
            +
                    endpoint=g_param[OptionsDefine.Endpoint],
         
     | 
| 
      
 2172 
     | 
    
         
            +
                    proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
         
     | 
| 
      
 2173 
     | 
    
         
            +
                )
         
     | 
| 
      
 2174 
     | 
    
         
            +
                profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
         
     | 
| 
      
 2175 
     | 
    
         
            +
                if g_param[OptionsDefine.Language]:
         
     | 
| 
      
 2176 
     | 
    
         
            +
                    profile.language = g_param[OptionsDefine.Language]
         
     | 
| 
      
 2177 
     | 
    
         
            +
                mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 2178 
     | 
    
         
            +
                client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
         
     | 
| 
      
 2179 
     | 
    
         
            +
                client._sdkVersion += ("_CLI_" + __version__)
         
     | 
| 
      
 2180 
     | 
    
         
            +
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 2181 
     | 
    
         
            +
                model = models.DescribeTWeTalkProductConfigV2Request()
         
     | 
| 
      
 2182 
     | 
    
         
            +
                model.from_json_string(json.dumps(args))
         
     | 
| 
      
 2183 
     | 
    
         
            +
                start_time = time.time()
         
     | 
| 
      
 2184 
     | 
    
         
            +
                while True:
         
     | 
| 
      
 2185 
     | 
    
         
            +
                    rsp = client.DescribeTWeTalkProductConfigV2(model)
         
     | 
| 
      
 2186 
     | 
    
         
            +
                    result = rsp.to_json_string()
         
     | 
| 
      
 2187 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 2188 
     | 
    
         
            +
                        json_obj = json.loads(result)
         
     | 
| 
      
 2189 
     | 
    
         
            +
                    except TypeError as e:
         
     | 
| 
      
 2190 
     | 
    
         
            +
                        json_obj = json.loads(result.decode('utf-8'))  # python3.3
         
     | 
| 
      
 2191 
     | 
    
         
            +
                    if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
         
     | 
| 
      
 2192 
     | 
    
         
            +
                        break
         
     | 
| 
      
 2193 
     | 
    
         
            +
                    cur_time = time.time()
         
     | 
| 
      
 2194 
     | 
    
         
            +
                    if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
         
     | 
| 
      
 2195 
     | 
    
         
            +
                        raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
         
     | 
| 
      
 2196 
     | 
    
         
            +
                        (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
         
     | 
| 
      
 2197 
     | 
    
         
            +
                        search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
         
     | 
| 
      
 2198 
     | 
    
         
            +
                    else:
         
     | 
| 
      
 2199 
     | 
    
         
            +
                        print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
         
     | 
| 
      
 2200 
     | 
    
         
            +
                    time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
         
     | 
| 
      
 2201 
     | 
    
         
            +
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
      
 2202 
     | 
    
         
            +
             
     | 
| 
      
 2203 
     | 
    
         
            +
             
     | 
| 
       2152 
2204 
     | 
    
         
             
            def doDeleteOtaModule(args, parsed_globals):
         
     | 
| 
       2153 
2205 
     | 
    
         
             
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
       2154 
2206 
     | 
    
         | 
| 
         @@ -6153,6 +6205,58 @@ def doUpdateFirmware(args, parsed_globals): 
     | 
|
| 
       6153 
6205 
     | 
    
         
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
       6154 
6206 
     | 
    
         | 
| 
       6155 
6207 
     | 
    
         | 
| 
      
 6208 
     | 
    
         
            +
            def doActivateTWeCallLicense(args, parsed_globals):
         
     | 
| 
      
 6209 
     | 
    
         
            +
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
      
 6210 
     | 
    
         
            +
             
     | 
| 
      
 6211 
     | 
    
         
            +
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         
     | 
| 
      
 6212 
     | 
    
         
            +
                    cred = credential.CVMRoleCredential()
         
     | 
| 
      
 6213 
     | 
    
         
            +
                elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
         
     | 
| 
      
 6214 
     | 
    
         
            +
                    cred = credential.STSAssumeRoleCredential(
         
     | 
| 
      
 6215 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
         
     | 
| 
      
 6216 
     | 
    
         
            +
                        g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
         
     | 
| 
      
 6217 
     | 
    
         
            +
                    )
         
     | 
| 
      
 6218 
     | 
    
         
            +
                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):
         
     | 
| 
      
 6219 
     | 
    
         
            +
                    cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
         
     | 
| 
      
 6220 
     | 
    
         
            +
                else:
         
     | 
| 
      
 6221 
     | 
    
         
            +
                    cred = credential.Credential(
         
     | 
| 
      
 6222 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
         
     | 
| 
      
 6223 
     | 
    
         
            +
                    )
         
     | 
| 
      
 6224 
     | 
    
         
            +
                http_profile = HttpProfile(
         
     | 
| 
      
 6225 
     | 
    
         
            +
                    reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
         
     | 
| 
      
 6226 
     | 
    
         
            +
                    reqMethod="POST",
         
     | 
| 
      
 6227 
     | 
    
         
            +
                    endpoint=g_param[OptionsDefine.Endpoint],
         
     | 
| 
      
 6228 
     | 
    
         
            +
                    proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
         
     | 
| 
      
 6229 
     | 
    
         
            +
                )
         
     | 
| 
      
 6230 
     | 
    
         
            +
                profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
         
     | 
| 
      
 6231 
     | 
    
         
            +
                if g_param[OptionsDefine.Language]:
         
     | 
| 
      
 6232 
     | 
    
         
            +
                    profile.language = g_param[OptionsDefine.Language]
         
     | 
| 
      
 6233 
     | 
    
         
            +
                mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 6234 
     | 
    
         
            +
                client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
         
     | 
| 
      
 6235 
     | 
    
         
            +
                client._sdkVersion += ("_CLI_" + __version__)
         
     | 
| 
      
 6236 
     | 
    
         
            +
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 6237 
     | 
    
         
            +
                model = models.ActivateTWeCallLicenseRequest()
         
     | 
| 
      
 6238 
     | 
    
         
            +
                model.from_json_string(json.dumps(args))
         
     | 
| 
      
 6239 
     | 
    
         
            +
                start_time = time.time()
         
     | 
| 
      
 6240 
     | 
    
         
            +
                while True:
         
     | 
| 
      
 6241 
     | 
    
         
            +
                    rsp = client.ActivateTWeCallLicense(model)
         
     | 
| 
      
 6242 
     | 
    
         
            +
                    result = rsp.to_json_string()
         
     | 
| 
      
 6243 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 6244 
     | 
    
         
            +
                        json_obj = json.loads(result)
         
     | 
| 
      
 6245 
     | 
    
         
            +
                    except TypeError as e:
         
     | 
| 
      
 6246 
     | 
    
         
            +
                        json_obj = json.loads(result.decode('utf-8'))  # python3.3
         
     | 
| 
      
 6247 
     | 
    
         
            +
                    if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
         
     | 
| 
      
 6248 
     | 
    
         
            +
                        break
         
     | 
| 
      
 6249 
     | 
    
         
            +
                    cur_time = time.time()
         
     | 
| 
      
 6250 
     | 
    
         
            +
                    if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
         
     | 
| 
      
 6251 
     | 
    
         
            +
                        raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
         
     | 
| 
      
 6252 
     | 
    
         
            +
                        (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
         
     | 
| 
      
 6253 
     | 
    
         
            +
                        search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
         
     | 
| 
      
 6254 
     | 
    
         
            +
                    else:
         
     | 
| 
      
 6255 
     | 
    
         
            +
                        print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
         
     | 
| 
      
 6256 
     | 
    
         
            +
                    time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
         
     | 
| 
      
 6257 
     | 
    
         
            +
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
      
 6258 
     | 
    
         
            +
             
     | 
| 
      
 6259 
     | 
    
         
            +
             
     | 
| 
       6156 
6260 
     | 
    
         
             
            def doGetTWeCallActiveStatus(args, parsed_globals):
         
     | 
| 
       6157 
6261 
     | 
    
         
             
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
       6158 
6262 
     | 
    
         | 
| 
         @@ -6257,6 +6361,58 @@ def doDescribeGatewaySubProducts(args, parsed_globals): 
     | 
|
| 
       6257 
6361 
     | 
    
         
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
       6258 
6362 
     | 
    
         | 
| 
       6259 
6363 
     | 
    
         | 
| 
      
 6364 
     | 
    
         
            +
            def doDeleteDevices(args, parsed_globals):
         
     | 
| 
      
 6365 
     | 
    
         
            +
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
      
 6366 
     | 
    
         
            +
             
     | 
| 
      
 6367 
     | 
    
         
            +
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         
     | 
| 
      
 6368 
     | 
    
         
            +
                    cred = credential.CVMRoleCredential()
         
     | 
| 
      
 6369 
     | 
    
         
            +
                elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
         
     | 
| 
      
 6370 
     | 
    
         
            +
                    cred = credential.STSAssumeRoleCredential(
         
     | 
| 
      
 6371 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
         
     | 
| 
      
 6372 
     | 
    
         
            +
                        g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
         
     | 
| 
      
 6373 
     | 
    
         
            +
                    )
         
     | 
| 
      
 6374 
     | 
    
         
            +
                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):
         
     | 
| 
      
 6375 
     | 
    
         
            +
                    cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
         
     | 
| 
      
 6376 
     | 
    
         
            +
                else:
         
     | 
| 
      
 6377 
     | 
    
         
            +
                    cred = credential.Credential(
         
     | 
| 
      
 6378 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
         
     | 
| 
      
 6379 
     | 
    
         
            +
                    )
         
     | 
| 
      
 6380 
     | 
    
         
            +
                http_profile = HttpProfile(
         
     | 
| 
      
 6381 
     | 
    
         
            +
                    reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
         
     | 
| 
      
 6382 
     | 
    
         
            +
                    reqMethod="POST",
         
     | 
| 
      
 6383 
     | 
    
         
            +
                    endpoint=g_param[OptionsDefine.Endpoint],
         
     | 
| 
      
 6384 
     | 
    
         
            +
                    proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
         
     | 
| 
      
 6385 
     | 
    
         
            +
                )
         
     | 
| 
      
 6386 
     | 
    
         
            +
                profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
         
     | 
| 
      
 6387 
     | 
    
         
            +
                if g_param[OptionsDefine.Language]:
         
     | 
| 
      
 6388 
     | 
    
         
            +
                    profile.language = g_param[OptionsDefine.Language]
         
     | 
| 
      
 6389 
     | 
    
         
            +
                mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 6390 
     | 
    
         
            +
                client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
         
     | 
| 
      
 6391 
     | 
    
         
            +
                client._sdkVersion += ("_CLI_" + __version__)
         
     | 
| 
      
 6392 
     | 
    
         
            +
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 6393 
     | 
    
         
            +
                model = models.DeleteDevicesRequest()
         
     | 
| 
      
 6394 
     | 
    
         
            +
                model.from_json_string(json.dumps(args))
         
     | 
| 
      
 6395 
     | 
    
         
            +
                start_time = time.time()
         
     | 
| 
      
 6396 
     | 
    
         
            +
                while True:
         
     | 
| 
      
 6397 
     | 
    
         
            +
                    rsp = client.DeleteDevices(model)
         
     | 
| 
      
 6398 
     | 
    
         
            +
                    result = rsp.to_json_string()
         
     | 
| 
      
 6399 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 6400 
     | 
    
         
            +
                        json_obj = json.loads(result)
         
     | 
| 
      
 6401 
     | 
    
         
            +
                    except TypeError as e:
         
     | 
| 
      
 6402 
     | 
    
         
            +
                        json_obj = json.loads(result.decode('utf-8'))  # python3.3
         
     | 
| 
      
 6403 
     | 
    
         
            +
                    if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
         
     | 
| 
      
 6404 
     | 
    
         
            +
                        break
         
     | 
| 
      
 6405 
     | 
    
         
            +
                    cur_time = time.time()
         
     | 
| 
      
 6406 
     | 
    
         
            +
                    if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
         
     | 
| 
      
 6407 
     | 
    
         
            +
                        raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
         
     | 
| 
      
 6408 
     | 
    
         
            +
                        (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
         
     | 
| 
      
 6409 
     | 
    
         
            +
                        search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
         
     | 
| 
      
 6410 
     | 
    
         
            +
                    else:
         
     | 
| 
      
 6411 
     | 
    
         
            +
                        print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
         
     | 
| 
      
 6412 
     | 
    
         
            +
                    time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
         
     | 
| 
      
 6413 
     | 
    
         
            +
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
      
 6414 
     | 
    
         
            +
             
     | 
| 
      
 6415 
     | 
    
         
            +
             
     | 
| 
       6260 
6416 
     | 
    
         
             
            def doCreateOtaModule(args, parsed_globals):
         
     | 
| 
       6261 
6417 
     | 
    
         
             
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
       6262 
6418 
     | 
    
         | 
| 
         @@ -6777,6 +6933,58 @@ def doGetFamilyDeviceUserList(args, parsed_globals): 
     | 
|
| 
       6777 
6933 
     | 
    
         
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
       6778 
6934 
     | 
    
         | 
| 
       6779 
6935 
     | 
    
         | 
| 
      
 6936 
     | 
    
         
            +
            def doModifyTWeTalkProductConfigV2(args, parsed_globals):
         
     | 
| 
      
 6937 
     | 
    
         
            +
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
      
 6938 
     | 
    
         
            +
             
     | 
| 
      
 6939 
     | 
    
         
            +
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         
     | 
| 
      
 6940 
     | 
    
         
            +
                    cred = credential.CVMRoleCredential()
         
     | 
| 
      
 6941 
     | 
    
         
            +
                elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
         
     | 
| 
      
 6942 
     | 
    
         
            +
                    cred = credential.STSAssumeRoleCredential(
         
     | 
| 
      
 6943 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
         
     | 
| 
      
 6944 
     | 
    
         
            +
                        g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
         
     | 
| 
      
 6945 
     | 
    
         
            +
                    )
         
     | 
| 
      
 6946 
     | 
    
         
            +
                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):
         
     | 
| 
      
 6947 
     | 
    
         
            +
                    cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
         
     | 
| 
      
 6948 
     | 
    
         
            +
                else:
         
     | 
| 
      
 6949 
     | 
    
         
            +
                    cred = credential.Credential(
         
     | 
| 
      
 6950 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
         
     | 
| 
      
 6951 
     | 
    
         
            +
                    )
         
     | 
| 
      
 6952 
     | 
    
         
            +
                http_profile = HttpProfile(
         
     | 
| 
      
 6953 
     | 
    
         
            +
                    reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
         
     | 
| 
      
 6954 
     | 
    
         
            +
                    reqMethod="POST",
         
     | 
| 
      
 6955 
     | 
    
         
            +
                    endpoint=g_param[OptionsDefine.Endpoint],
         
     | 
| 
      
 6956 
     | 
    
         
            +
                    proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
         
     | 
| 
      
 6957 
     | 
    
         
            +
                )
         
     | 
| 
      
 6958 
     | 
    
         
            +
                profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
         
     | 
| 
      
 6959 
     | 
    
         
            +
                if g_param[OptionsDefine.Language]:
         
     | 
| 
      
 6960 
     | 
    
         
            +
                    profile.language = g_param[OptionsDefine.Language]
         
     | 
| 
      
 6961 
     | 
    
         
            +
                mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 6962 
     | 
    
         
            +
                client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
         
     | 
| 
      
 6963 
     | 
    
         
            +
                client._sdkVersion += ("_CLI_" + __version__)
         
     | 
| 
      
 6964 
     | 
    
         
            +
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 6965 
     | 
    
         
            +
                model = models.ModifyTWeTalkProductConfigV2Request()
         
     | 
| 
      
 6966 
     | 
    
         
            +
                model.from_json_string(json.dumps(args))
         
     | 
| 
      
 6967 
     | 
    
         
            +
                start_time = time.time()
         
     | 
| 
      
 6968 
     | 
    
         
            +
                while True:
         
     | 
| 
      
 6969 
     | 
    
         
            +
                    rsp = client.ModifyTWeTalkProductConfigV2(model)
         
     | 
| 
      
 6970 
     | 
    
         
            +
                    result = rsp.to_json_string()
         
     | 
| 
      
 6971 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 6972 
     | 
    
         
            +
                        json_obj = json.loads(result)
         
     | 
| 
      
 6973 
     | 
    
         
            +
                    except TypeError as e:
         
     | 
| 
      
 6974 
     | 
    
         
            +
                        json_obj = json.loads(result.decode('utf-8'))  # python3.3
         
     | 
| 
      
 6975 
     | 
    
         
            +
                    if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
         
     | 
| 
      
 6976 
     | 
    
         
            +
                        break
         
     | 
| 
      
 6977 
     | 
    
         
            +
                    cur_time = time.time()
         
     | 
| 
      
 6978 
     | 
    
         
            +
                    if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
         
     | 
| 
      
 6979 
     | 
    
         
            +
                        raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
         
     | 
| 
      
 6980 
     | 
    
         
            +
                        (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
         
     | 
| 
      
 6981 
     | 
    
         
            +
                        search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
         
     | 
| 
      
 6982 
     | 
    
         
            +
                    else:
         
     | 
| 
      
 6983 
     | 
    
         
            +
                        print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
         
     | 
| 
      
 6984 
     | 
    
         
            +
                    time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
         
     | 
| 
      
 6985 
     | 
    
         
            +
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
      
 6986 
     | 
    
         
            +
             
     | 
| 
      
 6987 
     | 
    
         
            +
             
     | 
| 
       6780 
6988 
     | 
    
         
             
            def doModifyCloudStorageAIService(args, parsed_globals):
         
     | 
| 
       6781 
6989 
     | 
    
         
             
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
       6782 
6990 
     | 
    
         | 
| 
         @@ -7245,7 +7453,7 @@ def doCreateExternalSourceAIServiceTask(args, parsed_globals): 
     | 
|
| 
       7245 
7453 
     | 
    
         
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
       7246 
7454 
     | 
    
         | 
| 
       7247 
7455 
     | 
    
         | 
| 
       7248 
     | 
    
         
            -
            def  
     | 
| 
      
 7456 
     | 
    
         
            +
            def doGetTWeTalkProductConfigListV2(args, parsed_globals):
         
     | 
| 
       7249 
7457 
     | 
    
         
             
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
       7250 
7458 
     | 
    
         | 
| 
       7251 
7459 
     | 
    
         
             
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         
     | 
| 
         @@ -7274,11 +7482,11 @@ def doActivateTWeCallLicense(args, parsed_globals): 
     | 
|
| 
       7274 
7482 
     | 
    
         
             
                client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
         
     | 
| 
       7275 
7483 
     | 
    
         
             
                client._sdkVersion += ("_CLI_" + __version__)
         
     | 
| 
       7276 
7484 
     | 
    
         
             
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
       7277 
     | 
    
         
            -
                model = models. 
     | 
| 
      
 7485 
     | 
    
         
            +
                model = models.GetTWeTalkProductConfigListV2Request()
         
     | 
| 
       7278 
7486 
     | 
    
         
             
                model.from_json_string(json.dumps(args))
         
     | 
| 
       7279 
7487 
     | 
    
         
             
                start_time = time.time()
         
     | 
| 
       7280 
7488 
     | 
    
         
             
                while True:
         
     | 
| 
       7281 
     | 
    
         
            -
                    rsp = client. 
     | 
| 
      
 7489 
     | 
    
         
            +
                    rsp = client.GetTWeTalkProductConfigListV2(model)
         
     | 
| 
       7282 
7490 
     | 
    
         
             
                    result = rsp.to_json_string()
         
     | 
| 
       7283 
7491 
     | 
    
         
             
                    try:
         
     | 
| 
       7284 
7492 
     | 
    
         
             
                        json_obj = json.loads(result)
         
     | 
| 
         @@ -7401,7 +7609,7 @@ def doDeleteCloudStorageEvent(args, parsed_globals): 
     | 
|
| 
       7401 
7609 
     | 
    
         
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
       7402 
7610 
     | 
    
         | 
| 
       7403 
7611 
     | 
    
         | 
| 
       7404 
     | 
    
         
            -
            def  
     | 
| 
      
 7612 
     | 
    
         
            +
            def doCreateTWeTalkProductConfigV2(args, parsed_globals):
         
     | 
| 
       7405 
7613 
     | 
    
         
             
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
       7406 
7614 
     | 
    
         | 
| 
       7407 
7615 
     | 
    
         
             
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         
     | 
| 
         @@ -7430,11 +7638,11 @@ def doDeleteDevices(args, parsed_globals): 
     | 
|
| 
       7430 
7638 
     | 
    
         
             
                client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
         
     | 
| 
       7431 
7639 
     | 
    
         
             
                client._sdkVersion += ("_CLI_" + __version__)
         
     | 
| 
       7432 
7640 
     | 
    
         
             
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
       7433 
     | 
    
         
            -
                model = models. 
     | 
| 
      
 7641 
     | 
    
         
            +
                model = models.CreateTWeTalkProductConfigV2Request()
         
     | 
| 
       7434 
7642 
     | 
    
         
             
                model.from_json_string(json.dumps(args))
         
     | 
| 
       7435 
7643 
     | 
    
         
             
                start_time = time.time()
         
     | 
| 
       7436 
7644 
     | 
    
         
             
                while True:
         
     | 
| 
       7437 
     | 
    
         
            -
                    rsp = client. 
     | 
| 
      
 7645 
     | 
    
         
            +
                    rsp = client.CreateTWeTalkProductConfigV2(model)
         
     | 
| 
       7438 
7646 
     | 
    
         
             
                    result = rsp.to_json_string()
         
     | 
| 
       7439 
7647 
     | 
    
         
             
                    try:
         
     | 
| 
       7440 
7648 
     | 
    
         
             
                        json_obj = json.loads(result)
         
     | 
| 
         @@ -9585,6 +9793,7 @@ ACTION_MAP = { 
     | 
|
| 
       9585 
9793 
     | 
    
         
             
                "DescribeUnbindedDevices": doDescribeUnbindedDevices,
         
     | 
| 
       9586 
9794 
     | 
    
         
             
                "CreateIotVideoCloudStorage": doCreateIotVideoCloudStorage,
         
     | 
| 
       9587 
9795 
     | 
    
         
             
                "DeleteTopicRule": doDeleteTopicRule,
         
     | 
| 
      
 9796 
     | 
    
         
            +
                "DescribeTWeTalkProductConfigV2": doDescribeTWeTalkProductConfigV2,
         
     | 
| 
       9588 
9797 
     | 
    
         
             
                "DeleteOtaModule": doDeleteOtaModule,
         
     | 
| 
       9589 
9798 
     | 
    
         
             
                "DescribeCloudStorageAIService": doDescribeCloudStorageAIService,
         
     | 
| 
       9590 
9799 
     | 
    
         
             
                "DescribeFenceBindList": doDescribeFenceBindList,
         
     | 
| 
         @@ -9662,8 +9871,10 @@ ACTION_MAP = { 
     | 
|
| 
       9662 
9871 
     | 
    
         
             
                "ModifyTopicPolicy": doModifyTopicPolicy,
         
     | 
| 
       9663 
9872 
     | 
    
         
             
                "DescribeSpaceFenceEventList": doDescribeSpaceFenceEventList,
         
     | 
| 
       9664 
9873 
     | 
    
         
             
                "UpdateFirmware": doUpdateFirmware,
         
     | 
| 
      
 9874 
     | 
    
         
            +
                "ActivateTWeCallLicense": doActivateTWeCallLicense,
         
     | 
| 
       9665 
9875 
     | 
    
         
             
                "GetTWeCallActiveStatus": doGetTWeCallActiveStatus,
         
     | 
| 
       9666 
9876 
     | 
    
         
             
                "DescribeGatewaySubProducts": doDescribeGatewaySubProducts,
         
     | 
| 
      
 9877 
     | 
    
         
            +
                "DeleteDevices": doDeleteDevices,
         
     | 
| 
       9667 
9878 
     | 
    
         
             
                "CreateOtaModule": doCreateOtaModule,
         
     | 
| 
       9668 
9879 
     | 
    
         
             
                "DescribeDevicePositionList": doDescribeDevicePositionList,
         
     | 
| 
       9669 
9880 
     | 
    
         
             
                "DescribeFirmware": doDescribeFirmware,
         
     | 
| 
         @@ -9674,6 +9885,7 @@ ACTION_MAP = { 
     | 
|
| 
       9674 
9885 
     | 
    
         
             
                "CreateCloudStorageAIServiceTask": doCreateCloudStorageAIServiceTask,
         
     | 
| 
       9675 
9886 
     | 
    
         
             
                "DisableTopicRule": doDisableTopicRule,
         
     | 
| 
       9676 
9887 
     | 
    
         
             
                "GetFamilyDeviceUserList": doGetFamilyDeviceUserList,
         
     | 
| 
      
 9888 
     | 
    
         
            +
                "ModifyTWeTalkProductConfigV2": doModifyTWeTalkProductConfigV2,
         
     | 
| 
       9677 
9889 
     | 
    
         
             
                "ModifyCloudStorageAIService": doModifyCloudStorageAIService,
         
     | 
| 
       9678 
9890 
     | 
    
         
             
                "DescribeProject": doDescribeProject,
         
     | 
| 
       9679 
9891 
     | 
    
         
             
                "DescribeTWeTalkProductConfig": doDescribeTWeTalkProductConfig,
         
     | 
| 
         @@ -9683,10 +9895,10 @@ ACTION_MAP = { 
     | 
|
| 
       9683 
9895 
     | 
    
         
             
                "DescribeDevice": doDescribeDevice,
         
     | 
| 
       9684 
9896 
     | 
    
         
             
                "DescribeBatchProduction": doDescribeBatchProduction,
         
     | 
| 
       9685 
9897 
     | 
    
         
             
                "CreateExternalSourceAIServiceTask": doCreateExternalSourceAIServiceTask,
         
     | 
| 
       9686 
     | 
    
         
            -
                " 
     | 
| 
      
 9898 
     | 
    
         
            +
                "GetTWeTalkProductConfigListV2": doGetTWeTalkProductConfigListV2,
         
     | 
| 
       9687 
9899 
     | 
    
         
             
                "UpdateDeviceTWeCallAuthorizeStatus": doUpdateDeviceTWeCallAuthorizeStatus,
         
     | 
| 
       9688 
9900 
     | 
    
         
             
                "DeleteCloudStorageEvent": doDeleteCloudStorageEvent,
         
     | 
| 
       9689 
     | 
    
         
            -
                " 
     | 
| 
      
 9901 
     | 
    
         
            +
                "CreateTWeTalkProductConfigV2": doCreateTWeTalkProductConfigV2,
         
     | 
| 
       9690 
9902 
     | 
    
         
             
                "CreateDeviceChannel": doCreateDeviceChannel,
         
     | 
| 
       9691 
9903 
     | 
    
         
             
                "CheckFirmwareUpdate": doCheckFirmwareUpdate,
         
     | 
| 
       9692 
9904 
     | 
    
         
             
                "GetGatewaySubDeviceList": doGetGatewaySubDeviceList,
         
     |