Package pulp :: Package server :: Package api :: Module errata :: Class ErrataApi
[hide private]
[frames] | no frames]

Class ErrataApi

source code

  object --+    
           |    
base.BaseApi --+
               |
              ErrataApi

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_indexes(self) source code
 
_getcollection(self) source code
 
create(self, id, title, description, version, release, type, status="", updated="", issued="", pushcount="", from_str="", reboot_suggested="", references=(), pkglist=(), repo_defined=False, immutable=False)
Create a new Errata object and return it
source code
 
delete(self, id)
Delete package version object based on "_id" key
source code
 
update(self, errata)
Updates an errata object in the database
source code
 
erratum(self, id)
Return a single Errata object based on the id
source code
 
errata(self, id=None, title=None, description=None, version=None, release=None, type=None, status=None, updated=None, issued=None, pushcount=None, from_str=None, reboot_suggested=None)
Return a list of all errata objects matching search terms
source code
 
search_by_packages(self)
Search for errata that are associated with specified package info
source code
 
search_by_issued_date_range(self) source code
 
query_by_bz(self, bzid) source code
 
query_by_cve(self, cveid) source code
 
query_by_reference(self, type, refid)
Search Errata for all matches of this reference with id 'refid'
source code
 
search_by_repo(self, errata_id)
Goal is to return the repoid's of repos that contain this errata
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from base.BaseApi
 
_unique_indexes(self) source code
 
clean(self)
Delete all the Objects in the database.
source code
 
insert(self, object, check_keys=False)
Insert the object document to the database
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_indexes(self)

source code 
Decorators:
  • @property
Overrides: base.BaseApi._indexes

_getcollection(self)

source code 
Overrides: base.BaseApi._getcollection

create(self, id, title, description, version, release, type, status="", updated="", issued="", pushcount="", from_str="", reboot_suggested="", references=(), pkglist=(), repo_defined=False, immutable=False)

source code 

Create a new Errata object and return it

Decorators:
  • @audit(params= ["id", "title", "type"])

delete(self, id)

source code 

Delete package version object based on "_id" key

Decorators:
  • @audit()
Overrides: base.BaseApi.delete

update(self, errata)

source code 

Updates an errata object in the database

Decorators:
  • @audit()
Overrides: base.BaseApi.update

query_by_reference(self, type, refid)

source code 

Search Errata for all matches of this reference with id 'refid'

Parameters:
  • type - reference type to search, example 'bugzilla', 'cve'
  • refid - id to match on