Class: KatelloApi::Resources::Repository

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

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

Instance Method Details

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

    id of an organization the repository will be contained in

  • product_id (String)

    id of a product the repository will be contained in

  • gpg_key_name (String)

    name of a gpg key that will be assigned to the new repository

  • name (String)
  • url (String)

    repository source url

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



47
48
49
# File 'lib/katello_api/resources/repository.rb', line 47

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

#enable(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)
  • enable (String)

    flag that enables/disables the repository

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

Returns:

  • (Array)

    First item: parsed data; second item: raw body



93
94
95
# File 'lib/katello_api/resources/repository.rb', line 93

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

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

Returns:

  • (Array)

    First item: parsed data; second item: raw body



101
102
103
# File 'lib/katello_api/resources/repository.rb', line 101

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

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

Returns:

  • (Array)

    First item: parsed data; second item: raw body



84
85
86
# File 'lib/katello_api/resources/repository.rb', line 84

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

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

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

    repository id

Returns:

  • (Array)

    First item: parsed data; second item: raw body



26
27
28
# File 'lib/katello_api/resources/repository.rb', line 26

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

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

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

    repository id

  • repository (Hash)

    allowed keys are:

    • gpg_key_name [String] name of a gpg key that will be assigned to the repository

Returns:

  • (Array)

    First item: parsed data; second item: raw body



38
39
40
# File 'lib/katello_api/resources/repository.rb', line 38

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

#update_content_view_definition_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 (String)

    updated list of repo ids

Returns:

  • (Array)

    First item: parsed data; second item: raw body



111
112
113
# File 'lib/katello_api/resources/repository.rb', line 111

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