Skip to content

Commit cf387ca

Browse files
authored
docs(flexible_ip): revamp (#616)
1 parent 23aa5e2 commit cf387ca

File tree

2 files changed

+99
-78
lines changed

2 files changed

+99
-78
lines changed

packages/clients/src/api/flexibleip/v1alpha1/api.gen.ts

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export class API extends ParentAPI {
5454
]
5555

5656
/**
57-
* Create a Flexible IP.
57+
* Create a new flexible IP. Generate a new flexible IP within a given zone,
58+
* specifying its configuration including Project ID and description.
5859
*
5960
* @param request - The request {@link CreateFlexibleIPRequest}
6061
* @returns A Promise of FlexibleIP
@@ -76,7 +77,9 @@ export class API extends ParentAPI {
7677
)
7778

7879
/**
79-
* Get a Flexible IP.
80+
* Get an existing flexible IP. Retrieve information about an existing
81+
* flexible IP, specified by its ID and zone. Its full details, including
82+
* Project ID, description and status, are returned in the response object.
8083
*
8184
* @param request - The request {@link GetFlexibleIPRequest}
8285
* @returns A Promise of FlexibleIP
@@ -143,7 +146,7 @@ export class API extends ParentAPI {
143146
)
144147

145148
/**
146-
* List Flexible IPs.
149+
* List flexible IPs. List all flexible IPs within a given zone.
147150
*
148151
* @param request - The request {@link ListFlexibleIPsRequest}
149152
* @returns A Promise of ListFlexibleIPsResponse
@@ -152,7 +155,9 @@ export class API extends ParentAPI {
152155
enrichForPagination('flexibleIps', this.pageOfListFlexibleIPs, request)
153156

154157
/**
155-
* Update a Flexible IP.
158+
* Update an existing flexible IP. Update the parameters of an existing
159+
* flexible IP, specified by its ID and zone. These parameters include tags
160+
* and description.
156161
*
157162
* @param request - The request {@link UpdateFlexibleIPRequest}
158163
* @returns A Promise of FlexibleIP
@@ -174,7 +179,9 @@ export class API extends ParentAPI {
174179
)
175180

176181
/**
177-
* Delete a Flexible IP.
182+
* Delete an existing flexible IP. Delete an existing flexible IP, specified
183+
* by its ID and zone. Note that deleting a flexible IP is permanent and
184+
* cannot be undone.
178185
*
179186
* @param request - The request {@link DeleteFlexibleIPRequest}
180187
*/
@@ -188,7 +195,8 @@ export class API extends ParentAPI {
188195
})
189196

190197
/**
191-
* Attach a Flexible IP to a server.
198+
* Attach an existing flexible IP to a server. Attach an existing flexible IP
199+
* to a specified Elastic Metal server.
192200
*
193201
* @param request - The request {@link AttachFlexibleIPRequest}
194202
* @returns A Promise of AttachFlexibleIPsResponse
@@ -210,7 +218,8 @@ export class API extends ParentAPI {
210218
)
211219

212220
/**
213-
* Detach a Flexible IP from a server.
221+
* Detach an existing flexible IP from a server. Detach an existing flexible
222+
* IP from a specified Elastic Metal server.
214223
*
215224
* @param request - The request {@link DetachFlexibleIPRequest}
216225
* @returns A Promise of DetachFlexibleIPsResponse
@@ -232,7 +241,8 @@ export class API extends ParentAPI {
232241
)
233242

234243
/**
235-
* Generate a virtual MAC on a given Flexible IP.
244+
* Generate a virtual MAC address on an existing flexible IP. Generate a
245+
* virtual MAC (Media Access Control) address on an existing flexible IP.
236246
*
237247
* @param request - The request {@link GenerateMACAddrRequest}
238248
* @returns A Promise of FlexibleIP
@@ -254,8 +264,9 @@ export class API extends ParentAPI {
254264
)
255265

256266
/**
257-
* Duplicate a Virtual MAC. Duplicate a Virtual MAC from a given Flexible IP
258-
* onto another attached on the same server.
267+
* Duplicate a virtual MAC address to another flexible IP. Duplicate a virtual
268+
* MAC address from a given flexible IP to another flexible IP attached to the
269+
* same server.
259270
*
260271
* @param request - The request {@link DuplicateMACAddrRequest}
261272
* @returns A Promise of FlexibleIP
@@ -277,8 +288,9 @@ export class API extends ParentAPI {
277288
)
278289

279290
/**
280-
* Move a virtual MAC. Move a Virtual MAC from a given Flexible IP onto
281-
* another Flexible IP.
291+
* Relocate an existing virtual MAC address to a different flexible IP.
292+
* Relocate a virtual MAC (Media Access Control) address from an existing
293+
* flexible IP to a different flexible IP.
282294
*
283295
* @param request - The request {@link MoveMACAddrRequest}
284296
* @returns A Promise of FlexibleIP
@@ -300,7 +312,8 @@ export class API extends ParentAPI {
300312
)
301313

302314
/**
303-
* Remove a virtual MAC from a Flexible IP.
315+
* Detach a given virtual MAC address from an existing flexible IP. Detach a
316+
* given MAC (Media Access Control) address from an existing flexible IP.
304317
*
305318
* @param request - The request {@link DeleteMACAddrRequest}
306319
*/

packages/clients/src/api/flexibleip/v1alpha1/types.gen.ts

Lines changed: 73 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -25,84 +25,84 @@ export type MACAddressType = 'unknown_type' | 'vmware' | 'xen' | 'kvm'
2525

2626
/** Attach flexible i ps response. */
2727
export interface AttachFlexibleIPsResponse {
28-
/** Total count of Flexible IPs being updated. */
28+
/** Total count of flexible IPs that are being updated. */
2929
totalCount: number
30-
/** Listing of Flexible IPs in updating state. */
30+
/** List of flexible IPs in an updating state. */
3131
flexibleIps: FlexibleIP[]
3232
}
3333

3434
/** Detach flexible i ps response. */
3535
export interface DetachFlexibleIPsResponse {
36-
/** Total count of Flexible IPs being detached. */
36+
/** Total count of flexible IPs that are being detached. */
3737
totalCount: number
38-
/** Listing of Flexible IPs in detaching state. */
38+
/** List of flexible IPs in a detaching state. */
3939
flexibleIps: FlexibleIP[]
4040
}
4141

4242
/** Flexible ip. */
4343
export interface FlexibleIP {
44-
/** ID of the Flexible IP. */
44+
/** ID of the flexible IP. */
4545
id: string
46-
/** Organization ID the Flexible IP is attached to. */
46+
/** ID of the Organization the flexible IP is attached to. */
4747
organizationId: string
48-
/** Project ID the Flexible IP is attached to. */
48+
/** ID of the Project the flexible IP is attached to. */
4949
projectId: string
50-
/** Description of the Flexible IP. */
50+
/** Flexible IP description. */
5151
description: string
52-
/** Tags associated with the Flexible IP. */
52+
/** Flexible IP tags. */
5353
tags: string[]
54-
/** Date of last update of the Flexible IP. */
54+
/** Date on which the flexible IP was last updated. */
5555
updatedAt?: Date
56-
/** Date of creation of the Flexible IP. */
56+
/** Date on which the flexible IP was created. */
5757
createdAt?: Date
5858
/**
59-
* Status of the Flexible IP.
59+
* Flexible IP status.
6060
*
61-
* - Ready : Flexible IP is created and ready to be attached to a server or to
62-
* have a virtual MAC generated.
63-
* - Updating: Flexible IP is being attached to a server or a virtual MAC
61+
* - Ready : flexible IP is created and ready to be attached to a server or to
62+
* be associated with a virtual MAC.
63+
* - Updating: flexible IP is being attached to a server or a virtual MAC
6464
* operation is ongoing
65-
* - Attached: Flexible IP is attached to a server
66-
* - Error: a Flexible IP operation resulted in an error
67-
* - Detaching: Flexible IP is being detached from a server
68-
* - Locked: Flexible IP resource is locked.
65+
* - Attached: flexible IP is attached to a server
66+
* - Error: a flexible IP operation resulted in an error
67+
* - Detaching: flexible IP is being detached from a server
68+
* - Locked: the resource of the flexible IP is locked.
6969
*/
7070
status: FlexibleIPStatus
71-
/** IP of the Flexible IP. */
71+
/** IP of the flexible IP. */
7272
ipAddress: string
73-
/** MAC address of the Flexible IP. */
73+
/** MAC address of the flexible IP. */
7474
macAddress?: MACAddress
75-
/** ID of the server linked to the Flexible IP. */
75+
/** ID of the server linked to the flexible IP. */
7676
serverId?: string
7777
/** Reverse DNS value. */
7878
reverse: string
79-
/** Flexible IP Availability Zone. */
79+
/** Availability Zone of the flexible IP. */
8080
zone: Zone
8181
}
8282

8383
/** List flexible i ps response. */
8484
export interface ListFlexibleIPsResponse {
85-
/** Total count of matching Flexible IPs. */
85+
/** Total count of matching flexible IPs. */
8686
totalCount: number
87-
/** Listing of Flexible IPs. */
87+
/** List of all flexible IPs. */
8888
flexibleIps: FlexibleIP[]
8989
}
9090

9191
/** Mac address. */
9292
export interface MACAddress {
93-
/** ID of the Flexible IP. */
93+
/** ID of the flexible IP. */
9494
id: string
9595
/** MAC address of the Virtual MAC. */
9696
macAddress: string
97-
/** Virtual MAC type. */
97+
/** Type of virtual MAC. */
9898
macType: MACAddressType
99-
/** Virtual MAC status. */
99+
/** Status of virtual MAC. */
100100
status: MACAddressStatus
101-
/** Date of last update of the Virtual MAC. */
101+
/** Date on which the virtual MAC was last updated. */
102102
updatedAt?: Date
103-
/** Date of creation of the Virtual MAC. */
103+
/** Date on which the virtual MAC was created. */
104104
createdAt?: Date
105-
/** MAC Addr IP Availability Zone. */
105+
/** MAC address IP Availability Zone. */
106106
zone: Zone
107107
}
108108

@@ -111,94 +111,102 @@ export type CreateFlexibleIPRequest = {
111111
zone?: Zone
112112
/** ID of the project to associate with the Flexible IP. */
113113
projectId?: string
114-
/** Description to associate with the Flexible IP, max 255 characters. */
114+
/** Flexible IP description (max. of 255 characters). */
115115
description: string
116-
/** Tags to associate to the Flexible IP. */
116+
/** Tags to associate to the flexible IP. */
117117
tags?: string[]
118-
/** Server ID on which to attach the created Flexible IP. */
118+
/** ID of the server to which the newly created flexible IP will be attached. */
119119
serverId?: string
120-
/** Reverse DNS value. */
120+
/** Value of the reverse DNS. */
121121
reverse?: string
122-
/** If true, creates a Flexible IP with an ipv6 address. */
122+
/** Defines whether the flexible IP has an IPv6 address. */
123123
isIpv6: boolean
124124
}
125125

126126
export type GetFlexibleIPRequest = {
127127
/** Zone to target. If none is passed will use default zone from the config. */
128128
zone?: Zone
129-
/** Flexible IP ID. */
129+
/** ID of the flexible IP. */
130130
fipId: string
131131
}
132132

133133
export type ListFlexibleIPsRequest = {
134134
/** Zone to target. If none is passed will use default zone from the config. */
135135
zone?: Zone
136-
/** The sort order of the returned Flexible IPs. */
136+
/** Sort order of the returned flexible IPs. */
137137
orderBy?: ListFlexibleIPsRequestOrderBy
138-
/** The page number for the returned Flexible IPs. */
138+
/** Page number. */
139139
page?: number
140-
/** The maximum number of Flexible IPs per page. */
140+
/** Maximum number of flexible IPs per page. */
141141
pageSize?: number
142-
/** Filter Flexible IPs with one or more matching tags. */
142+
/**
143+
* Filter by tag, only flexible IPs with one or more matching tags will be
144+
* returned.
145+
*/
143146
tags?: string[]
144-
/** Filter Flexible IPs by status. */
147+
/** Filter by status, only flexible IPs with this status will be returned. */
145148
status?: FlexibleIPStatus[]
146-
/** Filter Flexible IPs by server IDs. */
149+
/**
150+
* Filter by server IDs, only flexible IPs with these server IDs will be
151+
* returned.
152+
*/
147153
serverIds?: string[]
148-
/** Filter Flexible IPs by organization ID. */
154+
/**
155+
* Filter by Organization ID, only flexible IPs from this Organization will be
156+
* returned.
157+
*/
149158
organizationId?: string
150-
/** Filter Flexible IPs by project ID. */
159+
/** Filter by Project ID, only flexible IPs from this Project will be returned. */
151160
projectId?: string
152161
}
153162

154163
export type UpdateFlexibleIPRequest = {
155164
/** Zone to target. If none is passed will use default zone from the config. */
156165
zone?: Zone
157-
/** ID of the Flexible IP to update. */
166+
/** ID of the flexible IP to update. */
158167
fipId: string
159-
/** Description to associate with the Flexible IP, max 255 characters. */
168+
/** Flexible IP description (max. 255 characters). */
160169
description?: string
161-
/** Tags to associate with the Flexible IP. */
170+
/** Tags associated with the flexible IP. */
162171
tags?: string[]
163-
/** Reverse DNS value. */
172+
/** Value of the reverse DNS. */
164173
reverse?: string
165174
}
166175

167176
export type DeleteFlexibleIPRequest = {
168177
/** Zone to target. If none is passed will use default zone from the config. */
169178
zone?: Zone
170-
/** ID of the Flexible IP to delete. */
179+
/** ID of the flexible IP to delete. */
171180
fipId: string
172181
}
173182

174183
export type AttachFlexibleIPRequest = {
175184
/** Zone to target. If none is passed will use default zone from the config. */
176185
zone?: Zone
177186
/**
178-
* A list of Flexible IP IDs to attach. Multiple IDs can be provided as long
179-
* as Flexible IPs belong to the same MAC groups (see details about MAC
180-
* groups).
187+
* List of flexible IP IDs to attach to a server. Multiple IDs can be
188+
* provided, but note that flexible IPs must belong to the same MAC group (see
189+
* details about MAC groups).
181190
*/
182191
fipsIds: string[]
183-
/** A server ID on which to attach the Flexible IPs. */
192+
/** ID of the server on which to attach the flexible IPs. */
184193
serverId: string
185194
}
186195

187196
export type DetachFlexibleIPRequest = {
188197
/** Zone to target. If none is passed will use default zone from the config. */
189198
zone?: Zone
190199
/**
191-
* A list of Flexible IP IDs to detach. Multiple IDs can be provided as long
192-
* as Flexible IPs belong to the same MAC groups (see details about MAC
193-
* groups).
200+
* List of flexible IP IDs to detach from a server. Multiple IDs can be
201+
* provided. Note that flexible IPs must belong to the same MAC group.
194202
*/
195203
fipsIds: string[]
196204
}
197205

198206
export type GenerateMACAddrRequest = {
199207
/** Zone to target. If none is passed will use default zone from the config. */
200208
zone?: Zone
201-
/** Flexible IP ID on which to generate a Virtual MAC. */
209+
/** ID of the flexible IP for which to generate a virtual MAC. */
202210
fipId: string
203211
/** TODO. */
204212
macType: MACAddressType
@@ -208,13 +216,13 @@ export type DuplicateMACAddrRequest = {
208216
/** Zone to target. If none is passed will use default zone from the config. */
209217
zone?: Zone
210218
/**
211-
* Flexible IP ID on which to duplicate the Virtual MAC. Flexible IPs need to
212-
* be attached to the same server.
219+
* ID of the flexible IP on which to duplicate the virtual MAC. Note that the
220+
* flexible IPs need to be attached to the same server.
213221
*/
214222
fipId: string
215223
/**
216-
* Flexible IP ID to duplicate the Virtual MAC from. Flexible IPs need to be
217-
* attached to the same server.
224+
* ID of the flexible IP to duplicate the Virtual MAC from. Note that flexible
225+
* IPs need to be attached to the same server.
218226
*/
219227
duplicateFromFipId: string
220228
}
@@ -230,9 +238,9 @@ export type DeleteMACAddrRequest = {
230238
/** Zone to target. If none is passed will use default zone from the config. */
231239
zone?: Zone
232240
/**
233-
* Flexible IP ID from which to delete the Virtual MAC. If the Flexible IP
234-
* belongs to a MAC group, the MAC will be removed from the MAC group and from
235-
* the Flexible IP.
241+
* ID of the flexible IP from which to delete the virtual MAC. If the flexible
242+
* IP belongs to a MAC group, the MAC will be removed from both the MAC group
243+
* and flexible IP.
236244
*/
237245
fipId: string
238246
}

0 commit comments

Comments
 (0)