File: //opt/saltstack/salt/lib/python3.10/site-packages/vultr/__pycache__/v1_regions.cpython-310.pyc
o
;j� � @ s( d Z ddlmZmZ G dd� de�ZdS )z/Partial class to handle Vultr Regions API calls� )� VultrBase�
update_paramsc @ s, e Zd ZdZdd� Zd dd�Zd dd�ZdS )
�VultrRegionszHandles Vultr Regions API callsc C s t �| |� d S �N)r �__init__)�selfZapi_key� r �D/opt/saltstack/salt/lib/python3.10/site-packages/vultr/v1_regions.pyr s zVultrRegions.__init__Nc C s t |d|i�}| �d|d�S )a� /v1/regions/availability
GET - public
Retrieve a list of the VPSPLANIDs currently available
in this location. If your account has special plans available,
you will need to pass your api_key in in order to see them.
For all other accounts, the API key is not optional.
Link: https://www.vultr.com/api/#regions_region_available
ZDCIDz/v1/regions/availability�GET)r �request)r Zdcid�paramsr r r �availability
s
zVultrRegions.availabilityc C s |r|nt � }| �d|d�S )a /v1/regions/list
GET - public
Retrieve a list of all active regions. Note that just
because a region is listed here, does not mean that
there is room for new servers.
Link: https://www.vultr.com/api/#regions_region_list
z/v1/regions/listr
)�dictr )r r r r r �list s zVultrRegions.listr )�__name__�
__module__�__qualname__�__doc__r r
r r r r r r s
r N)r �utilsr r r r r r r �<module> s