Skip to content

Commit e18f76c

Browse files
authored
docs(vpc): revamp (#609)
1 parent ba02c93 commit e18f76c

File tree

2 files changed

+56
-33
lines changed

2 files changed

+56
-33
lines changed

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ export class API extends ParentAPI {
6969
)
7070

7171
/**
72-
* List private networks.
72+
* List Private Networks. List existing Private Networks in a specified
73+
* Availability Zone. By default, the Private Networks returned in the list
74+
* are ordered by creation date in ascending order, though this can be
75+
* modified via the order_by field.
7376
*
7477
* @param request - The request {@link ListPrivateNetworksRequest}
7578
* @returns A Promise of ListPrivateNetworksResponse
@@ -82,7 +85,8 @@ export class API extends ParentAPI {
8285
)
8386

8487
/**
85-
* Create a private network.
88+
* Create a Private Network. Create a new Private Network. Once created, you
89+
* can attach Scaleway resources in the same Availability Zone.
8690
*
8791
* @param request - The request {@link CreatePrivateNetworkRequest}
8892
* @returns A Promise of PrivateNetwork
@@ -106,7 +110,9 @@ export class API extends ParentAPI {
106110
)
107111

108112
/**
109-
* Get a private network.
113+
* Get a Private Network. Retrieve information about an existing Private
114+
* Network, specified by its Private Network ID. Its full details are returned
115+
* in the response object.
110116
*
111117
* @param request - The request {@link GetPrivateNetworkRequest}
112118
* @returns A Promise of PrivateNetwork
@@ -127,7 +133,8 @@ export class API extends ParentAPI {
127133
)
128134

129135
/**
130-
* Update private network.
136+
* Update Private Network. Update parameters (such as name or tags) of an
137+
* existing Private Network, specified by its Private Network ID.
131138
*
132139
* @param request - The request {@link UpdatePrivateNetworkRequest}
133140
* @returns A Promise of PrivateNetwork
@@ -152,7 +159,8 @@ export class API extends ParentAPI {
152159
)
153160

154161
/**
155-
* Delete a private network.
162+
* Delete a Private Network. Delete an existing Private Network. Note that you
163+
* must first detach all resources from the network, in order to delete it.
156164
*
157165
* @param request - The request {@link DeletePrivateNetworkRequest}
158166
*/

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

Lines changed: 43 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,85 +15,100 @@ export interface ListPrivateNetworksResponse {
1515

1616
/** Private network. */
1717
export interface PrivateNetwork {
18-
/** The private network ID. */
18+
/** Private Network ID. */
1919
id: string
20-
/** The private network name. */
20+
/** Private Network name. */
2121
name: string
22-
/** The private network organization. */
22+
/** Scaleway Organization the Private Network belongs to. */
2323
organizationId: string
24-
/** The private network project ID. */
24+
/** Scaleway Project the Private Network belongs to. */
2525
projectId: string
26-
/** The zone in which the private network is available. */
26+
/** Availability Zone in which the Private Network is available. */
2727
zone: Zone
28-
/** The private network tags. */
28+
/** Tags of the Private Network. */
2929
tags: string[]
30-
/** The private network creation date. */
30+
/** Date the Private Network was created. */
3131
createdAt?: Date
32-
/** The last private network modification date. */
32+
/** Date the Private Network was last modified. */
3333
updatedAt?: Date
34-
/** Private network subnets CIDR. */
34+
/** Private Network subnets CIDR. */
3535
subnets: string[]
3636
}
3737

3838
export type ListPrivateNetworksRequest = {
3939
/** Zone to target. If none is passed will use default zone from the config. */
4040
zone?: Zone
41-
/** The sort order of the returned private networks. */
41+
/** Sort order of the returned Private Networks. */
4242
orderBy?: ListPrivateNetworksRequestOrderBy
43-
/** The page number for the returned private networks. */
43+
/** Page number to return, from the paginated results. */
4444
page?: number
45-
/** The maximum number of private networks per page. */
45+
/** Maximum number of Private Networks to return per page. */
4646
pageSize?: number
47-
/** Filter private networks with names containing this string. */
47+
/**
48+
* Name to filter for. Only Private Networks with names containing this string
49+
* will be returned.
50+
*/
4851
name?: string
49-
/** Filter private networks with one or more matching tags. */
52+
/**
53+
* Tags to filter for. Only Private Networks with one or more matching tags
54+
* will be returned.
55+
*/
5056
tags?: string[]
51-
/** The organization ID on which to filter the returned private networks. */
57+
/**
58+
* Organization ID to filter for. Only Private Networks belonging to this
59+
* Organization will be returned.
60+
*/
5261
organizationId?: string
53-
/** The project ID on which to filter the returned private networks. */
62+
/**
63+
* Project ID to filter for. Only Private Networks belonging to this Project
64+
* will be returned.
65+
*/
5466
projectId?: string
55-
/** The PrivateNetwork IDs on which to filter the returned private networks. */
67+
/**
68+
* Private Network IDs to filter for. Only Private Networks with one of these
69+
* IDs will be returned.
70+
*/
5671
privateNetworkIds?: string[]
57-
/** Include regional Private Networks. */
72+
/** Defines whether to include regional Private Networks in the response. */
5873
includeRegional?: boolean
5974
}
6075

6176
export type CreatePrivateNetworkRequest = {
6277
/** Zone to target. If none is passed will use default zone from the config. */
6378
zone?: Zone
64-
/** The name of the private network. */
79+
/** Name for the Private Network. */
6580
name?: string
66-
/** The project ID of the private network. */
81+
/** Scaleway Project in which to create the Private Network. */
6782
projectId?: string
68-
/** The private networks tags. */
83+
/** Tags for the Private Network. */
6984
tags?: string[]
70-
/** Private network subnets CIDR. */
85+
/** Private Network subnets CIDR. */
7186
subnets?: string[]
7287
}
7388

7489
export type GetPrivateNetworkRequest = {
7590
/** Zone to target. If none is passed will use default zone from the config. */
7691
zone?: Zone
77-
/** The private network id. */
92+
/** Private Network ID. */
7893
privateNetworkId: string
7994
}
8095

8196
export type UpdatePrivateNetworkRequest = {
8297
/** Zone to target. If none is passed will use default zone from the config. */
8398
zone?: Zone
84-
/** The private network ID. */
99+
/** Private Network ID. */
85100
privateNetworkId: string
86-
/** The name of the private network. */
101+
/** Name of the private network. */
87102
name?: string
88-
/** The private networks tags. */
103+
/** Tags for the Private Network. */
89104
tags?: string[]
90-
/** @deprecated Private network subnets CIDR (deprecated). */
105+
/** @deprecated Private Network subnets CIDR (deprecated). */
91106
subnets?: string[]
92107
}
93108

94109
export type DeletePrivateNetworkRequest = {
95110
/** Zone to target. If none is passed will use default zone from the config. */
96111
zone?: Zone
97-
/** The private network ID. */
112+
/** Private Network ID. */
98113
privateNetworkId: string
99114
}

0 commit comments

Comments
 (0)