Class: KatelloApi::Resources::Product

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

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

Instance Method Details

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

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)

    product numeric identifier

  • organization_id (String)

    organization identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



50
51
52
# File 'lib/katello_api/resources/product.rb', line 50

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

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

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

  • name (String)

    product identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

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

    content view definition identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



94
95
96
# File 'lib/katello_api/resources/product.rb', line 94

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

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

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)

    product numeric identifier

  • organization_id (String)

    organization identifier

  • plan_id (String)

    plan numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



85
86
87
# File 'lib/katello_api/resources/product.rb', line 85

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

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

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)

    product numeric identifier

  • environment_id (String)

    environment identifier

  • organization_id (String)

    organization identifier

  • include_disabled (String)

    set to true if you want to list disabled repositories

  • name (String)

    repository identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



63
64
65
# File 'lib/katello_api/resources/product.rb', line 63

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

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

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)

    product numeric identifier

  • organization_id (String)

    organization identifier

  • plan_id (String)

    plan numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



74
75
76
# File 'lib/katello_api/resources/product.rb', line 74

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

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

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)

    product numeric identifier

  • organization_id (String)

    organization identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

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)

    product numeric identifier

  • organization_id (String)

    organization identifier

  • product (Hash)

    allowed keys are:

    • description [String, nil] product description
    • gpg_key_name [String, nil] identifier of the gpg key
    • recursive [String] set to true to recursive update gpg key

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

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

    content view definition identifier

  • products (String)

    updated list of products

Returns:

  • (Array)

    First item: parsed data; second item: raw body



104
105
106
# File 'lib/katello_api/resources/product.rb', line 104

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