mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-03 23:51:48 +00:00
##### SUMMARY All `module_utils` are now marked as **private**. None of the modules were intended for public use. Similar to https://togithub.com/ansible-collections/community.general/issues/11312
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
from __future__ import annotations
|
|
|
|
from ..core import BaseDomain
|
|
|
|
__all__ = [
|
|
"DeprecationInfo",
|
|
]
|
|
|
|
|
|
class DeprecationInfo(BaseDomain):
|
|
"""Describes if, when & how the resources was deprecated. If this field is set to ``None`` the resource is not
|
|
deprecated. If it has a value, it is considered deprecated.
|
|
|
|
:param announced: datetime
|
|
Date of when the deprecation was announced.
|
|
:param unavailable_after: datetime
|
|
After the time in this field, the resource will not be available from the general listing endpoint of the
|
|
resource type, and it can not be used in new resources. For example, if this is an image, you can not create
|
|
new servers with this image after the mentioned date.
|
|
"""
|
|
|
|
__api_properties__ = (
|
|
"announced",
|
|
"unavailable_after",
|
|
)
|
|
__slots__ = __api_properties__
|
|
|
|
def __init__(
|
|
self,
|
|
announced: str | None = None,
|
|
unavailable_after: str | None = None,
|
|
):
|
|
self.announced = self._parse_datetime(announced)
|
|
self.unavailable_after = self._parse_datetime(unavailable_after)
|