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.
@@ -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 = { })
@@ -26,7 +26,7 @@ module ForemanApi
26
26
  end
27
27
 
28
28
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"architecture"=>["name"]}
29
+ # allowed keys are: {"architecture"=>["name", "operatingsystem_ids"]}
30
30
  #
31
31
  # @param [Hash] headers additional http headers
32
32
  def create(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, "architecture"=>["name"]}
39
+ # allowed keys are: {"architecture"=>["name", "operatingsystem_ids"], "id"=>nil}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(params = { }, headers = { })
@@ -0,0 +1,30 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class Audit < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["audits"]
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/audits", 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/audits/:id", params
25
+ call(:"get", url, params, headers)
26
+ end
27
+
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,60 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class AuthSourceLdap < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["auth_source_ldaps"]
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/auth_source_ldaps", 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/auth_source_ldaps/: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: {"auth_source_ldap"=>["name", "host", "port", "account", "base_dn", "account_password", "attr_login", "attr_firstname", "attr_lastname", "attr_mail", "onthefly_register", "tls"]}
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/auth_source_ldaps", 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: {"auth_source_ldap"=>["name", "host", "port", "account", "base_dn", "account_password", "attr_login", "attr_firstname", "attr_lastname", "attr_mail", "onthefly_register", "tls"], "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/auth_source_ldaps/: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/auth_source_ldaps/:id", params
55
+ call(:"delete", url, params, headers)
56
+ end
57
+
58
+ end
59
+ end
60
+ end
@@ -6,11 +6,11 @@ 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: []
9
+ # allowed keys are: ["page", "per_page"]
10
10
  #
11
11
  # @param [Hash] headers additional http headers
12
12
  def index(params = { }, headers = { })
13
- check_params params, :allowed => false, :method => __method__
13
+ check_params params, :allowed => true, :method => __method__
14
14
  url, params = fill_params_in_url "/api/bookmarks", params
15
15
  call(:"get", url, params, headers)
16
16
  end
@@ -26,7 +26,7 @@ module ForemanApi
26
26
  end
27
27
 
28
28
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"bookmark"=>["name", "controller", "query"]}
29
+ # allowed keys are: {"bookmark"=>["name", "controller", "query", "public"]}
30
30
  #
31
31
  # @param [Hash] headers additional http headers
32
32
  def create(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, "bookmark"=>["name", "controller", "query"]}
39
+ # allowed keys are: {"bookmark"=>["name", "controller", "query", "public"], "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 CommonParameter < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["common_parameters"]
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/common_parameters", 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/common_parameters/: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: {"common_parameter"=>["name", "value"]}
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/common_parameters", 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: {"common_parameter"=>["name", "value"], "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/common_parameters/: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/common_parameters/: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 ComputeResource < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["compute_resources"]
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/compute_resources", 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/compute_resources/: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: {"compute_resource"=>["name", "provider", "url", "description", "user", "password", "uuid", "region", "tenant", "server"], "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/compute_resources/:id", params
35
+ call(:"put", url, params, headers)
36
+ end
37
+
38
+ end
39
+ end
40
+ 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 = { })
@@ -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 = { })
@@ -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 = { })
@@ -0,0 +1,20 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class FactValue < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["fact_values"]
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/fact_values", params
15
+ call(:"get", url, params, headers)
16
+ end
17
+
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,60 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class Host < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["hosts"]
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/hosts", 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/hosts/: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: {"host"=>["name", "environment_id", "ip", "mac", "architecture_id", "domain_id", "puppet_proxy_id", "operatingsystem_id", "medium_id", "ptable_id", "subnet_id", "sp_subnet_id", "model_id_id", "hostgroup_id", "owner_id", "puppet_ca_proxy_id", "image_id", "host_parameters_attributes"]}
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/hosts", 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: {"host"=>["name", "environment_id", "ip", "mac", "architecture_id", "domain_id", "puppet_proxy_id", "operatingsystem_id", "medium_id", "ptable_id", "subnet_id", "sp_subnet_id", "model_id_id", "hostgroup_id", "owner_id", "puppet_ca_proxy_id", "image_id", "host_parameters_attributes"], "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/hosts/: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/hosts/: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 Hostgroup < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["hostgroups"]
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/hostgroups", 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/hostgroups/: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: {"hostgroup"=>["name", "environment_id", "operatingsystem_id", "architecture_id", "medium_id", "ptable_id", "puppet_ca_proxy_id", "subnet_id", "domain_id", "puppet_proxy_id"]}
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/hostgroups", 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: {"hostgroup"=>["name", "environment_id", "operatingsystem_id", "architecture_id", "medium_id", "ptable_id", "puppet_ca_proxy_id", "subnet_id", "domain_id", "puppet_proxy_id"], "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/hostgroups/: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/hostgroups/: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 Image < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["images"]
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", "compute_resource_id"]
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/compute_resources/:compute_resource_id/images", 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", "compute_resource_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/compute_resources/:compute_resource_id/images/: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: {"image"=>["name", "username", "uuid", "compute_resource_id", "architecture_id", "operatingsystem_id"], "compute_resource_id"=>nil}
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/compute_resources/:compute_resource_id/images", 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: {"image"=>["name", "username", "uuid", "compute_resource_id", "architecture_id", "operatingsystem_id"], "compute_resource_id"=>nil, "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/compute_resources/:compute_resource_id/images/: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: ["compute_resource_id", "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/compute_resources/:compute_resource_id/images/: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 LookupKey < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["lookup_keys"]
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/lookup_keys", 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/lookup_keys/: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: {"lookup_key"=>["key", "puppetclass_id", "default_value", "path", "description", "lookup_values_count"]}
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/lookup_keys", 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: {"lookup_key"=>["key", "puppetclass_id", "default_value", "path", "description", "lookup_values_count"], "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/lookup_keys/: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/lookup_keys/: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 = { })
@@ -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, "medium"=>["name", "path", "os_family"]}
39
+ # allowed keys are: {"medium"=>["name", "path", "os_family"], "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 Model < Apipie::Client::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["models"]
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/models", 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/models/: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: {"model"=>["name", "info", "vendor_class", "hardware_model"]}
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/models", 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: {"model"=>["name", "info", "vendor_class", "hardware_model"], "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/models/: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/models/: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 = { })
@@ -26,7 +26,7 @@ module ForemanApi
26
26
  end
27
27
 
28
28
  # @param [Hash] params a hash of params to be passed to the service
29
- # allowed keys are: {"operatingsystem"=>["name", "major", "minor"]}
29
+ # allowed keys are: {"operatingsystem"=>["name", "major", "minor", "family", "release_name"]}
30
30
  #
31
31
  # @param [Hash] headers additional http headers
32
32
  def create(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, "operatingsystem"=>["name", "major", "minor"]}
39
+ # allowed keys are: {"id"=>nil, "operatingsystem"=>["name", "major", "minor", "family", "release_name"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(params = { }, headers = { })