schemaspaces.py 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # Copyright 2018-2022 Elyra Authors
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. from elyra.metadata.schema import Schemaspace
  16. class Runtimes(Schemaspace):
  17. RUNTIMES_SCHEMASPACE_ID = "130b8e00-de7c-4b32-b553-b4a52824a3b5"
  18. RUNTIMES_SCHEMASPACE_NAME = "runtimes"
  19. RUNTIMES_SCHEMASPACE_DISPLAY_NAME = "Runtimes"
  20. def __init__(self, *args, **kwargs):
  21. super().__init__(
  22. schemaspace_id=Runtimes.RUNTIMES_SCHEMASPACE_ID,
  23. name=Runtimes.RUNTIMES_SCHEMASPACE_NAME,
  24. display_name=Runtimes.RUNTIMES_SCHEMASPACE_DISPLAY_NAME,
  25. description="Schemaspace for instances of Elyra runtime configurations",
  26. )
  27. class RuntimeImages(Schemaspace):
  28. RUNTIME_IMAGES_SCHEMASPACE_ID = "119c9740-d73f-48c6-a97a-599d3acaf41d"
  29. RUNTIMES_IMAGES_SCHEMASPACE_NAME = "runtime-images"
  30. RUNTIMES_IMAGES_SCHEMASPACE_DISPLAY_NAME = "Runtime Images"
  31. def __init__(self, *args, **kwargs):
  32. super().__init__(
  33. schemaspace_id=RuntimeImages.RUNTIME_IMAGES_SCHEMASPACE_ID,
  34. name=RuntimeImages.RUNTIMES_IMAGES_SCHEMASPACE_NAME,
  35. display_name=RuntimeImages.RUNTIMES_IMAGES_SCHEMASPACE_DISPLAY_NAME,
  36. description="Schemaspace for instances of Elyra runtime images configurations",
  37. )
  38. class CodeSnippets(Schemaspace):
  39. CODE_SNIPPETS_SCHEMASPACE_ID = "aa60988f-8f7c-4d09-a243-c54ef9c2f7fb"
  40. CODE_SNIPPETS_SCHEMASPACE_NAME = "code-snippets"
  41. CODE_SNIPPETS_SCHEMASPACE_DISPLAY_NAME = "Code Snippets"
  42. def __init__(self, *args, **kwargs):
  43. super().__init__(
  44. schemaspace_id=CodeSnippets.CODE_SNIPPETS_SCHEMASPACE_ID,
  45. name=CodeSnippets.CODE_SNIPPETS_SCHEMASPACE_NAME,
  46. display_name=CodeSnippets.CODE_SNIPPETS_SCHEMASPACE_DISPLAY_NAME,
  47. description="Schemaspace for instances of Elyra code snippets configurations",
  48. )
  49. class ComponentCatalogs(Schemaspace):
  50. COMPONENT_CATALOGS_SCHEMASPACE_ID = "8dc89ca3-4b90-41fd-adb9-9510ad346620"
  51. COMPONENT_CATALOGS_SCHEMASPACE_NAME = "component-catalogs"
  52. COMPONENT_CATALOGS_SCHEMASPACE_DISPLAY_NAME = "Component Catalogs"
  53. def __init__(self, *args, **kwargs):
  54. super().__init__(
  55. schemaspace_id=ComponentCatalogs.COMPONENT_CATALOGS_SCHEMASPACE_ID,
  56. name=ComponentCatalogs.COMPONENT_CATALOGS_SCHEMASPACE_NAME,
  57. display_name=ComponentCatalogs.COMPONENT_CATALOGS_SCHEMASPACE_DISPLAY_NAME,
  58. description="Schemaspace for instances of Elyra component catalog configurations",
  59. )