Class: KatelloApi::Resources::ContentViewPuppetModule

Inherits:
Base
  • Object
show all
Defined in:
lib/katello_api/resources/content_view_puppet_module.rb

Constant Summary

Constant Summary

Constants inherited from Base

Base::API_VERSION

Instance Attribute Summary

Attributes inherited from Base

#client, #config

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Base

#http_call, #initialize, method_doc, #perform_call, #validate_params!, validation_hash

Constructor Details

This class inherits a constructor from KatelloApi::Base

Class Method Details

+ (Object) doc



4
5
6
# File 'lib/katello_api/resources/content_view_puppet_module.rb', line 4

def self.doc
  @doc ||= KatelloApi.doc['resources']["content_view_puppet_modules"]
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):

  • content_view_id (String)

    content view identifier

  • author (String)

    author of the puppet module

  • name (String)

    name of the puppet module

  • uuid (String)

    the uuid of the puppet module to associate

Returns:

  • (Array)

    First item: parsed data; second item: raw body



25
26
27
# File 'lib/katello_api/resources/content_view_puppet_module.rb', line 25

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)

    puppet module identifierr

  • content_view_id (String)

    content view identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



58
59
60
# File 'lib/katello_api/resources/content_view_puppet_module.rb', line 58

def destroy(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):

  • content_view_id (String)

    content view identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



13
14
15
# File 'lib/katello_api/resources/content_view_puppet_module.rb', line 13

def index(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 (Object)

    Part of /katello/api/content_views/:content_view_id/content_view_puppet_modules/:id path

  • content_view_id (String)

    content view numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



35
36
37
# File 'lib/katello_api/resources/content_view_puppet_module.rb', line 35

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)

    puppet module identifier

  • content_view_id (String)

    content view identifier

  • author (String)

    author of the puppet module

  • name (String)

    name of the puppet module

  • uuid (String)

    the uuid of the puppet module to associate

Returns:

  • (Array)

    First item: parsed data; second item: raw body



48
49
50
# File 'lib/katello_api/resources/content_view_puppet_module.rb', line 48

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