foreman_api 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,60 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class Ptable < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["ptables"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # allowed keys are: ["search", "order", "page", "per_page"]
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ def index(params = { }, headers = { })
13
+ check_params params, :allowed => true, :method => __method__
14
+ url, params = fill_params_in_url "/api/ptables", params
15
+ call(:"get", url, params, headers)
16
+ end
17
+
18
+ # @param [Hash] params a hash of params to be passed to the service
19
+ # allowed keys are: ["id"]
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ def show(params = { }, headers = { })
23
+ check_params params, :allowed => true, :method => __method__
24
+ url, params = fill_params_in_url "/api/ptables/:id", params
25
+ call(:"get", url, params, headers)
26
+ end
27
+
28
+ # @param [Hash] params a hash of params to be passed to the service
29
+ # allowed keys are: {"ptable"=>["name", "layout", "os_family"]}
30
+ #
31
+ # @param [Hash] headers additional http headers
32
+ def create(params = { }, headers = { })
33
+ check_params params, :allowed => true, :method => __method__
34
+ url, params = fill_params_in_url "/api/ptables", params
35
+ call(:"post", url, params, headers)
36
+ end
37
+
38
+ # @param [Hash] params a hash of params to be passed to the service
39
+ # allowed keys are: {"ptable"=>["name", "layout", "os_family"], "id"=>nil}
40
+ #
41
+ # @param [Hash] headers additional http headers
42
+ def update(params = { }, headers = { })
43
+ check_params params, :allowed => true, :method => __method__
44
+ url, params = fill_params_in_url "/api/ptables/:id", params
45
+ call(:"put", url, params, headers)
46
+ end
47
+
48
+ # @param [Hash] params a hash of params to be passed to the service
49
+ # allowed keys are: ["id"]
50
+ #
51
+ # @param [Hash] headers additional http headers
52
+ def destroy(params = { }, headers = { })
53
+ check_params params, :allowed => true, :method => __method__
54
+ url, params = fill_params_in_url "/api/ptables/:id", params
55
+ call(:"delete", url, params, headers)
56
+ end
57
+
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,60 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class Puppetclass < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["puppetclasses"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # allowed keys are: ["search", "order", "page", "per_page"]
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ def index(params = { }, headers = { })
13
+ check_params params, :allowed => true, :method => __method__
14
+ url, params = fill_params_in_url "/api/puppetclasses", params
15
+ call(:"get", url, params, headers)
16
+ end
17
+
18
+ # @param [Hash] params a hash of params to be passed to the service
19
+ # allowed keys are: ["id"]
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ def show(params = { }, headers = { })
23
+ check_params params, :allowed => true, :method => __method__
24
+ url, params = fill_params_in_url "/api/puppetclasses/:id", params
25
+ call(:"get", url, params, headers)
26
+ end
27
+
28
+ # @param [Hash] params a hash of params to be passed to the service
29
+ # allowed keys are: {"puppetclass"=>["name"]}
30
+ #
31
+ # @param [Hash] headers additional http headers
32
+ def create(params = { }, headers = { })
33
+ check_params params, :allowed => true, :method => __method__
34
+ url, params = fill_params_in_url "/api/puppetclasses", params
35
+ call(:"post", url, params, headers)
36
+ end
37
+
38
+ # @param [Hash] params a hash of params to be passed to the service
39
+ # allowed keys are: {"puppetclass"=>["name"], "id"=>nil}
40
+ #
41
+ # @param [Hash] headers additional http headers
42
+ def update(params = { }, headers = { })
43
+ check_params params, :allowed => true, :method => __method__
44
+ url, params = fill_params_in_url "/api/puppetclasses/:id", params
45
+ call(:"put", url, params, headers)
46
+ end
47
+
48
+ # @param [Hash] params a hash of params to be passed to the service
49
+ # allowed keys are: ["id"]
50
+ #
51
+ # @param [Hash] headers additional http headers
52
+ def destroy(params = { }, headers = { })
53
+ check_params params, :allowed => true, :method => __method__
54
+ url, params = fill_params_in_url "/api/puppetclasses/:id", params
55
+ call(:"delete", url, params, headers)
56
+ end
57
+
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,40 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class Report < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["reports"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # allowed keys are: ["search", "order", "page", "per_page"]
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ def index(params = { }, headers = { })
13
+ check_params params, :allowed => true, :method => __method__
14
+ url, params = fill_params_in_url "/api/reports", params
15
+ call(:"get", url, params, headers)
16
+ end
17
+
18
+ # @param [Hash] params a hash of params to be passed to the service
19
+ # allowed keys are: ["id"]
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ def show(params = { }, headers = { })
23
+ check_params params, :allowed => true, :method => __method__
24
+ url, params = fill_params_in_url "/api/reports/:id", params
25
+ call(:"get", url, params, headers)
26
+ end
27
+
28
+ # @param [Hash] params a hash of params to be passed to the service
29
+ # allowed keys are: ["id"]
30
+ #
31
+ # @param [Hash] headers additional http headers
32
+ def destroy(params = { }, headers = { })
33
+ check_params params, :allowed => true, :method => __method__
34
+ url, params = fill_params_in_url "/api/ptables/:id", params
35
+ call(:"delete", url, params, headers)
36
+ end
37
+
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,60 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class Role < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["roles"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # allowed keys are: ["page", "per_page"]
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ def index(params = { }, headers = { })
13
+ check_params params, :allowed => true, :method => __method__
14
+ url, params = fill_params_in_url "/api/roles", params
15
+ call(:"get", url, params, headers)
16
+ end
17
+
18
+ # @param [Hash] params a hash of params to be passed to the service
19
+ # allowed keys are: ["id"]
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ def show(params = { }, headers = { })
23
+ check_params params, :allowed => true, :method => __method__
24
+ url, params = fill_params_in_url "/api/roles/:id", params
25
+ call(:"get", url, params, headers)
26
+ end
27
+
28
+ # @param [Hash] params a hash of params to be passed to the service
29
+ # allowed keys are: {"role"=>["name"]}
30
+ #
31
+ # @param [Hash] headers additional http headers
32
+ def create(params = { }, headers = { })
33
+ check_params params, :allowed => true, :method => __method__
34
+ url, params = fill_params_in_url "/api/roles", params
35
+ call(:"post", url, params, headers)
36
+ end
37
+
38
+ # @param [Hash] params a hash of params to be passed to the service
39
+ # allowed keys are: {"role"=>["name"], "id"=>nil}
40
+ #
41
+ # @param [Hash] headers additional http headers
42
+ def update(params = { }, headers = { })
43
+ check_params params, :allowed => true, :method => __method__
44
+ url, params = fill_params_in_url "/api/roles/:id", params
45
+ call(:"put", url, params, headers)
46
+ end
47
+
48
+ # @param [Hash] params a hash of params to be passed to the service
49
+ # allowed keys are: ["id"]
50
+ #
51
+ # @param [Hash] headers additional http headers
52
+ def destroy(params = { }, headers = { })
53
+ check_params params, :allowed => true, :method => __method__
54
+ url, params = fill_params_in_url "/api/roles/:id", params
55
+ call(:"delete", url, params, headers)
56
+ end
57
+
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,40 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class Setting < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["settings"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # allowed keys are: ["search", "order", "page", "per_page"]
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ def index(params = { }, headers = { })
13
+ check_params params, :allowed => true, :method => __method__
14
+ url, params = fill_params_in_url "/api/settings", params
15
+ call(:"get", url, params, headers)
16
+ end
17
+
18
+ # @param [Hash] params a hash of params to be passed to the service
19
+ # allowed keys are: ["id"]
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ def show(params = { }, headers = { })
23
+ check_params params, :allowed => true, :method => __method__
24
+ url, params = fill_params_in_url "/api/settings/:id", params
25
+ call(:"get", url, params, headers)
26
+ end
27
+
28
+ # @param [Hash] params a hash of params to be passed to the service
29
+ # allowed keys are: {"setting"=>["value"], "id"=>nil}
30
+ #
31
+ # @param [Hash] headers additional http headers
32
+ def update(params = { }, headers = { })
33
+ check_params params, :allowed => true, :method => __method__
34
+ url, params = fill_params_in_url "/api/settings/:id", params
35
+ call(:"put", url, params, headers)
36
+ end
37
+
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,60 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class SmartProxy < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["smart_proxies"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # allowed keys are: ["type", "page", "per_page"]
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ def index(params = { }, headers = { })
13
+ check_params params, :allowed => true, :method => __method__
14
+ url, params = fill_params_in_url "/api/smart_proxies", params
15
+ call(:"get", url, params, headers)
16
+ end
17
+
18
+ # @param [Hash] params a hash of params to be passed to the service
19
+ # allowed keys are: ["id"]
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ def show(params = { }, headers = { })
23
+ check_params params, :allowed => true, :method => __method__
24
+ url, params = fill_params_in_url "/api/smart_proxies/:id", params
25
+ call(:"get", url, params, headers)
26
+ end
27
+
28
+ # @param [Hash] params a hash of params to be passed to the service
29
+ # allowed keys are: {"smart_proxy"=>["name", "url"]}
30
+ #
31
+ # @param [Hash] headers additional http headers
32
+ def create(params = { }, headers = { })
33
+ check_params params, :allowed => true, :method => __method__
34
+ url, params = fill_params_in_url "/api/smart_proxies", params
35
+ call(:"post", url, params, headers)
36
+ end
37
+
38
+ # @param [Hash] params a hash of params to be passed to the service
39
+ # allowed keys are: {"smart_proxy"=>["name", "url"], "id"=>nil}
40
+ #
41
+ # @param [Hash] headers additional http headers
42
+ def update(params = { }, headers = { })
43
+ check_params params, :allowed => true, :method => __method__
44
+ url, params = fill_params_in_url "/api/smart_proxies/:id", params
45
+ call(:"put", url, params, headers)
46
+ end
47
+
48
+ # @param [Hash] params a hash of params to be passed to the service
49
+ # allowed keys are: ["id"]
50
+ #
51
+ # @param [Hash] headers additional http headers
52
+ def destroy(params = { }, headers = { })
53
+ check_params params, :allowed => true, :method => __method__
54
+ url, params = fill_params_in_url "/api/smart_proxies/:id", params
55
+ call(:"delete", url, params, headers)
56
+ end
57
+
58
+ end
59
+ end
60
+ end
@@ -6,7 +6,7 @@ module ForemanApi
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"]
9
+ # allowed keys are: ["search", "order", "page", "per_page"]
10
10
  #
11
11
  # @param [Hash] headers additional http headers
12
12
  def index(params = { }, headers = { })
@@ -15,6 +15,16 @@ module ForemanApi
15
15
  call(:"get", url, params, headers)
16
16
  end
17
17
 
18
+ # @param [Hash] params a hash of params to be passed to the service
19
+ # allowed keys are: ["id"]
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ def show(params = { }, headers = { })
23
+ check_params params, :allowed => true, :method => __method__
24
+ url, params = fill_params_in_url "/api/subnets/:id", params
25
+ call(:"get", url, params, headers)
26
+ end
27
+
18
28
  # @param [Hash] params a hash of params to be passed to the service
19
29
  # allowed keys are: {"subnet"=>["name", "network", "mask", "gateway", "dns_primary", "dns_secondary", "from", "to", "vlanid", "domain_ids", "dhcp_id", "tftp_id", "dns_id"]}
20
30
  #
@@ -26,7 +36,7 @@ module ForemanApi
26
36
  end
27
37
 
28
38
  # @param [Hash] params a hash of params to be passed to the service
29
- # 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"]}
39
+ # allowed keys are: {"subnet"=>["name", "network", "mask", "gateway", "dns_primary", "dns_secondary", "from", "to", "vlanid", "domain_ids", "dhcp_id", "tftp_id", "dns_id"], "id"=>nil}
30
40
  #
31
41
  # @param [Hash] headers additional http headers
32
42
  def update(params = { }, headers = { })
@@ -45,16 +55,6 @@ module ForemanApi
45
55
  call(:"delete", url, params, headers)
46
56
  end
47
57
 
48
- # @param [Hash] params a hash of params to be passed to the service
49
- # allowed keys are: ["subnet_id", "host_mac"]
50
- #
51
- # @param [Hash] headers additional http headers
52
- def freeip(params = { }, headers = { })
53
- check_params params, :allowed => true, :method => __method__
54
- url, params = fill_params_in_url "/api/subnets/freeip", params
55
- call(:"post", url, params, headers)
56
- end
57
-
58
58
  end
59
59
  end
60
60
  end
@@ -6,7 +6,7 @@ module ForemanApi
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"]
9
+ # allowed keys are: ["search", "order", "page", "per_page"]
10
10
  #
11
11
  # @param [Hash] headers additional http headers
12
12
  def index(params = { }, headers = { })
@@ -36,7 +36,7 @@ module ForemanApi
36
36
  end
37
37
 
38
38
  # @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"]}
39
+ # allowed keys are: {"user"=>["login", "firstname", "lastname", "mail", "admin", "password"], "id"=>nil}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(params = { }, headers = { })
@@ -0,0 +1,60 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class Usergroup < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["usergroups"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # allowed keys are: ["page", "per_page"]
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ def index(params = { }, headers = { })
13
+ check_params params, :allowed => true, :method => __method__
14
+ url, params = fill_params_in_url "/api/usergroups", params
15
+ call(:"get", url, params, headers)
16
+ end
17
+
18
+ # @param [Hash] params a hash of params to be passed to the service
19
+ # allowed keys are: ["id"]
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ def show(params = { }, headers = { })
23
+ check_params params, :allowed => true, :method => __method__
24
+ url, params = fill_params_in_url "/api/usergroups/:id", params
25
+ call(:"get", url, params, headers)
26
+ end
27
+
28
+ # @param [Hash] params a hash of params to be passed to the service
29
+ # allowed keys are: {"usergroup"=>["name"]}
30
+ #
31
+ # @param [Hash] headers additional http headers
32
+ def create(params = { }, headers = { })
33
+ check_params params, :allowed => true, :method => __method__
34
+ url, params = fill_params_in_url "/api/usergroups", params
35
+ call(:"post", url, params, headers)
36
+ end
37
+
38
+ # @param [Hash] params a hash of params to be passed to the service
39
+ # allowed keys are: {"usergroup"=>["name"], "id"=>nil}
40
+ #
41
+ # @param [Hash] headers additional http headers
42
+ def update(params = { }, headers = { })
43
+ check_params params, :allowed => true, :method => __method__
44
+ url, params = fill_params_in_url "/api/usergroups/:id", params
45
+ call(:"put", url, params, headers)
46
+ end
47
+
48
+ # @param [Hash] params a hash of params to be passed to the service
49
+ # allowed keys are: ["id"]
50
+ #
51
+ # @param [Hash] headers additional http headers
52
+ def destroy(params = { }, headers = { })
53
+ check_params params, :allowed => true, :method => __method__
54
+ url, params = fill_params_in_url "/api/usergroups/:id", params
55
+ call(:"delete", url, params, headers)
56
+ end
57
+
58
+ end
59
+ end
60
+ end
@@ -1,3 +1,3 @@
1
1
  module ForemanApi
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end