vnet_api_client 0.8.0.2 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c4993ad3c0d8638bad593fa71533dabe96fac1b
4
- data.tar.gz: 7befc0e3885d8ee4be2145e0ca0b9328a9d05e39
3
+ metadata.gz: ec7f704314a54c31a657cdbb27dab12476c7338c
4
+ data.tar.gz: 803e3a0dfdb1c163d2be0cefe7d8b7eec00c7015
5
5
  SHA512:
6
- metadata.gz: a7c7be004a28843a7dbbaff28708d0516a22227e78ce5a51e23203bd0cb7121132e26e00b14dda7c4455780c46a8499240fdc8f19d8d7572ac1cdb2418c3eb74
7
- data.tar.gz: d76c6b1fe8ef38d544aff06e182008cff2b4e81bce40f0586a7283933cabe7cdf8d02f944d62a2f1afdc42e617fecdeb135bfdd758c5ff8df52de752775a3275
6
+ metadata.gz: cf0c07fdaf33e29b5afad61ad2672161a3cf7a93c098c43025a84d34aae485583ffbf9bb745bde81e08200bf21c9cf4630a3bc58f0aeac21fd84be1071ccc988
7
+ data.tar.gz: efc63d0c5cec348ca49a19278b077bd4b994b479b5d3b38623f2ec18c46c228d1beaeb5a33c103bdc366e5a580982f62c5e12f26bc508899b96cadb63b7383d7
data/README.md CHANGED
@@ -50,6 +50,6 @@ The version number of this gem follows the version of OpenVNet. Each number has
50
50
 
51
51
  [OpenVNet major version].[OpenVNet minor version].[OpenVNet hotix].[vnet_api_client gem release]
52
52
 
53
- The vnet_api_client gem release number is added because it can some times be necessary to release hotfixes to the gem before a new version of OpenVNet is released.
53
+ The vnet_api_client gem release number is added because it can some times be necessary to release hotfixes for the gem before a new version of OpenVNet is released.
54
54
 
55
55
  Do note that OpenVNet's versioning scheme ommits the hotfix number if it is zero. For example if you are using OpenVNet 0.8, then you should use vnet_api_client version 0.8.0.x.
@@ -105,6 +105,21 @@ module VNetAPIClient
105
105
  define_standard_crud_methods
106
106
  end
107
107
 
108
+ class MacRangeGroup < ApiResource
109
+ api_suffix :mac_range_groups
110
+
111
+ define_standard_crud_methods
112
+
113
+ define_show_relation(:mac_ranges)
114
+ define_remove_relation(:mac_ranges)
115
+
116
+ def self.add_range(mac_range_group_uuid, params = nil)
117
+ send_request(Net::HTTP::Post,
118
+ "#{@api_suffix}/#{mac_range_group_uuid}/mac_ranges",
119
+ params)
120
+ end
121
+ end
122
+
108
123
  class Network < ApiResource
109
124
  api_suffix :networks
110
125
 
@@ -154,6 +169,42 @@ module VNetAPIClient
154
169
  end
155
170
  end
156
171
 
172
+ class Filter < ApiResource
173
+ api_suffix :filters
174
+
175
+ define_standard_crud_methods
176
+
177
+ def self.add_filter_static(filter_uuid, params = nil)
178
+ send_request(Net::HTTP::Post,
179
+ "#{@api_suffix}/#{filter_uuid}/static",
180
+ params)
181
+ end
182
+
183
+ def self.remove_filter_static(filter_uuid, params = nil)
184
+ send_request(Net::HTTP::Delete,
185
+ "#{@api_suffix}/#{filter_uuid}/static",
186
+ params)
187
+ end
188
+ def self.show_filter_static(params = nil)
189
+ send_request(Net::HTTP::Get,
190
+ "#{@api_suffix}/static/",
191
+ params)
192
+ end
193
+ def self.show_filter_static_by_uuid(filter_uuid, params = nil)
194
+ send_request(Net::HTTP::Get,
195
+ "#{@api_suffix}/static/#{filter_uuid}",
196
+ params)
197
+ end
198
+ end
199
+
200
+ class Topology < ApiResource
201
+ api_suffix :topologies
202
+
203
+ define_standard_crud_methods
204
+ define_relation_methods(:networks)
205
+ define_relation_methods(:route_links)
206
+ end
207
+
157
208
  class VlanTranslation < ApiResource
158
209
  api_suffix :vlan_translations
159
210
 
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vnet_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.2
4
+ version: '0.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Axsh Co. LTD
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-04 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Ruby wrapper for OpenVNet's RESTful API
13
+ description:
14
14
  email: dev@axsh.net
15
15
  executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - README.md
19
20
  - lib/vnet_api_client.rb
21
+ - lib/vnet_api_client/api_resource.rb
20
22
  - lib/vnet_api_client/api_resources.rb
21
23
  - lib/vnet_api_client/response_format.rb
22
- - lib/vnet_api_client/api_resource.rb
23
- - README.md
24
24
  homepage: http://openvnet.org
25
25
  licenses:
26
- - LGPLv3
26
+ - LGPL-3.0
27
27
  metadata: {}
28
28
  post_install_message:
29
29
  rdoc_options: []
@@ -31,17 +31,17 @@ require_paths:
31
31
  - lib
32
32
  required_ruby_version: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
43
  rubyforge_project:
44
- rubygems_version: 2.0.3
44
+ rubygems_version: 2.5.1
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: Ruby wrapper for OpenVNet's RESTful API