Skip to content

Commit 22ba5bb

Browse files
authored
docs(vpc/v2): update documentation (#79)
1 parent 9437de8 commit 22ba5bb

File tree

4 files changed

+130
-130
lines changed

4 files changed

+130
-130
lines changed

scaleway-async/scaleway_async/vpc/v1/api.py

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ async def list_private_networks(
4747
) -> ListPrivateNetworksResponse:
4848
"""
4949
List private networks
50-
:param zone: Zone to target. If none is passed will use default zone from the config
51-
:param order_by: The sort order of the returned private networks
52-
:param page: The page number for the returned private networks
53-
:param page_size: The maximum number of private networks per page
54-
:param name: Filter private networks with names containing this string
55-
:param tags: Filter private networks with one or more matching tags
56-
:param organization_id: The organization ID on which to filter the returned private networks
57-
:param project_id: The project ID on which to filter the returned private networks
58-
:param private_network_ids: The PrivateNetwork IDs on which to filter the returned private networks
50+
:param zone: Zone to target. If none is passed will use default zone from the config.
51+
:param order_by: The sort order of the returned private networks.
52+
:param page: The page number for the returned private networks.
53+
:param page_size: The maximum number of private networks per page.
54+
:param name: Filter private networks with names containing this string.
55+
:param tags: Filter private networks with one or more matching tags.
56+
:param organization_id: The organization ID on which to filter the returned private networks.
57+
:param project_id: The project ID on which to filter the returned private networks.
58+
:param private_network_ids: The PrivateNetwork IDs on which to filter the returned private networks.
5959
:return: :class:`ListPrivateNetworksResponse <ListPrivateNetworksResponse>`
6060
6161
Usage:
@@ -100,15 +100,15 @@ async def list_private_networks_all(
100100
) -> List[PrivateNetwork]:
101101
"""
102102
List private networks
103-
:param zone: Zone to target. If none is passed will use default zone from the config
104-
:param order_by: The sort order of the returned private networks
105-
:param page: The page number for the returned private networks
106-
:param page_size: The maximum number of private networks per page
107-
:param name: Filter private networks with names containing this string
108-
:param tags: Filter private networks with one or more matching tags
109-
:param organization_id: The organization ID on which to filter the returned private networks
110-
:param project_id: The project ID on which to filter the returned private networks
111-
:param private_network_ids: The PrivateNetwork IDs on which to filter the returned private networks
103+
:param zone: Zone to target. If none is passed will use default zone from the config.
104+
:param order_by: The sort order of the returned private networks.
105+
:param page: The page number for the returned private networks.
106+
:param page_size: The maximum number of private networks per page.
107+
:param name: Filter private networks with names containing this string.
108+
:param tags: Filter private networks with one or more matching tags.
109+
:param organization_id: The organization ID on which to filter the returned private networks.
110+
:param project_id: The project ID on which to filter the returned private networks.
111+
:param private_network_ids: The PrivateNetwork IDs on which to filter the returned private networks.
112112
:return: :class:`List[ListPrivateNetworksResponse] <List[ListPrivateNetworksResponse]>`
113113
114114
Usage:
@@ -145,11 +145,11 @@ async def create_private_network(
145145
) -> PrivateNetwork:
146146
"""
147147
Create a private network
148-
:param zone: Zone to target. If none is passed will use default zone from the config
149-
:param name: The name of the private network
150-
:param project_id: The project ID of the private network
151-
:param tags: The private networks tags
152-
:param subnets: Private network subnets CIDR
148+
:param zone: Zone to target. If none is passed will use default zone from the config.
149+
:param name: The name of the private network.
150+
:param project_id: The project ID of the private network.
151+
:param tags: The private networks tags.
152+
:param subnets: Private network subnets CIDR.
153153
:return: :class:`PrivateNetwork <PrivateNetwork>`
154154
155155
Usage:
@@ -186,8 +186,8 @@ async def get_private_network(
186186
) -> PrivateNetwork:
187187
"""
188188
Get a private network
189-
:param zone: Zone to target. If none is passed will use default zone from the config
190-
:param private_network_id: The private network id
189+
:param zone: Zone to target. If none is passed will use default zone from the config.
190+
:param private_network_id: The private network id.
191191
:return: :class:`PrivateNetwork <PrivateNetwork>`
192192
193193
Usage:
@@ -220,11 +220,11 @@ async def update_private_network(
220220
) -> PrivateNetwork:
221221
"""
222222
Update private network
223-
:param zone: Zone to target. If none is passed will use default zone from the config
224-
:param private_network_id: The private network ID
225-
:param name: The name of the private network
226-
:param tags: The private networks tags
227-
:param subnets: Private network subnets CIDR (deprecated)
223+
:param zone: Zone to target. If none is passed will use default zone from the config.
224+
:param private_network_id: The private network ID.
225+
:param name: The name of the private network.
226+
:param tags: The private networks tags.
227+
:param subnets: Private network subnets CIDR (deprecated).
228228
:return: :class:`PrivateNetwork <PrivateNetwork>`
229229
230230
Usage:
@@ -264,8 +264,8 @@ async def delete_private_network(
264264
) -> Optional[None]:
265265
"""
266266
Delete a private network
267-
:param zone: Zone to target. If none is passed will use default zone from the config
268-
:param private_network_id: The private network ID
267+
:param zone: Zone to target. If none is passed will use default zone from the config.
268+
:param private_network_id: The private network ID.
269269
270270
Usage:
271271
::

scaleway-async/scaleway_async/vpc/v1/types.py

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,169 +32,169 @@ class ListPrivateNetworksResponse:
3232
@dataclass
3333
class PrivateNetwork:
3434
"""
35-
Private network
35+
Private network.
3636
"""
3737

3838
id: str
3939
"""
40-
The private network ID
40+
The private network ID.
4141
"""
4242

4343
name: str
4444
"""
45-
The private network name
45+
The private network name.
4646
"""
4747

4848
organization_id: str
4949
"""
50-
The private network organization
50+
The private network organization.
5151
"""
5252

5353
project_id: str
5454
"""
55-
The private network project ID
55+
The private network project ID.
5656
"""
5757

5858
zone: Zone
5959
"""
60-
The zone in which the private network is available
60+
The zone in which the private network is available.
6161
"""
6262

6363
tags: List[str]
6464
"""
65-
The private network tags
65+
The private network tags.
6666
"""
6767

6868
created_at: Optional[datetime]
6969
"""
70-
The private network creation date
70+
The private network creation date.
7171
"""
7272

7373
updated_at: Optional[datetime]
7474
"""
75-
The last private network modification date
75+
The last private network modification date.
7676
"""
7777

7878
subnets: List[str]
7979
"""
80-
Private network subnets CIDR
80+
Private network subnets CIDR.
8181
"""
8282

8383

8484
@dataclass
8585
class ListPrivateNetworksRequest:
8686
zone: Optional[Zone]
8787
"""
88-
Zone to target. If none is passed will use default zone from the config
88+
Zone to target. If none is passed will use default zone from the config.
8989
"""
9090

9191
order_by: Optional[ListPrivateNetworksRequestOrderBy]
9292
"""
93-
The sort order of the returned private networks
93+
The sort order of the returned private networks.
9494
"""
9595

9696
page: Optional[int]
9797
"""
98-
The page number for the returned private networks
98+
The page number for the returned private networks.
9999
"""
100100

101101
page_size: Optional[int]
102102
"""
103-
The maximum number of private networks per page
103+
The maximum number of private networks per page.
104104
"""
105105

106106
name: Optional[str]
107107
"""
108-
Filter private networks with names containing this string
108+
Filter private networks with names containing this string.
109109
"""
110110

111111
tags: Optional[List[str]]
112112
"""
113-
Filter private networks with one or more matching tags
113+
Filter private networks with one or more matching tags.
114114
"""
115115

116116
organization_id: Optional[str]
117117
"""
118-
The organization ID on which to filter the returned private networks
118+
The organization ID on which to filter the returned private networks.
119119
"""
120120

121121
project_id: Optional[str]
122122
"""
123-
The project ID on which to filter the returned private networks
123+
The project ID on which to filter the returned private networks.
124124
"""
125125

126126
private_network_ids: Optional[List[str]]
127127
"""
128-
The PrivateNetwork IDs on which to filter the returned private networks
128+
The PrivateNetwork IDs on which to filter the returned private networks.
129129
"""
130130

131131

132132
@dataclass
133133
class CreatePrivateNetworkRequest:
134134
zone: Optional[Zone]
135135
"""
136-
Zone to target. If none is passed will use default zone from the config
136+
Zone to target. If none is passed will use default zone from the config.
137137
"""
138138

139139
name: Optional[str]
140140
"""
141-
The name of the private network
141+
The name of the private network.
142142
"""
143143

144144
project_id: Optional[str]
145145
"""
146-
The project ID of the private network
146+
The project ID of the private network.
147147
"""
148148

149149
tags: Optional[List[str]]
150150
"""
151-
The private networks tags
151+
The private networks tags.
152152
"""
153153

154154
subnets: Optional[List[str]]
155155
"""
156-
Private network subnets CIDR
156+
Private network subnets CIDR.
157157
"""
158158

159159

160160
@dataclass
161161
class GetPrivateNetworkRequest:
162162
zone: Optional[Zone]
163163
"""
164-
Zone to target. If none is passed will use default zone from the config
164+
Zone to target. If none is passed will use default zone from the config.
165165
"""
166166

167167
private_network_id: str
168168
"""
169-
The private network id
169+
The private network id.
170170
"""
171171

172172

173173
@dataclass
174174
class UpdatePrivateNetworkRequest:
175175
zone: Optional[Zone]
176176
"""
177-
Zone to target. If none is passed will use default zone from the config
177+
Zone to target. If none is passed will use default zone from the config.
178178
"""
179179

180180
private_network_id: str
181181
"""
182-
The private network ID
182+
The private network ID.
183183
"""
184184

185185
name: Optional[str]
186186
"""
187-
The name of the private network
187+
The name of the private network.
188188
"""
189189

190190
tags: Optional[List[str]]
191191
"""
192-
The private networks tags
192+
The private networks tags.
193193
"""
194194

195195
subnets: Optional[List[str]]
196196
"""
197-
Private network subnets CIDR (deprecated)
197+
Private network subnets CIDR (deprecated).
198198
:deprecated
199199
"""
200200

@@ -203,10 +203,10 @@ class UpdatePrivateNetworkRequest:
203203
class DeletePrivateNetworkRequest:
204204
zone: Optional[Zone]
205205
"""
206-
Zone to target. If none is passed will use default zone from the config
206+
Zone to target. If none is passed will use default zone from the config.
207207
"""
208208

209209
private_network_id: str
210210
"""
211-
The private network ID
211+
The private network ID.
212212
"""

0 commit comments

Comments
 (0)