Class: KatelloApi::Resources::ContentViewFilterRule

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

def self.doc
  @doc ||= KatelloApi.doc['resources']["content_view_filter_rules"]
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_filter_id (String)

    filter identifier

  • errata_id (String)

    erratum: id

  • end_date (String)

    erratum: end date (yyyy-mm-dd)

  • max_version (String)

    package: maximum version

  • min_version (String)

    package: minimum version

  • name (String)

    package or package group: name

  • start_date (String)

    erratum: start date (yyyy-mm-dd)

  • types (Array)

    erratum: types (enhancement, bugfix, security)

  • version (String)

    package: version

Returns:

  • (Array)

    First item: parsed data; second item: raw body



30
31
32
# File 'lib/katello_api/resources/content_view_filter_rule.rb', line 30

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)

    rule identifier

  • content_view_filter_id (String)

    filter identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



68
69
70
# File 'lib/katello_api/resources/content_view_filter_rule.rb', line 68

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_filter_id (String)

    filter identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



13
14
15
# File 'lib/katello_api/resources/content_view_filter_rule.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)

    rule identifier

  • content_view_filter_id (String)

    filter identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



40
41
42
# File 'lib/katello_api/resources/content_view_filter_rule.rb', line 40

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)

    rule identifier

  • content_view_filter_id (String)

    filter identifier

  • errata_id (String)

    erratum: id

  • end_date (String)

    erratum: end date (yyyy-mm-dd)

  • max_version (String)

    package: maximum version

  • min_version (String)

    package: minimum version

  • name (String)

    package or package group: name

  • start_date (String)

    erratum: start date (yyyy-mm-dd)

  • types (Array)

    erratum: types (enhancement, bugfix, security)

  • version (String)

    package: version

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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