tccli 3.0.897.1__py2.py3-none-any.whl → 3.0.899.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdn/v20180606/ModifyDomainConfig.md +88 -0
  3. tccli/examples/cfs/v20190719/CreateMigrationTask.md +1 -1
  4. tccli/examples/cfs/v20190719/DeleteMigrationTask.md +1 -1
  5. tccli/examples/cfs/v20190719/ModifyFileSystemAutoScaleUpRule.md +1 -1
  6. tccli/examples/cfs/v20190719/ScaleUpFileSystem.md +1 -1
  7. tccli/examples/ckafka/v20190819/CreatePostPaidInstance.md +154 -0
  8. tccli/examples/cls/v20201016/DeleteShipper.md +2 -2
  9. tccli/examples/cls/v20201016/ModifyShipper.md +2 -2
  10. tccli/examples/cynosdb/v20190107/DescribeSupportProxyVersion.md +24 -0
  11. tccli/examples/ess/v20201111/CreateFlowApprovers.md +3 -1
  12. tccli/examples/ess/v20201111/DescribeThirdPartyAuthCode.md +1 -1
  13. tccli/examples/live/v20180801/DescribeLiveDomains.md +1 -1
  14. tccli/examples/nlp/v20190408/AnalyzeSentiment.md +24 -0
  15. tccli/examples/nlp/v20190408/ClassifyContent.md +39 -0
  16. tccli/examples/nlp/v20190408/ComposeCouplet.md +27 -0
  17. tccli/examples/nlp/v20190408/ComposePoetry.md +29 -0
  18. tccli/examples/postgres/v20170312/CreateReadOnlyDBInstance.md +1 -1
  19. tccli/examples/postgres/v20170312/UpgradeDBInstanceKernelVersion.md +1 -1
  20. tccli/examples/sqlserver/v20180328/DescribeDBInstancesAttribute.md +6 -1
  21. tccli/examples/sqlserver/v20180328/DescribeDBs.md +1 -1
  22. tccli/examples/tdmq/v20200217/CreateCmqQueue.md +2 -2
  23. tccli/examples/tke/v20180525/CreateClusterEndpointVip.md +1 -1
  24. tccli/examples/trp/v20210515/CreateCodeBatch.md +11 -5
  25. tccli/examples/trp/v20210515/DescribeScanLogs.md +1 -1
  26. tccli/examples/trp/v20210515/DescribeTraceCodeById.md +16 -11
  27. tccli/examples/trp/v20210515/ModifyCodeBatch.md +3 -3
  28. tccli/examples/waf/v20180125/ModifySpartaProtection.md +154 -0
  29. tccli/examples/wedata/v20210820/DescribeDimensionScore.md +15 -3
  30. tccli/examples/wedata/v20210820/DescribeQualityScore.md +1 -1
  31. tccli/examples/wedata/v20210820/DescribeQualityScoreTrend.md +10 -2
  32. tccli/examples/wedata/v20210820/DescribeTableQualityDetails.md +1 -1
  33. tccli/examples/wedata/v20210820/DescribeTableScoreTrend.md +10 -2
  34. tccli/services/antiddos/v20200309/api.json +45 -26
  35. tccli/services/apigateway/v20180808/api.json +17 -28
  36. tccli/services/asr/v20190614/api.json +3 -2
  37. tccli/services/cdb/v20170320/api.json +16 -11
  38. tccli/services/cdn/cdn_client.py +57 -4
  39. tccli/services/cdn/v20180606/api.json +52 -0
  40. tccli/services/cdn/v20180606/examples.json +26 -0
  41. tccli/services/cfs/v20190719/api.json +7 -0
  42. tccli/services/cfs/v20190719/examples.json +4 -4
  43. tccli/services/ckafka/ckafka_client.py +61 -8
  44. tccli/services/ckafka/v20190819/api.json +296 -6
  45. tccli/services/ckafka/v20190819/examples.json +20 -0
  46. tccli/services/cls/v20201016/api.json +3 -4
  47. tccli/services/cls/v20201016/examples.json +4 -4
  48. tccli/services/cynosdb/cynosdb_client.py +53 -0
  49. tccli/services/cynosdb/v20190107/api.json +72 -0
  50. tccli/services/cynosdb/v20190107/examples.json +8 -0
  51. tccli/services/ess/v20201111/api.json +44 -11
  52. tccli/services/ess/v20201111/examples.json +3 -3
  53. tccli/services/essbasic/v20210526/api.json +27 -1
  54. tccli/services/live/v20180801/api.json +4 -11
  55. tccli/services/live/v20180801/examples.json +1 -1
  56. tccli/services/nlp/nlp_client.py +216 -4
  57. tccli/services/nlp/v20190408/api.json +329 -0
  58. tccli/services/nlp/v20190408/examples.json +32 -0
  59. tccli/services/postgres/v20170312/api.json +2 -31
  60. tccli/services/postgres/v20170312/examples.json +2 -2
  61. tccli/services/sqlserver/v20180328/api.json +72 -15
  62. tccli/services/sqlserver/v20180328/examples.json +3 -3
  63. tccli/services/tbaas/tbaas_client.py +4 -322
  64. tccli/services/tbaas/v20180416/api.json +123 -825
  65. tccli/services/tbaas/v20180416/examples.json +0 -48
  66. tccli/services/tdid/tdid_client.py +60 -1650
  67. tccli/services/tdid/v20210519/api.json +394 -3848
  68. tccli/services/tdid/v20210519/examples.json +0 -240
  69. tccli/services/tdmq/v20200217/api.json +2 -19
  70. tccli/services/tdmq/v20200217/examples.json +2 -2
  71. tccli/services/tione/v20211111/api.json +24 -2
  72. tccli/services/tke/v20180525/api.json +4 -6
  73. tccli/services/tke/v20180525/examples.json +2 -2
  74. tccli/services/trp/v20210515/api.json +285 -113
  75. tccli/services/trp/v20210515/examples.json +6 -6
  76. tccli/services/tts/v20190823/api.json +7 -3
  77. tccli/services/waf/v20180125/api.json +401 -0
  78. tccli/services/waf/v20180125/examples.json +26 -0
  79. tccli/services/waf/waf_client.py +57 -4
  80. tccli/services/wedata/v20210820/api.json +151 -83
  81. tccli/services/wedata/v20210820/examples.json +8 -8
  82. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/METADATA +2 -2
  83. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/RECORD +86 -78
  84. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/WHEEL +0 -0
  85. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/entry_points.txt +0 -0
  86. {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/license_files/LICENSE +0 -0
@@ -1545,6 +1545,7 @@
1545
1545
  "example": "无",
1546
1546
  "member": "FlowApproverUrlInfo",
1547
1547
  "name": "FlowApproverUrlInfos",
1548
+ "output_required": true,
1548
1549
  "type": "list",
1549
1550
  "value_allowed_null": false
1550
1551
  },
@@ -2944,6 +2945,7 @@
2944
2945
  "example": "ComponentId",
2945
2946
  "member": "string",
2946
2947
  "name": "ComponentId",
2948
+ "output_required": true,
2947
2949
  "required": false,
2948
2950
  "type": "string",
2949
2951
  "value_allowed_null": false
@@ -2954,6 +2956,7 @@
2954
2956
  "example": "SIGN_SEAL",
2955
2957
  "member": "string",
2956
2958
  "name": "ComponentType",
2959
+ "output_required": true,
2957
2960
  "required": false,
2958
2961
  "type": "string",
2959
2962
  "value_allowed_null": false
@@ -2964,6 +2967,7 @@
2964
2967
  "example": "ComponentName",
2965
2968
  "member": "string",
2966
2969
  "name": "ComponentName",
2970
+ "output_required": true,
2967
2971
  "required": false,
2968
2972
  "type": "string",
2969
2973
  "value_allowed_null": false
@@ -2974,6 +2978,7 @@
2974
2978
  "example": "false",
2975
2979
  "member": "bool",
2976
2980
  "name": "ComponentRequired",
2981
+ "output_required": true,
2977
2982
  "required": false,
2978
2983
  "type": "bool",
2979
2984
  "value_allowed_null": false
@@ -2984,6 +2989,7 @@
2984
2989
  "example": "ComponentRecipientId",
2985
2990
  "member": "string",
2986
2991
  "name": "ComponentRecipientId",
2992
+ "output_required": true,
2987
2993
  "required": false,
2988
2994
  "type": "string",
2989
2995
  "value_allowed_null": false
@@ -2994,6 +3000,7 @@
2994
3000
  "example": "0",
2995
3001
  "member": "int64",
2996
3002
  "name": "FileIndex",
3003
+ "output_required": true,
2997
3004
  "required": false,
2998
3005
  "type": "int",
2999
3006
  "value_allowed_null": false
@@ -3004,6 +3011,7 @@
3004
3011
  "example": "NORMAL",
3005
3012
  "member": "string",
3006
3013
  "name": "GenerateMode",
3014
+ "output_required": true,
3007
3015
  "required": false,
3008
3016
  "type": "string",
3009
3017
  "value_allowed_null": false
@@ -3014,6 +3022,7 @@
3014
3022
  "example": "10",
3015
3023
  "member": "float",
3016
3024
  "name": "ComponentWidth",
3025
+ "output_required": true,
3017
3026
  "required": false,
3018
3027
  "type": "float",
3019
3028
  "value_allowed_null": false
@@ -3024,6 +3033,7 @@
3024
3033
  "example": "10",
3025
3034
  "member": "float",
3026
3035
  "name": "ComponentHeight",
3036
+ "output_required": true,
3027
3037
  "required": false,
3028
3038
  "type": "float",
3029
3039
  "value_allowed_null": false
@@ -3034,6 +3044,7 @@
3034
3044
  "example": "0",
3035
3045
  "member": "int64",
3036
3046
  "name": "ComponentPage",
3047
+ "output_required": true,
3037
3048
  "required": false,
3038
3049
  "type": "int",
3039
3050
  "value_allowed_null": false
@@ -3044,6 +3055,7 @@
3044
3055
  "example": "10",
3045
3056
  "member": "float",
3046
3057
  "name": "ComponentPosX",
3058
+ "output_required": true,
3047
3059
  "required": false,
3048
3060
  "type": "float",
3049
3061
  "value_allowed_null": false
@@ -3054,16 +3066,18 @@
3054
3066
  "example": "10",
3055
3067
  "member": "float",
3056
3068
  "name": "ComponentPosY",
3069
+ "output_required": true,
3057
3070
  "required": false,
3058
3071
  "type": "float",
3059
3072
  "value_allowed_null": false
3060
3073
  },
3061
3074
  {
3062
3075
  "disabled": false,
3063
- "document": "扩展参数:\n为JSON格式。\n\nComponentType为FILL_IMAGE时,支持以下参数:\nNotMakeImageCenter:bool。是否设置图片居中。false:居中(默认)。 true: 不居中\nFillMethod: int. 填充方式。0-铺满(默认);1-等比例缩放\n\nComponentType为SIGN_SIGNATURE类型可以控制签署方式\n{“ComponentTypeLimit”: [“xxx”]}\nxxx可以为:\nHANDWRITE – 手写签名\nOCR_ESIGN -- AI智能识别手写签名\nESIGN -- 个人印章类型\nSYSTEM_ESIGN -- 系统签名(该类型可以在用户签署时根据用户姓名一键生成一个签名来进行签署)\n如:{“ComponentTypeLimit”: [“SYSTEM_ESIGN”]}\n\nComponentType为SIGN_DATE时,支持以下参数:\n1 Font:字符串类型目前只支持\"黑体\"、\"宋体\",如果不填默认为\"黑体\"\n2 FontSize: 数字类型,范围6-72,默认值为12\n3 FontAlign: 字符串类型,可取Left/Right/Center,对应左对齐/居中/右对齐\n4 Format: 字符串类型,日期格式,必须是以下五种之一 “yyyy m d”,”yyyy年m月d日”,”yyyy/m/d”,”yyyy-m-d”,”yyyy.m.d”。\n5 Gaps:: 字符串类型,仅在Format为“yyyy m d”时起作用,格式为用逗号分开的两个整数,例如”2,2”,两个数字分别是日期格式的前后两个空隙中的空格个数\n如果extra参数为空,默认为”yyyy年m月d日”格式的居中日期\n特别地,如果extra中Format字段为空或无法被识别,则extra参数会被当作默认值处理(Font,FontSize,Gaps和FontAlign都不会起效)\n参数样例: \"ComponentExtra\": \"{\\\"Format\\\":“yyyy m d”,\\\"FontSize\\\":12,\\\"Gaps\\\":\\\"2,2\\\", \\\"FontAlign\\\":\\\"Right\\\"}\"\n\nComponentType为SIGN_SEAL类型时,支持以下参数:\n1.PageRanges:PageRange的数组,通过PageRanges属性设置该印章在PDF所有页面上盖章(适用于标书在所有页面盖章的情况)\n参数样例: \"ComponentExtra\":\"{\\\"PageRanges\\\":[\\\"PageRange\\\":{\\\"BeginPage\\\":1,\\\"EndPage\\\":-1}]}\"\n\n\n参数控件样式,json格式表述\n\n不同类型的控件会有部分非通用参数\n\nTEXT/MULTI_LINE_TEXT控件可以指定\n1 Font:目前只支持黑体、宋体\n2 FontSize: 范围12-72\n3 FontAlign: Left/Right/Center,左对齐/居中/右对齐\n例如:{\"FontSize\":12}\n\nComponentType为FILL_IMAGE时,支持以下参数:\nNotMakeImageCenter:bool。是否设置图片居中。false:居中(默认)。 true: 不居中\nFillMethod: int. 填充方式。0-铺满(默认);1-等比例缩放\n\nComponentType为SIGN_SIGNATURE类型可以控制签署方式\n{“ComponentTypeLimit”: [“xxx”]}\nxxx可以为:\nHANDWRITE – 手写签名\nBORDERLESS_ESIGN – 自动生成无边框腾讯体\nOCR_ESIGN -- AI智能识别手写签名\nESIGN -- 个人印章类型\nSYSTEM_ESIGN -- 系统签名(该类型可以在用户签署时根据用户姓名一键生成一个签名来进行签署)\n如:{“ComponentTypeLimit”: [“BORDERLESS_ESIGN”]}\n\nComponentType为SIGN_DATE时,支持以下参数:\n1 Font:字符串类型目前只支持\"黑体\"、\"宋体\",如果不填默认为\"黑体\"\n2 FontSize: 数字类型,范围6-72,默认值为12\n3 FontAlign: 字符串类型,可取Left/Right/Center,对应左对齐/居中/右对齐\n4 Format: 字符串类型,日期格式,必须是以下五种之一 “yyyy m d”,”yyyy年m月d日”,”yyyy/m/d”,”yyyy-m-d”,”yyyy.m.d”。\n5 Gaps:: 字符串类型,仅在Format为“yyyy m d”时起作用,格式为用逗号分开的两个整数,例如”2,2”,两个数字分别是日期格式的前后两个空隙钟的空格个数\n如果extra参数为空,默认为”yyyy年m月d日”格式的居中日期\n特别地,如果extra中Format字段为空或无法被识别,则extra参数会被当作默认值处理(Font,FontSize,Gaps和FontAlign都不会起效)\n参数样例: \"ComponentExtra\": \"{\\\"Format\\\":“yyyy m d”,\\\"FontSize\\\":12,\\\"Gaps\\\":\\\"2,2\\\", \\\"FontAlign\\\":\\\"Right\\\"}\"\n\nComponentType为SIGN_SEAL类型时,支持以下参数:\n1.PageRanges:PageRange的数组,通过PageRanges属性设置该印章在PDF所有页面上盖章(适用于标书在所有页面盖章的情况)\n参数样例: \"ComponentExtra\":\"{\\\"PageRanges\\\":[\\\"PageRange\\\":{\\\"BeginPage\\\":1,\\\"EndPage\\\":-1}]}\"",
3076
+ "document": "扩展参数:\n为JSON格式。\n不同类型的控件会有部分非通用参数\n\nTEXT/MULTI_LINE_TEXT控件可以指定\n1 Font:目前只支持黑体、宋体\n2 FontSize: 范围12-72\n3 FontAlign: Left/Right/Center,左对齐/居中/右对齐\n例如:{\"FontSize\":12}\n\nComponentType为FILL_IMAGE时,支持以下参数:\nNotMakeImageCenter:bool。是否设置图片居中。false:居中(默认)。 true: 不居中\nFillMethod: int. 填充方式。0-铺满(默认);1-等比例缩放\n\nComponentType为SIGN_SIGNATURE类型可以控制签署方式\n{“ComponentTypeLimit”: [“xxx”]}\nxxx可以为:\nHANDWRITE – 手写签名\nOCR_ESIGN -- AI智能识别手写签名\nESIGN -- 个人印章类型\nSYSTEM_ESIGN -- 系统签名(该类型可以在用户签署时根据用户姓名一键生成一个签名来进行签署)\n如:{“ComponentTypeLimit”: [“SYSTEM_ESIGN”]}\n\nComponentType为SIGN_DATE时,支持以下参数:\n1 Font:字符串类型目前只支持\"黑体\"、\"宋体\",如果不填默认为\"黑体\"\n2 FontSize: 数字类型,范围6-72,默认值为12\n3 FontAlign: 字符串类型,可取Left/Right/Center,对应左对齐/居中/右对齐\n4 Format: 字符串类型,日期格式,必须是以下五种之一 “yyyy m d”,”yyyy年m月d日”,”yyyy/m/d”,”yyyy-m-d”,”yyyy.m.d”。\n5 Gaps:: 字符串类型,仅在Format为“yyyy m d”时起作用,格式为用逗号分开的两个整数,例如”2,2”,两个数字分别是日期格式的前后两个空隙中的空格个数\n如果extra参数为空,默认为”yyyy年m月d日”格式的居中日期\n特别地,如果extra中Format字段为空或无法被识别,则extra参数会被当作默认值处理(Font,FontSize,Gaps和FontAlign都不会起效)\n参数样例: \"ComponentExtra\": \"{\"Format\":“yyyy m d”,\"FontSize\":12,\"Gaps\":\"2,2\", \"FontAlign\":\"Right\"}\"\n\nComponentType为SIGN_SEAL类型时,支持以下参数:\n1.PageRanges:PageRange的数组,通过PageRanges属性设置该印章在PDF所有页面上盖章(适用于标书在所有页面盖章的情况)\n参数样例: \"ComponentExtra\":\"{[\"PageRange\":{\"BeginPage\":1,\"EndPage\":-1}]}\"",
3064
3077
  "example": "ComponentExtra",
3065
3078
  "member": "string",
3066
3079
  "name": "ComponentExtra",
3080
+ "output_required": true,
3067
3081
  "required": false,
3068
3082
  "type": "string",
3069
3083
  "value_allowed_null": false
@@ -3074,6 +3088,7 @@
3074
3088
  "example": "ComponentValue",
3075
3089
  "member": "string",
3076
3090
  "name": "ComponentValue",
3091
+ "output_required": true,
3077
3092
  "required": false,
3078
3093
  "type": "string",
3079
3094
  "value_allowed_null": false
@@ -3084,6 +3099,7 @@
3084
3099
  "example": "12",
3085
3100
  "member": "int64",
3086
3101
  "name": "ComponentDateFontSize",
3102
+ "output_required": true,
3087
3103
  "required": false,
3088
3104
  "type": "int",
3089
3105
  "value_allowed_null": false
@@ -3094,6 +3110,7 @@
3094
3110
  "example": "c17bdf9c2a7bdcb32611f4d0200fee3d",
3095
3111
  "member": "string",
3096
3112
  "name": "DocumentId",
3113
+ "output_required": true,
3097
3114
  "required": false,
3098
3115
  "type": "string",
3099
3116
  "value_allowed_null": false
@@ -3104,6 +3121,7 @@
3104
3121
  "example": "Desc",
3105
3122
  "member": "string",
3106
3123
  "name": "ComponentDescription",
3124
+ "output_required": true,
3107
3125
  "required": false,
3108
3126
  "type": "string",
3109
3127
  "value_allowed_null": false
@@ -3114,6 +3132,7 @@
3114
3132
  "example": "无",
3115
3133
  "member": "float",
3116
3134
  "name": "OffsetX",
3135
+ "output_required": true,
3117
3136
  "required": false,
3118
3137
  "type": "float",
3119
3138
  "value_allowed_null": false
@@ -3124,6 +3143,7 @@
3124
3143
  "example": "无",
3125
3144
  "member": "float",
3126
3145
  "name": "OffsetY",
3146
+ "output_required": true,
3127
3147
  "required": false,
3128
3148
  "type": "float",
3129
3149
  "value_allowed_null": false
@@ -3134,6 +3154,7 @@
3134
3154
  "example": "无",
3135
3155
  "member": "string",
3136
3156
  "name": "ChannelComponentId",
3157
+ "output_required": true,
3137
3158
  "required": false,
3138
3159
  "type": "string",
3139
3160
  "value_allowed_null": false
@@ -3144,6 +3165,7 @@
3144
3165
  "example": "Positive\\Reverse",
3145
3166
  "member": "string",
3146
3167
  "name": "KeywordOrder",
3168
+ "output_required": true,
3147
3169
  "required": false,
3148
3170
  "type": "string",
3149
3171
  "value_allowed_null": false
@@ -3154,6 +3176,7 @@
3154
3176
  "example": "无",
3155
3177
  "member": "int64",
3156
3178
  "name": "KeywordPage",
3179
+ "output_required": true,
3157
3180
  "required": false,
3158
3181
  "type": "int",
3159
3182
  "value_allowed_null": false
@@ -3164,6 +3187,7 @@
3164
3187
  "example": "无",
3165
3188
  "member": "string",
3166
3189
  "name": "RelativeLocation",
3190
+ "output_required": true,
3167
3191
  "required": false,
3168
3192
  "type": "string",
3169
3193
  "value_allowed_null": false
@@ -3174,6 +3198,7 @@
3174
3198
  "example": "无",
3175
3199
  "member": "int64",
3176
3200
  "name": "KeywordIndexes",
3201
+ "output_required": true,
3177
3202
  "required": false,
3178
3203
  "type": "list",
3179
3204
  "value_allowed_null": false
@@ -3184,6 +3209,7 @@
3184
3209
  "example": "无",
3185
3210
  "member": "string",
3186
3211
  "name": "Placeholder",
3212
+ "output_required": true,
3187
3213
  "required": false,
3188
3214
  "type": "string",
3189
3215
  "value_allowed_null": true
@@ -6400,7 +6400,6 @@
6400
6400
  "document": "DescribeLiveDomains请求参数结构体",
6401
6401
  "members": [
6402
6402
  {
6403
- "default": "",
6404
6403
  "disabled": false,
6405
6404
  "document": "域名状态过滤。0-停用,1-启用。",
6406
6405
  "example": "1",
@@ -6410,7 +6409,6 @@
6410
6409
  "type": "int"
6411
6410
  },
6412
6411
  {
6413
- "default": "",
6414
6412
  "disabled": false,
6415
6413
  "document": "域名类型过滤。0-推流,1-播放。",
6416
6414
  "example": "1",
@@ -6420,7 +6418,6 @@
6420
6418
  "type": "int"
6421
6419
  },
6422
6420
  {
6423
- "default": "",
6424
6421
  "disabled": false,
6425
6422
  "document": "分页大小,范围:10~100。默认10。",
6426
6423
  "example": "10",
@@ -6430,7 +6427,6 @@
6430
6427
  "type": "int"
6431
6428
  },
6432
6429
  {
6433
- "default": "",
6434
6430
  "disabled": false,
6435
6431
  "document": "取第几页,范围:1~100000。默认1。",
6436
6432
  "example": "1",
@@ -6440,7 +6436,6 @@
6440
6436
  "type": "int"
6441
6437
  },
6442
6438
  {
6443
- "default": "",
6444
6439
  "disabled": false,
6445
6440
  "document": "0 普通直播 1慢直播 默认0。",
6446
6441
  "example": "0",
@@ -6450,7 +6445,6 @@
6450
6445
  "type": "int"
6451
6446
  },
6452
6447
  {
6453
- "default": "",
6454
6448
  "disabled": false,
6455
6449
  "document": "域名前缀。",
6456
6450
  "example": "qq",
@@ -6460,7 +6454,6 @@
6460
6454
  "type": "string"
6461
6455
  },
6462
6456
  {
6463
- "default": "",
6464
6457
  "disabled": false,
6465
6458
  "document": "播放区域,只在 DomainType=1 时该参数有意义。\n1: 国内。\n2: 全球。\n3: 海外。",
6466
6459
  "example": "1",
@@ -6481,7 +6474,7 @@
6481
6474
  "example": "2",
6482
6475
  "member": "uint64",
6483
6476
  "name": "AllCount",
6484
- "required": true,
6477
+ "output_required": true,
6485
6478
  "type": "int",
6486
6479
  "value_allowed_null": false
6487
6480
  },
@@ -6491,7 +6484,7 @@
6491
6484
  "example": "无",
6492
6485
  "member": "DomainInfo",
6493
6486
  "name": "DomainList",
6494
- "required": true,
6487
+ "output_required": true,
6495
6488
  "type": "list",
6496
6489
  "value_allowed_null": false
6497
6490
  },
@@ -6501,7 +6494,7 @@
6501
6494
  "example": "77",
6502
6495
  "member": "int64",
6503
6496
  "name": "CreateLimitCount",
6504
- "required": true,
6497
+ "output_required": true,
6505
6498
  "type": "int",
6506
6499
  "value_allowed_null": true
6507
6500
  },
@@ -6511,7 +6504,7 @@
6511
6504
  "example": "[1,0,3]",
6512
6505
  "member": "int64",
6513
6506
  "name": "PlayTypeCount",
6514
- "required": true,
6507
+ "output_required": true,
6515
6508
  "type": "list",
6516
6509
  "value_allowed_null": true
6517
6510
  },
@@ -546,7 +546,7 @@
546
546
  ],
547
547
  "DescribeLiveDomains": [
548
548
  {
549
- "document": "",
549
+ "document": "接入标签鉴权。",
550
550
  "input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLiveDomains\n<公共请求参数>\n\n{\n \"IsDelayLive\": \"0\",\n \"PageSize\": \"10\",\n \"PageNum\": \"1\",\n \"DomainStatus\": \"1\",\n \"DomainType\": \"1\"\n}",
551
551
  "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"AllCount\": 2,\n \"CreateLimitCount\": 0,\n \"PlayTypeCount\": [\n 1,\n 2,\n 3\n ],\n \"DomainList\": [\n {\n \"Name\": \"abc.com\",\n \"IsMiniProgramLive\": 0,\n \"Type\": 1,\n \"Status\": 1,\n \"PlayType\": 1,\n \"IsDelayLive\": 0,\n \"CreateTime\": \"2018-08-29 10:00:00\",\n \"BCName\": 1,\n \"CurrentCName\": \"\",\n \"TargetDomain\": \"abc.com.liveplay.myqcloud.com\",\n \"RentTag\": 0,\n \"RentExpireTime\": \"0000-00-00 00:00:00\"\n }\n ]\n }\n}",
552
552
  "title": "查询域名列表"
@@ -641,6 +641,58 @@ def doParseWords(args, parsed_globals):
641
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
642
 
643
643
 
644
+ def doComposeCouplet(args, parsed_globals):
645
+ g_param = parse_global_arg(parsed_globals)
646
+
647
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
648
+ cred = credential.CVMRoleCredential()
649
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
650
+ cred = credential.STSAssumeRoleCredential(
651
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
652
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
653
+ )
654
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
655
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
656
+ else:
657
+ cred = credential.Credential(
658
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
659
+ )
660
+ http_profile = HttpProfile(
661
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
662
+ reqMethod="POST",
663
+ endpoint=g_param[OptionsDefine.Endpoint],
664
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
665
+ )
666
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
667
+ if g_param[OptionsDefine.Language]:
668
+ profile.language = g_param[OptionsDefine.Language]
669
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
670
+ client = mod.NlpClient(cred, g_param[OptionsDefine.Region], profile)
671
+ client._sdkVersion += ("_CLI_" + __version__)
672
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
+ model = models.ComposeCoupletRequest()
674
+ model.from_json_string(json.dumps(args))
675
+ start_time = time.time()
676
+ while True:
677
+ rsp = client.ComposeCouplet(model)
678
+ result = rsp.to_json_string()
679
+ try:
680
+ json_obj = json.loads(result)
681
+ except TypeError as e:
682
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
683
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
684
+ break
685
+ cur_time = time.time()
686
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
687
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
688
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
689
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
690
+ else:
691
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
692
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
693
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
+
695
+
644
696
  def doTextClassification(args, parsed_globals):
645
697
  g_param = parse_global_arg(parsed_globals)
646
698
 
@@ -1005,6 +1057,58 @@ def doGenerateCouplet(args, parsed_globals):
1005
1057
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
1058
 
1007
1059
 
1060
+ def doChatBot(args, parsed_globals):
1061
+ g_param = parse_global_arg(parsed_globals)
1062
+
1063
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1064
+ cred = credential.CVMRoleCredential()
1065
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1066
+ cred = credential.STSAssumeRoleCredential(
1067
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1068
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1069
+ )
1070
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1071
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1072
+ else:
1073
+ cred = credential.Credential(
1074
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1075
+ )
1076
+ http_profile = HttpProfile(
1077
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1078
+ reqMethod="POST",
1079
+ endpoint=g_param[OptionsDefine.Endpoint],
1080
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1081
+ )
1082
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1083
+ if g_param[OptionsDefine.Language]:
1084
+ profile.language = g_param[OptionsDefine.Language]
1085
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1086
+ client = mod.NlpClient(cred, g_param[OptionsDefine.Region], profile)
1087
+ client._sdkVersion += ("_CLI_" + __version__)
1088
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1089
+ model = models.ChatBotRequest()
1090
+ model.from_json_string(json.dumps(args))
1091
+ start_time = time.time()
1092
+ while True:
1093
+ rsp = client.ChatBot(model)
1094
+ result = rsp.to_json_string()
1095
+ try:
1096
+ json_obj = json.loads(result)
1097
+ except TypeError as e:
1098
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1099
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1100
+ break
1101
+ cur_time = time.time()
1102
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1103
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1104
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1105
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1106
+ else:
1107
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1108
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1109
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1110
+
1111
+
1008
1112
  def doCreateWordItems(args, parsed_globals):
1009
1113
  g_param = parse_global_arg(parsed_globals)
1010
1114
 
@@ -1213,7 +1317,7 @@ def doSentimentAnalysis(args, parsed_globals):
1213
1317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
1318
 
1215
1319
 
1216
- def doChatBot(args, parsed_globals):
1320
+ def doComposePoetry(args, parsed_globals):
1217
1321
  g_param = parse_global_arg(parsed_globals)
1218
1322
 
1219
1323
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1242,11 +1346,11 @@ def doChatBot(args, parsed_globals):
1242
1346
  client = mod.NlpClient(cred, g_param[OptionsDefine.Region], profile)
1243
1347
  client._sdkVersion += ("_CLI_" + __version__)
1244
1348
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1245
- model = models.ChatBotRequest()
1349
+ model = models.ComposePoetryRequest()
1246
1350
  model.from_json_string(json.dumps(args))
1247
1351
  start_time = time.time()
1248
1352
  while True:
1249
- rsp = client.ChatBot(model)
1353
+ rsp = client.ComposePoetry(model)
1250
1354
  result = rsp.to_json_string()
1251
1355
  try:
1252
1356
  json_obj = json.loads(result)
@@ -1473,6 +1577,58 @@ def doTextEmbellish(args, parsed_globals):
1473
1577
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1474
1578
 
1475
1579
 
1580
+ def doClassifyContent(args, parsed_globals):
1581
+ g_param = parse_global_arg(parsed_globals)
1582
+
1583
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1584
+ cred = credential.CVMRoleCredential()
1585
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1586
+ cred = credential.STSAssumeRoleCredential(
1587
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1588
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1589
+ )
1590
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1591
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1592
+ else:
1593
+ cred = credential.Credential(
1594
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1595
+ )
1596
+ http_profile = HttpProfile(
1597
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1598
+ reqMethod="POST",
1599
+ endpoint=g_param[OptionsDefine.Endpoint],
1600
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1601
+ )
1602
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1603
+ if g_param[OptionsDefine.Language]:
1604
+ profile.language = g_param[OptionsDefine.Language]
1605
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1606
+ client = mod.NlpClient(cred, g_param[OptionsDefine.Region], profile)
1607
+ client._sdkVersion += ("_CLI_" + __version__)
1608
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1609
+ model = models.ClassifyContentRequest()
1610
+ model.from_json_string(json.dumps(args))
1611
+ start_time = time.time()
1612
+ while True:
1613
+ rsp = client.ClassifyContent(model)
1614
+ result = rsp.to_json_string()
1615
+ try:
1616
+ json_obj = json.loads(result)
1617
+ except TypeError as e:
1618
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1619
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1620
+ break
1621
+ cur_time = time.time()
1622
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1623
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1624
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1625
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1626
+ else:
1627
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1628
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1629
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
+
1631
+
1476
1632
  def doTextCorrectionPro(args, parsed_globals):
1477
1633
  g_param = parse_global_arg(parsed_globals)
1478
1634
 
@@ -1681,6 +1837,58 @@ def doDeleteDict(args, parsed_globals):
1681
1837
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1838
 
1683
1839
 
1840
+ def doAnalyzeSentiment(args, parsed_globals):
1841
+ g_param = parse_global_arg(parsed_globals)
1842
+
1843
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1844
+ cred = credential.CVMRoleCredential()
1845
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1846
+ cred = credential.STSAssumeRoleCredential(
1847
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1848
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1849
+ )
1850
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1851
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1852
+ else:
1853
+ cred = credential.Credential(
1854
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1855
+ )
1856
+ http_profile = HttpProfile(
1857
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1858
+ reqMethod="POST",
1859
+ endpoint=g_param[OptionsDefine.Endpoint],
1860
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1861
+ )
1862
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1863
+ if g_param[OptionsDefine.Language]:
1864
+ profile.language = g_param[OptionsDefine.Language]
1865
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1866
+ client = mod.NlpClient(cred, g_param[OptionsDefine.Region], profile)
1867
+ client._sdkVersion += ("_CLI_" + __version__)
1868
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1869
+ model = models.AnalyzeSentimentRequest()
1870
+ model.from_json_string(json.dumps(args))
1871
+ start_time = time.time()
1872
+ while True:
1873
+ rsp = client.AnalyzeSentiment(model)
1874
+ result = rsp.to_json_string()
1875
+ try:
1876
+ json_obj = json.loads(result)
1877
+ except TypeError as e:
1878
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1879
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1880
+ break
1881
+ cur_time = time.time()
1882
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1883
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1884
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1885
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1886
+ else:
1887
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1888
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1889
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1890
+
1891
+
1684
1892
  def doSimilarWords(args, parsed_globals):
1685
1893
  g_param = parse_global_arg(parsed_globals)
1686
1894
 
@@ -1808,6 +2016,7 @@ ACTION_MAP = {
1808
2016
  "CreateDict": doCreateDict,
1809
2017
  "GeneratePoetry": doGeneratePoetry,
1810
2018
  "ParseWords": doParseWords,
2019
+ "ComposeCouplet": doComposeCouplet,
1811
2020
  "TextClassification": doTextClassification,
1812
2021
  "WordSimilarity": doWordSimilarity,
1813
2022
  "SentenceEmbedding": doSentenceEmbedding,
@@ -1815,19 +2024,22 @@ ACTION_MAP = {
1815
2024
  "TextCorrection": doTextCorrection,
1816
2025
  "EvaluateWordSimilarity": doEvaluateWordSimilarity,
1817
2026
  "GenerateCouplet": doGenerateCouplet,
2027
+ "ChatBot": doChatBot,
1818
2028
  "CreateWordItems": doCreateWordItems,
1819
2029
  "TextSimilarityPro": doTextSimilarityPro,
1820
2030
  "TextSimilarity": doTextSimilarity,
1821
2031
  "SentimentAnalysis": doSentimentAnalysis,
1822
- "ChatBot": doChatBot,
2032
+ "ComposePoetry": doComposePoetry,
1823
2033
  "LexicalAnalysis": doLexicalAnalysis,
1824
2034
  "RetrieveSimilarWords": doRetrieveSimilarWords,
1825
2035
  "KeywordsExtraction": doKeywordsExtraction,
1826
2036
  "TextEmbellish": doTextEmbellish,
2037
+ "ClassifyContent": doClassifyContent,
1827
2038
  "TextCorrectionPro": doTextCorrectionPro,
1828
2039
  "WordEmbedding": doWordEmbedding,
1829
2040
  "SentenceCorrection": doSentenceCorrection,
1830
2041
  "DeleteDict": doDeleteDict,
2042
+ "AnalyzeSentiment": doAnalyzeSentiment,
1831
2043
  "SimilarWords": doSimilarWords,
1832
2044
  "AutoSummarization": doAutoSummarization,
1833
2045