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.
Files changed (85) hide show
  1. data/.gitignore +3 -0
  2. data/Gemfile +2 -0
  3. data/Rakefile +0 -1
  4. data/doc/ForemanApi.html +5 -5
  5. data/doc/ForemanApi/Resources.html +6 -6
  6. data/doc/ForemanApi/Resources/Architecture.html +260 -127
  7. data/doc/ForemanApi/Resources/Audit.html +118 -51
  8. data/doc/ForemanApi/Resources/AuthSourceLdap.html +314 -163
  9. data/doc/ForemanApi/Resources/Bookmark.html +266 -131
  10. data/doc/ForemanApi/Resources/CommonParameter.html +260 -127
  11. data/doc/ForemanApi/Resources/ComputeResource.html +314 -165
  12. data/doc/ForemanApi/Resources/ConfigTemplate.html +387 -195
  13. data/doc/ForemanApi/Resources/Dashboard.html +53 -27
  14. data/doc/ForemanApi/Resources/Domain.html +275 -137
  15. data/doc/ForemanApi/Resources/Environment.html +254 -123
  16. data/doc/ForemanApi/Resources/FactValue.html +75 -32
  17. data/doc/ForemanApi/Resources/Home.html +92 -43
  18. data/doc/ForemanApi/Resources/Host.html +401 -212
  19. data/doc/ForemanApi/Resources/HostClass.html +698 -0
  20. data/doc/ForemanApi/Resources/Hostgroup.html +308 -159
  21. data/doc/ForemanApi/Resources/HostgroupClass.html +712 -0
  22. data/doc/ForemanApi/Resources/Image.html +284 -143
  23. data/doc/ForemanApi/Resources/LookupKey.html +295 -140
  24. data/doc/ForemanApi/Resources/Medium.html +278 -145
  25. data/doc/ForemanApi/Resources/Model.html +272 -135
  26. data/doc/ForemanApi/Resources/OperatingSystem.html +323 -160
  27. data/doc/ForemanApi/Resources/Parameter.html +1512 -0
  28. data/doc/ForemanApi/Resources/Ptable.html +266 -131
  29. data/doc/ForemanApi/Resources/Puppetclass.html +295 -131
  30. data/doc/ForemanApi/Resources/Report.html +311 -71
  31. data/doc/ForemanApi/Resources/Role.html +248 -119
  32. data/doc/ForemanApi/Resources/Setting.html +156 -76
  33. data/doc/ForemanApi/Resources/SmartProxy.html +257 -125
  34. data/doc/ForemanApi/Resources/Subnet.html +332 -175
  35. data/doc/ForemanApi/Resources/TemplateCombination.html +826 -0
  36. data/doc/ForemanApi/Resources/TemplateKind.html +56 -29
  37. data/doc/ForemanApi/Resources/User.html +287 -145
  38. data/doc/ForemanApi/Resources/Usergroup.html +272 -115
  39. data/doc/_index.html +32 -4
  40. data/doc/class_list.html +1 -1
  41. data/doc/css/style.css +10 -0
  42. data/doc/file.MIT-LICENSE.html +29 -24
  43. data/doc/file.README.html +60 -59
  44. data/doc/frames.html +1 -1
  45. data/doc/index.html +60 -59
  46. data/doc/method_list.html +434 -266
  47. data/doc/top-level-namespace.html +3 -3
  48. data/lib/foreman_api.rb +0 -13
  49. data/lib/foreman_api/base.rb +77 -7
  50. data/lib/foreman_api/documentation.json +1 -1
  51. data/lib/foreman_api/resources/architecture.rb +27 -32
  52. data/lib/foreman_api/resources/audit.rb +9 -10
  53. data/lib/foreman_api/resources/auth_source_ldap.rb +47 -52
  54. data/lib/foreman_api/resources/bookmark.rb +31 -36
  55. data/lib/foreman_api/resources/common_parameter.rb +27 -32
  56. data/lib/foreman_api/resources/compute_resource.rb +43 -48
  57. data/lib/foreman_api/resources/config_template.rb +43 -50
  58. data/lib/foreman_api/resources/dashboard.rb +4 -5
  59. data/lib/foreman_api/resources/domain.rb +30 -35
  60. data/lib/foreman_api/resources/environment.rb +25 -30
  61. data/lib/foreman_api/resources/fact_value.rb +5 -5
  62. data/lib/foreman_api/resources/home.rb +7 -9
  63. data/lib/foreman_api/resources/host.rb +63 -69
  64. data/lib/foreman_api/resources/host_class.rb +39 -0
  65. data/lib/foreman_api/resources/hostgroup.rb +43 -48
  66. data/lib/foreman_api/resources/hostgroup_class.rb +40 -0
  67. data/lib/foreman_api/resources/image.rb +40 -45
  68. data/lib/foreman_api/resources/lookup_key.rb +36 -40
  69. data/lib/foreman_api/resources/medium.rb +29 -34
  70. data/lib/foreman_api/resources/model.rb +31 -36
  71. data/lib/foreman_api/resources/operating_system.rb +39 -45
  72. data/lib/foreman_api/resources/parameter.rb +96 -0
  73. data/lib/foreman_api/resources/ptable.rb +29 -34
  74. data/lib/foreman_api/resources/puppetclass.rb +31 -34
  75. data/lib/foreman_api/resources/report.rb +17 -20
  76. data/lib/foreman_api/resources/role.rb +25 -30
  77. data/lib/foreman_api/resources/setting.rb +15 -18
  78. data/lib/foreman_api/resources/smart_proxy.rb +27 -32
  79. data/lib/foreman_api/resources/subnet.rb +47 -52
  80. data/lib/foreman_api/resources/template_combination.rb +21 -25
  81. data/lib/foreman_api/resources/template_kind.rb +4 -5
  82. data/lib/foreman_api/resources/user.rb +36 -41
  83. data/lib/foreman_api/resources/usergroup.rb +25 -30
  84. data/lib/foreman_api/version.rb +1 -1
  85. metadata +10 -2
@@ -4,15 +4,14 @@ module ForemanApi
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
- def index(params = { }, headers = { })
13
- check_params params, :allowed => true, :method => __method__
14
- url, params = fill_params_in_url "/api/dashboard", params
15
- call(:"get", url, params, headers)
12
+ # @return [Array] First item: parsed data; second item: raw body
13
+ def index(params = {}, headers = {})
14
+ perform_call(__method__, params, headers)
16
15
  end
17
16
 
18
17
  end
@@ -4,7 +4,7 @@ module ForemanApi
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
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
- def index(params = { }, headers = { })
16
- check_params params, :allowed => true, :method => __method__
17
- url, params = fill_params_in_url "/api/domains", params
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
21
  # @option params [String] id May be numerical id or domain name
23
22
  #
24
23
  # @param [Hash] headers additional http headers
25
- def show(params = { }, headers = { })
26
- check_params params, :allowed => true, :method => __method__
27
- url, params = fill_params_in_url "/api/domains/:id", params
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] 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
+ # @option params [Hash] domain
31
+ # allowed keys are:
32
+ # * dns_id [String, nil] Dns proxy to use within this domain
33
+ # * domain_parameters_attributes [String] Array of parameters (name, value)
34
+ # * fullname [String, nil] Full name describing the domain
35
+ # * name [String] The full dns domain name
38
36
  #
39
37
  # @param [Hash] headers additional http headers
40
- def create(params = { }, headers = { })
41
- check_params params, :allowed => true, :method => __method__
42
- url, params = fill_params_in_url "/api/domains", params
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] 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,
44
+ # @option params [String] id
45
+ # @option params [Hash] domain
46
+ # allowed keys are:
47
+ # * dns_id [String, nil] Dns proxy to use within this domain
48
+ # * domain_parameters_attributes [String] Array of parameters (name, value)
49
+ # * fullname [String, nil] Full name describing the domain
50
+ # * name [String, nil] The full dns domain name
54
51
  #
55
52
  # @param [Hash] headers additional http headers
56
- def update(params = { }, headers = { })
57
- check_params params, :allowed => true, :method => __method__
58
- url, params = fill_params_in_url "/api/domains/:id", params
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
- def destroy(params = { }, headers = { })
67
- check_params params, :allowed => true, :method => __method__
68
- url, params = fill_params_in_url "/api/domains/:id", params
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']["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
10
  # @option params [String] page Paginate results
@@ -12,55 +12,50 @@ module ForemanApi
12
12
  # @option params [String] search Filter results
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
- def index(params = { }, headers = { })
16
- check_params params, :allowed => true, :method => __method__
17
- url, params = fill_params_in_url "/api/environments", params
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
- def show(params = { }, headers = { })
26
- check_params params, :allowed => true, :method => __method__
27
- url, params = fill_params_in_url "/api/environments/:id", params
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] environment
33
- # allowed keys are:
34
- # * name [String],
30
+ # @option params [Hash] environment
31
+ # allowed keys are:
32
+ # * name [String]
35
33
  #
36
34
  # @param [Hash] headers additional http headers
37
- def create(params = { }, headers = { })
38
- check_params params, :allowed => true, :method => __method__
39
- url, params = fill_params_in_url "/api/environments", params
40
- call(:"post", url, params, headers)
35
+ # @return [Array] First item: parsed data; second item: raw body
36
+ def create(params = {}, headers = {})
37
+ perform_call(__method__, params, headers)
41
38
  end
42
39
 
43
40
  # @param [Hash] params a hash of params to be passed to the service
44
- # @option params [String] id
45
- # @option params [Hash] environment
46
- # allowed keys are:
47
- # * name [String],
41
+ # @option params [String] id
42
+ # @option params [Hash] environment
43
+ # allowed keys are:
44
+ # * name [String]
48
45
  #
49
46
  # @param [Hash] headers additional http headers
50
- def update(params = { }, headers = { })
51
- check_params params, :allowed => true, :method => __method__
52
- url, params = fill_params_in_url "/api/environments/:id", params
53
- call(:"put", url, params, headers)
47
+ # @return [Array] First item: parsed data; second item: raw body
48
+ def update(params = {}, headers = {})
49
+ perform_call(__method__, params, headers)
54
50
  end
55
51
 
56
52
  # @param [Hash] params a hash of params to be passed to the service
57
- # @option params [String] id
53
+ # @option params [String] id
58
54
  #
59
55
  # @param [Hash] headers additional http headers
60
- def destroy(params = { }, headers = { })
61
- check_params params, :allowed => true, :method => __method__
62
- url, params = fill_params_in_url "/api/environments/:id", params
63
- call(:"delete", url, params, headers)
56
+ # @return [Array] First item: parsed data; second item: raw body
57
+ def destroy(params = {}, headers = {})
58
+ perform_call(__method__, params, headers)
64
59
  end
65
60
 
66
61
  end
@@ -4,18 +4,18 @@ module ForemanApi
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
+ # @option params [Object] host_id Part of +/api/hosts/:host_id/facts+ path
9
10
  # @option params [String] order Sort results
10
11
  # @option params [String] page Paginate results
11
12
  # @option params [String] per_page Number of entries per request
12
13
  # @option params [String] search Filter results
13
14
  #
14
15
  # @param [Hash] headers additional http headers
15
- def index(params = { }, headers = { })
16
- check_params params, :allowed => true, :method => __method__
17
- url, params = fill_params_in_url "/api/fact_values", params
18
- call(:"get", url, params, headers)
16
+ # @return [Array] First item: parsed data; second item: raw body
17
+ def index(params = {}, headers = {})
18
+ perform_call(__method__, params, headers)
19
19
  end
20
20
 
21
21
  end
@@ -4,23 +4,21 @@ module ForemanApi
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
9
  #
10
10
  # @param [Hash] headers additional http headers
11
- def index(params = { }, headers = { })
12
- check_params params, :allowed => false, :method => __method__
13
- url, params = fill_params_in_url "/api", params
14
- call(:"get", url, params, headers)
11
+ # @return [Array] First item: parsed data; second item: raw body
12
+ def index(params = {}, headers = {})
13
+ perform_call(__method__, params, headers)
15
14
  end
16
15
 
17
16
  # @param [Hash] params a hash of params to be passed to the service
18
17
  #
19
18
  # @param [Hash] headers additional http headers
20
- def status(params = { }, headers = { })
21
- check_params params, :allowed => false, :method => __method__
22
- url, params = fill_params_in_url "/api/status", params
23
- call(:"get", url, params, headers)
19
+ # @return [Array] First item: parsed data; second item: raw body
20
+ def status(params = {}, headers = {})
21
+ perform_call(__method__, params, headers)
24
22
  end
25
23
 
26
24
  end
@@ -4,7 +4,7 @@ module ForemanApi
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
10
  # @option params [String] page Paginate results
@@ -12,99 +12,93 @@ module ForemanApi
12
12
  # @option params [String] search Filter results
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
- def index(params = { }, headers = { })
16
- check_params params, :allowed => true, :method => __method__
17
- url, params = fill_params_in_url "/api/hosts", params
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
- def show(params = { }, headers = { })
26
- check_params params, :allowed => true, :method => __method__
27
- url, params = fill_params_in_url "/api/hosts/:id", params
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] 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
+ # @option params [Hash] host
31
+ # allowed keys are:
32
+ # * architecture_id [String]
33
+ # * domain_id [String]
34
+ # * environment_id [String]
35
+ # * hostgroup_id [String]
36
+ # * image_id [String]
37
+ # * medium_id [String]
38
+ # * model_id_id [String]
39
+ # * operatingsystem_id [String]
40
+ # * owner_id [String]
41
+ # * ptable_id [String]
42
+ # * puppet_ca_proxy_id [String]
43
+ # * puppet_proxy_id [String]
44
+ # * sp_subnet_id [String]
45
+ # * subnet_id [String]
46
+ # * host_parameters_attributes [String]
47
+ # * ip [String] Not required if using a subnet with dhcp proxy
48
+ # * mac [String] Not required if its a virtual machine
49
+ # * name [String]
52
50
  #
53
51
  # @param [Hash] headers additional http headers
54
- def create(params = { }, headers = { })
55
- check_params params, :allowed => true, :method => __method__
56
- url, params = fill_params_in_url "/api/hosts", params
57
- call(:"post", url, params, headers)
52
+ # @return [Array] First item: parsed data; second item: raw body
53
+ def create(params = {}, headers = {})
54
+ perform_call(__method__, params, headers)
58
55
  end
59
56
 
60
57
  # @param [Hash] params a hash of params to be passed to the service
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],
58
+ # @option params [String] id
59
+ # @option params [Hash] host
60
+ # allowed keys are:
61
+ # * architecture_id [String]
62
+ # * domain_id [String]
63
+ # * environment_id [String]
64
+ # * hostgroup_id [String]
65
+ # * image_id [String]
66
+ # * medium_id [String]
67
+ # * model_id_id [String]
68
+ # * operatingsystem_id [String]
69
+ # * owner_id [String]
70
+ # * ptable_id [String]
71
+ # * puppet_ca_proxy_id [String]
72
+ # * puppet_proxy_id [String]
73
+ # * sp_subnet_id [String]
74
+ # * subnet_id [String]
75
+ # * host_parameters_attributes [String]
76
+ # * ip [String] Not required if using a subnet with dhcp proxy
77
+ # * mac [String] Not required if its a virtual machine
78
+ # * name [String]
82
79
  #
83
80
  # @param [Hash] headers additional http headers
84
- def update(params = { }, headers = { })
85
- check_params params, :allowed => true, :method => __method__
86
- url, params = fill_params_in_url "/api/hosts/:id", params
87
- call(:"put", url, params, headers)
81
+ # @return [Array] First item: parsed data; second item: raw body
82
+ def update(params = {}, headers = {})
83
+ perform_call(__method__, params, headers)
88
84
  end
89
85
 
90
86
  # @param [Hash] params a hash of params to be passed to the service
91
- # @option params [String] id
87
+ # @option params [String] id
92
88
  #
93
89
  # @param [Hash] headers additional http headers
94
- def destroy(params = { }, headers = { })
95
- check_params params, :allowed => true, :method => __method__
96
- url, params = fill_params_in_url "/api/hosts/:id", params
97
- call(:"delete", url, params, headers)
90
+ # @return [Array] First item: parsed data; second item: raw body
91
+ def destroy(params = {}, headers = {})
92
+ perform_call(__method__, params, headers)
98
93
  end
99
94
 
100
95
  # @param [Hash] params a hash of params to be passed to the service
101
- # @option params [String] id
96
+ # @option params [String] id
102
97
  #
103
98
  # @param [Hash] headers additional http headers
104
- def status(params = { }, headers = { })
105
- check_params params, :allowed => true, :method => __method__
106
- url, params = fill_params_in_url "/api/hosts/:id/status", params
107
- call(:"get", url, params, headers)
99
+ # @return [Array] First item: parsed data; second item: raw body
100
+ def status(params = {}, headers = {})
101
+ perform_call(__method__, params, headers)
108
102
  end
109
103
 
110
104
  end
@@ -0,0 +1,39 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class HostClass < ForemanApi::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["host_classes"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [Object] host_id Part of +/api/hosts/:host_id/puppetclass_ids+ path
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ # @return [Array] First item: parsed data; second item: raw body
13
+ def index(params = {}, headers = {})
14
+ perform_call(__method__, params, headers)
15
+ end
16
+
17
+ # @param [Hash] params a hash of params to be passed to the service
18
+ # @option params [String] host_id Id of host
19
+ # @option params [String] puppetclass_id Id of puppetclass
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ # @return [Array] First item: parsed data; second item: raw body
23
+ def create(params = {}, headers = {})
24
+ perform_call(__method__, params, headers)
25
+ end
26
+
27
+ # @param [Hash] params a hash of params to be passed to the service
28
+ # @option params [String] id Id of puppetclass
29
+ # @option params [String] host_id Id of host
30
+ #
31
+ # @param [Hash] headers additional http headers
32
+ # @return [Array] First item: parsed data; second item: raw body
33
+ def destroy(params = {}, headers = {})
34
+ perform_call(__method__, params, headers)
35
+ end
36
+
37
+ end
38
+ end
39
+ end