Class: KatelloApi::Resources::ContentView

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

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

    content view id

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

  • environment_id (String)

    environment identifier

  • 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



17
18
19
# File 'lib/katello_api/resources/content_view.rb', line 17

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

#promote(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

  • environment_id (String)

    environment promoting to

Returns:

  • (Array)

    First item: parsed data; second item: raw body



37
38
39
# File 'lib/katello_api/resources/content_view.rb', line 37

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

#refresh(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

Returns:

  • (Array)

    First item: parsed data; second item: raw body



46
47
48
# File 'lib/katello_api/resources/content_view.rb', line 46

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

    content view id

  • environment_id (String)

    environment id

Returns:

  • (Array)

    First item: parsed data; second item: raw body



27
28
29
# File 'lib/katello_api/resources/content_view.rb', line 27

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