netbox-client-ruby 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/netbox_client_ruby/api/ipam/vlan.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3805cba857a77577c28953d47b2e98f3612e41fc
|
4
|
+
data.tar.gz: c70c77e8116efb791b61f32e1824ca22344dd894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d43f9eb57574e92809278dc7c631cd1a8749ec2091dba2cf4590c3e573f87912ef7d572ceed64aa6e45fe6da0e01aa149c95bd1bcd4e5dad21619fff78e724c1
|
7
|
+
data.tar.gz: ab0f8977dece508cb9f1ea60c017101be9f96009b8db132049e562bbc7e5f72f3ddaa7dec01b317b90fecf84211a42b9e612fff6a2fd5ed6020162b825c9b372
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'netbox_client_ruby/entity'
|
2
2
|
require 'netbox_client_ruby/api/tenancy/tenant'
|
3
|
+
require 'netbox_client_ruby/api/dcim/site'
|
3
4
|
require 'netbox_client_ruby/api/ipam/role'
|
4
5
|
require 'netbox_client_ruby/api/ipam/vlan_group'
|
5
6
|
|
@@ -16,7 +17,8 @@ module NetboxClientRuby
|
|
16
17
|
tenant: proc { |raw_data| Tenancy::Tenant.new raw_data['id'] },
|
17
18
|
role: proc { |raw_data| Role.new raw_data['id'] },
|
18
19
|
status: proc { |raw_data| VlanStatus.new raw_data['value'] },
|
19
|
-
group: proc { |raw_data| VlanGroup.new raw_data['id'] }
|
20
|
+
group: proc { |raw_data| VlanGroup.new raw_data['id'] },
|
21
|
+
site: proc { |raw_data| DCIM::Site.new raw_data['id'] },
|
20
22
|
)
|
21
23
|
readonly_fields :display_name
|
22
24
|
end
|