Class: NetboxClientRuby::Secrets::RSAKeyPair

Inherits:
Object
  • Object
show all
Includes:
Communication
Defined in:
lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb

Constant Summary collapse

PATH =
'/api/secrets/generate-rsa-key-pair/'.freeze

Instance Method Summary collapse

Methods included from Communication

#connection, #hash_to_object, #response

Instance Method Details

#private_keyObject



16
17
18
# File 'lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb', line 16

def private_key
  get['private_key']
end

#public_keyObject



12
13
14
# File 'lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb', line 12

def public_key
  get['public_key']
end

#reloadObject



20
21
22
# File 'lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb', line 20

def reload
  @response = nil
end