Skip to content

Commit

Permalink
Fix collections urls
Browse files Browse the repository at this point in the history
It seems that this urls were never official or documented.
See: netbox-community/netbox#17610 (comment)
  • Loading branch information
n-rodriguez authored and thde committed Oct 22, 2024
1 parent 5c61dc7 commit 0286fbd
Show file tree
Hide file tree
Showing 94 changed files with 94 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Circuits
class CircuitTerminations
include Entities

path 'circuits/circuit-terminations.json'
path 'circuits/circuit-terminations/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/circuits/circuit_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Circuits
class CircuitTypes
include Entities

path 'circuits/circuit-types.json'
path 'circuits/circuit-types/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/circuits/circuits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Circuits
class Circuits
include Entities

path 'circuits/circuits.json'
path 'circuits/circuits/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/circuits/providers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Circuits
class Providers
include Entities

path 'circuits/providers.json'
path 'circuits/providers/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/console_connections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class ConsoleConnections
include Entities

path 'dcim/console-connections.json'
path 'dcim/console-connections/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/console_ports.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class ConsolePorts
include Entities

path 'dcim/console-ports.json'
path 'dcim/console-ports/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/console_server_ports.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class ConsoleServerPorts
include Entities

path 'dcim/console-server-ports.json'
path 'dcim/console-server-ports/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/device_roles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class DeviceRoles
include Entities

path 'dcim/device-roles.json'
path 'dcim/device-roles/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/device_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class DeviceTypes
include Entities

path 'dcim/device-types.json'
path 'dcim/device-types/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/devices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class Devices
include Entities

path 'dcim/devices.json'
path 'dcim/devices/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/interface_connections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class InterfaceConnections
include Entities

path 'dcim/interface-connections.json'
path 'dcim/interface-connections/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/interfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class Interfaces
include Entities

path 'dcim/interfaces.json'
path 'dcim/interfaces/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/inventory_items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class InventoryItems
include Entities

path 'dcim/inventory-items.json'
path 'dcim/inventory-items/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/manufacturers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class Manufacturers
include Entities

path 'dcim/manufacturers.json'
path 'dcim/manufacturers/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/platforms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class Platforms
include Entities

path 'dcim/platforms.json'
path 'dcim/platforms/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/power_connections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class PowerConnections
include Entities

path 'dcim/power-connections.json'
path 'dcim/power-connections/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/power_outlets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class PowerOutlets
include Entities

path 'dcim/power-outlets.json'
path 'dcim/power-outlets/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/power_ports.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class PowerPorts
include Entities

path 'dcim/power-ports.json'
path 'dcim/power-ports/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/rack_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class RackGroups
include Entities

path 'dcim/rack-groups.json'
path 'dcim/rack-groups/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/rack_reservations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class RackReservations
include Entities

path 'dcim/rack-reservations.json'
path 'dcim/rack-reservations/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/rack_roles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class RackRoles
include Entities

path 'dcim/rack-roles.json'
path 'dcim/rack-roles/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/racks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class Racks
include Entities

path 'dcim/racks.json'
path 'dcim/racks/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/regions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class Regions
include Entities

path 'dcim/regions.json'
path 'dcim/regions/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/sites.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class Sites
include Entities

path 'dcim/sites.json'
path 'dcim/sites/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/dcim/virtual_chassis_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module DCIM
class VirtualChassisList
include Entities

path 'dcim/virtual-chassis.json'
path 'dcim/virtual-chassis/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/extras/config_contexts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Extras
class ConfigContexts
include Entities

path 'extras/config-contexts.json'
path 'extras/config-contexts/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/extras/journal_entries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Extras
class JournalEntries
include Entities

path 'extras/journal-entries.json'
path 'extras/journal-entries/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/extras/tags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Extras
class Tags
include Entities

path 'extras/tags.json'
path 'extras/tags/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/aggregates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class Aggregates
include Entities

path 'ipam/aggregates.json'
path 'ipam/aggregates/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/ip_addresses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class IpAddresses
include Entities

path 'ipam/ip-addresses.json'
path 'ipam/ip-addresses/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/ip_ranges.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class IpRanges
include Entities

path 'ipam/ip-ranges.json'
path 'ipam/ip-ranges/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/prefixes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class Prefixes
include Entities

path 'ipam/prefixes.json'
path 'ipam/prefixes/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/rirs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class Rirs
include Entities

path 'ipam/rirs.json'
path 'ipam/rirs/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/roles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class Roles
include Entities

path 'ipam/roles.json'
path 'ipam/roles/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class Services
include Entities

path 'ipam/services.json'
path 'ipam/services/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/vlan_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class VlanGroups
include Entities

path 'ipam/vlan-groups.json'
path 'ipam/vlan-groups/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/vlans.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class Vlans
include Entities

path 'ipam/vlans.json'
path 'ipam/vlans/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/vrfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module IPAM
class Vrfs
include Entities

path 'ipam/vrfs.json'
path 'ipam/vrfs/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/secrets/secret_roles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Secrets
class SecretRoles
include Entities

path 'secrets/secret-roles.json'
path 'secrets/secret-roles/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/secrets/secrets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Secrets
class Secrets
include Entities

path 'secrets/secrets.json'
path 'secrets/secrets/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/tenancy/tenant_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Tenancy
class TenantGroups
include Entities

path 'tenancy/tenant-groups.json'
path 'tenancy/tenant-groups/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/tenancy/tenants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Tenancy
class Tenants
include Entities

path 'tenancy/tenants.json'
path 'tenancy/tenants/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Virtualization
class ClusterGroups
include Entities

path 'virtualization/cluster-groups.json'
path 'virtualization/cluster-groups/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/virtualization/cluster_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Virtualization
class ClusterTypes
include Entities

path 'virtualization/cluster-types.json'
path 'virtualization/cluster-types/'
data_key 'results'
count_key 'count'
entity_creator :entity_creator
Expand Down
Loading

0 comments on commit 0286fbd

Please sign in to comment.