@alicloud/hologram20220601 1.0.2 → 1.0.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 CHANGED
@@ -4,6 +4,48 @@
4
4
  import * as $Util from '@alicloud/tea-util';
5
5
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class ChangeResourceGroupRequest extends $tea.Model {
8
+ instanceId?: string;
9
+ newResourceGroupId?: string;
10
+ static names(): {
11
+ [key: string]: string;
12
+ };
13
+ static types(): {
14
+ [key: string]: any;
15
+ };
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
20
+ export declare class ChangeResourceGroupResponseBody extends $tea.Model {
21
+ data?: boolean;
22
+ requestId?: string;
23
+ static names(): {
24
+ [key: string]: string;
25
+ };
26
+ static types(): {
27
+ [key: string]: any;
28
+ };
29
+ constructor(map?: {
30
+ [key: string]: any;
31
+ });
32
+ }
33
+ export declare class ChangeResourceGroupResponse extends $tea.Model {
34
+ headers?: {
35
+ [key: string]: string;
36
+ };
37
+ statusCode?: number;
38
+ body?: ChangeResourceGroupResponseBody;
39
+ static names(): {
40
+ [key: string]: string;
41
+ };
42
+ static types(): {
43
+ [key: string]: any;
44
+ };
45
+ constructor(map?: {
46
+ [key: string]: any;
47
+ });
48
+ }
7
49
  export declare class CreateInstanceRequest extends $tea.Model {
8
50
  autoPay?: boolean;
9
51
  autoRenew?: boolean;
@@ -11,6 +53,7 @@ export declare class CreateInstanceRequest extends $tea.Model {
11
53
  coldStorageSize?: number;
12
54
  cpu?: number;
13
55
  duration?: number;
56
+ enableServerlessComputing?: boolean;
14
57
  gatewayCount?: number;
15
58
  initialDatabases?: string;
16
59
  instanceName?: string;
@@ -50,11 +93,11 @@ export declare class CreateInstanceResponseBody extends $tea.Model {
50
93
  });
51
94
  }
52
95
  export declare class CreateInstanceResponse extends $tea.Model {
53
- headers: {
96
+ headers?: {
54
97
  [key: string]: string;
55
98
  };
56
- statusCode: number;
57
- body: CreateInstanceResponseBody;
99
+ statusCode?: number;
100
+ body?: CreateInstanceResponseBody;
58
101
  static names(): {
59
102
  [key: string]: string;
60
103
  };
@@ -95,11 +138,101 @@ export declare class DeleteInstanceResponseBody extends $tea.Model {
95
138
  });
96
139
  }
97
140
  export declare class DeleteInstanceResponse extends $tea.Model {
98
- headers: {
141
+ headers?: {
142
+ [key: string]: string;
143
+ };
144
+ statusCode?: number;
145
+ body?: DeleteInstanceResponseBody;
146
+ static names(): {
147
+ [key: string]: string;
148
+ };
149
+ static types(): {
150
+ [key: string]: any;
151
+ };
152
+ constructor(map?: {
153
+ [key: string]: any;
154
+ });
155
+ }
156
+ export declare class DisableHiveAccessRequest extends $tea.Model {
157
+ regionId?: string;
158
+ static names(): {
159
+ [key: string]: string;
160
+ };
161
+ static types(): {
162
+ [key: string]: any;
163
+ };
164
+ constructor(map?: {
165
+ [key: string]: any;
166
+ });
167
+ }
168
+ export declare class DisableHiveAccessResponseBody extends $tea.Model {
169
+ data?: boolean;
170
+ errorCode?: string;
171
+ errorMessage?: string;
172
+ httpStatusCode?: string;
173
+ requestId?: string;
174
+ success?: boolean;
175
+ static names(): {
176
+ [key: string]: string;
177
+ };
178
+ static types(): {
179
+ [key: string]: any;
180
+ };
181
+ constructor(map?: {
182
+ [key: string]: any;
183
+ });
184
+ }
185
+ export declare class DisableHiveAccessResponse extends $tea.Model {
186
+ headers?: {
187
+ [key: string]: string;
188
+ };
189
+ statusCode?: number;
190
+ body?: DisableHiveAccessResponseBody;
191
+ static names(): {
192
+ [key: string]: string;
193
+ };
194
+ static types(): {
195
+ [key: string]: any;
196
+ };
197
+ constructor(map?: {
198
+ [key: string]: any;
199
+ });
200
+ }
201
+ export declare class EnableHiveAccessRequest extends $tea.Model {
202
+ regionId?: string;
203
+ static names(): {
204
+ [key: string]: string;
205
+ };
206
+ static types(): {
207
+ [key: string]: any;
208
+ };
209
+ constructor(map?: {
210
+ [key: string]: any;
211
+ });
212
+ }
213
+ export declare class EnableHiveAccessResponseBody extends $tea.Model {
214
+ data?: boolean;
215
+ errorCode?: string;
216
+ errorMessage?: string;
217
+ httpStatusCode?: string;
218
+ requestId?: string;
219
+ success?: boolean;
220
+ static names(): {
99
221
  [key: string]: string;
100
222
  };
101
- statusCode: number;
102
- body: DeleteInstanceResponseBody;
223
+ static types(): {
224
+ [key: string]: any;
225
+ };
226
+ constructor(map?: {
227
+ [key: string]: any;
228
+ });
229
+ }
230
+ export declare class EnableHiveAccessResponse extends $tea.Model {
231
+ headers?: {
232
+ [key: string]: string;
233
+ };
234
+ statusCode?: number;
235
+ body?: EnableHiveAccessResponseBody;
103
236
  static names(): {
104
237
  [key: string]: string;
105
238
  };
@@ -128,11 +261,40 @@ export declare class GetInstanceResponseBody extends $tea.Model {
128
261
  });
129
262
  }
130
263
  export declare class GetInstanceResponse extends $tea.Model {
131
- headers: {
264
+ headers?: {
132
265
  [key: string]: string;
133
266
  };
134
- statusCode: number;
135
- body: GetInstanceResponseBody;
267
+ statusCode?: number;
268
+ body?: GetInstanceResponseBody;
269
+ static names(): {
270
+ [key: string]: string;
271
+ };
272
+ static types(): {
273
+ [key: string]: any;
274
+ };
275
+ constructor(map?: {
276
+ [key: string]: any;
277
+ });
278
+ }
279
+ export declare class GetWarehouseDetailResponseBody extends $tea.Model {
280
+ requestId?: string;
281
+ warehouseDetail?: GetWarehouseDetailResponseBodyWarehouseDetail;
282
+ static names(): {
283
+ [key: string]: string;
284
+ };
285
+ static types(): {
286
+ [key: string]: any;
287
+ };
288
+ constructor(map?: {
289
+ [key: string]: any;
290
+ });
291
+ }
292
+ export declare class GetWarehouseDetailResponse extends $tea.Model {
293
+ headers?: {
294
+ [key: string]: string;
295
+ };
296
+ statusCode?: number;
297
+ body?: GetWarehouseDetailResponseBody;
136
298
  static names(): {
137
299
  [key: string]: string;
138
300
  };
@@ -175,11 +337,40 @@ export declare class ListInstancesResponseBody extends $tea.Model {
175
337
  });
176
338
  }
177
339
  export declare class ListInstancesResponse extends $tea.Model {
178
- headers: {
340
+ headers?: {
341
+ [key: string]: string;
342
+ };
343
+ statusCode?: number;
344
+ body?: ListInstancesResponseBody;
345
+ static names(): {
346
+ [key: string]: string;
347
+ };
348
+ static types(): {
349
+ [key: string]: any;
350
+ };
351
+ constructor(map?: {
352
+ [key: string]: any;
353
+ });
354
+ }
355
+ export declare class ListWarehousesResponseBody extends $tea.Model {
356
+ warehouseList?: ListWarehousesResponseBodyWarehouseList[];
357
+ requestId?: string;
358
+ static names(): {
179
359
  [key: string]: string;
180
360
  };
181
- statusCode: number;
182
- body: ListInstancesResponseBody;
361
+ static types(): {
362
+ [key: string]: any;
363
+ };
364
+ constructor(map?: {
365
+ [key: string]: any;
366
+ });
367
+ }
368
+ export declare class ListWarehousesResponse extends $tea.Model {
369
+ headers?: {
370
+ [key: string]: string;
371
+ };
372
+ statusCode?: number;
373
+ body?: ListWarehousesResponseBody;
183
374
  static names(): {
184
375
  [key: string]: string;
185
376
  };
@@ -221,11 +412,11 @@ export declare class RenewInstanceResponseBody extends $tea.Model {
221
412
  });
222
413
  }
223
414
  export declare class RenewInstanceResponse extends $tea.Model {
224
- headers: {
415
+ headers?: {
225
416
  [key: string]: string;
226
417
  };
227
- statusCode: number;
228
- body: RenewInstanceResponseBody;
418
+ statusCode?: number;
419
+ body?: RenewInstanceResponseBody;
229
420
  static names(): {
230
421
  [key: string]: string;
231
422
  };
@@ -254,11 +445,11 @@ export declare class RestartInstanceResponseBody extends $tea.Model {
254
445
  });
255
446
  }
256
447
  export declare class RestartInstanceResponse extends $tea.Model {
257
- headers: {
448
+ headers?: {
258
449
  [key: string]: string;
259
450
  };
260
- statusCode: number;
261
- body: RestartInstanceResponseBody;
451
+ statusCode?: number;
452
+ body?: RestartInstanceResponseBody;
262
453
  static names(): {
263
454
  [key: string]: string;
264
455
  };
@@ -287,11 +478,11 @@ export declare class ResumeInstanceResponseBody extends $tea.Model {
287
478
  });
288
479
  }
289
480
  export declare class ResumeInstanceResponse extends $tea.Model {
290
- headers: {
481
+ headers?: {
291
482
  [key: string]: string;
292
483
  };
293
- statusCode: number;
294
- body: ResumeInstanceResponseBody;
484
+ statusCode?: number;
485
+ body?: ResumeInstanceResponseBody;
295
486
  static names(): {
296
487
  [key: string]: string;
297
488
  };
@@ -305,6 +496,7 @@ export declare class ResumeInstanceResponse extends $tea.Model {
305
496
  export declare class ScaleInstanceRequest extends $tea.Model {
306
497
  coldStorageSize?: number;
307
498
  cpu?: number;
499
+ enableServerlessComputing?: boolean;
308
500
  gatewayCount?: number;
309
501
  scaleType?: string;
310
502
  storageSize?: number;
@@ -335,11 +527,11 @@ export declare class ScaleInstanceResponseBody extends $tea.Model {
335
527
  });
336
528
  }
337
529
  export declare class ScaleInstanceResponse extends $tea.Model {
338
- headers: {
530
+ headers?: {
339
531
  [key: string]: string;
340
532
  };
341
- statusCode: number;
342
- body: ScaleInstanceResponseBody;
533
+ statusCode?: number;
534
+ body?: ScaleInstanceResponseBody;
343
535
  static names(): {
344
536
  [key: string]: string;
345
537
  };
@@ -368,11 +560,11 @@ export declare class StopInstanceResponseBody extends $tea.Model {
368
560
  });
369
561
  }
370
562
  export declare class StopInstanceResponse extends $tea.Model {
371
- headers: {
563
+ headers?: {
372
564
  [key: string]: string;
373
565
  };
374
- statusCode: number;
375
- body: StopInstanceResponseBody;
566
+ statusCode?: number;
567
+ body?: StopInstanceResponseBody;
376
568
  static names(): {
377
569
  [key: string]: string;
378
570
  };
@@ -413,11 +605,11 @@ export declare class UpdateInstanceNameResponseBody extends $tea.Model {
413
605
  });
414
606
  }
415
607
  export declare class UpdateInstanceNameResponse extends $tea.Model {
416
- headers: {
608
+ headers?: {
417
609
  [key: string]: string;
418
610
  };
419
- statusCode: number;
420
- body: UpdateInstanceNameResponseBody;
611
+ statusCode?: number;
612
+ body?: UpdateInstanceNameResponseBody;
421
613
  static names(): {
422
614
  [key: string]: string;
423
615
  };
@@ -463,11 +655,11 @@ export declare class UpdateInstanceNetworkTypeResponseBody extends $tea.Model {
463
655
  });
464
656
  }
465
657
  export declare class UpdateInstanceNetworkTypeResponse extends $tea.Model {
466
- headers: {
658
+ headers?: {
467
659
  [key: string]: string;
468
660
  };
469
- statusCode: number;
470
- body: UpdateInstanceNetworkTypeResponseBody;
661
+ statusCode?: number;
662
+ body?: UpdateInstanceNetworkTypeResponseBody;
471
663
  static names(): {
472
664
  [key: string]: string;
473
665
  };
@@ -534,6 +726,7 @@ export declare class GetInstanceResponseBodyInstance extends $tea.Model {
534
726
  creationTime?: string;
535
727
  disk?: string;
536
728
  enableHiveAccess?: string;
729
+ enableServerless?: boolean;
537
730
  endpoints?: GetInstanceResponseBodyInstanceEndpoints[];
538
731
  expirationTime?: string;
539
732
  gatewayCount?: number;
@@ -564,6 +757,37 @@ export declare class GetInstanceResponseBodyInstance extends $tea.Model {
564
757
  [key: string]: any;
565
758
  });
566
759
  }
760
+ export declare class GetWarehouseDetailResponseBodyWarehouseDetailWarehouseList extends $tea.Model {
761
+ cpu?: number;
762
+ id?: number;
763
+ mem?: number;
764
+ name?: string;
765
+ nodeCount?: number;
766
+ status?: string;
767
+ static names(): {
768
+ [key: string]: string;
769
+ };
770
+ static types(): {
771
+ [key: string]: any;
772
+ };
773
+ constructor(map?: {
774
+ [key: string]: any;
775
+ });
776
+ }
777
+ export declare class GetWarehouseDetailResponseBodyWarehouseDetail extends $tea.Model {
778
+ remainingCpu?: string;
779
+ reservedCpu?: string;
780
+ warehouseList?: GetWarehouseDetailResponseBodyWarehouseDetailWarehouseList[];
781
+ static names(): {
782
+ [key: string]: string;
783
+ };
784
+ static types(): {
785
+ [key: string]: any;
786
+ };
787
+ constructor(map?: {
788
+ [key: string]: any;
789
+ });
790
+ }
567
791
  export declare class ListInstancesRequestTag extends $tea.Model {
568
792
  key?: string;
569
793
  value?: string;
@@ -635,6 +859,23 @@ export declare class ListInstancesResponseBodyInstanceList extends $tea.Model {
635
859
  [key: string]: any;
636
860
  });
637
861
  }
862
+ export declare class ListWarehousesResponseBodyWarehouseList extends $tea.Model {
863
+ cpu?: number;
864
+ id?: number;
865
+ mem?: number;
866
+ name?: string;
867
+ nodeCount?: number;
868
+ status?: string;
869
+ static names(): {
870
+ [key: string]: string;
871
+ };
872
+ static types(): {
873
+ [key: string]: any;
874
+ };
875
+ constructor(map?: {
876
+ [key: string]: any;
877
+ });
878
+ }
638
879
  export declare class RenewInstanceResponseBodyData extends $tea.Model {
639
880
  code?: string;
640
881
  message?: string;
@@ -670,6 +911,10 @@ export default class Client extends OpenApi {
670
911
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
671
912
  [key: string]: string;
672
913
  }, endpoint: string): string;
914
+ changeResourceGroupWithOptions(request: ChangeResourceGroupRequest, headers: {
915
+ [key: string]: string;
916
+ }, runtime: $Util.RuntimeOptions): Promise<ChangeResourceGroupResponse>;
917
+ changeResourceGroup(request: ChangeResourceGroupRequest): Promise<ChangeResourceGroupResponse>;
673
918
  /**
674
919
  * > Before you call this operation, make sure that you understand the billing method and pricing of Hologres because this operation is charged.
675
920
  * * For more information about the billing details of Hologres, see [Pricing](https://www.alibabacloud.com/help/en/hologres/developer-reference/api-hologram-2022-06-01-createinstance).
@@ -748,14 +993,30 @@ export default class Client extends OpenApi {
748
993
  * @return DeleteInstanceResponse
749
994
  */
750
995
  deleteInstance(instanceId: string, request: DeleteInstanceRequest): Promise<DeleteInstanceResponse>;
996
+ disableHiveAccessWithOptions(instanceId: string, request: DisableHiveAccessRequest, headers: {
997
+ [key: string]: string;
998
+ }, runtime: $Util.RuntimeOptions): Promise<DisableHiveAccessResponse>;
999
+ disableHiveAccess(instanceId: string, request: DisableHiveAccessRequest): Promise<DisableHiveAccessResponse>;
1000
+ enableHiveAccessWithOptions(instanceId: string, request: EnableHiveAccessRequest, headers: {
1001
+ [key: string]: string;
1002
+ }, runtime: $Util.RuntimeOptions): Promise<EnableHiveAccessResponse>;
1003
+ enableHiveAccess(instanceId: string, request: EnableHiveAccessRequest): Promise<EnableHiveAccessResponse>;
751
1004
  getInstanceWithOptions(instanceId: string, headers: {
752
1005
  [key: string]: string;
753
1006
  }, runtime: $Util.RuntimeOptions): Promise<GetInstanceResponse>;
754
1007
  getInstance(instanceId: string): Promise<GetInstanceResponse>;
1008
+ getWarehouseDetailWithOptions(instanceId: string, headers: {
1009
+ [key: string]: string;
1010
+ }, runtime: $Util.RuntimeOptions): Promise<GetWarehouseDetailResponse>;
1011
+ getWarehouseDetail(instanceId: string): Promise<GetWarehouseDetailResponse>;
755
1012
  listInstancesWithOptions(request: ListInstancesRequest, headers: {
756
1013
  [key: string]: string;
757
1014
  }, runtime: $Util.RuntimeOptions): Promise<ListInstancesResponse>;
758
1015
  listInstances(request: ListInstancesRequest): Promise<ListInstancesResponse>;
1016
+ listWarehousesWithOptions(instanceId: string, headers: {
1017
+ [key: string]: string;
1018
+ }, runtime: $Util.RuntimeOptions): Promise<ListWarehousesResponse>;
1019
+ listWarehouses(instanceId: string): Promise<ListWarehousesResponse>;
759
1020
  /**
760
1021
  * > Before you call this operation, make sure that you understand the billing method and pricing of Hologres because this operation is charged.
761
1022
  * * For more information about billing details of Hologres, see [Pricing](https://www.alibabacloud.com/help/en/hologres/product-overview/billing-overview).