# See the License for the specific language governing permissions and
# limitations under the License.
-from flask_restx import Namespace, fields
+from flask_restx import fields
+from o2ims.views import api
-class OcloudDTO:
- api = Namespace("Ocloud", description='Ocloud related operations.')
+class OcloudDTO:
ocloud = api.model(
"OcloudList",
class ResourceTypeDTO:
- api = Namespace(
- "ResourceType", description='Resource type related operations.')
-
resource_type_get = api.model(
"ResourceTypeGet",
{
class ResourcePoolDTO:
- api = Namespace(
- "ResourcePool", description='Resource pool related operations.')
-
resource_pool_get = api.model(
"ResourcePoolGet",
{
class ResourceDTO:
- api = Namespace("Resource", description='Resource related operations.')
-
resource_list = api.model(
"ResourceList",
{
class DeploymentManagerDTO:
- api = Namespace("DeploymentManager",
- description='Deployment manager related operations.')
-
deployment_manager_get = api.model(
"DeploymentManagerGet",
{
class SubscriptionDTO:
- api = Namespace(
- "Subscription", description='Subscription related operations.')
-
subscription_get = api.model(
"SubscriptionGet",
{