1212)
1313
1414
15- class PulpInternalContentContext (PulpContentContext ):
16- """Context for Internal Content."""
15+ class PulpConsoleContentContext (PulpContentContext ):
16+ """Context for Console Content."""
1717
18- PLUGIN = "internal "
18+ PLUGIN = "console "
1919 RESOURCE_TYPE = "content"
20- ENTITY = _ ("internal content" )
21- ENTITIES = _ ("internal content" )
22- HREF = "internal_internal_content_href "
23- ID_PREFIX = "content_internal_content "
24- NEEDS_PLUGINS = [PluginRequirement ("internal " , specifier = ">=1.0.0" )]
20+ ENTITY = _ ("console content" )
21+ ENTITIES = _ ("console content" )
22+ HREF = "console_console_content_href "
23+ ID_PREFIX = "content_console_content "
24+ NEEDS_PLUGINS = [PluginRequirement ("console " , specifier = ">=1.0.0" )]
2525
2626
27- class PulpInternalDistributionContext (PulpEntityContext ):
28- """Context for Internal Distribution."""
27+ class PulpConsoleDistributionContext (PulpEntityContext ):
28+ """Context for Console Distribution."""
2929
30- PLUGIN = "internal "
31- RESOURCE_TYPE = "internal "
32- ENTITY = _ ("internal distribution" )
33- ENTITIES = _ ("internal distributions" )
34- HREF = "internal_internal_distribution_href "
35- ID_PREFIX = "distributions_internal_internal "
36- NEEDS_PLUGINS = [PluginRequirement ("internal " , specifier = ">=1.0.0" )]
30+ PLUGIN = "console "
31+ RESOURCE_TYPE = "console "
32+ ENTITY = _ ("console distribution" )
33+ ENTITIES = _ ("console distributions" )
34+ HREF = "console_console_distribution_href "
35+ ID_PREFIX = "distributions_console_console "
36+ NEEDS_PLUGINS = [PluginRequirement ("console " , specifier = ">=1.0.0" )]
3737
3838 def preprocess_entity (self , body : EntityDefinition , partial : bool = False ) -> EntityDefinition :
3939 body = super ().preprocess_entity (body , partial )
@@ -44,39 +44,39 @@ def preprocess_entity(self, body: EntityDefinition, partial: bool = False) -> En
4444 return body
4545
4646
47- class PulpInternalRemoteContext (PulpRemoteContext ):
48- """Context for Internal Remote."""
47+ class PulpConsoleRemoteContext (PulpRemoteContext ):
48+ """Context for Console Remote."""
4949
50- PLUGIN = "internal "
51- RESOURCE_TYPE = "internal "
52- ENTITY = _ ("internal remote" )
53- ENTITIES = _ ("internal remotes" )
54- HREF = "internal_internal_remote_href "
55- ID_PREFIX = "remotes_internal_internal "
56- NEEDS_PLUGINS = [PluginRequirement ("internal " , specifier = ">=1.0.0" )]
50+ PLUGIN = "console "
51+ RESOURCE_TYPE = "console "
52+ ENTITY = _ ("console remote" )
53+ ENTITIES = _ ("console remotes" )
54+ HREF = "console_console_remote_href "
55+ ID_PREFIX = "remotes_console_console "
56+ NEEDS_PLUGINS = [PluginRequirement ("console " , specifier = ">=1.0.0" )]
5757
5858
59- class PulpInternalRepositoryVersionContext (PulpRepositoryVersionContext ):
60- """Context for Internal Repository Version."""
59+ class PulpConsoleRepositoryVersionContext (PulpRepositoryVersionContext ):
60+ """Context for Console Repository Version."""
6161
62- PLUGIN = "internal "
63- RESOURCE_TYPE = "internal "
64- HREF = "internal_internal_repository_version_href "
65- ID_PREFIX = "repositories_internal_internal_versions "
66- NEEDS_PLUGINS = [PluginRequirement ("internal " , specifier = ">=1.0.0" )]
62+ PLUGIN = "console "
63+ RESOURCE_TYPE = "console "
64+ HREF = "console_console_repository_version_href "
65+ ID_PREFIX = "repositories_console_console_versions "
66+ NEEDS_PLUGINS = [PluginRequirement ("console " , specifier = ">=1.0.0" )]
6767
6868
69- class PulpInternalRepositoryContext (PulpRepositoryContext ):
70- """Context for Internal Repository."""
69+ class PulpConsoleRepositoryContext (PulpRepositoryContext ):
70+ """Context for Console Repository."""
7171
72- PLUGIN = "internal "
73- RESOURCE_TYPE = "internal "
74- HREF = "internal_internal_repository_href "
75- ID_PREFIX = "repositories_internal_internal "
76- VERSION_CONTEXT = PulpInternalRepositoryVersionContext
77- NEEDS_PLUGINS = [PluginRequirement ("internal " , specifier = ">=1.0.0" )]
72+ PLUGIN = "console "
73+ RESOURCE_TYPE = "console "
74+ HREF = "console_console_repository_href "
75+ ID_PREFIX = "repositories_console_console "
76+ VERSION_CONTEXT = PulpConsoleRepositoryVersionContext
77+ NEEDS_PLUGINS = [PluginRequirement ("console " , specifier = ">=1.0.0" )]
7878 CAPABILITIES = {
79- "sync" : [PluginRequirement ("internal " , specifier = ">=1.0.0" )],
79+ "sync" : [PluginRequirement ("console " , specifier = ">=1.0.0" )],
8080 }
8181
8282 # Add custom methods for your repository operations here
0 commit comments