mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
chore(deps): update dependency hcloud to v2.12.0 (#760)
##### SUMMARY Bump `hcloud-python` to [v2.12.0](https://github.com/hetznercloud/hcloud-python/releases/tag/v2.12.0)
This commit is contained in:
parent
ea973be048
commit
bc61715c92
10 changed files with 2589 additions and 2 deletions
26
plugins/module_utils/vendor/hcloud/_client.py
vendored
26
plugins/module_utils/vendor/hcloud/_client.py
vendored
|
|
@ -28,6 +28,8 @@ from .primary_ips import PrimaryIPsClient
|
|||
from .server_types import ServerTypesClient
|
||||
from .servers import ServersClient
|
||||
from .ssh_keys import SSHKeysClient
|
||||
from .storage_box_types import StorageBoxTypesClient
|
||||
from .storage_boxes import StorageBoxesClient
|
||||
from .volumes import VolumesClient
|
||||
from .zones import ZonesClient
|
||||
|
||||
|
|
@ -144,11 +146,14 @@ class Client:
|
|||
poll_interval: int | float | BackoffFunction = 1.0,
|
||||
poll_max_retries: int = 120,
|
||||
timeout: float | tuple[float, float] | None = None,
|
||||
*,
|
||||
api_endpoint_hetzner: str = "https://api.hetzner.com/v1",
|
||||
):
|
||||
"""Create a new Client instance
|
||||
|
||||
:param token: Hetzner Cloud API token
|
||||
:param api_endpoint: Hetzner Cloud API endpoint
|
||||
:param api_endpoint_hetzner: Hetzner API endpoint.
|
||||
:param application_name: Your application name
|
||||
:param application_version: Your application _version
|
||||
:param poll_interval:
|
||||
|
|
@ -167,6 +172,15 @@ class Client:
|
|||
poll_max_retries=poll_max_retries,
|
||||
timeout=timeout,
|
||||
)
|
||||
self._client_hetzner = ClientBase(
|
||||
token=token,
|
||||
endpoint=api_endpoint_hetzner,
|
||||
application_name=application_name,
|
||||
application_version=application_version,
|
||||
poll_interval=poll_interval,
|
||||
poll_max_retries=poll_max_retries,
|
||||
timeout=timeout,
|
||||
)
|
||||
|
||||
self.datacenters = DatacentersClient(self)
|
||||
"""DatacentersClient Instance
|
||||
|
|
@ -264,6 +278,18 @@ class Client:
|
|||
:type: :class:`ZonesClient <hcloud.zones.client.ZonesClient>`
|
||||
"""
|
||||
|
||||
self.storage_box_types = StorageBoxTypesClient(self)
|
||||
"""StorageBoxTypesClient Instance
|
||||
|
||||
:type: :class:`StorageBoxTypesClient <hcloud.storage_box_types.client.StorageBoxTypesClient>`
|
||||
"""
|
||||
|
||||
self.storage_boxes = StorageBoxesClient(self)
|
||||
"""StorageBoxesClient Instance
|
||||
|
||||
:type: :class:`StorageBoxesClient <hcloud.storage_boxes.client.StorageBoxesClient>`
|
||||
"""
|
||||
|
||||
def request( # type: ignore[no-untyped-def]
|
||||
self,
|
||||
method: str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue