@ucloud-sdks/ucloud-sdk-js 0.2.36 → 0.2.38
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.
|
@@ -205,7 +205,7 @@ export interface CreateAliasRequest {
|
|
|
205
205
|
*/
|
|
206
206
|
AliasName: string;
|
|
207
207
|
/**
|
|
208
|
-
* 密钥 ID
|
|
208
|
+
* 密钥 ID 或别名。
|
|
209
209
|
*/
|
|
210
210
|
KeyId: string;
|
|
211
211
|
/**
|
|
@@ -243,13 +243,13 @@ export interface CreateKeyRequest {
|
|
|
243
243
|
*/
|
|
244
244
|
KeyUsage?: string;
|
|
245
245
|
/**
|
|
246
|
-
* 密钥材料来源,默认 UCLOUD_KMS。当前仅支持 UCLOUD_KMS;EXTERNAL 为 BYOK 规划值,当前传入会返回
|
|
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?:
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
411
|
+
* 密钥资源长 ID
|
|
404
412
|
*/
|
|
405
413
|
KeyId: string;
|
|
406
414
|
/**
|
|
@@ -418,13 +426,13 @@ export interface DisableKeyResponse {
|
|
|
418
426
|
*/
|
|
419
427
|
export interface DisableKeyRotationRequest {
|
|
420
428
|
/**
|
|
421
|
-
* 密钥 ID
|
|
429
|
+
* 密钥 ID或别名。
|
|
422
430
|
*/
|
|
423
431
|
KeyId: string;
|
|
424
432
|
/**
|
|
425
433
|
* UKMS 实例资源 ID。
|
|
426
434
|
*/
|
|
427
|
-
ResourceId
|
|
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
|
-
*
|
|
447
|
+
* 密钥资源长 ID
|
|
440
448
|
*/
|
|
441
449
|
KeyId: string;
|
|
442
450
|
/**
|
|
@@ -476,7 +484,7 @@ export interface EnableKeyRotationResponse {
|
|
|
476
484
|
*/
|
|
477
485
|
export interface EncryptRequest {
|
|
478
486
|
/**
|
|
479
|
-
* 密钥资源长 ID
|
|
487
|
+
* 密钥资源长 ID 或别名。
|
|
480
488
|
*/
|
|
481
489
|
KeyId: string;
|
|
482
490
|
/**
|
|
@@ -624,7 +632,7 @@ export interface GenerateDataKeyPairWithoutPlaintextResponse {
|
|
|
624
632
|
*/
|
|
625
633
|
export interface GenerateDataKeyWithoutPlaintextRequest {
|
|
626
634
|
/**
|
|
627
|
-
* 密钥资源长 ID
|
|
635
|
+
* 密钥资源长 ID或别名。
|
|
628
636
|
*/
|
|
629
637
|
KeyId: string;
|
|
630
638
|
/**
|
|
@@ -710,7 +718,7 @@ export interface GenerateRandomResponse {
|
|
|
710
718
|
*/
|
|
711
719
|
export interface GetKeyRotationStatusRequest {
|
|
712
720
|
/**
|
|
713
|
-
* 密钥资源长 ID
|
|
721
|
+
* 密钥资源长 ID 或别名。
|
|
714
722
|
*/
|
|
715
723
|
KeyId: string;
|
|
716
724
|
/**
|
|
@@ -752,7 +760,7 @@ export interface GetKeyRotationStatusResponse {
|
|
|
752
760
|
*/
|
|
753
761
|
export interface GetPublicKeyRequest {
|
|
754
762
|
/**
|
|
755
|
-
* 密钥 ID
|
|
763
|
+
* 密钥 ID 或 别名。
|
|
756
764
|
*/
|
|
757
765
|
KeyId: string;
|
|
758
766
|
/**
|
|
@@ -910,7 +918,7 @@ export interface ListKeysResponse {
|
|
|
910
918
|
*/
|
|
911
919
|
KeyUsage: string[];
|
|
912
920
|
/**
|
|
913
|
-
* 密钥来源,由 Origin 派生。取值:
|
|
921
|
+
* 密钥来源,由 Origin 派生。取值:UCLOUD_KMS、EXTERNAL。当前 CreateKey 仅支持 UCLOUD_KMS。
|
|
914
922
|
*/
|
|
915
923
|
Origin: string;
|
|
916
924
|
/**
|
|
@@ -964,13 +972,13 @@ export interface ListKeysResponse {
|
|
|
964
972
|
*/
|
|
965
973
|
export interface RotateKeyOnDemandRequest {
|
|
966
974
|
/**
|
|
967
|
-
* 密钥 ID
|
|
975
|
+
* 密钥 ID 或别名。
|
|
968
976
|
*/
|
|
969
977
|
KeyId: string;
|
|
970
978
|
/**
|
|
971
979
|
* UKMS 实例资源 ID。
|
|
972
980
|
*/
|
|
973
|
-
ResourceId
|
|
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
|
-
*
|
|
997
|
+
* 密钥资源长 ID
|
|
990
998
|
*/
|
|
991
999
|
KeyId: string;
|
|
992
1000
|
/**
|
|
@@ -1008,7 +1016,7 @@ export interface ScheduleKeyDeletionResponse {
|
|
|
1008
1016
|
*/
|
|
1009
1017
|
export interface SignRequest {
|
|
1010
1018
|
/**
|
|
1011
|
-
* 密钥资源长 ID
|
|
1019
|
+
* 密钥资源长 ID 或别名。
|
|
1012
1020
|
*/
|
|
1013
1021
|
KeyId: string;
|
|
1014
1022
|
/**
|
|
@@ -1054,7 +1062,7 @@ export interface UpdateAliasRequest {
|
|
|
1054
1062
|
*/
|
|
1055
1063
|
AliasName: string;
|
|
1056
1064
|
/**
|
|
1057
|
-
* 密钥 ID
|
|
1065
|
+
* 密钥 ID 或别名。
|
|
1058
1066
|
*/
|
|
1059
1067
|
KeyId: string;
|
|
1060
1068
|
/**
|
|
@@ -1072,7 +1080,7 @@ export interface UpdateAliasResponse {
|
|
|
1072
1080
|
*/
|
|
1073
1081
|
export interface UpdateKeyDescriptionRequest {
|
|
1074
1082
|
/**
|
|
1075
|
-
* 密钥资源长 ID
|
|
1083
|
+
* 密钥资源长 ID或别名。
|
|
1076
1084
|
*/
|
|
1077
1085
|
KeyId: string;
|
|
1078
1086
|
/**
|
|
@@ -1102,7 +1110,7 @@ export interface UpdateKeyDescriptionResponse {
|
|
|
1102
1110
|
*/
|
|
1103
1111
|
export interface VerifyRequest {
|
|
1104
1112
|
/**
|
|
1105
|
-
* 密钥 ID
|
|
1113
|
+
* 密钥 ID或别名。
|
|
1106
1114
|
*/
|
|
1107
1115
|
KeyId: string;
|
|
1108
1116
|
/**
|
|
@@ -69,6 +69,12 @@ export default class ULogServiceClient extends Client {
|
|
|
69
69
|
* See also: https://docs.ucloud.cn/api/ulogservice-api/describe_u_log_service_machine_group
|
|
70
70
|
*/
|
|
71
71
|
describeULogServiceMachineGroup(request?: DescribeULogServiceMachineGroupRequest): Promise<DescribeULogServiceMachineGroupResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* GetULogServiceTopicField - 获取ULogService主题索引字段
|
|
74
|
+
*
|
|
75
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/get_u_log_service_topic_field
|
|
76
|
+
*/
|
|
77
|
+
getULogServiceTopicField(request?: GetULogServiceTopicFieldRequest): Promise<GetULogServiceTopicFieldResponse>;
|
|
72
78
|
/**
|
|
73
79
|
* ListULogServiceCollectConf - 查询日志主题采集配置列表
|
|
74
80
|
*
|
|
@@ -111,6 +117,12 @@ export default class ULogServiceClient extends Client {
|
|
|
111
117
|
* See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_machine_group
|
|
112
118
|
*/
|
|
113
119
|
updateULogServiceMachineGroup(request?: UpdateULogServiceMachineGroupRequest): Promise<UpdateULogServiceMachineGroupResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* UpdateULogServiceTopicField - 更新ULogService主题索引字段
|
|
122
|
+
*
|
|
123
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_topic_field
|
|
124
|
+
*/
|
|
125
|
+
updateULogServiceTopicField(request?: UpdateULogServiceTopicFieldRequest): Promise<UpdateULogServiceTopicFieldResponse>;
|
|
114
126
|
}
|
|
115
127
|
/**
|
|
116
128
|
* BindULogServiceGroupToCollectConf - 日志主题采集配置绑定机器组
|
|
@@ -439,6 +451,41 @@ export interface DescribeULogServiceMachineGroupResponse {
|
|
|
439
451
|
Ips?: string;
|
|
440
452
|
};
|
|
441
453
|
}
|
|
454
|
+
/**
|
|
455
|
+
* GetULogServiceTopicField - 获取ULogService主题索引字段
|
|
456
|
+
*/
|
|
457
|
+
export interface GetULogServiceTopicFieldRequest {
|
|
458
|
+
/**
|
|
459
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
460
|
+
*/
|
|
461
|
+
Zone: string;
|
|
462
|
+
/**
|
|
463
|
+
* 主题Id
|
|
464
|
+
*/
|
|
465
|
+
TopicId: string;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* GetULogServiceTopicField - 获取ULogService主题索引字段
|
|
469
|
+
*/
|
|
470
|
+
export interface GetULogServiceTopicFieldResponse {
|
|
471
|
+
/**
|
|
472
|
+
* 索引字段数据,是一个数组
|
|
473
|
+
*/
|
|
474
|
+
Data: {
|
|
475
|
+
/**
|
|
476
|
+
* 索引名称
|
|
477
|
+
*/
|
|
478
|
+
FieldName?: string;
|
|
479
|
+
/**
|
|
480
|
+
* 索引类型,可取的值有: long, double, text
|
|
481
|
+
*/
|
|
482
|
+
FieldType?: string;
|
|
483
|
+
/**
|
|
484
|
+
* 是否保留字段,true表示保留字段,false表示非保留字段
|
|
485
|
+
*/
|
|
486
|
+
IsReserved?: boolean;
|
|
487
|
+
}[];
|
|
488
|
+
}
|
|
442
489
|
/**
|
|
443
490
|
* ListULogServiceCollectConf - 查询日志主题采集配置列表
|
|
444
491
|
*/
|
|
@@ -915,3 +962,34 @@ export interface UpdateULogServiceMachineGroupRequest {
|
|
|
915
962
|
*/
|
|
916
963
|
export interface UpdateULogServiceMachineGroupResponse {
|
|
917
964
|
}
|
|
965
|
+
/**
|
|
966
|
+
* UpdateULogServiceTopicField - 更新ULogService主题索引字段
|
|
967
|
+
*/
|
|
968
|
+
export interface UpdateULogServiceTopicFieldRequest {
|
|
969
|
+
/**
|
|
970
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
971
|
+
*/
|
|
972
|
+
Zone: string;
|
|
973
|
+
/**
|
|
974
|
+
* 主题Id
|
|
975
|
+
*/
|
|
976
|
+
TopicId: string;
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
*/
|
|
980
|
+
FieldInfos?: {
|
|
981
|
+
/**
|
|
982
|
+
* 字段名称支持字母、横线(-)、斜杠(/)、特殊符号(@)、数字、下划线(_)和点(.),且不能以下划线开头,长度不超过255个字符
|
|
983
|
+
*/
|
|
984
|
+
FieldName?: string;
|
|
985
|
+
/**
|
|
986
|
+
* 主题字段类型(text、long、double)
|
|
987
|
+
*/
|
|
988
|
+
FieldType?: string;
|
|
989
|
+
}[];
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* UpdateULogServiceTopicField - 更新ULogService主题索引字段
|
|
993
|
+
*/
|
|
994
|
+
export interface UpdateULogServiceTopicFieldResponse {
|
|
995
|
+
}
|
|
@@ -102,6 +102,15 @@ class ULogServiceClient extends client_1.default {
|
|
|
102
102
|
const args = Object.assign({ Action: 'DescribeULogServiceMachineGroup' }, (request || {}));
|
|
103
103
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* GetULogServiceTopicField - 获取ULogService主题索引字段
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/get_u_log_service_topic_field
|
|
109
|
+
*/
|
|
110
|
+
getULogServiceTopicField(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'GetULogServiceTopicField' }, (request || {}));
|
|
112
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
|
+
}
|
|
105
114
|
/**
|
|
106
115
|
* ListULogServiceCollectConf - 查询日志主题采集配置列表
|
|
107
116
|
*
|
|
@@ -165,5 +174,14 @@ class ULogServiceClient extends client_1.default {
|
|
|
165
174
|
const args = Object.assign({ Action: 'UpdateULogServiceMachineGroup' }, (request || {}));
|
|
166
175
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
167
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* UpdateULogServiceTopicField - 更新ULogService主题索引字段
|
|
179
|
+
*
|
|
180
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_topic_field
|
|
181
|
+
*/
|
|
182
|
+
updateULogServiceTopicField(request) {
|
|
183
|
+
const args = Object.assign({ Action: 'UpdateULogServiceTopicField' }, (request || {}));
|
|
184
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
185
|
+
}
|
|
168
186
|
}
|
|
169
187
|
exports.default = ULogServiceClient;
|