netbox-client-ruby 0.13.1 → 0.14.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: 6835635082c310d68bf3c5e028b5e89e92ada87432f57e52e2c270bcf36fd4f3
4
+ data.tar.gz: a501cac0652b5753f201ee13d97ab457c97c22c9026bb267a8edc577e91939d6
5
5
  SHA512:
6
- metadata.gz: 0de307eed7348946cc8d93c9e31fad29ad7931a01ab7fb9c3c29f00cb7218829e00e8b0033b7730add002c9552d2880cace8acb7eb915bbb4ca03e9579255685
7
- data.tar.gz: 2bc8a49a8cb146f84ac9fcce228f1325c7925120afb0598fee6a6b4b560d28964de9ade481e60ac5971a78561b511ad48dc4987e0f51f470671a3cf2e8517155
6
+ metadata.gz: 5715a8dcbe1bb20c70824b81b6238fd353df459d756efd8f6ab39be3ce630da46a3510d7caf64e485951b5421a35c8eb86342fc8610dad6efd23ec49677f8d97
7
+ data.tar.gz: aafe119e6df6ed41db7a99dde044bb2c5342d2657ea555dc07d9198900f709fbaa2316fe0e427332b5b9e57b0ae2ecb7346d8385421514f564bc5c9af154a3a7
data/README.md CHANGED
@@ -155,6 +155,7 @@ 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`
160
161
  * Manufacturers: `NetboxClientRuby.dcim.manufacturers`
@@ -166,6 +167,7 @@ Not all objects which the Netbox API exposes are currently implemented. Implemen
166
167
  * Rack Groups: `NetboxClientRuby.dcim.rack_groups`
167
168
  * Rack Roles: `NetboxClientRuby.dcim.rack_roles`
168
169
  * Rack Reservations: `NetboxClientRuby.dcim.rack_reservations`
170
+ * Rear Ports: `NetboxClientRuby.dcim.rear_ports`
169
171
  * Regions: `NetboxClientRuby.dcim.regions`
170
172
  * Sites: `NetboxClientRuby.dcim.sites`
171
173
  * Virtual Chassis: `NetboxClientRuby.dcim.virtual_chassis_list`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.13.1
1
+ 0.14.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 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,6 +9,7 @@ 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,
@@ -22,6 +23,7 @@ module NetboxClientRuby
22
23
  rack_groups: RackGroups,
23
24
  rack_reservations: RackReservations,
24
25
  rack_roles: RackRoles,
26
+ rear_ports: RearPorts,
25
27
  regions: Regions,
26
28
  sites: Sites,
27
29
  virtual_chassis_list: VirtualChassisList,
@@ -36,6 +38,7 @@ module NetboxClientRuby
36
38
  device: Device,
37
39
  device_role: DeviceRole,
38
40
  device_type: DeviceType,
41
+ front_port: FrontPort,
39
42
  interface: Interface,
40
43
  interface_connection: InterfaceConnection,
41
44
  inventory_item: InventoryItem,
@@ -49,6 +52,7 @@ module NetboxClientRuby
49
52
  rack_group: RackGroup,
50
53
  rack_reservation: RackReservation,
51
54
  rack_role: RackRole,
55
+ rear_port: RearPort,
52
56
  region: Region,
53
57
  site: Site,
54
58
  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.14.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: 2025-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -140,6 +140,8 @@ 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
@@ -166,6 +168,8 @@ files:
166
168
  - lib/netbox_client_ruby/api/dcim/rack_role.rb
167
169
  - lib/netbox_client_ruby/api/dcim/rack_roles.rb
168
170
  - lib/netbox_client_ruby/api/dcim/racks.rb
171
+ - lib/netbox_client_ruby/api/dcim/rear_port.rb
172
+ - lib/netbox_client_ruby/api/dcim/rear_ports.rb
169
173
  - lib/netbox_client_ruby/api/dcim/region.rb
170
174
  - lib/netbox_client_ruby/api/dcim/regions.rb
171
175
  - lib/netbox_client_ruby/api/dcim/site.rb