Sha256: 6cc8146f30b8ed87fe56278d6a90b244927e6d15fee9c398cb57300b1b17695f
Contents?: true
Size: 499 Bytes
Versions: 33
Compression:
Stored size: 499 Bytes
Contents
require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/device' require 'netbox_client_ruby/api/secrets/secret_role' 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
Version data entries
33 entries across 33 versions & 1 rubygems