1
0
Fork 0
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:
renovate[bot] 2023-08-17 15:02:50 +02:00 committed by GitHub
parent 4bb2bb80fa
commit 7d2300f1ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 210 additions and 21 deletions

View file

@ -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.