Class: ForemanApi::Resources::SmartProxy

Inherits:
Base
  • Object
show all
Defined in:
lib/foreman_api/resources/smart_proxy.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) doc



4
5
6
# File 'lib/foreman_api/resources/smart_proxy.rb', line 4

def self.doc
  @doc ||= ForemanApi.doc['resources']["smart_proxies"]
end

Instance Method Details

- (Array) create(params = {}, headers = {})

Returns First item: parsed data; second item: raw body

Parameters:

  • params (Hash) (defaults to: {})

    a hash of params to be passed to the service

  • headers (Hash) (defaults to: {})

    additional http headers

Options Hash (params):

  • smart_proxy (Hash)

    allowed keys are:

    • name [String]

    • url [String]

Returns:

  • (Array)

    First item: parsed data; second item: raw body



48
49
50
# File 'lib/foreman_api/resources/smart_proxy.rb', line 48

def create(params = {}, headers = {})
  perform_call(__method__, params, headers)
end

- (Array) destroy(params = {}, headers = {})

Returns First item: parsed data; second item: raw body

Parameters:

  • params (Hash) (defaults to: {})

    a hash of params to be passed to the service

  • headers (Hash) (defaults to: {})

    additional http headers

Options Hash (params):

  • id (String)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



70
71
72
# File 'lib/foreman_api/resources/smart_proxy.rb', line 70

def destroy(params = {}, headers = {})
  perform_call(__method__, params, headers)
end

- (Array) import_puppetclasses(params = {}, headers = {})

Returns First item: parsed data; second item: raw body

Parameters:

  • params (Hash) (defaults to: {})

    a hash of params to be passed to the service

  • headers (Hash) (defaults to: {})

    additional http headers

Options Hash (params):

  • id (Object)

    Part of /api/smart_proxies/:id/import_puppetclasses path

  • environment_id (String)
  • smart_proxy_id (String)
  • dryrun (String)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



16
17
18
# File 'lib/foreman_api/resources/smart_proxy.rb', line 16

def import_puppetclasses(params = {}, headers = {})
  perform_call(__method__, params, headers)
end

- (Array) index(params = {}, headers = {})

Returns First item: parsed data; second item: raw body

Parameters:

  • params (Hash) (defaults to: {})

    a hash of params to be passed to the service

  • headers (Hash) (defaults to: {})

    additional http headers

Options Hash (params):

  • page (String)

    paginate results

  • per_page (String)

    number of entries per request

  • type (String)

    filter by type

Returns:

  • (Array)

    First item: parsed data; second item: raw body



27
28
29
# File 'lib/foreman_api/resources/smart_proxy.rb', line 27

def index(params = {}, headers = {})
  perform_call(__method__, params, headers)
end

- (Array) refresh(params = {}, headers = {})

Returns First item: parsed data; second item: raw body

Parameters:

  • params (Hash) (defaults to: {})

    a hash of params to be passed to the service

  • headers (Hash) (defaults to: {})

    additional http headers

Options Hash (params):

  • id (String)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



79
80
81
# File 'lib/foreman_api/resources/smart_proxy.rb', line 79

def refresh(params = {}, headers = {})
  perform_call(__method__, params, headers)
end

- (Array) show(params = {}, headers = {})

Returns First item: parsed data; second item: raw body

Parameters:

  • params (Hash) (defaults to: {})

    a hash of params to be passed to the service

  • headers (Hash) (defaults to: {})

    additional http headers

Options Hash (params):

  • id (String)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



36
37
38
# File 'lib/foreman_api/resources/smart_proxy.rb', line 36

def show(params = {}, headers = {})
  perform_call(__method__, params, headers)
end

- (Array) update(params = {}, headers = {})

Returns First item: parsed data; second item: raw body

Parameters:

  • params (Hash) (defaults to: {})

    a hash of params to be passed to the service

  • headers (Hash) (defaults to: {})

    additional http headers

Options Hash (params):

  • id (String)
  • smart_proxy (Hash)

    allowed keys are:

    • name [String]

    • url [String]

Returns:

  • (Array)

    First item: parsed data; second item: raw body



61
62
63
# File 'lib/foreman_api/resources/smart_proxy.rb', line 61

def update(params = {}, headers = {})
  perform_call(__method__, params, headers)
end