netbox-client-ruby 0.10.1 → 0.10.3
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/.github/workflows/rspec.yml +4 -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 +2 -5
- data/lib/netbox_client_ruby/api/circuits/circuit_termination.rb +2 -5
- data/lib/netbox_client_ruby/api/circuits/circuit_terminations.rb +1 -2
- data/lib/netbox_client_ruby/api/circuits/circuit_type.rb +2 -2
- data/lib/netbox_client_ruby/api/circuits/circuit_types.rb +1 -2
- data/lib/netbox_client_ruby/api/circuits/circuits.rb +1 -2
- data/lib/netbox_client_ruby/api/circuits/provider.rb +2 -2
- data/lib/netbox_client_ruby/api/circuits/providers.rb +1 -2
- data/lib/netbox_client_ruby/api/circuits.rb +1 -9
- data/lib/netbox_client_ruby/api/dcim/console_connection.rb +2 -4
- data/lib/netbox_client_ruby/api/dcim/console_connections.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/console_port.rb +2 -4
- data/lib/netbox_client_ruby/api/dcim/console_ports.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/console_server_port.rb +2 -4
- data/lib/netbox_client_ruby/api/dcim/console_server_ports.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/device.rb +2 -10
- data/lib/netbox_client_ruby/api/dcim/device_role.rb +2 -2
- data/lib/netbox_client_ruby/api/dcim/device_roles.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/device_type.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/device_types.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/devices.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/interface.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/interface_connection.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/interface_connections.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/interfaces.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/inventory_item.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/inventory_items.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/manufacturer.rb +2 -2
- data/lib/netbox_client_ruby/api/dcim/manufacturers.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/platform.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/platforms.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/power_connection.rb +2 -4
- data/lib/netbox_client_ruby/api/dcim/power_connections.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/power_outlet.rb +2 -4
- data/lib/netbox_client_ruby/api/dcim/power_outlets.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/power_port.rb +2 -4
- data/lib/netbox_client_ruby/api/dcim/power_ports.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/rack.rb +2 -2
- data/lib/netbox_client_ruby/api/dcim/rack_group.rb +2 -4
- data/lib/netbox_client_ruby/api/dcim/rack_groups.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/rack_reservation.rb +2 -4
- data/lib/netbox_client_ruby/api/dcim/rack_reservations.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/rack_role.rb +2 -2
- data/lib/netbox_client_ruby/api/dcim/rack_roles.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/racks.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/region.rb +2 -2
- data/lib/netbox_client_ruby/api/dcim/regions.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/site.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/sites.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb +2 -3
- data/lib/netbox_client_ruby/api/dcim/virtual_chassis_list.rb +1 -2
- data/lib/netbox_client_ruby/api/dcim.rb +1 -43
- data/lib/netbox_client_ruby/api/extras/config_context.rb +2 -2
- data/lib/netbox_client_ruby/api/extras/config_contexts.rb +1 -2
- data/lib/netbox_client_ruby/api/extras/journal_entries.rb +1 -2
- data/lib/netbox_client_ruby/api/extras/journal_entry.rb +2 -2
- data/lib/netbox_client_ruby/api/extras/tag.rb +2 -2
- data/lib/netbox_client_ruby/api/extras/tags.rb +1 -2
- data/lib/netbox_client_ruby/api/extras.rb +1 -6
- data/lib/netbox_client_ruby/api/ipam/aggregate.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/aggregates.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/ip_address.rb +4 -12
- data/lib/netbox_client_ruby/api/ipam/ip_addresses.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/ip_range.rb +2 -6
- data/lib/netbox_client_ruby/api/ipam/ip_ranges.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/prefix.rb +2 -9
- data/lib/netbox_client_ruby/api/ipam/prefixes.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/rir.rb +2 -2
- data/lib/netbox_client_ruby/api/ipam/rirs.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/role.rb +2 -2
- data/lib/netbox_client_ruby/api/ipam/roles.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/service.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/services.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/vlan.rb +2 -6
- data/lib/netbox_client_ruby/api/ipam/vlan_group.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/vlan_groups.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/vlans.rb +1 -2
- data/lib/netbox_client_ruby/api/ipam/vrf.rb +2 -3
- data/lib/netbox_client_ruby/api/ipam/vrfs.rb +1 -2
- 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 +2 -4
- data/lib/netbox_client_ruby/api/secrets/secret_role.rb +2 -4
- data/lib/netbox_client_ruby/api/secrets/secret_roles.rb +1 -2
- data/lib/netbox_client_ruby/api/secrets/secrets.rb +1 -2
- 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 +2 -3
- data/lib/netbox_client_ruby/api/tenancy/tenant_group.rb +2 -2
- data/lib/netbox_client_ruby/api/tenancy/tenant_groups.rb +1 -2
- data/lib/netbox_client_ruby/api/tenancy/tenants.rb +1 -2
- data/lib/netbox_client_ruby/api/tenancy.rb +1 -5
- data/lib/netbox_client_ruby/api/virtualization/cluster.rb +2 -5
- data/lib/netbox_client_ruby/api/virtualization/cluster_group.rb +2 -2
- data/lib/netbox_client_ruby/api/virtualization/cluster_groups.rb +1 -2
- data/lib/netbox_client_ruby/api/virtualization/cluster_type.rb +2 -2
- data/lib/netbox_client_ruby/api/virtualization/cluster_types.rb +1 -2
- data/lib/netbox_client_ruby/api/virtualization/clusters.rb +1 -2
- data/lib/netbox_client_ruby/api/virtualization/interface.rb +2 -3
- data/lib/netbox_client_ruby/api/virtualization/interfaces.rb +1 -2
- data/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb +2 -7
- data/lib/netbox_client_ruby/api/virtualization/virtual_machines.rb +1 -2
- data/lib/netbox_client_ruby/api/virtualization.rb +1 -11
- data/lib/netbox_client_ruby/communication.rb +1 -2
- 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 +2 -3
- data/lib/netbox_client_ruby/error.rb +2 -0
- data/lib/netbox_client_ruby.rb +67 -2
- data/netbox-client-ruby.gemspec +4 -14
- metadata +10 -84
- data/Gemfile.lock +0 -117
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module NetboxClientRuby
|
|
4
4
|
module DCIM
|
|
@@ -7,7 +7,7 @@ module NetboxClientRuby
|
|
|
7
7
|
|
|
8
8
|
id id: :id
|
|
9
9
|
deletable true
|
|
10
|
-
path 'dcim/racks/:id
|
|
10
|
+
path 'dcim/racks/:id/'
|
|
11
11
|
creation_path 'dcim/racks/'
|
|
12
12
|
end
|
|
13
13
|
end
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/dcim/region'
|
|
3
|
-
require 'netbox_client_ruby/api/tenancy/tenant'
|
|
1
|
+
# frozen_string_literal: true
|
|
4
2
|
|
|
5
3
|
module NetboxClientRuby
|
|
6
4
|
module DCIM
|
|
@@ -9,7 +7,7 @@ module NetboxClientRuby
|
|
|
9
7
|
|
|
10
8
|
id id: :id
|
|
11
9
|
deletable true
|
|
12
|
-
path 'dcim/rack-groups/:id
|
|
10
|
+
path 'dcim/rack-groups/:id/'
|
|
13
11
|
creation_path 'dcim/rack-groups/'
|
|
14
12
|
object_fields(
|
|
15
13
|
region: proc { |raw_data| DCIM::Region.new raw_data['id'] },
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/dcim/rack'
|
|
3
|
-
require 'netbox_client_ruby/api/tenancy/tenant'
|
|
1
|
+
# frozen_string_literal: true
|
|
4
2
|
|
|
5
3
|
module NetboxClientRuby
|
|
6
4
|
module DCIM
|
|
@@ -9,7 +7,7 @@ module NetboxClientRuby
|
|
|
9
7
|
|
|
10
8
|
id id: :id
|
|
11
9
|
deletable true
|
|
12
|
-
path 'dcim/rack-reservations/:id
|
|
10
|
+
path 'dcim/rack-reservations/:id/'
|
|
13
11
|
creation_path 'dcim/rack-reservations/'
|
|
14
12
|
|
|
15
13
|
object_fields(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module NetboxClientRuby
|
|
4
4
|
module DCIM
|
|
@@ -7,7 +7,7 @@ module NetboxClientRuby
|
|
|
7
7
|
|
|
8
8
|
id id: :id
|
|
9
9
|
deletable true
|
|
10
|
-
path 'dcim/rack-roles/:id
|
|
10
|
+
path 'dcim/rack-roles/:id/'
|
|
11
11
|
creation_path 'dcim/rack-roles/'
|
|
12
12
|
end
|
|
13
13
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module NetboxClientRuby
|
|
4
4
|
module DCIM
|
|
@@ -7,7 +7,7 @@ module NetboxClientRuby
|
|
|
7
7
|
|
|
8
8
|
id id: :id
|
|
9
9
|
deletable true
|
|
10
|
-
path 'dcim/regions/:id
|
|
10
|
+
path 'dcim/regions/:id/'
|
|
11
11
|
creation_path 'dcim/regions/'
|
|
12
12
|
object_fields parent: proc { |raw_data| Region.new raw_data['id'] }
|
|
13
13
|
end
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/dcim/region'
|
|
1
|
+
# frozen_string_literal: true
|
|
3
2
|
|
|
4
3
|
module NetboxClientRuby
|
|
5
4
|
module DCIM
|
|
@@ -17,7 +16,7 @@ module NetboxClientRuby
|
|
|
17
16
|
:count_devices, :count_circuits
|
|
18
17
|
|
|
19
18
|
deletable true
|
|
20
|
-
path 'dcim/sites/:id
|
|
19
|
+
path 'dcim/sites/:id/'
|
|
21
20
|
creation_path 'dcim/sites/'
|
|
22
21
|
object_fields(
|
|
23
22
|
region: proc { |raw_region| DCIM::Region.new raw_region['id'] },
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/dcim/device'
|
|
1
|
+
# frozen_string_literal: true
|
|
3
2
|
|
|
4
3
|
module NetboxClientRuby
|
|
5
4
|
module DCIM
|
|
@@ -8,7 +7,7 @@ module NetboxClientRuby
|
|
|
8
7
|
|
|
9
8
|
id id: :id
|
|
10
9
|
deletable true
|
|
11
|
-
path 'dcim/virtual-chassis/:id
|
|
10
|
+
path 'dcim/virtual-chassis/:id/'
|
|
12
11
|
creation_path 'dcim/virtual-chassis/'
|
|
13
12
|
|
|
14
13
|
object_fields(
|
|
@@ -1,46 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/dcim/console_connections'
|
|
3
|
-
require 'netbox_client_ruby/api/dcim/console_port'
|
|
4
|
-
require 'netbox_client_ruby/api/dcim/console_ports'
|
|
5
|
-
require 'netbox_client_ruby/api/dcim/console_server_port'
|
|
6
|
-
require 'netbox_client_ruby/api/dcim/console_server_ports'
|
|
7
|
-
require 'netbox_client_ruby/api/dcim/device'
|
|
8
|
-
require 'netbox_client_ruby/api/dcim/devices'
|
|
9
|
-
require 'netbox_client_ruby/api/dcim/device_role'
|
|
10
|
-
require 'netbox_client_ruby/api/dcim/device_roles'
|
|
11
|
-
require 'netbox_client_ruby/api/dcim/device_type'
|
|
12
|
-
require 'netbox_client_ruby/api/dcim/device_types'
|
|
13
|
-
require 'netbox_client_ruby/api/dcim/interface'
|
|
14
|
-
require 'netbox_client_ruby/api/dcim/interface_connection'
|
|
15
|
-
require 'netbox_client_ruby/api/dcim/interface_connections'
|
|
16
|
-
require 'netbox_client_ruby/api/dcim/interfaces'
|
|
17
|
-
require 'netbox_client_ruby/api/dcim/inventory_item'
|
|
18
|
-
require 'netbox_client_ruby/api/dcim/inventory_items'
|
|
19
|
-
require 'netbox_client_ruby/api/dcim/manufacturer'
|
|
20
|
-
require 'netbox_client_ruby/api/dcim/manufacturers'
|
|
21
|
-
require 'netbox_client_ruby/api/dcim/platform'
|
|
22
|
-
require 'netbox_client_ruby/api/dcim/platforms'
|
|
23
|
-
require 'netbox_client_ruby/api/dcim/power_connection'
|
|
24
|
-
require 'netbox_client_ruby/api/dcim/power_connections'
|
|
25
|
-
require 'netbox_client_ruby/api/dcim/power_outlet'
|
|
26
|
-
require 'netbox_client_ruby/api/dcim/power_outlets'
|
|
27
|
-
require 'netbox_client_ruby/api/dcim/power_port'
|
|
28
|
-
require 'netbox_client_ruby/api/dcim/power_ports'
|
|
29
|
-
require 'netbox_client_ruby/api/dcim/rack'
|
|
30
|
-
require 'netbox_client_ruby/api/dcim/rack_group'
|
|
31
|
-
require 'netbox_client_ruby/api/dcim/rack_groups'
|
|
32
|
-
require 'netbox_client_ruby/api/dcim/rack_reservation'
|
|
33
|
-
require 'netbox_client_ruby/api/dcim/rack_reservations'
|
|
34
|
-
require 'netbox_client_ruby/api/dcim/rack_role'
|
|
35
|
-
require 'netbox_client_ruby/api/dcim/rack_roles'
|
|
36
|
-
require 'netbox_client_ruby/api/dcim/racks'
|
|
37
|
-
require 'netbox_client_ruby/api/dcim/region'
|
|
38
|
-
require 'netbox_client_ruby/api/dcim/regions'
|
|
39
|
-
require 'netbox_client_ruby/api/dcim/site'
|
|
40
|
-
require 'netbox_client_ruby/api/dcim/sites'
|
|
41
|
-
require 'netbox_client_ruby/api/dcim/virtual_chassis'
|
|
42
|
-
require 'netbox_client_ruby/api/dcim/virtual_chassis_list'
|
|
43
|
-
require 'netbox_client_ruby/communication'
|
|
1
|
+
# frozen_string_literal: true
|
|
44
2
|
|
|
45
3
|
module NetboxClientRuby
|
|
46
4
|
module DCIM
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module NetboxClientRuby
|
|
4
4
|
module Extras
|
|
@@ -7,7 +7,7 @@ module NetboxClientRuby
|
|
|
7
7
|
|
|
8
8
|
id id: :id
|
|
9
9
|
deletable true
|
|
10
|
-
path 'extras/config-contexts/:id
|
|
10
|
+
path 'extras/config-contexts/:id/'
|
|
11
11
|
creation_path 'extras/config-contexts/'
|
|
12
12
|
object_fields(
|
|
13
13
|
regions: proc { |raw_data| DCIM::Region.new raw_data['id'] },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module NetboxClientRuby
|
|
4
4
|
module Extras
|
|
@@ -7,7 +7,7 @@ module NetboxClientRuby
|
|
|
7
7
|
|
|
8
8
|
id id: :id
|
|
9
9
|
deletable true
|
|
10
|
-
path 'extras/journal-entries/:id
|
|
10
|
+
path 'extras/journal-entries/:id/'
|
|
11
11
|
creation_path 'extras/journal-entries/'
|
|
12
12
|
end
|
|
13
13
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module NetboxClientRuby
|
|
4
4
|
module Extras
|
|
@@ -7,7 +7,7 @@ module NetboxClientRuby
|
|
|
7
7
|
|
|
8
8
|
id id: :id
|
|
9
9
|
deletable true
|
|
10
|
-
path 'extras/tags/:id
|
|
10
|
+
path 'extras/tags/:id/'
|
|
11
11
|
creation_path 'extras/tags/'
|
|
12
12
|
end
|
|
13
13
|
end
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/extras/config_contexts'
|
|
3
|
-
require 'netbox_client_ruby/api/extras/journal_entry'
|
|
4
|
-
require 'netbox_client_ruby/api/extras/journal_entries'
|
|
5
|
-
require 'netbox_client_ruby/api/extras/tag'
|
|
6
|
-
require 'netbox_client_ruby/api/extras/tags'
|
|
1
|
+
# frozen_string_literal: true
|
|
7
2
|
|
|
8
3
|
module NetboxClientRuby
|
|
9
4
|
module Extras
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/ipam/rir'
|
|
1
|
+
# frozen_string_literal: true
|
|
3
2
|
|
|
4
3
|
module NetboxClientRuby
|
|
5
4
|
module IPAM
|
|
@@ -8,7 +7,7 @@ module NetboxClientRuby
|
|
|
8
7
|
|
|
9
8
|
id id: :id
|
|
10
9
|
deletable true
|
|
11
|
-
path 'ipam/aggregates/:id
|
|
10
|
+
path 'ipam/aggregates/:id/'
|
|
12
11
|
creation_path 'ipam/aggregates/'
|
|
13
12
|
object_fields rir: proc { |raw_data| Rir.new raw_data['id'] }
|
|
14
13
|
end
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/dcim/interface'
|
|
3
|
-
require 'netbox_client_ruby/api/ipam/vrf'
|
|
4
|
-
require 'netbox_client_ruby/api/tenancy/tenant'
|
|
5
|
-
require 'ipaddress'
|
|
1
|
+
# frozen_string_literal: true
|
|
6
2
|
|
|
7
3
|
module NetboxClientRuby
|
|
8
4
|
module IPAM
|
|
@@ -18,7 +14,7 @@ module NetboxClientRuby
|
|
|
18
14
|
|
|
19
15
|
id id: :id
|
|
20
16
|
deletable true
|
|
21
|
-
path 'ipam/ip-addresses/:id
|
|
17
|
+
path 'ipam/ip-addresses/:id/'
|
|
22
18
|
creation_path 'ipam/ip-addresses/'
|
|
23
19
|
object_fields(
|
|
24
20
|
vrf: proc { |raw_data| Vrf.new raw_data['id'] },
|
|
@@ -37,12 +33,8 @@ module NetboxClientRuby
|
|
|
37
33
|
interface_data = data['interface']
|
|
38
34
|
|
|
39
35
|
return nil unless interface_data
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Virtualization::Interface.new interface_data['id']
|
|
43
|
-
else
|
|
44
|
-
DCIM::Interface.new interface_data['id']
|
|
45
|
-
end
|
|
36
|
+
return Virtualization::Interface.new interface_data['id'] unless interface_data.dig('virtual_machine').nil?
|
|
37
|
+
return DCIM::Interface.new interface_data['id']
|
|
46
38
|
end
|
|
47
39
|
end
|
|
48
40
|
end
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/ipam/role'
|
|
3
|
-
require 'netbox_client_ruby/api/ipam/vrf'
|
|
4
|
-
require 'netbox_client_ruby/api/tenancy/tenant'
|
|
5
|
-
require 'ipaddress'
|
|
1
|
+
# frozen_string_literal: true
|
|
6
2
|
|
|
7
3
|
module NetboxClientRuby
|
|
8
4
|
module IPAM
|
|
@@ -11,7 +7,7 @@ module NetboxClientRuby
|
|
|
11
7
|
|
|
12
8
|
id id: :id
|
|
13
9
|
deletable true
|
|
14
|
-
path 'ipam/ip-ranges/:id
|
|
10
|
+
path 'ipam/ip-ranges/:id/'
|
|
15
11
|
creation_path 'ipam/ip-ranges/'
|
|
16
12
|
object_fields(
|
|
17
13
|
vrf: proc { |raw_data| Vrf.new raw_data['id'] },
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/ipam/role'
|
|
3
|
-
require 'netbox_client_ruby/api/dcim/site'
|
|
4
|
-
require 'netbox_client_ruby/api/ipam/vrf'
|
|
5
|
-
require 'netbox_client_ruby/api/ipam/vlan'
|
|
6
|
-
require 'netbox_client_ruby/api/ipam/vlan_group'
|
|
7
|
-
require 'netbox_client_ruby/api/tenancy/tenant'
|
|
8
|
-
require 'ipaddress'
|
|
1
|
+
# frozen_string_literal: true
|
|
9
2
|
|
|
10
3
|
module NetboxClientRuby
|
|
11
4
|
module IPAM
|
|
@@ -14,7 +7,7 @@ module NetboxClientRuby
|
|
|
14
7
|
|
|
15
8
|
id id: :id
|
|
16
9
|
deletable true
|
|
17
|
-
path 'ipam/prefixes/:id
|
|
10
|
+
path 'ipam/prefixes/:id/'
|
|
18
11
|
creation_path 'ipam/prefixes/'
|
|
19
12
|
object_fields(
|
|
20
13
|
site: proc { |raw_data| DCIM::Site.new raw_data['id'] },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module NetboxClientRuby
|
|
4
4
|
module IPAM
|
|
@@ -7,7 +7,7 @@ module NetboxClientRuby
|
|
|
7
7
|
|
|
8
8
|
id id: :id
|
|
9
9
|
deletable true
|
|
10
|
-
path 'ipam/rirs/:id
|
|
10
|
+
path 'ipam/rirs/:id/'
|
|
11
11
|
creation_path 'ipam/rirs/'
|
|
12
12
|
end
|
|
13
13
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module NetboxClientRuby
|
|
4
4
|
module IPAM
|
|
@@ -7,7 +7,7 @@ module NetboxClientRuby
|
|
|
7
7
|
|
|
8
8
|
id id: :id
|
|
9
9
|
deletable true
|
|
10
|
-
path 'ipam/roles/:id
|
|
10
|
+
path 'ipam/roles/:id/'
|
|
11
11
|
creation_path 'ipam/roles/'
|
|
12
12
|
end
|
|
13
13
|
end
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/ipam/ip_address'
|
|
1
|
+
# frozen_string_literal: true
|
|
3
2
|
|
|
4
3
|
module NetboxClientRuby
|
|
5
4
|
module IPAM
|
|
@@ -8,7 +7,7 @@ module NetboxClientRuby
|
|
|
8
7
|
|
|
9
8
|
id id: :id
|
|
10
9
|
deletable true
|
|
11
|
-
path 'ipam/services/:id
|
|
10
|
+
path 'ipam/services/:id/'
|
|
12
11
|
creation_path 'ipam/services/'
|
|
13
12
|
object_fields(
|
|
14
13
|
device: proc { |raw_data| Device.new raw_data['id'] },
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/tenancy/tenant'
|
|
3
|
-
require 'netbox_client_ruby/api/dcim/site'
|
|
4
|
-
require 'netbox_client_ruby/api/ipam/role'
|
|
5
|
-
require 'netbox_client_ruby/api/ipam/vlan_group'
|
|
1
|
+
# frozen_string_literal: true
|
|
6
2
|
|
|
7
3
|
module NetboxClientRuby
|
|
8
4
|
module IPAM
|
|
@@ -11,7 +7,7 @@ module NetboxClientRuby
|
|
|
11
7
|
|
|
12
8
|
id id: :id
|
|
13
9
|
deletable true
|
|
14
|
-
path 'ipam/vlans/:id
|
|
10
|
+
path 'ipam/vlans/:id/'
|
|
15
11
|
creation_path 'ipam/vlans/'
|
|
16
12
|
object_fields(
|
|
17
13
|
tenant: proc { |raw_data| Tenancy::Tenant.new raw_data['id'] },
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/dcim/site'
|
|
1
|
+
# frozen_string_literal: true
|
|
3
2
|
|
|
4
3
|
module NetboxClientRuby
|
|
5
4
|
module IPAM
|
|
@@ -8,7 +7,7 @@ module NetboxClientRuby
|
|
|
8
7
|
|
|
9
8
|
id id: :id
|
|
10
9
|
deletable true
|
|
11
|
-
path 'ipam/vlan-groups/:id
|
|
10
|
+
path 'ipam/vlan-groups/:id/'
|
|
12
11
|
creation_path 'ipam/vlan-groups/'
|
|
13
12
|
object_fields site: proc { |raw_data| DCIM::Site.new raw_data['id'] }
|
|
14
13
|
end
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/tenancy/tenant'
|
|
1
|
+
# frozen_string_literal: true
|
|
3
2
|
|
|
4
3
|
module NetboxClientRuby
|
|
5
4
|
module IPAM
|
|
@@ -8,7 +7,7 @@ module NetboxClientRuby
|
|
|
8
7
|
|
|
9
8
|
id id: :id
|
|
10
9
|
deletable true
|
|
11
|
-
path 'ipam/vrfs/:id
|
|
10
|
+
path 'ipam/vrfs/:id/'
|
|
12
11
|
creation_path 'ipam/vrfs/'
|
|
13
12
|
object_fields tenant: proc { |raw_data| Tenancy::Tenant.new raw_data['id'] }
|
|
14
13
|
end
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/ipam/aggregates'
|
|
3
|
-
require 'netbox_client_ruby/api/ipam/ip_addresses'
|
|
4
|
-
require 'netbox_client_ruby/api/ipam/ip_address'
|
|
5
|
-
require 'netbox_client_ruby/api/ipam/ip_ranges'
|
|
6
|
-
require 'netbox_client_ruby/api/ipam/ip_range'
|
|
7
|
-
require 'netbox_client_ruby/api/ipam/prefix'
|
|
8
|
-
require 'netbox_client_ruby/api/ipam/prefixes'
|
|
9
|
-
require 'netbox_client_ruby/api/ipam/rir'
|
|
10
|
-
require 'netbox_client_ruby/api/ipam/rirs'
|
|
11
|
-
require 'netbox_client_ruby/api/ipam/role'
|
|
12
|
-
require 'netbox_client_ruby/api/ipam/roles'
|
|
13
|
-
require 'netbox_client_ruby/api/ipam/service'
|
|
14
|
-
require 'netbox_client_ruby/api/ipam/services'
|
|
15
|
-
require 'netbox_client_ruby/api/ipam/vlan_group'
|
|
16
|
-
require 'netbox_client_ruby/api/ipam/vlan_groups'
|
|
17
|
-
require 'netbox_client_ruby/api/ipam/vlan'
|
|
18
|
-
require 'netbox_client_ruby/api/ipam/vlans'
|
|
19
|
-
require 'netbox_client_ruby/api/ipam/vrf'
|
|
20
|
-
require 'netbox_client_ruby/api/ipam/vrfs'
|
|
21
|
-
require 'netbox_client_ruby/communication'
|
|
1
|
+
# frozen_string_literal: true
|
|
22
2
|
|
|
23
3
|
module NetboxClientRuby
|
|
24
4
|
module IPAM
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require 'netbox_client_ruby/api/dcim/device'
|
|
3
|
-
require 'netbox_client_ruby/api/secrets/secret_role'
|
|
1
|
+
# frozen_string_literal: true
|
|
4
2
|
|
|
5
3
|
module NetboxClientRuby
|
|
6
4
|
module Secrets
|
|
@@ -9,7 +7,7 @@ module NetboxClientRuby
|
|
|
9
7
|
|
|
10
8
|
id id: :id
|
|
11
9
|
deletable true
|
|
12
|
-
path 'secrets/secrets/:id
|
|
10
|
+
path 'secrets/secrets/:id/'
|
|
13
11
|
creation_path 'secrets/secrets/'
|
|
14
12
|
object_fields device: proc { |raw_data| Device.new raw_data['id'] },
|
|
15
13
|
role: proc { |raw_data| SecretRole.new raw_data['id'] }
|