Class: KatelloApi::Resources::Organization

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

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

Instance Method Details

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

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 (Object)

    Part of /katello/api/organizations/:id/autoattach_subscriptions path

Returns:

  • (Array)

    First item: parsed data; second item: raw body



83
84
85
# File 'lib/katello_api/resources/organization.rb', line 83

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

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

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

  • label (String)

    organization label

  • url (String)

    base url to perform repo discovery on

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

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

  • description (String)

    description

  • label (String)

    unique label

  • name (String)

    name

Returns:

  • (Array)

    First item: parsed data; second item: raw body



54
55
56
# File 'lib/katello_api/resources/organization.rb', line 54

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

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

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

  • full_results (String)

    whether or not to show all results

  • order (String)

    sort field and order, eg. ‘name desc’

  • page (String)

    page number, starting at 1

  • per_page (String)

    number of results per page to return

  • search (String)

    search string

  • sort (Hash)

    hash version of ‘order’ param allowed keys are:

    • by [String] field to sort the results on

    • order [String] how to order the sorted results (e.g. asc for ascending)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



21
22
23
# File 'lib/katello_api/resources/organization.rb', line 21

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

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

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)

    organization id, label, or name

  • url (String)

    base url to perform repo discovery on

Returns:

  • (Array)

    First item: parsed data; second item: raw body



64
65
66
# File 'lib/katello_api/resources/organization.rb', line 64

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

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

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 (Object)

    Part of /katello/api/organizations/:id path

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

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 (Object)

    Part of /katello/api/organizations/:id path

  • description (String)

    description

  • resource (Hash, nil)

    allowed keys are:

    • name [String]

Returns:

  • (Array)

    First item: parsed data; second item: raw body



43
44
45
# File 'lib/katello_api/resources/organization.rb', line 43

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