Service type will be key-manager, but service in the SDK will be key_management. Change-Id: Ied4d98f356f2b80a7c4cfc38a2af95052deb34c0 Closes-Bug: #1420461
38 lines
1.2 KiB
Python
38 lines
1.2 KiB
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.key_management import key_management_service
|
|
from openstack import resource
|
|
|
|
|
|
class Container(resource.Resource):
|
|
id_attribute = 'container_ref'
|
|
resources_key = 'containers'
|
|
base_path = '/containers'
|
|
service = key_management_service.KeyManagementService()
|
|
|
|
# capabilities
|
|
allow_create = True
|
|
allow_retrieve = True
|
|
allow_update = True
|
|
allow_delete = True
|
|
allow_list = True
|
|
|
|
# Properties
|
|
container_ref = resource.prop('container_ref')
|
|
created = resource.prop('created')
|
|
name = resource.prop('name')
|
|
secret_refs = resource.prop('secret_refs')
|
|
status = resource.prop('status')
|
|
type = resource.prop('type')
|
|
updated = resource.prop('updated')
|