Skip to content

Commit 14a52b1

Browse files
authored
feat(instance): add field zone for PrivateNIC/PrivateNetwork (#2521)
1 parent 0d11087 commit 14a52b1

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

packages_generated/instance/src/v1/api.gen.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
validatePathParam,
99
} from '@scaleway/sdk-client'
1010
import type { ApiLocality } from '@scaleway/sdk-client'
11-
1211
import {
1312
marshalApplyBlockMigrationRequest,
1413
marshalAttachServerFileSystemRequest,

packages_generated/instance/src/v1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export const unmarshalPrivateNIC = (data: unknown): PrivateNIC => {
164164
serverId: data.server_id,
165165
state: data.state,
166166
tags: data.tags,
167+
zone: data.zone,
167168
} as PrivateNIC
168169
}
169170

@@ -2268,6 +2269,7 @@ const marshalPrivateNIC = (
22682269
server_id: request.serverId,
22692270
state: request.state,
22702271
tags: request.tags,
2272+
zone: request.zone,
22712273
})
22722274

22732275
const marshalSecurityGroupSummary = (

packages_generated/instance/src/v1/types.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ export interface PrivateNIC {
339339
* Private NIC creation date.
340340
*/
341341
creationDate?: Date
342+
/**
343+
* The zone in which the Private NIC is located.
344+
*/
345+
zone: ScwZone
342346
}
343347

344348
export interface SecurityGroupSummary {

0 commit comments

Comments
 (0)