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



14
15
16
# File 'lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb', line 14

def private_key
  get['private_key']
end

#public_keyObject



10
11
12
# File 'lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb', line 10

def public_key
  get['public_key']
end

#reloadObject



18
19
20
# File 'lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb', line 18

def reload
  @response = nil
end