@alicloud/elasticsearch20170613 1.0.14 → 1.0.15

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/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ English | [简体中文](README-CN.md)
2
+ ![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
3
+
4
+ # Alibaba Cloud elasticsearch SDK for NodeJS
5
+
6
+ ## Installation
7
+ If you use `npm` to manage your dependence, you can use the following command:
8
+
9
+ ```sh
10
+ npm install @alicloud/elasticsearch20170613 -S
11
+ ```
12
+
13
+ ## Issues
14
+ [Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
15
+
16
+ ## Usage
17
+ [Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
18
+
19
+ ## References
20
+ * [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
21
+
22
+ ## License
23
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
24
+
25
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
package/dist/client.d.ts CHANGED
@@ -3634,6 +3634,57 @@ export declare class ListInstanceResponse extends $tea.Model {
3634
3634
  [key: string]: any;
3635
3635
  });
3636
3636
  }
3637
+ export declare class ListInstanceHistoryEventsRequest extends $tea.Model {
3638
+ body?: ListInstanceHistoryEventsRequestBody[];
3639
+ eventCreateEndTime?: string;
3640
+ eventCreateStartTime?: string;
3641
+ eventExecuteEndTime?: string;
3642
+ eventExecuteStartTime?: string;
3643
+ eventFinashEndTime?: string;
3644
+ eventFinashStartTime?: string;
3645
+ eventLevel?: string;
3646
+ eventType?: string;
3647
+ instanceId?: string;
3648
+ nodeIP?: string;
3649
+ static names(): {
3650
+ [key: string]: string;
3651
+ };
3652
+ static types(): {
3653
+ [key: string]: any;
3654
+ };
3655
+ constructor(map?: {
3656
+ [key: string]: any;
3657
+ });
3658
+ }
3659
+ export declare class ListInstanceHistoryEventsResponseBody extends $tea.Model {
3660
+ headers?: ListInstanceHistoryEventsResponseBodyHeaders;
3661
+ requestId?: string;
3662
+ result?: ListInstanceHistoryEventsResponseBodyResult[];
3663
+ static names(): {
3664
+ [key: string]: string;
3665
+ };
3666
+ static types(): {
3667
+ [key: string]: any;
3668
+ };
3669
+ constructor(map?: {
3670
+ [key: string]: any;
3671
+ });
3672
+ }
3673
+ export declare class ListInstanceHistoryEventsResponse extends $tea.Model {
3674
+ headers: {
3675
+ [key: string]: string;
3676
+ };
3677
+ body: ListInstanceHistoryEventsResponseBody;
3678
+ static names(): {
3679
+ [key: string]: string;
3680
+ };
3681
+ static types(): {
3682
+ [key: string]: any;
3683
+ };
3684
+ constructor(map?: {
3685
+ [key: string]: any;
3686
+ });
3687
+ }
3637
3688
  export declare class ListInstanceIndicesRequest extends $tea.Model {
3638
3689
  all?: boolean;
3639
3690
  isManaged?: boolean;
@@ -9767,6 +9818,54 @@ export declare class ListInstanceResponseBodyResult extends $tea.Model {
9767
9818
  [key: string]: any;
9768
9819
  });
9769
9820
  }
9821
+ export declare class ListInstanceHistoryEventsRequestBody extends $tea.Model {
9822
+ desc?: boolean;
9823
+ sortField?: string;
9824
+ static names(): {
9825
+ [key: string]: string;
9826
+ };
9827
+ static types(): {
9828
+ [key: string]: any;
9829
+ };
9830
+ constructor(map?: {
9831
+ [key: string]: any;
9832
+ });
9833
+ }
9834
+ export declare class ListInstanceHistoryEventsResponseBodyHeaders extends $tea.Model {
9835
+ xTotalCount?: number;
9836
+ xTotalFailed?: number;
9837
+ xTotalSuccess?: number;
9838
+ static names(): {
9839
+ [key: string]: string;
9840
+ };
9841
+ static types(): {
9842
+ [key: string]: any;
9843
+ };
9844
+ constructor(map?: {
9845
+ [key: string]: any;
9846
+ });
9847
+ }
9848
+ export declare class ListInstanceHistoryEventsResponseBodyResult extends $tea.Model {
9849
+ actionList?: string[];
9850
+ eventCreateTime?: string;
9851
+ eventCycleStatus?: string;
9852
+ eventExecuteTime?: string;
9853
+ eventFinashTime?: string;
9854
+ eventLevel?: string;
9855
+ eventType?: string;
9856
+ instanceId?: string;
9857
+ nodeIP?: string;
9858
+ regionId?: string;
9859
+ static names(): {
9860
+ [key: string]: string;
9861
+ };
9862
+ static types(): {
9863
+ [key: string]: any;
9864
+ };
9865
+ constructor(map?: {
9866
+ [key: string]: any;
9867
+ });
9868
+ }
9770
9869
  export declare class ListInstanceIndicesResponseBodyHeaders extends $tea.Model {
9771
9870
  xManagedCount?: number;
9772
9871
  xManagedStorageSize?: number;
@@ -10189,6 +10288,7 @@ export declare class ModifyElastictaskResponseBodyResult extends $tea.Model {
10189
10288
  export declare class ModifyWhiteIpsRequestWhiteIpGroup extends $tea.Model {
10190
10289
  groupName?: string;
10191
10290
  ips?: string[];
10291
+ whiteIpType?: string;
10192
10292
  static names(): {
10193
10293
  [key: string]: string;
10194
10294
  };
@@ -11493,6 +11593,10 @@ export default class Client extends OpenApi {
11493
11593
  listInstanceWithOptions(request: ListInstanceRequest, headers: {
11494
11594
  [key: string]: string;
11495
11595
  }, runtime: $Util.RuntimeOptions): Promise<ListInstanceResponse>;
11596
+ listInstanceHistoryEvents(request: ListInstanceHistoryEventsRequest): Promise<ListInstanceHistoryEventsResponse>;
11597
+ listInstanceHistoryEventsWithOptions(request: ListInstanceHistoryEventsRequest, headers: {
11598
+ [key: string]: string;
11599
+ }, runtime: $Util.RuntimeOptions): Promise<ListInstanceHistoryEventsResponse>;
11496
11600
  listInstanceIndices(InstanceId: string, request: ListInstanceIndicesRequest): Promise<ListInstanceIndicesResponse>;
11497
11601
  listInstanceIndicesWithOptions(InstanceId: string, request: ListInstanceIndicesRequest, headers: {
11498
11602
  [key: string]: string;
package/dist/client.js CHANGED
@@ -4799,6 +4799,80 @@ class ListInstanceResponse extends $tea.Model {
4799
4799
  }
4800
4800
  }
4801
4801
  exports.ListInstanceResponse = ListInstanceResponse;
4802
+ class ListInstanceHistoryEventsRequest extends $tea.Model {
4803
+ constructor(map) {
4804
+ super(map);
4805
+ }
4806
+ static names() {
4807
+ return {
4808
+ body: 'body',
4809
+ eventCreateEndTime: 'eventCreateEndTime',
4810
+ eventCreateStartTime: 'eventCreateStartTime',
4811
+ eventExecuteEndTime: 'eventExecuteEndTime',
4812
+ eventExecuteStartTime: 'eventExecuteStartTime',
4813
+ eventFinashEndTime: 'eventFinashEndTime',
4814
+ eventFinashStartTime: 'eventFinashStartTime',
4815
+ eventLevel: 'eventLevel',
4816
+ eventType: 'eventType',
4817
+ instanceId: 'instanceId',
4818
+ nodeIP: 'nodeIP',
4819
+ };
4820
+ }
4821
+ static types() {
4822
+ return {
4823
+ body: { 'type': 'array', 'itemType': ListInstanceHistoryEventsRequestBody },
4824
+ eventCreateEndTime: 'string',
4825
+ eventCreateStartTime: 'string',
4826
+ eventExecuteEndTime: 'string',
4827
+ eventExecuteStartTime: 'string',
4828
+ eventFinashEndTime: 'string',
4829
+ eventFinashStartTime: 'string',
4830
+ eventLevel: 'string',
4831
+ eventType: 'string',
4832
+ instanceId: 'string',
4833
+ nodeIP: 'string',
4834
+ };
4835
+ }
4836
+ }
4837
+ exports.ListInstanceHistoryEventsRequest = ListInstanceHistoryEventsRequest;
4838
+ class ListInstanceHistoryEventsResponseBody extends $tea.Model {
4839
+ constructor(map) {
4840
+ super(map);
4841
+ }
4842
+ static names() {
4843
+ return {
4844
+ headers: 'Headers',
4845
+ requestId: 'RequestId',
4846
+ result: 'Result',
4847
+ };
4848
+ }
4849
+ static types() {
4850
+ return {
4851
+ headers: ListInstanceHistoryEventsResponseBodyHeaders,
4852
+ requestId: 'string',
4853
+ result: { 'type': 'array', 'itemType': ListInstanceHistoryEventsResponseBodyResult },
4854
+ };
4855
+ }
4856
+ }
4857
+ exports.ListInstanceHistoryEventsResponseBody = ListInstanceHistoryEventsResponseBody;
4858
+ class ListInstanceHistoryEventsResponse extends $tea.Model {
4859
+ constructor(map) {
4860
+ super(map);
4861
+ }
4862
+ static names() {
4863
+ return {
4864
+ headers: 'headers',
4865
+ body: 'body',
4866
+ };
4867
+ }
4868
+ static types() {
4869
+ return {
4870
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4871
+ body: ListInstanceHistoryEventsResponseBody,
4872
+ };
4873
+ }
4874
+ }
4875
+ exports.ListInstanceHistoryEventsResponse = ListInstanceHistoryEventsResponse;
4802
4876
  class ListInstanceIndicesRequest extends $tea.Model {
4803
4877
  constructor(map) {
4804
4878
  super(map);
@@ -13249,6 +13323,78 @@ class ListInstanceResponseBodyResult extends $tea.Model {
13249
13323
  }
13250
13324
  }
13251
13325
  exports.ListInstanceResponseBodyResult = ListInstanceResponseBodyResult;
13326
+ class ListInstanceHistoryEventsRequestBody extends $tea.Model {
13327
+ constructor(map) {
13328
+ super(map);
13329
+ }
13330
+ static names() {
13331
+ return {
13332
+ desc: 'desc',
13333
+ sortField: 'sortField',
13334
+ };
13335
+ }
13336
+ static types() {
13337
+ return {
13338
+ desc: 'boolean',
13339
+ sortField: 'string',
13340
+ };
13341
+ }
13342
+ }
13343
+ exports.ListInstanceHistoryEventsRequestBody = ListInstanceHistoryEventsRequestBody;
13344
+ class ListInstanceHistoryEventsResponseBodyHeaders extends $tea.Model {
13345
+ constructor(map) {
13346
+ super(map);
13347
+ }
13348
+ static names() {
13349
+ return {
13350
+ xTotalCount: 'X-Total-Count',
13351
+ xTotalFailed: 'X-Total-Failed',
13352
+ xTotalSuccess: 'X-Total-Success',
13353
+ };
13354
+ }
13355
+ static types() {
13356
+ return {
13357
+ xTotalCount: 'number',
13358
+ xTotalFailed: 'number',
13359
+ xTotalSuccess: 'number',
13360
+ };
13361
+ }
13362
+ }
13363
+ exports.ListInstanceHistoryEventsResponseBodyHeaders = ListInstanceHistoryEventsResponseBodyHeaders;
13364
+ class ListInstanceHistoryEventsResponseBodyResult extends $tea.Model {
13365
+ constructor(map) {
13366
+ super(map);
13367
+ }
13368
+ static names() {
13369
+ return {
13370
+ actionList: 'actionList',
13371
+ eventCreateTime: 'eventCreateTime',
13372
+ eventCycleStatus: 'eventCycleStatus',
13373
+ eventExecuteTime: 'eventExecuteTime',
13374
+ eventFinashTime: 'eventFinashTime',
13375
+ eventLevel: 'eventLevel',
13376
+ eventType: 'eventType',
13377
+ instanceId: 'instanceId',
13378
+ nodeIP: 'nodeIP',
13379
+ regionId: 'regionId',
13380
+ };
13381
+ }
13382
+ static types() {
13383
+ return {
13384
+ actionList: { 'type': 'array', 'itemType': 'string' },
13385
+ eventCreateTime: 'string',
13386
+ eventCycleStatus: 'string',
13387
+ eventExecuteTime: 'string',
13388
+ eventFinashTime: 'string',
13389
+ eventLevel: 'string',
13390
+ eventType: 'string',
13391
+ instanceId: 'string',
13392
+ nodeIP: 'string',
13393
+ regionId: 'string',
13394
+ };
13395
+ }
13396
+ }
13397
+ exports.ListInstanceHistoryEventsResponseBodyResult = ListInstanceHistoryEventsResponseBodyResult;
13252
13398
  class ListInstanceIndicesResponseBodyHeaders extends $tea.Model {
13253
13399
  constructor(map) {
13254
13400
  super(map);
@@ -13867,12 +14013,14 @@ class ModifyWhiteIpsRequestWhiteIpGroup extends $tea.Model {
13867
14013
  return {
13868
14014
  groupName: 'groupName',
13869
14015
  ips: 'ips',
14016
+ whiteIpType: 'whiteIpType',
13870
14017
  };
13871
14018
  }
13872
14019
  static types() {
13873
14020
  return {
13874
14021
  groupName: 'string',
13875
14022
  ips: { 'type': 'array', 'itemType': 'string' },
14023
+ whiteIpType: 'string',
13876
14024
  };
13877
14025
  }
13878
14026
  }
@@ -15420,7 +15568,7 @@ class Client extends openapi_client_1.default {
15420
15568
  protocol: "HTTPS",
15421
15569
  pathname: `/openapi/assist/actions/capacity-plan`,
15422
15570
  method: "POST",
15423
- authType: "AK",
15571
+ authType: "Anonymous",
15424
15572
  style: "ROA",
15425
15573
  reqBodyType: "json",
15426
15574
  bodyType: "json",
@@ -18076,6 +18224,62 @@ class Client extends openapi_client_1.default {
18076
18224
  });
18077
18225
  return $tea.cast(await this.callApi(params, req, runtime), new ListInstanceResponse({}));
18078
18226
  }
18227
+ async listInstanceHistoryEvents(request) {
18228
+ let runtime = new $Util.RuntimeOptions({});
18229
+ let headers = {};
18230
+ return await this.listInstanceHistoryEventsWithOptions(request, headers, runtime);
18231
+ }
18232
+ async listInstanceHistoryEventsWithOptions(request, headers, runtime) {
18233
+ tea_util_1.default.validateModel(request);
18234
+ let query = {};
18235
+ if (!tea_util_1.default.isUnset(request.eventCreateEndTime)) {
18236
+ query["eventCreateEndTime"] = request.eventCreateEndTime;
18237
+ }
18238
+ if (!tea_util_1.default.isUnset(request.eventCreateStartTime)) {
18239
+ query["eventCreateStartTime"] = request.eventCreateStartTime;
18240
+ }
18241
+ if (!tea_util_1.default.isUnset(request.eventExecuteEndTime)) {
18242
+ query["eventExecuteEndTime"] = request.eventExecuteEndTime;
18243
+ }
18244
+ if (!tea_util_1.default.isUnset(request.eventExecuteStartTime)) {
18245
+ query["eventExecuteStartTime"] = request.eventExecuteStartTime;
18246
+ }
18247
+ if (!tea_util_1.default.isUnset(request.eventFinashEndTime)) {
18248
+ query["eventFinashEndTime"] = request.eventFinashEndTime;
18249
+ }
18250
+ if (!tea_util_1.default.isUnset(request.eventFinashStartTime)) {
18251
+ query["eventFinashStartTime"] = request.eventFinashStartTime;
18252
+ }
18253
+ if (!tea_util_1.default.isUnset(request.eventLevel)) {
18254
+ query["eventLevel"] = request.eventLevel;
18255
+ }
18256
+ if (!tea_util_1.default.isUnset(request.eventType)) {
18257
+ query["eventType"] = request.eventType;
18258
+ }
18259
+ if (!tea_util_1.default.isUnset(request.instanceId)) {
18260
+ query["instanceId"] = request.instanceId;
18261
+ }
18262
+ if (!tea_util_1.default.isUnset(request.nodeIP)) {
18263
+ query["nodeIP"] = request.nodeIP;
18264
+ }
18265
+ let req = new $OpenApi.OpenApiRequest({
18266
+ headers: headers,
18267
+ query: openapi_util_1.default.query(query),
18268
+ body: tea_util_1.default.toArray(request.body),
18269
+ });
18270
+ let params = new $OpenApi.Params({
18271
+ action: "ListInstanceHistoryEvents",
18272
+ version: "2017-06-13",
18273
+ protocol: "HTTPS",
18274
+ pathname: `/openapi/events`,
18275
+ method: "POST",
18276
+ authType: "AK",
18277
+ style: "ROA",
18278
+ reqBodyType: "json",
18279
+ bodyType: "json",
18280
+ });
18281
+ return $tea.cast(await this.callApi(params, req, runtime), new ListInstanceHistoryEventsResponse({}));
18282
+ }
18079
18283
  async listInstanceIndices(InstanceId, request) {
18080
18284
  let runtime = new $Util.RuntimeOptions({});
18081
18285
  let headers = {};