Skip to content

Commit cb0895a

Browse files
authored
fix(instance): remove unused fields (#181)
1 parent 9c884c8 commit cb0895a

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

packages/clients/src/api/instance/v1/marshalling.gen.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,6 @@ export const unmarshalCreateImageResponse = (data: unknown) => {
731731

732732
return {
733733
image: data.image ? unmarshalImage(data.image) : undefined,
734-
location: data.Location,
735734
} as CreateImageResponse
736735
}
737736

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

745-
return {
746-
ip: data.ip ? unmarshalIp(data.ip) : undefined,
747-
location: data.Location,
748-
} as CreateIpResponse
744+
return { ip: data.ip ? unmarshalIp(data.ip) : undefined } as CreateIpResponse
749745
}
750746

751747
export const unmarshalCreatePlacementGroupResponse = (data: unknown) => {
@@ -835,7 +831,6 @@ export const unmarshalCreateVolumeResponse = (data: unknown) => {
835831
}
836832

837833
return {
838-
location: data.Location,
839834
volume: data.volume ? unmarshalVolume(data.volume) : undefined,
840835
} as CreateVolumeResponse
841836
}

packages/clients/src/api/instance/v1/types.gen.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,10 @@ export interface Bootscript {
119119

120120
export interface CreateImageResponse {
121121
image?: Image
122-
location: string
123122
}
124123

125124
export interface CreateIpResponse {
126125
ip?: Ip
127-
location: string
128126
}
129127

130128
export interface CreatePlacementGroupResponse {
@@ -154,7 +152,6 @@ export interface CreateSnapshotResponse {
154152

155153
export interface CreateVolumeResponse {
156154
volume?: Volume
157-
location: string
158155
}
159156

160157
export interface Dashboard {
@@ -308,9 +305,12 @@ export interface ListSecurityGroupRulesResponse {
308305
rules: Array<SecurityGroupRule>
309306
}
310307

308+
/** List security groups response */
311309
export interface ListSecurityGroupsResponse {
312-
securityGroups: Array<SecurityGroup>
310+
/** Total number of security groups */
313311
totalCount: number
312+
/** List of security groups */
313+
securityGroups: Array<SecurityGroup>
314314
}
315315

316316
export interface ListServerActionsResponse {

0 commit comments

Comments
 (0)