Skip to content

Commit

Permalink
Add reservation_id (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Theophilus Okwugwuni authored May 21, 2024
1 parent 97a2830 commit 76773a8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- @diogopms @skirsten @philipkrueck @theocod3s
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@genesiscloud/genesiscloud-js",
"version": "0.1.0",
"version": "1.0.0",
"description": "JavaScript client for the Genesis Cloud API",
"main": "dist/index.js",
"type": "commonjs",
Expand Down
6 changes: 6 additions & 0 deletions src/schemas.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,12 @@ export const $Instance = {
hostname: {
$ref: "#/components/schemas/Instance.Hostname",
},
reservation_id: {
type: "string",
description:
"The unique ID of the reservation the instance is associated with.",
nullable: true,
},
type: {
$ref: "#/components/schemas/Instance.Type",
},
Expand Down
14 changes: 14 additions & 0 deletions src/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ export type Instance = {
id: string;
name: Instance_Name;
hostname: Instance_Hostname;
/**
* The unique ID of the reservation the instance is associated with.
*/
reservation_id?: string | null;
type: Instance_Type;
os_type: OSType;
/**
Expand Down Expand Up @@ -1039,6 +1043,11 @@ export type $OpenApiTs = {
hostname: Instance_Hostname;
type: Instance_Type;
image: ImageId;
/**
* The unique ID of the reservation the instance is associated with.
*
*/
reservation_id?: string;
/**
* An array of ssh key ids.
* This should not be provided if `password` authentication method is desired.
Expand Down Expand Up @@ -1128,6 +1137,11 @@ export type $OpenApiTs = {
requestBody: {
name?: Instance_Name;
is_protected?: Instance_IsProtected;
/**
* The unique ID of the reservation the instance is associated with.
*
*/
reservation_id?: string;
security_groups?: Instance_SecurityGroupIds;
/**
* The instance's volumes IDs.
Expand Down

0 comments on commit 76773a8

Please sign in to comment.