Class: ForemanApi::Resources::Host
- Defined in:
- lib/foreman_api/resources/host.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#boot(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
-
#create(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
-
#destroy(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
-
#facts(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
-
#index(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
-
#power(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
-
#puppetrun(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
-
#show(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
-
#status(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
-
#update(params = {}, headers = {}) ⇒ Array
First item: parsed data; second item: raw body.
Methods inherited from Base
#http_call, #initialize, method_doc, #perform_call, #validate_params!, validation_hash
Constructor Details
This class inherits a constructor from ForemanApi::Base
Class Method Details
.doc ⇒ Object
4 5 6 |
# File 'lib/foreman_api/resources/host.rb', line 4 def self.doc @doc ||= ForemanApi.doc['resources']["hosts"] end |
Instance Method Details
#boot(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
147 148 149 |
# File 'lib/foreman_api/resources/host.rb', line 147 def boot(params = {}, headers = {}) perform_call(__method__, params, headers) end |
#create(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
62 63 64 |
# File 'lib/foreman_api/resources/host.rb', line 62 def create(params = {}, headers = {}) perform_call(__method__, params, headers) end |
#destroy(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
109 110 111 |
# File 'lib/foreman_api/resources/host.rb', line 109 def destroy(params = {}, headers = {}) perform_call(__method__, params, headers) end |
#facts(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
159 160 161 |
# File 'lib/foreman_api/resources/host.rb', line 159 def facts(params = {}, headers = {}) perform_call(__method__, params, headers) end |
#index(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
16 17 18 |
# File 'lib/foreman_api/resources/host.rb', line 16 def index(params = {}, headers = {}) perform_call(__method__, params, headers) end |
#power(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
137 138 139 |
# File 'lib/foreman_api/resources/host.rb', line 137 def power(params = {}, headers = {}) perform_call(__method__, params, headers) end |
#puppetrun(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
127 128 129 |
# File 'lib/foreman_api/resources/host.rb', line 127 def puppetrun(params = {}, headers = {}) perform_call(__method__, params, headers) end |
#show(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
25 26 27 |
# File 'lib/foreman_api/resources/host.rb', line 25 def show(params = {}, headers = {}) perform_call(__method__, params, headers) end |
#status(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
118 119 120 |
# File 'lib/foreman_api/resources/host.rb', line 118 def status(params = {}, headers = {}) perform_call(__method__, params, headers) end |
#update(params = {}, headers = {}) ⇒ Array
Returns First item: parsed data; second item: raw body.
100 101 102 |
# File 'lib/foreman_api/resources/host.rb', line 100 def update(params = {}, headers = {}) perform_call(__method__, params, headers) end |