Skip to content

Commit

Permalink
ADCM-6119: Implement HostProvider object
Browse files Browse the repository at this point in the history
  • Loading branch information
astarovo committed Nov 19, 2024
1 parent 590a4c3 commit 53f2ba6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions adcm_aio_client/core/objects/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ class HostsInClusterNode(PaginatedAccessor[Host, None]):


class Service(InteractiveChildObject[Cluster]):
@property
def id(self: Self) -> int:
return int(self._data["id"])

def get_own_path(self: Self) -> Endpoint:
return (*self._parent.get_own_path(), "services", self.id)
Expand All @@ -127,9 +124,6 @@ class ServicesNode(PaginatedChildAccessor[Cluster, Service, None]):


class Component(InteractiveChildObject[Service]):
@property
def id(self: Self) -> int:
return int(self._data["id"])

def get_own_path(self: Self) -> Endpoint:
return (*self._parent.get_own_path(), "components", self.id)
Expand All @@ -142,10 +136,6 @@ class ComponentsNode(NonPaginatedChildAccessor[Service, Component, None]):
class HostProvider(Deletable, InteractiveObject):
# data-based properties

@property
def id(self: Self) -> int:
return int(self._data["id"])

@property
def name(self: Self) -> str:
return str(self._data["name"])
Expand Down

0 comments on commit 53f2ba6

Please sign in to comment.