Skip to content
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
7 changes: 1 addition & 6 deletions packages/clients/src/api/instance/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ export const unmarshalCreateImageResponse = (data: unknown) => {

return {
image: data.image ? unmarshalImage(data.image) : undefined,
location: data.Location,
} as CreateImageResponse
}

Expand All @@ -742,10 +741,7 @@ export const unmarshalCreateIpResponse = (data: unknown) => {
)
}

return {
ip: data.ip ? unmarshalIp(data.ip) : undefined,
location: data.Location,
} as CreateIpResponse
return { ip: data.ip ? unmarshalIp(data.ip) : undefined } as CreateIpResponse
}

export const unmarshalCreatePlacementGroupResponse = (data: unknown) => {
Expand Down Expand Up @@ -835,7 +831,6 @@ export const unmarshalCreateVolumeResponse = (data: unknown) => {
}

return {
location: data.Location,
volume: data.volume ? unmarshalVolume(data.volume) : undefined,
} as CreateVolumeResponse
}
Expand Down
8 changes: 4 additions & 4 deletions packages/clients/src/api/instance/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,10 @@ export interface Bootscript {

export interface CreateImageResponse {
image?: Image
location: string
}

export interface CreateIpResponse {
ip?: Ip
location: string
}

export interface CreatePlacementGroupResponse {
Expand Down Expand Up @@ -154,7 +152,6 @@ export interface CreateSnapshotResponse {

export interface CreateVolumeResponse {
volume?: Volume
location: string
}

export interface Dashboard {
Expand Down Expand Up @@ -308,9 +305,12 @@ export interface ListSecurityGroupRulesResponse {
rules: Array<SecurityGroupRule>
}

/** List security groups response */
export interface ListSecurityGroupsResponse {
securityGroups: Array<SecurityGroup>
/** Total number of security groups */
totalCount: number
/** List of security groups */
securityGroups: Array<SecurityGroup>
}

export interface ListServerActionsResponse {
Expand Down