From 8e9594132b21cf25343e580884c939299941a382 Mon Sep 17 00:00:00 2001 From: Matthias Veit Date: Tue, 24 Sep 2024 16:56:50 +0200 Subject: [PATCH] [lib][chore] Rename internal properties with underscore (#2209) --- fix_plugin_onprem/resources.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fix_plugin_onprem/resources.py b/fix_plugin_onprem/resources.py index 0500f39..fc23545 100644 --- a/fix_plugin_onprem/resources.py +++ b/fix_plugin_onprem/resources.py @@ -12,8 +12,8 @@ @define(eq=False, slots=False) class OnpremLocation(BaseAccount): kind: ClassVar[str] = "onprem_location" - kind_display: ClassVar[str] = "Onprem Location" - kind_description: ClassVar[str] = "An Onprem Location." + _kind_display: ClassVar[str] = "Onprem Location" + _kind_description: ClassVar[str] = "An Onprem Location." def delete(self, graph: Graph) -> bool: return False @@ -22,8 +22,8 @@ def delete(self, graph: Graph) -> bool: @define(eq=False, slots=False) class OnpremRegion(BaseRegion): kind: ClassVar[str] = "onprem_region" - kind_display: ClassVar[str] = "Onprem Region" - kind_description: ClassVar[str] = "An Onprem Region." + _kind_display: ClassVar[str] = "Onprem Region" + _kind_description: ClassVar[str] = "An Onprem Region." def delete(self, graph: Graph) -> bool: return False @@ -48,8 +48,8 @@ def delete_tag(self, key) -> bool: @define(eq=False, slots=False) class OnpremInstance(OnpremResource, BaseInstance): kind: ClassVar[str] = "onprem_instance" - kind_display: ClassVar[str] = "Onprem Instance" - kind_description: ClassVar[str] = "An Onprem Instance." + _kind_display: ClassVar[str] = "Onprem Instance" + _kind_description: ClassVar[str] = "An Onprem Instance." network_device: Optional[str] = None network_ip4: Optional[str] = None network_ip6: Optional[str] = None @@ -58,5 +58,5 @@ class OnpremInstance(OnpremResource, BaseInstance): @define(eq=False, slots=False) class OnpremNetwork(OnpremResource, BaseNetwork): kind: ClassVar[str] = "onprem_network" - kind_display: ClassVar[str] = "Onprem Network" - kind_description: ClassVar[str] = "An Onprem Network." + _kind_display: ClassVar[str] = "Onprem Network" + _kind_description: ClassVar[str] = "An Onprem Network."