from tempest.lib.api_schema.response.compute.v2_1 import parameter_types

get_fixed_ip = {
    'status_code': [200],
    'response_body': {
        'type': 'object',
        'properties': {
            'fixed_ip': {
                'type': 'object',
                'properties': {
                    'address': parameter_types.ip_address,
                    'cidr': {'type': 'string'},
                    'host': {'type': 'string'},
                    'hostname': {'type': 'string'}
                },
                'additionalProperties': False,
                'required': ['address', 'cidr', 'host', 'hostname']
            }
        },
        'additionalProperties': False,
        'required': ['fixed_ip']
    }
}

reserve_unreserve_fixed_ip = {
    'status_code': [202]
}
