gridscale / gridscale/gridscale_api_client_python

Rename ssh methods

未關閉
#12 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
5
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

To make this client more in line with the [official API](https://gridscale.io/en/api-documentation/index.html#tag/SSH-key) I'd to propose a rename of the following methods:

- get_ssh_keys
- get_ssh_key
- create_ssh_key
- update_ssh_key
- delete_ssh_key
- get_ssh_key_events

`ssh_key` is canonically without the underscore in the API. The new function names would then be

- get_sshkeys
- get_sshkey
- create_sshkey
- update_sshkey
- delete_sshkey
- get_sshkey_events

For backwards-compat we could alias the methods to their old names.

It's a small annoyance, but I still wanted to mention it. I'm ready to work an a pull request if this change finds acceptance.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。