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

Version Path
netbox-client-ruby-0.10.1 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.10.0 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.9.0 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.8.0 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.7.1 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.7.0 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.6.0 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.5.7 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.5.6 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.5.5 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.5.4 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.5.3 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.5.2 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.5.1 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.5.0 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.4.10 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.4.9 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.4.7 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.4.6 lib/netbox_client_ruby/api/secrets/secret.rb
netbox-client-ruby-0.4.3 lib/netbox_client_ruby/api/secrets/secret.rb