Class: ForemanApi::Resources::Host
- Inherits:
-
Base
- Object
- Base
- ForemanApi::Resources::Host
- Defined in:
- lib/foreman_api/resources/host.rb
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (Array) create(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) destroy(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) index(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) puppetrun(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) show(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) status(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) update(params = {}, headers = {})
First item: parsed data; second item: raw body.
Class Method Details
+ (Object) doc
4 5 6 |
# File 'lib/foreman_api/resources/host.rb', line 4 def self.doc @doc ||= ForemanApi.doc['resources']["hosts"] end |
Instance Method Details
- (Array) create(params = {}, headers = {})
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 |
- (Array) destroy(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
108 109 110 |
# File 'lib/foreman_api/resources/host.rb', line 108 def destroy(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) index(params = {}, headers = {})
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 |
- (Array) puppetrun(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
126 127 128 |
# File 'lib/foreman_api/resources/host.rb', line 126 def puppetrun(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) show(params = {}, headers = {})
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 |
- (Array) status(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
117 118 119 |
# File 'lib/foreman_api/resources/host.rb', line 117 def status(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) update(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
99 100 101 |
# File 'lib/foreman_api/resources/host.rb', line 99 def update(params = {}, headers = {}) perform_call(__method__, params, headers) end |