ravendb-cloud
Advanced tools
+22
-1
@@ -113,2 +113,9 @@ /** | ||
| /** | ||
| * Restart node | ||
| * @param body (optional) | ||
| * @return Success | ||
| */ | ||
| restartNode(body: RestartNodeRequest | undefined): Promise<void>; | ||
| protected processRestartNode(response: Response): Promise<void>; | ||
| /** | ||
| * Terminate product | ||
@@ -339,3 +346,3 @@ * @return Success | ||
| } | ||
| export declare type CpuPriority = "Basic" | "Standard" | "Performance"; | ||
| export declare type CpuPriority = "Shared" | "Basic" | "Standard" | "Performance"; | ||
| export declare class StorageResponse implements IStorageResponse { | ||
@@ -393,2 +400,3 @@ size?: number; | ||
| dns?: string[] | null; | ||
| nodeTags?: string[] | null; | ||
| releaseChannel?: string | null; | ||
@@ -413,2 +421,3 @@ paymentPlan?: PaymentPlanResponse; | ||
| dns?: string[] | null; | ||
| nodeTags?: string[] | null; | ||
| releaseChannel?: string | null; | ||
@@ -447,2 +456,14 @@ paymentPlan?: PaymentPlanResponse; | ||
| } | ||
| export declare class RestartNodeRequest implements IRestartNodeRequest { | ||
| productId: string; | ||
| nodeTag: string; | ||
| constructor(data?: IRestartNodeRequest); | ||
| init(_data?: any): void; | ||
| static fromJS(data: any): RestartNodeRequest; | ||
| toJSON(data?: any): any; | ||
| } | ||
| export interface IRestartNodeRequest { | ||
| productId: string; | ||
| nodeTag: string; | ||
| } | ||
| export interface FileResponse { | ||
@@ -449,0 +470,0 @@ data: Blob; |
+4
-4
@@ -14,9 +14,9 @@ "use strict"; | ||
| opts = opts || {}; | ||
| const baseUrl = opts.url || DEFAULT_API_URL; | ||
| if (!opts.apiKey) { | ||
| throw new Error("Passing an apiKey is required. In order to obtain one please navigate to 'API Keys' in your RavenDB Cloud user portal."); | ||
| } | ||
| this._account = new generated_1.AccountClient(opts, baseUrl, http); | ||
| this._metadata = new generated_1.MetadataClient(opts, baseUrl, http); | ||
| this._products = new generated_1.ProductsClient(opts, baseUrl, http); | ||
| opts.url = (opts.url || DEFAULT_API_URL).replace(/\/$/, ""); | ||
| this._account = new generated_1.AccountClient(opts, opts.url, http); | ||
| this._metadata = new generated_1.MetadataClient(opts, opts.url, http); | ||
| this._products = new generated_1.ProductsClient(opts, opts.url, http); | ||
| } | ||
@@ -23,0 +23,0 @@ get account() { |
+2
-2
| { | ||
| "name": "ravendb-cloud", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "RavenDB Cloud API client", | ||
@@ -55,4 +55,4 @@ "main": "dist/index.js", | ||
| "@types/node-fetch": "^2.5.7", | ||
| "node-fetch": "^2.6.0" | ||
| "node-fetch": "^2.6.1" | ||
| } | ||
| } |
Sorry, the diff of this file is too big to display
92858
5.59%2224
5.96%17
6.25%Updated