tccli 3.0.1090.1__py2.py3-none-any.whl → 3.0.1092.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/ccc/v20200210/UploadIvrAudio.md +16 -1
- tccli/examples/cdb/v20170320/CheckMigrateCluster.md +18 -0
- tccli/examples/cdb/v20170320/DescribeClusterInfo.md +59 -0
- tccli/examples/csip/v20221121/DescribeAssetViewVulRiskList.md +5 -302
- tccli/examples/domain/v20180808/BidPreDomains.md +21 -0
- tccli/examples/domain/v20180808/DescribeReservedBidInfo.md +43 -0
- tccli/examples/domain/v20180808/DescribeReservedPreDomainInfo.md +31 -0
- tccli/examples/es/v20180416/UpdateInstance.md +27 -27
- tccli/examples/es/v20180416/UpdatePlugins.md +6 -6
- tccli/examples/ess/v20201111/CreateBatchOrganizationRegistrationTasks.md +146 -0
- tccli/examples/ess/v20201111/CreateOrganizationAuthUrl.md +18 -0
- tccli/examples/ess/v20201111/CreateOrganizationBatchSignUrl.md +28 -0
- tccli/examples/gs/v20191118/StartPublishStreamToCSS.md +20 -0
- tccli/examples/hunyuan/v20230901/ChatPro.md +69 -31
- tccli/examples/hunyuan/v20230901/ChatStd.md +40 -1
- tccli/examples/lke/v20231130/CheckAttributeLabelExist.md +24 -0
- tccli/examples/lke/v20231130/CheckAttributeLabelRefer.md +23 -0
- tccli/examples/lke/v20231130/CreateApp.md +24 -0
- tccli/examples/lke/v20231130/CreateAttributeLabel.md +24 -0
- tccli/examples/lke/v20231130/CreateCorp.md +24 -0
- tccli/examples/lke/v20231130/CreateQA.md +24 -0
- tccli/examples/lke/v20231130/CreateQACate.md +26 -0
- tccli/examples/lke/v20231130/CreateRejectedQuestion.md +22 -0
- tccli/examples/lke/v20231130/CreateRelease.md +21 -0
- tccli/examples/lke/v20231130/DeleteApp.md +21 -0
- tccli/examples/lke/v20231130/DeleteAttributeLabel.md +21 -0
- tccli/examples/lke/v20231130/DeleteDoc.md +21 -0
- tccli/examples/lke/v20231130/DeleteQA.md +21 -0
- tccli/examples/lke/v20231130/DeleteQACate.md +21 -0
- tccli/examples/lke/v20231130/DeleteRejectedQuestion.md +21 -0
- tccli/examples/lke/v20231130/DescribeApp.md +29 -0
- tccli/examples/lke/v20231130/DescribeAttributeLabel.md +28 -0
- tccli/examples/lke/v20231130/DescribeCorp.md +21 -0
- tccli/examples/lke/v20231130/DescribeDoc.md +44 -0
- tccli/examples/lke/v20231130/DescribeQA.md +42 -0
- tccli/examples/lke/v20231130/DescribeRefer.md +35 -0
- tccli/examples/lke/v20231130/DescribeRelease.md +25 -0
- tccli/examples/lke/v20231130/DescribeReleaseInfo.md +24 -0
- tccli/examples/lke/v20231130/DescribeRobotBizIDByAppKey.md +21 -0
- tccli/examples/lke/v20231130/DescribeStorageCredential.md +32 -0
- tccli/examples/lke/v20231130/DescribeUnsatisfiedReplyContext.md +121 -0
- tccli/examples/lke/v20231130/ExportAttributeLabel.md +21 -0
- tccli/examples/lke/v20231130/ExportQAList.md +21 -0
- tccli/examples/lke/v20231130/ExportUnsatisfiedReply.md +21 -0
- tccli/examples/lke/v20231130/GenerateQA.md +21 -0
- tccli/examples/lke/v20231130/GetAppKnowledgeCount.md +22 -0
- tccli/examples/lke/v20231130/GetAppSecret.md +24 -0
- tccli/examples/lke/v20231130/GetDocPreview.md +26 -0
- tccli/examples/lke/v20231130/GetEmbedding.md +29 -0
- tccli/examples/lke/v20231130/GetMsgRecord.md +51 -0
- tccli/examples/lke/v20231130/GetTaskStatus.md +0 -0
- tccli/examples/lke/v20231130/GetWsToken.md +44 -0
- tccli/examples/lke/v20231130/GroupQA.md +44 -0
- tccli/examples/lke/v20231130/IgnoreUnsatisfiedReply.md +21 -0
- tccli/examples/lke/v20231130/IsTransferIntent.md +22 -0
- tccli/examples/lke/v20231130/ListApp.md +36 -0
- tccli/examples/lke/v20231130/ListAppCategory.md +25 -0
- tccli/examples/lke/v20231130/ListAttributeLabel.md +33 -0
- tccli/examples/lke/v20231130/ListDoc.md +52 -0
- tccli/examples/lke/v20231130/ListModel.md +31 -0
- tccli/examples/lke/v20231130/ListQA.md +66 -0
- tccli/examples/lke/v20231130/ListQACate.md +41 -0
- tccli/examples/lke/v20231130/ListRejectedQuestion.md +52 -0
- tccli/examples/lke/v20231130/ListRejectedQuestionPreview.md +37 -0
- tccli/examples/lke/v20231130/ListRelease.md +36 -0
- tccli/examples/lke/v20231130/ListReleaseConfigPreview.md +129 -0
- tccli/examples/lke/v20231130/ListReleaseDocPreview.md +38 -0
- tccli/examples/lke/v20231130/ListReleaseQAPreview.md +107 -0
- tccli/examples/lke/v20231130/ListSelectDoc.md +27 -0
- tccli/examples/lke/v20231130/ListUnsatisfiedReply.md +24 -0
- tccli/examples/lke/v20231130/ModifyApp.md +25 -0
- tccli/examples/lke/v20231130/ModifyAttributeLabel.md +23 -0
- tccli/examples/lke/v20231130/ModifyDoc.md +25 -0
- tccli/examples/lke/v20231130/ModifyDocAttrRange.md +25 -0
- tccli/examples/lke/v20231130/ModifyQA.md +24 -0
- tccli/examples/lke/v20231130/ModifyQAAttrRange.md +25 -0
- tccli/examples/lke/v20231130/ModifyQACate.md +22 -0
- tccli/examples/lke/v20231130/ModifyRejectedQuestion.md +22 -0
- tccli/examples/lke/v20231130/ParseDoc.md +25 -0
- tccli/examples/lke/v20231130/QueryParseDocResult.md +24 -0
- tccli/examples/lke/v20231130/QueryRewrite.md +25 -0
- tccli/examples/lke/v20231130/RateMsgRecord.md +22 -0
- tccli/examples/lke/v20231130/ResetSession.md +20 -0
- tccli/examples/lke/v20231130/RetryDocAudit.md +21 -0
- tccli/examples/lke/v20231130/RetryDocParse.md +21 -0
- tccli/examples/lke/v20231130/RetryRelease.md +21 -0
- tccli/examples/lke/v20231130/SaveDoc.md +34 -0
- tccli/examples/lke/v20231130/StopDocParse.md +21 -0
- tccli/examples/lke/v20231130/UploadAttributeLabel.md +27 -0
- tccli/examples/lke/v20231130/VerifyQA.md +27 -0
- tccli/examples/mna/v20210119/GetFlowPackages.md +3 -1
- tccli/examples/mna/v20210119/GetFlowStatistic.md +42 -0
- tccli/examples/ocr/v20181119/GeneralBasicOCR.md +0 -1
- tccli/examples/organization/v20210331/AddOrganizationNode.md +1 -1
- tccli/examples/organization/v20210331/BindOrganizationMemberAuthAccount.md +3 -3
- tccli/examples/organization/v20210331/CancelOrganizationMemberAuthAccount.md +3 -3
- tccli/examples/organization/v20210331/CheckAccountDelete.md +5 -5
- tccli/examples/organization/v20210331/CreateOrganizationMember.md +2 -2
- tccli/examples/organization/v20210331/CreateOrganizationMemberAuthIdentity.md +1 -1
- tccli/examples/organization/v20210331/CreateOrganizationMemberPolicy.md +5 -5
- tccli/examples/organization/v20210331/CreateOrganizationMembersPolicy.md +2 -2
- tccli/examples/organization/v20210331/DeleteOrganizationMembers.md +1 -1
- tccli/examples/organization/v20210331/DeleteOrganizationNodes.md +1 -1
- tccli/examples/organization/v20210331/DeleteShareUnitResources.md +1 -1
- tccli/examples/organization/v20210331/DescribeOrganizationMemberAuthAccounts.md +2 -2
- tccli/examples/organization/v20210331/DescribeOrganizationMemberPolicies.md +1 -1
- tccli/examples/organization/v20210331/MoveOrganizationNodeMembers.md +2 -2
- tccli/examples/organization/v20210331/QuitOrganization.md +1 -1
- tccli/examples/organization/v20210331/UpdateOrganizationMember.md +2 -2
- tccli/examples/organization/v20210331/UpdateOrganizationMemberEmailBind.md +3 -3
- tccli/examples/organization/v20210331/UpdateOrganizationNode.md +3 -2
- tccli/examples/sqlserver/v20180328/DescribeDBInstancesAttribute.md +7 -1
- tccli/examples/sqlserver/v20180328/DescribeRestoreTimeRange.md +23 -0
- tccli/examples/ssl/v20191205/DeployCertificateInstance.md +26 -1
- tccli/examples/tione/v20211111/CreateBatchTask.md +1 -0
- tccli/services/__init__.py +3 -0
- tccli/services/aiart/v20221229/api.json +7 -7
- tccli/services/antiddos/v20200309/api.json +10 -0
- tccli/services/asr/v20190614/api.json +6 -6
- tccli/services/captcha/v20190722/api.json +75 -31
- tccli/services/ccc/v20200210/api.json +10 -0
- tccli/services/ccc/v20200210/examples.json +1 -1
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +255 -0
- tccli/services/cdb/v20170320/examples.json +16 -0
- tccli/services/cdn/v20180606/api.json +4 -4
- tccli/services/cfg/v20210820/api.json +30 -33
- tccli/services/ckafka/v20190819/api.json +29 -24
- tccli/services/csip/v20221121/api.json +17 -11
- tccli/services/csip/v20221121/examples.json +1 -1
- tccli/services/domain/domain_client.py +114 -8
- tccli/services/domain/v20180808/api.json +174 -1
- tccli/services/domain/v20180808/examples.json +22 -0
- tccli/services/dts/v20211206/api.json +22 -2
- tccli/services/es/v20180416/api.json +12 -12
- tccli/services/es/v20180416/examples.json +21 -21
- tccli/services/ess/ess_client.py +149 -43
- tccli/services/ess/v20201111/api.json +215 -5
- tccli/services/ess/v20201111/examples.json +34 -0
- tccli/services/essbasic/v20210526/api.json +15 -15
- tccli/services/faceid/v20180301/api.json +14 -5
- tccli/services/gs/gs_client.py +53 -0
- tccli/services/gs/v20191118/api.json +43 -0
- tccli/services/gs/v20191118/examples.json +8 -0
- tccli/services/hunyuan/v20230901/api.json +67 -21
- tccli/services/hunyuan/v20230901/examples.json +17 -5
- tccli/services/iai/v20180301/api.json +19 -19
- tccli/services/iss/v20230517/api.json +38 -0
- tccli/services/live/v20180801/api.json +12 -12
- tccli/services/lke/__init__.py +4 -0
- tccli/services/lke/lke_client.py +4117 -0
- tccli/services/lke/v20231130/api.json +9010 -0
- tccli/services/lke/v20231130/examples.json +617 -0
- tccli/services/mna/v20210119/api.json +249 -29
- tccli/services/mna/v20210119/examples.json +7 -1
- tccli/services/monitor/monitor_client.py +0 -53
- tccli/services/monitor/v20180724/api.json +30 -62
- tccli/services/monitor/v20180724/examples.json +0 -8
- tccli/services/ocr/v20181119/api.json +5 -0
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/organization/v20210331/api.json +128 -119
- tccli/services/organization/v20210331/examples.json +24 -24
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/scf/v20180416/api.json +18 -9
- tccli/services/sms/v20210111/api.json +1 -1
- tccli/services/soe/v20180724/api.json +13 -13
- tccli/services/sqlserver/sqlserver_client.py +110 -57
- tccli/services/sqlserver/v20180328/api.json +109 -0
- tccli/services/sqlserver/v20180328/examples.json +9 -1
- tccli/services/ssl/v20191205/examples.json +7 -1
- tccli/services/tione/v20211111/api.json +61 -4
- tccli/services/tione/v20211111/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +79 -10
- tccli/services/wedata/v20210820/api.json +295 -1437
- tccli/services/wedata/v20210820/examples.json +0 -88
- tccli/services/wedata/wedata_client.py +33 -616
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/RECORD +182 -95
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/license_files/LICENSE +0 -0
@@ -237,6 +237,39 @@
|
|
237
237
|
"required": false,
|
238
238
|
"type": "int",
|
239
239
|
"value_allowed_null": false
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"disabled": false,
|
243
|
+
"document": "当付费方为租户时,可选择租户license付费方式:\n0,月度授权\n1,永久授权\n若不传则默认为月度授权。\n当付费方为厂商时,此参数无效\n\n注意:此字段可能返回 null,表示取不到有效值。",
|
244
|
+
"example": "0",
|
245
|
+
"member": "int64",
|
246
|
+
"name": "LicensePayMode",
|
247
|
+
"output_required": true,
|
248
|
+
"required": false,
|
249
|
+
"type": "int",
|
250
|
+
"value_allowed_null": true
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"disabled": false,
|
254
|
+
"document": "设备分组ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
255
|
+
"example": "xxx",
|
256
|
+
"member": "string",
|
257
|
+
"name": "GroupId",
|
258
|
+
"output_required": false,
|
259
|
+
"required": false,
|
260
|
+
"type": "string",
|
261
|
+
"value_allowed_null": true
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"disabled": false,
|
265
|
+
"document": "设备分组名称,预留参数,需要分组时传入GroupId\n注意:此字段可能返回 null,表示取不到有效值。",
|
266
|
+
"example": "xxx",
|
267
|
+
"member": "string",
|
268
|
+
"name": "GroupName",
|
269
|
+
"output_required": false,
|
270
|
+
"required": false,
|
271
|
+
"type": "string",
|
272
|
+
"value_allowed_null": true
|
240
273
|
}
|
241
274
|
],
|
242
275
|
"usage": "both"
|
@@ -325,6 +358,33 @@
|
|
325
358
|
"name": "AccessScope",
|
326
359
|
"required": false,
|
327
360
|
"type": "int"
|
361
|
+
},
|
362
|
+
{
|
363
|
+
"disabled": false,
|
364
|
+
"document": "license付费方式: \n0,月度授权 \n1,永久授权 \n若不传则默认为月度授权",
|
365
|
+
"example": "0",
|
366
|
+
"member": "int64",
|
367
|
+
"name": "LicensePayMode",
|
368
|
+
"required": false,
|
369
|
+
"type": "int"
|
370
|
+
},
|
371
|
+
{
|
372
|
+
"disabled": false,
|
373
|
+
"document": "设备分组名称,非必选,预留参数,需要分组时传入GroupId",
|
374
|
+
"example": "group-test",
|
375
|
+
"member": "string",
|
376
|
+
"name": "GroupName",
|
377
|
+
"required": false,
|
378
|
+
"type": "string"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"disabled": false,
|
382
|
+
"document": "设备分组ID,非必选,如果不填写则默认设备无分组",
|
383
|
+
"example": "1a2b3c4d5e",
|
384
|
+
"member": "string",
|
385
|
+
"name": "GroupId",
|
386
|
+
"required": false,
|
387
|
+
"type": "string"
|
328
388
|
}
|
329
389
|
],
|
330
390
|
"type": "object"
|
@@ -853,6 +913,46 @@
|
|
853
913
|
"output_required": true,
|
854
914
|
"type": "int",
|
855
915
|
"value_allowed_null": false
|
916
|
+
},
|
917
|
+
{
|
918
|
+
"disabled": false,
|
919
|
+
"document": "license授权有效期 0:月度授权 1:永久授权\n注意:此字段可能返回 null,表示取不到有效值。",
|
920
|
+
"example": "无",
|
921
|
+
"member": "int64",
|
922
|
+
"name": "LicensePayMode",
|
923
|
+
"output_required": false,
|
924
|
+
"type": "int",
|
925
|
+
"value_allowed_null": true
|
926
|
+
},
|
927
|
+
{
|
928
|
+
"disabled": false,
|
929
|
+
"document": "付费方 0:厂商付费 1:客户付费\n注意:此字段可能返回 null,表示取不到有效值。",
|
930
|
+
"example": "无",
|
931
|
+
"member": "int64",
|
932
|
+
"name": "Payer",
|
933
|
+
"output_required": false,
|
934
|
+
"type": "int",
|
935
|
+
"value_allowed_null": true
|
936
|
+
},
|
937
|
+
{
|
938
|
+
"disabled": false,
|
939
|
+
"document": "设备分组ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
940
|
+
"example": "\"xxx\"",
|
941
|
+
"member": "string",
|
942
|
+
"name": "GroupId",
|
943
|
+
"output_required": true,
|
944
|
+
"type": "string",
|
945
|
+
"value_allowed_null": true
|
946
|
+
},
|
947
|
+
{
|
948
|
+
"disabled": false,
|
949
|
+
"document": "设备分组名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
950
|
+
"example": "\"xxx\"",
|
951
|
+
"member": "string",
|
952
|
+
"name": "GroupName",
|
953
|
+
"output_required": true,
|
954
|
+
"type": "string",
|
955
|
+
"value_allowed_null": true
|
856
956
|
}
|
857
957
|
],
|
858
958
|
"usage": "out"
|
@@ -866,7 +966,7 @@
|
|
866
966
|
"example": "无",
|
867
967
|
"member": "DeviceBaseInfo",
|
868
968
|
"name": "DeviceBaseInfo",
|
869
|
-
"
|
969
|
+
"output_required": true,
|
870
970
|
"type": "object",
|
871
971
|
"value_allowed_null": false
|
872
972
|
},
|
@@ -876,7 +976,7 @@
|
|
876
976
|
"example": "无",
|
877
977
|
"member": "DeviceNetInfo",
|
878
978
|
"name": "DeviceNetInfo",
|
879
|
-
"
|
979
|
+
"output_required": true,
|
880
980
|
"type": "list",
|
881
981
|
"value_allowed_null": true
|
882
982
|
},
|
@@ -886,7 +986,7 @@
|
|
886
986
|
"example": "gz",
|
887
987
|
"member": "string",
|
888
988
|
"name": "GatewaySite",
|
889
|
-
"
|
989
|
+
"output_required": true,
|
890
990
|
"type": "string",
|
891
991
|
"value_allowed_null": true
|
892
992
|
},
|
@@ -896,7 +996,7 @@
|
|
896
996
|
"example": "123",
|
897
997
|
"member": "float",
|
898
998
|
"name": "BusinessDownRate",
|
899
|
-
"
|
999
|
+
"output_required": true,
|
900
1000
|
"type": "float",
|
901
1001
|
"value_allowed_null": true
|
902
1002
|
},
|
@@ -906,7 +1006,7 @@
|
|
906
1006
|
"example": "12",
|
907
1007
|
"member": "float",
|
908
1008
|
"name": "BusinessUpRate",
|
909
|
-
"
|
1009
|
+
"output_required": true,
|
910
1010
|
"type": "float",
|
911
1011
|
"value_allowed_null": true
|
912
1012
|
}
|
@@ -1375,6 +1475,26 @@
|
|
1375
1475
|
"output_required": true,
|
1376
1476
|
"type": "int",
|
1377
1477
|
"value_allowed_null": false
|
1478
|
+
},
|
1479
|
+
{
|
1480
|
+
"disabled": false,
|
1481
|
+
"document": "流量截断标识。true代表开启流量截断,false代表不开启流量截断",
|
1482
|
+
"example": "false",
|
1483
|
+
"member": "bool",
|
1484
|
+
"name": "TruncFlag",
|
1485
|
+
"output_required": true,
|
1486
|
+
"type": "bool",
|
1487
|
+
"value_allowed_null": false
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"disabled": false,
|
1491
|
+
"document": "流量包精确余量,单位:MB",
|
1492
|
+
"example": "12345",
|
1493
|
+
"member": "uint64",
|
1494
|
+
"name": "CapacityRemainPrecise",
|
1495
|
+
"output_required": true,
|
1496
|
+
"type": "int",
|
1497
|
+
"value_allowed_null": false
|
1378
1498
|
}
|
1379
1499
|
],
|
1380
1500
|
"usage": "out"
|
@@ -1648,7 +1768,7 @@
|
|
1648
1768
|
},
|
1649
1769
|
{
|
1650
1770
|
"disabled": false,
|
1651
|
-
"document": "流量种类(1:上行流量,2
|
1771
|
+
"document": "流量种类(1:上行流量,2:下行流量,3:上下行总和)",
|
1652
1772
|
"example": "1",
|
1653
1773
|
"member": "int64",
|
1654
1774
|
"name": "Type",
|
@@ -1681,6 +1801,15 @@
|
|
1681
1801
|
"name": "GatewayType",
|
1682
1802
|
"required": false,
|
1683
1803
|
"type": "int"
|
1804
|
+
},
|
1805
|
+
{
|
1806
|
+
"disabled": false,
|
1807
|
+
"document": "设备ID列表,用于查询多设备流量,该字段启用时DeviceId可传\"-1\"",
|
1808
|
+
"example": "[\"mna-test1\",\"mna-test2\"]",
|
1809
|
+
"member": "string",
|
1810
|
+
"name": "DeviceList",
|
1811
|
+
"required": false,
|
1812
|
+
"type": "list"
|
1684
1813
|
}
|
1685
1814
|
],
|
1686
1815
|
"type": "object"
|
@@ -1844,7 +1973,7 @@
|
|
1844
1973
|
},
|
1845
1974
|
{
|
1846
1975
|
"disabled": false,
|
1847
|
-
"document": "统计流量类型(1:上行流量,2
|
1976
|
+
"document": "统计流量类型(1:上行流量,2:下行流量, 3: 上下行总和)",
|
1848
1977
|
"example": "1",
|
1849
1978
|
"member": "int64",
|
1850
1979
|
"name": "Type",
|
@@ -2069,6 +2198,24 @@
|
|
2069
2198
|
"name": "GatewayType",
|
2070
2199
|
"required": false,
|
2071
2200
|
"type": "int"
|
2201
|
+
},
|
2202
|
+
{
|
2203
|
+
"disabled": false,
|
2204
|
+
"document": "设备ID列表,最多10个设备,下载多个设备流量和时使用,此时DeviceId可传\"-1\"",
|
2205
|
+
"example": "[\"mna-test1\",\"mna-test2\"]",
|
2206
|
+
"member": "string",
|
2207
|
+
"name": "DeviceList",
|
2208
|
+
"required": false,
|
2209
|
+
"type": "list"
|
2210
|
+
},
|
2211
|
+
{
|
2212
|
+
"disabled": false,
|
2213
|
+
"document": "设备分组ID,若不指定分组则不传,按分组下载数据时使用",
|
2214
|
+
"example": "\"group-test\"",
|
2215
|
+
"member": "string",
|
2216
|
+
"name": "GroupId",
|
2217
|
+
"required": false,
|
2218
|
+
"type": "string"
|
2072
2219
|
}
|
2073
2220
|
],
|
2074
2221
|
"type": "object"
|
@@ -2185,16 +2332,18 @@
|
|
2185
2332
|
"example": "xxxx",
|
2186
2333
|
"member": "string",
|
2187
2334
|
"name": "SN",
|
2335
|
+
"output_required": true,
|
2188
2336
|
"required": true,
|
2189
2337
|
"type": "string",
|
2190
2338
|
"value_allowed_null": true
|
2191
2339
|
},
|
2192
2340
|
{
|
2193
2341
|
"disabled": false,
|
2194
|
-
"document": "license计费模式:\n1
|
2342
|
+
"document": "license计费模式:\n1,租户付费\n2,厂商月付费\n3,厂商永久授权\n注意:此字段可能返回 null,表示取不到有效值。",
|
2195
2343
|
"example": "1",
|
2196
2344
|
"member": "int64",
|
2197
2345
|
"name": "LicenseChargingMode",
|
2346
|
+
"output_required": true,
|
2198
2347
|
"required": true,
|
2199
2348
|
"type": "int",
|
2200
2349
|
"value_allowed_null": true
|
@@ -2205,6 +2354,7 @@
|
|
2205
2354
|
"example": "test",
|
2206
2355
|
"member": "string",
|
2207
2356
|
"name": "Description",
|
2357
|
+
"output_required": true,
|
2208
2358
|
"required": false,
|
2209
2359
|
"type": "string",
|
2210
2360
|
"value_allowed_null": true
|
@@ -2215,6 +2365,7 @@
|
|
2215
2365
|
"example": "xxx",
|
2216
2366
|
"member": "string",
|
2217
2367
|
"name": "HardwareId",
|
2368
|
+
"output_required": true,
|
2218
2369
|
"required": false,
|
2219
2370
|
"type": "string",
|
2220
2371
|
"value_allowed_null": true
|
@@ -2231,7 +2382,7 @@
|
|
2231
2382
|
"example": "mna-xxx",
|
2232
2383
|
"member": "string",
|
2233
2384
|
"name": "DeviceId",
|
2234
|
-
"
|
2385
|
+
"output_required": true,
|
2235
2386
|
"type": "string",
|
2236
2387
|
"value_allowed_null": true
|
2237
2388
|
},
|
@@ -2241,7 +2392,7 @@
|
|
2241
2392
|
"example": "xxx",
|
2242
2393
|
"member": "string",
|
2243
2394
|
"name": "DeviceName",
|
2244
|
-
"
|
2395
|
+
"output_required": true,
|
2245
2396
|
"type": "string",
|
2246
2397
|
"value_allowed_null": true
|
2247
2398
|
},
|
@@ -2251,7 +2402,7 @@
|
|
2251
2402
|
"example": "1676800844",
|
2252
2403
|
"member": "string",
|
2253
2404
|
"name": "ActiveTime",
|
2254
|
-
"
|
2405
|
+
"output_required": true,
|
2255
2406
|
"type": "string",
|
2256
2407
|
"value_allowed_null": true
|
2257
2408
|
},
|
@@ -2261,7 +2412,7 @@
|
|
2261
2412
|
"example": "1676800844",
|
2262
2413
|
"member": "string",
|
2263
2414
|
"name": "LastOnlineTime",
|
2264
|
-
"
|
2415
|
+
"output_required": false,
|
2265
2416
|
"type": "string",
|
2266
2417
|
"value_allowed_null": true
|
2267
2418
|
},
|
@@ -2271,7 +2422,7 @@
|
|
2271
2422
|
"example": "xxxx",
|
2272
2423
|
"member": "string",
|
2273
2424
|
"name": "Description",
|
2274
|
-
"
|
2425
|
+
"output_required": true,
|
2275
2426
|
"type": "string",
|
2276
2427
|
"value_allowed_null": true
|
2277
2428
|
},
|
@@ -2281,17 +2432,17 @@
|
|
2281
2432
|
"example": "xxx",
|
2282
2433
|
"member": "string",
|
2283
2434
|
"name": "VendorDescription",
|
2284
|
-
"
|
2435
|
+
"output_required": true,
|
2285
2436
|
"type": "string",
|
2286
2437
|
"value_allowed_null": true
|
2287
2438
|
},
|
2288
2439
|
{
|
2289
2440
|
"disabled": false,
|
2290
|
-
"document": "license计费模式: 1,租户月付费 2,厂商月付费 3,license永久授权\n注意:此字段可能返回 null,表示取不到有效值。",
|
2441
|
+
"document": "license计费模式: 1,租户月付费 2,厂商月付费 3,license永久授权\n注:后续将废弃此参数,新接入请使用LicensePayMode和Payer\n注意:此字段可能返回 null,表示取不到有效值。",
|
2291
2442
|
"example": "1",
|
2292
2443
|
"member": "int64",
|
2293
2444
|
"name": "LicenseChargingMode",
|
2294
|
-
"
|
2445
|
+
"output_required": true,
|
2295
2446
|
"type": "int",
|
2296
2447
|
"value_allowed_null": true
|
2297
2448
|
},
|
@@ -2301,7 +2452,7 @@
|
|
2301
2452
|
"example": "1676800844",
|
2302
2453
|
"member": "string",
|
2303
2454
|
"name": "CreateTime",
|
2304
|
-
"
|
2455
|
+
"output_required": true,
|
2305
2456
|
"type": "string",
|
2306
2457
|
"value_allowed_null": true
|
2307
2458
|
},
|
@@ -2311,7 +2462,47 @@
|
|
2311
2462
|
"example": "xxx",
|
2312
2463
|
"member": "string",
|
2313
2464
|
"name": "SN",
|
2314
|
-
"
|
2465
|
+
"output_required": true,
|
2466
|
+
"type": "string",
|
2467
|
+
"value_allowed_null": true
|
2468
|
+
},
|
2469
|
+
{
|
2470
|
+
"disabled": false,
|
2471
|
+
"document": "license授权有效期 \n0:月度授权 \n1:永久授权\n注意:此字段可能返回 null,表示取不到有效值。",
|
2472
|
+
"example": "0",
|
2473
|
+
"member": "int64",
|
2474
|
+
"name": "LicensePayMode",
|
2475
|
+
"output_required": true,
|
2476
|
+
"type": "int",
|
2477
|
+
"value_allowed_null": true
|
2478
|
+
},
|
2479
|
+
{
|
2480
|
+
"disabled": false,
|
2481
|
+
"document": "付费方 \n0:客户付费 \n1:厂商付费\n注意:此字段可能返回 null,表示取不到有效值。",
|
2482
|
+
"example": "无",
|
2483
|
+
"member": "int64",
|
2484
|
+
"name": "Payer",
|
2485
|
+
"output_required": true,
|
2486
|
+
"type": "int",
|
2487
|
+
"value_allowed_null": true
|
2488
|
+
},
|
2489
|
+
{
|
2490
|
+
"disabled": false,
|
2491
|
+
"document": "设备分组ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
2492
|
+
"example": "\"xxx\"",
|
2493
|
+
"member": "string",
|
2494
|
+
"name": "GroupId",
|
2495
|
+
"output_required": true,
|
2496
|
+
"type": "string",
|
2497
|
+
"value_allowed_null": true
|
2498
|
+
},
|
2499
|
+
{
|
2500
|
+
"disabled": false,
|
2501
|
+
"document": "设备分组名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
2502
|
+
"example": "\"xxx\"",
|
2503
|
+
"member": "string",
|
2504
|
+
"name": "GroupName",
|
2505
|
+
"output_required": true,
|
2315
2506
|
"type": "string",
|
2316
2507
|
"value_allowed_null": true
|
2317
2508
|
}
|
@@ -2485,7 +2676,7 @@
|
|
2485
2676
|
},
|
2486
2677
|
{
|
2487
2678
|
"disabled": false,
|
2488
|
-
"document": "
|
2679
|
+
"document": "是否自动续费,该选项和流量截断冲突,只能开启一个",
|
2489
2680
|
"example": "true",
|
2490
2681
|
"member": "bool",
|
2491
2682
|
"name": "AutoRenewFlag",
|
@@ -2501,6 +2692,15 @@
|
|
2501
2692
|
"required": true,
|
2502
2693
|
"type": "int"
|
2503
2694
|
},
|
2695
|
+
{
|
2696
|
+
"disabled": false,
|
2697
|
+
"document": "是否开启流量截断功能,该选项和自动续费冲突",
|
2698
|
+
"example": "false",
|
2699
|
+
"member": "bool",
|
2700
|
+
"name": "FlowTruncFlag",
|
2701
|
+
"required": false,
|
2702
|
+
"type": "bool"
|
2703
|
+
},
|
2504
2704
|
{
|
2505
2705
|
"disabled": false,
|
2506
2706
|
"document": "是否自动选择代金券,默认false。\n有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。",
|
@@ -2780,7 +2980,7 @@
|
|
2780
2980
|
"example": "cpe-xxx",
|
2781
2981
|
"member": "string",
|
2782
2982
|
"name": "HardwareId",
|
2783
|
-
"
|
2983
|
+
"output_required": true,
|
2784
2984
|
"type": "string",
|
2785
2985
|
"value_allowed_null": true
|
2786
2986
|
},
|
@@ -2790,7 +2990,7 @@
|
|
2790
2990
|
"example": "xxx",
|
2791
2991
|
"member": "string",
|
2792
2992
|
"name": "SN",
|
2793
|
-
"
|
2993
|
+
"output_required": true,
|
2794
2994
|
"type": "string",
|
2795
2995
|
"value_allowed_null": true
|
2796
2996
|
},
|
@@ -2800,7 +3000,7 @@
|
|
2800
3000
|
"example": "1680019225",
|
2801
3001
|
"member": "string",
|
2802
3002
|
"name": "CreateTime",
|
2803
|
-
"
|
3003
|
+
"output_required": true,
|
2804
3004
|
"type": "string",
|
2805
3005
|
"value_allowed_null": true
|
2806
3006
|
},
|
@@ -2810,7 +3010,7 @@
|
|
2810
3010
|
"example": "1",
|
2811
3011
|
"member": "int64",
|
2812
3012
|
"name": "Status",
|
2813
|
-
"
|
3013
|
+
"output_required": true,
|
2814
3014
|
"type": "int",
|
2815
3015
|
"value_allowed_null": true
|
2816
3016
|
},
|
@@ -2820,7 +3020,7 @@
|
|
2820
3020
|
"example": "1680019225",
|
2821
3021
|
"member": "string",
|
2822
3022
|
"name": "ActiveTime",
|
2823
|
-
"
|
3023
|
+
"output_required": false,
|
2824
3024
|
"type": "string",
|
2825
3025
|
"value_allowed_null": true
|
2826
3026
|
},
|
@@ -2830,7 +3030,7 @@
|
|
2830
3030
|
"example": "xxx",
|
2831
3031
|
"member": "string",
|
2832
3032
|
"name": "Description",
|
2833
|
-
"
|
3033
|
+
"output_required": true,
|
2834
3034
|
"type": "string",
|
2835
3035
|
"value_allowed_null": true
|
2836
3036
|
},
|
@@ -2840,17 +3040,17 @@
|
|
2840
3040
|
"example": "mna-xxx",
|
2841
3041
|
"member": "string",
|
2842
3042
|
"name": "DeviceId",
|
2843
|
-
"
|
3043
|
+
"output_required": true,
|
2844
3044
|
"type": "string",
|
2845
3045
|
"value_allowed_null": true
|
2846
3046
|
},
|
2847
3047
|
{
|
2848
3048
|
"disabled": false,
|
2849
|
-
"document": "license计费模式: 1,租户月付费 2,厂商月付费 3,license永久授权\n注意:此字段可能返回 null,表示取不到有效值。",
|
3049
|
+
"document": "license计费模式: 1,租户月付费 2,厂商月付费 3,license永久授权\n注:设备为租户付费且未激活(未选择月付还是永久付费)时,此参数返回1,仅代表租户付费。后续将废弃此参数,新接入请使用LicensePayMode和Payer\n注意:此字段可能返回 null,表示取不到有效值。",
|
2850
3050
|
"example": "1",
|
2851
3051
|
"member": "int64",
|
2852
3052
|
"name": "LicenseChargingMode",
|
2853
|
-
"
|
3053
|
+
"output_required": true,
|
2854
3054
|
"type": "int",
|
2855
3055
|
"value_allowed_null": true
|
2856
3056
|
},
|
@@ -2860,9 +3060,29 @@
|
|
2860
3060
|
"example": "1680019225",
|
2861
3061
|
"member": "string",
|
2862
3062
|
"name": "LastOnlineTime",
|
2863
|
-
"
|
3063
|
+
"output_required": false,
|
2864
3064
|
"type": "string",
|
2865
3065
|
"value_allowed_null": true
|
3066
|
+
},
|
3067
|
+
{
|
3068
|
+
"disabled": false,
|
3069
|
+
"document": "license授权有效期\n0:月度授权\n1:永久授权\n-1:未知\n注意:此字段可能返回 null,表示取不到有效值。",
|
3070
|
+
"example": "0",
|
3071
|
+
"member": "int64",
|
3072
|
+
"name": "LicensePayMode",
|
3073
|
+
"output_required": true,
|
3074
|
+
"type": "int",
|
3075
|
+
"value_allowed_null": true
|
3076
|
+
},
|
3077
|
+
{
|
3078
|
+
"disabled": false,
|
3079
|
+
"document": "付费方\n0:客户付费\n1:厂商付费\n注意:此字段可能返回 null,表示取不到有效值。",
|
3080
|
+
"example": "0",
|
3081
|
+
"member": "int64",
|
3082
|
+
"name": "Payer",
|
3083
|
+
"output_required": true,
|
3084
|
+
"type": "int",
|
3085
|
+
"value_allowed_null": true
|
2866
3086
|
}
|
2867
3087
|
],
|
2868
3088
|
"usage": "out"
|
@@ -92,7 +92,7 @@
|
|
92
92
|
{
|
93
93
|
"document": "",
|
94
94
|
"input": "POST / HTTP/1.1\nHost: mna.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetFlowPackages\n<公共请求参数>\n\n{\n \"ResourceId\": \"56d11777-50f7-4c60-9c89-e7076c8529a9-0\",\n \"DeviceId\": \"mna-test1\",\n \"PageNumber\": 1,\n \"PageSize\": 10\n}",
|
95
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"PackageList\": [\n {\n \"ResourceId\": \"56d11777-50f7-4c60-9c89-e7076c8529a9-0\",\n \"AppId\": 1,\n \"PackageType\": \"DEVICE_1_FLOW_20G\",\n \"Status\": 1,\n \"ActiveTime\": 1697181612,\n \"ExpireTime\": 1699860012,\n \"DeviceList\": [\n \"mna-test1\",\n \"mna-test2\"\n ],\n \"CapacitySize\": 20000,\n \"CapacityRemain\": 10000,\n \"RenewFlag\": true\n }\n ],\n \"RequestId\": \"1206563f-f13f-4647-aaa8-37fa86954cc4-1\"\n }\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"PackageList\": [\n {\n \"ResourceId\": \"56d11777-50f7-4c60-9c89-e7076c8529a9-0\",\n \"AppId\": 1,\n \"PackageType\": \"DEVICE_1_FLOW_20G\",\n \"Status\": 1,\n \"ActiveTime\": 1697181612,\n \"ExpireTime\": 1699860012,\n \"DeviceList\": [\n \"mna-test1\",\n \"mna-test2\"\n ],\n \"CapacitySize\": 20000,\n \"CapacityRemain\": 10000,\n \"RenewFlag\": true,\n \"ModifyStatus\": 0,\n \"TruncFlag\": false\n }\n ],\n \"RequestId\": \"1206563f-f13f-4647-aaa8-37fa86954cc4-1\"\n }\n}",
|
96
96
|
"title": "示例1"
|
97
97
|
}
|
98
98
|
],
|
@@ -102,6 +102,12 @@
|
|
102
102
|
"input": "POST / HTTP/1.1\nHost: mna.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetFlowStatistic\n<公共请求参数>\n\n{\n \"EndTime\": 1659514692,\n \"Type\": 1,\n \"DeviceId\": \"abc\",\n \"TimeGranularity\": 1,\n \"BeginTime\": 1659513692\n}",
|
103
103
|
"output": "{\n \"Response\": {\n \"MaxValue\": 51548,\n \"AvgValue\": 15441,\n \"TotalValue\": 656546,\n \"NetDetails\": [\n {\n \"Time\": \"1659513692\",\n \"Current\": 3546545\n },\n {\n \"Time\": \"1659513692\",\n \"Current\": 4454864\n },\n {\n \"Time\": \"1659513692\",\n \"Current\": 4848941\n }\n ],\n \"RequestId\": \"\"\n }\n}",
|
104
104
|
"title": "获取指定id设备流量使用信息"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"document": "",
|
108
|
+
"input": "POST / HTTP/1.1\nHost: mna.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetFlowStatistic\n<公共请求参数>\n\n{\n \"EndTime\": 1659514692,\n \"Type\": 1,\n \"DeviceId\": \"\",\n \"DeviceList\": [\n \"abc\",\n \"bcd\"\n ],\n \"TimeGranularity\": 1,\n \"BeginTime\": 1659513692\n}",
|
109
|
+
"output": "{\n \"Response\": {\n \"MaxValue\": 51548,\n \"AvgValue\": 15441,\n \"TotalValue\": 656546,\n \"NetDetails\": [\n {\n \"Time\": \"1659513692\",\n \"Current\": 3546545\n },\n {\n \"Time\": \"1659513692\",\n \"Current\": 4454864\n },\n {\n \"Time\": \"1659513692\",\n \"Current\": 4848941\n }\n ],\n \"RequestId\": \"\"\n }\n}",
|
110
|
+
"title": "获取多个设备的流量使用信息之和"
|
105
111
|
}
|
106
112
|
],
|
107
113
|
"GetHardwareList": [
|
@@ -4021,58 +4021,6 @@ def doCreateSSOAccount(args, parsed_globals):
|
|
4021
4021
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4022
4022
|
|
4023
4023
|
|
4024
|
-
def doSendCustomAlarmMsg(args, parsed_globals):
|
4025
|
-
g_param = parse_global_arg(parsed_globals)
|
4026
|
-
|
4027
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4028
|
-
cred = credential.CVMRoleCredential()
|
4029
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4030
|
-
cred = credential.STSAssumeRoleCredential(
|
4031
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4032
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4033
|
-
)
|
4034
|
-
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):
|
4035
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4036
|
-
else:
|
4037
|
-
cred = credential.Credential(
|
4038
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4039
|
-
)
|
4040
|
-
http_profile = HttpProfile(
|
4041
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4042
|
-
reqMethod="POST",
|
4043
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
4044
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4045
|
-
)
|
4046
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4047
|
-
if g_param[OptionsDefine.Language]:
|
4048
|
-
profile.language = g_param[OptionsDefine.Language]
|
4049
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4050
|
-
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
4051
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
4052
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4053
|
-
model = models.SendCustomAlarmMsgRequest()
|
4054
|
-
model.from_json_string(json.dumps(args))
|
4055
|
-
start_time = time.time()
|
4056
|
-
while True:
|
4057
|
-
rsp = client.SendCustomAlarmMsg(model)
|
4058
|
-
result = rsp.to_json_string()
|
4059
|
-
try:
|
4060
|
-
json_obj = json.loads(result)
|
4061
|
-
except TypeError as e:
|
4062
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4063
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4064
|
-
break
|
4065
|
-
cur_time = time.time()
|
4066
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4067
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4068
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4069
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4070
|
-
else:
|
4071
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4072
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4073
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4074
|
-
|
4075
|
-
|
4076
4024
|
def doModifyAlarmPolicyNotice(args, parsed_globals):
|
4077
4025
|
g_param = parse_global_arg(parsed_globals)
|
4078
4026
|
|
@@ -8321,7 +8269,6 @@ ACTION_MAP = {
|
|
8321
8269
|
"DeleteGrafanaInstance": doDeleteGrafanaInstance,
|
8322
8270
|
"DeletePrometheusConfig": doDeletePrometheusConfig,
|
8323
8271
|
"CreateSSOAccount": doCreateSSOAccount,
|
8324
|
-
"SendCustomAlarmMsg": doSendCustomAlarmMsg,
|
8325
8272
|
"ModifyAlarmPolicyNotice": doModifyAlarmPolicyNotice,
|
8326
8273
|
"EnableGrafanaInternet": doEnableGrafanaInternet,
|
8327
8274
|
"CreateGrafanaNotificationChannel": doCreateGrafanaNotificationChannel,
|