コード例 #1
0
def schema():
    """
    """
    schema = default_schema.copy()
    schema.update({
        'properties': {
            'username': {
                'type': 'string'
            },
            'shell': {
                'description': 'User\'s command shell',
                'type': 'string',
            },
            'realname': {
                'description': 'User\'s real name',
                'type': 'string',
            },
            'homedir': {
                'description': 'User\'s home directory location',
                'type': 'string'
            },
            'uid': {
                'description': 'Set user\'s ID to this',
                'type': 'integer',
                'minimum': 0,
                'maximum': 65535,
            },
            'gid': {
                'description': 'Set user\'s primary group ID to this',
                'type': 'integer',
                'minimum': 0,
                'maximum': 65535,
            },
            'system': {
                'description': 'Whether or not this user is a system user',
                'type': 'boolean',
            }
        },
        'required': ['username']
    })
    return schema
コード例 #2
0
ファイル: __init__.py プロジェクト: altoplano/squadron
def schema():
    """
    """
    schema = default_schema.copy()
    schema.update({'properties': {
            'username': {
                'type':'string'
            },
            'shell': {
                'description':'User\'s command shell',
                'type':'string',
            },
            'realname': {
                'description':'User\'s real name',
                'type':'string',
            },
            'homedir': {
                'description':'User\'s home directory location',
                'type':'string'
            },
            'uid': {
                'description':'Set user\'s ID to this',
                'type':'integer',
                'minimum': 0,
                'maximum': 65535,
            },
            'gid': {
                'description':'Set user\'s primary group ID to this',
                'type':'integer',
                'minimum': 0,
                'maximum': 65535,
            },
            'system': {
                'description':'Whether or not this user is a system user',
                'type':'boolean',
            }
        },
        'required':['username']
    })
    return schema
コード例 #3
0
ファイル: __init__.py プロジェクト: eheydrick/squadron
def schema():
    """
    The schema for this library
    """
    schema = default_schema.copy()
    schema.update({'properties': {
            'name': {
                'type':'string'
            },
            'gid': {
                'description':'Set groups\'s ID to this',
                'type':'integer',
                'minimum': 0,
                'maximum': 65535,
            },
            'system': {
                'description':'Whether or not this group is a system group',
                'type':'boolean',
            }
        },
        'required':['name']
    })
    return schema