Class: KatelloApi::Resources::ContentView

Inherits:
Base
  • Object
show all
Defined in:
lib/katello_api/resources/content_view.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.rb', line 4

def self.doc
  @doc ||= KatelloApi.doc['resources']["content_views"]
end

Instance Method Details

- (Array) available_puppet_module_names(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)

    content view numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



79
80
81
# File 'lib/katello_api/resources/content_view.rb', line 79

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

- (Array) available_puppet_modules(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)

    content view numeric identifier

  • name (String)

    module name to restrict modules for

Returns:

  • (Array)

    First item: parsed data; second item: raw body



70
71
72
# File 'lib/katello_api/resources/content_view.rb', line 70

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

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

  • component_ids (Array)

    list of component content view version ids for composite views

  • organization_id (String)

    organization identifier

  • repository_ids (Array)

    list of repository ids

  • composite (String)

    composite content view

  • description (String)

    description for the content view

  • label (String)

    content view label

  • name (String)

    name of the content view

Returns:

  • (Array)

    First item: parsed data; second item: raw body



29
30
31
# File 'lib/katello_api/resources/content_view.rb', line 29

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

- (Array) history(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)

    content view numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



88
89
90
# File 'lib/katello_api/resources/content_view.rb', line 88

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

  • environment_id (String)

    environment identifier

  • organization_id (String)

    organization identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



14
15
16
# File 'lib/katello_api/resources/content_view.rb', line 14

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

- (Array) publish(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)

    content view identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



51
52
53
# File 'lib/katello_api/resources/content_view.rb', line 51

def publish(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)

    content view numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



60
61
62
# File 'lib/katello_api/resources/content_view.rb', line 60

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)

    content view identifier

  • component_ids (Array)

    list of component content view version ids for composite views

  • repository_ids (Array)

    list of repository ids

  • description (String)

    description for the content view

  • name (String)

    new name for the content view

Returns:

  • (Array)

    First item: parsed data; second item: raw body



42
43
44
# File 'lib/katello_api/resources/content_view.rb', line 42

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