tencentcloud-sdk-nodejs-intl-en 3.0.1390 → 3.0.1392

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.
@@ -16,27 +16,42 @@
16
16
  */
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
- const ModifyGlossaryEntriesRequest = models.ModifyGlossaryEntriesRequest;
19
+ const GlossaryItem = models.GlossaryItem;
20
+ const BindingItem = models.BindingItem;
21
+ const GlossaryEntryInput = models.GlossaryEntryInput;
22
+ const DeleteGlossaryEntryInput = models.DeleteGlossaryEntryInput;
23
+ const GlossaryEntryItem = models.GlossaryEntryItem;
24
+ const DeleteGlossaryResponse = models.DeleteGlossaryResponse;
25
+ const QuotaInfo = models.QuotaInfo;
26
+ const DeleteGlossaryEntriesResponse = models.DeleteGlossaryEntriesResponse;
27
+ const DescribeApiKeyListResponse = models.DescribeApiKeyListResponse;
28
+ const ModifyApiKeyInfoResponse = models.ModifyApiKeyInfoResponse;
29
+ const DescribeApiKeyListRequest = models.DescribeApiKeyListRequest;
20
30
  const CreateGlossaryRequest = models.CreateGlossaryRequest;
21
31
  const DescribeGlossaryEntriesResponse = models.DescribeGlossaryEntriesResponse;
22
32
  const DeleteGlossaryRequest = models.DeleteGlossaryRequest;
23
33
  const DescribeGlossaryEntriesRequest = models.DescribeGlossaryEntriesRequest;
24
- const DescribeGlossariesRequest = models.DescribeGlossariesRequest;
25
- const RequestFilter = models.RequestFilter;
26
34
  const DeleteGlossaryEntriesRequest = models.DeleteGlossaryEntriesRequest;
27
35
  const CreateGlossaryEntriesResponse = models.CreateGlossaryEntriesResponse;
28
- const DeleteGlossaryEntryInput = models.DeleteGlossaryEntryInput;
29
- const GlossaryEntryItem = models.GlossaryEntryItem;
30
- const DeleteGlossaryResponse = models.DeleteGlossaryResponse;
31
- const CreateGlossaryEntriesRequest = models.CreateGlossaryEntriesRequest;
32
- const RequestSort = models.RequestSort;
33
- const ModifyGlossaryEntriesResponse = models.ModifyGlossaryEntriesResponse;
36
+ const DeleteApiKeyResponse = models.DeleteApiKeyResponse;
34
37
  const ModifyGlossaryEntryInput = models.ModifyGlossaryEntryInput;
35
- const DeleteGlossaryEntriesResponse = models.DeleteGlossaryEntriesResponse;
36
- const DescribeGlossariesResponse = models.DescribeGlossariesResponse;
37
- const GlossaryItem = models.GlossaryItem;
38
- const GlossaryEntryInput = models.GlossaryEntryInput;
38
+ const ModifyApiKeyInfoRequest = models.ModifyApiKeyInfoRequest;
39
39
  const CreateGlossaryResponse = models.CreateGlossaryResponse;
40
+ const ModifyGlossaryEntriesRequest = models.ModifyGlossaryEntriesRequest;
41
+ const DescribeGlossariesRequest = models.DescribeGlossariesRequest;
42
+ const DescribeApiKeyRequest = models.DescribeApiKeyRequest;
43
+ const ModifyApiKeyStatusRequest = models.ModifyApiKeyStatusRequest;
44
+ const CreateGlossaryEntriesRequest = models.CreateGlossaryEntriesRequest;
45
+ const ApiKeyDetail = models.ApiKeyDetail;
46
+ const DescribeGlossariesResponse = models.DescribeGlossariesResponse;
47
+ const ModifyApiKeyStatusResponse = models.ModifyApiKeyStatusResponse;
48
+ const CreateApiKeyResponse = models.CreateApiKeyResponse;
49
+ const DeleteApiKeyRequest = models.DeleteApiKeyRequest;
50
+ const RequestFilter = models.RequestFilter;
51
+ const ModifyGlossaryEntriesResponse = models.ModifyGlossaryEntriesResponse;
52
+ const RequestSort = models.RequestSort;
53
+ const DescribeApiKeyResponse = models.DescribeApiKeyResponse;
54
+ const CreateApiKeyRequest = models.CreateApiKeyRequest;
40
55
 
41
56
 
42
57
  /**
@@ -49,6 +64,19 @@ class TokenhubClient extends AbstractClient {
49
64
  super("tokenhub.intl.tencentcloudapi.com", "2026-03-22", credential, region, profile);
50
65
  }
51
66
 
67
+ /**
68
+ * Query API key list.
69
+
70
+ Query the API key list of the current user with key values in masking display. Support pagination, filtering, and sorting.
71
+ * @param {DescribeApiKeyListRequest} req
72
+ * @param {function(string, DescribeApiKeyListResponse):void} cb
73
+ * @public
74
+ */
75
+ DescribeApiKeyList(req, cb) {
76
+ let resp = new DescribeApiKeyListResponse();
77
+ this.request("DescribeApiKeyList", req, resp, cb);
78
+ }
79
+
52
80
  /**
53
81
  * Delete terminology entries in batches.
54
82
 
@@ -62,6 +90,17 @@ Delete terminology entries in batches under the specified Termbase. You can dele
62
90
  this.request("DeleteGlossaryEntries", req, resp, cb);
63
91
  }
64
92
 
93
+ /**
94
+ * This API is used to enable or disable the status of an api key.
95
+ * @param {ModifyApiKeyStatusRequest} req
96
+ * @param {function(string, ModifyApiKeyStatusResponse):void} cb
97
+ * @public
98
+ */
99
+ ModifyApiKeyStatus(req, cb) {
100
+ let resp = new ModifyApiKeyStatusResponse();
101
+ this.request("ModifyApiKeyStatus", req, resp, cb);
102
+ }
103
+
65
104
  /**
66
105
  * Create terminology entries in batches.
67
106
 
@@ -89,16 +128,53 @@ This API is used to batch modify terminology entries in a designated Termbase. Y
89
128
  }
90
129
 
91
130
  /**
92
- * Query the terminology repository list.
131
+ * Query the terminology entry list.
93
132
 
94
- Query the Termbase list under this application. Support paginate, filter, and sort.
95
- * @param {DescribeGlossariesRequest} req
96
- * @param {function(string, DescribeGlossariesResponse):void} cb
133
+ Query specified entries in a Termbase. Support pagination.
134
+ * @param {DescribeGlossaryEntriesRequest} req
135
+ * @param {function(string, DescribeGlossaryEntriesResponse):void} cb
97
136
  * @public
98
137
  */
99
- DescribeGlossaries(req, cb) {
100
- let resp = new DescribeGlossariesResponse();
101
- this.request("DescribeGlossaries", req, resp, cb);
138
+ DescribeGlossaryEntries(req, cb) {
139
+ let resp = new DescribeGlossaryEntriesResponse();
140
+ this.request("DescribeGlossaryEntries", req, resp, cb);
141
+ }
142
+
143
+ /**
144
+ * This API is used to query API Key details based on API Key ID or key value, and return the plaintext key. At least one of ApiKeyId and ApiKey must be input, with priority given to ApiKeyId.
145
+ * @param {DescribeApiKeyRequest} req
146
+ * @param {function(string, DescribeApiKeyResponse):void} cb
147
+ * @public
148
+ */
149
+ DescribeApiKey(req, cb) {
150
+ let resp = new DescribeApiKeyResponse();
151
+ this.request("DescribeApiKey", req, resp, cb);
152
+ }
153
+
154
+ /**
155
+ * Refresh API key information.
156
+
157
+ This API is used to update the remark information, IP allowlist and Token quota of an API key (recommended to use QuotaDesired parameter for quota modification). Passing no optional parameters means no modification.
158
+ * @param {ModifyApiKeyInfoRequest} req
159
+ * @param {function(string, ModifyApiKeyInfoResponse):void} cb
160
+ * @public
161
+ */
162
+ ModifyApiKeyInfo(req, cb) {
163
+ let resp = new ModifyApiKeyInfoResponse();
164
+ this.request("ModifyApiKeyInfo", req, resp, cb);
165
+ }
166
+
167
+ /**
168
+ * Create an API key.
169
+
170
+ Create a new API key. Upon successful creation, return the API Key ID. Specify the platform kind, binding method, and initial state.
171
+ * @param {CreateApiKeyRequest} req
172
+ * @param {function(string, CreateApiKeyResponse):void} cb
173
+ * @public
174
+ */
175
+ CreateApiKey(req, cb) {
176
+ let resp = new CreateApiKeyResponse();
177
+ this.request("CreateApiKey", req, resp, cb);
102
178
  }
103
179
 
104
180
  /**
@@ -128,16 +204,27 @@ This API is used to delete specified Termbase and ALL terminology entries under
128
204
  }
129
205
 
130
206
  /**
131
- * Query the terminology entry list.
207
+ * This API is used to delete specified api keys and clean up associated model binding relationships.
208
+ * @param {DeleteApiKeyRequest} req
209
+ * @param {function(string, DeleteApiKeyResponse):void} cb
210
+ * @public
211
+ */
212
+ DeleteApiKey(req, cb) {
213
+ let resp = new DeleteApiKeyResponse();
214
+ this.request("DeleteApiKey", req, resp, cb);
215
+ }
132
216
 
133
- Query specified entries in a Termbase. Support pagination.
134
- * @param {DescribeGlossaryEntriesRequest} req
135
- * @param {function(string, DescribeGlossaryEntriesResponse):void} cb
217
+ /**
218
+ * Query the terminology repository list.
219
+
220
+ Query the Termbase list under this application. Support paginate, filter, and sort.
221
+ * @param {DescribeGlossariesRequest} req
222
+ * @param {function(string, DescribeGlossariesResponse):void} cb
136
223
  * @public
137
224
  */
138
- DescribeGlossaryEntries(req, cb) {
139
- let resp = new DescribeGlossaryEntriesResponse();
140
- this.request("DescribeGlossaryEntries", req, resp, cb);
225
+ DescribeGlossaries(req, cb) {
226
+ let resp = new DescribeGlossariesResponse();
227
+ this.request("DescribeGlossaries", req, resp, cb);
141
228
  }
142
229
 
143
230