mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
deps: update dependency hcloud to v1.28.0 (#306)
* deps: update dependency hcloud to v1.28.0 * chore: update vendored files --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: jo <ljonas@riseup.net>
This commit is contained in:
parent
4bb2bb80fa
commit
7d2300f1ec
15 changed files with 210 additions and 21 deletions
|
|
@ -2,7 +2,7 @@ from __future__ import annotations
|
|||
|
||||
from typing import TYPE_CHECKING, Any, NamedTuple
|
||||
|
||||
from ..actions import ActionsPageResult, BoundAction
|
||||
from ..actions import ActionsPageResult, BoundAction, ResourceActionsClient
|
||||
from ..core import BoundModelBase, ClientEntityBase, Meta
|
||||
from .domain import (
|
||||
Certificate,
|
||||
|
|
@ -106,6 +106,16 @@ class CertificatesPageResult(NamedTuple):
|
|||
class CertificatesClient(ClientEntityBase):
|
||||
_client: Client
|
||||
|
||||
actions: ResourceActionsClient
|
||||
"""Certificates scoped actions client
|
||||
|
||||
:type: :class:`ResourceActionsClient <hcloud.actions.client.ResourceActionsClient>`
|
||||
"""
|
||||
|
||||
def __init__(self, client: Client):
|
||||
super().__init__(client)
|
||||
self.actions = ResourceActionsClient(client, "/certificates")
|
||||
|
||||
def get_by_id(self, id: int) -> BoundCertificate:
|
||||
"""Get a specific certificate by its ID.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue