'Create encryption type.
TODO: Current api-site doesn\'t contain this API description.
After fixing the api-site, we need to fix here also for putting
the link to api-site.'

def create_encryption_type(self, volume_type_id, **kwargs):

    url = ('/types/%s/encryption' % volume_type_id)
    post_body = json.dumps({'encryption': kwargs})
    (resp, body) = self.post(url, post_body)
    body = json.loads(body)
    self.expected_success(200, resp.status)
    return rest_client.ResponseBody(resp, body)
