netbox-client-ruby 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aa57ef278da6adb8d9ce15c863b4dd039ed08504447f4f685769084115270f2
|
4
|
+
data.tar.gz: '099904cdb69cb9169e200f0a61cebc1eab93a8ac24857688d0c42e18131a7257'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63597888ded26ba4e28121c5453caf16c613cb80cc966f5800eeb4473a8d777ccd1d0816b67bcf70b6dde61a8ca93cc5364d791a73b7c966b03cc8dff85fb357
|
7
|
+
data.tar.gz: 3d8d4ebb1ba8d3110aa9d1bc9010a5d95f3e2c33af16628da92f19267bf7cad2923f8a26cfed35bba61584718d8c2d208f30dbb21996e32240de67aff8559e05
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.6
|
@@ -1,9 +1,12 @@
|
|
1
|
+
require 'netbox_client_ruby/api/extras/journal_entry'
|
2
|
+
require 'netbox_client_ruby/api/extras/journal_entries'
|
1
3
|
require 'netbox_client_ruby/api/extras/tag'
|
2
4
|
require 'netbox_client_ruby/api/extras/tags'
|
3
5
|
|
4
6
|
module NetboxClientRuby
|
5
7
|
module Extras
|
6
8
|
{
|
9
|
+
journal_entries: JournalEntries,
|
7
10
|
tags: Tags
|
8
11
|
}.each_pair do |method_name, class_name|
|
9
12
|
define_method(method_name) { class_name.new }
|
@@ -11,6 +14,7 @@ module NetboxClientRuby
|
|
11
14
|
end
|
12
15
|
|
13
16
|
{
|
17
|
+
journal_entry: JournalEntry,
|
14
18
|
tag: Tag
|
15
19
|
}.each_pair do |method_name, class_name|
|
16
20
|
define_method(method_name) { |id| class_name.new id }
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'netbox_client_ruby/entities'
|
2
|
+
require 'netbox_client_ruby/api/extras/journal_entry'
|
3
|
+
|
4
|
+
module NetboxClientRuby
|
5
|
+
module Extras
|
6
|
+
class JournalEntries
|
7
|
+
include Entities
|
8
|
+
|
9
|
+
path 'extras/journal-entries.json'
|
10
|
+
data_key 'results'
|
11
|
+
count_key 'count'
|
12
|
+
entity_creator :entity_creator
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def entity_creator(raw_entity)
|
17
|
+
JournalEntry.new raw_entity['id']
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'netbox_client_ruby/entity'
|
2
|
+
|
3
|
+
module NetboxClientRuby
|
4
|
+
module Extras
|
5
|
+
class JournalEntry
|
6
|
+
include Entity
|
7
|
+
|
8
|
+
id id: :id
|
9
|
+
deletable true
|
10
|
+
path 'extras/journal-entries/:id.json'
|
11
|
+
creation_path 'extras/journal-entries/'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netbox-client-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Mäder
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -277,6 +277,8 @@ files:
|
|
277
277
|
- lib/netbox_client_ruby/api/dcim/virtual_chassis.rb
|
278
278
|
- lib/netbox_client_ruby/api/dcim/virtual_chassis_list.rb
|
279
279
|
- lib/netbox_client_ruby/api/extras.rb
|
280
|
+
- lib/netbox_client_ruby/api/extras/journal_entries.rb
|
281
|
+
- lib/netbox_client_ruby/api/extras/journal_entry.rb
|
280
282
|
- lib/netbox_client_ruby/api/extras/tag.rb
|
281
283
|
- lib/netbox_client_ruby/api/extras/tags.rb
|
282
284
|
- lib/netbox_client_ruby/api/ipam.rb
|