tccli 3.0.1406.1__py2.py3-none-any.whl → 3.0.1408.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ccc/v20200210/api.json +9 -0
  3. tccli/services/cdb/cdb_client.py +53 -0
  4. tccli/services/cdb/v20170320/api.json +54 -0
  5. tccli/services/cdb/v20170320/examples.json +8 -0
  6. tccli/services/dbbrain/v20210527/api.json +7 -7
  7. tccli/services/dcdb/v20180411/api.json +1 -1
  8. tccli/services/dts/v20211206/api.json +3 -3
  9. tccli/services/ess/ess_client.py +106 -0
  10. tccli/services/ess/v20201111/api.json +163 -0
  11. tccli/services/ess/v20201111/examples.json +16 -0
  12. tccli/services/essbasic/v20210526/api.json +3 -3
  13. tccli/services/essbasic/v20210526/examples.json +6 -6
  14. tccli/services/gaap/v20180529/api.json +13 -3
  15. tccli/services/ioa/ioa_client.py +61 -8
  16. tccli/services/ioa/v20220601/api.json +126 -0
  17. tccli/services/ioa/v20220601/examples.json +8 -0
  18. tccli/services/lighthouse/v20200324/api.json +36 -0
  19. tccli/services/lighthouse/v20200324/examples.json +1 -1
  20. tccli/services/live/v20180801/examples.json +6 -0
  21. tccli/services/mariadb/v20170312/api.json +1 -1
  22. tccli/services/mps/v20190612/api.json +270 -4
  23. tccli/services/oceanus/v20190422/api.json +2 -2
  24. tccli/services/oceanus/v20190422/examples.json +2 -2
  25. tccli/services/ocr/v20181119/api.json +10 -0
  26. tccli/services/pts/v20210728/api.json +2 -2
  27. tccli/services/rum/v20210622/api.json +18 -0
  28. tccli/services/teo/v20220901/api.json +155 -15
  29. tccli/services/teo/v20220901/examples.json +32 -8
  30. tccli/services/tmt/v20180321/api.json +78 -1
  31. tccli/services/tsf/v20180326/api.json +3 -0
  32. tccli/services/vpc/v20170312/api.json +819 -0
  33. tccli/services/vpc/v20170312/examples.json +96 -0
  34. tccli/services/vpc/vpc_client.py +669 -33
  35. tccli/services/wedata/v20250806/api.json +46 -7
  36. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/METADATA +2 -2
  37. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/RECORD +40 -40
  38. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/WHEEL +0 -0
  39. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/entry_points.txt +0 -0
  40. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/license_files/LICENSE +0 -0
@@ -113,7 +113,7 @@
113
113
  "status": "online"
114
114
  },
115
115
  "CreateFunctionRule": {
116
- "document": "创建边缘函数的触发规则。",
116
+ "document": "创建边缘函数的触发规则。支持通过自定义过滤条件来决定是否需要执行函数,当需要执行函数时,提供了多种选择目标函数的方式,包括:直接指定,基于客户端归属地区选择和基于权重选择。",
117
117
  "input": "CreateFunctionRuleRequest",
118
118
  "name": "创建边缘函数触发规则",
119
119
  "output": "CreateFunctionRuleResponse",
@@ -1114,7 +1114,7 @@
1114
1114
  "status": "online"
1115
1115
  },
1116
1116
  "ModifyFunctionRule": {
1117
- "document": "修改边缘函数触发规则,支持修改规则条件、执行函数以及描述信息。",
1117
+ "document": "修改边缘函数触发规则,支持修改规则条件、执行函数以及描述信息。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。",
1118
1118
  "input": "ModifyFunctionRuleRequest",
1119
1119
  "name": "修改边缘函数触发规则",
1120
1120
  "output": "ModifyFunctionRuleResponse",
@@ -6112,13 +6112,40 @@
6112
6112
  },
6113
6113
  {
6114
6114
  "disabled": false,
6115
- "document": "函数 ID,命中触发规则条件后执行的函数。",
6115
+ "document": "函数选择配置类型:\n<li> direct:直接指定执行函数;</li>\n<li> weight:基于权重比选择函数;</li>\n<li> region:基于客户端 IP 的国家/地区选择函数。</li>\n不填时默认为 direct 。",
6116
+ "example": "direct",
6117
+ "member": "string",
6118
+ "name": "TriggerType",
6119
+ "required": false,
6120
+ "type": "string"
6121
+ },
6122
+ {
6123
+ "disabled": false,
6124
+ "document": "指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。",
6116
6125
  "example": "ef-0agikbrr",
6117
6126
  "member": "string",
6118
6127
  "name": "FunctionId",
6119
- "required": true,
6128
+ "required": false,
6120
6129
  "type": "string"
6121
6130
  },
6131
+ {
6132
+ "disabled": false,
6133
+ "document": "基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。",
6134
+ "example": "无",
6135
+ "member": "FunctionRegionSelection",
6136
+ "name": "RegionMappingSelections",
6137
+ "required": false,
6138
+ "type": "list"
6139
+ },
6140
+ {
6141
+ "disabled": false,
6142
+ "document": "基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。",
6143
+ "example": "无",
6144
+ "member": "FunctionWeightedSelection",
6145
+ "name": "WeightedSelections",
6146
+ "required": false,
6147
+ "type": "list"
6148
+ },
6122
6149
  {
6123
6150
  "disabled": false,
6124
6151
  "document": "规则描述,最大支持 60 个字符。",
@@ -16509,6 +16536,34 @@
16509
16536
  ],
16510
16537
  "usage": "both"
16511
16538
  },
16539
+ "FunctionRegionSelection": {
16540
+ "document": "地区策略配置。",
16541
+ "members": [
16542
+ {
16543
+ "disabled": false,
16544
+ "document": "函数 ID 。",
16545
+ "example": "ef-0agikbrr",
16546
+ "member": "string",
16547
+ "name": "FunctionId",
16548
+ "output_required": true,
16549
+ "required": true,
16550
+ "type": "string",
16551
+ "value_allowed_null": false
16552
+ },
16553
+ {
16554
+ "disabled": false,
16555
+ "document": "国家/地区列表。示例值:CN:中国,CN.GD:中国广东。取值请参考:[国家/地区及对应代码枚举](https://cloud.tencent.com/document/product/1552/112542)。",
16556
+ "example": "[\"CN\"]",
16557
+ "member": "string",
16558
+ "name": "Regions",
16559
+ "output_required": true,
16560
+ "required": true,
16561
+ "type": "list",
16562
+ "value_allowed_null": false
16563
+ }
16564
+ ],
16565
+ "usage": "both"
16566
+ },
16512
16567
  "FunctionRule": {
16513
16568
  "document": "边缘函数触发规则。",
16514
16569
  "members": [
@@ -16534,27 +16589,27 @@
16534
16589
  },
16535
16590
  {
16536
16591
  "disabled": false,
16537
- "document": "函数 ID,命中触发规则条件后执行的函数。",
16538
- "example": "ef-jjhvk7ec",
16592
+ "document": "函数选择配置类型:\n<li> direct:直接指定执行函数;</li>\n<li> weight:基于权重比选择函数;</li>\n<li> region:基于客户端 IP 的国家/地区选择函数。</li>\n",
16593
+ "example": "direct",
16539
16594
  "member": "string",
16540
- "name": "FunctionId",
16595
+ "name": "TriggerType",
16541
16596
  "output_required": true,
16542
16597
  "type": "string",
16543
16598
  "value_allowed_null": false
16544
16599
  },
16545
16600
  {
16546
16601
  "disabled": false,
16547
- "document": "规则描述。",
16548
- "example": "鉴权",
16602
+ "document": "指定执行的函数 ID。当 TriggerType 为 direct 时有效。",
16603
+ "example": "ef-jjhvk7ec",
16549
16604
  "member": "string",
16550
- "name": "Remark",
16605
+ "name": "FunctionId",
16551
16606
  "output_required": true,
16552
16607
  "type": "string",
16553
16608
  "value_allowed_null": false
16554
16609
  },
16555
16610
  {
16556
16611
  "disabled": false,
16557
- "document": "函数名称。",
16612
+ "document": "指定执行的函数名称。",
16558
16613
  "example": "TestFunction",
16559
16614
  "member": "string",
16560
16615
  "name": "FunctionName",
@@ -16562,6 +16617,26 @@
16562
16617
  "type": "string",
16563
16618
  "value_allowed_null": false
16564
16619
  },
16620
+ {
16621
+ "disabled": false,
16622
+ "document": "基于客户端 IP 国家/地区的函数选择配置。",
16623
+ "example": "无",
16624
+ "member": "FunctionRegionSelection",
16625
+ "name": "RegionMappingSelections",
16626
+ "output_required": false,
16627
+ "type": "list",
16628
+ "value_allowed_null": false
16629
+ },
16630
+ {
16631
+ "disabled": false,
16632
+ "document": "基于权重的函数选择配置。",
16633
+ "example": "无",
16634
+ "member": "FunctionWeightedSelection",
16635
+ "name": "WeightedSelections",
16636
+ "output_required": false,
16637
+ "type": "list",
16638
+ "value_allowed_null": false
16639
+ },
16565
16640
  {
16566
16641
  "disabled": false,
16567
16642
  "document": "函数触发规则优先级,数值越大,优先级越高。",
@@ -16572,10 +16647,20 @@
16572
16647
  "type": "int",
16573
16648
  "value_allowed_null": false
16574
16649
  },
16650
+ {
16651
+ "disabled": false,
16652
+ "document": "规则描述。",
16653
+ "example": "鉴权",
16654
+ "member": "string",
16655
+ "name": "Remark",
16656
+ "output_required": true,
16657
+ "type": "string",
16658
+ "value_allowed_null": false
16659
+ },
16575
16660
  {
16576
16661
  "disabled": false,
16577
16662
  "document": "创建时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。",
16578
- "example": "2017-09-17T16:30:58.410670+00:00",
16663
+ "example": "2017-09-17T16:30:58+00:00",
16579
16664
  "member": "datetime_iso",
16580
16665
  "name": "CreateTime",
16581
16666
  "output_required": true,
@@ -16585,7 +16670,7 @@
16585
16670
  {
16586
16671
  "disabled": false,
16587
16672
  "document": "更新时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。",
16588
- "example": "2017-09-17T16:30:58.410670+00:00",
16673
+ "example": "2017-09-17T16:30:58+00:00",
16589
16674
  "member": "datetime_iso",
16590
16675
  "name": "UpdateTime",
16591
16676
  "output_required": true,
@@ -16612,6 +16697,34 @@
16612
16697
  ],
16613
16698
  "usage": "both"
16614
16699
  },
16700
+ "FunctionWeightedSelection": {
16701
+ "document": "权重策略配置。",
16702
+ "members": [
16703
+ {
16704
+ "disabled": false,
16705
+ "document": "函数 ID 。",
16706
+ "example": "ef-0agikbrr",
16707
+ "member": "string",
16708
+ "name": "FunctionId",
16709
+ "output_required": true,
16710
+ "required": true,
16711
+ "type": "string",
16712
+ "value_allowed_null": false
16713
+ },
16714
+ {
16715
+ "disabled": false,
16716
+ "document": "选中权重。取值范围0-100,所有的权重之和需要为100。\n选中概率计算方式为:\nweight/100。例如设置了两个函数 A 和 B ,其中 A 的权重为30,那么 B 的权重必须为70,最终选中 A 的概率为30%,选中 B 的概率为70%。",
16717
+ "example": "30",
16718
+ "member": "uint64",
16719
+ "name": "Weight",
16720
+ "output_required": true,
16721
+ "required": true,
16722
+ "type": "int",
16723
+ "value_allowed_null": false
16724
+ }
16725
+ ],
16726
+ "usage": "both"
16727
+ },
16615
16728
  "GatewayRegion": {
16616
16729
  "document": "多通道安全网关可用地域",
16617
16730
  "members": [
@@ -20031,7 +20144,7 @@
20031
20144
  },
20032
20145
  {
20033
20146
  "disabled": false,
20034
- "document": "规则 ID",
20147
+ "document": "规则 ID。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。",
20035
20148
  "example": "rule-02y3grbu",
20036
20149
  "member": "string",
20037
20150
  "name": "RuleId",
@@ -20049,13 +20162,40 @@
20049
20162
  },
20050
20163
  {
20051
20164
  "disabled": false,
20052
- "document": "函数 ID,命中触发规则条件后执行的函数,不填写保持原有配置。",
20165
+ "document": "函数选择配置类型:\n<li> direct:直接指定执行函数;</li>\n<li> weight:基于权重比选择函数;</li>\n<li> region:基于客户端 IP 的国家/地区选择函数。</li>\n不填时默认为 direct 。",
20166
+ "example": "direct",
20167
+ "member": "string",
20168
+ "name": "TriggerType",
20169
+ "required": false,
20170
+ "type": "string"
20171
+ },
20172
+ {
20173
+ "disabled": false,
20174
+ "document": "指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。",
20053
20175
  "example": "ef-jjhvk7ec",
20054
20176
  "member": "string",
20055
20177
  "name": "FunctionId",
20056
20178
  "required": false,
20057
20179
  "type": "string"
20058
20180
  },
20181
+ {
20182
+ "disabled": false,
20183
+ "document": "基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。",
20184
+ "example": "无",
20185
+ "member": "FunctionRegionSelection",
20186
+ "name": "RegionMappingSelections",
20187
+ "required": false,
20188
+ "type": "list"
20189
+ },
20190
+ {
20191
+ "disabled": false,
20192
+ "document": "基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。",
20193
+ "example": "无",
20194
+ "member": "FunctionWeightedSelection",
20195
+ "name": "WeightedSelections",
20196
+ "required": false,
20197
+ "type": "list"
20198
+ },
20059
20199
  {
20060
20200
  "disabled": false,
20061
20201
  "document": "规则描述,最大支持 60 个字符,不填写保持原有配置。",
@@ -160,10 +160,22 @@
160
160
  ],
161
161
  "CreateFunctionRule": [
162
162
  {
163
- "document": "",
164
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"/123\"\n ],\n \"Target\": \"url\"\n }\n ]\n }\n ],\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"my function rule\"\n}",
163
+ "document": "为站点 zone-293e7s5jne1i 创建一个边缘函数规则,当请求host为 www.function.com 时命中规则,采用 direct(直接指定)的方式选择目标函数,目标函数 ID 为 ef-1pakhnuy 。",
164
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"direct\",\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"function rule trigger direct\"\n}",
165
+ "output": "{\n \"Response\": {\n \"RuleId\": \"rule-vnqup0uc\",\n \"RequestId\": \"aab9a28a-4cce-434d-852f-5442275817aa\"\n }\n}",
166
+ "title": "创建边缘函数规则命中规则后执行指定函数"
167
+ },
168
+ {
169
+ "document": "为站点 zone-293e7s5jne1i 创建一个边缘函数规则,当请求host为 www.function.com 时命中规则,采用 region(基于客户端 IP 国家/地区)的方式选择目标函数,如果客户端的 IP 归属地为中国大陆,则执行函数 ef-1pakhnuy ,如果客户端的 IP 归属地为其他地区,则执行函数 ef-1wekxwnu 。",
170
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"region\",\n \"RegionMappingSelections\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Regions\": [\n \"CN\"\n ]\n },\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Regions\": [\n \"Default\"\n ]\n }\n ],\n \"Remark\": \"function rule trigger region\"\n}",
165
171
  "output": "{\n \"Response\": {\n \"RuleId\": \"rule-vnqup0uc\",\n \"RequestId\": \"aab9a28a-4cce-434d-852f-5442275817aa\"\n }\n}",
166
- "title": "创建边缘函数规则"
172
+ "title": "创建边缘函数规则命中规则后根据客户请求地区执行不同的函数"
173
+ },
174
+ {
175
+ "document": "为站点 zone-293e7s5jne1i 创建一个边缘函数规则,当请求host为 www.function.com 时命中规则,采用 weight(基于权重)的方式选择目标函数,有20%的概率,执行函数 ef-1pakhnuy ,有80%的概率,执行函数 ef-1wekxwnu 。",
176
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"weight\",\n \"WeightedSelections\": [\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Weight\": 80\n },\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Weight\": 20\n }\n ],\n \"Remark\": \"function rule trigger weight\"\n}",
177
+ "output": "{\n \"Response\": {\n \"RuleId\": \"rule-vnqup0uc\",\n \"RequestId\": \"aab9a28a-4cce-434d-852f-5442275817aa\"\n }\n}",
178
+ "title": "创建边缘函数规则命中规则后根据客户设置的权重执行不同的函数"
167
179
  }
168
180
  ],
169
181
  "CreateJustInTimeTranscodeTemplate": [
@@ -894,9 +906,9 @@
894
906
  ],
895
907
  "DescribeFunctionRules": [
896
908
  {
897
- "document": "",
909
+ "document": "查询站点 zone-293e7s5jne1i 下的函数规则。",
898
910
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFunctionRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\"\n}",
899
- "output": "{\n \"Response\": {\n \"RequestId\": \"d7213f7f-a67b-4602-b630-ed6740e1a124\",\n \"FunctionRules\": [\n {\n \"RuleId\": \"rule-53qpdadi\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Target\": \"url\",\n \"Values\": [\n \"/test3\"\n ],\n \"IgnoreCase\": false,\n \"Name\": \"\"\n }\n ]\n }\n ],\n \"FunctionId\": \"ef-n1j14wfm\",\n \"FunctionName\": \"testfunction\",\n \"Priority\": 2,\n \"Remark\": \"my function rule\",\n \"CreateTime\": \"2023-04-19T07:32:09Z\",\n \"UpdateTime\": \"2023-04-19T07:36:43Z\"\n }\n ]\n }\n}",
911
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d7213f7f-a67b-4602-b630-ed6740e1a124\",\n \"FunctionRules\": [\n {\n \"RuleId\": \"rule-53qpdadi\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Target\": \"url\",\n \"Values\": [\n \"/test3\"\n ],\n \"IgnoreCase\": false,\n \"Name\": \"\"\n }\n ]\n }\n ],\n \"TriggerType\": \"region\",\n \"RegionMappingSelections\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Regions\": [\n \"CN\"\n ]\n },\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Regions\": [\n \"Default\"\n ]\n }\n ],\n \"FunctionId\": \"\",\n \"FunctionName\": \"\",\n \"Priority\": 2,\n \"Remark\": \"my function rule\",\n \"CreateTime\": \"2023-04-19T07:32:09Z\",\n \"UpdateTime\": \"2023-04-19T07:36:43Z\"\n }\n ]\n }\n}",
900
912
  "title": "查询边缘函数触发规则列表"
901
913
  }
902
914
  ],
@@ -1616,10 +1628,22 @@
1616
1628
  ],
1617
1629
  "ModifyFunctionRule": [
1618
1630
  {
1619
- "document": "",
1620
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2gqxim9jstab\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"/test\"\n ],\n \"Target\": \"url\"\n }\n ]\n }\n ],\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"my function\"\n}",
1631
+ "document": "修改函数规则 rule-vnqup0uc ,当请求host为 www.function.com 时命中规则,采用 direct(直接指定)的方式选择目标函数,目标函数 ID 为 ef-1pakhnuy 。\n\n",
1632
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"direct\",\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"function rule trigger direct\"\n}",
1633
+ "output": "{\n \"Response\": {\n \"RequestId\": \"7a1e998f-fa00-4670-8457-ed4b4fe5018a\"\n }\n}",
1634
+ "title": "修改边缘函数规则命中规则后执行指定函数"
1635
+ },
1636
+ {
1637
+ "document": "修改函数规则 rule-vnqup0uc,当请求host为 www.function.com 时命中规则,采用 region(基于客户端 IP 国家/地区)的方式选择目标函数,如果客户端的 IP 归属地为中国大陆,则执行函数 ef-1pakhnuy ,如果客户端的 IP 归属地为其他地区,则执行函数 ef-1wekxwnu 。",
1638
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"region\",\n \"RegionMappingSelections\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Regions\": [\n \"CN\"\n ]\n },\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Regions\": [\n \"Default\"\n ]\n }\n ],\n \"Remark\": \"function rule trigger region\"\n}",
1639
+ "output": "{\n \"Response\": {\n \"RequestId\": \"7a1e998f-fa00-4670-8457-ed4b4fe5018a\"\n }\n}",
1640
+ "title": "修改边缘函数规则命中规则后根据客户请求地区执行不同的函数"
1641
+ },
1642
+ {
1643
+ "document": "修改函数规则 rule-vnqup0uc,当请求host为 www.function.com 时命中规则,采用 weight(基于权重)的方式选择目标函数,有20%的概率,执行函数 ef-1pakhnuy ,有80%的概率,执行函数 ef-1wekxwnu 。",
1644
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"weight\",\n \"WeightedSelections\": [\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Weight\": 80\n },\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Weight\": 20\n }\n ],\n \"Remark\": \"function rule trigger weight\"\n}",
1621
1645
  "output": "{\n \"Response\": {\n \"RequestId\": \"7a1e998f-fa00-4670-8457-ed4b4fe5018a\"\n }\n}",
1622
- "title": "修改边缘函数规则"
1646
+ "title": "修改边缘函数规则命中规则后根据客户设置的权重执行不同的函数"
1623
1647
  }
1624
1648
  ],
1625
1649
  "ModifyFunctionRulePriority": [
@@ -110,6 +110,34 @@
110
110
  ],
111
111
  "usage": "out"
112
112
  },
113
+ "Coord": {
114
+ "document": "坐标详细信息",
115
+ "members": [
116
+ {
117
+ "disabled": false,
118
+ "document": "X坐标",
119
+ "example": "10",
120
+ "member": "int64",
121
+ "name": "X",
122
+ "output_required": false,
123
+ "required": false,
124
+ "type": "int",
125
+ "value_allowed_null": false
126
+ },
127
+ {
128
+ "disabled": false,
129
+ "document": "Y坐标",
130
+ "example": "10",
131
+ "member": "int64",
132
+ "name": "Y",
133
+ "output_required": false,
134
+ "required": false,
135
+ "type": "int",
136
+ "value_allowed_null": false
137
+ }
138
+ ],
139
+ "usage": "both"
140
+ },
113
141
  "FileTranslateRequest": {
114
142
  "document": "FileTranslate请求参数结构体",
115
143
  "members": [
@@ -668,6 +696,45 @@
668
696
  ],
669
697
  "type": "object"
670
698
  },
699
+ "RotateParagraphRect": {
700
+ "document": "段落文本旋转信息",
701
+ "members": [
702
+ {
703
+ "disabled": false,
704
+ "document": "段落文本坐标",
705
+ "example": "无",
706
+ "member": "Coord",
707
+ "name": "Coord",
708
+ "output_required": false,
709
+ "required": false,
710
+ "type": "list",
711
+ "value_allowed_null": false
712
+ },
713
+ {
714
+ "disabled": false,
715
+ "document": "旋转角度",
716
+ "example": "1.0",
717
+ "member": "float",
718
+ "name": "TiltAngle",
719
+ "output_required": false,
720
+ "required": false,
721
+ "type": "float",
722
+ "value_allowed_null": false
723
+ },
724
+ {
725
+ "disabled": false,
726
+ "document": "段落文本信息是否有效",
727
+ "example": "true",
728
+ "member": "bool",
729
+ "name": "Valid",
730
+ "output_required": false,
731
+ "required": false,
732
+ "type": "bool",
733
+ "value_allowed_null": false
734
+ }
735
+ ],
736
+ "usage": "both"
737
+ },
671
738
  "SpeechTranslateRequest": {
672
739
  "document": "SpeechTranslate请求参数结构体",
673
740
  "members": [
@@ -1131,7 +1198,7 @@
1131
1198
  {
1132
1199
  "disabled": false,
1133
1200
  "document": "段落文本框位置",
1134
- "example": "{ \"Height\": 26, \"Width\": 356, \"X\": 527, \"Y\": 25 }",
1201
+ "example": "",
1135
1202
  "member": "BoundingBox",
1136
1203
  "name": "BoundingBox",
1137
1204
  "output_required": false,
@@ -1167,6 +1234,16 @@
1167
1234
  "output_required": false,
1168
1235
  "type": "int",
1169
1236
  "value_allowed_null": false
1237
+ },
1238
+ {
1239
+ "disabled": false,
1240
+ "document": "段落文本旋转信息,只在valid为true时表示坐标有效",
1241
+ "example": "无",
1242
+ "member": "RotateParagraphRect",
1243
+ "name": "RotateParagraphRect",
1244
+ "output_required": false,
1245
+ "type": "object",
1246
+ "value_allowed_null": false
1170
1247
  }
1171
1248
  ],
1172
1249
  "usage": "out"
@@ -20148,6 +20148,7 @@
20148
20148
  "example": "foo",
20149
20149
  "member": "string",
20150
20150
  "name": "Name",
20151
+ "output_required": true,
20151
20152
  "required": true,
20152
20153
  "type": "string",
20153
20154
  "value_allowed_null": false
@@ -20158,6 +20159,7 @@
20158
20159
  "example": "bar",
20159
20160
  "member": "string",
20160
20161
  "name": "Value",
20162
+ "output_required": true,
20161
20163
  "required": false,
20162
20164
  "type": "string",
20163
20165
  "value_allowed_null": false
@@ -20168,6 +20170,7 @@
20168
20170
  "example": "无",
20169
20171
  "member": "ValueFrom",
20170
20172
  "name": "ValueFrom",
20173
+ "output_required": true,
20171
20174
  "required": false,
20172
20175
  "type": "object",
20173
20176
  "value_allowed_null": true