diff --git a/plugins/module_utils/vendor/hcloud/_version.py b/plugins/module_utils/vendor/hcloud/_version.py index a077b8e..e93dacf 100644 --- a/plugins/module_utils/vendor/hcloud/_version.py +++ b/plugins/module_utils/vendor/hcloud/_version.py @@ -1,3 +1,3 @@ from __future__ import annotations -__version__ = "2.5.1" # x-releaser-pleaser-version +__version__ = "2.5.2" # x-releaser-pleaser-version diff --git a/plugins/module_utils/vendor/hcloud/actions/client.py b/plugins/module_utils/vendor/hcloud/actions/client.py index a3d6b03..7ec192c 100644 --- a/plugins/module_utils/vendor/hcloud/actions/client.py +++ b/plugins/module_utils/vendor/hcloud/actions/client.py @@ -47,7 +47,7 @@ class BoundAction(BoundModelBase, Action): class ActionsPageResult(NamedTuple): actions: list[BoundAction] - meta: Meta | None + meta: Meta class ResourceActionsClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/certificates/client.py b/plugins/module_utils/vendor/hcloud/certificates/client.py index a5fe1d7..cb1aef5 100644 --- a/plugins/module_utils/vendor/hcloud/certificates/client.py +++ b/plugins/module_utils/vendor/hcloud/certificates/client.py @@ -100,7 +100,7 @@ class BoundCertificate(BoundModelBase, Certificate): class CertificatesPageResult(NamedTuple): certificates: list[BoundCertificate] - meta: Meta | None + meta: Meta class CertificatesClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/core/domain.py b/plugins/module_utils/vendor/hcloud/core/domain.py index fa4b4bb..f305030 100644 --- a/plugins/module_utils/vendor/hcloud/core/domain.py +++ b/plugins/module_utils/vendor/hcloud/core/domain.py @@ -99,13 +99,12 @@ class Meta(BaseDomain): self.pagination = pagination @classmethod - def parse_meta(cls, response: dict) -> Meta | None: + def parse_meta(cls, response: dict) -> Meta: """ If present, extract the meta details from the response and return a meta object. """ - meta = None + meta = cls() if response and "meta" in response: - meta = cls() try: meta.pagination = Pagination(**response["meta"]["pagination"]) except KeyError: diff --git a/plugins/module_utils/vendor/hcloud/datacenters/client.py b/plugins/module_utils/vendor/hcloud/datacenters/client.py index 1be1e12..935a7c7 100644 --- a/plugins/module_utils/vendor/hcloud/datacenters/client.py +++ b/plugins/module_utils/vendor/hcloud/datacenters/client.py @@ -52,7 +52,7 @@ class BoundDatacenter(BoundModelBase, Datacenter): class DatacentersPageResult(NamedTuple): datacenters: list[BoundDatacenter] - meta: Meta | None + meta: Meta class DatacentersClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/firewalls/client.py b/plugins/module_utils/vendor/hcloud/firewalls/client.py index fbcd100..ae365a4 100644 --- a/plugins/module_utils/vendor/hcloud/firewalls/client.py +++ b/plugins/module_utils/vendor/hcloud/firewalls/client.py @@ -180,7 +180,7 @@ class BoundFirewall(BoundModelBase, Firewall): class FirewallsPageResult(NamedTuple): firewalls: list[BoundFirewall] - meta: Meta | None + meta: Meta class FirewallsClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/floating_ips/client.py b/plugins/module_utils/vendor/hcloud/floating_ips/client.py index a766914..9306ac2 100644 --- a/plugins/module_utils/vendor/hcloud/floating_ips/client.py +++ b/plugins/module_utils/vendor/hcloud/floating_ips/client.py @@ -136,7 +136,7 @@ class BoundFloatingIP(BoundModelBase, FloatingIP): class FloatingIPsPageResult(NamedTuple): floating_ips: list[BoundFloatingIP] - meta: Meta | None + meta: Meta class FloatingIPsClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/images/client.py b/plugins/module_utils/vendor/hcloud/images/client.py index a7d41e0..36c59e0 100644 --- a/plugins/module_utils/vendor/hcloud/images/client.py +++ b/plugins/module_utils/vendor/hcloud/images/client.py @@ -109,7 +109,7 @@ class BoundImage(BoundModelBase, Image): class ImagesPageResult(NamedTuple): images: list[BoundImage] - meta: Meta | None + meta: Meta class ImagesClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/isos/client.py b/plugins/module_utils/vendor/hcloud/isos/client.py index fa7b1a8..31620d8 100644 --- a/plugins/module_utils/vendor/hcloud/isos/client.py +++ b/plugins/module_utils/vendor/hcloud/isos/client.py @@ -17,7 +17,7 @@ class BoundIso(BoundModelBase, Iso): class IsosPageResult(NamedTuple): isos: list[BoundIso] - meta: Meta | None + meta: Meta class IsosClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/load_balancer_types/client.py b/plugins/module_utils/vendor/hcloud/load_balancer_types/client.py index 9a83dc7..5f332c6 100644 --- a/plugins/module_utils/vendor/hcloud/load_balancer_types/client.py +++ b/plugins/module_utils/vendor/hcloud/load_balancer_types/client.py @@ -17,7 +17,7 @@ class BoundLoadBalancerType(BoundModelBase, LoadBalancerType): class LoadBalancerTypesPageResult(NamedTuple): load_balancer_types: list[BoundLoadBalancerType] - meta: Meta | None + meta: Meta class LoadBalancerTypesClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/load_balancers/client.py b/plugins/module_utils/vendor/hcloud/load_balancers/client.py index 4921213..a0661fe 100644 --- a/plugins/module_utils/vendor/hcloud/load_balancers/client.py +++ b/plugins/module_utils/vendor/hcloud/load_balancers/client.py @@ -369,7 +369,7 @@ class BoundLoadBalancer(BoundModelBase, LoadBalancer): class LoadBalancersPageResult(NamedTuple): load_balancers: list[BoundLoadBalancer] - meta: Meta | None + meta: Meta class LoadBalancersClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/locations/client.py b/plugins/module_utils/vendor/hcloud/locations/client.py index 047ad9d..411a184 100644 --- a/plugins/module_utils/vendor/hcloud/locations/client.py +++ b/plugins/module_utils/vendor/hcloud/locations/client.py @@ -17,7 +17,7 @@ class BoundLocation(BoundModelBase, Location): class LocationsPageResult(NamedTuple): locations: list[BoundLocation] - meta: Meta | None + meta: Meta class LocationsClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/networks/client.py b/plugins/module_utils/vendor/hcloud/networks/client.py index d819d58..c446ae6 100644 --- a/plugins/module_utils/vendor/hcloud/networks/client.py +++ b/plugins/module_utils/vendor/hcloud/networks/client.py @@ -163,7 +163,7 @@ class BoundNetwork(BoundModelBase, Network): class NetworksPageResult(NamedTuple): networks: list[BoundNetwork] - meta: Meta | None + meta: Meta class NetworksClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/placement_groups/client.py b/plugins/module_utils/vendor/hcloud/placement_groups/client.py index fcfd86a..0c53724 100644 --- a/plugins/module_utils/vendor/hcloud/placement_groups/client.py +++ b/plugins/module_utils/vendor/hcloud/placement_groups/client.py @@ -40,7 +40,7 @@ class BoundPlacementGroup(BoundModelBase, PlacementGroup): class PlacementGroupsPageResult(NamedTuple): placement_groups: list[BoundPlacementGroup] - meta: Meta | None + meta: Meta class PlacementGroupsClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/primary_ips/client.py b/plugins/module_utils/vendor/hcloud/primary_ips/client.py index 41ef3bf..818737c 100644 --- a/plugins/module_utils/vendor/hcloud/primary_ips/client.py +++ b/plugins/module_utils/vendor/hcloud/primary_ips/client.py @@ -94,7 +94,7 @@ class BoundPrimaryIP(BoundModelBase, PrimaryIP): class PrimaryIPsPageResult(NamedTuple): primary_ips: list[BoundPrimaryIP] - meta: Meta | None + meta: Meta class PrimaryIPsClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/server_types/client.py b/plugins/module_utils/vendor/hcloud/server_types/client.py index 31f56a2..6901d99 100644 --- a/plugins/module_utils/vendor/hcloud/server_types/client.py +++ b/plugins/module_utils/vendor/hcloud/server_types/client.py @@ -17,7 +17,7 @@ class BoundServerType(BoundModelBase, ServerType): class ServerTypesPageResult(NamedTuple): server_types: list[BoundServerType] - meta: Meta | None + meta: Meta class ServerTypesClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/servers/client.py b/plugins/module_utils/vendor/hcloud/servers/client.py index 0d65e79..a0883e4 100644 --- a/plugins/module_utils/vendor/hcloud/servers/client.py +++ b/plugins/module_utils/vendor/hcloud/servers/client.py @@ -482,7 +482,7 @@ class BoundServer(BoundModelBase, Server): class ServersPageResult(NamedTuple): servers: list[BoundServer] - meta: Meta | None + meta: Meta class ServersClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/ssh_keys/client.py b/plugins/module_utils/vendor/hcloud/ssh_keys/client.py index 69c1683..12064ea 100644 --- a/plugins/module_utils/vendor/hcloud/ssh_keys/client.py +++ b/plugins/module_utils/vendor/hcloud/ssh_keys/client.py @@ -38,7 +38,7 @@ class BoundSSHKey(BoundModelBase, SSHKey): class SSHKeysPageResult(NamedTuple): ssh_keys: list[BoundSSHKey] - meta: Meta | None + meta: Meta class SSHKeysClient(ClientEntityBase): diff --git a/plugins/module_utils/vendor/hcloud/volumes/client.py b/plugins/module_utils/vendor/hcloud/volumes/client.py index a470974..371a8bd 100644 --- a/plugins/module_utils/vendor/hcloud/volumes/client.py +++ b/plugins/module_utils/vendor/hcloud/volumes/client.py @@ -132,7 +132,7 @@ class BoundVolume(BoundModelBase, Volume): class VolumesPageResult(NamedTuple): volumes: list[BoundVolume] - meta: Meta | None + meta: Meta class VolumesClient(ClientEntityBase):