lib/netbox_client_ruby/api/secrets/secret.rb
# frozen_string_literal: true
module NetboxClientRuby
module Secrets
class Secret
include Entity
id id: :id
deletable true
path 'secrets/secrets/:id.json'
creation_path 'secrets/secrets/'
object_fields device: proc { |raw_data| Device.new raw_data['id'] },
role: proc { |raw_data| SecretRole.new raw_data['id'] }
end
end
end