class NetboxClientRuby::Secrets::RSAKeyPair
Constants
- PATH
Public Instance Methods
private_key()
click to toggle source
# File lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb, line 16 def private_key get['private_key'] end
public_key()
click to toggle source
# File lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb, line 12 def public_key get['public_key'] end
reload()
click to toggle source
# File lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb, line 20 def reload @response = nil end
Private Instance Methods
auth_config()
click to toggle source
# File lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb, line 39 def auth_config netbox_config.auth end
get()
click to toggle source
# File lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb, line 26 def get if authorization_token @response ||= response connection.get(PATH) else raise LocalError, "The authorization_token has not been configured, but it's required for get-session-key." end end
netbox_config()
click to toggle source
# File lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb, line 43 def netbox_config NetboxClientRuby.config.netbox end