Added SimpleHostCacheSchema JSON schema

This commit is contained in:
Alexandru Bleotu 2017-09-25 06:12:09 -04:00
parent b3909ee4cc
commit 8bd7993e97

View file

@ -18,6 +18,7 @@ from salt.utils.schema import (DefinitionsSchema,
ComplexSchemaItem,
ArrayItem,
IntegerItem,
BooleanItem,
StringItem)
@ -57,6 +58,22 @@ class DiskGroupsDiskIdSchema(DefinitionsSchema):
required=True)
class SimpleHostCacheSchema(Schema):
'''
Simplified Schema of ESXi host cache
'''
title = 'Simple Host Cache Schema'
description = 'Simplified schema of the ESXi host cache'
enabled = BooleanItem(
title='Enabled',
required=True)
datastore_name = StringItem(title='Datastore Name',
required=True)
swap_size_MiB = IntegerItem(title='Host cache swap size in MiB',
minimum=1)
class EsxiProxySchema(Schema):
'''
Schema of the esxi proxy input