netbox-client-ruby 0.10.0 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rspec.yml +6 -4
- data/.gitignore +6 -1
- data/Appraisals +17 -0
- data/Gemfile +15 -3
- data/Rakefile +2 -0
- data/bin/setup +1 -4
- data/gemfiles/faraday0.gemfile +12 -2
- data/gemfiles/faraday1.gemfile +11 -1
- data/gemfiles/faraday2.gemfile +11 -1
- data/lib/netbox-client-ruby.rb +2 -0
- data/lib/netbox_client_ruby/api/circuits/circuit.rb +1 -4
- data/lib/netbox_client_ruby/api/circuits/circuit_termination.rb +1 -4
- data/lib/netbox_client_ruby/api/circuits/circuit_terminations.rb +2 -3
- data/lib/netbox_client_ruby/api/circuits/circuit_type.rb +1 -1
- data/lib/netbox_client_ruby/api/circuits/circuit_types.rb +2 -3
- data/lib/netbox_client_ruby/api/circuits/circuits.rb +2 -3
- data/lib/netbox_client_ruby/api/circuits/provider.rb +1 -1
- data/lib/netbox_client_ruby/api/circuits/providers.rb +2 -3
- data/lib/netbox_client_ruby/api/circuits.rb +1 -9
- data/lib/netbox_client_ruby/api/dcim/console_connection.rb +1 -3
- data/lib/netbox_client_ruby/api/dcim/console_connections.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/console_port.rb +1 -3
- data/lib/netbox_client_ruby/api/dcim/console_ports.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/console_server_port.rb +1 -3
- data/lib/netbox_client_ruby/api/dcim/console_server_ports.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/device.rb +1 -9
- data/lib/netbox_client_ruby/api/dcim/device_role.rb +1 -1
- data/lib/netbox_client_ruby/api/dcim/device_roles.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/device_type.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/device_types.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/devices.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/interface.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/interface_connection.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/interface_connections.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/interfaces.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/inventory_item.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/inventory_items.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/manufacturer.rb +1 -1
- data/lib/netbox_client_ruby/api/dcim/manufacturers.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/platform.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/platforms.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/power_connection.rb +1 -3
- data/lib/netbox_client_ruby/api/dcim/power_connections.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/power_outlet.rb +1 -3
- data/lib/netbox_client_ruby/api/dcim/power_outlets.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/power_port.rb +1 -3
- data/lib/netbox_client_ruby/api/dcim/power_ports.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/rack.rb +1 -1
- data/lib/netbox_client_ruby/api/dcim/rack_group.rb +1 -3
- data/lib/netbox_client_ruby/api/dcim/rack_groups.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/rack_reservation.rb +1 -3
- data/lib/netbox_client_ruby/api/dcim/rack_reservations.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/rack_role.rb +1 -1
- data/lib/netbox_client_ruby/api/dcim/rack_roles.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/racks.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/region.rb +1 -1
- data/lib/netbox_client_ruby/api/dcim/regions.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/site.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/sites.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/virtual_chassis_list.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim.rb +1 -43
- data/lib/netbox_client_ruby/api/extras/config_context.rb +1 -1
- data/lib/netbox_client_ruby/api/extras/config_contexts.rb +2 -3
- data/lib/netbox_client_ruby/api/extras/journal_entries.rb +2 -3
- data/lib/netbox_client_ruby/api/extras/journal_entry.rb +1 -1
- data/lib/netbox_client_ruby/api/extras/tag.rb +1 -1
- data/lib/netbox_client_ruby/api/extras/tags.rb +2 -3
- data/lib/netbox_client_ruby/api/extras.rb +1 -6
- data/lib/netbox_client_ruby/api/ipam/aggregate.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/aggregates.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/ip_address.rb +3 -11
- data/lib/netbox_client_ruby/api/ipam/ip_addresses.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/ip_range.rb +1 -5
- data/lib/netbox_client_ruby/api/ipam/ip_ranges.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/prefix.rb +1 -8
- data/lib/netbox_client_ruby/api/ipam/prefixes.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/rir.rb +1 -1
- data/lib/netbox_client_ruby/api/ipam/rirs.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/role.rb +1 -1
- data/lib/netbox_client_ruby/api/ipam/roles.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/service.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/services.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/vlan.rb +1 -5
- data/lib/netbox_client_ruby/api/ipam/vlan_group.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/vlan_groups.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/vlans.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/vrf.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/vrfs.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam.rb +1 -21
- data/lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb +1 -3
- data/lib/netbox_client_ruby/api/secrets/secret.rb +1 -3
- data/lib/netbox_client_ruby/api/secrets/secret_role.rb +1 -3
- data/lib/netbox_client_ruby/api/secrets/secret_roles.rb +2 -3
- data/lib/netbox_client_ruby/api/secrets/secrets.rb +2 -3
- data/lib/netbox_client_ruby/api/secrets/session_key.rb +1 -4
- data/lib/netbox_client_ruby/api/secrets.rb +1 -5
- data/lib/netbox_client_ruby/api/tenancy/tenant.rb +1 -2
- data/lib/netbox_client_ruby/api/tenancy/tenant_group.rb +1 -1
- data/lib/netbox_client_ruby/api/tenancy/tenant_groups.rb +2 -3
- data/lib/netbox_client_ruby/api/tenancy/tenants.rb +2 -3
- data/lib/netbox_client_ruby/api/tenancy.rb +1 -5
- data/lib/netbox_client_ruby/api/virtualization/cluster.rb +1 -4
- data/lib/netbox_client_ruby/api/virtualization/cluster_group.rb +1 -1
- data/lib/netbox_client_ruby/api/virtualization/cluster_groups.rb +2 -3
- data/lib/netbox_client_ruby/api/virtualization/cluster_type.rb +1 -1
- data/lib/netbox_client_ruby/api/virtualization/cluster_types.rb +2 -3
- data/lib/netbox_client_ruby/api/virtualization/clusters.rb +2 -3
- data/lib/netbox_client_ruby/api/virtualization/interface.rb +1 -2
- data/lib/netbox_client_ruby/api/virtualization/interfaces.rb +2 -3
- data/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb +1 -6
- data/lib/netbox_client_ruby/api/virtualization/virtual_machines.rb +2 -3
- data/lib/netbox_client_ruby/api/virtualization.rb +1 -11
- data/lib/netbox_client_ruby/communication.rb +3 -4
- data/lib/netbox_client_ruby/connection.rb +1 -19
- data/lib/netbox_client_ruby/entities.rb +1 -2
- data/lib/netbox_client_ruby/entity.rb +9 -10
- data/lib/netbox_client_ruby/error.rb +2 -0
- data/lib/netbox_client_ruby.rb +67 -2
- data/netbox-client-ruby.gemspec +3 -13
- metadata +9 -84
- data/Gemfile.lock +0 -115
- data/VERSION +0 -1
- data/gemfiles/faraday0.gemfile.lock +0 -94
- data/gemfiles/faraday1.gemfile.lock +0 -93
- data/gemfiles/faraday2.gemfile.lock +0 -101
- data/lib/netbox_client_ruby/api.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18e5869bd3208f03bf22e8289c197e33d3dffabe0f3cbc9d2ca76af857f2b4c2
|
4
|
+
data.tar.gz: 0fdfe7917cc1a7044ff62027cbeeda0f70c5f7300050900a35cb9022b7217aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a8d7fe9888b6dcfbb5ea83afd762c64015cccf686d745e0ac62bd9da59d4d0c1168c5d45f690b1047155bebd633041cc1ec82d95ca31aac6ec9783cf686552a
|
7
|
+
data.tar.gz: 33a83a7ce2d5456a50967b35bb49d747e605d6e1449b1152164c220b6968e6cd56177fec8667bad1f924e8d1527f7fc2dc36575c59bb906f7471a34b2d8ae880
|
data/.github/workflows/rspec.yml
CHANGED
@@ -15,11 +15,9 @@ jobs:
|
|
15
15
|
matrix:
|
16
16
|
os: [ubuntu-latest]
|
17
17
|
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
|
18
|
-
ruby: ['2.7', '3.0', '3.1', '3.2']
|
18
|
+
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
|
19
19
|
gemfile:
|
20
20
|
[
|
21
|
-
'Gemfile',
|
22
|
-
'gemfiles/faraday0.gemfile',
|
23
21
|
'gemfiles/faraday1.gemfile',
|
24
22
|
'gemfiles/faraday2.gemfile',
|
25
23
|
]
|
@@ -31,11 +29,15 @@ jobs:
|
|
31
29
|
gemfile: gemfiles/faraday0.gemfile
|
32
30
|
- ruby: '3.2'
|
33
31
|
gemfile: gemfiles/faraday0.gemfile
|
32
|
+
- ruby: '3.3'
|
33
|
+
gemfile: gemfiles/faraday0.gemfile
|
34
34
|
runs-on: ${{ matrix.os }}
|
35
35
|
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
36
36
|
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
|
37
37
|
steps:
|
38
|
-
- uses: actions/checkout@
|
38
|
+
- uses: actions/checkout@v4
|
39
|
+
with:
|
40
|
+
fetch-depth: 0
|
39
41
|
- uses: ruby/setup-ruby@v1
|
40
42
|
with:
|
41
43
|
ruby-version: ${{ matrix.ruby }}
|
data/.gitignore
CHANGED
data/Appraisals
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
appraise 'faraday0' do
|
4
|
+
gem 'faraday', '< 1.0'
|
5
|
+
gem 'faraday_middleware', '< 1'
|
6
|
+
end
|
7
|
+
|
8
|
+
appraise 'faraday1' do
|
9
|
+
gem 'faraday', '= 1.0'
|
10
|
+
gem 'faraday_middleware', '< 2'
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise 'faraday2' do
|
14
|
+
gem 'faraday', '< 3'
|
15
|
+
gem 'faraday-net_http_persistent'
|
16
|
+
remove_gem "faraday_middleware"
|
17
|
+
end
|
data/Gemfile
CHANGED
@@ -1,7 +1,19 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
gem "faraday_middleware"
|
3
|
+
source 'https://rubygems.org'
|
5
4
|
|
6
5
|
# Specify your gem dependencies in netbox-client-ruby.gemspec
|
7
6
|
gemspec
|
7
|
+
|
8
|
+
gem 'appraisal', git: 'https://github.com/thoughtbot/appraisal.git'
|
9
|
+
gem 'pry'
|
10
|
+
gem 'rake'
|
11
|
+
gem 'rspec'
|
12
|
+
gem 'rubocop'
|
13
|
+
gem 'rubocop-performance'
|
14
|
+
gem 'rubocop-rake'
|
15
|
+
gem 'rubocop-rspec'
|
16
|
+
|
17
|
+
# fallback to faraday 1.x in dev environment
|
18
|
+
gem 'faraday', '~> 1.10'
|
19
|
+
gem 'faraday_middleware'
|
data/Rakefile
CHANGED
data/bin/setup
CHANGED
data/gemfiles/faraday0.gemfile
CHANGED
@@ -1,6 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
1
3
|
source "https://rubygems.org"
|
2
4
|
|
3
|
-
gem "
|
5
|
+
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
|
6
|
+
gem "pry"
|
7
|
+
gem "rake"
|
8
|
+
gem "rspec"
|
9
|
+
gem "rubocop"
|
10
|
+
gem "rubocop-performance"
|
11
|
+
gem "rubocop-rake"
|
12
|
+
gem "rubocop-rspec"
|
13
|
+
gem "faraday", "< 1.0"
|
4
14
|
gem "faraday_middleware", "< 1"
|
5
15
|
|
6
|
-
gemspec path: "
|
16
|
+
gemspec path: "../"
|
data/gemfiles/faraday1.gemfile
CHANGED
@@ -1,6 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
1
3
|
source "https://rubygems.org"
|
2
4
|
|
5
|
+
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
|
6
|
+
gem "pry"
|
7
|
+
gem "rake"
|
8
|
+
gem "rspec"
|
9
|
+
gem "rubocop"
|
10
|
+
gem "rubocop-performance"
|
11
|
+
gem "rubocop-rake"
|
12
|
+
gem "rubocop-rspec"
|
3
13
|
gem "faraday", "= 1.0"
|
4
14
|
gem "faraday_middleware", "< 2"
|
5
15
|
|
6
|
-
gemspec path: "
|
16
|
+
gemspec path: "../"
|
data/gemfiles/faraday2.gemfile
CHANGED
@@ -1,6 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
1
3
|
source "https://rubygems.org"
|
2
4
|
|
5
|
+
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
|
6
|
+
gem "pry"
|
7
|
+
gem "rake"
|
8
|
+
gem "rspec"
|
9
|
+
gem "rubocop"
|
10
|
+
gem "rubocop-performance"
|
11
|
+
gem "rubocop-rake"
|
12
|
+
gem "rubocop-rspec"
|
3
13
|
gem "faraday", "< 3"
|
4
14
|
gem "faraday-net_http_persistent"
|
5
15
|
|
6
|
-
gemspec path: "
|
16
|
+
gemspec path: "../"
|
data/lib/netbox-client-ruby.rb
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/circuits/circuit_type'
|
3
|
-
require 'netbox_client_ruby/api/circuits/provider'
|
4
|
-
require 'netbox_client_ruby/api/tenancy/tenant'
|
1
|
+
# frozen_string_literal: true
|
5
2
|
|
6
3
|
module NetboxClientRuby
|
7
4
|
module Circuits
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/circuits/circuit_termination'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module Circuits
|
6
5
|
class CircuitTerminations
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'circuits/circuit-terminations
|
8
|
+
path 'circuits/circuit-terminations/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/circuits/circuit_type'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module Circuits
|
6
5
|
class CircuitTypes
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'circuits/circuit-types
|
8
|
+
path 'circuits/circuit-types/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/circuits/circuit'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module Circuits
|
@@ -11,7 +10,7 @@ module NetboxClientRuby
|
|
11
10
|
class Circuits
|
12
11
|
include Entities
|
13
12
|
|
14
|
-
path 'circuits/circuits
|
13
|
+
path 'circuits/circuits/'
|
15
14
|
data_key 'results'
|
16
15
|
count_key 'count'
|
17
16
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/circuits/provider'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module Circuits
|
6
5
|
class Providers
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'circuits/providers
|
8
|
+
path 'circuits/providers/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,4 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/circuits/circuits'
|
3
|
-
require 'netbox_client_ruby/api/circuits/circuit_termination'
|
4
|
-
require 'netbox_client_ruby/api/circuits/circuit_terminations'
|
5
|
-
require 'netbox_client_ruby/api/circuits/circuit_type'
|
6
|
-
require 'netbox_client_ruby/api/circuits/circuit_types'
|
7
|
-
require 'netbox_client_ruby/api/circuits/provider'
|
8
|
-
require 'netbox_client_ruby/api/circuits/providers'
|
9
|
-
require 'netbox_client_ruby/communication'
|
1
|
+
# frozen_string_literal: true
|
10
2
|
|
11
3
|
module NetboxClientRuby
|
12
4
|
module Circuits
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/console_connection'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class ConsoleConnections
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/console-connections
|
8
|
+
path 'dcim/console-connections/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/console_port'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class ConsolePorts
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/console-ports
|
8
|
+
path 'dcim/console-ports/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/console_server_port'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class ConsoleServerPorts
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/console-server-ports
|
8
|
+
path 'dcim/console-server-ports/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,4 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/device_type'
|
3
|
-
require 'netbox_client_ruby/api/dcim/device_role'
|
4
|
-
require 'netbox_client_ruby/api/tenancy/tenant'
|
5
|
-
require 'netbox_client_ruby/api/dcim/platform'
|
6
|
-
require 'netbox_client_ruby/api/dcim/site'
|
7
|
-
require 'netbox_client_ruby/api/dcim/rack'
|
8
|
-
require 'netbox_client_ruby/api/dcim/virtual_chassis'
|
9
|
-
require 'netbox_client_ruby/api/ipam/ip_address'
|
1
|
+
# frozen_string_literal: true
|
10
2
|
|
11
3
|
module NetboxClientRuby
|
12
4
|
module DCIM
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/device_type'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class DeviceRoles
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/device-roles
|
8
|
+
path 'dcim/device-roles/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/device_type'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class DeviceTypes
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/device-types
|
8
|
+
path 'dcim/device-types/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/device'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class Devices
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/devices
|
8
|
+
path 'dcim/devices/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/interface_connection'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class InterfaceConnections
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/interface-connections
|
8
|
+
path 'dcim/interface-connections/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/interface'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class Interfaces
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/interfaces
|
8
|
+
path 'dcim/interfaces/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/inventory_item'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class InventoryItems
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/inventory-items
|
8
|
+
path 'dcim/inventory-items/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/manufacturer'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class Manufacturers
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/manufacturers
|
8
|
+
path 'dcim/manufacturers/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/platform'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class Platforms
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/platforms
|
8
|
+
path 'dcim/platforms/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/power_connection'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class PowerConnections
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/power-connections
|
8
|
+
path 'dcim/power-connections/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/interface'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class PowerOutlets
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/power-outlets
|
8
|
+
path 'dcim/power-outlets/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
require 'netbox_client_ruby/api/dcim/interface'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
3
|
module NetboxClientRuby
|
5
4
|
module DCIM
|
6
5
|
class PowerPorts
|
7
6
|
include Entities
|
8
7
|
|
9
|
-
path 'dcim/power-ports
|
8
|
+
path 'dcim/power-ports/'
|
10
9
|
data_key 'results'
|
11
10
|
count_key 'count'
|
12
11
|
entity_creator :entity_creator
|