Merge "Ensure the JSON-Schema covers the legacy v2 API" into stable/ocata
This commit is contained in:
commit
d90c5641cd
|
@ -74,7 +74,7 @@ class EvacuateController(wsgi.Controller):
|
|||
# backwards compatibility reasons.
|
||||
@extensions.expected_errors((400, 404, 409))
|
||||
@wsgi.action('evacuate')
|
||||
@validation.schema(evacuate.evacuate, "2.1", "2.13")
|
||||
@validation.schema(evacuate.evacuate, "2.0", "2.13")
|
||||
@validation.schema(evacuate.evacuate_v214, "2.14", "2.28")
|
||||
@validation.schema(evacuate.evacuate_v2_29, "2.29")
|
||||
def _evacuate(self, req, id, body):
|
||||
|
|
|
@ -65,7 +65,7 @@ class MigrateServerController(wsgi.Controller):
|
|||
@wsgi.response(202)
|
||||
@extensions.expected_errors((400, 404, 409))
|
||||
@wsgi.action('os-migrateLive')
|
||||
@validation.schema(migrate_server.migrate_live, "2.1", "2.24")
|
||||
@validation.schema(migrate_server.migrate_live, "2.0", "2.24")
|
||||
@validation.schema(migrate_server.migrate_live_v2_25, "2.25", "2.29")
|
||||
@validation.schema(migrate_server.migrate_live_v2_30, "2.30")
|
||||
def _migrate_live(self, req, id, body):
|
||||
|
|
|
@ -131,7 +131,7 @@ class ServerGroupController(wsgi.Controller):
|
|||
|
||||
@wsgi.Controller.api_version("2.1")
|
||||
@extensions.expected_errors((400, 403))
|
||||
@validation.schema(schema.create, "2.1", "2.14")
|
||||
@validation.schema(schema.create, "2.0", "2.14")
|
||||
@validation.schema(schema.create_v215, "2.15")
|
||||
def create(self, req, body):
|
||||
"""Creates a new server group."""
|
||||
|
|
Loading…
Reference in New Issue