foreman_api 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +35 -18
- data/doc/ForemanApi/Resources/Architecture.html +93 -136
- data/doc/ForemanApi/Resources/Audit.html +42 -60
- data/doc/ForemanApi/Resources/AuthSourceLdap.html +129 -190
- data/doc/ForemanApi/Resources/Bookmark.html +97 -142
- data/doc/ForemanApi/Resources/CommonParameter.html +93 -136
- data/doc/ForemanApi/Resources/ComputeResource.html +131 -190
- data/doc/ForemanApi/Resources/ConfigTemplate.html +145 -211
- data/doc/ForemanApi/Resources/Dashboard.html +21 -29
- data/doc/ForemanApi/Resources/Domain.html +103 -151
- data/doc/ForemanApi/Resources/Environment.html +89 -130
- data/doc/ForemanApi/Resources/FactValue.html +29 -41
- data/doc/ForemanApi/Resources/Home.html +32 -45
- data/doc/ForemanApi/Resources/Host.html +317 -251
- data/doc/ForemanApi/Resources/HostClass.html +55 -79
- data/doc/ForemanApi/Resources/Hostgroup.html +125 -184
- data/doc/ForemanApi/Resources/HostgroupClass.html +57 -82
- data/doc/ForemanApi/Resources/Image.html +109 -160
- data/doc/ForemanApi/Resources/Location.html +937 -0
- data/doc/ForemanApi/Resources/LookupKey.html +111 -163
- data/doc/ForemanApi/Resources/Medium.html +113 -154
- data/doc/ForemanApi/Resources/Model.html +101 -148
- data/doc/ForemanApi/Resources/OperatingSystem.html +118 -173
- data/doc/ForemanApi/Resources/Organization.html +937 -0
- data/doc/ForemanApi/Resources/Parameter.html +158 -233
- data/doc/ForemanApi/Resources/Ptable.html +97 -142
- data/doc/ForemanApi/Resources/Puppetclass.html +95 -139
- data/doc/ForemanApi/Resources/Report.html +68 -98
- data/doc/ForemanApi/Resources/Role.html +85 -124
- data/doc/ForemanApi/Resources/Setting.html +58 -84
- data/doc/ForemanApi/Resources/SmartProxy.html +91 -133
- data/doc/ForemanApi/Resources/Subnet.html +141 -208
- data/doc/ForemanApi/Resources/TemplateCombination.html +65 -94
- data/doc/ForemanApi/Resources/TemplateKind.html +23 -32
- data/doc/ForemanApi/Resources/User.html +111 -163
- data/doc/ForemanApi/Resources/Usergroup.html +89 -130
- data/doc/ForemanApi/Resources.html +6 -6
- data/doc/ForemanApi.html +5 -5
- data/doc/_index.html +18 -4
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +0 -10
- data/doc/file.MIT-LICENSE.html +24 -29
- data/doc/file.README.html +81 -60
- data/doc/frames.html +1 -1
- data/doc/index.html +81 -60
- data/doc/method_list.html +416 -312
- data/doc/top-level-namespace.html +3 -3
- data/lib/foreman_api/base.rb +16 -8
- data/lib/foreman_api/documentation.json +1 -1
- data/lib/foreman_api/resources/host.rb +9 -0
- data/lib/foreman_api/resources/location.rb +59 -0
- data/lib/foreman_api/resources/medium.rb +2 -2
- data/lib/foreman_api/resources/organization.rb +59 -0
- data/lib/foreman_api/version.rb +1 -1
- metadata +7 -3
@@ -101,6 +101,15 @@ module ForemanApi
|
|
101
101
|
perform_call(__method__, params, headers)
|
102
102
|
end
|
103
103
|
|
104
|
+
# @param [Hash] params a hash of params to be passed to the service
|
105
|
+
# @option params [Object] id Part of +/api/hosts/:id/puppetrun+ path
|
106
|
+
#
|
107
|
+
# @param [Hash] headers additional http headers
|
108
|
+
# @return [Array] First item: parsed data; second item: raw body
|
109
|
+
def puppetrun(params = {}, headers = {})
|
110
|
+
perform_call(__method__, params, headers)
|
111
|
+
end
|
112
|
+
|
104
113
|
end
|
105
114
|
end
|
106
115
|
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
module ForemanApi
|
2
|
+
module Resources
|
3
|
+
class Location < ForemanApi::Base
|
4
|
+
def self.doc
|
5
|
+
@doc ||= ForemanApi.doc['resources']["locations"]
|
6
|
+
end
|
7
|
+
|
8
|
+
# @param [Hash] params a hash of params to be passed to the service
|
9
|
+
#
|
10
|
+
# @param [Hash] headers additional http headers
|
11
|
+
# @return [Array] First item: parsed data; second item: raw body
|
12
|
+
def index(params = {}, headers = {})
|
13
|
+
perform_call(__method__, params, headers)
|
14
|
+
end
|
15
|
+
|
16
|
+
# @param [Hash] params a hash of params to be passed to the service
|
17
|
+
# @option params [Object] id Part of +/api/locations/:id+ path
|
18
|
+
#
|
19
|
+
# @param [Hash] headers additional http headers
|
20
|
+
# @return [Array] First item: parsed data; second item: raw body
|
21
|
+
def show(params = {}, headers = {})
|
22
|
+
perform_call(__method__, params, headers)
|
23
|
+
end
|
24
|
+
|
25
|
+
# @param [Hash] params a hash of params to be passed to the service
|
26
|
+
# @option params [Hash] locations
|
27
|
+
# allowed keys are:
|
28
|
+
# * :name [String]
|
29
|
+
#
|
30
|
+
# @param [Hash] headers additional http headers
|
31
|
+
# @return [Array] First item: parsed data; second item: raw body
|
32
|
+
def create(params = {}, headers = {})
|
33
|
+
perform_call(__method__, params, headers)
|
34
|
+
end
|
35
|
+
|
36
|
+
# @param [Hash] params a hash of params to be passed to the service
|
37
|
+
# @option params [Object] id Part of +/api/locations/:id+ path
|
38
|
+
# @option params [Hash] locations
|
39
|
+
# allowed keys are:
|
40
|
+
# * :name [String]
|
41
|
+
#
|
42
|
+
# @param [Hash] headers additional http headers
|
43
|
+
# @return [Array] First item: parsed data; second item: raw body
|
44
|
+
def update(params = {}, headers = {})
|
45
|
+
perform_call(__method__, params, headers)
|
46
|
+
end
|
47
|
+
|
48
|
+
# @param [Hash] params a hash of params to be passed to the service
|
49
|
+
# @option params [Object] id Part of +/api/locations/:id+ path
|
50
|
+
#
|
51
|
+
# @param [Hash] headers additional http headers
|
52
|
+
# @return [Array] First item: parsed data; second item: raw body
|
53
|
+
def destroy(params = {}, headers = {})
|
54
|
+
perform_call(__method__, params, headers)
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -30,7 +30,7 @@ module ForemanApi
|
|
30
30
|
# @option params [Hash] medium
|
31
31
|
# allowed keys are:
|
32
32
|
# * name [String] Name of media
|
33
|
-
# * os_family [String] The family that the operating system belongs to. available families: archlinux debian redhat solaris suse windows
|
33
|
+
# * os_family [String] The family that the operating system belongs to. available families: archlinux debian gentoo redhat solaris suse windows
|
34
34
|
# * path [String] The path to the medium, can be a url or a valid nfs server (exclusive of the architecture). for example http://mirror.averse.net/centos/$version/os/$arch where $arch will be substituted for the host’s actual os architecture and $version, $major and $minor will be substituted for the version of the operating system. solaris and debian media may also use $release.
|
35
35
|
#
|
36
36
|
# @param [Hash] headers additional http headers
|
@@ -44,7 +44,7 @@ module ForemanApi
|
|
44
44
|
# @option params [Hash] medium
|
45
45
|
# allowed keys are:
|
46
46
|
# * name [String] Name of media
|
47
|
-
# * os_family [String, nil] The family that the operating system belongs to. available families: archlinux debian redhat solaris suse windows
|
47
|
+
# * os_family [String, nil] The family that the operating system belongs to. available families: archlinux debian gentoo redhat solaris suse windows
|
48
48
|
# * path [String] The path to the medium, can be a url or a valid nfs server (exclusive of the architecture). for example http://mirror.averse.net/centos/$version/os/$arch where $arch will be substituted for the host’s actual os architecture and $version, $major and $minor will be substituted for the version of the operating system. solaris and debian media may also use $release.
|
49
49
|
#
|
50
50
|
# @param [Hash] headers additional http headers
|
@@ -0,0 +1,59 @@
|
|
1
|
+
module ForemanApi
|
2
|
+
module Resources
|
3
|
+
class Organization < ForemanApi::Base
|
4
|
+
def self.doc
|
5
|
+
@doc ||= ForemanApi.doc['resources']["organizations"]
|
6
|
+
end
|
7
|
+
|
8
|
+
# @param [Hash] params a hash of params to be passed to the service
|
9
|
+
#
|
10
|
+
# @param [Hash] headers additional http headers
|
11
|
+
# @return [Array] First item: parsed data; second item: raw body
|
12
|
+
def index(params = {}, headers = {})
|
13
|
+
perform_call(__method__, params, headers)
|
14
|
+
end
|
15
|
+
|
16
|
+
# @param [Hash] params a hash of params to be passed to the service
|
17
|
+
# @option params [Object] id Part of +/api/organizations/:id+ path
|
18
|
+
#
|
19
|
+
# @param [Hash] headers additional http headers
|
20
|
+
# @return [Array] First item: parsed data; second item: raw body
|
21
|
+
def show(params = {}, headers = {})
|
22
|
+
perform_call(__method__, params, headers)
|
23
|
+
end
|
24
|
+
|
25
|
+
# @param [Hash] params a hash of params to be passed to the service
|
26
|
+
# @option params [Hash] organization
|
27
|
+
# allowed keys are:
|
28
|
+
# * :name [String]
|
29
|
+
#
|
30
|
+
# @param [Hash] headers additional http headers
|
31
|
+
# @return [Array] First item: parsed data; second item: raw body
|
32
|
+
def create(params = {}, headers = {})
|
33
|
+
perform_call(__method__, params, headers)
|
34
|
+
end
|
35
|
+
|
36
|
+
# @param [Hash] params a hash of params to be passed to the service
|
37
|
+
# @option params [Object] id Part of +/api/organizations/:id+ path
|
38
|
+
# @option params [Hash] organization
|
39
|
+
# allowed keys are:
|
40
|
+
# * :name [String]
|
41
|
+
#
|
42
|
+
# @param [Hash] headers additional http headers
|
43
|
+
# @return [Array] First item: parsed data; second item: raw body
|
44
|
+
def update(params = {}, headers = {})
|
45
|
+
perform_call(__method__, params, headers)
|
46
|
+
end
|
47
|
+
|
48
|
+
# @param [Hash] params a hash of params to be passed to the service
|
49
|
+
# @option params [Object] id Part of +/api/organizations/:id+ path
|
50
|
+
#
|
51
|
+
# @param [Hash] headers additional http headers
|
52
|
+
# @return [Array] First item: parsed data; second item: raw body
|
53
|
+
def destroy(params = {}, headers = {})
|
54
|
+
perform_call(__method__, params, headers)
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/foreman_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
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: 2013-
|
12
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -91,10 +91,12 @@ files:
|
|
91
91
|
- doc/ForemanApi/Resources/Hostgroup.html
|
92
92
|
- doc/ForemanApi/Resources/HostgroupClass.html
|
93
93
|
- doc/ForemanApi/Resources/Image.html
|
94
|
+
- doc/ForemanApi/Resources/Location.html
|
94
95
|
- doc/ForemanApi/Resources/LookupKey.html
|
95
96
|
- doc/ForemanApi/Resources/Medium.html
|
96
97
|
- doc/ForemanApi/Resources/Model.html
|
97
98
|
- doc/ForemanApi/Resources/OperatingSystem.html
|
99
|
+
- doc/ForemanApi/Resources/Organization.html
|
98
100
|
- doc/ForemanApi/Resources/Parameter.html
|
99
101
|
- doc/ForemanApi/Resources/Ptable.html
|
100
102
|
- doc/ForemanApi/Resources/Puppetclass.html
|
@@ -144,10 +146,12 @@ files:
|
|
144
146
|
- lib/foreman_api/resources/hostgroup.rb
|
145
147
|
- lib/foreman_api/resources/hostgroup_class.rb
|
146
148
|
- lib/foreman_api/resources/image.rb
|
149
|
+
- lib/foreman_api/resources/location.rb
|
147
150
|
- lib/foreman_api/resources/lookup_key.rb
|
148
151
|
- lib/foreman_api/resources/medium.rb
|
149
152
|
- lib/foreman_api/resources/model.rb
|
150
153
|
- lib/foreman_api/resources/operating_system.rb
|
154
|
+
- lib/foreman_api/resources/organization.rb
|
151
155
|
- lib/foreman_api/resources/parameter.rb
|
152
156
|
- lib/foreman_api/resources/ptable.rb
|
153
157
|
- lib/foreman_api/resources/puppetclass.rb
|
@@ -182,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
186
|
version: '0'
|
183
187
|
requirements: []
|
184
188
|
rubyforge_project:
|
185
|
-
rubygems_version: 1.8.
|
189
|
+
rubygems_version: 1.8.25
|
186
190
|
signing_key:
|
187
191
|
specification_version: 3
|
188
192
|
summary: Ruby bindings for Forman's rest API
|