infoblox 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -34,8 +34,9 @@ Once a connection is made, one can use the resource class methods to query recor
34
34
 
35
35
  You can also search across the Infoblox cluster using the `Infoblox::Search` resource. The response will contain any number of `Infoblox::Resource` subclass instances.
36
36
 
37
- result = Infoblox::Search.new(connection, "search_string~" => "webserver-")
38
-
37
+ result = Infoblox::Search.find(connection, "search_string~" => "webserver-")
38
+ # => [#<Infoblox::Host>, #<Infoblox::Ptr>, ...]
39
+
39
40
  ## Creating, updating, and deleting resources
40
41
  The resource class instances support `get`, `post`, `put`, and `delete`. For example, creating a network is pretty straightforward:
41
42
 
@@ -0,0 +1,8 @@
1
+ module Infoblox
2
+ class Srv < Resource
3
+ remote_attr_accessor :name, :port, :priority, :target, :weight,
4
+ :extensible_attributes, :view
5
+
6
+ wapi_object "record:srv"
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Infoblox
2
+ class Txt < Resource
3
+ remote_attr_accessor :name, :text,
4
+ :extensible_attributes, :view
5
+
6
+ wapi_object "record:txt"
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Infoblox
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infoblox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-12 00:00:00.000000000 Z
12
+ date: 2014-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -134,6 +134,8 @@ files:
134
134
  - lib/infoblox/resource/network_container.rb
135
135
  - lib/infoblox/resource/ptr.rb
136
136
  - lib/infoblox/resource/search.rb
137
+ - lib/infoblox/resource/srv.rb
138
+ - lib/infoblox/resource/txt.rb
137
139
  - lib/infoblox/version.rb
138
140
  - spec/connection_spec.rb
139
141
  - spec/host_spec.rb
@@ -155,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
157
  version: '0'
156
158
  segments:
157
159
  - 0
158
- hash: 142878646732084018
160
+ hash: -156332127227690039
159
161
  required_rubygems_version: !ruby/object:Gem::Requirement
160
162
  none: false
161
163
  requirements:
@@ -164,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
166
  version: '0'
165
167
  segments:
166
168
  - 0
167
- hash: 142878646732084018
169
+ hash: -156332127227690039
168
170
  requirements: []
169
171
  rubyforge_project:
170
172
  rubygems_version: 1.8.24