mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added SimpleHostCacheSchema JSON schema
This commit is contained in:
parent
b3909ee4cc
commit
8bd7993e97
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue