HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/vultr/__pycache__/v1_sshkey.cpython-310.pyc
o

;j�@s(dZddlmZmZGdd�de�ZdS)z/Partial class to handle Vultr SSH Key API calls�)�	VultrBase�
update_paramsc@s@eZdZdZdd�Zd
dd�Zd
dd�Zd
d	d
�Zd
dd�ZdS)�VultrSSHKeyzHandles Vultr SSH Key API callscCst�||�dS�N)r�__init__)�selfZapi_key�r�C/opt/saltstack/salt/lib/python3.10/site-packages/vultr/v1_sshkey.pyrszVultrSSHKey.__init__NcCst|||d��}|�d|d�S)z� /v1/sshkey/create
        POST - account
        Create a new SSH Key

        Link: https://www.vultr.com/api/#sshkey_create
        )�name�ssh_keyz/v1/sshkey/create�POST�r�request)rr
r�paramsrrr	�create
s
�zVultrSSHKey.createcC�t|d|i�}|�d|d�S)z� /v1/sshkey/destroy
        POST - account
        Remove a SSH key. Note that this will not remove
        the key from any machines that already have it.

        Link: https://www.vultr.com/api/#sshkey_destroy
        �SSHKEYIDz/v1/sshkey/destroyrr
�rZsshkeyidrrrr	�destroyszVultrSSHKey.destroycCs|r|nt�}|�d|d�S)z� /v1/sshkey/list
        GET - account
        List all the SSH keys on the current account

        Link: https://www.vultr.com/api/#sshkey_list
        z/v1/sshkey/listZGET)�dictr)rrrrr	�list"szVultrSSHKey.listcCr)a /v1/sshkey/update
        POST - account
        Update an existing SSH Key. Note that this will only
        update newly installed machines. The key will not be
        updated on any existing machines.

        Link: https://www.vultr.com/api/#sshkey_update
        rz/v1/sshkey/updaterr
rrrr	�update,s	zVultrSSHKey.updater)	�__name__�
__module__�__qualname__�__doc__rrrrrrrrr	rs



rN)r�utilsrrrrrrr	�<module>s