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