Class: KatelloApi::Resources::TemplatesContent

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

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

Instance Method Details

#add_distribution(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)

    distribution identifier

  • template_id (String)

    template numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



95
96
97
# File 'lib/katello_api/resources/templates_content.rb', line 95

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

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

  • template_id (String)

    template numeric identifier

  • name (String)

    package identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

  • template_id (String)

    template numeric identifier

  • name (String)

    package group identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



55
56
57
# File 'lib/katello_api/resources/templates_content.rb', line 55

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

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

  • template_id (String)

    template numeric identifier

  • name (String)

    package group category identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



75
76
77
# File 'lib/katello_api/resources/templates_content.rb', line 75

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

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

  • template_id (String)

    template numeric identifier

  • name (String)

    parameter identifier

  • value (String)

    parameter value

Returns:

  • (Array)

    First item: parsed data; second item: raw body



35
36
37
# File 'lib/katello_api/resources/templates_content.rb', line 35

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

#add_repo(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)

    repository numeric identifier

  • template_id (String)

    template numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



115
116
117
# File 'lib/katello_api/resources/templates_content.rb', line 115

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

#remove_distribution(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)

    distribution identifier

  • template_id (String)

    template numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



105
106
107
# File 'lib/katello_api/resources/templates_content.rb', line 105

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

#remove_package(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)

    package identifier

  • template_id (String)

    template numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



24
25
26
# File 'lib/katello_api/resources/templates_content.rb', line 24

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

#remove_package_group(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)

    package group identifier

  • template_id (String)

    template numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



65
66
67
# File 'lib/katello_api/resources/templates_content.rb', line 65

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

#remove_package_group_category(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)

    package group category identifier

  • template_id (String)

    template numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

#remove_parameter(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)

    parameter identifier

  • template_id (String)

    template numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



45
46
47
# File 'lib/katello_api/resources/templates_content.rb', line 45

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

#remove_repo(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)

    repository numeric identifier

  • template_id (String)

    template numeric identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



125
126
127
# File 'lib/katello_api/resources/templates_content.rb', line 125

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