Class: KatelloApi::Resources::SystemGroup

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

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

Instance Method Details

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

    id of the system group

  • system_ids (Array)

    array of system ids

Returns:

  • (Array)

    First item: parsed data; second item: raw body



76
77
78
# File 'lib/katello_api/resources/system_group.rb', line 76

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

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

    id of the system group

  • name (String)

    new system group name

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

def copy(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

  • system_ids (Array)

    list of system uuids to be in the group

  • description (String)
  • max_systems (Numeric)

    maximum number of systems in the group

  • name (String)

    system group name

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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)

    id of the system group

Returns:

  • (Array)

    First item: parsed data; second item: raw body



124
125
126
# File 'lib/katello_api/resources/system_group.rb', line 124

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

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

    id of the system group

Returns:

  • (Array)

    First item: parsed data; second item: raw body



133
134
135
# File 'lib/katello_api/resources/system_group.rb', line 133

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

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

    id of the system group

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

    id of the system group

  • job_id (String)

    id of a job for filtering

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

def history_show(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):

  • organization_id (String)

    organization identifier

  • name (String)

    system group name to filter by

  • 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



31
32
33
# File 'lib/katello_api/resources/system_group.rb', line 31

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

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

    id of the system group

  • system_ids (Array)

    array of system ids

Returns:

  • (Array)

    First item: parsed data; second item: raw body



86
87
88
# File 'lib/katello_api/resources/system_group.rb', line 86

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

    id of the system group

Returns:

  • (Array)

    First item: parsed data; second item: raw body



13
14
15
# File 'lib/katello_api/resources/system_group.rb', line 13

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

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

    id of the system group

Returns:

  • (Array)

    First item: parsed data; second item: raw body



66
67
68
# File 'lib/katello_api/resources/system_group.rb', line 66

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

    id of the system group

  • system_ids (Array)

    list of system uuids to be in the group

  • description (String)
  • max_systems (Numeric)

    maximum number of systems in the group

  • name (String)

    system group name

Returns:

  • (Array)

    First item: parsed data; second item: raw body



57
58
59
# File 'lib/katello_api/resources/system_group.rb', line 57

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