Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADCM-6125 Configuration management #17

Merged
merged 17 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions adcm_aio_client/core/objects/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import Self

from adcm_aio_client.core.objects._base import AwareOfOwnPath, WithRequester
from adcm_aio_client.core.objects._config import ConfigHistoryNode, ObjectConfig
from adcm_aio_client.core.types import ADCMEntityStatus


Expand All @@ -19,10 +20,11 @@ async def get_status(self: Self) -> ADCMEntityStatus:
# todo whole section lacking implementation (and maybe code move is required)
class WithConfig(WithRequester, AwareOfOwnPath):
@cached_property
def config(self: Self) -> ...: ...
async def config(self: Self) -> ObjectConfig:
return await self.config_history.current()

@cached_property
def config_history(self: Self) -> ...: ...
def config_history(self: Self) -> ConfigHistoryNode: ...


class WithActions(WithRequester, AwareOfOwnPath):
Expand Down
Loading
Loading