foreman_api 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/.yardopts +4 -0
  2. data/Gemfile +5 -0
  3. data/README.rdoc +23 -4
  4. data/doc/ForemanApi/Resources/Architecture.html +902 -0
  5. data/doc/ForemanApi/Resources/Audit.html +500 -0
  6. data/doc/ForemanApi/Resources/AuthSourceLdap.html +916 -0
  7. data/doc/ForemanApi/Resources/Bookmark.html +884 -0
  8. data/doc/ForemanApi/Resources/CommonParameter.html +902 -0
  9. data/doc/ForemanApi/Resources/ComputeResource.html +940 -0
  10. data/doc/ForemanApi/Resources/ConfigTemplate.html +1160 -0
  11. data/doc/ForemanApi/Resources/Dashboard.html +336 -0
  12. data/doc/ForemanApi/Resources/Domain.html +914 -0
  13. data/doc/ForemanApi/Resources/Environment.html +898 -0
  14. data/doc/ForemanApi/Resources/FactValue.html +375 -0
  15. data/doc/ForemanApi/Resources/Home.html +417 -0
  16. data/doc/ForemanApi/Resources/Host.html +1091 -0
  17. data/doc/ForemanApi/Resources/Hostgroup.html +934 -0
  18. data/doc/ForemanApi/Resources/Image.html +963 -0
  19. data/doc/ForemanApi/Resources/LookupKey.html +918 -0
  20. data/doc/ForemanApi/Resources/Medium.html +920 -0
  21. data/doc/ForemanApi/Resources/Model.html +910 -0
  22. data/doc/ForemanApi/Resources/OperatingSystem.html +1057 -0
  23. data/doc/ForemanApi/Resources/Ptable.html +906 -0
  24. data/doc/ForemanApi/Resources/Puppetclass.html +898 -0
  25. data/doc/ForemanApi/Resources/Report.html +625 -0
  26. data/doc/ForemanApi/Resources/Role.html +872 -0
  27. data/doc/ForemanApi/Resources/Setting.html +641 -0
  28. data/doc/ForemanApi/Resources/SmartProxy.html +889 -0
  29. data/doc/ForemanApi/Resources/Subnet.html +954 -0
  30. data/doc/ForemanApi/Resources/TemplateKind.html +349 -0
  31. data/doc/ForemanApi/Resources/User.html +920 -0
  32. data/doc/ForemanApi/Resources/Usergroup.html +872 -0
  33. data/doc/ForemanApi/Resources.html +117 -0
  34. data/doc/ForemanApi.html +117 -0
  35. data/doc/_index.html +449 -0
  36. data/doc/class_list.html +53 -0
  37. data/doc/css/common.css +1 -0
  38. data/doc/css/full_list.css +57 -0
  39. data/doc/css/style.css +328 -0
  40. data/doc/file.MIT-LICENSE.html +93 -0
  41. data/doc/file.README.html +129 -0
  42. data/doc/file_list.html +58 -0
  43. data/doc/frames.html +28 -0
  44. data/doc/index.html +129 -0
  45. data/doc/js/app.js +214 -0
  46. data/doc/js/full_list.js +173 -0
  47. data/doc/js/jquery.js +4 -0
  48. data/doc/method_list.html +1300 -0
  49. data/doc/top-level-namespace.html +112 -0
  50. data/foreman_api.gemspec +5 -2
  51. data/lib/foreman_api/base.rb +129 -0
  52. data/lib/foreman_api/resources/architecture.rb +17 -7
  53. data/lib/foreman_api/resources/audit.rb +7 -4
  54. data/lib/foreman_api/resources/auth_source_ldap.rb +35 -7
  55. data/lib/foreman_api/resources/bookmark.rb +19 -7
  56. data/lib/foreman_api/resources/common_parameter.rb +17 -7
  57. data/lib/foreman_api/resources/compute_resource.rb +33 -7
  58. data/lib/foreman_api/resources/config_template.rb +28 -9
  59. data/lib/foreman_api/resources/dashboard.rb +3 -3
  60. data/lib/foreman_api/resources/domain.rb +21 -7
  61. data/lib/foreman_api/resources/environment.rb +15 -7
  62. data/lib/foreman_api/resources/fact_value.rb +6 -3
  63. data/lib/foreman_api/resources/home.rb +2 -4
  64. data/lib/foreman_api/resources/host.rb +50 -8
  65. data/lib/foreman_api/resources/hostgroup.rb +33 -7
  66. data/lib/foreman_api/resources/image.rb +30 -7
  67. data/lib/foreman_api/resources/lookup_key.rb +25 -7
  68. data/lib/foreman_api/resources/medium.rb +19 -7
  69. data/lib/foreman_api/resources/model.rb +21 -7
  70. data/lib/foreman_api/resources/operating_system.rb +26 -8
  71. data/lib/foreman_api/resources/ptable.rb +19 -7
  72. data/lib/foreman_api/resources/puppetclass.rb +15 -7
  73. data/lib/foreman_api/resources/report.rb +8 -5
  74. data/lib/foreman_api/resources/role.rb +13 -7
  75. data/lib/foreman_api/resources/setting.rb +11 -5
  76. data/lib/foreman_api/resources/smart_proxy.rb +16 -7
  77. data/lib/foreman_api/resources/subnet.rb +39 -7
  78. data/lib/foreman_api/resources/template_kind.rb +4 -3
  79. data/lib/foreman_api/resources/user.rb +26 -7
  80. data/lib/foreman_api/resources/usergroup.rb +13 -7
  81. data/lib/foreman_api/rest_client_oauth.rb +19 -0
  82. data/lib/foreman_api/version.rb +1 -1
  83. data/lib/foreman_api.rb +6 -10
  84. metadata +51 -18
@@ -1,12 +1,15 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class Model < Apipie::Client::Base
3
+ class Model < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["models"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["search", "order", "page", "per_page"]
9
+ # @option params [String] order Sort results
10
+ # @option params [String] page Paginate results
11
+ # @option params [String] per_page Number of entries per request
12
+ # @option params [String] search Filter results
10
13
  #
11
14
  # @param [Hash] headers additional http headers
12
15
  def index(params = { }, headers = { })
@@ -16,7 +19,7 @@ module ForemanApi
16
19
  end
17
20
 
18
21
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
22
+ # @option params [String] id
20
23
  #
21
24
  # @param [Hash] headers additional http headers
22
25
  def show(params = { }, headers = { })
@@ -26,7 +29,12 @@ module ForemanApi
26
29
  end
27
30
 
28
31
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"model"=>["name", "info", "vendor_class", "hardware_model"]}
32
+ # @option params [Hash] model
33
+ # allowed keys are:
34
+ # * hardware_model [String],
35
+ # * info [String],
36
+ # * name [String],
37
+ # * vendor_class [String],
30
38
  #
31
39
  # @param [Hash] headers additional http headers
32
40
  def create(params = { }, headers = { })
@@ -36,7 +44,13 @@ module ForemanApi
36
44
  end
37
45
 
38
46
  # @param [Hash] params a hash of params to be passed to the service
39
- # allowed keys are: {"model"=>["name", "info", "vendor_class", "hardware_model"], "id"=>nil}
47
+ # @option params [String] id
48
+ # @option params [Hash] model
49
+ # allowed keys are:
50
+ # * hardware_model [String],
51
+ # * info [String],
52
+ # * name [String],
53
+ # * vendor_class [String],
40
54
  #
41
55
  # @param [Hash] headers additional http headers
42
56
  def update(params = { }, headers = { })
@@ -46,7 +60,7 @@ module ForemanApi
46
60
  end
47
61
 
48
62
  # @param [Hash] params a hash of params to be passed to the service
49
- # allowed keys are: ["id"]
63
+ # @option params [String] id
50
64
  #
51
65
  # @param [Hash] headers additional http headers
52
66
  def destroy(params = { }, headers = { })
@@ -1,12 +1,15 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class OperatingSystem < Apipie::Client::Base
3
+ class OperatingSystem < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["operatingsystems"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["search", "order", "page", "per_page"]
9
+ # @option params [String] order For example, name asc, or name desc
10
+ # @option params [String] page Paginate results
11
+ # @option params [String] per_page Number of entries per request
12
+ # @option params [String] search Filter results
10
13
  #
11
14
  # @param [Hash] headers additional http headers
12
15
  def index(params = { }, headers = { })
@@ -16,7 +19,7 @@ module ForemanApi
16
19
  end
17
20
 
18
21
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
22
+ # @option params [String] id
20
23
  #
21
24
  # @param [Hash] headers additional http headers
22
25
  def show(params = { }, headers = { })
@@ -26,7 +29,13 @@ module ForemanApi
26
29
  end
27
30
 
28
31
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"operatingsystem"=>["name", "major", "minor", "family", "release_name"]}
32
+ # @option params [Hash] operatingsystem
33
+ # allowed keys are:
34
+ # * family [String],
35
+ # * major [String],
36
+ # * minor [String],
37
+ # * name [String],
38
+ # * release_name [String],
30
39
  #
31
40
  # @param [Hash] headers additional http headers
32
41
  def create(params = { }, headers = { })
@@ -36,7 +45,14 @@ module ForemanApi
36
45
  end
37
46
 
38
47
  # @param [Hash] params a hash of params to be passed to the service
39
- # allowed keys are: {"operatingsystem"=>["name", "major", "minor", "family", "release_name"], "id"=>nil}
48
+ # @option params [String] id
49
+ # @option params [Hash] operatingsystem
50
+ # allowed keys are:
51
+ # * family [String],
52
+ # * major [String],
53
+ # * minor [String],
54
+ # * name [String],
55
+ # * release_name [String],
40
56
  #
41
57
  # @param [Hash] headers additional http headers
42
58
  def update(params = { }, headers = { })
@@ -46,7 +62,7 @@ module ForemanApi
46
62
  end
47
63
 
48
64
  # @param [Hash] params a hash of params to be passed to the service
49
- # allowed keys are: ["id"]
65
+ # @option params [String] id
50
66
  #
51
67
  # @param [Hash] headers additional http headers
52
68
  def destroy(params = { }, headers = { })
@@ -56,7 +72,9 @@ module ForemanApi
56
72
  end
57
73
 
58
74
  # @param [Hash] params a hash of params to be passed to the service
59
- # allowed keys are: ["id", "medium", "architecture"]
75
+ # @option params [String] id
76
+ # @option params [String] architecture
77
+ # @option params [String] medium
60
78
  #
61
79
  # @param [Hash] headers additional http headers
62
80
  def bootfiles(params = { }, headers = { })
@@ -1,12 +1,15 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class Ptable < Apipie::Client::Base
3
+ class Ptable < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["ptables"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["search", "order", "page", "per_page"]
9
+ # @option params [String] order Sort results
10
+ # @option params [String] page Paginate results
11
+ # @option params [String] per_page Number of entries per request
12
+ # @option params [String] search Filter results
10
13
  #
11
14
  # @param [Hash] headers additional http headers
12
15
  def index(params = { }, headers = { })
@@ -16,7 +19,7 @@ module ForemanApi
16
19
  end
17
20
 
18
21
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
22
+ # @option params [String] id
20
23
  #
21
24
  # @param [Hash] headers additional http headers
22
25
  def show(params = { }, headers = { })
@@ -26,7 +29,11 @@ module ForemanApi
26
29
  end
27
30
 
28
31
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"ptable"=>["name", "layout", "os_family"]}
32
+ # @option params [Hash] ptable
33
+ # allowed keys are:
34
+ # * layout [String],
35
+ # * name [String],
36
+ # * os_family [String],
30
37
  #
31
38
  # @param [Hash] headers additional http headers
32
39
  def create(params = { }, headers = { })
@@ -36,7 +43,12 @@ module ForemanApi
36
43
  end
37
44
 
38
45
  # @param [Hash] params a hash of params to be passed to the service
39
- # allowed keys are: {"id"=>nil, "ptable"=>["name", "layout", "os_family"]}
46
+ # @option params [String] id
47
+ # @option params [Hash] ptable
48
+ # allowed keys are:
49
+ # * layout [String],
50
+ # * name [String],
51
+ # * os_family [String],
40
52
  #
41
53
  # @param [Hash] headers additional http headers
42
54
  def update(params = { }, headers = { })
@@ -46,7 +58,7 @@ module ForemanApi
46
58
  end
47
59
 
48
60
  # @param [Hash] params a hash of params to be passed to the service
49
- # allowed keys are: ["id"]
61
+ # @option params [String] id
50
62
  #
51
63
  # @param [Hash] headers additional http headers
52
64
  def destroy(params = { }, headers = { })
@@ -1,12 +1,15 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class Puppetclass < Apipie::Client::Base
3
+ class Puppetclass < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["puppetclasses"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["search", "order", "page", "per_page"]
9
+ # @option params [String] order Sort results
10
+ # @option params [String] page Paginate results
11
+ # @option params [String] per_page Number of entries per request
12
+ # @option params [String] search Filter results
10
13
  #
11
14
  # @param [Hash] headers additional http headers
12
15
  def index(params = { }, headers = { })
@@ -16,7 +19,7 @@ module ForemanApi
16
19
  end
17
20
 
18
21
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
22
+ # @option params [String] id
20
23
  #
21
24
  # @param [Hash] headers additional http headers
22
25
  def show(params = { }, headers = { })
@@ -26,7 +29,9 @@ module ForemanApi
26
29
  end
27
30
 
28
31
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"puppetclass"=>["name"]}
32
+ # @option params [Hash] puppetclass
33
+ # allowed keys are:
34
+ # * name [String],
30
35
  #
31
36
  # @param [Hash] headers additional http headers
32
37
  def create(params = { }, headers = { })
@@ -36,7 +41,10 @@ module ForemanApi
36
41
  end
37
42
 
38
43
  # @param [Hash] params a hash of params to be passed to the service
39
- # allowed keys are: {"puppetclass"=>["name"], "id"=>nil}
44
+ # @option params [String] id
45
+ # @option params [Hash] puppetclass
46
+ # allowed keys are:
47
+ # * name [String],
40
48
  #
41
49
  # @param [Hash] headers additional http headers
42
50
  def update(params = { }, headers = { })
@@ -46,7 +54,7 @@ module ForemanApi
46
54
  end
47
55
 
48
56
  # @param [Hash] params a hash of params to be passed to the service
49
- # allowed keys are: ["id"]
57
+ # @option params [String] id
50
58
  #
51
59
  # @param [Hash] headers additional http headers
52
60
  def destroy(params = { }, headers = { })
@@ -1,12 +1,15 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class Report < Apipie::Client::Base
3
+ class Report < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["reports"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["search", "order", "page", "per_page"]
9
+ # @option params [String] order Sort results
10
+ # @option params [String] page Paginate results
11
+ # @option params [String] per_page Number of entries per request
12
+ # @option params [String] search Filter results
10
13
  #
11
14
  # @param [Hash] headers additional http headers
12
15
  def index(params = { }, headers = { })
@@ -16,7 +19,7 @@ module ForemanApi
16
19
  end
17
20
 
18
21
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
22
+ # @option params [String] id
20
23
  #
21
24
  # @param [Hash] headers additional http headers
22
25
  def show(params = { }, headers = { })
@@ -26,7 +29,7 @@ module ForemanApi
26
29
  end
27
30
 
28
31
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: ["id"]
32
+ # @option params [String] id
30
33
  #
31
34
  # @param [Hash] headers additional http headers
32
35
  def destroy(params = { }, headers = { })
@@ -1,12 +1,13 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class Role < Apipie::Client::Base
3
+ class Role < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["roles"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["page", "per_page"]
9
+ # @option params [String] page Paginate results
10
+ # @option params [String] per_page Number of entries per request
10
11
  #
11
12
  # @param [Hash] headers additional http headers
12
13
  def index(params = { }, headers = { })
@@ -16,7 +17,7 @@ module ForemanApi
16
17
  end
17
18
 
18
19
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
20
+ # @option params [String] id
20
21
  #
21
22
  # @param [Hash] headers additional http headers
22
23
  def show(params = { }, headers = { })
@@ -26,7 +27,9 @@ module ForemanApi
26
27
  end
27
28
 
28
29
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"role"=>["name"]}
30
+ # @option params [Hash] role
31
+ # allowed keys are:
32
+ # * name [String],
30
33
  #
31
34
  # @param [Hash] headers additional http headers
32
35
  def create(params = { }, headers = { })
@@ -36,7 +39,10 @@ module ForemanApi
36
39
  end
37
40
 
38
41
  # @param [Hash] params a hash of params to be passed to the service
39
- # allowed keys are: {"role"=>["name"], "id"=>nil}
42
+ # @option params [String] id
43
+ # @option params [Hash] role
44
+ # allowed keys are:
45
+ # * name [String],
40
46
  #
41
47
  # @param [Hash] headers additional http headers
42
48
  def update(params = { }, headers = { })
@@ -46,7 +52,7 @@ module ForemanApi
46
52
  end
47
53
 
48
54
  # @param [Hash] params a hash of params to be passed to the service
49
- # allowed keys are: ["id"]
55
+ # @option params [String] id
50
56
  #
51
57
  # @param [Hash] headers additional http headers
52
58
  def destroy(params = { }, headers = { })
@@ -1,12 +1,15 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class Setting < Apipie::Client::Base
3
+ class Setting < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["settings"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["search", "order", "page", "per_page"]
9
+ # @option params [String] order Sort results
10
+ # @option params [String] page Paginate results
11
+ # @option params [String] per_page Number of entries per request
12
+ # @option params [String] search Filter results
10
13
  #
11
14
  # @param [Hash] headers additional http headers
12
15
  def index(params = { }, headers = { })
@@ -16,7 +19,7 @@ module ForemanApi
16
19
  end
17
20
 
18
21
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
22
+ # @option params [String] id
20
23
  #
21
24
  # @param [Hash] headers additional http headers
22
25
  def show(params = { }, headers = { })
@@ -26,7 +29,10 @@ module ForemanApi
26
29
  end
27
30
 
28
31
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"id"=>nil, "setting"=>["value"]}
32
+ # @option params [String] id
33
+ # @option params [Hash] setting
34
+ # allowed keys are:
35
+ # * value [String],
30
36
  #
31
37
  # @param [Hash] headers additional http headers
32
38
  def update(params = { }, headers = { })
@@ -1,12 +1,14 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class SmartProxy < Apipie::Client::Base
3
+ class SmartProxy < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["smart_proxies"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["type", "page", "per_page"]
9
+ # @option params [String] page Paginate results
10
+ # @option params [String] per_page Number of entries per request
11
+ # @option params [String] type Filter by type
10
12
  #
11
13
  # @param [Hash] headers additional http headers
12
14
  def index(params = { }, headers = { })
@@ -16,7 +18,7 @@ module ForemanApi
16
18
  end
17
19
 
18
20
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
21
+ # @option params [String] id
20
22
  #
21
23
  # @param [Hash] headers additional http headers
22
24
  def show(params = { }, headers = { })
@@ -26,7 +28,10 @@ module ForemanApi
26
28
  end
27
29
 
28
30
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"smart_proxy"=>["name", "url"]}
31
+ # @option params [Hash] smart_proxy
32
+ # allowed keys are:
33
+ # * name [String],
34
+ # * url [String],
30
35
  #
31
36
  # @param [Hash] headers additional http headers
32
37
  def create(params = { }, headers = { })
@@ -36,7 +41,11 @@ module ForemanApi
36
41
  end
37
42
 
38
43
  # @param [Hash] params a hash of params to be passed to the service
39
- # allowed keys are: {"smart_proxy"=>["name", "url"], "id"=>nil}
44
+ # @option params [String] id
45
+ # @option params [Hash] smart_proxy
46
+ # allowed keys are:
47
+ # * name [String],
48
+ # * url [String],
40
49
  #
41
50
  # @param [Hash] headers additional http headers
42
51
  def update(params = { }, headers = { })
@@ -46,7 +55,7 @@ module ForemanApi
46
55
  end
47
56
 
48
57
  # @param [Hash] params a hash of params to be passed to the service
49
- # allowed keys are: ["id"]
58
+ # @option params [String] id
50
59
  #
51
60
  # @param [Hash] headers additional http headers
52
61
  def destroy(params = { }, headers = { })
@@ -1,12 +1,15 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class Subnet < Apipie::Client::Base
3
+ class Subnet < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["subnets"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["search", "order", "page", "per_page"]
9
+ # @option params [String] order Sort results
10
+ # @option params [String] page Paginate results
11
+ # @option params [String] per_page Number of entries per request
12
+ # @option params [String] search Filter results
10
13
  #
11
14
  # @param [Hash] headers additional http headers
12
15
  def index(params = { }, headers = { })
@@ -16,7 +19,7 @@ module ForemanApi
16
19
  end
17
20
 
18
21
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
22
+ # @option params [String] id
20
23
  #
21
24
  # @param [Hash] headers additional http headers
22
25
  def show(params = { }, headers = { })
@@ -26,7 +29,21 @@ module ForemanApi
26
29
  end
27
30
 
28
31
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"subnet"=>["name", "network", "mask", "gateway", "dns_primary", "dns_secondary", "from", "to", "vlanid", "domain_ids", "dhcp_id", "tftp_id", "dns_id"]}
32
+ # @option params [Hash] subnet
33
+ # allowed keys are:
34
+ # * dhcp_id [String] Dhcp proxy to use within this subnet ,
35
+ # * dns_id [String] Dns proxy to use within this subnet ,
36
+ # * dns_primary [String] Primary dns for this subnet ,
37
+ # * dns_secondary [String] Secondary dns for this subnet ,
38
+ # * domain_ids [String] Domains in which this subnet is part ,
39
+ # * from [String] Starting ip address for ip auto suggestion ,
40
+ # * gateway [String] Primary dns for this subnet ,
41
+ # * mask [String] Netmask for this subnet ,
42
+ # * name [String] Subnet name ,
43
+ # * network [String] Subnet network ,
44
+ # * tftp_id [String] Tftp proxy to use within this subnet ,
45
+ # * to [String] Ending ip address for ip auto suggestion ,
46
+ # * vlanid [String] Vlan id for this subnet ,
30
47
  #
31
48
  # @param [Hash] headers additional http headers
32
49
  def create(params = { }, headers = { })
@@ -36,7 +53,22 @@ module ForemanApi
36
53
  end
37
54
 
38
55
  # @param [Hash] params a hash of params to be passed to the service
39
- # allowed keys are: {"id"=>nil, "subnet"=>["name", "network", "mask", "gateway", "dns_primary", "dns_secondary", "from", "to", "vlanid", "domain_ids", "dhcp_id", "tftp_id", "dns_id"]}
56
+ # @option params [String] id Subnet numeric identifier
57
+ # @option params [Hash] subnet
58
+ # allowed keys are:
59
+ # * dhcp_id [String, nil] Dhcp proxy to use within this subnet ,
60
+ # * dns_id [String, nil] Dns proxy to use within this subnet ,
61
+ # * dns_primary [String, nil] Primary dns for this subnet ,
62
+ # * dns_secondary [String, nil] Secondary dns for this subnet ,
63
+ # * domain_ids [String, nil] Domains in which this subnet is part ,
64
+ # * from [String, nil] Starting ip address for ip auto suggestion ,
65
+ # * gateway [String, nil] Primary dns for this subnet ,
66
+ # * mask [String] Netmask for this subnet ,
67
+ # * name [String] Subnet name ,
68
+ # * network [String] Subnet network ,
69
+ # * tftp_id [String, nil] Tftp proxy to use within this subnet ,
70
+ # * to [String, nil] Ending ip address for ip auto suggestion ,
71
+ # * vlanid [String, nil] Vlan id for this subnet ,
40
72
  #
41
73
  # @param [Hash] headers additional http headers
42
74
  def update(params = { }, headers = { })
@@ -46,7 +78,7 @@ module ForemanApi
46
78
  end
47
79
 
48
80
  # @param [Hash] params a hash of params to be passed to the service
49
- # allowed keys are: ["id"]
81
+ # @option params [String] id Subnet numeric identifier
50
82
  #
51
83
  # @param [Hash] headers additional http headers
52
84
  def destroy(params = { }, headers = { })
@@ -1,12 +1,13 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class TemplateKind < Apipie::Client::Base
3
+ class TemplateKind < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["template_kinds"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["page", "per_page"]
9
+ # @option params [String] page Paginate results
10
+ # @option params [String] per_page Number of entries per request
10
11
  #
11
12
  # @param [Hash] headers additional http headers
12
13
  def index(params = { }, headers = { })
@@ -1,12 +1,15 @@
1
1
  module ForemanApi
2
2
  module Resources
3
- class User < Apipie::Client::Base
3
+ class User < ForemanApi::Base
4
4
  def self.doc
5
5
  @doc ||= ForemanApi.doc['resources']["users"]
6
6
  end
7
-
7
+
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # allowed keys are: ["search", "order", "page", "per_page"]
9
+ # @option params [String] order Sort results
10
+ # @option params [String] page Paginate results
11
+ # @option params [String] per_page Number of entries per request
12
+ # @option params [String] search Filter results
10
13
  #
11
14
  # @param [Hash] headers additional http headers
12
15
  def index(params = { }, headers = { })
@@ -16,7 +19,7 @@ module ForemanApi
16
19
  end
17
20
 
18
21
  # @param [Hash] params a hash of params to be passed to the service
19
- # allowed keys are: ["id"]
22
+ # @option params [String] id
20
23
  #
21
24
  # @param [Hash] headers additional http headers
22
25
  def show(params = { }, headers = { })
@@ -26,7 +29,15 @@ module ForemanApi
26
29
  end
27
30
 
28
31
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"user"=>["login", "firstname", "lastname", "mail", "admin", "password", "auth_source_id"]}
32
+ # @option params [Hash] user
33
+ # allowed keys are:
34
+ # * admin [String] Is an admin account? ,
35
+ # * auth_source_id [Numeric],
36
+ # * firstname [String],
37
+ # * lastname [String],
38
+ # * login [String],
39
+ # * mail [String],
40
+ # * password [String],
30
41
  #
31
42
  # @param [Hash] headers additional http headers
32
43
  def create(params = { }, headers = { })
@@ -36,7 +47,15 @@ module ForemanApi
36
47
  end
37
48
 
38
49
  # @param [Hash] params a hash of params to be passed to the service
39
- # allowed keys are: {"id"=>nil, "user"=>["login", "firstname", "lastname", "mail", "admin", "password"]}
50
+ # @option params [String] id
51
+ # @option params [Hash] user
52
+ # allowed keys are:
53
+ # * admin [String] Is an admin account? ,
54
+ # * firstname [String, nil],
55
+ # * lastname [String, nil],
56
+ # * login [String],
57
+ # * mail [String],
58
+ # * password [String],
40
59
  #
41
60
  # @param [Hash] headers additional http headers
42
61
  def update(params = { }, headers = { })
@@ -46,7 +65,7 @@ module ForemanApi
46
65
  end
47
66
 
48
67
  # @param [Hash] params a hash of params to be passed to the service
49
- # allowed keys are: ["id"]
68
+ # @option params [String] id
50
69
  #
51
70
  # @param [Hash] headers additional http headers
52
71
  def destroy(params = { }, headers = { })