foreman_api 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: {"architecture"=>["name", "operatingsystem_ids"], "id"=>nil}
39
+ # allowed keys are: {"id"=>nil, "architecture"=>["name", "operatingsystem_ids"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(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: {"auth_source_ldap"=>["name", "host", "port", "account", "base_dn", "account_password", "attr_login", "attr_firstname", "attr_lastname", "attr_mail", "onthefly_register", "tls"], "id"=>nil}
39
+ # allowed keys are: {"id"=>nil, "auth_source_ldap"=>["name", "host", "port", "account", "base_dn", "account_password", "attr_login", "attr_firstname", "attr_lastname", "attr_mail", "onthefly_register", "tls"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(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: {"bookmark"=>["name", "controller", "query", "public"], "id"=>nil}
39
+ # allowed keys are: {"id"=>nil, "bookmark"=>["name", "controller", "query", "public"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(params = { }, headers = { })
@@ -26,17 +26,17 @@ 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: {"id"=>nil, "compute_resource"=>["name", "provider", "url", "description", "user", "password", "uuid", "region", "tenant", "server"]}
29
+ # allowed keys are: {"compute_resource"=>["name", "provider", "url", "description", "user", "password", "uuid", "region", "tenant", "server"]}
30
30
  #
31
31
  # @param [Hash] headers additional http headers
32
32
  def create(params = { }, headers = { })
33
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)
34
+ url, params = fill_params_in_url "/api/compute_resources", params
35
+ call(:"post", url, params, headers)
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"]
39
+ # allowed keys are: {"id"=>nil, "compute_resource"=>["name", "provider", "url", "description", "user", "password", "uuid", "region", "tenant", "server"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(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: {"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}
39
+ # allowed keys are: {"id"=>nil, "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"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(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: {"compute_resource_id"=>nil, "image"=>["name", "username", "uuid", "compute_resource_id", "architecture_id", "operatingsystem_id"], "id"=>nil}
39
+ # allowed keys are: {"id"=>nil, "compute_resource_id"=>nil, "image"=>["name", "username", "uuid", "compute_resource_id", "architecture_id", "operatingsystem_id"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(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: {"lookup_key"=>["key", "puppetclass_id", "default_value", "path", "description", "lookup_values_count"], "id"=>nil}
39
+ # allowed keys are: {"id"=>nil, "lookup_key"=>["key", "puppetclass_id", "default_value", "path", "description", "lookup_values_count"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(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, "puppetclass"=>["name"]}
39
+ # allowed keys are: {"puppetclass"=>["name"], "id"=>nil}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(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, "role"=>["name"]}
39
+ # allowed keys are: {"role"=>["name"], "id"=>nil}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(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: {"setting"=>["value"], "id"=>nil}
29
+ # allowed keys are: {"id"=>nil, "setting"=>["value"]}
30
30
  #
31
31
  # @param [Hash] headers additional http headers
32
32
  def update(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: {"subnet"=>["name", "network", "mask", "gateway", "dns_primary", "dns_secondary", "from", "to", "vlanid", "domain_ids", "dhcp_id", "tftp_id", "dns_id"], "id"=>nil}
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"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(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: {"user"=>["login", "firstname", "lastname", "mail", "admin", "password"], "id"=>nil}
39
+ # allowed keys are: {"id"=>nil, "user"=>["login", "firstname", "lastname", "mail", "admin", "password"]}
40
40
  #
41
41
  # @param [Hash] headers additional http headers
42
42
  def update(params = { }, headers = { })
@@ -1,3 +1,3 @@
1
1
  module ForemanApi
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
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.0.9
4
+ version: 0.0.10
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-01-11 00:00:00.000000000 Z
12
+ date: 2013-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: apipie-rails