Class: KatelloApi::Resources::ContentViewFilter

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

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

Instance Method Details

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

    filter identifier

  • content_view_id (String)

    content view identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



69
70
71
# File 'lib/katello_api/resources/content_view_filter.rb', line 69

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

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

    filter identifier

  • content_view_id (String)

    content view identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

  • content_view_id (String)

    content view identifier

  • repository_ids (Array)

    list of repository ids

  • inclusion (String)

    specifies if content should be included or excluded, default: inclusion=false

  • name (String)

    name of the filter

  • type (String)

    type of filter (e.g. rpm, package_group, erratum)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



26
27
28
# File 'lib/katello_api/resources/content_view_filter.rb', line 26

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)

    filter identifier

  • content_view_id (String)

    content view identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



59
60
61
# File 'lib/katello_api/resources/content_view_filter.rb', line 59

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_filter.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 (String)

    filter identifier

  • content_view_id (String)

    content view identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



36
37
38
# File 'lib/katello_api/resources/content_view_filter.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)

    filter identifier

  • content_view_id (String)

    content view identifier

  • repository_ids (Array)

    list of repository ids

  • inclusion (String)

    specifies if content should be included or excluded, default: inclusion=false

  • name (String)

    new name for the filter

Returns:

  • (Array)

    First item: parsed data; second item: raw body



49
50
51
# File 'lib/katello_api/resources/content_view_filter.rb', line 49

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