
Firstly,let the client can work with some cyborg APIs. This patch supports some Cyborg APIs below. - devices API (v2) - only GET method - device_profiles API (v2) - accelerator_requests API (v2) - deployables API (v2) Accelerator in cloud layer supports create/delete/bind/unbind/list methods. Change-Id: Ibd7ea4dbd358b992f1114fd101ed0a4404156042
22 lines
811 B
Python
22 lines
811 B
Python
# 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 openstack import service_description
|
|
from openstack.accelerator.v2 import _proxy as _proxy_v2
|
|
|
|
|
|
class AcceleratorService(service_description.ServiceDescription):
|
|
"""The accelerator service."""
|
|
supported_versions = {
|
|
'2': _proxy_v2.Proxy,
|
|
}
|