netbox-client-ruby 0.13.1 → 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: c3c13d93a4b630b6cbf0132bd3be08c5ce516eb5dd41796663decda4ecbaf3c5
4
- data.tar.gz: da860034ae235b12b07fe39a2ed55d349df9805763312030eccdda9080184db3
3
+ metadata.gz: c1b577f911d494956865374aa70ea4b288b4cb1de16786462450479cbcaf2669
4
+ data.tar.gz: 5d9b99c3e206c1b82dc2890e9903d957a6e5c2a20497971cd7cc4106770cbd8a
5
5
  SHA512:
6
- metadata.gz: 0de307eed7348946cc8d93c9e31fad29ad7931a01ab7fb9c3c29f00cb7218829e00e8b0033b7730add002c9552d2880cace8acb7eb915bbb4ca03e9579255685
7
- data.tar.gz: 2bc8a49a8cb146f84ac9fcce228f1325c7925120afb0598fee6a6b4b560d28964de9ade481e60ac5971a78561b511ad48dc4987e0f51f470671a3cf2e8517155
6
+ metadata.gz: e5a461a83417e45b9318d136f837cd661d2429559095f1aa7370690a166c819dea4862fc5b9245681c8422170827c1bed3832ac15dbce9693a233ab8fc0df65d
7
+ data.tar.gz: e875f59895689c991c0b1dd4471179367ea1fdac7328744525e79b7bc11bbe6cd8c9aac9125a8112f92cb915188db5bd65f30cf3741189890013d78ee82b2db4
data/README.md CHANGED
@@ -155,8 +155,10 @@ Not all objects which the Netbox API exposes are currently implemented. Implemen
155
155
  * Devices: `NetboxClientRuby.dcim.devices`
156
156
  * Device Roles: `NetboxClientRuby.dcim.device_roles`
157
157
  * Device Types: `NetboxClientRuby.dcim.device_types`
158
+ * Front Ports: `NetboxClientRuby.dcim.front_ports`
158
159
  * Interfaces: `NetboxClientRuby.dcim.interfaces`
159
160
  * Interface Connections: `NetboxClientRuby.dcim.interface_connections`
161
+ * Locations: `NetboxClientRuby.dcim.locations`
160
162
  * Manufacturers: `NetboxClientRuby.dcim.manufacturers`
161
163
  * Platforms: `NetboxClientRuby.dcim.platforms`
162
164
  * Power Connections: `NetboxClientRuby.dcim.power_connections`
@@ -166,6 +168,7 @@ Not all objects which the Netbox API exposes are currently implemented. Implemen
166
168
  * Rack Groups: `NetboxClientRuby.dcim.rack_groups`
167
169
  * Rack Roles: `NetboxClientRuby.dcim.rack_roles`
168
170
  * Rack Reservations: `NetboxClientRuby.dcim.rack_reservations`
171
+ * Rear Ports: `NetboxClientRuby.dcim.rear_ports`
169
172
  * Regions: `NetboxClientRuby.dcim.regions`
170
173
  * Sites: `NetboxClientRuby.dcim.sites`
171
174
  * Virtual Chassis: `NetboxClientRuby.dcim.virtual_chassis_list`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.13.1
1
+ 0.15.0
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NetboxClientRuby
4
+ module DCIM
5
+ class FrontPort
6
+ include Entity
7
+
8
+ id id: :id
9
+ deletable true
10
+ path 'dcim/front-ports/:id/'
11
+ creation_path 'dcim/front-ports/'
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NetboxClientRuby
4
+ module DCIM
5
+ class FrontPorts
6
+ include Entities
7
+
8
+ path 'dcim/front-ports/'
9
+ data_key 'results'
10
+ count_key 'count'
11
+ entity_creator :entity_creator
12
+
13
+ private
14
+
15
+ def entity_creator(raw_entity)
16
+ FrontPort.new raw_entity['id']
17
+ end
18
+ end
19
+ end
20
+ end
@@ -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
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NetboxClientRuby
4
+ module DCIM
5
+ class RearPort
6
+ include Entity
7
+
8
+ id id: :id
9
+ deletable true
10
+ path 'dcim/rear-ports/:id/'
11
+ creation_path 'dcim/rear-ports/'
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NetboxClientRuby
4
+ module DCIM
5
+ class RearPorts
6
+ include Entities
7
+
8
+ path 'dcim/rear-ports/'
9
+ data_key 'results'
10
+ count_key 'count'
11
+ entity_creator :entity_creator
12
+
13
+ private
14
+
15
+ def entity_creator(raw_entity)
16
+ RearPort.new raw_entity['id']
17
+ end
18
+ end
19
+ end
20
+ end
@@ -9,9 +9,11 @@ module NetboxClientRuby
9
9
  devices: Devices,
10
10
  device_roles: DeviceRoles,
11
11
  device_types: DeviceTypes,
12
+ front_ports: FrontPorts,
12
13
  interfaces: Interfaces,
13
14
  interface_connections: InterfaceConnections,
14
15
  inventory_items: InventoryItems,
16
+ locations: Locations,
15
17
  mac_addresses: MacAddresses,
16
18
  manufacturers: Manufacturers,
17
19
  platforms: Platforms,
@@ -22,6 +24,7 @@ module NetboxClientRuby
22
24
  rack_groups: RackGroups,
23
25
  rack_reservations: RackReservations,
24
26
  rack_roles: RackRoles,
27
+ rear_ports: RearPorts,
25
28
  regions: Regions,
26
29
  sites: Sites,
27
30
  virtual_chassis_list: VirtualChassisList,
@@ -36,9 +39,11 @@ module NetboxClientRuby
36
39
  device: Device,
37
40
  device_role: DeviceRole,
38
41
  device_type: DeviceType,
42
+ front_port: FrontPort,
39
43
  interface: Interface,
40
44
  interface_connection: InterfaceConnection,
41
45
  inventory_item: InventoryItem,
46
+ location: Location,
42
47
  mac_address: MacAddress,
43
48
  manufacturer: Manufacturer,
44
49
  platform: Platform,
@@ -49,6 +54,7 @@ module NetboxClientRuby
49
54
  rack_group: RackGroup,
50
55
  rack_reservation: RackReservation,
51
56
  rack_role: RackRole,
57
+ rear_port: RearPort,
52
58
  region: Region,
53
59
  site: Site,
54
60
  virtual_chassis: VirtualChassis,
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.13.1
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-11-17 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
@@ -140,12 +140,16 @@ files:
140
140
  - lib/netbox_client_ruby/api/dcim/device_type.rb
141
141
  - lib/netbox_client_ruby/api/dcim/device_types.rb
142
142
  - lib/netbox_client_ruby/api/dcim/devices.rb
143
+ - lib/netbox_client_ruby/api/dcim/front_port.rb
144
+ - lib/netbox_client_ruby/api/dcim/front_ports.rb
143
145
  - lib/netbox_client_ruby/api/dcim/interface.rb
144
146
  - lib/netbox_client_ruby/api/dcim/interface_connection.rb
145
147
  - lib/netbox_client_ruby/api/dcim/interface_connections.rb
146
148
  - lib/netbox_client_ruby/api/dcim/interfaces.rb
147
149
  - lib/netbox_client_ruby/api/dcim/inventory_item.rb
148
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
149
153
  - lib/netbox_client_ruby/api/dcim/mac_address.rb
150
154
  - lib/netbox_client_ruby/api/dcim/mac_addresses.rb
151
155
  - lib/netbox_client_ruby/api/dcim/manufacturer.rb
@@ -166,6 +170,8 @@ files:
166
170
  - lib/netbox_client_ruby/api/dcim/rack_role.rb
167
171
  - lib/netbox_client_ruby/api/dcim/rack_roles.rb
168
172
  - lib/netbox_client_ruby/api/dcim/racks.rb
173
+ - lib/netbox_client_ruby/api/dcim/rear_port.rb
174
+ - lib/netbox_client_ruby/api/dcim/rear_ports.rb
169
175
  - lib/netbox_client_ruby/api/dcim/region.rb
170
176
  - lib/netbox_client_ruby/api/dcim/regions.rb
171
177
  - lib/netbox_client_ruby/api/dcim/site.rb