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.
- data/lib/foreman_api/documentation.json +1 -1
- data/lib/foreman_api/resources/architecture.rb +1 -1
- data/lib/foreman_api/resources/auth_source_ldap.rb +1 -1
- data/lib/foreman_api/resources/bookmark.rb +1 -1
- data/lib/foreman_api/resources/compute_resource.rb +4 -4
- data/lib/foreman_api/resources/host.rb +1 -1
- data/lib/foreman_api/resources/image.rb +1 -1
- data/lib/foreman_api/resources/lookup_key.rb +1 -1
- data/lib/foreman_api/resources/puppetclass.rb +1 -1
- data/lib/foreman_api/resources/role.rb +1 -1
- data/lib/foreman_api/resources/setting.rb +1 -1
- data/lib/foreman_api/resources/subnet.rb +1 -1
- data/lib/foreman_api/resources/user.rb +1 -1
- data/lib/foreman_api/version.rb +1 -1
- metadata +2 -2
@@ -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"]
|
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"]
|
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"]
|
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: {"
|
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
|
35
|
-
call(:"
|
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:
|
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"]
|
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"]
|
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"]
|
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: {"
|
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: {"
|
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"]
|
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"]
|
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"]
|
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 = { })
|
data/lib/foreman_api/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2013-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: apipie-rails
|