@ucloud-sdks/ucloud-sdk-js 0.2.35 → 0.2.37

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.
@@ -57,6 +57,15 @@ class UK8SClient extends client_1.default {
57
57
  const args = Object.assign({ Action: 'CreateUK8SClusterV2' }, (request || {}));
58
58
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
59
59
  }
60
+ /**
61
+ * CreateUK8SULSConfig - 创建 LogConfig 自定义资源,用于声明式地定义日志采集规则
62
+ *
63
+ * See also: https://docs.ucloud.cn/api/uk8s-api/create_uk8s_uls_config
64
+ */
65
+ createUK8SULSConfig(request) {
66
+ const args = Object.assign({ Action: 'CreateUK8SULSConfig' }, (request || {}));
67
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
68
+ }
60
69
  /**
61
70
  * DelUK8SCluster - 删除UK8S集群
62
71
  *
@@ -75,6 +84,15 @@ class UK8SClient extends client_1.default {
75
84
  const args = Object.assign({ Action: 'DelUK8SClusterNodeV2' }, (request || {}));
76
85
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
77
86
  }
87
+ /**
88
+ * DeleteUK8SULSConfig - 删除指定UK8S集群的日志采集规则。
89
+ *
90
+ * See also: https://docs.ucloud.cn/api/uk8s-api/delete_uk8s_uls_config
91
+ */
92
+ deleteUK8SULSConfig(request) {
93
+ const args = Object.assign({ Action: 'DeleteUK8SULSConfig' }, (request || {}));
94
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
95
+ }
78
96
  /**
79
97
  * DescribeUK8SCluster - 获取集群信息
80
98
  *
@@ -147,6 +165,15 @@ class UK8SClient extends client_1.default {
147
165
  const args = Object.assign({ Action: 'ListUK8SNodeGroup' }, (request || {}));
148
166
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
149
167
  }
168
+ /**
169
+ * ListUK8SULSConfig - 查询 UK8S 的 ULSConfig
170
+ *
171
+ * See also: https://docs.ucloud.cn/api/uk8s-api/list_uk8s_uls_config
172
+ */
173
+ listUK8SULSConfig(request) {
174
+ const args = Object.assign({ Action: 'ListUK8SULSConfig' }, (request || {}));
175
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
176
+ }
150
177
  /**
151
178
  * RemoveUK8SNodeGroup - 删除UK8S节点池
152
179
  *
@@ -156,5 +183,14 @@ class UK8SClient extends client_1.default {
156
183
  const args = Object.assign({ Action: 'RemoveUK8SNodeGroup' }, (request || {}));
157
184
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
158
185
  }
186
+ /**
187
+ * UpdateUK8SULSConfig - 更新指定UK8S集群的日志采集规则。
188
+ *
189
+ * See also: https://docs.ucloud.cn/api/uk8s-api/update_uk8s_uls_config
190
+ */
191
+ updateUK8SULSConfig(request) {
192
+ const args = Object.assign({ Action: 'UpdateUK8SULSConfig' }, (request || {}));
193
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
194
+ }
159
195
  }
160
196
  exports.default = UK8SClient;
@@ -243,13 +243,13 @@ export interface CreateKeyRequest {
243
243
  */
244
244
  KeyUsage?: string;
245
245
  /**
246
- * 密钥材料来源,默认 UCLOUD_KMS。当前仅支持 UCLOUD_KMS;EXTERNAL 为 BYOK 规划值,当前传入会返回 100660
246
+ * 密钥材料来源,默认 UCLOUD_KMS。当前仅支持 UCLOUD_KMS;EXTERNAL 为 BYOK 规划值,当前传入会返回 1230
247
247
  */
248
248
  Origin?: string;
249
249
  /**
250
250
  * 是否开启删除保护。可选值:true、false;默认 false。
251
251
  */
252
- DeletionProtection?: string;
252
+ DeletionProtection?: boolean;
253
253
  }
254
254
  /**
255
255
  * CreateKey - 创建密钥。
@@ -281,7 +281,7 @@ export interface DecryptRequest {
281
281
  */
282
282
  EncryptionContext?: string;
283
283
  /**
284
- * 解密算法。可选值:SYMMETRIC_DEFAULT、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256;非对称密钥解密时必填或使用默认 RSAES_OAEP_SHA_256。
284
+ * 解密算法。可选值:SYMMETRIC_DEFAULT、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256;非对称密钥解密时必填。
285
285
  */
286
286
  EncryptionAlgorithm?: string;
287
287
  }
@@ -342,7 +342,7 @@ export interface DescribeKeyResponse {
342
342
  */
343
343
  KeyMetadata: {
344
344
  /**
345
- * 密钥所属项目的对外别名,格式为 org-xxx。该值由项目数字 ID 解析得到,可能因项目别名查询失败而为空。
345
+ * 密钥所属项目ID
346
346
  */
347
347
  ProjectId?: string;
348
348
  /**
@@ -393,6 +393,14 @@ export interface DescribeKeyResponse {
393
393
  * 计划删除时间,Unix 时间戳。
394
394
  */
395
395
  DeletionDate?: number;
396
+ /**
397
+ * ucs:ukms:{Region}:{CompanyId}:key/{KeyId}
398
+ */
399
+ Arn?: string;
400
+ /**
401
+ * 所属组织数字 ID
402
+ */
403
+ OrganizationId?: number;
396
404
  };
397
405
  }
398
406
  /**
@@ -400,7 +408,7 @@ export interface DescribeKeyResponse {
400
408
  */
401
409
  export interface DisableKeyRequest {
402
410
  /**
403
- * 密钥 DB 数字 ID
411
+ * 密钥资源长 ID
404
412
  */
405
413
  KeyId: string;
406
414
  /**
@@ -424,7 +432,7 @@ export interface DisableKeyRotationRequest {
424
432
  /**
425
433
  * UKMS 实例资源 ID。
426
434
  */
427
- ResourceId?: string;
435
+ ResourceId: string;
428
436
  }
429
437
  /**
430
438
  * DisableKeyRotation - 关闭密钥自动轮转。
@@ -436,7 +444,7 @@ export interface DisableKeyRotationResponse {
436
444
  */
437
445
  export interface EnableKeyRequest {
438
446
  /**
439
- * 密钥 DB 数字 ID
447
+ * 密钥资源长 ID
440
448
  */
441
449
  KeyId: string;
442
450
  /**
@@ -910,7 +918,7 @@ export interface ListKeysResponse {
910
918
  */
911
919
  KeyUsage: string[];
912
920
  /**
913
- * 密钥来源,由 Origin 派生。取值:ucloudimport。当前 CreateKey 仅支持 ucloud
921
+ * 密钥来源,由 Origin 派生。取值:UCLOUD_KMSEXTERNAL。当前 CreateKey 仅支持 UCLOUD_KMS
914
922
  */
915
923
  Origin: string;
916
924
  /**
@@ -970,7 +978,7 @@ export interface RotateKeyOnDemandRequest {
970
978
  /**
971
979
  * UKMS 实例资源 ID。
972
980
  */
973
- ResourceId?: string;
981
+ ResourceId: string;
974
982
  }
975
983
  /**
976
984
  * RotateKeyOnDemand - 立即触发一次密钥轮转。
@@ -986,7 +994,7 @@ export interface RotateKeyOnDemandResponse {
986
994
  */
987
995
  export interface ScheduleKeyDeletionRequest {
988
996
  /**
989
- * 密钥 DB 数字 ID
997
+ * 密钥资源长 ID
990
998
  */
991
999
  KeyId: string;
992
1000
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.35",
4
+ "version": "0.2.37",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,