Skip to content

Commit 7900a3b

Browse files
authored
feat(vpc/v2): expose Subnet fields that v1 exposed (#1292)
1 parent ca32ce6 commit 7900a3b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

packages/clients/src/api/vpc/v2/marshalling.gen.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ const unmarshalSubnet = (data: unknown): Subnet => {
3838
return {
3939
createdAt: unmarshalDate(data.created_at),
4040
id: data.id,
41+
privateNetworkId: data.private_network_id,
42+
projectId: data.project_id,
4143
subnet: data.subnet,
4244
updatedAt: unmarshalDate(data.updated_at),
45+
vpcId: data.vpc_id,
4346
} as Subnet
4447
}
4548

packages/clients/src/api/vpc/v2/types.gen.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export interface Subnet {
2525
updatedAt?: Date
2626
/** Subnet CIDR. */
2727
subnet: string
28+
/** Scaleway Project the subnet belongs to. */
29+
projectId: string
30+
/** Private Network the subnet belongs to. */
31+
privateNetworkId: string
32+
/** VPC the subnet belongs to. */
33+
vpcId: string
2834
}
2935

3036
export interface PrivateNetwork {

0 commit comments

Comments
 (0)