netbox-client-ruby 0.4.3 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +1 -0
- data/VERSION +1 -1
- data/lib/netbox_client_ruby/api/dcim.rb +4 -0
- data/lib/netbox_client_ruby/api/dcim/rack_role.rb +16 -0
- data/lib/netbox_client_ruby/api/dcim/rack_roles.rb +21 -0
- metadata +4 -4
- data/.ruby-version +0 -1
- data/Gemfile.lock +0 -78
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f5171e7613c34dd44dc6f890ea192b6d0e64746
|
4
|
+
data.tar.gz: 43c5885c077d3935176f6e9b91b81ab8a68c1080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0895490baf060370fc9f95ca0fadeac28751b2066ad53bc552cb1517b9ce137d91af3ac1e057e9997fbd5d071036cb7aac1f22909c3ee35c9c659050d63c354
|
7
|
+
data.tar.gz: 997d778a64ea6ecff5398d8db6464f96c3c1772528d24899e2ac3e23db5993d00fe3736605b64abd2064864d0572334bc17b69308c6557bfe27daf9c38a33269
|
data/.gitignore
CHANGED
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.6
|
@@ -19,6 +19,8 @@ require 'netbox_client_ruby/api/dcim/power_ports'
|
|
19
19
|
require 'netbox_client_ruby/api/dcim/rack'
|
20
20
|
require 'netbox_client_ruby/api/dcim/rack_group'
|
21
21
|
require 'netbox_client_ruby/api/dcim/rack_groups'
|
22
|
+
require 'netbox_client_ruby/api/dcim/rack_role'
|
23
|
+
require 'netbox_client_ruby/api/dcim/rack_roles'
|
22
24
|
require 'netbox_client_ruby/api/dcim/racks'
|
23
25
|
require 'netbox_client_ruby/api/dcim/region'
|
24
26
|
require 'netbox_client_ruby/api/dcim/regions'
|
@@ -40,6 +42,7 @@ module NetboxClientRuby
|
|
40
42
|
power_ports: PowerPorts,
|
41
43
|
racks: Racks,
|
42
44
|
rack_groups: RackGroups,
|
45
|
+
rack_roles: RackRoles,
|
43
46
|
regions: Regions,
|
44
47
|
sites: Sites
|
45
48
|
}.each_pair do |method_name, class_name|
|
@@ -59,6 +62,7 @@ module NetboxClientRuby
|
|
59
62
|
power_port: PowerPort,
|
60
63
|
rack: Rack,
|
61
64
|
rack_group: RackGroup,
|
65
|
+
rack_role: RackRole,
|
62
66
|
region: Region,
|
63
67
|
site: Site
|
64
68
|
}.each_pair do |method_name, class_name|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'netbox_client_ruby/entity'
|
2
|
+
require 'netbox_client_ruby/api/dcim/region'
|
3
|
+
require 'netbox_client_ruby/api/tenancy/tenant'
|
4
|
+
|
5
|
+
module NetboxClientRuby
|
6
|
+
module DCIM
|
7
|
+
class RackRole
|
8
|
+
include Entity
|
9
|
+
|
10
|
+
id id: :id
|
11
|
+
deletable true
|
12
|
+
path 'dcim/rack-roles/:id.json'
|
13
|
+
creation_path 'dcim/rack-roles/'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'netbox_client_ruby/entities'
|
2
|
+
require 'netbox_client_ruby/api/dcim/rack_role'
|
3
|
+
|
4
|
+
module NetboxClientRuby
|
5
|
+
module DCIM
|
6
|
+
class RackRoles
|
7
|
+
include Entities
|
8
|
+
|
9
|
+
path 'dcim/rack-roles.json'
|
10
|
+
data_key 'results'
|
11
|
+
count_key 'count'
|
12
|
+
entity_creator :entity_creator
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def entity_creator(raw_entity)
|
17
|
+
RackRole.new raw_entity['id']
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
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.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Mäder
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -188,11 +188,9 @@ files:
|
|
188
188
|
- ".dockerignore"
|
189
189
|
- ".gitignore"
|
190
190
|
- ".rspec"
|
191
|
-
- ".ruby-version"
|
192
191
|
- ".travis.yml"
|
193
192
|
- Dockerfile
|
194
193
|
- Gemfile
|
195
|
-
- Gemfile.lock
|
196
194
|
- LICENSE.txt
|
197
195
|
- README.md
|
198
196
|
- Rakefile
|
@@ -229,6 +227,8 @@ files:
|
|
229
227
|
- lib/netbox_client_ruby/api/dcim/rack.rb
|
230
228
|
- lib/netbox_client_ruby/api/dcim/rack_group.rb
|
231
229
|
- lib/netbox_client_ruby/api/dcim/rack_groups.rb
|
230
|
+
- lib/netbox_client_ruby/api/dcim/rack_role.rb
|
231
|
+
- lib/netbox_client_ruby/api/dcim/rack_roles.rb
|
232
232
|
- lib/netbox_client_ruby/api/dcim/racks.rb
|
233
233
|
- lib/netbox_client_ruby/api/dcim/region.rb
|
234
234
|
- lib/netbox_client_ruby/api/dcim/regions.rb
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.3.4
|
data/Gemfile.lock
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
netbox-client-ruby (0.4.3)
|
5
|
-
dry-configurable (~> 0.1)
|
6
|
-
faraday (>= 0.11.0)
|
7
|
-
faraday-detailed_logger (~> 2.1)
|
8
|
-
faraday_middleware (~> 0.11.0)
|
9
|
-
ipaddress (>= 0.8.3)
|
10
|
-
openssl (>= 2.0.5)
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: https://rubygems.org/
|
14
|
-
specs:
|
15
|
-
ast (2.3.0)
|
16
|
-
coderay (1.1.2)
|
17
|
-
concurrent-ruby (1.0.5)
|
18
|
-
diff-lcs (1.3)
|
19
|
-
dry-configurable (0.7.0)
|
20
|
-
concurrent-ruby (~> 1.0)
|
21
|
-
faraday (0.13.1)
|
22
|
-
multipart-post (>= 1.2, < 3)
|
23
|
-
faraday-detailed_logger (2.1.2)
|
24
|
-
faraday (~> 0.8)
|
25
|
-
faraday_middleware (0.11.0.1)
|
26
|
-
faraday (>= 0.7.4, < 1.0)
|
27
|
-
ipaddress (0.8.3)
|
28
|
-
method_source (0.9.0)
|
29
|
-
multipart-post (2.0.0)
|
30
|
-
openssl (2.1.0)
|
31
|
-
parallel (1.12.1)
|
32
|
-
parser (2.4.0.2)
|
33
|
-
ast (~> 2.3)
|
34
|
-
powerpack (0.1.1)
|
35
|
-
pry (0.11.3)
|
36
|
-
coderay (~> 1.1.0)
|
37
|
-
method_source (~> 0.9.0)
|
38
|
-
rainbow (3.0.0)
|
39
|
-
rake (10.5.0)
|
40
|
-
rspec (3.7.0)
|
41
|
-
rspec-core (~> 3.7.0)
|
42
|
-
rspec-expectations (~> 3.7.0)
|
43
|
-
rspec-mocks (~> 3.7.0)
|
44
|
-
rspec-core (3.7.0)
|
45
|
-
rspec-support (~> 3.7.0)
|
46
|
-
rspec-expectations (3.7.0)
|
47
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
-
rspec-support (~> 3.7.0)
|
49
|
-
rspec-mocks (3.7.0)
|
50
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
-
rspec-support (~> 3.7.0)
|
52
|
-
rspec-support (3.7.0)
|
53
|
-
rubocop (0.52.0)
|
54
|
-
parallel (~> 1.10)
|
55
|
-
parser (>= 2.4.0.2, < 3.0)
|
56
|
-
powerpack (~> 0.1)
|
57
|
-
rainbow (>= 2.2.2, < 4.0)
|
58
|
-
ruby-progressbar (~> 1.7)
|
59
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
60
|
-
rubocop-rspec (1.21.0)
|
61
|
-
rubocop (>= 0.52.0)
|
62
|
-
ruby-progressbar (1.9.0)
|
63
|
-
unicode-display_width (1.3.0)
|
64
|
-
|
65
|
-
PLATFORMS
|
66
|
-
ruby
|
67
|
-
|
68
|
-
DEPENDENCIES
|
69
|
-
bundler (~> 1.14)
|
70
|
-
netbox-client-ruby!
|
71
|
-
pry (~> 0.10)
|
72
|
-
rake (~> 10.0)
|
73
|
-
rspec (~> 3.5)
|
74
|
-
rubocop (~> 0.48)
|
75
|
-
rubocop-rspec (~> 1.15)
|
76
|
-
|
77
|
-
BUNDLED WITH
|
78
|
-
1.16.0
|