Class: KatelloApi::Resources::Product

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

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

.docObject



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

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

Instance Method Details

#destroy(params = {}, headers = {}) ⇒ Array

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)

    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

#index(params = {}, headers = {}) ⇒ Array

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

  • 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

#list_content_view_definition_products(params = {}, headers = {}) ⇒ Array

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_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

#remove_sync_plan(params = {}, headers = {}) ⇒ Array

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)

    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

#repositories(params = {}, headers = {}) ⇒ Array

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)

    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

#set_sync_plan(params = {}, headers = {}) ⇒ Array

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)

    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

#show(params = {}, headers = {}) ⇒ Array

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)

    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

#update(params = {}, headers = {}) ⇒ Array

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)

    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

#update_content_view_definition_products(params = {}, headers = {}) ⇒ Array

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_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