From cb031cee2ebfde8549b138404571b8f1d3e7695c Mon Sep 17 00:00:00 2001 From: Simon Kirsten Date: Tue, 3 Sep 2024 15:23:59 +0200 Subject: [PATCH] Release v1.0.2 --- package.json | 2 +- src/services.gen.ts | 21 +++++++++++++++++++++ src/types.gen.ts | 15 +++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 76c4fb9..06c4893 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@genesiscloud/genesiscloud-js", - "version": "1.0.0", + "version": "1.0.2", "description": "JavaScript client for the Genesis Cloud API", "main": "dist/index.js", "type": "commonjs", diff --git a/src/services.gen.ts b/src/services.gen.ts index ee77ae0..d469337 100644 --- a/src/services.gen.ts +++ b/src/services.gen.ts @@ -594,6 +594,27 @@ export class InstancesService { }); } + /** + * Get Instance user-metadata + * Gets the user-metadata of the instance. + * @returns unknown Instance.GetInstanceUserMetadataResponse + * @throws ApiError + */ + public getInstanceUserMetadata( + data: $OpenApiTs["/instances/{instance_id}/user-metadata"]["get"]["req"], + ): CancelablePromise< + $OpenApiTs["/instances/{instance_id}/user-metadata"]["get"]["res"][200] + > { + const { instanceId } = data; + return this.httpRequest.request({ + method: "GET", + url: "/instances/{instance_id}/user-metadata", + path: { + instance_id: instanceId, + }, + }); + } + /** * List instance snapshots * @returns unknown PaginatedSnapshotsResponse diff --git a/src/types.gen.ts b/src/types.gen.ts index ef04144..d0640b5 100644 --- a/src/types.gen.ts +++ b/src/types.gen.ts @@ -1195,6 +1195,21 @@ export type $OpenApiTs = { }; }; }; + "/instances/{instance_id}/user-metadata": { + get: { + req: { + instanceId: string; + }; + res: { + /** + * Instance.GetInstanceUserMetadataResponse + */ + 200: { + [key: string]: unknown; + }; + }; + }; + }; "/instances/{instance_id}/snapshots": { get: { req: {