Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions hcloud/actions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
from __future__ import annotations

from .client import ( # noqa: F401
from .client import (
ActionsClient,
ActionsPageResult,
BoundAction,
ResourceActionsClient,
)
from .domain import ( # noqa: F401
from .domain import (
Action,
ActionException,
ActionFailedException,
ActionTimeoutException,
)

__all__ = [
"Action",
"ActionException",
"ActionFailedException",
"ActionTimeoutException",
"ActionsClient",
"ActionsPageResult",
"BoundAction",
"ResourceActionsClient",
]
14 changes: 12 additions & 2 deletions hcloud/certificates/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
from __future__ import annotations

from .client import ( # noqa: F401
from .client import (
BoundCertificate,
CertificatesClient,
CertificatesPageResult,
)
from .domain import ( # noqa: F401
from .domain import (
Certificate,
CreateManagedCertificateResponse,
ManagedCertificateError,
ManagedCertificateStatus,
)

__all__ = [
"BoundCertificate",
"Certificate",
"CertificatesClient",
"CertificatesPageResult",
"CreateManagedCertificateResponse",
"ManagedCertificateError",
"ManagedCertificateStatus",
]
13 changes: 11 additions & 2 deletions hcloud/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
from __future__ import annotations

from .client import BoundModelBase, ClientEntityBase # noqa: F401
from .domain import BaseDomain, DomainIdentityMixin, Meta, Pagination # noqa: F401
from .client import BoundModelBase, ClientEntityBase
from .domain import BaseDomain, DomainIdentityMixin, Meta, Pagination

__all__ = [
"BoundModelBase",
"ClientEntityBase",
"BaseDomain",
"DomainIdentityMixin",
"Meta",
"Pagination",
]
12 changes: 10 additions & 2 deletions hcloud/datacenters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
from __future__ import annotations

from .client import ( # noqa: F401
from .client import (
BoundDatacenter,
DatacentersClient,
DatacentersPageResult,
)
from .domain import Datacenter, DatacenterServerTypes # noqa: F401
from .domain import Datacenter, DatacenterServerTypes

__all__ = [
"BoundDatacenter",
"Datacenter",
"DatacenterServerTypes",
"DatacentersClient",
"DatacentersPageResult",
]
4 changes: 3 additions & 1 deletion hcloud/deprecation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from .domain import DeprecationInfo # noqa: F401
from .domain import DeprecationInfo

__all__ = ["DeprecationInfo"]
16 changes: 14 additions & 2 deletions hcloud/firewalls/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
from __future__ import annotations

from .client import BoundFirewall, FirewallsClient, FirewallsPageResult # noqa: F401
from .domain import ( # noqa: F401
from .client import BoundFirewall, FirewallsClient, FirewallsPageResult
from .domain import (
CreateFirewallResponse,
Firewall,
FirewallResource,
FirewallResourceAppliedToResources,
FirewallResourceLabelSelector,
FirewallRule,
)

__all__ = [
"BoundFirewall",
"CreateFirewallResponse",
"Firewall",
"FirewallResource",
"FirewallResourceAppliedToResources",
"FirewallResourceLabelSelector",
"FirewallRule",
"FirewallsClient",
"FirewallsPageResult",
]
12 changes: 10 additions & 2 deletions hcloud/floating_ips/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
from __future__ import annotations

from .client import ( # noqa: F401
from .client import (
BoundFloatingIP,
FloatingIPsClient,
FloatingIPsPageResult,
)
from .domain import CreateFloatingIPResponse, FloatingIP # noqa: F401
from .domain import CreateFloatingIPResponse, FloatingIP

__all__ = [
"BoundFloatingIP",
"CreateFloatingIPResponse",
"FloatingIP",
"FloatingIPsClient",
"FloatingIPsPageResult",
]
4 changes: 3 additions & 1 deletion hcloud/helpers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from .labels import LabelValidator # noqa: F401
from .labels import LabelValidator

__all__ = ["LabelValidator"]
12 changes: 10 additions & 2 deletions hcloud/images/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
from __future__ import annotations

from .client import BoundImage, ImagesClient, ImagesPageResult # noqa: F401
from .domain import CreateImageResponse, Image # noqa: F401
from .client import BoundImage, ImagesClient, ImagesPageResult
from .domain import CreateImageResponse, Image

__all__ = [
"BoundImage",
"CreateImageResponse",
"Image",
"ImagesClient",
"ImagesPageResult",
]
11 changes: 9 additions & 2 deletions hcloud/isos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
from __future__ import annotations

from .client import BoundIso, IsosClient, IsosPageResult # noqa: F401
from .domain import Iso # noqa: F401
from .client import BoundIso, IsosClient, IsosPageResult
from .domain import Iso

__all__ = [
"BoundIso",
"Iso",
"IsosClient",
"IsosPageResult",
]
11 changes: 9 additions & 2 deletions hcloud/load_balancer_types/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
from __future__ import annotations

from .client import ( # noqa: F401
from .client import (
BoundLoadBalancerType,
LoadBalancerTypesClient,
LoadBalancerTypesPageResult,
)
from .domain import LoadBalancerType # noqa: F401
from .domain import LoadBalancerType

__all__ = [
"BoundLoadBalancerType",
"LoadBalancerType",
"LoadBalancerTypesClient",
"LoadBalancerTypesPageResult",
]
26 changes: 24 additions & 2 deletions hcloud/load_balancers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from __future__ import annotations

from .client import ( # noqa: F401
from .client import (
BoundLoadBalancer,
LoadBalancersClient,
LoadBalancersPageResult,
)
from .domain import ( # noqa: F401
from .domain import (
CreateLoadBalancerResponse,
GetMetricsResponse,
IPv4Address,
Expand All @@ -23,3 +23,25 @@
PrivateNet,
PublicNetwork,
)

__all__ = [
"BoundLoadBalancer",
"CreateLoadBalancerResponse",
"GetMetricsResponse",
"IPv4Address",
"IPv6Network",
"LoadBalancer",
"LoadBalancerAlgorithm",
"LoadBalancerHealtCheckHttp",
"LoadBalancerHealthCheck",
"LoadBalancerService",
"LoadBalancerServiceHttp",
"LoadBalancerTarget",
"LoadBalancerTargetHealthStatus",
"LoadBalancerTargetIP",
"LoadBalancerTargetLabelSelector",
"LoadBalancersClient",
"LoadBalancersPageResult",
"PrivateNet",
"PublicNetwork",
]
11 changes: 9 additions & 2 deletions hcloud/locations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
from __future__ import annotations

from .client import BoundLocation, LocationsClient, LocationsPageResult # noqa: F401
from .domain import Location # noqa: F401
from .client import BoundLocation, LocationsClient, LocationsPageResult
from .domain import Location

__all__ = [
"BoundLocation",
"Location",
"LocationsClient",
"LocationsPageResult",
]
7 changes: 6 additions & 1 deletion hcloud/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from __future__ import annotations

from .domain import Metrics, TimeSeries # noqa: F401
from .domain import Metrics, TimeSeries

__all__ = [
"Metrics",
"TimeSeries",
]
14 changes: 12 additions & 2 deletions hcloud/networks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
from __future__ import annotations

from .client import BoundNetwork, NetworksClient, NetworksPageResult # noqa: F401
from .domain import ( # noqa: F401
from .client import BoundNetwork, NetworksClient, NetworksPageResult
from .domain import (
CreateNetworkResponse,
Network,
NetworkRoute,
NetworkSubnet,
)

__all__ = [
"BoundNetwork",
"CreateNetworkResponse",
"Network",
"NetworkRoute",
"NetworkSubnet",
"NetworksClient",
"NetworksPageResult",
]
12 changes: 10 additions & 2 deletions hcloud/placement_groups/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
from __future__ import annotations

from .client import ( # noqa: F401
from .client import (
BoundPlacementGroup,
PlacementGroupsClient,
PlacementGroupsPageResult,
)
from .domain import CreatePlacementGroupResponse, PlacementGroup # noqa: F401
from .domain import CreatePlacementGroupResponse, PlacementGroup

__all__ = [
"BoundPlacementGroup",
"CreatePlacementGroupResponse",
"PlacementGroup",
"PlacementGroupsClient",
"PlacementGroupsPageResult",
]
12 changes: 10 additions & 2 deletions hcloud/primary_ips/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
from __future__ import annotations

from .client import BoundPrimaryIP, PrimaryIPsClient, PrimaryIPsPageResult # noqa: F401
from .domain import CreatePrimaryIPResponse, PrimaryIP # noqa: F401
from .client import BoundPrimaryIP, PrimaryIPsClient, PrimaryIPsPageResult
from .domain import CreatePrimaryIPResponse, PrimaryIP

__all__ = [
"BoundPrimaryIP",
"CreatePrimaryIPResponse",
"PrimaryIP",
"PrimaryIPsClient",
"PrimaryIPsPageResult",
]
11 changes: 9 additions & 2 deletions hcloud/server_types/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
from __future__ import annotations

from .client import ( # noqa: F401
from .client import (
BoundServerType,
ServerTypesClient,
ServerTypesPageResult,
)
from .domain import ServerType # noqa: F401
from .domain import ServerType

__all__ = [
"BoundServerType",
"ServerType",
"ServerTypesClient",
"ServerTypesPageResult",
]
22 changes: 20 additions & 2 deletions hcloud/servers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from .client import BoundServer, ServersClient, ServersPageResult # noqa: F401
from .domain import ( # noqa: F401
from .client import BoundServer, ServersClient, ServersPageResult
from .domain import (
CreateServerResponse,
EnableRescueResponse,
GetMetricsResponse,
Expand All @@ -15,3 +15,21 @@
Server,
ServerCreatePublicNetwork,
)

__all__ = [
"BoundServer",
"CreateServerResponse",
"EnableRescueResponse",
"GetMetricsResponse",
"IPv4Address",
"IPv6Network",
"PrivateNet",
"PublicNetwork",
"PublicNetworkFirewall",
"RequestConsoleResponse",
"ResetPasswordResponse",
"Server",
"ServerCreatePublicNetwork",
"ServersClient",
"ServersPageResult",
]
11 changes: 9 additions & 2 deletions hcloud/ssh_keys/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
from __future__ import annotations

from .client import BoundSSHKey, SSHKeysClient, SSHKeysPageResult # noqa: F401
from .domain import SSHKey # noqa: F401
from .client import BoundSSHKey, SSHKeysClient, SSHKeysPageResult
from .domain import SSHKey

__all__ = [
"BoundSSHKey",
"SSHKey",
"SSHKeysClient",
"SSHKeysPageResult",
]
12 changes: 10 additions & 2 deletions hcloud/volumes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
from __future__ import annotations

from .client import BoundVolume, VolumesClient, VolumesPageResult # noqa: F401
from .domain import CreateVolumeResponse, Volume # noqa: F401
from .client import BoundVolume, VolumesClient, VolumesPageResult
from .domain import CreateVolumeResponse, Volume

__all__ = [
"BoundVolume",
"CreateVolumeResponse",
"Volume",
"VolumesClient",
"VolumesPageResult",
]
Loading