Rename key_management to key_manager
Some time ago, the Key Management service was renamed to Key Manager service in the governance repo. We originally stuck to naming it Key Management *because* it was named as such in the projects.yaml file, and because it has changed, we should follow how it's named there. Change-Id: Id5c1bd617a02e21e91f01ec095f817222c535138
This commit is contained in:
parent
f3f06b2067
commit
1c739d307e
@ -1,7 +1,7 @@
|
|||||||
Using OpenStack Key Management
|
Using OpenStack Key Manager
|
||||||
==============================
|
===========================
|
||||||
|
|
||||||
Before working with the Key Management service, you'll need to create a
|
Before working with the Key Manager service, you'll need to create a
|
||||||
connection to your OpenStack cloud by following the :doc:`connect` user
|
connection to your OpenStack cloud by following the :doc:`connect` user
|
||||||
guide. This will provide you with the ``conn`` variable used in the examples
|
guide. This will provide you with the ``conn`` variable used in the examples
|
||||||
below.
|
below.
|
@ -33,7 +33,7 @@ approach, this is where you'll want to begin.
|
|||||||
Database <guides/database>
|
Database <guides/database>
|
||||||
Identity <guides/identity>
|
Identity <guides/identity>
|
||||||
Image <guides/image>
|
Image <guides/image>
|
||||||
Key Management <guides/key_management>
|
Key Manager <guides/key_manager>
|
||||||
Network <guides/network>
|
Network <guides/network>
|
||||||
Object Store <guides/object_store>
|
Object Store <guides/object_store>
|
||||||
Orchestration <guides/orchestration>
|
Orchestration <guides/orchestration>
|
||||||
@ -73,7 +73,7 @@ but listed below are the ones provided by this SDK by default.
|
|||||||
Database <proxies/database>
|
Database <proxies/database>
|
||||||
Identity <proxies/identity>
|
Identity <proxies/identity>
|
||||||
Image <proxies/image>
|
Image <proxies/image>
|
||||||
Key Management <proxies/key_management>
|
Key Manager <proxies/key_manager>
|
||||||
Network <proxies/network>
|
Network <proxies/network>
|
||||||
Object Store <proxies/object_store>
|
Object Store <proxies/object_store>
|
||||||
Orchestration <proxies/orchestration>
|
Orchestration <proxies/orchestration>
|
||||||
@ -99,7 +99,7 @@ The following services have exposed *Resource* classes.
|
|||||||
Database <resources/database/index>
|
Database <resources/database/index>
|
||||||
Identity <resources/identity/index>
|
Identity <resources/identity/index>
|
||||||
Image <resources/image/index>
|
Image <resources/image/index>
|
||||||
Key Management <resources/key_management/index>
|
Key Management <resources/key_manager/index>
|
||||||
Metric <resources/metric/index>
|
Metric <resources/metric/index>
|
||||||
Network <resources/network/index>
|
Network <resources/network/index>
|
||||||
Orchestration <resources/orchestration/index>
|
Orchestration <resources/orchestration/index>
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
KeyManagement API
|
|
||||||
=================
|
|
||||||
|
|
||||||
For details on how to use key_management, see
|
|
||||||
:doc:`/users/guides/key_management`
|
|
||||||
|
|
||||||
.. automodule:: openstack.key_management.v1._proxy
|
|
||||||
|
|
||||||
The KeyManagement Class
|
|
||||||
-----------------------
|
|
||||||
|
|
||||||
The key_management high-level interface is available through the
|
|
||||||
``key_management`` member of a :class:`~openstack.connection.Connection`
|
|
||||||
object. The ``key_management`` member will only be added if the service is
|
|
||||||
detected.
|
|
||||||
|
|
||||||
.. autoclass:: openstack.key_management.v1._proxy.Proxy
|
|
||||||
:members:
|
|
18
doc/source/users/proxies/key_manager.rst
Normal file
18
doc/source/users/proxies/key_manager.rst
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
KeyManager API
|
||||||
|
==============
|
||||||
|
|
||||||
|
For details on how to use key_management, see
|
||||||
|
:doc:`/users/guides/key_manager`
|
||||||
|
|
||||||
|
.. automodule:: openstack.key_manager.v1._proxy
|
||||||
|
|
||||||
|
The KeyManager Class
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
The key_management high-level interface is available through the
|
||||||
|
``key_manager`` member of a :class:`~openstack.connection.Connection`
|
||||||
|
object. The ``key_manager`` member will only be added if the service is
|
||||||
|
detected.
|
||||||
|
|
||||||
|
.. autoclass:: openstack.key_manager.v1._proxy.Proxy
|
||||||
|
:members:
|
@ -1,12 +0,0 @@
|
|||||||
openstack.key_management.v1.order
|
|
||||||
=================================
|
|
||||||
|
|
||||||
.. automodule:: openstack.key_management.v1.order
|
|
||||||
|
|
||||||
The Order Class
|
|
||||||
---------------
|
|
||||||
|
|
||||||
The ``Order`` class inherits from :class:`~openstack.resource.Resource`.
|
|
||||||
|
|
||||||
.. autoclass:: openstack.key_management.v1.order.Order
|
|
||||||
:members:
|
|
@ -1,12 +0,0 @@
|
|||||||
openstack.key_management.v1.secret
|
|
||||||
==================================
|
|
||||||
|
|
||||||
.. automodule:: openstack.key_management.v1.secret
|
|
||||||
|
|
||||||
The Secret Class
|
|
||||||
----------------
|
|
||||||
|
|
||||||
The ``Secret`` class inherits from :class:`~openstack.resource.Resource`.
|
|
||||||
|
|
||||||
.. autoclass:: openstack.key_management.v1.secret.Secret
|
|
||||||
:members:
|
|
@ -1,5 +1,5 @@
|
|||||||
KeyManagement Resources
|
KeyManager Resources
|
||||||
=======================
|
====================
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
@ -1,12 +1,12 @@
|
|||||||
openstack.key_management.v1.container
|
openstack.key_manager.v1.container
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
.. automodule:: openstack.key_management.v1.container
|
.. automodule:: openstack.key_manager.v1.container
|
||||||
|
|
||||||
The Container Class
|
The Container Class
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
The ``Container`` class inherits from :class:`~openstack.resource.Resource`.
|
The ``Container`` class inherits from :class:`~openstack.resource.Resource`.
|
||||||
|
|
||||||
.. autoclass:: openstack.key_management.v1.container.Container
|
.. autoclass:: openstack.key_manager.v1.container.Container
|
||||||
:members:
|
:members:
|
12
doc/source/users/resources/key_manager/v1/order.rst
Normal file
12
doc/source/users/resources/key_manager/v1/order.rst
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
openstack.key_manager.v1.order
|
||||||
|
==============================
|
||||||
|
|
||||||
|
.. automodule:: openstack.key_manager.v1.order
|
||||||
|
|
||||||
|
The Order Class
|
||||||
|
---------------
|
||||||
|
|
||||||
|
The ``Order`` class inherits from :class:`~openstack.resource.Resource`.
|
||||||
|
|
||||||
|
.. autoclass:: openstack.key_manager.v1.order.Order
|
||||||
|
:members:
|
12
doc/source/users/resources/key_manager/v1/secret.rst
Normal file
12
doc/source/users/resources/key_manager/v1/secret.rst
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
openstack.key_manager.v1.secret
|
||||||
|
===============================
|
||||||
|
|
||||||
|
.. automodule:: openstack.key_manager.v1.secret
|
||||||
|
|
||||||
|
The Secret Class
|
||||||
|
----------------
|
||||||
|
|
||||||
|
The ``Secret`` class inherits from :class:`~openstack.resource.Resource`.
|
||||||
|
|
||||||
|
.. autoclass:: openstack.key_manager.v1.secret.Secret
|
||||||
|
:members:
|
@ -13,12 +13,12 @@
|
|||||||
from openstack import service_filter
|
from openstack import service_filter
|
||||||
|
|
||||||
|
|
||||||
class KeyManagementService(service_filter.ServiceFilter):
|
class KeyManagerService(service_filter.ServiceFilter):
|
||||||
"""The key management service."""
|
"""The key manager service."""
|
||||||
|
|
||||||
valid_versions = [service_filter.ValidVersion('v1')]
|
valid_versions = [service_filter.ValidVersion('v1')]
|
||||||
|
|
||||||
def __init__(self, version=None):
|
def __init__(self, version=None):
|
||||||
"""Create a key management service."""
|
"""Create a key manager service."""
|
||||||
super(KeyManagementService, self).__init__(service_type='key-manager',
|
super(KeyManagerService, self).__init__(service_type='key-manager',
|
||||||
version=version)
|
version=version)
|
@ -10,9 +10,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.key_management.v1 import container as _container
|
from openstack.key_manager.v1 import container as _container
|
||||||
from openstack.key_management.v1 import order as _order
|
from openstack.key_manager.v1 import order as _order
|
||||||
from openstack.key_management.v1 import secret as _secret
|
from openstack.key_manager.v1 import secret as _secret
|
||||||
from openstack import proxy
|
from openstack import proxy
|
||||||
|
|
||||||
|
|
||||||
@ -22,11 +22,11 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Create a new container from attributes
|
"""Create a new container from attributes
|
||||||
|
|
||||||
:param dict attrs: Keyword arguments which will be used to create
|
:param dict attrs: Keyword arguments which will be used to create
|
||||||
a :class:`~openstack.key_management.v1.container.Container`,
|
a :class:`~openstack.key_manager.v1.container.Container`,
|
||||||
comprised of the properties on the Container class.
|
comprised of the properties on the Container class.
|
||||||
|
|
||||||
:returns: The results of container creation
|
:returns: The results of container creation
|
||||||
:rtype: :class:`~openstack.key_management.v1.container.Container`
|
:rtype: :class:`~openstack.key_manager.v1.container.Container`
|
||||||
"""
|
"""
|
||||||
return self._create(_container.Container, **attrs)
|
return self._create(_container.Container, **attrs)
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Delete a container
|
"""Delete a container
|
||||||
|
|
||||||
:param container: The value can be either the ID of a container or a
|
:param container: The value can be either the ID of a container or a
|
||||||
:class:`~openstack.key_management.v1.container.Container`
|
:class:`~openstack.key_manager.v1.container.Container`
|
||||||
instance.
|
instance.
|
||||||
:param bool ignore_missing: When set to ``False``
|
:param bool ignore_missing: When set to ``False``
|
||||||
:class:`~openstack.exceptions.ResourceNotFound` will be
|
:class:`~openstack.exceptions.ResourceNotFound` will be
|
||||||
@ -56,7 +56,7 @@ class Proxy(proxy.BaseProxy):
|
|||||||
raised when the resource does not exist.
|
raised when the resource does not exist.
|
||||||
When set to ``True``, None will be returned when
|
When set to ``True``, None will be returned when
|
||||||
attempting to find a nonexistent resource.
|
attempting to find a nonexistent resource.
|
||||||
:returns: One :class:`~openstack.key_management.v1.container.Container`
|
:returns: One :class:`~openstack.key_manager.v1.container.Container`
|
||||||
or None
|
or None
|
||||||
"""
|
"""
|
||||||
return self._find(_container.Container, name_or_id,
|
return self._find(_container.Container, name_or_id,
|
||||||
@ -66,10 +66,10 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Get a single container
|
"""Get a single container
|
||||||
|
|
||||||
:param container: The value can be the ID of a container or a
|
:param container: The value can be the ID of a container or a
|
||||||
:class:`~openstack.key_management.v1.container.Container`
|
:class:`~openstack.key_manager.v1.container.Container`
|
||||||
instance.
|
instance.
|
||||||
|
|
||||||
:returns: One :class:`~openstack.key_management.v1.container.Container`
|
:returns: One :class:`~openstack.key_manager.v1.container.Container`
|
||||||
:raises: :class:`~openstack.exceptions.ResourceNotFound`
|
:raises: :class:`~openstack.exceptions.ResourceNotFound`
|
||||||
when no resource can be found.
|
when no resource can be found.
|
||||||
"""
|
"""
|
||||||
@ -82,7 +82,7 @@ class Proxy(proxy.BaseProxy):
|
|||||||
the resources being returned.
|
the resources being returned.
|
||||||
|
|
||||||
:returns: A generator of container objects
|
:returns: A generator of container objects
|
||||||
:rtype: :class:`~openstack.key_management.v1.container.Container`
|
:rtype: :class:`~openstack.key_manager.v1.container.Container`
|
||||||
"""
|
"""
|
||||||
return self._list(_container.Container, paginated=False, **query)
|
return self._list(_container.Container, paginated=False, **query)
|
||||||
|
|
||||||
@ -90,13 +90,13 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Update a container
|
"""Update a container
|
||||||
|
|
||||||
:param container: Either the id of a container or a
|
:param container: Either the id of a container or a
|
||||||
:class:`~openstack.key_management.v1.container.Container`
|
:class:`~openstack.key_manager.v1.container.Container`
|
||||||
instance.
|
instance.
|
||||||
:attrs kwargs: The attributes to update on the container represented
|
:attrs kwargs: The attributes to update on the container represented
|
||||||
by ``value``.
|
by ``value``.
|
||||||
|
|
||||||
:returns: The updated container
|
:returns: The updated container
|
||||||
:rtype: :class:`~openstack.key_management.v1.container.Container`
|
:rtype: :class:`~openstack.key_manager.v1.container.Container`
|
||||||
"""
|
"""
|
||||||
return self._update(_container.Container, container, **attrs)
|
return self._update(_container.Container, container, **attrs)
|
||||||
|
|
||||||
@ -104,11 +104,11 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Create a new order from attributes
|
"""Create a new order from attributes
|
||||||
|
|
||||||
:param dict attrs: Keyword arguments which will be used to create
|
:param dict attrs: Keyword arguments which will be used to create
|
||||||
a :class:`~openstack.key_management.v1.order.Order`,
|
a :class:`~openstack.key_manager.v1.order.Order`,
|
||||||
comprised of the properties on the Order class.
|
comprised of the properties on the Order class.
|
||||||
|
|
||||||
:returns: The results of order creation
|
:returns: The results of order creation
|
||||||
:rtype: :class:`~openstack.key_management.v1.order.Order`
|
:rtype: :class:`~openstack.key_manager.v1.order.Order`
|
||||||
"""
|
"""
|
||||||
return self._create(_order.Order, **attrs)
|
return self._create(_order.Order, **attrs)
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Delete an order
|
"""Delete an order
|
||||||
|
|
||||||
:param order: The value can be either the ID of a order or a
|
:param order: The value can be either the ID of a order or a
|
||||||
:class:`~openstack.key_management.v1.order.Order`
|
:class:`~openstack.key_manager.v1.order.Order`
|
||||||
instance.
|
instance.
|
||||||
:param bool ignore_missing: When set to ``False``
|
:param bool ignore_missing: When set to ``False``
|
||||||
:class:`~openstack.exceptions.ResourceNotFound` will be
|
:class:`~openstack.exceptions.ResourceNotFound` will be
|
||||||
@ -137,7 +137,7 @@ class Proxy(proxy.BaseProxy):
|
|||||||
raised when the resource does not exist.
|
raised when the resource does not exist.
|
||||||
When set to ``True``, None will be returned when
|
When set to ``True``, None will be returned when
|
||||||
attempting to find a nonexistent resource.
|
attempting to find a nonexistent resource.
|
||||||
:returns: One :class:`~openstack.key_management.v1.order.Order` or None
|
:returns: One :class:`~openstack.key_manager.v1.order.Order` or None
|
||||||
"""
|
"""
|
||||||
return self._find(_order.Order, name_or_id,
|
return self._find(_order.Order, name_or_id,
|
||||||
ignore_missing=ignore_missing)
|
ignore_missing=ignore_missing)
|
||||||
@ -146,10 +146,10 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Get a single order
|
"""Get a single order
|
||||||
|
|
||||||
:param order: The value can be the ID of an order or a
|
:param order: The value can be the ID of an order or a
|
||||||
:class:`~openstack.key_management.v1.order.Order`
|
:class:`~openstack.key_manager.v1.order.Order`
|
||||||
instance.
|
instance.
|
||||||
|
|
||||||
:returns: One :class:`~openstack.key_management.v1.order.Order`
|
:returns: One :class:`~openstack.key_manager.v1.order.Order`
|
||||||
:raises: :class:`~openstack.exceptions.ResourceNotFound`
|
:raises: :class:`~openstack.exceptions.ResourceNotFound`
|
||||||
when no resource can be found.
|
when no resource can be found.
|
||||||
"""
|
"""
|
||||||
@ -162,7 +162,7 @@ class Proxy(proxy.BaseProxy):
|
|||||||
the resources being returned.
|
the resources being returned.
|
||||||
|
|
||||||
:returns: A generator of order objects
|
:returns: A generator of order objects
|
||||||
:rtype: :class:`~openstack.key_management.v1.order.Order`
|
:rtype: :class:`~openstack.key_manager.v1.order.Order`
|
||||||
"""
|
"""
|
||||||
return self._list(_order.Order, paginated=False, **query)
|
return self._list(_order.Order, paginated=False, **query)
|
||||||
|
|
||||||
@ -170,13 +170,13 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Update a order
|
"""Update a order
|
||||||
|
|
||||||
:param order: Either the id of a order or a
|
:param order: Either the id of a order or a
|
||||||
:class:`~openstack.key_management.v1.order.Order`
|
:class:`~openstack.key_manager.v1.order.Order`
|
||||||
instance.
|
instance.
|
||||||
:attrs kwargs: The attributes to update on the order represented
|
:attrs kwargs: The attributes to update on the order represented
|
||||||
by ``value``.
|
by ``value``.
|
||||||
|
|
||||||
:returns: The updated order
|
:returns: The updated order
|
||||||
:rtype: :class:`~openstack.key_management.v1.order.Order`
|
:rtype: :class:`~openstack.key_manager.v1.order.Order`
|
||||||
"""
|
"""
|
||||||
return self._update(_order.Order, order, **attrs)
|
return self._update(_order.Order, order, **attrs)
|
||||||
|
|
||||||
@ -184,11 +184,11 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Create a new secret from attributes
|
"""Create a new secret from attributes
|
||||||
|
|
||||||
:param dict attrs: Keyword arguments which will be used to create a
|
:param dict attrs: Keyword arguments which will be used to create a
|
||||||
:class:`~openstack.key_management.v1.secret.Secret`,
|
:class:`~openstack.key_manager.v1.secret.Secret`,
|
||||||
comprised of the properties on the Order class.
|
comprised of the properties on the Order class.
|
||||||
|
|
||||||
:returns: The results of secret creation
|
:returns: The results of secret creation
|
||||||
:rtype: :class:`~openstack.key_management.v1.secret.Secret`
|
:rtype: :class:`~openstack.key_manager.v1.secret.Secret`
|
||||||
"""
|
"""
|
||||||
return self._create(_secret.Secret, **attrs)
|
return self._create(_secret.Secret, **attrs)
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Delete a secret
|
"""Delete a secret
|
||||||
|
|
||||||
:param secret: The value can be either the ID of a secret or a
|
:param secret: The value can be either the ID of a secret or a
|
||||||
:class:`~openstack.key_management.v1.secret.Secret`
|
:class:`~openstack.key_manager.v1.secret.Secret`
|
||||||
instance.
|
instance.
|
||||||
:param bool ignore_missing: When set to ``False``
|
:param bool ignore_missing: When set to ``False``
|
||||||
:class:`~openstack.exceptions.ResourceNotFound` will be
|
:class:`~openstack.exceptions.ResourceNotFound` will be
|
||||||
@ -217,7 +217,7 @@ class Proxy(proxy.BaseProxy):
|
|||||||
raised when the resource does not exist.
|
raised when the resource does not exist.
|
||||||
When set to ``True``, None will be returned when
|
When set to ``True``, None will be returned when
|
||||||
attempting to find a nonexistent resource.
|
attempting to find a nonexistent resource.
|
||||||
:returns: One :class:`~openstack.key_management.v1.secret.Secret` or
|
:returns: One :class:`~openstack.key_manager.v1.secret.Secret` or
|
||||||
None
|
None
|
||||||
"""
|
"""
|
||||||
return self._find(_secret.Secret, name_or_id,
|
return self._find(_secret.Secret, name_or_id,
|
||||||
@ -227,10 +227,10 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Get a single secret
|
"""Get a single secret
|
||||||
|
|
||||||
:param secret: The value can be the ID of a secret or a
|
:param secret: The value can be the ID of a secret or a
|
||||||
:class:`~openstack.key_management.v1.secret.Secret`
|
:class:`~openstack.key_manager.v1.secret.Secret`
|
||||||
instance.
|
instance.
|
||||||
|
|
||||||
:returns: One :class:`~openstack.key_management.v1.secret.Secret`
|
:returns: One :class:`~openstack.key_manager.v1.secret.Secret`
|
||||||
:raises: :class:`~openstack.exceptions.ResourceNotFound`
|
:raises: :class:`~openstack.exceptions.ResourceNotFound`
|
||||||
when no resource can be found.
|
when no resource can be found.
|
||||||
"""
|
"""
|
||||||
@ -243,7 +243,7 @@ class Proxy(proxy.BaseProxy):
|
|||||||
the resources being returned.
|
the resources being returned.
|
||||||
|
|
||||||
:returns: A generator of secret objects
|
:returns: A generator of secret objects
|
||||||
:rtype: :class:`~openstack.key_management.v1.secret.Secret`
|
:rtype: :class:`~openstack.key_manager.v1.secret.Secret`
|
||||||
"""
|
"""
|
||||||
return self._list(_secret.Secret, paginated=False, **query)
|
return self._list(_secret.Secret, paginated=False, **query)
|
||||||
|
|
||||||
@ -251,12 +251,12 @@ class Proxy(proxy.BaseProxy):
|
|||||||
"""Update a secret
|
"""Update a secret
|
||||||
|
|
||||||
:param secret: Either the id of a secret or a
|
:param secret: Either the id of a secret or a
|
||||||
:class:`~openstack.key_management.v1.secret.Secret`
|
:class:`~openstack.key_manager.v1.secret.Secret`
|
||||||
instance.
|
instance.
|
||||||
:attrs kwargs: The attributes to update on the secret represented
|
:attrs kwargs: The attributes to update on the secret represented
|
||||||
by ``value``.
|
by ``value``.
|
||||||
|
|
||||||
:returns: The updated secret
|
:returns: The updated secret
|
||||||
:rtype: :class:`~openstack.key_management.v1.secret.Secret`
|
:rtype: :class:`~openstack.key_manager.v1.secret.Secret`
|
||||||
"""
|
"""
|
||||||
return self._update(_secret.Secret, secret, **attrs)
|
return self._update(_secret.Secret, secret, **attrs)
|
@ -10,7 +10,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.key_management import key_management_service
|
from openstack.key_manager import key_manager_service
|
||||||
from openstack import resource
|
from openstack import resource
|
||||||
|
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ class Container(resource.Resource):
|
|||||||
id_attribute = 'container_ref'
|
id_attribute = 'container_ref'
|
||||||
resources_key = 'containers'
|
resources_key = 'containers'
|
||||||
base_path = '/containers'
|
base_path = '/containers'
|
||||||
service = key_management_service.KeyManagementService()
|
service = key_manager_service.KeyManagerService()
|
||||||
|
|
||||||
# capabilities
|
# capabilities
|
||||||
allow_create = True
|
allow_create = True
|
@ -10,14 +10,14 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.key_management import key_management_service
|
from openstack.key_manager import key_manager_service
|
||||||
from openstack import resource
|
from openstack import resource
|
||||||
|
|
||||||
|
|
||||||
class Order(resource.Resource):
|
class Order(resource.Resource):
|
||||||
resources_key = 'orders'
|
resources_key = 'orders'
|
||||||
base_path = '/orders'
|
base_path = '/orders'
|
||||||
service = key_management_service.KeyManagementService()
|
service = key_manager_service.KeyManagerService()
|
||||||
|
|
||||||
# capabilities
|
# capabilities
|
||||||
allow_create = True
|
allow_create = True
|
@ -10,7 +10,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.key_management import key_management_service
|
from openstack.key_manager import key_manager_service
|
||||||
from openstack import resource
|
from openstack import resource
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ class Secret(resource.Resource):
|
|||||||
resource_key = 'secret'
|
resource_key = 'secret'
|
||||||
resources_key = 'secrets'
|
resources_key = 'secrets'
|
||||||
base_path = '/secrets'
|
base_path = '/secrets'
|
||||||
service = key_management_service.KeyManagementService()
|
service = key_manager_service.KeyManagerService()
|
||||||
|
|
||||||
# capabilities
|
# capabilities
|
||||||
allow_create = True
|
allow_create = True
|
@ -62,7 +62,7 @@ from openstack.database import database_service
|
|||||||
from openstack import exceptions
|
from openstack import exceptions
|
||||||
from openstack.identity import identity_service
|
from openstack.identity import identity_service
|
||||||
from openstack.image import image_service
|
from openstack.image import image_service
|
||||||
from openstack.key_management import key_management_service
|
from openstack.key_manager import key_manager_service
|
||||||
from openstack.message import message_service
|
from openstack.message import message_service
|
||||||
from openstack import module_loader
|
from openstack import module_loader
|
||||||
from openstack.network import network_service
|
from openstack.network import network_service
|
||||||
@ -97,7 +97,7 @@ class Profile(object):
|
|||||||
self._add_service(network_service.NetworkService())
|
self._add_service(network_service.NetworkService())
|
||||||
self._add_service(object_store_service.ObjectStoreService())
|
self._add_service(object_store_service.ObjectStoreService())
|
||||||
self._add_service(orchestration_service.OrchestrationService())
|
self._add_service(orchestration_service.OrchestrationService())
|
||||||
self._add_service(key_management_service.KeyManagementService())
|
self._add_service(key_manager_service.KeyManagerService())
|
||||||
self._add_service(telemetry_service.TelemetryService())
|
self._add_service(telemetry_service.TelemetryService())
|
||||||
self._add_service(block_store_service.BlockStoreService())
|
self._add_service(block_store_service.BlockStoreService())
|
||||||
self._add_service(message_service.MessageService())
|
self._add_service(message_service.MessageService())
|
||||||
|
@ -12,13 +12,13 @@
|
|||||||
|
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from openstack.key_management import key_management_service
|
from openstack.key_manager import key_manager_service
|
||||||
|
|
||||||
|
|
||||||
class TestKeyManagementService(testtools.TestCase):
|
class TestKeyManagerService(testtools.TestCase):
|
||||||
|
|
||||||
def test_service(self):
|
def test_service(self):
|
||||||
sot = key_management_service.KeyManagementService()
|
sot = key_manager_service.KeyManagerService()
|
||||||
self.assertEqual('key-manager', sot.service_type)
|
self.assertEqual('key-manager', sot.service_type)
|
||||||
self.assertEqual('public', sot.interface)
|
self.assertEqual('public', sot.interface)
|
||||||
self.assertIsNone(sot.region)
|
self.assertIsNone(sot.region)
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from openstack.key_management.v1 import container
|
from openstack.key_manager.v1 import container
|
||||||
|
|
||||||
IDENTIFIER = 'http://localhost/containers/IDENTIFIER'
|
IDENTIFIER = 'http://localhost/containers/IDENTIFIER'
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from openstack.key_management.v1 import order
|
from openstack.key_manager.v1 import order
|
||||||
|
|
||||||
IDENTIFIER = 'IDENTIFIER'
|
IDENTIFIER = 'IDENTIFIER'
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
@ -10,10 +10,10 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.key_management.v1 import _proxy
|
from openstack.key_manager.v1 import _proxy
|
||||||
from openstack.key_management.v1 import container
|
from openstack.key_manager.v1 import container
|
||||||
from openstack.key_management.v1 import order
|
from openstack.key_manager.v1 import order
|
||||||
from openstack.key_management.v1 import secret
|
from openstack.key_manager.v1 import secret
|
||||||
from openstack.tests.unit import test_proxy_base
|
from openstack.tests.unit import test_proxy_base
|
||||||
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from openstack.key_management.v1 import secret
|
from openstack.key_manager.v1 import secret
|
||||||
|
|
||||||
IDENTIFIER = 'http://localhost:9311/v1/secrets/ID'
|
IDENTIFIER = 'http://localhost:9311/v1/secrets/ID'
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
Loading…
Reference in New Issue
Block a user