@alicloud/elasticsearch20170613 1.1.3 → 1.1.4
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.
- package/dist/client.d.ts +111 -2
- package/dist/client.js +216 -6
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +285 -8
package/dist/client.d.ts
CHANGED
|
@@ -19,6 +19,61 @@ export declare class ClientNodeConfiguration extends $tea.Model {
|
|
|
19
19
|
[key: string]: any;
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
+
export declare class CollectorDeployMachine extends $tea.Model {
|
|
23
|
+
configType?: string;
|
|
24
|
+
groupId?: string;
|
|
25
|
+
instanceId?: string;
|
|
26
|
+
machines?: CollectorDeployMachineMachines[];
|
|
27
|
+
successPodsCount?: string;
|
|
28
|
+
totalPodsCount?: string;
|
|
29
|
+
type?: string;
|
|
30
|
+
static names(): {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
static types(): {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
};
|
|
36
|
+
constructor(map?: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export declare class CollectorKibanaInstance extends $tea.Model {
|
|
41
|
+
configType?: string;
|
|
42
|
+
host?: string;
|
|
43
|
+
instanceId?: string;
|
|
44
|
+
kibanaHost?: string;
|
|
45
|
+
password?: string;
|
|
46
|
+
protocol?: string;
|
|
47
|
+
userName?: string;
|
|
48
|
+
static names(): {
|
|
49
|
+
[key: string]: string;
|
|
50
|
+
};
|
|
51
|
+
static types(): {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
};
|
|
54
|
+
constructor(map?: {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
export declare class CollectorTargetInstance extends $tea.Model {
|
|
59
|
+
configType?: string;
|
|
60
|
+
enableMonitoring?: boolean;
|
|
61
|
+
hosts?: string[];
|
|
62
|
+
instanceId?: string;
|
|
63
|
+
instanceType?: string;
|
|
64
|
+
password?: string;
|
|
65
|
+
protocol?: string;
|
|
66
|
+
userName?: string;
|
|
67
|
+
static names(): {
|
|
68
|
+
[key: string]: string;
|
|
69
|
+
};
|
|
70
|
+
static types(): {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
};
|
|
73
|
+
constructor(map?: {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
22
77
|
export declare class DictInfo extends $tea.Model {
|
|
23
78
|
fileSize?: number;
|
|
24
79
|
name?: string;
|
|
@@ -733,7 +788,16 @@ export declare class CloseManagedIndexResponse extends $tea.Model {
|
|
|
733
788
|
});
|
|
734
789
|
}
|
|
735
790
|
export declare class CreateCollectorRequest extends $tea.Model {
|
|
736
|
-
|
|
791
|
+
collectorPaths?: string[];
|
|
792
|
+
configs?: CreateCollectorRequestConfigs[];
|
|
793
|
+
dryRun?: boolean;
|
|
794
|
+
extendConfigs?: {
|
|
795
|
+
[key: string]: any;
|
|
796
|
+
}[];
|
|
797
|
+
name?: string;
|
|
798
|
+
resType?: string;
|
|
799
|
+
resVersion?: string;
|
|
800
|
+
vpcId?: string;
|
|
737
801
|
clientToken?: string;
|
|
738
802
|
static names(): {
|
|
739
803
|
[key: string]: string;
|
|
@@ -946,7 +1010,12 @@ export declare class CreateILMPolicyResponse extends $tea.Model {
|
|
|
946
1010
|
}
|
|
947
1011
|
export declare class CreateIndexTemplateRequest extends $tea.Model {
|
|
948
1012
|
clientToken?: string;
|
|
949
|
-
|
|
1013
|
+
dataStream?: boolean;
|
|
1014
|
+
ilmPolicy?: string;
|
|
1015
|
+
indexPatterns?: string[];
|
|
1016
|
+
indexTemplate?: string;
|
|
1017
|
+
priority?: number;
|
|
1018
|
+
template?: CreateIndexTemplateRequestTemplate;
|
|
950
1019
|
static names(): {
|
|
951
1020
|
[key: string]: string;
|
|
952
1021
|
};
|
|
@@ -8168,6 +8237,19 @@ export declare class CreateInstanceResponse extends $tea.Model {
|
|
|
8168
8237
|
[key: string]: any;
|
|
8169
8238
|
});
|
|
8170
8239
|
}
|
|
8240
|
+
export declare class CollectorDeployMachineMachines extends $tea.Model {
|
|
8241
|
+
agentStatus?: string;
|
|
8242
|
+
instanceId?: string;
|
|
8243
|
+
static names(): {
|
|
8244
|
+
[key: string]: string;
|
|
8245
|
+
};
|
|
8246
|
+
static types(): {
|
|
8247
|
+
[key: string]: any;
|
|
8248
|
+
};
|
|
8249
|
+
constructor(map?: {
|
|
8250
|
+
[key: string]: any;
|
|
8251
|
+
});
|
|
8252
|
+
}
|
|
8171
8253
|
export declare class ElasticsearchAdvancedSetting extends $tea.Model {
|
|
8172
8254
|
gcName?: string;
|
|
8173
8255
|
static names(): {
|
|
@@ -8329,6 +8411,19 @@ export declare class CapacityPlanResponseBodyResult extends $tea.Model {
|
|
|
8329
8411
|
[key: string]: any;
|
|
8330
8412
|
});
|
|
8331
8413
|
}
|
|
8414
|
+
export declare class CreateCollectorRequestConfigs extends $tea.Model {
|
|
8415
|
+
content?: string;
|
|
8416
|
+
fileName?: string;
|
|
8417
|
+
static names(): {
|
|
8418
|
+
[key: string]: string;
|
|
8419
|
+
};
|
|
8420
|
+
static types(): {
|
|
8421
|
+
[key: string]: any;
|
|
8422
|
+
};
|
|
8423
|
+
constructor(map?: {
|
|
8424
|
+
[key: string]: any;
|
|
8425
|
+
});
|
|
8426
|
+
}
|
|
8332
8427
|
export declare class CreateCollectorResponseBodyResult extends $tea.Model {
|
|
8333
8428
|
resId?: string;
|
|
8334
8429
|
static names(): {
|
|
@@ -8493,6 +8588,20 @@ export declare class CreateDataTasksResponseBodyResult extends $tea.Model {
|
|
|
8493
8588
|
[key: string]: any;
|
|
8494
8589
|
});
|
|
8495
8590
|
}
|
|
8591
|
+
export declare class CreateIndexTemplateRequestTemplate extends $tea.Model {
|
|
8592
|
+
aliases?: string;
|
|
8593
|
+
mappings?: string;
|
|
8594
|
+
settings?: string;
|
|
8595
|
+
static names(): {
|
|
8596
|
+
[key: string]: string;
|
|
8597
|
+
};
|
|
8598
|
+
static types(): {
|
|
8599
|
+
[key: string]: any;
|
|
8600
|
+
};
|
|
8601
|
+
constructor(map?: {
|
|
8602
|
+
[key: string]: any;
|
|
8603
|
+
});
|
|
8604
|
+
}
|
|
8496
8605
|
export declare class CreateLogstashRequestNetworkConfig extends $tea.Model {
|
|
8497
8606
|
type?: string;
|
|
8498
8607
|
vpcId?: string;
|
package/dist/client.js
CHANGED
|
@@ -41,6 +41,92 @@ class ClientNodeConfiguration extends $tea.Model {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.ClientNodeConfiguration = ClientNodeConfiguration;
|
|
44
|
+
class CollectorDeployMachine extends $tea.Model {
|
|
45
|
+
constructor(map) {
|
|
46
|
+
super(map);
|
|
47
|
+
}
|
|
48
|
+
static names() {
|
|
49
|
+
return {
|
|
50
|
+
configType: 'configType',
|
|
51
|
+
groupId: 'groupId',
|
|
52
|
+
instanceId: 'instanceId',
|
|
53
|
+
machines: 'machines',
|
|
54
|
+
successPodsCount: 'successPodsCount',
|
|
55
|
+
totalPodsCount: 'totalPodsCount',
|
|
56
|
+
type: 'type',
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
static types() {
|
|
60
|
+
return {
|
|
61
|
+
configType: 'string',
|
|
62
|
+
groupId: 'string',
|
|
63
|
+
instanceId: 'string',
|
|
64
|
+
machines: { 'type': 'array', 'itemType': CollectorDeployMachineMachines },
|
|
65
|
+
successPodsCount: 'string',
|
|
66
|
+
totalPodsCount: 'string',
|
|
67
|
+
type: 'string',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.CollectorDeployMachine = CollectorDeployMachine;
|
|
72
|
+
class CollectorKibanaInstance extends $tea.Model {
|
|
73
|
+
constructor(map) {
|
|
74
|
+
super(map);
|
|
75
|
+
}
|
|
76
|
+
static names() {
|
|
77
|
+
return {
|
|
78
|
+
configType: 'configType',
|
|
79
|
+
host: 'host',
|
|
80
|
+
instanceId: 'instanceId',
|
|
81
|
+
kibanaHost: 'kibanaHost',
|
|
82
|
+
password: 'password',
|
|
83
|
+
protocol: 'protocol',
|
|
84
|
+
userName: 'userName',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
static types() {
|
|
88
|
+
return {
|
|
89
|
+
configType: 'string',
|
|
90
|
+
host: 'string',
|
|
91
|
+
instanceId: 'string',
|
|
92
|
+
kibanaHost: 'string',
|
|
93
|
+
password: 'string',
|
|
94
|
+
protocol: 'string',
|
|
95
|
+
userName: 'string',
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.CollectorKibanaInstance = CollectorKibanaInstance;
|
|
100
|
+
class CollectorTargetInstance extends $tea.Model {
|
|
101
|
+
constructor(map) {
|
|
102
|
+
super(map);
|
|
103
|
+
}
|
|
104
|
+
static names() {
|
|
105
|
+
return {
|
|
106
|
+
configType: 'configType',
|
|
107
|
+
enableMonitoring: 'enableMonitoring',
|
|
108
|
+
hosts: 'hosts',
|
|
109
|
+
instanceId: 'instanceId',
|
|
110
|
+
instanceType: 'instanceType',
|
|
111
|
+
password: 'password',
|
|
112
|
+
protocol: 'protocol',
|
|
113
|
+
userName: 'userName',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
static types() {
|
|
117
|
+
return {
|
|
118
|
+
configType: 'string',
|
|
119
|
+
enableMonitoring: 'boolean',
|
|
120
|
+
hosts: { 'type': 'array', 'itemType': 'string' },
|
|
121
|
+
instanceId: 'string',
|
|
122
|
+
instanceType: 'string',
|
|
123
|
+
password: 'string',
|
|
124
|
+
protocol: 'string',
|
|
125
|
+
userName: 'string',
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.CollectorTargetInstance = CollectorTargetInstance;
|
|
44
130
|
class DictInfo extends $tea.Model {
|
|
45
131
|
constructor(map) {
|
|
46
132
|
super(map);
|
|
@@ -1061,13 +1147,27 @@ class CreateCollectorRequest extends $tea.Model {
|
|
|
1061
1147
|
}
|
|
1062
1148
|
static names() {
|
|
1063
1149
|
return {
|
|
1064
|
-
|
|
1150
|
+
collectorPaths: 'collectorPaths',
|
|
1151
|
+
configs: 'configs',
|
|
1152
|
+
dryRun: 'dryRun',
|
|
1153
|
+
extendConfigs: 'extendConfigs',
|
|
1154
|
+
name: 'name',
|
|
1155
|
+
resType: 'resType',
|
|
1156
|
+
resVersion: 'resVersion',
|
|
1157
|
+
vpcId: 'vpcId',
|
|
1065
1158
|
clientToken: 'clientToken',
|
|
1066
1159
|
};
|
|
1067
1160
|
}
|
|
1068
1161
|
static types() {
|
|
1069
1162
|
return {
|
|
1070
|
-
|
|
1163
|
+
collectorPaths: { 'type': 'array', 'itemType': 'string' },
|
|
1164
|
+
configs: { 'type': 'array', 'itemType': CreateCollectorRequestConfigs },
|
|
1165
|
+
dryRun: 'boolean',
|
|
1166
|
+
extendConfigs: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
1167
|
+
name: 'string',
|
|
1168
|
+
resType: 'string',
|
|
1169
|
+
resVersion: 'string',
|
|
1170
|
+
vpcId: 'string',
|
|
1071
1171
|
clientToken: 'string',
|
|
1072
1172
|
};
|
|
1073
1173
|
}
|
|
@@ -1342,13 +1442,23 @@ class CreateIndexTemplateRequest extends $tea.Model {
|
|
|
1342
1442
|
static names() {
|
|
1343
1443
|
return {
|
|
1344
1444
|
clientToken: 'ClientToken',
|
|
1345
|
-
|
|
1445
|
+
dataStream: 'dataStream',
|
|
1446
|
+
ilmPolicy: 'ilmPolicy',
|
|
1447
|
+
indexPatterns: 'indexPatterns',
|
|
1448
|
+
indexTemplate: 'indexTemplate',
|
|
1449
|
+
priority: 'priority',
|
|
1450
|
+
template: 'template',
|
|
1346
1451
|
};
|
|
1347
1452
|
}
|
|
1348
1453
|
static types() {
|
|
1349
1454
|
return {
|
|
1350
1455
|
clientToken: 'string',
|
|
1351
|
-
|
|
1456
|
+
dataStream: 'boolean',
|
|
1457
|
+
ilmPolicy: 'string',
|
|
1458
|
+
indexPatterns: { 'type': 'array', 'itemType': 'string' },
|
|
1459
|
+
indexTemplate: 'string',
|
|
1460
|
+
priority: 'number',
|
|
1461
|
+
template: CreateIndexTemplateRequestTemplate,
|
|
1352
1462
|
};
|
|
1353
1463
|
}
|
|
1354
1464
|
}
|
|
@@ -11055,6 +11165,24 @@ class CreateInstanceResponse extends $tea.Model {
|
|
|
11055
11165
|
}
|
|
11056
11166
|
}
|
|
11057
11167
|
exports.CreateInstanceResponse = CreateInstanceResponse;
|
|
11168
|
+
class CollectorDeployMachineMachines extends $tea.Model {
|
|
11169
|
+
constructor(map) {
|
|
11170
|
+
super(map);
|
|
11171
|
+
}
|
|
11172
|
+
static names() {
|
|
11173
|
+
return {
|
|
11174
|
+
agentStatus: 'agentStatus',
|
|
11175
|
+
instanceId: 'instanceId',
|
|
11176
|
+
};
|
|
11177
|
+
}
|
|
11178
|
+
static types() {
|
|
11179
|
+
return {
|
|
11180
|
+
agentStatus: 'string',
|
|
11181
|
+
instanceId: 'string',
|
|
11182
|
+
};
|
|
11183
|
+
}
|
|
11184
|
+
}
|
|
11185
|
+
exports.CollectorDeployMachineMachines = CollectorDeployMachineMachines;
|
|
11058
11186
|
class ElasticsearchAdvancedSetting extends $tea.Model {
|
|
11059
11187
|
constructor(map) {
|
|
11060
11188
|
super(map);
|
|
@@ -11289,6 +11417,24 @@ class CapacityPlanResponseBodyResult extends $tea.Model {
|
|
|
11289
11417
|
}
|
|
11290
11418
|
}
|
|
11291
11419
|
exports.CapacityPlanResponseBodyResult = CapacityPlanResponseBodyResult;
|
|
11420
|
+
class CreateCollectorRequestConfigs extends $tea.Model {
|
|
11421
|
+
constructor(map) {
|
|
11422
|
+
super(map);
|
|
11423
|
+
}
|
|
11424
|
+
static names() {
|
|
11425
|
+
return {
|
|
11426
|
+
content: 'content',
|
|
11427
|
+
fileName: 'fileName',
|
|
11428
|
+
};
|
|
11429
|
+
}
|
|
11430
|
+
static types() {
|
|
11431
|
+
return {
|
|
11432
|
+
content: 'string',
|
|
11433
|
+
fileName: 'string',
|
|
11434
|
+
};
|
|
11435
|
+
}
|
|
11436
|
+
}
|
|
11437
|
+
exports.CreateCollectorRequestConfigs = CreateCollectorRequestConfigs;
|
|
11292
11438
|
class CreateCollectorResponseBodyResult extends $tea.Model {
|
|
11293
11439
|
constructor(map) {
|
|
11294
11440
|
super(map);
|
|
@@ -11525,6 +11671,26 @@ class CreateDataTasksResponseBodyResult extends $tea.Model {
|
|
|
11525
11671
|
}
|
|
11526
11672
|
}
|
|
11527
11673
|
exports.CreateDataTasksResponseBodyResult = CreateDataTasksResponseBodyResult;
|
|
11674
|
+
class CreateIndexTemplateRequestTemplate extends $tea.Model {
|
|
11675
|
+
constructor(map) {
|
|
11676
|
+
super(map);
|
|
11677
|
+
}
|
|
11678
|
+
static names() {
|
|
11679
|
+
return {
|
|
11680
|
+
aliases: 'aliases',
|
|
11681
|
+
mappings: 'mappings',
|
|
11682
|
+
settings: 'settings',
|
|
11683
|
+
};
|
|
11684
|
+
}
|
|
11685
|
+
static types() {
|
|
11686
|
+
return {
|
|
11687
|
+
aliases: 'string',
|
|
11688
|
+
mappings: 'string',
|
|
11689
|
+
settings: 'string',
|
|
11690
|
+
};
|
|
11691
|
+
}
|
|
11692
|
+
}
|
|
11693
|
+
exports.CreateIndexTemplateRequestTemplate = CreateIndexTemplateRequestTemplate;
|
|
11528
11694
|
class CreateLogstashRequestNetworkConfig extends $tea.Model {
|
|
11529
11695
|
constructor(map) {
|
|
11530
11696
|
super(map);
|
|
@@ -17375,10 +17541,35 @@ class Client extends openapi_client_1.default {
|
|
|
17375
17541
|
if (!tea_util_1.default.isUnset(request.clientToken)) {
|
|
17376
17542
|
query["clientToken"] = request.clientToken;
|
|
17377
17543
|
}
|
|
17544
|
+
let body = {};
|
|
17545
|
+
if (!tea_util_1.default.isUnset(request.collectorPaths)) {
|
|
17546
|
+
body["collectorPaths"] = request.collectorPaths;
|
|
17547
|
+
}
|
|
17548
|
+
if (!tea_util_1.default.isUnset(request.configs)) {
|
|
17549
|
+
body["configs"] = request.configs;
|
|
17550
|
+
}
|
|
17551
|
+
if (!tea_util_1.default.isUnset(request.dryRun)) {
|
|
17552
|
+
body["dryRun"] = request.dryRun;
|
|
17553
|
+
}
|
|
17554
|
+
if (!tea_util_1.default.isUnset(request.extendConfigs)) {
|
|
17555
|
+
body["extendConfigs"] = request.extendConfigs;
|
|
17556
|
+
}
|
|
17557
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
17558
|
+
body["name"] = request.name;
|
|
17559
|
+
}
|
|
17560
|
+
if (!tea_util_1.default.isUnset(request.resType)) {
|
|
17561
|
+
body["resType"] = request.resType;
|
|
17562
|
+
}
|
|
17563
|
+
if (!tea_util_1.default.isUnset(request.resVersion)) {
|
|
17564
|
+
body["resVersion"] = request.resVersion;
|
|
17565
|
+
}
|
|
17566
|
+
if (!tea_util_1.default.isUnset(request.vpcId)) {
|
|
17567
|
+
body["vpcId"] = request.vpcId;
|
|
17568
|
+
}
|
|
17378
17569
|
let req = new $OpenApi.OpenApiRequest({
|
|
17379
17570
|
headers: headers,
|
|
17380
17571
|
query: openapi_util_1.default.query(query),
|
|
17381
|
-
body:
|
|
17572
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
17382
17573
|
});
|
|
17383
17574
|
let params = new $OpenApi.Params({
|
|
17384
17575
|
action: "CreateCollector",
|
|
@@ -17522,10 +17713,29 @@ class Client extends openapi_client_1.default {
|
|
|
17522
17713
|
if (!tea_util_1.default.isUnset(request.clientToken)) {
|
|
17523
17714
|
query["ClientToken"] = request.clientToken;
|
|
17524
17715
|
}
|
|
17716
|
+
let body = {};
|
|
17717
|
+
if (!tea_util_1.default.isUnset(request.dataStream)) {
|
|
17718
|
+
body["dataStream"] = request.dataStream;
|
|
17719
|
+
}
|
|
17720
|
+
if (!tea_util_1.default.isUnset(request.ilmPolicy)) {
|
|
17721
|
+
body["ilmPolicy"] = request.ilmPolicy;
|
|
17722
|
+
}
|
|
17723
|
+
if (!tea_util_1.default.isUnset(request.indexPatterns)) {
|
|
17724
|
+
body["indexPatterns"] = request.indexPatterns;
|
|
17725
|
+
}
|
|
17726
|
+
if (!tea_util_1.default.isUnset(request.indexTemplate)) {
|
|
17727
|
+
body["indexTemplate"] = request.indexTemplate;
|
|
17728
|
+
}
|
|
17729
|
+
if (!tea_util_1.default.isUnset(request.priority)) {
|
|
17730
|
+
body["priority"] = request.priority;
|
|
17731
|
+
}
|
|
17732
|
+
if (!tea_util_1.default.isUnset(request.template)) {
|
|
17733
|
+
body["template"] = request.template;
|
|
17734
|
+
}
|
|
17525
17735
|
let req = new $OpenApi.OpenApiRequest({
|
|
17526
17736
|
headers: headers,
|
|
17527
17737
|
query: openapi_util_1.default.query(query),
|
|
17528
|
-
body:
|
|
17738
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
17529
17739
|
});
|
|
17530
17740
|
let params = new $OpenApi.Params({
|
|
17531
17741
|
action: "CreateIndexTemplate",
|