foreman_api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Gemfile +2 -0
- data/Rakefile +0 -1
- data/doc/ForemanApi.html +5 -5
- data/doc/ForemanApi/Resources.html +6 -6
- data/doc/ForemanApi/Resources/Architecture.html +260 -127
- data/doc/ForemanApi/Resources/Audit.html +118 -51
- data/doc/ForemanApi/Resources/AuthSourceLdap.html +314 -163
- data/doc/ForemanApi/Resources/Bookmark.html +266 -131
- data/doc/ForemanApi/Resources/CommonParameter.html +260 -127
- data/doc/ForemanApi/Resources/ComputeResource.html +314 -165
- data/doc/ForemanApi/Resources/ConfigTemplate.html +387 -195
- data/doc/ForemanApi/Resources/Dashboard.html +53 -27
- data/doc/ForemanApi/Resources/Domain.html +275 -137
- data/doc/ForemanApi/Resources/Environment.html +254 -123
- data/doc/ForemanApi/Resources/FactValue.html +75 -32
- data/doc/ForemanApi/Resources/Home.html +92 -43
- data/doc/ForemanApi/Resources/Host.html +401 -212
- data/doc/ForemanApi/Resources/HostClass.html +698 -0
- data/doc/ForemanApi/Resources/Hostgroup.html +308 -159
- data/doc/ForemanApi/Resources/HostgroupClass.html +712 -0
- data/doc/ForemanApi/Resources/Image.html +284 -143
- data/doc/ForemanApi/Resources/LookupKey.html +295 -140
- data/doc/ForemanApi/Resources/Medium.html +278 -145
- data/doc/ForemanApi/Resources/Model.html +272 -135
- data/doc/ForemanApi/Resources/OperatingSystem.html +323 -160
- data/doc/ForemanApi/Resources/Parameter.html +1512 -0
- data/doc/ForemanApi/Resources/Ptable.html +266 -131
- data/doc/ForemanApi/Resources/Puppetclass.html +295 -131
- data/doc/ForemanApi/Resources/Report.html +311 -71
- data/doc/ForemanApi/Resources/Role.html +248 -119
- data/doc/ForemanApi/Resources/Setting.html +156 -76
- data/doc/ForemanApi/Resources/SmartProxy.html +257 -125
- data/doc/ForemanApi/Resources/Subnet.html +332 -175
- data/doc/ForemanApi/Resources/TemplateCombination.html +826 -0
- data/doc/ForemanApi/Resources/TemplateKind.html +56 -29
- data/doc/ForemanApi/Resources/User.html +287 -145
- data/doc/ForemanApi/Resources/Usergroup.html +272 -115
- data/doc/_index.html +32 -4
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +10 -0
- data/doc/file.MIT-LICENSE.html +29 -24
- data/doc/file.README.html +60 -59
- data/doc/frames.html +1 -1
- data/doc/index.html +60 -59
- data/doc/method_list.html +434 -266
- data/doc/top-level-namespace.html +3 -3
- data/lib/foreman_api.rb +0 -13
- data/lib/foreman_api/base.rb +77 -7
- data/lib/foreman_api/documentation.json +1 -1
- data/lib/foreman_api/resources/architecture.rb +27 -32
- data/lib/foreman_api/resources/audit.rb +9 -10
- data/lib/foreman_api/resources/auth_source_ldap.rb +47 -52
- data/lib/foreman_api/resources/bookmark.rb +31 -36
- data/lib/foreman_api/resources/common_parameter.rb +27 -32
- data/lib/foreman_api/resources/compute_resource.rb +43 -48
- data/lib/foreman_api/resources/config_template.rb +43 -50
- data/lib/foreman_api/resources/dashboard.rb +4 -5
- data/lib/foreman_api/resources/domain.rb +30 -35
- data/lib/foreman_api/resources/environment.rb +25 -30
- data/lib/foreman_api/resources/fact_value.rb +5 -5
- data/lib/foreman_api/resources/home.rb +7 -9
- data/lib/foreman_api/resources/host.rb +63 -69
- data/lib/foreman_api/resources/host_class.rb +39 -0
- data/lib/foreman_api/resources/hostgroup.rb +43 -48
- data/lib/foreman_api/resources/hostgroup_class.rb +40 -0
- data/lib/foreman_api/resources/image.rb +40 -45
- data/lib/foreman_api/resources/lookup_key.rb +36 -40
- data/lib/foreman_api/resources/medium.rb +29 -34
- data/lib/foreman_api/resources/model.rb +31 -36
- data/lib/foreman_api/resources/operating_system.rb +39 -45
- data/lib/foreman_api/resources/parameter.rb +96 -0
- data/lib/foreman_api/resources/ptable.rb +29 -34
- data/lib/foreman_api/resources/puppetclass.rb +31 -34
- data/lib/foreman_api/resources/report.rb +17 -20
- data/lib/foreman_api/resources/role.rb +25 -30
- data/lib/foreman_api/resources/setting.rb +15 -18
- data/lib/foreman_api/resources/smart_proxy.rb +27 -32
- data/lib/foreman_api/resources/subnet.rb +47 -52
- data/lib/foreman_api/resources/template_combination.rb +21 -25
- data/lib/foreman_api/resources/template_kind.rb +4 -5
- data/lib/foreman_api/resources/user.rb +36 -41
- data/lib/foreman_api/resources/usergroup.rb +25 -30
- data/lib/foreman_api/version.rb +1 -1
- metadata +10 -2
@@ -4,7 +4,7 @@ module ForemanApi
|
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["models"]
|
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
10
|
# @option params [String] page Paginate results
|
@@ -12,61 +12,56 @@ module ForemanApi
|
|
12
12
|
# @option params [String] search Filter results
|
13
13
|
#
|
14
14
|
# @param [Hash] headers additional http headers
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
call(:"get", url, params, headers)
|
15
|
+
# @return [Array] First item: parsed data; second item: raw body
|
16
|
+
def index(params = {}, headers = {})
|
17
|
+
perform_call(__method__, params, headers)
|
19
18
|
end
|
20
19
|
|
21
20
|
# @param [Hash] params a hash of params to be passed to the service
|
22
|
-
# @option params [String] id
|
21
|
+
# @option params [String] id
|
23
22
|
#
|
24
23
|
# @param [Hash] headers additional http headers
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
call(:"get", url, params, headers)
|
24
|
+
# @return [Array] First item: parsed data; second item: raw body
|
25
|
+
def show(params = {}, headers = {})
|
26
|
+
perform_call(__method__, params, headers)
|
29
27
|
end
|
30
28
|
|
31
29
|
# @param [Hash] params a hash of params to be passed to the service
|
32
|
-
# @option params [Hash] model
|
33
|
-
# allowed keys are:
|
34
|
-
# * hardware_model [String]
|
35
|
-
# * info [String]
|
36
|
-
# * name [String]
|
37
|
-
# * vendor_class [String]
|
30
|
+
# @option params [Hash] model
|
31
|
+
# allowed keys are:
|
32
|
+
# * hardware_model [String]
|
33
|
+
# * info [String]
|
34
|
+
# * name [String]
|
35
|
+
# * vendor_class [String]
|
38
36
|
#
|
39
37
|
# @param [Hash] headers additional http headers
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
call(:"post", url, params, headers)
|
38
|
+
# @return [Array] First item: parsed data; second item: raw body
|
39
|
+
def create(params = {}, headers = {})
|
40
|
+
perform_call(__method__, params, headers)
|
44
41
|
end
|
45
42
|
|
46
43
|
# @param [Hash] params a hash of params to be passed to the service
|
47
|
-
# @option params [String] id
|
48
|
-
# @option params [Hash] model
|
49
|
-
# allowed keys are:
|
50
|
-
# * hardware_model [String]
|
51
|
-
# * info [String]
|
52
|
-
# * name [String]
|
53
|
-
# * vendor_class [String]
|
44
|
+
# @option params [String] id
|
45
|
+
# @option params [Hash] model
|
46
|
+
# allowed keys are:
|
47
|
+
# * hardware_model [String]
|
48
|
+
# * info [String]
|
49
|
+
# * name [String]
|
50
|
+
# * vendor_class [String]
|
54
51
|
#
|
55
52
|
# @param [Hash] headers additional http headers
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
call(:"put", url, params, headers)
|
53
|
+
# @return [Array] First item: parsed data; second item: raw body
|
54
|
+
def update(params = {}, headers = {})
|
55
|
+
perform_call(__method__, params, headers)
|
60
56
|
end
|
61
57
|
|
62
58
|
# @param [Hash] params a hash of params to be passed to the service
|
63
|
-
# @option params [String] id
|
59
|
+
# @option params [String] id
|
64
60
|
#
|
65
61
|
# @param [Hash] headers additional http headers
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
call(:"delete", url, params, headers)
|
62
|
+
# @return [Array] First item: parsed data; second item: raw body
|
63
|
+
def destroy(params = {}, headers = {})
|
64
|
+
perform_call(__method__, params, headers)
|
70
65
|
end
|
71
66
|
|
72
67
|
end
|
@@ -4,7 +4,7 @@ module ForemanApi
|
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["operatingsystems"]
|
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
10
|
# @option params [String] page Paginate results
|
@@ -12,75 +12,69 @@ module ForemanApi
|
|
12
12
|
# @option params [String] search Filter results
|
13
13
|
#
|
14
14
|
# @param [Hash] headers additional http headers
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
call(:"get", url, params, headers)
|
15
|
+
# @return [Array] First item: parsed data; second item: raw body
|
16
|
+
def index(params = {}, headers = {})
|
17
|
+
perform_call(__method__, params, headers)
|
19
18
|
end
|
20
19
|
|
21
20
|
# @param [Hash] params a hash of params to be passed to the service
|
22
|
-
# @option params [String] id
|
21
|
+
# @option params [String] id
|
23
22
|
#
|
24
23
|
# @param [Hash] headers additional http headers
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
call(:"get", url, params, headers)
|
24
|
+
# @return [Array] First item: parsed data; second item: raw body
|
25
|
+
def show(params = {}, headers = {})
|
26
|
+
perform_call(__method__, params, headers)
|
29
27
|
end
|
30
28
|
|
31
29
|
# @param [Hash] params a hash of params to be passed to the service
|
32
|
-
# @option params [Hash] operatingsystem
|
33
|
-
# allowed keys are:
|
34
|
-
# * family [String]
|
35
|
-
# * major [String]
|
36
|
-
# * minor [String]
|
37
|
-
# * name [String]
|
38
|
-
# * release_name [String]
|
30
|
+
# @option params [Hash] operatingsystem
|
31
|
+
# allowed keys are:
|
32
|
+
# * family [String]
|
33
|
+
# * major [String]
|
34
|
+
# * minor [String]
|
35
|
+
# * name [String]
|
36
|
+
# * release_name [String]
|
39
37
|
#
|
40
38
|
# @param [Hash] headers additional http headers
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
call(:"post", url, params, headers)
|
39
|
+
# @return [Array] First item: parsed data; second item: raw body
|
40
|
+
def create(params = {}, headers = {})
|
41
|
+
perform_call(__method__, params, headers)
|
45
42
|
end
|
46
43
|
|
47
44
|
# @param [Hash] params a hash of params to be passed to the service
|
48
|
-
# @option params [String] id
|
49
|
-
# @option params [Hash] operatingsystem
|
50
|
-
# allowed keys are:
|
51
|
-
# * family [String]
|
52
|
-
# * major [String]
|
53
|
-
# * minor [String]
|
54
|
-
# * name [String]
|
55
|
-
# * release_name [String]
|
45
|
+
# @option params [String] id
|
46
|
+
# @option params [Hash] operatingsystem
|
47
|
+
# allowed keys are:
|
48
|
+
# * family [String]
|
49
|
+
# * major [String]
|
50
|
+
# * minor [String]
|
51
|
+
# * name [String]
|
52
|
+
# * release_name [String]
|
56
53
|
#
|
57
54
|
# @param [Hash] headers additional http headers
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
call(:"put", url, params, headers)
|
55
|
+
# @return [Array] First item: parsed data; second item: raw body
|
56
|
+
def update(params = {}, headers = {})
|
57
|
+
perform_call(__method__, params, headers)
|
62
58
|
end
|
63
59
|
|
64
60
|
# @param [Hash] params a hash of params to be passed to the service
|
65
|
-
# @option params [String] id
|
61
|
+
# @option params [String] id
|
66
62
|
#
|
67
63
|
# @param [Hash] headers additional http headers
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
call(:"delete", url, params, headers)
|
64
|
+
# @return [Array] First item: parsed data; second item: raw body
|
65
|
+
def destroy(params = {}, headers = {})
|
66
|
+
perform_call(__method__, params, headers)
|
72
67
|
end
|
73
68
|
|
74
69
|
# @param [Hash] params a hash of params to be passed to the service
|
75
|
-
# @option params [String] id
|
76
|
-
# @option params [String] architecture
|
77
|
-
# @option params [String] medium
|
70
|
+
# @option params [String] id
|
71
|
+
# @option params [String] architecture
|
72
|
+
# @option params [String] medium
|
78
73
|
#
|
79
74
|
# @param [Hash] headers additional http headers
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
call(:"get", url, params, headers)
|
75
|
+
# @return [Array] First item: parsed data; second item: raw body
|
76
|
+
def bootfiles(params = {}, headers = {})
|
77
|
+
perform_call(__method__, params, headers)
|
84
78
|
end
|
85
79
|
|
86
80
|
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
module ForemanApi
|
2
|
+
module Resources
|
3
|
+
class Parameter < ForemanApi::Base
|
4
|
+
def self.doc
|
5
|
+
@doc ||= ForemanApi.doc['resources']["parameters"]
|
6
|
+
end
|
7
|
+
|
8
|
+
# @param [Hash] params a hash of params to be passed to the service
|
9
|
+
# @option params [String] domain_id Id of domain
|
10
|
+
# @option params [String] host_id Id of host
|
11
|
+
# @option params [String] hostgroup_id Id of hostgroup
|
12
|
+
# @option params [String] operatingsystem_id Id of operating system
|
13
|
+
# @option params [String] page Paginate results
|
14
|
+
# @option params [String] per_page Number of entries per request
|
15
|
+
#
|
16
|
+
# @param [Hash] headers additional http headers
|
17
|
+
# @return [Array] First item: parsed data; second item: raw body
|
18
|
+
def index(params = {}, headers = {})
|
19
|
+
perform_call(__method__, params, headers)
|
20
|
+
end
|
21
|
+
|
22
|
+
# @param [Hash] params a hash of params to be passed to the service
|
23
|
+
# @option params [String] id Id of parameter
|
24
|
+
# @option params [String] domain_id Id of domain
|
25
|
+
# @option params [String] host_id Id of host
|
26
|
+
# @option params [String] hostgroup_id Id of hostgroup
|
27
|
+
# @option params [String] operatingsystem_id Id of operating system
|
28
|
+
#
|
29
|
+
# @param [Hash] headers additional http headers
|
30
|
+
# @return [Array] First item: parsed data; second item: raw body
|
31
|
+
def show(params = {}, headers = {})
|
32
|
+
perform_call(__method__, params, headers)
|
33
|
+
end
|
34
|
+
|
35
|
+
# @param [Hash] params a hash of params to be passed to the service
|
36
|
+
# @option params [String] id Id of parameter
|
37
|
+
# @option params [String] domain_id Id of domain
|
38
|
+
# @option params [String] host_id Id of host
|
39
|
+
# @option params [String] hostgroup_id Id of hostgroup
|
40
|
+
# @option params [String] operatingsystem_id Id of operating system
|
41
|
+
# @option params [Hash] parameter
|
42
|
+
# allowed keys are:
|
43
|
+
# * name [String]
|
44
|
+
# * value [String]
|
45
|
+
#
|
46
|
+
# @param [Hash] headers additional http headers
|
47
|
+
# @return [Array] First item: parsed data; second item: raw body
|
48
|
+
def create(params = {}, headers = {})
|
49
|
+
perform_call(__method__, params, headers)
|
50
|
+
end
|
51
|
+
|
52
|
+
# @param [Hash] params a hash of params to be passed to the service
|
53
|
+
# @option params [String] id Id of parameter
|
54
|
+
# @option params [String] domain_id Id of domain
|
55
|
+
# @option params [String] host_id Id of host
|
56
|
+
# @option params [String] hostgroup_id Id of hostgroup
|
57
|
+
# @option params [String] operatingsystem_id Id of operating system
|
58
|
+
# @option params [Hash] parameter
|
59
|
+
# allowed keys are:
|
60
|
+
# * name [String]
|
61
|
+
# * value [String]
|
62
|
+
#
|
63
|
+
# @param [Hash] headers additional http headers
|
64
|
+
# @return [Array] First item: parsed data; second item: raw body
|
65
|
+
def update(params = {}, headers = {})
|
66
|
+
perform_call(__method__, params, headers)
|
67
|
+
end
|
68
|
+
|
69
|
+
# @param [Hash] params a hash of params to be passed to the service
|
70
|
+
# @option params [String] id Id of parameter
|
71
|
+
# @option params [String] domain_id Id of domain
|
72
|
+
# @option params [String] host_id Id of host
|
73
|
+
# @option params [String] hostgroup_id Id of hostgroup
|
74
|
+
# @option params [String] operatingsystem_id Id of operating system
|
75
|
+
#
|
76
|
+
# @param [Hash] headers additional http headers
|
77
|
+
# @return [Array] First item: parsed data; second item: raw body
|
78
|
+
def destroy(params = {}, headers = {})
|
79
|
+
perform_call(__method__, params, headers)
|
80
|
+
end
|
81
|
+
|
82
|
+
# @param [Hash] params a hash of params to be passed to the service
|
83
|
+
# @option params [Object] domain_id Part of +/api/domain/:domain_id/parameters+ path
|
84
|
+
# @option params [Object] host_id Part of +/api/host/:host_id/parameters+ path
|
85
|
+
# @option params [Object] hostgroup_id Part of +/api/hostgroup/:hostgroup_id/parameters+ path
|
86
|
+
# @option params [Object] operatingsystem_id Part of +/api/operatingsystem/:operatingsystem_id/parameters+ path
|
87
|
+
#
|
88
|
+
# @param [Hash] headers additional http headers
|
89
|
+
# @return [Array] First item: parsed data; second item: raw body
|
90
|
+
def reset(params = {}, headers = {})
|
91
|
+
perform_call(__method__, params, headers)
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -4,7 +4,7 @@ module ForemanApi
|
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["ptables"]
|
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
10
|
# @option params [String] page Paginate results
|
@@ -12,59 +12,54 @@ module ForemanApi
|
|
12
12
|
# @option params [String] search Filter results
|
13
13
|
#
|
14
14
|
# @param [Hash] headers additional http headers
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
call(:"get", url, params, headers)
|
15
|
+
# @return [Array] First item: parsed data; second item: raw body
|
16
|
+
def index(params = {}, headers = {})
|
17
|
+
perform_call(__method__, params, headers)
|
19
18
|
end
|
20
19
|
|
21
20
|
# @param [Hash] params a hash of params to be passed to the service
|
22
|
-
# @option params [String] id
|
21
|
+
# @option params [String] id
|
23
22
|
#
|
24
23
|
# @param [Hash] headers additional http headers
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
call(:"get", url, params, headers)
|
24
|
+
# @return [Array] First item: parsed data; second item: raw body
|
25
|
+
def show(params = {}, headers = {})
|
26
|
+
perform_call(__method__, params, headers)
|
29
27
|
end
|
30
28
|
|
31
29
|
# @param [Hash] params a hash of params to be passed to the service
|
32
|
-
# @option params [Hash] ptable
|
33
|
-
# allowed keys are:
|
34
|
-
# * layout [String]
|
35
|
-
# * name [String]
|
36
|
-
# * os_family [String]
|
30
|
+
# @option params [Hash] ptable
|
31
|
+
# allowed keys are:
|
32
|
+
# * layout [String]
|
33
|
+
# * name [String]
|
34
|
+
# * os_family [String]
|
37
35
|
#
|
38
36
|
# @param [Hash] headers additional http headers
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
call(:"post", url, params, headers)
|
37
|
+
# @return [Array] First item: parsed data; second item: raw body
|
38
|
+
def create(params = {}, headers = {})
|
39
|
+
perform_call(__method__, params, headers)
|
43
40
|
end
|
44
41
|
|
45
42
|
# @param [Hash] params a hash of params to be passed to the service
|
46
|
-
# @option params [String] id
|
47
|
-
# @option params [Hash] ptable
|
48
|
-
# allowed keys are:
|
49
|
-
# * layout [String]
|
50
|
-
# * name [String]
|
51
|
-
# * os_family [String]
|
43
|
+
# @option params [String] id
|
44
|
+
# @option params [Hash] ptable
|
45
|
+
# allowed keys are:
|
46
|
+
# * layout [String]
|
47
|
+
# * name [String]
|
48
|
+
# * os_family [String]
|
52
49
|
#
|
53
50
|
# @param [Hash] headers additional http headers
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
call(:"put", url, params, headers)
|
51
|
+
# @return [Array] First item: parsed data; second item: raw body
|
52
|
+
def update(params = {}, headers = {})
|
53
|
+
perform_call(__method__, params, headers)
|
58
54
|
end
|
59
55
|
|
60
56
|
# @param [Hash] params a hash of params to be passed to the service
|
61
|
-
# @option params [String] id
|
57
|
+
# @option params [String] id
|
62
58
|
#
|
63
59
|
# @param [Hash] headers additional http headers
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
call(:"delete", url, params, headers)
|
60
|
+
# @return [Array] First item: parsed data; second item: raw body
|
61
|
+
def destroy(params = {}, headers = {})
|
62
|
+
perform_call(__method__, params, headers)
|
68
63
|
end
|
69
64
|
|
70
65
|
end
|
@@ -4,63 +4,60 @@ module ForemanApi
|
|
4
4
|
def self.doc
|
5
5
|
@doc ||= ForemanApi.doc['resources']["puppetclasses"]
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
|
-
# @option params [String]
|
10
|
-
# @option params [String]
|
11
|
-
# @option params [String]
|
12
|
-
# @option params [String] search Filter results
|
9
|
+
# @option params [String] environment_id Id of nested environment
|
10
|
+
# @option params [String] host_id Id of nested host
|
11
|
+
# @option params [String] hostgroup_id Id of nested hostgroup
|
13
12
|
#
|
14
13
|
# @param [Hash] headers additional http headers
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
call(:"get", url, params, headers)
|
14
|
+
# @return [Array] First item: parsed data; second item: raw body
|
15
|
+
def index(params = {}, headers = {})
|
16
|
+
perform_call(__method__, params, headers)
|
19
17
|
end
|
20
18
|
|
21
19
|
# @param [Hash] params a hash of params to be passed to the service
|
22
|
-
# @option params [String] id
|
20
|
+
# @option params [String] id Id of puppetclass
|
21
|
+
# @option params [String] environment_id Id of nested environment
|
22
|
+
# @option params [String] host_id Id of nested host
|
23
|
+
# @option params [String] hostgroup_id Id of nested hostgroup
|
23
24
|
#
|
24
25
|
# @param [Hash] headers additional http headers
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
call(:"get", url, params, headers)
|
26
|
+
# @return [Array] First item: parsed data; second item: raw body
|
27
|
+
def show(params = {}, headers = {})
|
28
|
+
perform_call(__method__, params, headers)
|
29
29
|
end
|
30
30
|
|
31
31
|
# @param [Hash] params a hash of params to be passed to the service
|
32
|
-
# @option params [Hash] puppetclass
|
33
|
-
# allowed keys are:
|
34
|
-
# * name [String]
|
32
|
+
# @option params [Hash] puppetclass
|
33
|
+
# allowed keys are:
|
34
|
+
# * name [String]
|
35
35
|
#
|
36
36
|
# @param [Hash] headers additional http headers
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
call(:"post", url, params, headers)
|
37
|
+
# @return [Array] First item: parsed data; second item: raw body
|
38
|
+
def create(params = {}, headers = {})
|
39
|
+
perform_call(__method__, params, headers)
|
41
40
|
end
|
42
41
|
|
43
42
|
# @param [Hash] params a hash of params to be passed to the service
|
44
|
-
# @option params [String] id
|
45
|
-
# @option params [Hash] puppetclass
|
46
|
-
# allowed keys are:
|
47
|
-
# * name [String]
|
43
|
+
# @option params [String] id
|
44
|
+
# @option params [Hash] puppetclass
|
45
|
+
# allowed keys are:
|
46
|
+
# * name [String]
|
48
47
|
#
|
49
48
|
# @param [Hash] headers additional http headers
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
call(:"put", url, params, headers)
|
49
|
+
# @return [Array] First item: parsed data; second item: raw body
|
50
|
+
def update(params = {}, headers = {})
|
51
|
+
perform_call(__method__, params, headers)
|
54
52
|
end
|
55
53
|
|
56
54
|
# @param [Hash] params a hash of params to be passed to the service
|
57
|
-
# @option params [String] id
|
55
|
+
# @option params [String] id
|
58
56
|
#
|
59
57
|
# @param [Hash] headers additional http headers
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
call(:"delete", url, params, headers)
|
58
|
+
# @return [Array] First item: parsed data; second item: raw body
|
59
|
+
def destroy(params = {}, headers = {})
|
60
|
+
perform_call(__method__, params, headers)
|
64
61
|
end
|
65
62
|
|
66
63
|
end
|