1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-03 23:51:48 +00:00
hetzner.hcloud/plugins/module_utils/_vendor/hcloud/locations/domain.py
Jonas L. cfa0d181f7
refactor: mark module_utils modules as private (#782)
##### SUMMARY

All `module_utils` are now marked as **private**. None of the modules
were intended for public use.

Similar to
https://togithub.com/ansible-collections/community.general/issues/11312
2026-01-06 08:43:46 +01:00

61 lines
1.5 KiB
Python

from __future__ import annotations
from ..core import BaseDomain, DomainIdentityMixin
__all__ = [
"Location",
]
class Location(BaseDomain, DomainIdentityMixin):
"""Location Domain
:param id: int
ID of location
:param name: str
Name of location
:param description: str
Description of location
:param country: str
ISO 3166-1 alpha-2 code of the country the location resides in
:param city: str
City the location is closest to
:param latitude: float
Latitude of the city closest to the location
:param longitude: float
Longitude of the city closest to the location
:param network_zone: str
Name of network zone this location resides in
"""
__api_properties__ = (
"id",
"name",
"description",
"country",
"city",
"latitude",
"longitude",
"network_zone",
)
__slots__ = __api_properties__
def __init__(
self,
id: int | None = None,
name: str | None = None,
description: str | None = None,
country: str | None = None,
city: str | None = None,
latitude: float | None = None,
longitude: float | None = None,
network_zone: str | None = None,
):
self.id = id
self.name = name
self.description = description
self.country = country
self.city = city
self.latitude = latitude
self.longitude = longitude
self.network_zone = network_zone