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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6835635082c310d68bf3c5e028b5e89e92ada87432f57e52e2c270bcf36fd4f3
4
- data.tar.gz: a501cac0652b5753f201ee13d97ab457c97c22c9026bb267a8edc577e91939d6
3
+ metadata.gz: c1b577f911d494956865374aa70ea4b288b4cb1de16786462450479cbcaf2669
4
+ data.tar.gz: 5d9b99c3e206c1b82dc2890e9903d957a6e5c2a20497971cd7cc4106770cbd8a
5
5
  SHA512:
6
- metadata.gz: 5715a8dcbe1bb20c70824b81b6238fd353df459d756efd8f6ab39be3ce630da46a3510d7caf64e485951b5421a35c8eb86342fc8610dad6efd23ec49677f8d97
7
- data.tar.gz: aafe119e6df6ed41db7a99dde044bb2c5342d2657ea555dc07d9198900f709fbaa2316fe0e427332b5b9e57b0ae2ecb7346d8385421514f564bc5c9af154a3a7
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.14.0
1
+ 0.15.0
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NetboxClientRuby
4
+ module DCIM
5
+ class Location
6
+ include Entity
7
+
8
+ id id: :id
9
+ deletable true
10
+ path 'dcim/locations/:id/'
11
+ creation_path 'dcim/locations/'
12
+ end
13
+ end
14
+ end
@@ -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.14.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: 2025-12-12 00:00:00.000000000 Z
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