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.
- data/.yardopts +4 -0
- data/Gemfile +5 -0
- data/README.rdoc +23 -4
- data/doc/ForemanApi/Resources/Architecture.html +902 -0
- data/doc/ForemanApi/Resources/Audit.html +500 -0
- data/doc/ForemanApi/Resources/AuthSourceLdap.html +916 -0
- data/doc/ForemanApi/Resources/Bookmark.html +884 -0
- data/doc/ForemanApi/Resources/CommonParameter.html +902 -0
- data/doc/ForemanApi/Resources/ComputeResource.html +940 -0
- data/doc/ForemanApi/Resources/ConfigTemplate.html +1160 -0
- data/doc/ForemanApi/Resources/Dashboard.html +336 -0
- data/doc/ForemanApi/Resources/Domain.html +914 -0
- data/doc/ForemanApi/Resources/Environment.html +898 -0
- data/doc/ForemanApi/Resources/FactValue.html +375 -0
- data/doc/ForemanApi/Resources/Home.html +417 -0
- data/doc/ForemanApi/Resources/Host.html +1091 -0
- data/doc/ForemanApi/Resources/Hostgroup.html +934 -0
- data/doc/ForemanApi/Resources/Image.html +963 -0
- data/doc/ForemanApi/Resources/LookupKey.html +918 -0
- data/doc/ForemanApi/Resources/Medium.html +920 -0
- data/doc/ForemanApi/Resources/Model.html +910 -0
- data/doc/ForemanApi/Resources/OperatingSystem.html +1057 -0
- data/doc/ForemanApi/Resources/Ptable.html +906 -0
- data/doc/ForemanApi/Resources/Puppetclass.html +898 -0
- data/doc/ForemanApi/Resources/Report.html +625 -0
- data/doc/ForemanApi/Resources/Role.html +872 -0
- data/doc/ForemanApi/Resources/Setting.html +641 -0
- data/doc/ForemanApi/Resources/SmartProxy.html +889 -0
- data/doc/ForemanApi/Resources/Subnet.html +954 -0
- data/doc/ForemanApi/Resources/TemplateKind.html +349 -0
- data/doc/ForemanApi/Resources/User.html +920 -0
- data/doc/ForemanApi/Resources/Usergroup.html +872 -0
- data/doc/ForemanApi/Resources.html +117 -0
- data/doc/ForemanApi.html +117 -0
- data/doc/_index.html +449 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.MIT-LICENSE.html +93 -0
- data/doc/file.README.html +129 -0
- data/doc/file_list.html +58 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +129 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +1300 -0
- data/doc/top-level-namespace.html +112 -0
- data/foreman_api.gemspec +5 -2
- data/lib/foreman_api/base.rb +129 -0
- data/lib/foreman_api/resources/architecture.rb +17 -7
- data/lib/foreman_api/resources/audit.rb +7 -4
- data/lib/foreman_api/resources/auth_source_ldap.rb +35 -7
- data/lib/foreman_api/resources/bookmark.rb +19 -7
- data/lib/foreman_api/resources/common_parameter.rb +17 -7
- data/lib/foreman_api/resources/compute_resource.rb +33 -7
- data/lib/foreman_api/resources/config_template.rb +28 -9
- data/lib/foreman_api/resources/dashboard.rb +3 -3
- data/lib/foreman_api/resources/domain.rb +21 -7
- data/lib/foreman_api/resources/environment.rb +15 -7
- data/lib/foreman_api/resources/fact_value.rb +6 -3
- data/lib/foreman_api/resources/home.rb +2 -4
- data/lib/foreman_api/resources/host.rb +50 -8
- data/lib/foreman_api/resources/hostgroup.rb +33 -7
- data/lib/foreman_api/resources/image.rb +30 -7
- data/lib/foreman_api/resources/lookup_key.rb +25 -7
- data/lib/foreman_api/resources/medium.rb +19 -7
- data/lib/foreman_api/resources/model.rb +21 -7
- data/lib/foreman_api/resources/operating_system.rb +26 -8
- data/lib/foreman_api/resources/ptable.rb +19 -7
- data/lib/foreman_api/resources/puppetclass.rb +15 -7
- data/lib/foreman_api/resources/report.rb +8 -5
- data/lib/foreman_api/resources/role.rb +13 -7
- data/lib/foreman_api/resources/setting.rb +11 -5
- data/lib/foreman_api/resources/smart_proxy.rb +16 -7
- data/lib/foreman_api/resources/subnet.rb +39 -7
- data/lib/foreman_api/resources/template_kind.rb +4 -3
- data/lib/foreman_api/resources/user.rb +26 -7
- data/lib/foreman_api/resources/usergroup.rb +13 -7
- data/lib/foreman_api/rest_client_oauth.rb +19 -0
- data/lib/foreman_api/version.rb +1 -1
- data/lib/foreman_api.rb +6 -10
- metadata +51 -18
@@ -1,12 +1,15 @@
|
|
1
1
|
module ForemanApi
|
2
2
|
module Resources
|
3
|
-
class ConfigTemplate <
|
3
|
+
class ConfigTemplate < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["config_templates"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
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
|
-
#
|
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
|
-
#
|
32
|
+
# @option params [Hash] config_template
|
33
|
+
# allowed keys are:
|
34
|
+
# * audit_comment [String, nil],
|
35
|
+
# * name [String] Template name ,
|
36
|
+
# * operatingsystem_ids [String] Array of operating systems id to associate the template with ,
|
37
|
+
# * snippet [String, nil],
|
38
|
+
# * template [String],
|
39
|
+
# * template_combinations_attributes [String] Array of template combinations (hostgroupid, environmentid) ,
|
40
|
+
# * template_kind_id [String, nil] Not relevant for snippet ,
|
30
41
|
#
|
31
42
|
# @param [Hash] headers additional http headers
|
32
43
|
def create(params = { }, headers = { })
|
@@ -36,7 +47,16 @@ module ForemanApi
|
|
36
47
|
end
|
37
48
|
|
38
49
|
# @param [Hash] params a hash of params to be passed to the service
|
39
|
-
#
|
50
|
+
# @option params [String] id
|
51
|
+
# @option params [Hash] config_template
|
52
|
+
# allowed keys are:
|
53
|
+
# * audit_comment [String, nil],
|
54
|
+
# * name [String] Template name ,
|
55
|
+
# * operatingsystem_ids [String] Array of operating systems id to associate the template with ,
|
56
|
+
# * snippet [String],
|
57
|
+
# * template [String],
|
58
|
+
# * template_combinations_attributes [String] Array of template combinations (hostgroupid, environmentid) ,
|
59
|
+
# * template_kind_id [String, nil] Not relevant for snippet ,
|
40
60
|
#
|
41
61
|
# @param [Hash] headers additional http headers
|
42
62
|
def update(params = { }, headers = { })
|
@@ -46,7 +66,7 @@ module ForemanApi
|
|
46
66
|
end
|
47
67
|
|
48
68
|
# @param [Hash] params a hash of params to be passed to the service
|
49
|
-
#
|
69
|
+
# @option params [String] version Template version
|
50
70
|
#
|
51
71
|
# @param [Hash] headers additional http headers
|
52
72
|
def revision(params = { }, headers = { })
|
@@ -56,7 +76,7 @@ module ForemanApi
|
|
56
76
|
end
|
57
77
|
|
58
78
|
# @param [Hash] params a hash of params to be passed to the service
|
59
|
-
#
|
79
|
+
# @option params [String] id
|
60
80
|
#
|
61
81
|
# @param [Hash] headers additional http headers
|
62
82
|
def destroy(params = { }, headers = { })
|
@@ -66,7 +86,6 @@ module ForemanApi
|
|
66
86
|
end
|
67
87
|
|
68
88
|
# @param [Hash] params a hash of params to be passed to the service
|
69
|
-
# allowed keys are: []
|
70
89
|
#
|
71
90
|
# @param [Hash] headers additional http headers
|
72
91
|
def build_pxe_default(params = { }, headers = { })
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module ForemanApi
|
2
2
|
module Resources
|
3
|
-
class Dashboard <
|
3
|
+
class Dashboard < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["dashboard"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
9
|
+
# @option params [String] search Filter results
|
10
10
|
#
|
11
11
|
# @param [Hash] headers additional http headers
|
12
12
|
def index(params = { }, headers = { })
|
@@ -1,12 +1,15 @@
|
|
1
1
|
module ForemanApi
|
2
2
|
module Resources
|
3
|
-
class Domain <
|
3
|
+
class Domain < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["domains"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
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
|
-
#
|
22
|
+
# @option params [String] id May be numerical id or domain name
|
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
|
-
#
|
32
|
+
# @option params [Hash] domain
|
33
|
+
# allowed keys are:
|
34
|
+
# * dns_id [String, nil] Dns proxy to use within this domain ,
|
35
|
+
# * domain_parameters_attributes [String] Array of parameters (name, value) ,
|
36
|
+
# * fullname [String, nil] Full name describing the domain ,
|
37
|
+
# * name [String] The full dns domain name ,
|
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
|
-
#
|
47
|
+
# @option params [String] id
|
48
|
+
# @option params [Hash] domain
|
49
|
+
# allowed keys are:
|
50
|
+
# * dns_id [String, nil] Dns proxy to use within this domain ,
|
51
|
+
# * domain_parameters_attributes [String] Array of parameters (name, value) ,
|
52
|
+
# * fullname [String, nil] Full name describing the domain ,
|
53
|
+
# * name [String, nil] The full dns domain name ,
|
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
|
-
#
|
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 Environment <
|
3
|
+
class Environment < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["environments"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
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
|
-
#
|
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
|
-
#
|
32
|
+
# @option params [Hash] environment
|
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
|
-
#
|
44
|
+
# @option params [String] id
|
45
|
+
# @option params [Hash] environment
|
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
|
-
#
|
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 FactValue <
|
3
|
+
class FactValue < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["fact_values"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
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 = { })
|
@@ -1,12 +1,11 @@
|
|
1
1
|
module ForemanApi
|
2
2
|
module Resources
|
3
|
-
class Home <
|
3
|
+
class Home < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["home"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
# allowed keys are: []
|
10
9
|
#
|
11
10
|
# @param [Hash] headers additional http headers
|
12
11
|
def index(params = { }, headers = { })
|
@@ -16,7 +15,6 @@ module ForemanApi
|
|
16
15
|
end
|
17
16
|
|
18
17
|
# @param [Hash] params a hash of params to be passed to the service
|
19
|
-
# allowed keys are: []
|
20
18
|
#
|
21
19
|
# @param [Hash] headers additional http headers
|
22
20
|
def status(params = { }, headers = { })
|
@@ -1,12 +1,15 @@
|
|
1
1
|
module ForemanApi
|
2
2
|
module Resources
|
3
|
-
class Host <
|
3
|
+
class Host < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["hosts"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
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
|
-
#
|
22
|
+
# @option params [String] id
|
20
23
|
#
|
21
24
|
# @param [Hash] headers additional http headers
|
22
25
|
def show(params = { }, headers = { })
|
@@ -26,7 +29,26 @@ module ForemanApi
|
|
26
29
|
end
|
27
30
|
|
28
31
|
# @param [Hash] params a hash of params to be passed to the service
|
29
|
-
#
|
32
|
+
# @option params [Hash] host
|
33
|
+
# allowed keys are:
|
34
|
+
# * architecture_id [String],
|
35
|
+
# * domain_id [String],
|
36
|
+
# * environment_id [String],
|
37
|
+
# * host_parameters_attributes [String],
|
38
|
+
# * hostgroup_id [String],
|
39
|
+
# * image_id [String],
|
40
|
+
# * ip [String] Not required if using a subnet with dhcp proxy ,
|
41
|
+
# * mac [String] Not required if its a virtual machine ,
|
42
|
+
# * medium_id [String],
|
43
|
+
# * model_id_id [String],
|
44
|
+
# * name [String],
|
45
|
+
# * operatingsystem_id [String],
|
46
|
+
# * owner_id [String],
|
47
|
+
# * ptable_id [String],
|
48
|
+
# * puppet_ca_proxy_id [String],
|
49
|
+
# * puppet_proxy_id [String],
|
50
|
+
# * sp_subnet_id [String],
|
51
|
+
# * subnet_id [String],
|
30
52
|
#
|
31
53
|
# @param [Hash] headers additional http headers
|
32
54
|
def create(params = { }, headers = { })
|
@@ -36,7 +58,27 @@ module ForemanApi
|
|
36
58
|
end
|
37
59
|
|
38
60
|
# @param [Hash] params a hash of params to be passed to the service
|
39
|
-
#
|
61
|
+
# @option params [String] id
|
62
|
+
# @option params [Hash] host
|
63
|
+
# allowed keys are:
|
64
|
+
# * architecture_id [String],
|
65
|
+
# * domain_id [String],
|
66
|
+
# * environment_id [String],
|
67
|
+
# * host_parameters_attributes [String],
|
68
|
+
# * hostgroup_id [String],
|
69
|
+
# * image_id [String],
|
70
|
+
# * ip [String] Not required if using a subnet with dhcp proxy ,
|
71
|
+
# * mac [String] Not required if its a virtual machine ,
|
72
|
+
# * medium_id [String],
|
73
|
+
# * model_id_id [String],
|
74
|
+
# * name [String],
|
75
|
+
# * operatingsystem_id [String],
|
76
|
+
# * owner_id [String],
|
77
|
+
# * ptable_id [String],
|
78
|
+
# * puppet_ca_proxy_id [String],
|
79
|
+
# * puppet_proxy_id [String],
|
80
|
+
# * sp_subnet_id [String],
|
81
|
+
# * subnet_id [String],
|
40
82
|
#
|
41
83
|
# @param [Hash] headers additional http headers
|
42
84
|
def update(params = { }, headers = { })
|
@@ -46,7 +88,7 @@ module ForemanApi
|
|
46
88
|
end
|
47
89
|
|
48
90
|
# @param [Hash] params a hash of params to be passed to the service
|
49
|
-
#
|
91
|
+
# @option params [String] id
|
50
92
|
#
|
51
93
|
# @param [Hash] headers additional http headers
|
52
94
|
def destroy(params = { }, headers = { })
|
@@ -56,7 +98,7 @@ module ForemanApi
|
|
56
98
|
end
|
57
99
|
|
58
100
|
# @param [Hash] params a hash of params to be passed to the service
|
59
|
-
#
|
101
|
+
# @option params [String] id
|
60
102
|
#
|
61
103
|
# @param [Hash] headers additional http headers
|
62
104
|
def status(params = { }, headers = { })
|
@@ -1,12 +1,15 @@
|
|
1
1
|
module ForemanApi
|
2
2
|
module Resources
|
3
|
-
class Hostgroup <
|
3
|
+
class Hostgroup < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["hostgroups"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
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
|
-
#
|
22
|
+
# @option params [String] id
|
20
23
|
#
|
21
24
|
# @param [Hash] headers additional http headers
|
22
25
|
def show(params = { }, headers = { })
|
@@ -26,7 +29,18 @@ module ForemanApi
|
|
26
29
|
end
|
27
30
|
|
28
31
|
# @param [Hash] params a hash of params to be passed to the service
|
29
|
-
#
|
32
|
+
# @option params [Hash] hostgroup
|
33
|
+
# allowed keys are:
|
34
|
+
# * architecture_id [String],
|
35
|
+
# * domain_id [String],
|
36
|
+
# * environment_id [String],
|
37
|
+
# * medium_id [String],
|
38
|
+
# * name [String],
|
39
|
+
# * operatingsystem_id [String],
|
40
|
+
# * ptable_id [String],
|
41
|
+
# * puppet_ca_proxy_id [String],
|
42
|
+
# * puppet_proxy_id [String],
|
43
|
+
# * subnet_id [String],
|
30
44
|
#
|
31
45
|
# @param [Hash] headers additional http headers
|
32
46
|
def create(params = { }, headers = { })
|
@@ -36,7 +50,19 @@ module ForemanApi
|
|
36
50
|
end
|
37
51
|
|
38
52
|
# @param [Hash] params a hash of params to be passed to the service
|
39
|
-
#
|
53
|
+
# @option params [String] id
|
54
|
+
# @option params [Hash] hostgroup
|
55
|
+
# allowed keys are:
|
56
|
+
# * architecture_id [String],
|
57
|
+
# * domain_id [String],
|
58
|
+
# * environment_id [String],
|
59
|
+
# * medium_id [String],
|
60
|
+
# * name [String],
|
61
|
+
# * operatingsystem_id [String],
|
62
|
+
# * ptable_id [String],
|
63
|
+
# * puppet_ca_proxy_id [String],
|
64
|
+
# * puppet_proxy_id [String],
|
65
|
+
# * subnet_id [String],
|
40
66
|
#
|
41
67
|
# @param [Hash] headers additional http headers
|
42
68
|
def update(params = { }, headers = { })
|
@@ -46,7 +72,7 @@ module ForemanApi
|
|
46
72
|
end
|
47
73
|
|
48
74
|
# @param [Hash] params a hash of params to be passed to the service
|
49
|
-
#
|
75
|
+
# @option params [String] id
|
50
76
|
#
|
51
77
|
# @param [Hash] headers additional http headers
|
52
78
|
def destroy(params = { }, headers = { })
|
@@ -1,12 +1,16 @@
|
|
1
1
|
module ForemanApi
|
2
2
|
module Resources
|
3
|
-
class Image <
|
3
|
+
class Image < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["images"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
9
|
+
# @option params [String] compute_resource_id
|
10
|
+
# @option params [String] order Sort results
|
11
|
+
# @option params [String] page Paginate results
|
12
|
+
# @option params [String] per_page Number of entries per request
|
13
|
+
# @option params [String] search Filter results
|
10
14
|
#
|
11
15
|
# @param [Hash] headers additional http headers
|
12
16
|
def index(params = { }, headers = { })
|
@@ -16,7 +20,8 @@ module ForemanApi
|
|
16
20
|
end
|
17
21
|
|
18
22
|
# @param [Hash] params a hash of params to be passed to the service
|
19
|
-
#
|
23
|
+
# @option params [String] id
|
24
|
+
# @option params [String] compute_resource_id
|
20
25
|
#
|
21
26
|
# @param [Hash] headers additional http headers
|
22
27
|
def show(params = { }, headers = { })
|
@@ -26,7 +31,15 @@ module ForemanApi
|
|
26
31
|
end
|
27
32
|
|
28
33
|
# @param [Hash] params a hash of params to be passed to the service
|
29
|
-
#
|
34
|
+
# @option params [String] compute_resource_id
|
35
|
+
# @option params [Hash] image
|
36
|
+
# allowed keys are:
|
37
|
+
# * architecture_id [String],
|
38
|
+
# * compute_resource_id [String],
|
39
|
+
# * name [String],
|
40
|
+
# * operatingsystem_id [String],
|
41
|
+
# * username [String],
|
42
|
+
# * uuid [String],
|
30
43
|
#
|
31
44
|
# @param [Hash] headers additional http headers
|
32
45
|
def create(params = { }, headers = { })
|
@@ -36,7 +49,16 @@ module ForemanApi
|
|
36
49
|
end
|
37
50
|
|
38
51
|
# @param [Hash] params a hash of params to be passed to the service
|
39
|
-
#
|
52
|
+
# @option params [String] id
|
53
|
+
# @option params [String] compute_resource_id
|
54
|
+
# @option params [Hash] image
|
55
|
+
# allowed keys are:
|
56
|
+
# * architecture_id [String],
|
57
|
+
# * compute_resource_id [String],
|
58
|
+
# * name [String],
|
59
|
+
# * operatingsystem_id [String],
|
60
|
+
# * username [String],
|
61
|
+
# * uuid [String],
|
40
62
|
#
|
41
63
|
# @param [Hash] headers additional http headers
|
42
64
|
def update(params = { }, headers = { })
|
@@ -46,7 +68,8 @@ module ForemanApi
|
|
46
68
|
end
|
47
69
|
|
48
70
|
# @param [Hash] params a hash of params to be passed to the service
|
49
|
-
#
|
71
|
+
# @option params [String] id
|
72
|
+
# @option params [String] compute_resource_id
|
50
73
|
#
|
51
74
|
# @param [Hash] headers additional http headers
|
52
75
|
def destroy(params = { }, headers = { })
|
@@ -1,12 +1,15 @@
|
|
1
1
|
module ForemanApi
|
2
2
|
module Resources
|
3
|
-
class LookupKey <
|
3
|
+
class LookupKey < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["lookup_keys"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
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
|
-
#
|
22
|
+
# @option params [String] id
|
20
23
|
#
|
21
24
|
# @param [Hash] headers additional http headers
|
22
25
|
def show(params = { }, headers = { })
|
@@ -26,7 +29,14 @@ module ForemanApi
|
|
26
29
|
end
|
27
30
|
|
28
31
|
# @param [Hash] params a hash of params to be passed to the service
|
29
|
-
#
|
32
|
+
# @option params [Hash] lookup_key
|
33
|
+
# allowed keys are:
|
34
|
+
# * default_value [String],
|
35
|
+
# * description [String],
|
36
|
+
# * key [String],
|
37
|
+
# * lookup_values_count [String],
|
38
|
+
# * path [String],
|
39
|
+
# * puppetclass_id [String],
|
30
40
|
#
|
31
41
|
# @param [Hash] headers additional http headers
|
32
42
|
def create(params = { }, headers = { })
|
@@ -36,7 +46,15 @@ module ForemanApi
|
|
36
46
|
end
|
37
47
|
|
38
48
|
# @param [Hash] params a hash of params to be passed to the service
|
39
|
-
#
|
49
|
+
# @option params [String] id
|
50
|
+
# @option params [Hash] lookup_key
|
51
|
+
# allowed keys are:
|
52
|
+
# * default_value [String],
|
53
|
+
# * description [String],
|
54
|
+
# * key [String],
|
55
|
+
# * lookup_values_count [String],
|
56
|
+
# * path [String],
|
57
|
+
# * puppetclass_id [String],
|
40
58
|
#
|
41
59
|
# @param [Hash] headers additional http headers
|
42
60
|
def update(params = { }, headers = { })
|
@@ -46,7 +64,7 @@ module ForemanApi
|
|
46
64
|
end
|
47
65
|
|
48
66
|
# @param [Hash] params a hash of params to be passed to the service
|
49
|
-
#
|
67
|
+
# @option params [String] id
|
50
68
|
#
|
51
69
|
# @param [Hash] headers additional http headers
|
52
70
|
def destroy(params = { }, headers = { })
|
@@ -1,12 +1,15 @@
|
|
1
1
|
module ForemanApi
|
2
2
|
module Resources
|
3
|
-
class Medium <
|
3
|
+
class Medium < ForemanApi::Base
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["media"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
#
|
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
|
-
#
|
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
|
-
#
|
32
|
+
# @option params [Hash] medium
|
33
|
+
# allowed keys are:
|
34
|
+
# * name [String] Name of media ,
|
35
|
+
# * os_family [String] The family that the operating system belongs to. available families: archlinux debian redhat solaris suse windows ,
|
36
|
+
# * path [String] The path to the medium, can be a url or a valid nfs server (exclusive of the architecture). for example http://mirror.averse.net/centos/$version/os/$arch where $arch will be substituted for the host's actual os architecture and $version, $major and $minor will be substituted for the version of the operating system. solaris and debian media may also use $release. ,
|
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
|
-
#
|
46
|
+
# @option params [String] id
|
47
|
+
# @option params [Hash] medium
|
48
|
+
# allowed keys are:
|
49
|
+
# * name [String] Name of media ,
|
50
|
+
# * os_family [String, nil] The family that the operating system belongs to. available families: archlinux debian redhat solaris suse windows ,
|
51
|
+
# * path [String] The path to the medium, can be a url or a valid nfs server (exclusive of the architecture). for example http://mirror.averse.net/centos/$version/os/$arch where $arch will be substituted for the host's actual os architecture and $version, $major and $minor will be substituted for the version of the operating system. solaris and debian media may also use $release. ,
|
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
|
-
#
|
61
|
+
# @option params [String] id
|
50
62
|
#
|
51
63
|
# @param [Hash] headers additional http headers
|
52
64
|
def destroy(params = { }, headers = { })
|