Class: KatelloApi::Resources::ContentViewDefinition

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

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

Instance Method Details

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

    definition identifier

  • content_view_definition (Hash)

    allowed keys are:

    • description [String, nil] definition description

    • label [String] content view identifier

    • name [String] content view definition name

Returns:

  • (Array)

    First item: parsed data; second item: raw body



88
89
90
# File 'lib/katello_api/resources/content_view_definition.rb', line 88

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

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

    definition identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



97
98
99
# File 'lib/katello_api/resources/content_view_definition.rb', line 97

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

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

  • organization_id (String)

    organization identifier

  • content_view_definition (Hash)

    allowed keys are:

    • description [String, nil] definition description

    • label [String] content view identifier

    • name [String] content view definition name

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

    definition identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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):

  • id (String)

    content view id

  • organization_id (String)

    organization identifier

  • label (String)

    content view label

  • name (String)

    content view name

Returns:

  • (Array)

    First item: parsed data; second item: raw body



16
17
18
# File 'lib/katello_api/resources/content_view_definition.rb', line 16

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

#list_all_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



155
156
157
# File 'lib/katello_api/resources/content_view_definition.rb', line 155

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

#list_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

  • organization_id (String)

    organization identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



136
137
138
# File 'lib/katello_api/resources/content_view_definition.rb', line 136

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

#list_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):

  • content_view_definition_id (String)

    definition id

Returns:

  • (Array)

    First item: parsed data; second item: raw body



116
117
118
# File 'lib/katello_api/resources/content_view_definition.rb', line 116

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

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

    definition identifier

  • description (String)

    description for the new content view

  • label (String)

    label for the new content view

  • name (String)

    name for the new content view

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

def publish(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)

    definition identifier

Returns:

  • (Array)

    First item: parsed data; second item: raw body



53
54
55
# File 'lib/katello_api/resources/content_view_definition.rb', line 53

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)

    definition identifier

  • content_view_definition (Hash)

    allowed keys are:

    • description [String, nil] definition description

    • name [String] content view definition name

  • org (String)

    organization name

Returns:

  • (Array)

    First item: parsed data; second item: raw body



44
45
46
# File 'lib/katello_api/resources/content_view_definition.rb', line 44

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

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

    definition identifier

  • views (Array)

    updated list of view ids

Returns:

  • (Array)

    First item: parsed data; second item: raw body



107
108
109
# File 'lib/katello_api/resources/content_view_definition.rb', line 107

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

#update_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 (Array)

    updated list of products

Returns:

  • (Array)

    First item: parsed data; second item: raw body



146
147
148
# File 'lib/katello_api/resources/content_view_definition.rb', line 146

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

#update_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):

  • content_view_definition_id (String)

    content view definition identifier

  • repos (Array)

    updated list of repo ids

Returns:

  • (Array)

    First item: parsed data; second item: raw body



126
127
128
# File 'lib/katello_api/resources/content_view_definition.rb', line 126

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