tccli 3.0.1236.1__py2.py3-none-any.whl → 3.0.1238.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 (149) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/aca/__init__.py +4 -0
  4. tccli/services/aca/aca_client.py +578 -0
  5. tccli/services/aca/v20210323/api.json +3715 -0
  6. tccli/services/aca/v20210323/examples.json +69 -0
  7. tccli/services/aiart/v20221229/api.json +18 -9
  8. tccli/services/aiart/v20221229/examples.json +2 -2
  9. tccli/services/apm/v20210622/api.json +25 -22
  10. tccli/services/apm/v20210622/examples.json +16 -22
  11. tccli/services/ba/v20200720/api.json +3 -2
  12. tccli/services/batch/v20170312/api.json +641 -566
  13. tccli/services/batch/v20170312/examples.json +7 -7
  14. tccli/services/bi/v20220105/api.json +9 -0
  15. tccli/services/billing/v20180709/api.json +2 -2
  16. tccli/services/bpaas/v20181217/examples.json +1 -1
  17. tccli/services/cam/v20190116/api.json +116 -99
  18. tccli/services/cam/v20190116/examples.json +11 -11
  19. tccli/services/ccc/v20200210/api.json +40 -1
  20. tccli/services/ccc/v20200210/examples.json +1 -1
  21. tccli/services/cdb/cdb_client.py +53 -0
  22. tccli/services/cdb/v20170320/api.json +257 -207
  23. tccli/services/cdb/v20170320/examples.json +18 -10
  24. tccli/services/cdwch/v20200915/api.json +6 -6
  25. tccli/services/cdwdoris/v20211228/api.json +16 -5
  26. tccli/services/cdwdoris/v20211228/examples.json +1 -1
  27. tccli/services/cfg/v20210820/api.json +29 -13
  28. tccli/services/cfg/v20210820/examples.json +1 -1
  29. tccli/services/cfs/v20190719/api.json +84 -84
  30. tccli/services/cfs/v20190719/examples.json +6 -6
  31. tccli/services/chdfs/v20201112/api.json +18 -17
  32. tccli/services/chdfs/v20201112/examples.json +2 -2
  33. tccli/services/clb/v20180317/api.json +184 -162
  34. tccli/services/cloudapp/v20220530/api.json +11 -1
  35. tccli/services/cloudapp/v20220530/examples.json +3 -3
  36. tccli/services/cloudaudit/v20190319/api.json +64 -53
  37. tccli/services/cloudaudit/v20190319/examples.json +5 -5
  38. tccli/services/cls/v20201016/api.json +21 -21
  39. tccli/services/cls/v20201016/examples.json +1 -1
  40. tccli/services/config/v20220802/api.json +2 -0
  41. tccli/services/config/v20220802/examples.json +2 -2
  42. tccli/services/cvm/v20170312/api.json +5 -5
  43. tccli/services/cynosdb/cynosdb_client.py +53 -0
  44. tccli/services/cynosdb/v20190107/api.json +110 -0
  45. tccli/services/cynosdb/v20190107/examples.json +8 -0
  46. tccli/services/dcdb/v20180411/api.json +390 -387
  47. tccli/services/dcdb/v20180411/examples.json +14 -14
  48. tccli/services/dlc/v20210125/api.json +162 -7
  49. tccli/services/dlc/v20210125/examples.json +1 -1
  50. tccli/services/domain/v20180808/api.json +55 -54
  51. tccli/services/domain/v20180808/examples.json +38 -32
  52. tccli/services/dsgc/v20190723/api.json +1796 -1623
  53. tccli/services/dsgc/v20190723/examples.json +217 -211
  54. tccli/services/dts/v20180330/api.json +143 -106
  55. tccli/services/dts/v20211206/api.json +57 -46
  56. tccli/services/dts/v20211206/examples.json +1 -1
  57. tccli/services/ecm/v20190719/api.json +6 -6
  58. tccli/services/emr/v20190103/api.json +80 -20
  59. tccli/services/ess/ess_client.py +118 -12
  60. tccli/services/ess/v20201111/api.json +320 -37
  61. tccli/services/ess/v20201111/examples.json +19 -3
  62. tccli/services/essbasic/essbasic_client.py +167 -8
  63. tccli/services/essbasic/v20210526/api.json +528 -55
  64. tccli/services/essbasic/v20210526/examples.json +46 -16
  65. tccli/services/facefusion/v20220927/api.json +12 -1
  66. tccli/services/fmu/v20191213/api.json +8 -8
  67. tccli/services/gaap/v20180529/api.json +200 -209
  68. tccli/services/gwlb/v20240906/api.json +16 -16
  69. tccli/services/gwlb/v20240906/examples.json +2 -2
  70. tccli/services/hai/v20230812/api.json +1 -1
  71. tccli/services/hunyuan/v20230901/api.json +6 -6
  72. tccli/services/iss/v20230517/api.json +11 -11
  73. tccli/services/iss/v20230517/examples.json +31 -31
  74. tccli/services/keewidb/v20220308/api.json +92 -82
  75. tccli/services/keewidb/v20220308/examples.json +5 -5
  76. tccli/services/lcic/v20220817/api.json +3 -3
  77. tccli/services/lcic/v20220817/examples.json +2 -2
  78. tccli/services/lighthouse/v20200324/api.json +18 -18
  79. tccli/services/lighthouse/v20200324/examples.json +6 -6
  80. tccli/services/live/v20180801/api.json +32 -14
  81. tccli/services/lke/v20231130/examples.json +1 -1
  82. tccli/services/mariadb/v20170312/api.json +285 -263
  83. tccli/services/mariadb/v20170312/examples.json +12 -12
  84. tccli/services/mongodb/v20180408/api.json +52 -40
  85. tccli/services/mongodb/v20180408/examples.json +4 -4
  86. tccli/services/mongodb/v20190725/api.json +119 -109
  87. tccli/services/mongodb/v20190725/examples.json +5 -5
  88. tccli/services/monitor/monitor_client.py +106 -0
  89. tccli/services/monitor/v20180724/api.json +222 -0
  90. tccli/services/monitor/v20180724/examples.json +17 -1
  91. tccli/services/mps/mps_client.py +228 -16
  92. tccli/services/mps/v20190612/api.json +385 -23
  93. tccli/services/mps/v20190612/examples.json +32 -0
  94. tccli/services/mqtt/v20240516/api.json +1 -1
  95. tccli/services/mqtt/v20240516/examples.json +1 -1
  96. tccli/services/msp/v20180319/api.json +2 -2
  97. tccli/services/ocr/v20181119/api.json +11 -1
  98. tccli/services/omics/v20221128/api.json +14 -2
  99. tccli/services/organization/v20210331/api.json +45 -18
  100. tccli/services/privatedns/v20201028/api.json +90 -81
  101. tccli/services/privatedns/v20201028/examples.json +18 -18
  102. tccli/services/pts/v20210728/api.json +8 -0
  103. tccli/services/redis/redis_client.py +106 -0
  104. tccli/services/redis/v20180412/api.json +178 -16
  105. tccli/services/redis/v20180412/examples.json +16 -0
  106. tccli/services/region/v20220627/api.json +5 -3
  107. tccli/services/region/v20220627/examples.json +1 -1
  108. tccli/services/ssl/v20191205/api.json +6 -4
  109. tccli/services/ssl/v20191205/examples.json +1 -1
  110. tccli/services/sts/v20180813/examples.json +1 -1
  111. tccli/services/tag/v20180813/api.json +4 -5
  112. tccli/services/tcb/v20180608/api.json +36 -16
  113. tccli/services/tdid/v20210519/api.json +30 -38
  114. tccli/services/tdid/v20210519/examples.json +5 -5
  115. tccli/services/tdmq/tdmq_client.py +53 -0
  116. tccli/services/tdmq/v20200217/api.json +64 -1
  117. tccli/services/tdmq/v20200217/examples.json +9 -1
  118. tccli/services/teo/teo_client.py +485 -8
  119. tccli/services/teo/v20220901/api.json +837 -39
  120. tccli/services/teo/v20220901/examples.json +108 -0
  121. tccli/services/thpc/v20211109/api.json +32 -34
  122. tccli/services/thpc/v20220401/api.json +31 -33
  123. tccli/services/thpc/v20230321/api.json +55 -57
  124. tccli/services/thpc/v20230321/examples.json +1 -1
  125. tccli/services/tiia/v20190529/api.json +307 -293
  126. tccli/services/tiia/v20190529/examples.json +41 -41
  127. tccli/services/tione/v20211111/api.json +4 -4
  128. tccli/services/tione/v20211111/examples.json +2 -2
  129. tccli/services/tke/v20180525/api.json +1 -1
  130. tccli/services/trocket/trocket_client.py +53 -0
  131. tccli/services/trocket/v20230308/api.json +119 -3
  132. tccli/services/trocket/v20230308/examples.json +14 -0
  133. tccli/services/tse/v20201207/api.json +188 -120
  134. tccli/services/tse/v20201207/examples.json +30 -30
  135. tccli/services/tsf/v20180326/api.json +826 -745
  136. tccli/services/tsf/v20180326/examples.json +99 -111
  137. tccli/services/vclm/v20240523/api.json +1 -1
  138. tccli/services/vdb/v20230616/api.json +80 -80
  139. tccli/services/vdb/v20230616/examples.json +1 -1
  140. tccli/services/vpc/v20170312/api.json +64 -44
  141. tccli/services/vpc/v20170312/examples.json +6 -6
  142. tccli/services/vrs/v20200824/api.json +3 -2
  143. tccli/services/wedata/v20210820/api.json +550 -40
  144. tccli/services/wedata/v20210820/examples.json +10 -4
  145. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/METADATA +2 -2
  146. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/RECORD +149 -145
  147. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/WHEEL +0 -0
  148. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/entry_points.txt +0 -0
  149. {tccli-3.0.1236.1.dist-info → tccli-3.0.1238.1.dist-info}/license_files/LICENSE +0 -0
@@ -9612,17 +9612,17 @@
9612
9612
  "example": "env-xxxxxx",
9613
9613
  "member": "string",
9614
9614
  "name": "EnvId",
9615
- "required": true,
9615
+ "output_required": true,
9616
9616
  "type": "string",
9617
9617
  "value_allowed_null": false
9618
9618
  },
9619
9619
  {
9620
9620
  "disabled": false,
9621
9621
  "document": "tcb产品套餐ID,参考DescribePackages接口的返回值。",
9622
- "example": "default",
9622
+ "example": "Default",
9623
9623
  "member": "string",
9624
9624
  "name": "PackageId",
9625
- "required": true,
9625
+ "output_required": true,
9626
9626
  "type": "string",
9627
9627
  "value_allowed_null": false
9628
9628
  },
@@ -9632,7 +9632,7 @@
9632
9632
  "example": "true",
9633
9633
  "member": "bool",
9634
9634
  "name": "IsAutoRenew",
9635
- "required": true,
9635
+ "output_required": true,
9636
9636
  "type": "bool",
9637
9637
  "value_allowed_null": false
9638
9638
  },
@@ -9642,7 +9642,7 @@
9642
9642
  "example": "NORMAL",
9643
9643
  "member": "string",
9644
9644
  "name": "Status",
9645
- "required": true,
9645
+ "output_required": true,
9646
9646
  "type": "string",
9647
9647
  "value_allowed_null": false
9648
9648
  },
@@ -9652,7 +9652,7 @@
9652
9652
  "example": "PREPAYMENT",
9653
9653
  "member": "string",
9654
9654
  "name": "PayMode",
9655
- "required": true,
9655
+ "output_required": true,
9656
9656
  "type": "string",
9657
9657
  "value_allowed_null": false
9658
9658
  },
@@ -9662,7 +9662,7 @@
9662
9662
  "example": "2022-01-01 12:34:56",
9663
9663
  "member": "string",
9664
9664
  "name": "IsolatedTime",
9665
- "required": true,
9665
+ "output_required": true,
9666
9666
  "type": "string",
9667
9667
  "value_allowed_null": false
9668
9668
  },
@@ -9672,7 +9672,7 @@
9672
9672
  "example": "2022-01-01 12:34:56",
9673
9673
  "member": "string",
9674
9674
  "name": "ExpireTime",
9675
- "required": true,
9675
+ "output_required": true,
9676
9676
  "type": "string",
9677
9677
  "value_allowed_null": false
9678
9678
  },
@@ -9682,7 +9682,7 @@
9682
9682
  "example": "2022-01-01 12:34:56",
9683
9683
  "member": "string",
9684
9684
  "name": "CreateTime",
9685
- "required": true,
9685
+ "output_required": true,
9686
9686
  "type": "string",
9687
9687
  "value_allowed_null": false
9688
9688
  },
@@ -9692,7 +9692,7 @@
9692
9692
  "example": "2022-01-01 12:34:56",
9693
9693
  "member": "string",
9694
9694
  "name": "UpdateTime",
9695
- "required": true,
9695
+ "output_required": true,
9696
9696
  "type": "string",
9697
9697
  "value_allowed_null": false
9698
9698
  },
@@ -9702,7 +9702,7 @@
9702
9702
  "example": "false",
9703
9703
  "member": "bool",
9704
9704
  "name": "IsAlwaysFree",
9705
- "required": true,
9705
+ "output_required": true,
9706
9706
  "type": "bool",
9707
9707
  "value_allowed_null": false
9708
9708
  },
@@ -9712,7 +9712,7 @@
9712
9712
  "example": "miniapp",
9713
9713
  "member": "string",
9714
9714
  "name": "PaymentChannel",
9715
- "required": true,
9715
+ "output_required": true,
9716
9716
  "type": "string",
9717
9717
  "value_allowed_null": true
9718
9718
  },
@@ -9722,7 +9722,7 @@
9722
9722
  "example": "无",
9723
9723
  "member": "OrderInfo",
9724
9724
  "name": "OrderInfo",
9725
- "required": true,
9725
+ "output_required": true,
9726
9726
  "type": "object",
9727
9727
  "value_allowed_null": true
9728
9728
  },
@@ -9732,7 +9732,7 @@
9732
9732
  "example": "basic",
9733
9733
  "member": "string",
9734
9734
  "name": "FreeQuota",
9735
- "required": true,
9735
+ "output_required": true,
9736
9736
  "type": "string",
9737
9737
  "value_allowed_null": true
9738
9738
  },
@@ -9742,7 +9742,7 @@
9742
9742
  "example": "无",
9743
9743
  "member": "bool",
9744
9744
  "name": "EnableOverrun",
9745
- "required": true,
9745
+ "output_required": true,
9746
9746
  "type": "bool",
9747
9747
  "value_allowed_null": true
9748
9748
  },
@@ -9752,9 +9752,29 @@
9752
9752
  "example": "baas",
9753
9753
  "member": "string",
9754
9754
  "name": "ExtPackageType",
9755
- "required": true,
9755
+ "output_required": true,
9756
9756
  "type": "string",
9757
9757
  "value_allowed_null": true
9758
+ },
9759
+ {
9760
+ "disabled": false,
9761
+ "document": "是否付费期环境,可取值:yes/no。",
9762
+ "example": "yes",
9763
+ "member": "string",
9764
+ "name": "EnvCharged",
9765
+ "output_required": false,
9766
+ "type": "string",
9767
+ "value_allowed_null": false
9768
+ },
9769
+ {
9770
+ "disabled": false,
9771
+ "document": "是否已激活,可取值:yes/no。",
9772
+ "example": "yes",
9773
+ "member": "string",
9774
+ "name": "EnvActivated",
9775
+ "output_required": false,
9776
+ "type": "string",
9777
+ "value_allowed_null": false
9758
9778
  }
9759
9779
  ],
9760
9780
  "usage": "out"
@@ -144,8 +144,7 @@
144
144
  "member": "uint64",
145
145
  "name": "CPTId",
146
146
  "required": true,
147
- "type": "int",
148
- "value_allowed_null": false
147
+ "type": "int"
149
148
  },
150
149
  {
151
150
  "disabled": false,
@@ -154,8 +153,7 @@
154
153
  "member": "string",
155
154
  "name": "Issuer",
156
155
  "required": true,
157
- "type": "string",
158
- "value_allowed_null": false
156
+ "type": "string"
159
157
  },
160
158
  {
161
159
  "disabled": false,
@@ -164,8 +162,7 @@
164
162
  "member": "string",
165
163
  "name": "ExpirationDate",
166
164
  "required": true,
167
- "type": "string",
168
- "value_allowed_null": false
165
+ "type": "string"
169
166
  },
170
167
  {
171
168
  "disabled": false,
@@ -174,8 +171,7 @@
174
171
  "member": "string",
175
172
  "name": "ClaimJson",
176
173
  "required": true,
177
- "type": "string",
178
- "value_allowed_null": false
174
+ "type": "string"
179
175
  },
180
176
  {
181
177
  "disabled": false,
@@ -184,18 +180,16 @@
184
180
  "member": "string",
185
181
  "name": "Type",
186
182
  "required": false,
187
- "type": "list",
188
- "value_allowed_null": false
183
+ "type": "list"
189
184
  },
190
185
  {
191
186
  "disabled": false,
192
187
  "document": "多方签名的用户did",
193
- "example": "[]",
188
+ "example": "[\"did:tdid:f34:0x996d0259c4c09359b8ef0fb1b530a2aa702cf092\",\"did:tdid:c97:0xc1f030ceeb858887f0cc400030d59534cf8098c8\"]",
194
189
  "member": "string",
195
190
  "name": "Parties",
196
191
  "required": false,
197
- "type": "list",
198
- "value_allowed_null": false
192
+ "type": "list"
199
193
  }
200
194
  ],
201
195
  "usage": "in"
@@ -231,7 +225,7 @@
231
225
  {
232
226
  "disabled": false,
233
227
  "document": "凭证文本内容,FunctionArg和CredentialText任选其一",
234
- "example": "credential",
228
+ "example": "{\"cptId\":1,\"issuer\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"expirationDate\":\"2124-06-29T15:25:00+08:00\",\"issuanceDate\":\"2024-12-18T10:51:47+08:00\",\"context\":\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\"id\":\"6aeea943a851ad83acae1e138c2edc67\",\"type\":[\"VerifiableCredential\"],\"credentialSubject\":{\"action\":\"setAge\",\"age\":17},\"proof\":{\"created\":\"2024-12-18T10:51:47+08:00\",\"creator\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827#keys-0\",\"signatureValue\":\"MEQCIHETsDrIpka838y4NHWU2S07+YwPRb3Mpwq8W5TLDNsNAiBUBFP0mb+eNpc5cTla15MxtIWGk0u8AAiTAHLjYbS2Mg==\",\"type\":\"Secp256r1\",\"metaDigest\":\"79ccefe237c9bf65d804747ca7f20ff9b985242e4e1e8634587bbebe07b51c45\",\"vcDigest\":\"b8e185fdd623d09434460ceaae6dd5563411ed9d8c7ded144248813ba0b4bcfc\",\"privacy\":\"Public\",\"salt\":{\"action\":\"XG9VA\",\"age\":\"yol5B\"}}}",
235
229
  "member": "string",
236
230
  "name": "CredentialData",
237
231
  "required": false,
@@ -240,7 +234,7 @@
240
234
  {
241
235
  "disabled": false,
242
236
  "document": "披露策略文本",
243
- "example": "{\"age\":1}",
237
+ "example": "{\"age\":0}",
244
238
  "member": "string",
245
239
  "name": "PolicyJson",
246
240
  "required": false,
@@ -264,7 +258,7 @@
264
258
  {
265
259
  "disabled": false,
266
260
  "document": "凭证字符串",
267
- "example": "{}",
261
+ "example": "{\"context\":\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\"cptId\":1,\"credentialSubject\":{\"action\":\"setAge\",\"age\":\"0x7a5b0f3813c2bcd4a0b3e2c534aafdb4cf0337af1ad2bc308bd11c6aded91a3c\"},\"expirationDate\":\"2124-06-29T15:25:00+08:00\",\"id\":\"6aeea943a851ad83acae1e138c2edc67\",\"issuanceDate\":\"2024-12-18T10:51:47+08:00\",\"issuer\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"proof\":{\"created\":\"2024-12-18T10:51:47+08:00\",\"creator\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827#keys-0\",\"metaDigest\":\"79ccefe237c9bf65d804747ca7f20ff9b985242e4e1e8634587bbebe07b51c45\",\"privacy\":\"Public\",\"salt\":{\"action\":\"XG9VA\",\"age\":\"0\"},\"signatureValue\":\"MEQCIHETsDrIpka838y4NHWU2S07+YwPRb3Mpwq8W5TLDNsNAiBUBFP0mb+eNpc5cTla15MxtIWGk0u8AAiTAHLjYbS2Mg==\",\"type\":\"Secp256r1\",\"vcDigest\":\"b8e185fdd623d09434460ceaae6dd5563411ed9d8c7ded144248813ba0b4bcfc\"},\"type\":[\"VerifiableCredential\"]}",
268
262
  "member": "string",
269
263
  "name": "CredentialData",
270
264
  "output_required": true,
@@ -295,7 +289,7 @@
295
289
  {
296
290
  "disabled": false,
297
291
  "document": "凭证列表",
298
- "example": "[]",
292
+ "example": "[\"credential1\", \"credential2\"]",
299
293
  "member": "string",
300
294
  "name": "Credentials",
301
295
  "required": false,
@@ -313,7 +307,7 @@
313
307
  {
314
308
  "disabled": false,
315
309
  "document": "VP随机验证码",
316
- "example": "test",
310
+ "example": "RIflyg",
317
311
  "member": "string",
318
312
  "name": "VerifyCode",
319
313
  "required": false,
@@ -322,7 +316,7 @@
322
316
  {
323
317
  "disabled": false,
324
318
  "document": "选择性披露策略",
325
- "example": "{}",
319
+ "example": "{”action\":1}",
326
320
  "member": "string",
327
321
  "name": "PolicyJson",
328
322
  "required": false,
@@ -355,7 +349,7 @@
355
349
  {
356
350
  "disabled": false,
357
351
  "document": "可验证表达内容",
358
- "example": "\"\"",
352
+ "example": "{\"context\":[\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\"],\"holder\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"proof\":{\"created\":\"2024-12-18T11:12:22+08:00\",\"nonce\":\"RIflyg\",\"signatureValue\":\"eyJjb250ZXh0IjpbImh0dHBzOi8vZ2l0aHViLmNvbS9UZW5jZW50Q2xvdWQtQmxvY2tjaGFpbi9URElEL2Jsb2IvbWFpbi9jb250ZXh0L3YxIl0sImhvbGRlciI6ImRpZDp0ZGlkOmMxMToweGU0ZTA3NjY4OWIxMWRjYWExMTE4YWVmNjU0NzkxY2NhOTVjNzY4MjciLCJ0eXBlIjpbIlZlcmlmaWFibGVQcmVzZW50YXRpb24iXSwidmVyaWZpYWJsZUNyZWRlbnRpYWwiOlt7ImNvbnRleHQiOiJodHRwczovL2dpdGh1Yi5jb20vVGVuY2VudENsb3VkLUJsb2NrY2hhaW4vVERJRC9ibG9iL21haW4vY29udGV4dC92MSIsImNwdElkIjoxLCJjcmVkZW50aWFsU3ViamVjdCI6eyJhY3Rpb24iOiJzZXRBZ2UiLCJhZ2UiOiIweDdhNWIwZjM4MTNjMmJjZDRhMGIzZTJjNTM0YWFmZGI0Y2YwMzM3YWYxYWQyYmMzMDhiZDExYzZhZGVkOTFhM2MifSwiZXhwaXJhdGlvbkRhdGUiOiIyMTI0LTA2LTI5VDE1OjI1OjAwKzA4OjAwIiwiaWQiOiI2YWVlYTk0M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verifiableCredential\":[{\"context\":\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\"cptId\":1,\"credentialSubject\":{\"action\":\"setAge\",\"age\":\"0x7a5b0f3813c2bcd4a0b3e2c534aafdb4cf0337af1ad2bc308bd11c6aded91a3c\"},\"expirationDate\":\"2124-06-29T15:25:00+08:00\",\"id\":\"6aeea943a851ad83acae1e138c2edc67\",\"issuanceDate\":\"2024-12-18T10:51:47+08:00\",\"issuer\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"proof\":{\"created\":\"2024-12-18T10:51:47+08:00\",\"creator\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827#keys-0\",\"metaDigest\":\"79ccefe237c9bf65d804747ca7f20ff9b985242e4e1e8634587bbebe07b51c45\",\"privacy\":\"Public\",\"salt\":{\"action\":\"XG9VA\",\"age\":\"0\"},\"signatureValue\":\"MEQCIHETsDrIpka838y4NHWU2S07+YwPRb3Mpwq8W5TLDNsNAiBUBFP0mb+eNpc5cTla15MxtIWGk0u8AAiTAHLjYbS2Mg==\",\"type\":\"Secp256r1\",\"vcDigest\":\"b8e185fdd623d09434460ceaae6dd5563411ed9d8c7ded144248813ba0b4bcfc\"},\"type\":[\"VerifiableCredential\"]}],\"zeroProof\":[[]]}",
359
353
  "member": "string",
360
354
  "name": "PresentationData",
361
355
  "output_required": false,
@@ -386,7 +380,7 @@
386
380
  {
387
381
  "disabled": false,
388
382
  "document": "自定义DID文档json属性",
389
- "example": "{}",
383
+ "example": "{\"name\":\"张三\"}",
390
384
  "member": "string",
391
385
  "name": "CustomAttribute",
392
386
  "required": false,
@@ -442,7 +436,7 @@
442
436
  {
443
437
  "disabled": false,
444
438
  "document": "pem格式的认证公钥",
445
- "example": "test",
439
+ "example": "-----BEGIN PUBLIC KEY-----\\r\\nMFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEdPxYz6u53NB5WqgESSaRYwDSPeBUuyke8CTlyWn7/BYpbRKQTzt3b3O+QYeMSJULvclDsj+pFCZPh9lLrBNU6w==\\r\\n-----END PUBLIC KEY-----",
446
440
  "member": "string",
447
441
  "name": "PublicKey",
448
442
  "required": false,
@@ -451,7 +445,7 @@
451
445
  {
452
446
  "disabled": false,
453
447
  "document": "自定义DID初始化属性json字符串",
454
- "example": "{}",
448
+ "example": "{\"name\":\"李四\"}",
455
449
  "member": "string",
456
450
  "name": "CustomAttribute",
457
451
  "required": false,
@@ -702,22 +696,20 @@
702
696
  {
703
697
  "disabled": false,
704
698
  "document": "键名",
705
- "example": "a",
699
+ "example": "name",
706
700
  "member": "string",
707
701
  "name": "Key",
708
702
  "required": true,
709
- "type": "string",
710
- "value_allowed_null": false
703
+ "type": "string"
711
704
  },
712
705
  {
713
706
  "disabled": false,
714
707
  "document": "键值",
715
- "example": "1",
708
+ "example": "李四",
716
709
  "member": "string",
717
710
  "name": "Val",
718
711
  "required": true,
719
- "type": "string",
720
- "value_allowed_null": false
712
+ "type": "string"
721
713
  }
722
714
  ],
723
715
  "usage": "in"
@@ -775,7 +767,7 @@
775
767
  {
776
768
  "disabled": false,
777
769
  "document": "凭证唯一Id",
778
- "example": "a",
770
+ "example": "19d88ecb3f04997ccc64d425259ade0d",
779
771
  "member": "string",
780
772
  "name": "CredentialId",
781
773
  "required": false,
@@ -1004,7 +996,7 @@
1004
996
  {
1005
997
  "disabled": false,
1006
998
  "document": "DID公钥数组",
1007
- "example": "[]",
999
+ "example": "[\"-----BEGIN PUBLIC KEY-----\\r\\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEkb2grT3bobgV6CYqfa91ywqtBHeAR5HnVUQFbSzlG4irxRW7UfN69GISmRKtAWZY9hTD4sBeC0FA/2MSb7Rv7w==\\r\\n-----END PUBLIC KEY-----\"]",
1008
1000
  "member": "string",
1009
1001
  "name": "AuthPublicKeyList",
1010
1002
  "output_required": false,
@@ -1099,7 +1091,7 @@
1099
1091
  {
1100
1092
  "disabled": false,
1101
1093
  "document": "权威机构名称",
1102
- "example": "test",
1094
+ "example": "某教育学院",
1103
1095
  "member": "string",
1104
1096
  "name": "Name",
1105
1097
  "required": false,
@@ -1114,7 +1106,7 @@
1114
1106
  {
1115
1107
  "disabled": false,
1116
1108
  "document": "名称",
1117
- "example": "test",
1109
+ "example": "某教育学院",
1118
1110
  "member": "string",
1119
1111
  "name": "Name",
1120
1112
  "output_required": false,
@@ -1144,7 +1136,7 @@
1144
1136
  {
1145
1137
  "disabled": false,
1146
1138
  "document": "机构备注信息",
1147
- "example": "test",
1139
+ "example": "职业教育",
1148
1140
  "member": "string",
1149
1141
  "name": "Description",
1150
1142
  "output_required": false,
@@ -1200,7 +1192,7 @@
1200
1192
  {
1201
1193
  "disabled": false,
1202
1194
  "document": "凭证模板内容",
1203
- "example": "{}",
1195
+ "example": "{\\n \"cptType\" : \"original\",\\n \"$schema\" : \"http://json-schema.org/draft-04/schema#\",\\n \"description\" : \"operate temp credential\",\\n \"title\" : \"operation\",\\n \"type\" : \"object\",\\n \"properties\" : {\\n \"action\" : {\\n \"description\" : \"操作类型\",\\n \"type\" : \"string\"\\n }\\n },\\n \"required\" : [ \"action\" ]\\n}",
1204
1196
  "member": "string",
1205
1197
  "name": "CPTJson",
1206
1198
  "output_required": true,
@@ -1397,7 +1389,7 @@
1397
1389
  {
1398
1390
  "disabled": false,
1399
1391
  "document": "凭证内容",
1400
- "example": "{}",
1392
+ "example": "{\"cptId\":1,\"issuer\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"expirationDate\":\"2124-06-29T15:25:00+08:00\",\"issuanceDate\":\"2024-12-18T10:51:47+08:00\",\"context\":\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\"id\":\"6aeea943a851ad83acae1e138c2edc67\",\"type\":[\"VerifiableCredential\"],\"credentialSubject\":{\"action\":\"setAge\",\"age\":17},\"proof\":{\"created\":\"2024-12-18T10:51:47+08:00\",\"creator\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827#keys-0\",\"signatureValue\":\"MEQCIHETsDrIpka838y4NHWU2S07+YwPRb3Mpwq8W5TLDNsNAiBUBFP0mb+eNpc5cTla15MxtIWGk0u8AAiTAHLjYbS2Mg==\",\"type\":\"Secp256r1\",\"metaDigest\":\"79ccefe237c9bf65d804747ca7f20ff9b985242e4e1e8634587bbebe07b51c45\",\"vcDigest\":\"b8e185fdd623d09434460ceaae6dd5563411ed9d8c7ded144248813ba0b4bcfc\",\"privacy\":\"Public\",\"salt\":{\"action\":\"XG9VA\",\"age\":\"yol5B\"}}}",
1401
1393
  "member": "string",
1402
1394
  "name": "CredentialData",
1403
1395
  "required": false,
@@ -1472,7 +1464,7 @@
1472
1464
  {
1473
1465
  "disabled": false,
1474
1466
  "document": "可验证表达内容",
1475
- "example": "{}",
1467
+ "example": "{\"context\":[\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\"],\"holder\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"proof\":{\"created\":\"2024-12-18T11:12:22+08:00\",\"nonce\":\"RIflyg\",\"signatureValue\":\"eyJjb250ZXh0IjpbImh0dHBzOi8vZ2l0aHViLmNvbS9UZW5jZW50Q2xvdWQtQmxvY2tjaGFpbi9URElEL2Jsb2IvbWFpbi9jb250ZXh0L3YxIl0sImhvbGRlciI6ImRpZDp0ZGlkOmMxMToweGU0ZTA3NjY4OWIxMWRjYWExMTE4YWVmNjU0NzkxY2NhOTVjNzY4MjciLCJ0eXBlIjpbIlZlcmlmaWFibGVQcmVzZW50YXRpb24iXSwidmVyaWZpYWJsZUNyZWRlbnRpYWwiOlt7ImNvbnRleHQiOiJodHRwczovL2dpdGh1Yi5jb20vVGVuY2VudENsb3VkLUJsb2NrY2hhaW4vVERJRC9ibG9iL21haW4vY29udGV4dC92MSIsImNwdElkIjoxLCJjcmVkZW50aWFsU3ViamVjdCI6eyJhY3Rpb24iOiJzZXRBZ2UiLCJhZ2UiOiIweDdhNWIwZjM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tdXX0=\",\"type\":\"Secp256r1\",\"verificationMethod\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827#keys-0\",\"vpDigest\":\"61975d8175b3cf3f7f9f316350d94bcd2e980eb7b2e66ddecc170ab43bbb5183\"},\"type\":[\"VerifiablePresentation\"],\"verifiableCredential\":[{\"context\":\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\"cptId\":1,\"credentialSubject\":{\"action\":\"setAge\",\"age\":\"0x7a5b0f3813c2bcd4a0b3e2c534aafdb4cf0337af1ad2bc308bd11c6aded91a3c\"},\"expirationDate\":\"2124-06-29T15:25:00+08:00\",\"id\":\"6aeea943a851ad83acae1e138c2edc67\",\"issuanceDate\":\"2024-12-18T10:51:47+08:00\",\"issuer\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827\",\"proof\":{\"created\":\"2024-12-18T10:51:47+08:00\",\"creator\":\"did:tdid:c11:0xe4e076689b11dcaa1118aef654791cca95c76827#keys-0\",\"metaDigest\":\"79ccefe237c9bf65d804747ca7f20ff9b985242e4e1e8634587bbebe07b51c45\",\"privacy\":\"Public\",\"salt\":{\"action\":\"XG9VA\",\"age\":\"0\"},\"signatureValue\":\"MEQCIHETsDrIpka838y4NHWU2S07+YwPRb3Mpwq8W5TLDNsNAiBUBFP0mb+eNpc5cTla15MxtIWGk0u8AAiTAHLjYbS2Mg==\",\"type\":\"Secp256r1\",\"vcDigest\":\"b8e185fdd623d09434460ceaae6dd5563411ed9d8c7ded144248813ba0b4bcfc\"},\"type\":[\"VerifiableCredential\"]}],\"zeroProof\":[[]]}",
1476
1468
  "member": "string",
1477
1469
  "name": "PresentationData",
1478
1470
  "required": false,
@@ -1515,7 +1507,7 @@
1515
1507
  {
1516
1508
  "disabled": false,
1517
1509
  "document": "验证返回码",
1518
- "example": "0",
1510
+ "example": "1001",
1519
1511
  "member": "uint64",
1520
1512
  "name": "VerifyCode",
1521
1513
  "output_required": false,
@@ -11,7 +11,7 @@
11
11
  "CreatePresentation": [
12
12
  {
13
13
  "document": "",
14
- "input": "POST / HTTP/1.1\nHost: tdid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePresentation\n<公共请求参数>\n\n{\n \"DAPId\": 1,\n \"CredentialList\": [\n {\n \"Credential\": \"{\\\"cptId\\\":1,\\\"issuer\\\":\\\"did:tdid:w1:0x379106c7232aed1a50e8600511655b479c76b149\\\",\\\"expirationDate\\\":\\\"2124-06-29T15:25:00+08:00\\\",\\\"issuanceDate\\\":\\\"2023-11-30T05:19:40+08:00\\\",\\\"context\\\":\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\",\\\"id\\\":\\\"0767cc1f93ad541e195bd9f5f00d665f\\\",\\\"type\\\":[\\\"VerifiableCredential\\\"],\\\"credentialSubject\\\":{\\\"action\\\":\\\"deactiveDid\\\",\\\"age\\\":17},\\\"proof\\\":{\\\"created\\\":\\\"2023-11-30T05:19:40+08:00\\\",\\\"creator\\\":\\\"did:tdid:w1:0x379106c7232aed1a50e8600511655b479c76b149#keys-0\\\",\\\"signatureValue\\\":\\\"MEQCIEWnreXh0siSPnCaAqCldL1E+gTdrT6oSZjbTjAhwn6+AiBXn/ZIirpr69JknKsX3+MWRE7WeIXGdaOIXY10c36hoA==\\\",\\\"type\\\":\\\"Secp256r1\\\",\\\"metaDigest\\\":\\\"7d6435235cd5afdb7abd06a979eb2237d103401bdb54fa38ff6b8299c7529b76\\\",\\\"vcDigest\\\":\\\"d014b006648f48e13c1aff9c16a39979e3d17e6f32c816065158d6a92632a132\\\",\\\"privacy\\\":\\\"Public\\\",\\\"salt\\\":{\\\"action\\\":\\\"YuzFn\\\",\\\"age\\\":\\\"0zche\\\"}}}\"\n }\n ],\n \"Did\": \"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8\",\n \"VerifyCode\": \"test\",\n \"PolicyJson\": \"{\\\"1\\\":{\\\"age\\\":0}}\"\n}",
14
+ "input": "POST / HTTP/1.1\nHost: tdid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePresentation\n<公共请求参数>\n\n{\n \"DAPId\": 1,\n \"CredentialList\": [\n {\n \"Credential\": \"{\\\"cptId\\\":1,\\\"issuer\\\":\\\"did:tdid:w1:0x379106c7232aed1a50e8600511655b479c76b149\\\",\\\"expirationDate\\\":\\\"2124-06-29T15:25:00+08:00\\\",\\\"issuanceDate\\\":\\\"2023-11-30T05:19:40+08:00\\\",\\\"context\\\":\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\",\\\"id\\\":\\\"0767cc1f93ad541e195bd9f5f00d665f\\\",\\\"type\\\":[\\\"VerifiableCredential\\\"],\\\"credentialSubject\\\":{\\\"action\\\":\\\"deactiveDid\\\",\\\"age\\\":17},\\\"proof\\\":{\\\"created\\\":\\\"2023-11-30T05:19:40+08:00\\\",\\\"creator\\\":\\\"did:tdid:w1:0x379106c7232aed1a50e8600511655b479c76b149#keys-0\\\",\\\"signatureValue\\\":\\\"MEQCIEWnreXh0siSPnCaAqCldL1E+gTdrT6oSZjbTjAhwn6+AiBXn/ZIirpr69JknKsX3+MWRE7WeIXGdaOIXY10c36hoA==\\\",\\\"type\\\":\\\"Secp256r1\\\",\\\"metaDigest\\\":\\\"7d6435235cd5afdb7abd06a979eb2237d103401bdb54fa38ff6b8299c7529b76\\\",\\\"vcDigest\\\":\\\"d014b006648f48e13c1aff9c16a39979e3d17e6f32c816065158d6a92632a132\\\",\\\"privacy\\\":\\\"Public\\\",\\\"salt\\\":{\\\"action\\\":\\\"YuzFn\\\",\\\"age\\\":\\\"0zche\\\"}}}\"\n }\n ],\n \"Did\": \"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8\",\n \"VerifyCode\": \"1001\",\n \"PolicyJson\": \"{\\\"1\\\":{\\\"age\\\":0}}\"\n}",
15
15
  "output": "{\n \"Response\": {\n \"PresentationData\": \"{\\\"context\\\":[\\\"https://github.com/TencentCloud-Blockchain/TDID/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9yIjoiZGlkOnRkaWQ6YzI6MHgzNzkxMDZjNzIzMmFlZDFhNTBlODYwMDUxMTY1NWI0NzljNzZiMTQ5I2tleXMtMCIsIm1ldGFEaWdlc3QiOiJiNGE2ODVjMzQ0ZGViMjg1Y2IwMTFiYzhiNmI3Mjg3NzhmYmU0NmNhOWZhYTE4OGNlYTZkYmM5YzM2ZDNiZDFiIiwicHJpdmFjeSI6IlB1YmxpYyIsInNhbHQiOnsiYWN0aW9uIjoieDZQMG4iLCJhZ2UiOiIwIn0sInNpZ25hdHVyZVZhbHVlIjoiTUVVQ0lFWEJkd2tHRi85UXpkdDRPRzlHS2cyRUJEb1hFOTAySGNFdlVndXMvbTZ3QWlFQW1NU3lRS0F1SUZvYmI4cTNDWkJTRmdBczhZL09WdEMwNTN0VVJTRk5SREk9IiwidHlwZSI6IlNlY3AyNTZyMSIsInZjRGlnZXN0IjoiMmRkNWExZGMzMjQ2ODZjOTNhNWIxNTgyMDZkNWZlOGI5MzdhMWZlNjQ3NjA5ODNkNWY1OWIyMzcxY2RlYjA5NSJ9LCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIl19XX0=\\\",\\\"type\\\":\\\"Secp256r1\\\",\\\"verificationMethod\\\":\\\"did:tdid:c2:0x379106c7232aed1a50e8600511655b479c76b149#keys-0\\\",\\\"vpDigest\\\":\\\"6728c750e86b1b793878c2a281bbebbe8d08b06a9266c1588ef841c6b3768475\\\"},\\\"type\\\":[\\\"VerifiablePresentation\\\"],\\\"verifiableCredential\\\":[{\\\"context\\\":\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\",\\\"cptId\\\":1,\\\"credentialSubject\\\":{\\\"action\\\":\\\"deactiveDid\\\",\\\"age\\\":\\\"0x97505a486473470e50d137323137da85173f98e83440a3b8c1a73d6d24adb6fe\\\"},\\\"expirationDate\\\":\\\"2124-06-29T15:25:00+08:00\\\",\\\"id\\\":\\\"8cfe75f1e29d998edadb961e1410129e\\\",\\\"issuanceDate\\\":\\\"2024-01-08T10:37:54+08:00\\\",\\\"issuer\\\":\\\"did:tdid:c2:0x379106c7232aed1a50e8600511655b479c76b149\\\",\\\"proof\\\":{\\\"created\\\":\\\"2024-01-08T10:37:54+08:00\\\",\\\"creator\\\":\\\"did:tdid:c2:0x379106c7232aed1a50e8600511655b479c76b149#keys-0\\\",\\\"metaDigest\\\":\\\"b4a685c344deb285cb011bc8b6b728778fbe46ca9faa188cea6dbc9c36d3bd1b\\\",\\\"privacy\\\":\\\"Public\\\",\\\"salt\\\":{\\\"action\\\":\\\"x6P0n\\\",\\\"age\\\":\\\"0\\\"},\\\"signatureValue\\\":\\\"MEUCIEXBdwkGF/9Qzdt4OG9GKg2EBDoXE902HcEvUgus/m6wAiEAmMSyQKAuIFobb8q3CZBSFgAs8Y/OVtC053tURSFNRDI=\\\",\\\"type\\\":\\\"Secp256r1\\\",\\\"vcDigest\\\":\\\"2dd5a1dc324686c93a5b158206d5fe8b937a1fe64760983d5f59b2371cdeb095\\\"},\\\"type\\\":[\\\"VerifiableCredential\\\"]}]}\",\n \"RequestId\": \"52163044-3cd1-4ca9-8963-a36ac5554364\"\n }\n}",
16
16
  "title": "创建可验证表达"
17
17
  }
@@ -99,8 +99,8 @@
99
99
  "QueryAuthorityInfo": [
100
100
  {
101
101
  "document": "查询权威机构信息",
102
- "input": "POST / HTTP/1.1\nHost: tdid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryAuthorityInfo\n<公共请求参数>\n\n{\n \"Did\": \"did:tdid:w1:0xbbf1dee9e082e1a54dd3973beedc59ff7e452862\",\n \"DAPId\": 5,\n \"Name\": \"test\"\n}",
103
- "output": "{\n \"Response\": {\n \"RequestId\": \"3d5e7818-5027-44ca-bb03-68a9d5389bca\",\n \"Did\": \"did:tdid:w1:0xbbf1dee9e082e1a54dd3973beedc59ff7e452862\",\n \"Name\": \"test\",\n \"Status\": 1,\n \"Description\": \"test\",\n \"RecognizeTime\": \"2023-09-19 11:54:25\"\n }\n}",
102
+ "input": "POST / HTTP/1.1\nHost: tdid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryAuthorityInfo\n<公共请求参数>\n\n{\n \"Did\": \"did:tdid:w1:0xbbf1dee9e082e1a54dd3973beedc59ff7e452862\",\n \"DAPId\": 5,\n \"Name\": \"某教育学院\"\n}",
103
+ "output": "{\n \"Response\": {\n \"RequestId\": \"3d5e7818-5027-44ca-bb03-68a9d5389bca\",\n \"Did\": \"did:tdid:w1:0xbbf1dee9e082e1a54dd3973beedc59ff7e452862\",\n \"Name\": \"某教育学院\",\n \"Status\": 1,\n \"Description\": \"职业教育\",\n \"RecognizeTime\": \"2023-09-19 11:54:25\"\n }\n}",
104
104
  "title": "查询权威机构信息"
105
105
  }
106
106
  ],
@@ -115,7 +115,7 @@
115
115
  "SetTDidAttribute": [
116
116
  {
117
117
  "document": "设置DID的自定义属性",
118
- "input": "POST / HTTP/1.1\nHost: tdid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetTDidAttribute\n<公共请求参数>\n\n{\n \"Did\": \"did:tdid:w1:0x0d342759f20005df531c50f671d414661e381c01\",\n \"Attributes\": [\n {\n \"Key\": \"test\",\n \"Val\": \"test\"\n }\n ],\n \"DAPId\": 5\n}",
118
+ "input": "POST / HTTP/1.1\nHost: tdid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetTDidAttribute\n<公共请求参数>\n\n{\n \"Did\": \"did:tdid:w1:0x0d342759f20005df531c50f671d414661e381c01\",\n \"Attributes\": [\n {\n \"Key\": \"name\",\n \"Val\": \"张三\"\n }\n ],\n \"DAPId\": 5\n}",
119
119
  "output": "{\n \"Response\": {\n \"RequestId\": \"0f7de9d2-2a60-46b1-97c3-62331ddf12ec\",\n \"Transaction\": {\n \"TransactionHash\": \"17864b02e92bea49ca4707214f59ac99910fecf8bfa8434380bb62471a09e61a\"\n }\n }\n}",
120
120
  "title": "设置DID的自定义属性"
121
121
  }
@@ -139,7 +139,7 @@
139
139
  "VerifyPresentation": [
140
140
  {
141
141
  "document": "",
142
- "input": "POST / HTTP/1.1\nHost: tdid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VerifyPresentation\n<公共请求参数>\n\n{\n \"Did\": \"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8\",\n \"PresentationData\": \"{\\\"context\\\":[\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\"],\\\"holder\\\":\\\"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8\\\",\\\"proof\\\":{\\\"created\\\":\\\"2023-09-12T16:14:56+08:00\\\",\\\"nonce\\\":\\\"test\\\",\\\"signatureValue\\\":\\\"MEYCIQC4Wmf0NTlNF9BOjyynLasqWQJF4M34oIiemCa2Jl6+1wIhANqKc4/sWbuQmcpp7ilNrpfZQU4Cj0+VqcQcN+/jZH5u\\\",\\\"type\\\":\\\"Secp256r1\\\",\\\"verificationMethod\\\":\\\"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8#keys-0\\\"},\\\"type\\\":[\\\"VerifiablePresentation\\\"],\\\"verifiableCredential\\\":[{\\\"context\\\":\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\",\\\"cptId\\\":1,\\\"credentialSubject\\\":{\\\"action\\\":\\\"deactiveDid\\\",\\\"age\\\":\\\"0x7cc931132828080cac176a6bf266077bc963d3a8d4afacb147eb7a5fa9d38176\\\",\\\"ageCommitment\\\":\\\"/nQps1EGGKMJEEIZhlNu9oFZWTSe6bR5e2w71+/JSgE=\\\"},\\\"expirationDate\\\":\\\"2024-06-29T15:25:00+08:00\\\",\\\"id\\\":\\\"0971a8c6a1ff17d9b85abaab5e02c50d\\\",\\\"issuanceDate\\\":\\\"2023-09-12T15:50:52+08:00\\\",\\\"issuer\\\":\\\"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8\\\",\\\"proof\\\":{\\\"created\\\":\\\"2023-09-12T15:50:52+08:00\\\",\\\"creator\\\":\\\"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8#keys-0\\\",\\\"metaDigest\\\":\\\"da11a3571b4920ebdac1b73b03c696606a3b1c380e6502bcb30484d8240ae28d\\\",\\\"privacy\\\":\\\"Public\\\",\\\"salt\\\":{\\\"action\\\":\\\"0UU2V\\\",\\\"age\\\":\\\"0\\\",\\\"ageCommitment\\\":\\\"XiqAq\\\"},\\\"signatureValue\\\":\\\"MEQCIHGw37fwROCoqUEz9Rtw2CG3pQP6QYxe2byS45LIlPBmAiBrS93DNqRtVYKUq8dZ4ZUTSgt9Ajr9rzqLB3KZz9ADIg==\\\",\\\"type\\\":\\\"Secp256r1\\\",\\\"vcDigest\\\":\\\"230653978a8dc2c16f6acfa7bfb779a34d282fb7fd2eae5646c9e3ba95589344\\\"},\\\"type\\\":[\\\"VerifiableCredential\\\"]}]}\",\n \"DAPId\": 1,\n \"VerifyCode\": \"test\"\n}",
142
+ "input": "POST / HTTP/1.1\nHost: tdid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VerifyPresentation\n<公共请求参数>\n\n{\n \"Did\": \"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8\",\n \"PresentationData\": \"{\\\"context\\\":[\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\"],\\\"holder\\\":\\\"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8\\\",\\\"proof\\\":{\\\"created\\\":\\\"2023-09-12T16:14:56+08:00\\\",\\\"nonce\\\":\\\"test\\\",\\\"signatureValue\\\":\\\"MEYCIQC4Wmf0NTlNF9BOjyynLasqWQJF4M34oIiemCa2Jl6+1wIhANqKc4/sWbuQmcpp7ilNrpfZQU4Cj0+VqcQcN+/jZH5u\\\",\\\"type\\\":\\\"Secp256r1\\\",\\\"verificationMethod\\\":\\\"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8#keys-0\\\"},\\\"type\\\":[\\\"VerifiablePresentation\\\"],\\\"verifiableCredential\\\":[{\\\"context\\\":\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\",\\\"cptId\\\":1,\\\"credentialSubject\\\":{\\\"action\\\":\\\"deactiveDid\\\",\\\"age\\\":\\\"0x7cc931132828080cac176a6bf266077bc963d3a8d4afacb147eb7a5fa9d38176\\\",\\\"ageCommitment\\\":\\\"/nQps1EGGKMJEEIZhlNu9oFZWTSe6bR5e2w71+/JSgE=\\\"},\\\"expirationDate\\\":\\\"2024-06-29T15:25:00+08:00\\\",\\\"id\\\":\\\"0971a8c6a1ff17d9b85abaab5e02c50d\\\",\\\"issuanceDate\\\":\\\"2023-09-12T15:50:52+08:00\\\",\\\"issuer\\\":\\\"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8\\\",\\\"proof\\\":{\\\"created\\\":\\\"2023-09-12T15:50:52+08:00\\\",\\\"creator\\\":\\\"did:tdid:w1:0xc1f030ceeb858887f0cc400030d59534cf8098c8#keys-0\\\",\\\"metaDigest\\\":\\\"da11a3571b4920ebdac1b73b03c696606a3b1c380e6502bcb30484d8240ae28d\\\",\\\"privacy\\\":\\\"Public\\\",\\\"salt\\\":{\\\"action\\\":\\\"0UU2V\\\",\\\"age\\\":\\\"0\\\",\\\"ageCommitment\\\":\\\"XiqAq\\\"},\\\"signatureValue\\\":\\\"MEQCIHGw37fwROCoqUEz9Rtw2CG3pQP6QYxe2byS45LIlPBmAiBrS93DNqRtVYKUq8dZ4ZUTSgt9Ajr9rzqLB3KZz9ADIg==\\\",\\\"type\\\":\\\"Secp256r1\\\",\\\"vcDigest\\\":\\\"230653978a8dc2c16f6acfa7bfb779a34d282fb7fd2eae5646c9e3ba95589344\\\"},\\\"type\\\":[\\\"VerifiableCredential\\\"]}]}\",\n \"DAPId\": 1,\n \"VerifyCode\": \"1001\"\n}",
143
143
  "output": "{\n \"Response\": {\n \"Result\": true,\n \"VerifyCode\": 0,\n \"VerifyMessage\": \"success\",\n \"RequestId\": \"1b5c5ee5-a049-4137-8ca1-f4337a614d91\"\n }\n}",
144
144
  "title": "验证可验证凭证表达"
145
145
  }
@@ -1525,6 +1525,58 @@ def doDescribeTopics(args, parsed_globals):
1525
1525
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
1526
 
1527
1527
 
1528
+ def doModifyPublicNetworkSecurityPolicy(args, parsed_globals):
1529
+ g_param = parse_global_arg(parsed_globals)
1530
+
1531
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1532
+ cred = credential.CVMRoleCredential()
1533
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1534
+ cred = credential.STSAssumeRoleCredential(
1535
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1536
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1537
+ )
1538
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1539
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1540
+ else:
1541
+ cred = credential.Credential(
1542
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1543
+ )
1544
+ http_profile = HttpProfile(
1545
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1546
+ reqMethod="POST",
1547
+ endpoint=g_param[OptionsDefine.Endpoint],
1548
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1549
+ )
1550
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1551
+ if g_param[OptionsDefine.Language]:
1552
+ profile.language = g_param[OptionsDefine.Language]
1553
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1554
+ client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
1555
+ client._sdkVersion += ("_CLI_" + __version__)
1556
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1557
+ model = models.ModifyPublicNetworkSecurityPolicyRequest()
1558
+ model.from_json_string(json.dumps(args))
1559
+ start_time = time.time()
1560
+ while True:
1561
+ rsp = client.ModifyPublicNetworkSecurityPolicy(model)
1562
+ result = rsp.to_json_string()
1563
+ try:
1564
+ json_obj = json.loads(result)
1565
+ except TypeError as e:
1566
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1567
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1568
+ break
1569
+ cur_time = time.time()
1570
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1571
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1572
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1573
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1574
+ else:
1575
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1576
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1577
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1578
+
1579
+
1528
1580
  def doModifyRocketMQEnvironmentRole(args, parsed_globals):
1529
1581
  g_param = parse_global_arg(parsed_globals)
1530
1582
 
@@ -7545,6 +7597,7 @@ ACTION_MAP = {
7545
7597
  "AcknowledgeMessage": doAcknowledgeMessage,
7546
7598
  "CreateEnvironment": doCreateEnvironment,
7547
7599
  "DescribeTopics": doDescribeTopics,
7600
+ "ModifyPublicNetworkSecurityPolicy": doModifyPublicNetworkSecurityPolicy,
7548
7601
  "ModifyRocketMQEnvironmentRole": doModifyRocketMQEnvironmentRole,
7549
7602
  "ModifyRocketMQTopic": doModifyRocketMQTopic,
7550
7603
  "DescribeRocketMQTopicMsgs": doDescribeRocketMQTopicMsgs,
@@ -826,6 +826,13 @@
826
826
  "output": "ModifyPublicNetworkAccessPointResponse",
827
827
  "status": "online"
828
828
  },
829
+ "ModifyPublicNetworkSecurityPolicy": {
830
+ "document": "修改pulsar专业版公网安全策略",
831
+ "input": "ModifyPublicNetworkSecurityPolicyRequest",
832
+ "name": "修改公网安全策略",
833
+ "output": "ModifyPublicNetworkSecurityPolicyResponse",
834
+ "status": "online"
835
+ },
829
836
  "ModifyRabbitMQUser": {
830
837
  "document": "修改RabbitMQ的用户",
831
838
  "input": "ModifyRabbitMQUserRequest",
@@ -2113,7 +2120,7 @@
2113
2120
  "members": [
2114
2121
  {
2115
2122
  "disabled": false,
2116
- "document": "订阅名字,在单个地域同一帐号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。\n注意:此字段可能返回 null,表示取不到有效值。",
2123
+ "document": "订阅名字,在单个地域同一账号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。\n注意:此字段可能返回 null,表示取不到有效值。",
2117
2124
  "example": "sub",
2118
2125
  "member": "string",
2119
2126
  "name": "SubscriptionName",
@@ -13124,6 +13131,62 @@
13124
13131
  ],
13125
13132
  "type": "object"
13126
13133
  },
13134
+ "ModifyPublicNetworkSecurityPolicyRequest": {
13135
+ "document": "ModifyPublicNetworkSecurityPolicy请求参数结构体",
13136
+ "members": [
13137
+ {
13138
+ "disabled": false,
13139
+ "document": "集群id",
13140
+ "example": "pulsar-47emajuiaoam",
13141
+ "member": "string",
13142
+ "name": "InstanceId",
13143
+ "required": true,
13144
+ "type": "string"
13145
+ },
13146
+ {
13147
+ "disabled": false,
13148
+ "document": "策略列表",
13149
+ "example": "无",
13150
+ "member": "SecurityPolicy",
13151
+ "name": "PolicyList",
13152
+ "required": true,
13153
+ "type": "list"
13154
+ }
13155
+ ],
13156
+ "type": "object"
13157
+ },
13158
+ "ModifyPublicNetworkSecurityPolicyResponse": {
13159
+ "document": "ModifyPublicNetworkSecurityPolicy返回参数结构体",
13160
+ "members": [
13161
+ {
13162
+ "disabled": false,
13163
+ "document": "SUCCESS或者FAILURE",
13164
+ "example": "SUCCESS",
13165
+ "member": "string",
13166
+ "name": "ModifyResult",
13167
+ "output_required": false,
13168
+ "type": "string",
13169
+ "value_allowed_null": false
13170
+ },
13171
+ {
13172
+ "disabled": false,
13173
+ "document": "集群id",
13174
+ "example": "pulsar-47emajuiaoam",
13175
+ "member": "string",
13176
+ "name": "InstanceId",
13177
+ "output_required": false,
13178
+ "type": "string",
13179
+ "value_allowed_null": false
13180
+ },
13181
+ {
13182
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13183
+ "member": "string",
13184
+ "name": "RequestId",
13185
+ "type": "string"
13186
+ }
13187
+ ],
13188
+ "type": "object"
13189
+ },
13127
13190
  "ModifyRabbitMQUserRequest": {
13128
13191
  "document": "ModifyRabbitMQUser请求参数结构体",
13129
13192
  "members": [