1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #
- # Copyright 2018-2022 Elyra Authors
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- from elyra.metadata.schema import Schemaspace
- class Runtimes(Schemaspace):
- RUNTIMES_SCHEMASPACE_ID = "130b8e00-de7c-4b32-b553-b4a52824a3b5"
- RUNTIMES_SCHEMASPACE_NAME = "runtimes"
- RUNTIMES_SCHEMASPACE_DISPLAY_NAME = "Runtimes"
- def __init__(self, *args, **kwargs):
- super().__init__(
- schemaspace_id=Runtimes.RUNTIMES_SCHEMASPACE_ID,
- name=Runtimes.RUNTIMES_SCHEMASPACE_NAME,
- display_name=Runtimes.RUNTIMES_SCHEMASPACE_DISPLAY_NAME,
- description="Schemaspace for instances of Elyra runtime configurations",
- )
- class RuntimeImages(Schemaspace):
- RUNTIME_IMAGES_SCHEMASPACE_ID = "119c9740-d73f-48c6-a97a-599d3acaf41d"
- RUNTIMES_IMAGES_SCHEMASPACE_NAME = "runtime-images"
- RUNTIMES_IMAGES_SCHEMASPACE_DISPLAY_NAME = "Runtime Images"
- def __init__(self, *args, **kwargs):
- super().__init__(
- schemaspace_id=RuntimeImages.RUNTIME_IMAGES_SCHEMASPACE_ID,
- name=RuntimeImages.RUNTIMES_IMAGES_SCHEMASPACE_NAME,
- display_name=RuntimeImages.RUNTIMES_IMAGES_SCHEMASPACE_DISPLAY_NAME,
- description="Schemaspace for instances of Elyra runtime images configurations",
- )
- class CodeSnippets(Schemaspace):
- CODE_SNIPPETS_SCHEMASPACE_ID = "aa60988f-8f7c-4d09-a243-c54ef9c2f7fb"
- CODE_SNIPPETS_SCHEMASPACE_NAME = "code-snippets"
- CODE_SNIPPETS_SCHEMASPACE_DISPLAY_NAME = "Code Snippets"
- def __init__(self, *args, **kwargs):
- super().__init__(
- schemaspace_id=CodeSnippets.CODE_SNIPPETS_SCHEMASPACE_ID,
- name=CodeSnippets.CODE_SNIPPETS_SCHEMASPACE_NAME,
- display_name=CodeSnippets.CODE_SNIPPETS_SCHEMASPACE_DISPLAY_NAME,
- description="Schemaspace for instances of Elyra code snippets configurations",
- )
- class ComponentCatalogs(Schemaspace):
- COMPONENT_CATALOGS_SCHEMASPACE_ID = "8dc89ca3-4b90-41fd-adb9-9510ad346620"
- COMPONENT_CATALOGS_SCHEMASPACE_NAME = "component-catalogs"
- COMPONENT_CATALOGS_SCHEMASPACE_DISPLAY_NAME = "Component Catalogs"
- def __init__(self, *args, **kwargs):
- super().__init__(
- schemaspace_id=ComponentCatalogs.COMPONENT_CATALOGS_SCHEMASPACE_ID,
- name=ComponentCatalogs.COMPONENT_CATALOGS_SCHEMASPACE_NAME,
- display_name=ComponentCatalogs.COMPONENT_CATALOGS_SCHEMASPACE_DISPLAY_NAME,
- description="Schemaspace for instances of Elyra component catalog configurations",
- )
|