Skip to content

Commit

Permalink
Merge pull request #3 from genesiscloud/add-dns-name-field-instance
Browse files Browse the repository at this point in the history
Add support for DNS name inside instance object
  • Loading branch information
diogopms authored Jul 8, 2024
2 parents 76773a8 + 1b1330b commit 9dae8e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/schemas.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ export const $Instance = {
hostname: {
$ref: "#/components/schemas/Instance.Hostname",
},
dns_name: {
$ref: "#/components/schemas/Instance.DNSName",
},
reservation_id: {
type: "string",
description:
Expand Down Expand Up @@ -554,6 +557,7 @@ export const $Instance = {
"id",
"name",
"hostname",
"dns_name",
"type",
"os_type",
"public_ip",
Expand All @@ -580,6 +584,11 @@ export const $Instance_Hostname = {
description: "The hostname of your instance.",
} as const;

export const $Instance_DNSName = {
type: "string",
description: "The dns name of your instance.",
} as const;

export const $ImageId = {
type: "string",
description:
Expand Down
6 changes: 6 additions & 0 deletions src/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export type Instance = {
id: string;
name: Instance_Name;
hostname: Instance_Hostname;
dns_name: Instance_DNSName;
/**
* The unique ID of the reservation the instance is associated with.
*/
Expand Down Expand Up @@ -324,6 +325,11 @@ export type Instance_Name = string;
*/
export type Instance_Hostname = string;

/**
* The dns name of your instance.
*/
export type Instance_DNSName = string;

/**
* A unique number that can be used to identify and reference a specific image.
*/
Expand Down

0 comments on commit 9dae8e2

Please sign in to comment.