9
9
10
10
@dataclass
11
11
class LinodeInterfacesSettingsDefaultRouteOptions (JSONObject ):
12
+ """
13
+ The options used to configure the default route settings for a Linode's network interfaces.
14
+ """
15
+
12
16
ipv4_interface_id : Optional [int ] = None
13
17
ipv6_interface_id : Optional [int ] = None
14
18
15
19
16
20
@dataclass
17
21
class LinodeInterfacesSettingsDefaultRoute (JSONObject ):
22
+ """
23
+ The default route settings for a Linode's network interfaces.
24
+ """
25
+
18
26
put_class = LinodeInterfacesSettingsDefaultRouteOptions
19
27
20
28
ipv4_interface_id : Optional [int ] = None
@@ -24,6 +32,12 @@ class LinodeInterfacesSettingsDefaultRoute(JSONObject):
24
32
25
33
26
34
class LinodeInterfacesSettings (Base ):
35
+ """"
36
+ The settings for a Linode's network interfaces.
37
+
38
+ API Documentation: Not yet available.
39
+ """
40
+
27
41
api_endpoint = "/linode/instances/{id}/interfaces/settings"
28
42
29
43
properties = {
@@ -161,6 +175,10 @@ class LinodeInterfaceOptions(JSONObject):
161
175
162
176
@dataclass
163
177
class LinodeInterfaceDefaultRoute (JSONObject ):
178
+ """
179
+ The default route configuration of a Linode Interface.
180
+ """
181
+
164
182
put_class = LinodeInterfaceDefaultRouteOptions
165
183
166
184
ipv4 : bool = False
@@ -169,6 +187,10 @@ class LinodeInterfaceDefaultRoute(JSONObject):
169
187
170
188
@dataclass
171
189
class LinodeInterfaceVPCIPv4Address (JSONObject ):
190
+ """
191
+ A single address under the IPv4 configuration of a VPC Linode Interface.
192
+ """
193
+
172
194
put_class = LinodeInterfaceVPCIPv4AddressOptions
173
195
174
196
address : str = ""
@@ -178,13 +200,21 @@ class LinodeInterfaceVPCIPv4Address(JSONObject):
178
200
179
201
@dataclass
180
202
class LinodeInterfaceVPCIPv4Range (JSONObject ):
203
+ """
204
+ A single range under the IPv4 configuration of a VPC Linode Interface.
205
+ """
206
+
181
207
put_class = LinodeInterfaceVPCIPv4RangeOptions
182
208
183
209
range : str = ""
184
210
185
211
186
212
@dataclass
187
213
class LinodeInterfaceVPCIPv4 (JSONObject ):
214
+ """
215
+ A single address under the IPv4 configuration of a VPC Linode Interface.
216
+ """
217
+
188
218
put_class = LinodeInterfaceVPCIPv4Options
189
219
190
220
addresses : List [LinodeInterfaceVPCIPv4Address ] = field (default_factory = list )
@@ -193,6 +223,10 @@ class LinodeInterfaceVPCIPv4(JSONObject):
193
223
194
224
@dataclass
195
225
class LinodeInterfaceVPC (JSONObject ):
226
+ """
227
+ VPC-specific configuration field for a Linode Interface.
228
+ """
229
+
196
230
put_class = LinodeInterfaceVPCOptions
197
231
198
232
vpc_id : int = 0
@@ -203,6 +237,10 @@ class LinodeInterfaceVPC(JSONObject):
203
237
204
238
@dataclass
205
239
class LinodeInterfacePublicIPv4Address (JSONObject ):
240
+ """
241
+ A single address under the IPv4 configuration of a public Linode Interface.
242
+ """
243
+
206
244
put_class = LinodeInterfacePublicIPv4AddressOptions
207
245
208
246
address : str = ""
@@ -211,12 +249,20 @@ class LinodeInterfacePublicIPv4Address(JSONObject):
211
249
212
250
@dataclass
213
251
class LinodeInterfacePublicIPv4Shared (JSONObject ):
252
+ """
253
+ A single shared address under the IPv4 configuration of a public Linode Interface.
254
+ """
255
+
214
256
address : str = ""
215
257
linode_id : int = 0
216
258
217
259
218
260
@dataclass
219
261
class LinodeInterfacePublicIPv4 (JSONObject ):
262
+ """
263
+ The IPv4 configuration of a public Linode Interface.
264
+ """
265
+
220
266
put_class = LinodeInterfacePublicIPv4Options
221
267
222
268
addresses : List [LinodeInterfacePublicIPv4Address ] = field (
@@ -227,18 +273,30 @@ class LinodeInterfacePublicIPv4(JSONObject):
227
273
228
274
@dataclass
229
275
class LinodeInterfacePublicIPv6SLAAC (JSONObject ):
276
+ """
277
+ A single SLAAC entry under the IPv6 configuration of a public Linode Interface.
278
+ """
279
+
230
280
address : str = ""
231
281
prefix : int = 0
232
282
233
283
234
284
@dataclass
235
285
class LinodeInterfacePublicIPv6Shared (JSONObject ):
286
+ """
287
+ A single shared range under the IPv6 configuration of a public Linode Interface.
288
+ """
289
+
236
290
range : str = ""
237
291
route_target : Optional [str ] = None
238
292
239
293
240
294
@dataclass
241
295
class LinodeInterfacePublicIPv6Range (JSONObject ):
296
+ """
297
+ A single range under the IPv6 configuration of a public Linode Interface.
298
+ """
299
+
242
300
put_class = LinodeInterfacePublicIPv6RangeOptions
243
301
244
302
range : str = ""
@@ -247,6 +305,10 @@ class LinodeInterfacePublicIPv6Range(JSONObject):
247
305
248
306
@dataclass
249
307
class LinodeInterfacePublicIPv6 (JSONObject ):
308
+ """
309
+ The IPv6 configuration of a Linode Interface.
310
+ """
311
+
250
312
put_class = LinodeInterfacePublicIPv6Options
251
313
252
314
slaac : List [LinodeInterfacePublicIPv6SLAAC ] = field (default_factory = list )
@@ -256,6 +318,10 @@ class LinodeInterfacePublicIPv6(JSONObject):
256
318
257
319
@dataclass
258
320
class LinodeInterfacePublic (JSONObject ):
321
+ """
322
+ Public-specific configuration field for a Linode Interface.
323
+ """
324
+
259
325
put_class = LinodeInterfacePublicOptions
260
326
261
327
ipv4 : Optional [LinodeInterfacePublicIPv4 ] = None
@@ -264,6 +330,10 @@ class LinodeInterfacePublic(JSONObject):
264
330
265
331
@dataclass
266
332
class LinodeInterfaceVLAN (JSONObject ):
333
+ """
334
+ VLAN-specific configuration field for a Linode Interface.
335
+ """
336
+
267
337
put_class = LinodeInterfaceVLANOptions
268
338
269
339
vlan_label : str = ""
@@ -274,7 +344,7 @@ class LinodeInterface(DerivedBase):
274
344
"""
275
345
A Linode's network interface.
276
346
277
- API Documentation: Not yet available.
347
+ API Documentation: https://techdocs.akamai.com/linode-api/reference/get-linode-interface
278
348
"""
279
349
280
350
api_endpoint = "/linode/instances/{linode_id}/interfaces/{id}"
@@ -310,6 +380,8 @@ def firewalls(self, *filters) -> List[Firewall]:
310
380
311
381
NOTE: Caching is disabled on this method and each call will make
312
382
an additional Linode API request.
383
+
384
+ API Documentation: Not yet available.
313
385
"""
314
386
315
387
return self ._client ._get_and_filter (
0 commit comments