tccli-intl-en 3.1.11.1__py2.py3-none-any.whl → 3.1.39.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 (84) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +9 -0
  3. tccli/services/advisor/advisor_client.py +56 -0
  4. tccli/services/advisor/v20200721/api.json +34 -0
  5. tccli/services/advisor/v20200721/examples.json +8 -0
  6. tccli/services/ai3d/__init__.py +4 -0
  7. tccli/services/ai3d/ai3d_client.py +266 -0
  8. tccli/services/ai3d/v20250513/api.json +264 -0
  9. tccli/services/ai3d/v20250513/examples.json +20 -0
  10. tccli/services/autoscaling/v20180419/api.json +41 -13
  11. tccli/services/billing/billing_client.py +172 -4
  12. tccli/services/billing/v20180709/api.json +332 -1
  13. tccli/services/billing/v20180709/examples.json +24 -0
  14. tccli/services/ccc/v20200210/api.json +71 -26
  15. tccli/services/cdb/cdb_client.py +1128 -288
  16. tccli/services/cdb/v20170320/api.json +2166 -335
  17. tccli/services/cdb/v20170320/examples.json +126 -6
  18. tccli/services/cdn/v20180606/api.json +22 -22
  19. tccli/services/cdn/v20180606/examples.json +1 -1
  20. tccli/services/ckafka/ckafka_client.py +120 -8
  21. tccli/services/ckafka/v20190819/api.json +525 -180
  22. tccli/services/ckafka/v20190819/examples.json +30 -20
  23. tccli/services/clb/v20180317/api.json +87 -87
  24. tccli/services/csip/csip_client.py +392 -0
  25. tccli/services/csip/v20221121/api.json +2050 -284
  26. tccli/services/csip/v20221121/examples.json +56 -0
  27. tccli/services/cvm/v20170312/api.json +23 -23
  28. tccli/services/cvm/v20170312/examples.json +32 -32
  29. tccli/services/emr/v20190103/api.json +6 -6
  30. tccli/services/faceid/v20180301/api.json +102 -52
  31. tccli/services/faceid/v20180301/examples.json +3 -9
  32. tccli/services/hunyuan/__init__.py +4 -0
  33. tccli/services/hunyuan/hunyuan_client.py +714 -0
  34. tccli/services/hunyuan/v20230901/api.json +1131 -0
  35. tccli/services/hunyuan/v20230901/examples.json +84 -0
  36. tccli/services/lighthouse/lighthouse_client.py +360 -24
  37. tccli/services/lighthouse/v20200324/api.json +488 -0
  38. tccli/services/lighthouse/v20200324/examples.json +54 -0
  39. tccli/services/lkeap/v20240522/api.json +36 -0
  40. tccli/services/lkeap/v20240522/examples.json +1 -1
  41. tccli/services/mdl/mdl_client.py +192 -24
  42. tccli/services/mdl/v20200326/api.json +761 -77
  43. tccli/services/mdl/v20200326/examples.json +24 -0
  44. tccli/services/mdp/v20200527/api.json +191 -28
  45. tccli/services/mongodb/v20190725/api.json +39 -39
  46. tccli/services/monitor/v20180724/api.json +5 -5
  47. tccli/services/mps/mps_client.py +397 -61
  48. tccli/services/mps/v20190612/api.json +1190 -132
  49. tccli/services/mps/v20190612/examples.json +76 -22
  50. tccli/services/mqtt/__init__.py +4 -0
  51. tccli/services/mqtt/mqtt_client.py +1610 -0
  52. tccli/services/mqtt/v20240516/api.json +3057 -0
  53. tccli/services/mqtt/v20240516/examples.json +213 -0
  54. tccli/services/ocr/v20181119/api.json +23 -3
  55. tccli/services/ocr/v20181119/examples.json +6 -6
  56. tccli/services/redis/v20180412/api.json +12 -12
  57. tccli/services/ses/ses_client.py +348 -12
  58. tccli/services/ses/v20201002/api.json +1197 -256
  59. tccli/services/ses/v20201002/examples.json +78 -24
  60. tccli/services/tcsas/tcsas_client.py +2281 -209
  61. tccli/services/tcsas/v20250106/api.json +8410 -3423
  62. tccli/services/tcsas/v20250106/examples.json +308 -12
  63. tccli/services/tdmq/v20200217/api.json +4 -4
  64. tccli/services/teo/teo_client.py +56 -0
  65. tccli/services/teo/v20220901/api.json +111 -12
  66. tccli/services/teo/v20220901/examples.json +8 -0
  67. tccli/services/tke/tke_client.py +168 -0
  68. tccli/services/tke/v20180525/api.json +227 -0
  69. tccli/services/tke/v20180525/examples.json +24 -0
  70. tccli/services/trocket/v20230308/api.json +96 -96
  71. tccli/services/trtc/v20190722/api.json +212 -144
  72. tccli/services/trtc/v20190722/examples.json +7 -7
  73. tccli/services/vod/v20180717/api.json +2929 -296
  74. tccli/services/vod/v20180717/examples.json +40 -6
  75. tccli/services/vod/vod_client.py +280 -0
  76. tccli/services/vpc/v20170312/api.json +80 -13
  77. tccli/services/vpc/v20170312/examples.json +17 -9
  78. tccli/services/vpc/vpc_client.py +64 -8
  79. {tccli_intl_en-3.1.11.1.dist-info → tccli_intl_en-3.1.39.1.dist-info}/METADATA +2 -2
  80. {tccli_intl_en-3.1.11.1.dist-info → tccli_intl_en-3.1.39.1.dist-info}/RECORD +84 -72
  81. {tccli_intl_en-3.1.11.1.dist-info → tccli_intl_en-3.1.39.1.dist-info}/WHEEL +1 -1
  82. {tccli_intl_en-3.1.11.1.dist-info → tccli_intl_en-3.1.39.1.dist-info}/LICENSE +0 -0
  83. {tccli_intl_en-3.1.11.1.dist-info → tccli_intl_en-3.1.39.1.dist-info}/entry_points.txt +0 -0
  84. {tccli_intl_en-3.1.11.1.dist-info → tccli_intl_en-3.1.39.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,264 @@
1
+ {
2
+ "actions": {
3
+ "QueryHunyuanTo3DProJob": {
4
+ "document": "This API is used to intelligently generate 3D content based on the HunYuan Large Model and input text descriptions/images.\nThis API is used to provide 3 concurrent tasks by default, which can be processed simultaneously. The next task can be processed only after the previous task is completed.",
5
+ "input": "QueryHunyuanTo3DProJobRequest",
6
+ "name": "Query a hunyuan 3D pro edition task",
7
+ "output": "QueryHunyuanTo3DProJobResponse",
8
+ "status": "online"
9
+ },
10
+ "SubmitHunyuanTo3DProJob": {
11
+ "document": "This API is used to intelligently generate 3D content based on the HunYuan Large Model and input text descriptions/images.\nThis API is used to provide 3 concurrent tasks by default, which can be processed simultaneously. The next task can be processed only after the previous task is completed.",
12
+ "input": "SubmitHunyuanTo3DProJobRequest",
13
+ "name": "Submit hunyuan 3D pro edition task",
14
+ "output": "SubmitHunyuanTo3DProJobResponse",
15
+ "status": "online"
16
+ }
17
+ },
18
+ "metadata": {
19
+ "apiVersion": "2025-05-13",
20
+ "serviceNameCN": "腾讯混元生3D",
21
+ "serviceShortName": "ai3d"
22
+ },
23
+ "objects": {
24
+ "File3D": {
25
+ "document": "3D file.",
26
+ "members": [
27
+ {
28
+ "disabled": false,
29
+ "document": "Specifies the file format.",
30
+ "example": "OBJ",
31
+ "member": "string",
32
+ "name": "Type",
33
+ "output_required": false,
34
+ "required": false,
35
+ "type": "string",
36
+ "value_allowed_null": false
37
+ },
38
+ {
39
+ "disabled": false,
40
+ "document": "File Url (valid for 24 hours).",
41
+ "example": "https://cos.ap-guangzhou.myqcloud.com/obj.obj",
42
+ "member": "string",
43
+ "name": "Url",
44
+ "output_required": false,
45
+ "required": false,
46
+ "type": "string",
47
+ "value_allowed_null": false
48
+ },
49
+ {
50
+ "disabled": false,
51
+ "document": "Preview image Url.",
52
+ "example": "https://cos.ap-guangzhou.myqcloud.com/image.png",
53
+ "member": "string",
54
+ "name": "PreviewImageUrl",
55
+ "output_required": false,
56
+ "required": false,
57
+ "type": "string",
58
+ "value_allowed_null": false
59
+ }
60
+ ],
61
+ "usage": "both"
62
+ },
63
+ "QueryHunyuanTo3DProJobRequest": {
64
+ "document": "QueryHunyuanTo3DProJob request structure.",
65
+ "members": [
66
+ {
67
+ "disabled": false,
68
+ "document": "Task ID.",
69
+ "example": "1357237233311637504",
70
+ "member": "string",
71
+ "name": "JobId",
72
+ "required": true,
73
+ "type": "string"
74
+ }
75
+ ],
76
+ "type": "object"
77
+ },
78
+ "QueryHunyuanTo3DProJobResponse": {
79
+ "document": "QueryHunyuanTo3DProJob response structure.",
80
+ "members": [
81
+ {
82
+ "disabled": false,
83
+ "document": "Task status. WAIT: waiting; RUN: running; FAIL: failed; DONE: successful.",
84
+ "example": "DONE",
85
+ "member": "string",
86
+ "name": "Status",
87
+ "output_required": false,
88
+ "type": "string",
89
+ "value_allowed_null": false
90
+ },
91
+ {
92
+ "disabled": false,
93
+ "document": "Error code",
94
+ "example": "InvalidParameter",
95
+ "member": "string",
96
+ "name": "ErrorCode",
97
+ "output_required": false,
98
+ "type": "string",
99
+ "value_allowed_null": false
100
+ },
101
+ {
102
+ "disabled": false,
103
+ "document": "Error message.",
104
+ "example": "参数错误。",
105
+ "member": "string",
106
+ "name": "ErrorMessage",
107
+ "output_required": false,
108
+ "type": "string",
109
+ "value_allowed_null": false
110
+ },
111
+ {
112
+ "disabled": false,
113
+ "document": "Generated 3D file array.",
114
+ "example": "无",
115
+ "member": "File3D",
116
+ "name": "ResultFile3Ds",
117
+ "output_required": false,
118
+ "type": "list",
119
+ "value_allowed_null": false
120
+ },
121
+ {
122
+ "document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
123
+ "member": "string",
124
+ "name": "RequestId",
125
+ "type": "string"
126
+ }
127
+ ],
128
+ "type": "object"
129
+ },
130
+ "SubmitHunyuanTo3DProJobRequest": {
131
+ "document": "SubmitHunyuanTo3DProJob request structure.",
132
+ "members": [
133
+ {
134
+ "disabled": false,
135
+ "document": "Generates 3D content, describes 3D content, chinese forward prompt content.\nSupports up to 1024 utf-8 characters.\nText-To-3D. specifies image, image_url, or prompt is required. prompt and image/image_url cannot coexist.",
136
+ "example": "一只小猫",
137
+ "member": "string",
138
+ "name": "Prompt",
139
+ "required": false,
140
+ "type": "string"
141
+ },
142
+ {
143
+ "disabled": false,
144
+ "document": "Enter the Base64 code of the image.\nSize: specifies the unilateral resolution requirement, not less than 128 and not greater than 5000. size should not exceed 8m (after encoding, it increases by about 30%, recommend actual input image size no more than 6m).\nValid values: jpg, png, jpeg, webp.\nImageBase64, ImageUrl, or Prompt is required. Prompt and ImageBase64/ImageUrl cannot coexist.",
145
+ "example": "/9j/4QlQaHR0c...N6a2M5ZCI",
146
+ "member": "string",
147
+ "name": "ImageBase64",
148
+ "required": false,
149
+ "type": "string"
150
+ },
151
+ {
152
+ "disabled": false,
153
+ "document": "Input image Url.\nSize: specifies the unilateral resolution requirement, not less than 128 and not greater than 5000. size should not exceed 8m (after encoding, it increases by about 30%, recommend actual input image size no more than 6m).\nValid values: jpg, png, jpeg, webp.\nSpecifies either ImageBase64/ImageUrl or Prompt is required. Prompt and ImageBase64/ImageUrl cannot coexist.",
154
+ "example": "https://cos.ap-guangzhou.myqcloud.com/image.jpg",
155
+ "member": "string",
156
+ "name": "ImageUrl",
157
+ "required": false,
158
+ "type": "string"
159
+ },
160
+ {
161
+ "disabled": false,
162
+ "document": "Multi-Perspective model image. reference value for viewing angle:.\nleft view.\nright view.\nback view.\n\nEach viewing angle allows only one image.\nImage size limit: must not exceed 8M after encoding.\nImage resolution limitation: specifies the unilateral resolution should be less than 5000 and greater than 128.\n●Supported image format: JPG or PNG",
163
+ "example": "无",
164
+ "member": "ViewImage",
165
+ "name": "MultiViewImages",
166
+ "required": false,
167
+ "type": "list"
168
+ },
169
+ {
170
+ "disabled": false,
171
+ "document": "Specifies whether PBR material generation is enabled, false by default.",
172
+ "example": "true",
173
+ "member": "bool",
174
+ "name": "EnablePBR",
175
+ "required": false,
176
+ "type": "bool"
177
+ },
178
+ {
179
+ "disabled": false,
180
+ "document": "Specifies the face count of the generated 3D model. default value is 500000.\nSpecifies the supported face count range. value range: 40000-1500000.",
181
+ "example": "400000",
182
+ "member": "int64",
183
+ "name": "FaceCount",
184
+ "required": false,
185
+ "type": "int"
186
+ },
187
+ {
188
+ "disabled": false,
189
+ "document": "Generation task type. default: Normal. valid values:.\nGenerates a textured geometry model.\nLowPoly: specifies whether to generate a model with smart polygon reduction.\nGeometry: specifies whether to generate a Geometry model without texture (white model). when this task is selected, the EnablePBR parameter does not take effect.\nSketch: enter a Sketch or line art to generate a model. in this mode, prompt and ImageUrl/ImageBase64 can be input together.",
190
+ "example": "Normal",
191
+ "member": "string",
192
+ "name": "GenerateType",
193
+ "required": false,
194
+ "type": "string"
195
+ },
196
+ {
197
+ "disabled": false,
198
+ "document": "This parameter only takes effect when LowPoly mode is selected from GenerateType.\n\nPolygon type, indicates the model surface is composed of polygon grids, defaults to triangle. valid values:.\nSpecifies the triangle face.\nquadrilateral: generates a mix of quadrangle and triangle faces.",
199
+ "example": "triangle",
200
+ "member": "string",
201
+ "name": "PolygonType",
202
+ "required": false,
203
+ "type": "string"
204
+ }
205
+ ],
206
+ "type": "object"
207
+ },
208
+ "SubmitHunyuanTo3DProJobResponse": {
209
+ "document": "SubmitHunyuanTo3DProJob response structure.",
210
+ "members": [
211
+ {
212
+ "disabled": false,
213
+ "document": "Task ID (valid period: 24 hours).",
214
+ "example": "1357237233311637504",
215
+ "member": "string",
216
+ "name": "JobId",
217
+ "output_required": false,
218
+ "type": "string",
219
+ "value_allowed_null": false
220
+ },
221
+ {
222
+ "document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
223
+ "member": "string",
224
+ "name": "RequestId",
225
+ "type": "string"
226
+ }
227
+ ],
228
+ "type": "object"
229
+ },
230
+ "ViewImage": {
231
+ "document": "Multi-Perspective image.",
232
+ "members": [
233
+ {
234
+ "disabled": false,
235
+ "document": "Viewing angle type.\nValid values: back, left, right.",
236
+ "example": "back",
237
+ "member": "string",
238
+ "name": "ViewType",
239
+ "required": false,
240
+ "type": "string"
241
+ },
242
+ {
243
+ "disabled": false,
244
+ "document": "Image Url.",
245
+ "example": "https://cos.ap-guangzhou.myqcloud.com/image.jpg",
246
+ "member": "string",
247
+ "name": "ViewImageUrl",
248
+ "required": false,
249
+ "type": "string"
250
+ },
251
+ {
252
+ "disabled": false,
253
+ "document": "base64 image address.",
254
+ "example": "\t/9j/4QlQaHR0c...N6a2M5ZCI",
255
+ "member": "string",
256
+ "name": "ViewImageBase64",
257
+ "required": false,
258
+ "type": "string"
259
+ }
260
+ ],
261
+ "usage": "in"
262
+ }
263
+ }
264
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "actions": {
3
+ "QueryHunyuanTo3DProJob": [
4
+ {
5
+ "document": "",
6
+ "input": "POST / HTTP/1.1\nHost: ai3d.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryHunyuanTo3DProJob\n<Common request parameters>\n\n{\n \"JobId\": \"1357237233311637504\"\n}",
7
+ "output": "{\n \"Response\": {\n \"ErrorCode\": \"\",\n \"ErrorMessage\": \"\",\n \"RequestId\": \"e4de438f-acca-44f9-9f29-7df547c81680\",\n \"ResultFile3Ds\": [\n {\n \"PreviewImageUrl\": \"https://cos.ap-guangzhou.tencentcos.cn/xxx.png\",\n \"Type\": \"GLB\",\n \"Url\": \"https://cos.ap-guangzhou.tencentcos.cn/xxx.glb\"\n }\n ],\n \"Status\": \"DONE\"\n }\n}",
8
+ "title": "Querying 3D Pro Edition Example"
9
+ }
10
+ ],
11
+ "SubmitHunyuanTo3DProJob": [
12
+ {
13
+ "document": "",
14
+ "input": "POST / HTTP/1.1\nHost: ai3d.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitHunyuanTo3DProJob\n<Common request parameters>\n\n{\n \"ImageUrl\": \"https://cos.ap-guangzhou.myqcloud.com/input.png\"\n}",
15
+ "output": "{\n \"Response\": {\n \"JobId\": \"1357237233311637504\",\n \"RequestId\": \"173f8c3b-d559-4e17-aac7-4e42303773ac\"\n }\n}",
16
+ "title": "Submitting a 3D Pro Edition Example"
17
+ }
18
+ ]
19
+ }
20
+ }
@@ -2352,21 +2352,21 @@
2352
2352
  },
2353
2353
  {
2354
2354
  "disabled": false,
2355
- "document": "The maximum number of instances set for the auto scaling group when the scheduled task is triggered.",
2356
- "example": "10",
2355
+ "document": "The minimum number of instances set for the auto scaling group when the scheduled task is triggered.",
2356
+ "example": "4",
2357
2357
  "member": "uint64",
2358
- "name": "MaxSize",
2358
+ "name": "MinSize",
2359
2359
  "required": true,
2360
2360
  "type": "int"
2361
2361
  },
2362
2362
  {
2363
2363
  "disabled": false,
2364
- "document": "The minimum number of instances set for the auto scaling group when the scheduled task is triggered.",
2365
- "example": "4",
2366
- "member": "uint64",
2367
- "name": "MinSize",
2364
+ "document": "Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.",
2365
+ "example": "2018-08-28T23:00:00+08:00",
2366
+ "member": "datetime_iso",
2367
+ "name": "StartTime",
2368
2368
  "required": true,
2369
- "type": "int"
2369
+ "type": "string"
2370
2370
  },
2371
2371
  {
2372
2372
  "disabled": false,
@@ -2379,12 +2379,12 @@
2379
2379
  },
2380
2380
  {
2381
2381
  "disabled": false,
2382
- "document": "Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.",
2383
- "example": "2018-08-28T23:00:00+08:00",
2384
- "member": "datetime_iso",
2385
- "name": "StartTime",
2382
+ "document": "The maximum number of instances set for the auto scaling group when the scheduled task is triggered.",
2383
+ "example": "10",
2384
+ "member": "uint64",
2385
+ "name": "MaxSize",
2386
2386
  "required": true,
2387
- "type": "string"
2387
+ "type": "int"
2388
2388
  },
2389
2389
  {
2390
2390
  "disabled": false,
@@ -2403,6 +2403,15 @@
2403
2403
  "name": "Recurrence",
2404
2404
  "required": false,
2405
2405
  "type": "string"
2406
+ },
2407
+ {
2408
+ "disabled": false,
2409
+ "document": "Disable update DesiredCapacity Indicates the DesiredCapacity is updated normally during scheduled task triggering.\n\nSpecifies whether the scheduled task triggers proactive modification of the DesiredCapacity when the value is True. DesiredCapacity may be modified by the minSize and maxSize mechanism.\nThe following cases assume that DisableUpdateDesiredCapacity is True:\n- When scheduled task triggered, the original DesiredCapacity is 5. The scheduled task changes the minSize to 10, the maxSize to 20, and the DesiredCapacity to 15. Since the DesiredCapacity update is disabled, 15 does not take effect. However, the original DesiredCapacity 5 is less than minSize 10, so the final new DesiredCapacity is 10.\n- When scheduled task triggered, the original DesiredCapacity is 25. The scheduled task changes the minSize to 10 and the maxSize to 20, and the DesiredCapacity to 15. Since the DesiredCapacity update is disabled, 15 does not take effect. However, the original DesiredCapacity 25 is greater than the maxSize 20, so the final new DesiredCapacity is 20.\n- When scheduled task triggered, the original DesiredCapacity is 13. The scheduled task changes the minSize to 10 and the maxSize to 20, and the DesiredCapacity to 15. Since the DesiredCapacity update is disabled, 15 does not take effect, and the DesiredCapacity is still 13.",
2410
+ "example": "false",
2411
+ "member": "bool",
2412
+ "name": "DisableUpdateDesiredCapacity",
2413
+ "required": false,
2414
+ "type": "bool"
2406
2415
  }
2407
2416
  ],
2408
2417
  "type": "object"
@@ -6323,6 +6332,15 @@
6323
6332
  "name": "Recurrence",
6324
6333
  "required": false,
6325
6334
  "type": "string"
6335
+ },
6336
+ {
6337
+ "disabled": false,
6338
+ "document": "Disable update DesiredCapacity Indicates the DesiredCapacity is updated normally during scheduled task triggering.\n\nSpecifies whether the scheduled task triggers proactive modification of the DesiredCapacity when the value is True. DesiredCapacity may be modified by the minSize and maxSize mechanism.\nThe following cases assume that DisableUpdateDesiredCapacity is True:\n- When scheduled task triggered, the original DesiredCapacity is 5. The scheduled task changes the minSize to 10, the maxSize to 20, and the DesiredCapacity to 15. Since the DesiredCapacity update is disabled, 15 does not take effect. However, the original DesiredCapacity 5 is less than minSize 10, so the final new DesiredCapacity is 10.\n- When scheduled task triggered, the original DesiredCapacity is 25. The scheduled task changes the minSize to 10 and the maxSize to 20, and the DesiredCapacity to 15. Since the DesiredCapacity update is disabled, 15 does not take effect. However, the original DesiredCapacity 25 is greater than the maxSize 20, so the final new DesiredCapacity is 20.\n- When scheduled task triggered, the original DesiredCapacity is 13. The scheduled task changes the minSize to 10 and the maxSize to 20, and the DesiredCapacity to 15. Since the DesiredCapacity update is disabled, 15 does not take effect, and the DesiredCapacity is still 13.",
6339
+ "example": "false",
6340
+ "member": "bool",
6341
+ "name": "DisableUpdateDesiredCapacity",
6342
+ "required": false,
6343
+ "type": "bool"
6326
6344
  }
6327
6345
  ],
6328
6346
  "type": "object"
@@ -7264,6 +7282,16 @@
7264
7282
  "output_required": true,
7265
7283
  "type": "string",
7266
7284
  "value_allowed_null": false
7285
+ },
7286
+ {
7287
+ "disabled": false,
7288
+ "document": "Disable update DesiredCapacity Indicates the DesiredCapacity is updated normally during scheduled task triggering.\n\nSpecifies whether the scheduled task triggers proactive modification of the DesiredCapacity when the value is True. DesiredCapacity may be modified by the minSize and maxSize mechanism.\nThe following cases assume that DisableUpdateDesiredCapacity is True:\n- When scheduled task triggered, the original DesiredCapacity is 5. The scheduled task changes the minSize to 10, the maxSize to 20, and the DesiredCapacity to 15. Since the DesiredCapacity update is disabled, 15 does not take effect. However, the original DesiredCapacity 5 is less than minSize 10, so the final new DesiredCapacity is 10.\n- When scheduled task triggered, the original DesiredCapacity is 25. The scheduled task changes the minSize to 10 and the maxSize to 20, and the DesiredCapacity to 15. Since the DesiredCapacity update is disabled, 15 does not take effect. However, the original DesiredCapacity 25 is greater than the maxSize 20, so the final new DesiredCapacity is 20.\n- When scheduled task triggered, the original DesiredCapacity is 13. The scheduled task changes the minSize to 10 and the maxSize to 20, and the DesiredCapacity to 15. Since the DesiredCapacity update is disabled, 15 does not take effect, and the DesiredCapacity is still 13.",
7289
+ "example": "false",
7290
+ "member": "bool",
7291
+ "name": "DisableUpdateDesiredCapacity",
7292
+ "output_required": false,
7293
+ "type": "bool",
7294
+ "value_allowed_null": false
7267
7295
  }
7268
7296
  ],
7269
7297
  "usage": "out"
@@ -787,6 +787,61 @@ def doDescribeBillDetail(args, parsed_globals):
787
787
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
788
788
 
789
789
 
790
+ def doDescribeAllocationTree(args, parsed_globals):
791
+ g_param = parse_global_arg(parsed_globals)
792
+
793
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
794
+ cred = credential.CVMRoleCredential()
795
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
796
+ cred = credential.STSAssumeRoleCredential(
797
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
798
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
799
+ )
800
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
801
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
802
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
803
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
804
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
805
+ else:
806
+ cred = credential.Credential(
807
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
808
+ )
809
+ http_profile = HttpProfile(
810
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
811
+ reqMethod="POST",
812
+ endpoint=g_param[OptionsDefine.Endpoint],
813
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
814
+ )
815
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
816
+ if g_param[OptionsDefine.Language]:
817
+ profile.language = g_param[OptionsDefine.Language]
818
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
819
+ client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
820
+ client._sdkVersion += ("_CLI_" + __version__)
821
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
822
+ model = models.DescribeAllocationTreeRequest()
823
+ model.from_json_string(json.dumps(args))
824
+ start_time = time.time()
825
+ while True:
826
+ rsp = client.DescribeAllocationTree(model)
827
+ result = rsp.to_json_string()
828
+ try:
829
+ json_obj = json.loads(result)
830
+ except TypeError as e:
831
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
832
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
833
+ break
834
+ cur_time = time.time()
835
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
836
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
837
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
838
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
839
+ else:
840
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
841
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
842
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
843
+
844
+
790
845
  def doDescribeBillSummary(args, parsed_globals):
791
846
  g_param = parse_global_arg(parsed_globals)
792
847
 
@@ -1062,6 +1117,61 @@ def doDescribeDosageCosDetailByDate(args, parsed_globals):
1062
1117
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1063
1118
 
1064
1119
 
1120
+ def doRenewInstance(args, parsed_globals):
1121
+ g_param = parse_global_arg(parsed_globals)
1122
+
1123
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1124
+ cred = credential.CVMRoleCredential()
1125
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1126
+ cred = credential.STSAssumeRoleCredential(
1127
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1128
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1129
+ )
1130
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1131
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1132
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1133
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1134
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1135
+ else:
1136
+ cred = credential.Credential(
1137
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1138
+ )
1139
+ http_profile = HttpProfile(
1140
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1141
+ reqMethod="POST",
1142
+ endpoint=g_param[OptionsDefine.Endpoint],
1143
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1144
+ )
1145
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1146
+ if g_param[OptionsDefine.Language]:
1147
+ profile.language = g_param[OptionsDefine.Language]
1148
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1149
+ client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
1150
+ client._sdkVersion += ("_CLI_" + __version__)
1151
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1152
+ model = models.RenewInstanceRequest()
1153
+ model.from_json_string(json.dumps(args))
1154
+ start_time = time.time()
1155
+ while True:
1156
+ rsp = client.RenewInstance(model)
1157
+ result = rsp.to_json_string()
1158
+ try:
1159
+ json_obj = json.loads(result)
1160
+ except TypeError as e:
1161
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1162
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1163
+ break
1164
+ cur_time = time.time()
1165
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1166
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1167
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1168
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1169
+ else:
1170
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1171
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1172
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1173
+
1174
+
1065
1175
  def doDescribeBillDownloadUrl(args, parsed_globals):
1066
1176
  g_param = parse_global_arg(parsed_globals)
1067
1177
 
@@ -1337,7 +1447,7 @@ def doDescribeGatherRuleDetail(args, parsed_globals):
1337
1447
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1338
1448
 
1339
1449
 
1340
- def doDescribeAllocationTree(args, parsed_globals):
1450
+ def doCreateInstance(args, parsed_globals):
1341
1451
  g_param = parse_global_arg(parsed_globals)
1342
1452
 
1343
1453
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1369,11 +1479,11 @@ def doDescribeAllocationTree(args, parsed_globals):
1369
1479
  client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
1370
1480
  client._sdkVersion += ("_CLI_" + __version__)
1371
1481
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1372
- model = models.DescribeAllocationTreeRequest()
1482
+ model = models.CreateInstanceRequest()
1373
1483
  model.from_json_string(json.dumps(args))
1374
1484
  start_time = time.time()
1375
1485
  while True:
1376
- rsp = client.DescribeAllocationTree(model)
1486
+ rsp = client.CreateInstance(model)
1377
1487
  result = rsp.to_json_string()
1378
1488
  try:
1379
1489
  json_obj = json.loads(result)
@@ -2162,6 +2272,61 @@ def doDescribeCostDetail(args, parsed_globals):
2162
2272
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2163
2273
 
2164
2274
 
2275
+ def doRefundInstance(args, parsed_globals):
2276
+ g_param = parse_global_arg(parsed_globals)
2277
+
2278
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2279
+ cred = credential.CVMRoleCredential()
2280
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2281
+ cred = credential.STSAssumeRoleCredential(
2282
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2283
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2284
+ )
2285
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2286
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2287
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2288
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2289
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2290
+ else:
2291
+ cred = credential.Credential(
2292
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2293
+ )
2294
+ http_profile = HttpProfile(
2295
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2296
+ reqMethod="POST",
2297
+ endpoint=g_param[OptionsDefine.Endpoint],
2298
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2299
+ )
2300
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2301
+ if g_param[OptionsDefine.Language]:
2302
+ profile.language = g_param[OptionsDefine.Language]
2303
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2304
+ client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
2305
+ client._sdkVersion += ("_CLI_" + __version__)
2306
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2307
+ model = models.RefundInstanceRequest()
2308
+ model.from_json_string(json.dumps(args))
2309
+ start_time = time.time()
2310
+ while True:
2311
+ rsp = client.RefundInstance(model)
2312
+ result = rsp.to_json_string()
2313
+ try:
2314
+ json_obj = json.loads(result)
2315
+ except TypeError as e:
2316
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2317
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2318
+ break
2319
+ cur_time = time.time()
2320
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2321
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2322
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2323
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2324
+ else:
2325
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2326
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2327
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2328
+
2329
+
2165
2330
  def doDescribeBillSummaryByProduct(args, parsed_globals):
2166
2331
  g_param = parse_global_arg(parsed_globals)
2167
2332
 
@@ -2352,17 +2517,19 @@ ACTION_MAP = {
2352
2517
  "DescribeVoucherInfo": doDescribeVoucherInfo,
2353
2518
  "DescribeBillResourceSummaryForOrganization": doDescribeBillResourceSummaryForOrganization,
2354
2519
  "DescribeBillDetail": doDescribeBillDetail,
2520
+ "DescribeAllocationTree": doDescribeAllocationTree,
2355
2521
  "DescribeBillSummary": doDescribeBillSummary,
2356
2522
  "DeleteAllocationRule": doDeleteAllocationRule,
2357
2523
  "DescribeBillSummaryByPayMode": doDescribeBillSummaryByPayMode,
2358
2524
  "DescribeAllocationRuleDetail": doDescribeAllocationRuleDetail,
2359
2525
  "DescribeDosageCosDetailByDate": doDescribeDosageCosDetailByDate,
2526
+ "RenewInstance": doRenewInstance,
2360
2527
  "DescribeBillDownloadUrl": doDescribeBillDownloadUrl,
2361
2528
  "CreateGatherRule": doCreateGatherRule,
2362
2529
  "DescribeBillDetailForOrganization": doDescribeBillDetailForOrganization,
2363
2530
  "DescribeAccountBalance": doDescribeAccountBalance,
2364
2531
  "DescribeGatherRuleDetail": doDescribeGatherRuleDetail,
2365
- "DescribeAllocationTree": doDescribeAllocationTree,
2532
+ "CreateInstance": doCreateInstance,
2366
2533
  "DescribeAllocationUnitDetail": doDescribeAllocationUnitDetail,
2367
2534
  "DescribeBillAdjustInfo": doDescribeBillAdjustInfo,
2368
2535
  "DescribeVoucherUsageDetails": doDescribeVoucherUsageDetails,
@@ -2377,6 +2544,7 @@ ACTION_MAP = {
2377
2544
  "ModifyAllocationUnit": doModifyAllocationUnit,
2378
2545
  "DescribeDealsByCond": doDescribeDealsByCond,
2379
2546
  "DescribeCostDetail": doDescribeCostDetail,
2547
+ "RefundInstance": doRefundInstance,
2380
2548
  "DescribeBillSummaryByProduct": doDescribeBillSummaryByProduct,
2381
2549
  "ModifyAllocationRule": doModifyAllocationRule,
2382
2550
  "DeleteAllocationTag": doDeleteAllocationTag,