foreman_api 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. data/README.rdoc +35 -18
  2. data/doc/ForemanApi/Resources/Architecture.html +93 -136
  3. data/doc/ForemanApi/Resources/Audit.html +42 -60
  4. data/doc/ForemanApi/Resources/AuthSourceLdap.html +129 -190
  5. data/doc/ForemanApi/Resources/Bookmark.html +97 -142
  6. data/doc/ForemanApi/Resources/CommonParameter.html +93 -136
  7. data/doc/ForemanApi/Resources/ComputeResource.html +131 -190
  8. data/doc/ForemanApi/Resources/ConfigTemplate.html +145 -211
  9. data/doc/ForemanApi/Resources/Dashboard.html +21 -29
  10. data/doc/ForemanApi/Resources/Domain.html +103 -151
  11. data/doc/ForemanApi/Resources/Environment.html +89 -130
  12. data/doc/ForemanApi/Resources/FactValue.html +29 -41
  13. data/doc/ForemanApi/Resources/Home.html +32 -45
  14. data/doc/ForemanApi/Resources/Host.html +317 -251
  15. data/doc/ForemanApi/Resources/HostClass.html +55 -79
  16. data/doc/ForemanApi/Resources/Hostgroup.html +125 -184
  17. data/doc/ForemanApi/Resources/HostgroupClass.html +57 -82
  18. data/doc/ForemanApi/Resources/Image.html +109 -160
  19. data/doc/ForemanApi/Resources/Location.html +937 -0
  20. data/doc/ForemanApi/Resources/LookupKey.html +111 -163
  21. data/doc/ForemanApi/Resources/Medium.html +113 -154
  22. data/doc/ForemanApi/Resources/Model.html +101 -148
  23. data/doc/ForemanApi/Resources/OperatingSystem.html +118 -173
  24. data/doc/ForemanApi/Resources/Organization.html +937 -0
  25. data/doc/ForemanApi/Resources/Parameter.html +158 -233
  26. data/doc/ForemanApi/Resources/Ptable.html +97 -142
  27. data/doc/ForemanApi/Resources/Puppetclass.html +95 -139
  28. data/doc/ForemanApi/Resources/Report.html +68 -98
  29. data/doc/ForemanApi/Resources/Role.html +85 -124
  30. data/doc/ForemanApi/Resources/Setting.html +58 -84
  31. data/doc/ForemanApi/Resources/SmartProxy.html +91 -133
  32. data/doc/ForemanApi/Resources/Subnet.html +141 -208
  33. data/doc/ForemanApi/Resources/TemplateCombination.html +65 -94
  34. data/doc/ForemanApi/Resources/TemplateKind.html +23 -32
  35. data/doc/ForemanApi/Resources/User.html +111 -163
  36. data/doc/ForemanApi/Resources/Usergroup.html +89 -130
  37. data/doc/ForemanApi/Resources.html +6 -6
  38. data/doc/ForemanApi.html +5 -5
  39. data/doc/_index.html +18 -4
  40. data/doc/class_list.html +1 -1
  41. data/doc/css/style.css +0 -10
  42. data/doc/file.MIT-LICENSE.html +24 -29
  43. data/doc/file.README.html +81 -60
  44. data/doc/frames.html +1 -1
  45. data/doc/index.html +81 -60
  46. data/doc/method_list.html +416 -312
  47. data/doc/top-level-namespace.html +3 -3
  48. data/lib/foreman_api/base.rb +16 -8
  49. data/lib/foreman_api/documentation.json +1 -1
  50. data/lib/foreman_api/resources/host.rb +9 -0
  51. data/lib/foreman_api/resources/location.rb +59 -0
  52. data/lib/foreman_api/resources/medium.rb +2 -2
  53. data/lib/foreman_api/resources/organization.rb +59 -0
  54. data/lib/foreman_api/version.rb +1 -1
  55. 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&#8217;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&#8217;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
@@ -1,3 +1,3 @@
1
1
  module ForemanApi
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-04-04 00:00:00.000000000 Z
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.24
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