125 lines
2.0 KiB
Python
125 lines
2.0 KiB
Python
# Copyright 2016 Intel Corporation
|
|
#
|
|
# 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 cratonclient.v1 import client as craton_client
|
|
from openstack_dashboard.api import base
|
|
from six.moves.urllib import request
|
|
|
|
|
|
def cratonclient():
|
|
url = base.url_for(request, 'craton')
|
|
c = craton_client.Client(session=request.session, url=url)
|
|
return c
|
|
|
|
|
|
def project_create(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def project_delete(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def project_list(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def project_show(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def project_update(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def region_create(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def region_delete(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def region_list(request, **kwargs):
|
|
return cratonclient(request).regions.list(**kwargs)
|
|
|
|
|
|
def region_show(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def region_update(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def cell_create(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def cell_delete(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def cell_list(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def cell_show(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def cell_update(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def device_create(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def device_delete(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def device_list(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def device_show(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def host_create(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def host_delete(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def host_list(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def host_show(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def host_update(request, **kwargs):
|
|
pass
|
|
|
|
|
|
def user_list(request, **kwargs):
|
|
pass
|