File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/libcloud/common/__pycache__/vultr.cpython-310.pyc
Back
o ;j2 � @ s� d dl mZmZmZ d dlmZ d dlmZmZ d dl m Z g d�ZdZdZ G dd � d e�ZG d d� de�ZG dd � d e�ZG dd� de�ZG dd� de�ZG dd� d�ZG dd� de �ZdS )� )�Any�Dict�Optional)�httplib)�JsonResponse� ConnectionKey)�VolumeSnapshot) �API_HOST�VultrConnection�VultrException� VultrResponse�DEFAULT_API_VERSION�VultrResponseV2�VultrConnectionV2�VultrNetwork�VultrNodeSnapshotz api.vultr.com�2c sV e Zd ZdZi ZdZddddddd�Z� fd d �Z� fdd�Zd d� Z dd� Z � ZS )r Nz7Invalid API location. Check the URL that you are using.z]Invalid or missing API key. Check that your API key is present and matches your assigned key.z_Invalid HTTP method. Check that the method (POST|GET) matches what the documentation indicates.zHRequest failed. Check the response body for a more detailed description.z1Internal server error. Try again at a later time.z\Rate limit hit. API requests are limited to an average of 1/s. Try your request again later.)i� i� i� i� �� i� c sB g | _ t� j||d� | �� \| _| _ | �� s| �| j d ��d S )N)�response� connectionr )�errors�super�__init__�parse_body_and_errors�objects�success� _make_excp)�selfr r �� __class__� �I/opt/saltstack/salt/lib/python3.10/site-packages/libcloud/common/vultr.pyr 8 s �zVultrResponse.__init__c sj g }g }| j | jv r| j | jd<