Skip to content

Commit d6f5cc7

Browse files
Docs WIP
1 parent 38b8010 commit d6f5cc7

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

linode_api4/objects/linode.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,10 @@ class MigrationType:
664664

665665

666666
class InterfaceGeneration(StrEnum):
667+
"""
668+
A string enum representing which interface generation a Linode is using.
669+
"""
670+
667671
LEGACY_CONFIG = "legacy_config"
668672
LINODE = "linode"
669673

@@ -1896,7 +1900,22 @@ def interface_create(
18961900
] = None,
18971901
vpc: Optional[Union[Dict[str, Any], LinodeInterfaceVPCOptions]] = None,
18981902
**kwargs,
1899-
):
1903+
) -> LinodeInterface:
1904+
"""
1905+
Creates a new interface under this Linode.
1906+
1907+
:param firewall: The firewall this interface should be assigned to.
1908+
:param default_route: The desired default route configuration of the new interface.
1909+
:param public: The public-specific configuration of the new interface.
1910+
If set, the new instance will be a public interface.
1911+
:param vlan: The VLAN-specific configuration of the new interface.
1912+
If set, the new instance will be a VLAN interface.
1913+
:param vpc: The VPC-specific configuration of the new interface.
1914+
If set, the new instance will be a VPC interface.
1915+
1916+
:returns: The newly created Linode Interface.
1917+
"""
1918+
19001919
params = {
19011920
"firewall_id": firewall,
19021921
"default_route": default_route,
@@ -1922,6 +1941,7 @@ def interface_create(
19221941

19231942
@property
19241943
def interfaces_settings(self):
1944+
19251945
# NOTE: We do not implement this as a Property because Property does
19261946
# not currently have a mechanism for 1:1 sub-entities.
19271947
result = self._client.get(

linode_api4/objects/linode_interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LinodeInterfacesSettingsDefaultRoute(JSONObject):
3232

3333

3434
class LinodeInterfacesSettings(Base):
35-
""""
35+
""" "
3636
The settings for a Linode's network interfaces.
3737
3838
API Documentation: Not yet available.

0 commit comments

Comments
 (0)