Skip to content

Commit

Permalink
Add missing counts provided by CVV endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik committed Oct 24, 2023
1 parent 0a9a19d commit 32e4010
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -2438,18 +2438,30 @@ class ContentViewVersion(Entity, EntityDeleteMixin, EntityReadMixin, EntitySearc

def __init__(self, server_config=None, **kwargs):
self._fields = {
'ansible_collection_count': entity_fields.IntegerField(),
'ansible_collection_repository_count': entity_fields.IntegerField(),
'docker_manifest_count': entity_fields.IntegerField(),
'docker_manifest_list_count': entity_fields.IntegerField(),
'docker_repository_count': entity_fields.IntegerField(),
'docker_tag_count': entity_fields.IntegerField(),
'component_view_count': entity_fields.IntegerField(),
'content_view': entity_fields.OneToOneField(ContentView),
'description': entity_fields.StringField(),
'environment': entity_fields.OneToManyField(LifecycleEnvironment),
'errata_counts': entity_fields.DictField(),
'file_count': entity_fields.IntegerField(),
'file_repository_count': entity_fields.IntegerField(),
'filters_applied': entity_fields.BooleanField(),
'major': entity_fields.IntegerField(),
'minor': entity_fields.IntegerField(),
'module_stream_count': entity_fields.IntegerField(),
'name': entity_fields.StringField(),
'package_count': entity_fields.IntegerField(),
'package_group_count': entity_fields.IntegerField(),
'repository': entity_fields.OneToManyField(Repository),
'srpm_count': entity_fields.IntegerField(),
'version': entity_fields.StringField(),
'yum_repository_count': entity_fields.IntegerField(),
}
self._meta = {
'api_path': 'katello/api/v2/content_view_versions',
Expand Down

0 comments on commit 32e4010

Please sign in to comment.