Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reservation_id #2

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
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
Loading