Skip to content

Commit 62bdf3b

Browse files
authored
feat(lb): publish flexible ip tags feature (#1257)
1 parent 2f361cf commit 62bdf3b

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

packages/clients/src/api/lb/v1/api.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ export class ZonedAPI extends ParentAPI {
401401
request.pageSize ?? this.client.settings.defaultPageSize,
402402
],
403403
['project_id', request.projectId],
404+
['tags', request.tags],
404405
),
405406
},
406407
unmarshalListIpsResponse,
@@ -1616,6 +1617,7 @@ export class API extends ParentAPI {
16161617
request.pageSize ?? this.client.settings.defaultPageSize,
16171618
],
16181619
['project_id', request.projectId],
1620+
['tags', request.tags],
16191621
),
16201622
},
16211623
unmarshalListIpsResponse,

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export const unmarshalIp = (data: unknown): Ip => {
118118
projectId: data.project_id,
119119
region: data.region,
120120
reverse: data.reverse,
121+
tags: data.tags,
121122
zone: data.zone,
122123
} as Ip
123124
}
@@ -1136,6 +1137,7 @@ export const marshalCreateIpRequest = (
11361137
): Record<string, unknown> => ({
11371138
is_ipv6: request.isIpv6,
11381139
reverse: request.reverse,
1140+
tags: request.tags,
11391141
...resolveOneOf([
11401142
{
11411143
default: defaults.defaultProjectId,
@@ -1404,6 +1406,7 @@ export const marshalUpdateIpRequest = (
14041406
): Record<string, unknown> => ({
14051407
lb_id: request.lbId,
14061408
reverse: request.reverse,
1409+
tags: request.tags,
14071410
})
14081411

14091412
export const marshalUpdateLbRequest = (
@@ -1575,6 +1578,7 @@ export const marshalZonedApiCreateIpRequest = (
15751578
): Record<string, unknown> => ({
15761579
is_ipv6: request.isIpv6,
15771580
reverse: request.reverse,
1581+
tags: request.tags,
15781582
...resolveOneOf([
15791583
{
15801584
default: defaults.defaultProjectId,
@@ -1840,6 +1844,7 @@ export const marshalZonedApiUpdateIpRequest = (
18401844
): Record<string, unknown> => ({
18411845
lb_id: request.lbId,
18421846
reverse: request.reverse,
1847+
tags: request.tags,
18431848
})
18441849

18451850
export const marshalZonedApiUpdateLbRequest = (

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ export interface Ip {
220220
lbId?: string
221221
/** Reverse DNS (domain name) of the IP address. */
222222
reverse: string
223+
/** IP tags. */
224+
tags: string[]
223225
/** @deprecated The region the IP address is in. */
224226
region?: Region
225227
/** The zone the IP address is in. */
@@ -982,6 +984,8 @@ export type CreateIpRequest = {
982984
reverse?: string
983985
/** If true, creates a Flexible IP with an ipv6 address. */
984986
isIpv6: boolean
987+
/** List of tags for the IP. */
988+
tags?: string[]
985989
}
986990

987991
export type CreateLbRequest = {
@@ -1440,6 +1444,11 @@ export type ListIPsRequest = {
14401444
projectId?: string
14411445
/** IP type to filter for. */
14421446
ipType?: ListIpsRequestIpType
1447+
/**
1448+
* Tag to filter for, only IPs with one or more matching tags will be
1449+
* returned.
1450+
*/
1451+
tags?: string[]
14431452
}
14441453

14451454
export interface ListIpsResponse {
@@ -1897,6 +1906,8 @@ export type UpdateIpRequest = {
18971906
reverse?: string
18981907
/** ID of the server on which to attach the flexible IP. */
18991908
lbId?: string
1909+
/** List of tags for the IP. */
1910+
tags?: string[]
19001911
}
19011912

19021913
export type UpdateLbRequest = {
@@ -2182,6 +2193,8 @@ export type ZonedApiCreateIpRequest = {
21822193
reverse?: string
21832194
/** If true, creates a Flexible IP with an ipv6 address. */
21842195
isIpv6: boolean
2196+
/** List of tags for the IP. */
2197+
tags?: string[]
21852198
}
21862199

21872200
export type ZonedApiCreateLbRequest = {
@@ -2522,6 +2535,11 @@ export type ZonedApiListIPsRequest = {
25222535
projectId?: string
25232536
/** IP type to filter for. */
25242537
ipType?: ListIpsRequestIpType
2538+
/**
2539+
* Tag to filter for, only IPs with one or more matching tags will be
2540+
* returned.
2541+
*/
2542+
tags?: string[]
25252543
}
25262544

25272545
export type ZonedApiListLbPrivateNetworksRequest = {
@@ -2891,6 +2909,8 @@ export type ZonedApiUpdateIpRequest = {
28912909
reverse?: string
28922910
/** ID of the server on which to attach the flexible IP. */
28932911
lbId?: string
2912+
/** List of tags for the IP. */
2913+
tags?: string[]
28942914
}
28952915

28962916
export type ZonedApiUpdateLbRequest = {

0 commit comments

Comments
 (0)