netbox-client-ruby 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/VERSION +1 -1
- data/lib/netbox_client_ruby/api/dcim/location.rb +14 -0
- data/lib/netbox_client_ruby/api/dcim/locations.rb +20 -0
- data/lib/netbox_client_ruby/api/dcim.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1b577f911d494956865374aa70ea4b288b4cb1de16786462450479cbcaf2669
|
|
4
|
+
data.tar.gz: 5d9b99c3e206c1b82dc2890e9903d957a6e5c2a20497971cd7cc4106770cbd8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5a461a83417e45b9318d136f837cd661d2429559095f1aa7370690a166c819dea4862fc5b9245681c8422170827c1bed3832ac15dbce9693a233ab8fc0df65d
|
|
7
|
+
data.tar.gz: e875f59895689c991c0b1dd4471179367ea1fdac7328744525e79b7bc11bbe6cd8c9aac9125a8112f92cb915188db5bd65f30cf3741189890013d78ee82b2db4
|
data/README.md
CHANGED
|
@@ -158,6 +158,7 @@ Not all objects which the Netbox API exposes are currently implemented. Implemen
|
|
|
158
158
|
* Front Ports: `NetboxClientRuby.dcim.front_ports`
|
|
159
159
|
* Interfaces: `NetboxClientRuby.dcim.interfaces`
|
|
160
160
|
* Interface Connections: `NetboxClientRuby.dcim.interface_connections`
|
|
161
|
+
* Locations: `NetboxClientRuby.dcim.locations`
|
|
161
162
|
* Manufacturers: `NetboxClientRuby.dcim.manufacturers`
|
|
162
163
|
* Platforms: `NetboxClientRuby.dcim.platforms`
|
|
163
164
|
* Power Connections: `NetboxClientRuby.dcim.power_connections`
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.15.0
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module NetboxClientRuby
|
|
4
|
+
module DCIM
|
|
5
|
+
class Locations
|
|
6
|
+
include Entities
|
|
7
|
+
|
|
8
|
+
path 'dcim/locations/'
|
|
9
|
+
data_key 'results'
|
|
10
|
+
count_key 'count'
|
|
11
|
+
entity_creator :entity_creator
|
|
12
|
+
|
|
13
|
+
private
|
|
14
|
+
|
|
15
|
+
def entity_creator(raw_entity)
|
|
16
|
+
Location.new raw_entity['id']
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -13,6 +13,7 @@ module NetboxClientRuby
|
|
|
13
13
|
interfaces: Interfaces,
|
|
14
14
|
interface_connections: InterfaceConnections,
|
|
15
15
|
inventory_items: InventoryItems,
|
|
16
|
+
locations: Locations,
|
|
16
17
|
mac_addresses: MacAddresses,
|
|
17
18
|
manufacturers: Manufacturers,
|
|
18
19
|
platforms: Platforms,
|
|
@@ -42,6 +43,7 @@ module NetboxClientRuby
|
|
|
42
43
|
interface: Interface,
|
|
43
44
|
interface_connection: InterfaceConnection,
|
|
44
45
|
inventory_item: InventoryItem,
|
|
46
|
+
location: Location,
|
|
45
47
|
mac_address: MacAddress,
|
|
46
48
|
manufacturer: Manufacturer,
|
|
47
49
|
platform: Platform,
|
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.
|
|
4
|
+
version: 0.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nine Internet Solutions AG
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-configurable
|
|
@@ -148,6 +148,8 @@ files:
|
|
|
148
148
|
- lib/netbox_client_ruby/api/dcim/interfaces.rb
|
|
149
149
|
- lib/netbox_client_ruby/api/dcim/inventory_item.rb
|
|
150
150
|
- lib/netbox_client_ruby/api/dcim/inventory_items.rb
|
|
151
|
+
- lib/netbox_client_ruby/api/dcim/location.rb
|
|
152
|
+
- lib/netbox_client_ruby/api/dcim/locations.rb
|
|
151
153
|
- lib/netbox_client_ruby/api/dcim/mac_address.rb
|
|
152
154
|
- lib/netbox_client_ruby/api/dcim/mac_addresses.rb
|
|
153
155
|
- lib/netbox_client_ruby/api/dcim/manufacturer.rb
|