2020-10-31 05:32:21 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2020 GNS3 Technologies Inc.
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2021-04-15 08:42:08 +00:00
|
|
|
# General schemas
|
2021-04-12 07:32:23 +00:00
|
|
|
from .config import ServerConfig
|
2020-10-31 05:32:21 +00:00
|
|
|
from .common import ErrorMessage
|
|
|
|
from .version import Version
|
|
|
|
|
2021-04-15 08:42:08 +00:00
|
|
|
# Controller schemas
|
2021-04-17 09:06:32 +00:00
|
|
|
from .controller.links import LinkCreate, LinkUpdate, Link
|
2022-06-06 16:38:59 +00:00
|
|
|
from .controller.computes import ComputeCreate, ComputeUpdate, ComputeVirtualBoxVM, ComputeVMwareVM, ComputeDockerImage, AutoIdlePC, Compute
|
2021-04-15 08:42:08 +00:00
|
|
|
from .controller.templates import TemplateCreate, TemplateUpdate, TemplateUsage, Template
|
2021-06-06 07:22:47 +00:00
|
|
|
from .controller.images import Image, ImageType
|
2021-10-19 04:45:10 +00:00
|
|
|
from .controller.appliances import ApplianceVersion, Appliance
|
2021-04-15 08:42:08 +00:00
|
|
|
from .controller.drawings import Drawing
|
|
|
|
from .controller.gns3vm import GNS3VM
|
|
|
|
from .controller.nodes import NodeCreate, NodeUpdate, NodeDuplicate, NodeCapture, Node
|
2022-05-31 11:08:34 +00:00
|
|
|
from .controller.projects import ProjectCreate, ProjectUpdate, ProjectDuplicate, Project, ProjectFile, ProjectCompression
|
2021-08-09 07:06:18 +00:00
|
|
|
from .controller.users import UserCreate, UserUpdate, LoggedInUserUpdate, User, Credentials, UserGroupCreate, UserGroupUpdate, UserGroup
|
2023-08-27 08:20:42 +00:00
|
|
|
from .controller.rbac import RoleCreate, RoleUpdate, Role, Privilege, ACECreate, ACEUpdate, ACE
|
2021-04-15 08:42:08 +00:00
|
|
|
from .controller.tokens import Token
|
|
|
|
from .controller.snapshots import SnapshotCreate, Snapshot
|
|
|
|
from .controller.iou_license import IOULicense
|
|
|
|
from .controller.capabilities import Capabilities
|
|
|
|
|
|
|
|
# Controller template schemas
|
2021-10-23 05:53:19 +00:00
|
|
|
from .controller.templates.vpcs_templates import VPCSTemplate, VPCSTemplateUpdate
|
|
|
|
from .controller.templates.cloud_templates import CloudTemplate, CloudTemplateUpdate
|
|
|
|
from .controller.templates.iou_templates import IOUTemplate, IOUTemplateUpdate
|
|
|
|
from .controller.templates.docker_templates import DockerTemplate, DockerTemplateUpdate
|
|
|
|
from .controller.templates.ethernet_hub_templates import EthernetHubTemplate, EthernetHubTemplateUpdate
|
|
|
|
from .controller.templates.ethernet_switch_templates import EthernetSwitchTemplate, EthernetSwitchTemplateUpdate
|
|
|
|
from .controller.templates.virtualbox_templates import VirtualBoxTemplate, VirtualBoxTemplateUpdate
|
|
|
|
from .controller.templates.vmware_templates import VMwareTemplate, VMwareTemplateUpdate
|
|
|
|
from .controller.templates.qemu_templates import QemuTemplate, QemuTemplateUpdate
|
2021-04-15 08:42:08 +00:00
|
|
|
from .controller.templates.dynamips_templates import (
|
2020-10-31 05:32:21 +00:00
|
|
|
DynamipsTemplate,
|
|
|
|
C1700DynamipsTemplate,
|
2021-10-23 05:53:19 +00:00
|
|
|
C1700DynamipsTemplateUpdate,
|
2020-10-31 05:32:21 +00:00
|
|
|
C2600DynamipsTemplate,
|
2021-10-23 05:53:19 +00:00
|
|
|
C2600DynamipsTemplateUpdate,
|
2020-10-31 05:32:21 +00:00
|
|
|
C2691DynamipsTemplate,
|
2021-10-23 05:53:19 +00:00
|
|
|
C2691DynamipsTemplateUpdate,
|
2020-10-31 05:32:21 +00:00
|
|
|
C3600DynamipsTemplate,
|
2021-10-23 05:53:19 +00:00
|
|
|
C3600DynamipsTemplateUpdate,
|
2020-10-31 05:32:21 +00:00
|
|
|
C3725DynamipsTemplate,
|
2021-10-23 05:53:19 +00:00
|
|
|
C3725DynamipsTemplateUpdate,
|
2020-10-31 05:32:21 +00:00
|
|
|
C3745DynamipsTemplate,
|
2021-10-23 05:53:19 +00:00
|
|
|
C3745DynamipsTemplateUpdate,
|
2021-04-13 09:16:50 +00:00
|
|
|
C7200DynamipsTemplate,
|
2021-10-23 05:53:19 +00:00
|
|
|
C7200DynamipsTemplateUpdate
|
2020-10-31 05:32:21 +00:00
|
|
|
)
|
2021-04-15 08:42:08 +00:00
|
|
|
|
|
|
|
# Compute schemas
|
|
|
|
from .compute.nios import UDPNIO, TAPNIO, EthernetNIO
|
|
|
|
from .compute.atm_switch_nodes import ATMSwitchCreate, ATMSwitchUpdate, ATMSwitch
|
|
|
|
from .compute.cloud_nodes import CloudCreate, CloudUpdate, Cloud
|
|
|
|
from .compute.docker_nodes import DockerCreate, DockerUpdate, Docker
|
|
|
|
from .compute.dynamips_nodes import DynamipsCreate, DynamipsUpdate, Dynamips
|
|
|
|
from .compute.ethernet_hub_nodes import EthernetHubCreate, EthernetHubUpdate, EthernetHub
|
|
|
|
from .compute.ethernet_switch_nodes import EthernetSwitchCreate, EthernetSwitchUpdate, EthernetSwitch
|
|
|
|
from .compute.frame_relay_switch_nodes import FrameRelaySwitchCreate, FrameRelaySwitchUpdate, FrameRelaySwitch
|
2022-04-07 08:21:47 +00:00
|
|
|
from .compute.qemu_nodes import QemuCreate, QemuUpdate, Qemu
|
2021-04-15 08:42:08 +00:00
|
|
|
from .compute.iou_nodes import IOUCreate, IOUUpdate, IOUStart, IOU
|
|
|
|
from .compute.nat_nodes import NATCreate, NATUpdate, NAT
|
|
|
|
from .compute.vpcs_nodes import VPCSCreate, VPCSUpdate, VPCS
|
|
|
|
from .compute.vmware_nodes import VMwareCreate, VMwareUpdate, VMware
|
|
|
|
from .compute.virtualbox_nodes import VirtualBoxCreate, VirtualBoxUpdate, VirtualBox
|
2022-04-07 08:21:47 +00:00
|
|
|
|
|
|
|
# Schemas for both controller and compute
|
|
|
|
from .qemu_disk_image import QemuDiskImageCreate, QemuDiskImageUpdate
|