Add types to barbican resource attributes
Change-Id: Idd024aaafae989ecb7d49f1ae48d4fa1b6a1cb1f
This commit is contained in:
parent
7dcb065b55
commit
4493b49186
|
@ -125,24 +125,43 @@ class Order(resource.Resource):
|
|||
}
|
||||
|
||||
attributes_schema = {
|
||||
STATUS: attributes.Schema(_('The status of the order.')),
|
||||
ORDER_REF: attributes.Schema(_('The URI to the order.')),
|
||||
SECRET_REF: attributes.Schema(_('The URI to the created secret.')),
|
||||
STATUS: attributes.Schema(
|
||||
_('The status of the order.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
ORDER_REF: attributes.Schema(
|
||||
_('The URI to the order.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
SECRET_REF: attributes.Schema(
|
||||
_('The URI to the created secret.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
CONTAINER_REF: attributes.Schema(
|
||||
_('The URI to the created container.'),
|
||||
support_status=support.SupportStatus(version='5.0.0')),
|
||||
support_status=support.SupportStatus(version='5.0.0'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
PUBLIC_KEY: attributes.Schema(
|
||||
_('The payload of the created public key, if available.'),
|
||||
support_status=support.SupportStatus(version='5.0.0')),
|
||||
support_status=support.SupportStatus(version='5.0.0'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
PRIVATE_KEY: attributes.Schema(
|
||||
_('The payload of the created private key, if available.'),
|
||||
support_status=support.SupportStatus(version='5.0.0')),
|
||||
support_status=support.SupportStatus(version='5.0.0'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
CERTIFICATE: attributes.Schema(
|
||||
_('The payload of the created certificate, if available.'),
|
||||
support_status=support.SupportStatus(version='5.0.0')),
|
||||
support_status=support.SupportStatus(version='5.0.0'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
INTERMEDIATES: attributes.Schema(
|
||||
_('The payload of the created intermediates, if available.'),
|
||||
support_status=support.SupportStatus(version='5.0.0')),
|
||||
support_status=support.SupportStatus(version='5.0.0'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
def barbican(self):
|
||||
|
|
|
@ -98,10 +98,12 @@ class Secret(resource.Resource):
|
|||
|
||||
attributes_schema = {
|
||||
STATUS: attributes.Schema(
|
||||
_('The status of the secret.')
|
||||
_('The status of the secret.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
DECRYPTED_PAYLOAD: attributes.Schema(
|
||||
_('The decrypted secret payload.')
|
||||
_('The decrypted secret payload.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue