The zaqar.api.v1_1.request module

class RequestSchema

Bases: zaqar.api.v1.request.RequestSchema

headers = {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}
schema = {'subscription_get': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['subscription_get']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'subscription_id': {'type': 'string'}}, 'required': ['queue_name', 'subscription_id']}}, 'required': ['action', 'headers', 'body']}, 'flavor_delete': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['flavor_delete']}, 'body': {'type': 'object', 'properties': {'flavor_name': {'type': 'string'}}, 'required': ['flavor_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'claim_create': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['claim_create']}, 'body': {'type': 'object', 'properties': {'limit': {'type': 'integer'}, 'queue_name': {'type': 'string'}, 'ttl': {'type': 'integer'}, 'grace': {'type': 'integer'}}, 'required': ['queue_name']}}, 'required': ['action', 'headers', 'body']}, 'queue_create': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['queue_create']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}}, 'required': ['queue_name']}}, 'required': ['action', 'headers', 'body']}, 'get_home_doc': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}}, 'action': {'enum': ['get_home_doc']}}, 'admin': True, 'required': ['action', 'headers']}, 'queue_get_stats': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['queue_get_stats']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}}, 'required': ['queue_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'check_node_health': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}}, 'action': {'enum': ['check_node_health']}}, 'admin': True, 'required': ['action', 'headers']}, 'message_delete': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['message_delete']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'message_id': {'type': 'string'}, 'claim_id': {'type': 'string'}}, 'required': ['queue_name', 'message_id']}}, 'required': ['action', 'headers', 'body']}, 'queue_list': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['queue_list']}, 'body': {'type': 'object', 'properties': {'limit': {'type': 'integer'}, 'marker': {'type': 'string'}, 'detailed': {'type': 'boolean'}}}}, 'required': ['action', 'headers']}, 'pool_list': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['pool_list']}, 'body': {'type': 'object', 'properties': {'limit': {'type': 'integer'}, 'marker': {'type': 'string'}, 'pool_name': {'type': 'string'}}, 'required': ['pool_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'pool_create': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['pool_create']}, 'body': {'type': 'object', 'properties': {'options': {'type': 'object'}, 'weight': {'type': 'integer'}, 'pool_name': {'type': 'string'}, 'uri': {'type': 'string'}}, 'required': ['pool_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'message_post': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['message_post']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'messages': {'type': 'array'}}, 'required': ['queue_name', 'messages']}}, 'required': ['action', 'headers', 'body']}, 'pool_delete': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['pool_delete']}, 'body': {'type': 'object', 'properties': {'pool_name': {'type': 'string'}}, 'required': ['pool_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'flavor_list': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['flavor_list']}, 'body': {'type': 'object', 'properties': {'limit': {'type': 'integer'}, 'marker': {'type': 'string'}, 'flavor_name': {'type': 'string'}}, 'required': ['flavor_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'queue_get': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['queue_get']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}}, 'required': ['queue_name']}}, 'required': ['action', 'headers', 'body']}, 'message_delete_many': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['message_delete_many']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'message_ids': {'type': 'array'}, 'pop': {'type': 'integer'}}, 'required': ['queue_name']}}, 'required': ['action', 'headers', 'body']}, 'claim_delete': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['claim_delete']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'claim_id': {'type': 'string'}}, 'required': ['queue_name', 'claim_id']}}, 'required': ['action', 'headers', 'body']}, 'pool_update': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['pool_update']}, 'body': {'type': 'object', 'properties': {'options': {'type': 'object'}, 'weight': {'type': 'integer'}, 'pool_name': {'type': 'string'}, 'uri': {'type': 'string'}}, 'required': ['pool_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'queue_delete': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['queue_delete']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}}, 'required': ['queue_name']}}, 'required': ['action', 'headers', 'body']}, 'flavor_get': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['flavor_get']}, 'body': {'type': 'object', 'properties': {'flavor_name': {'type': 'string'}, 'detailed': {'type': 'boolean'}}, 'required': ['flavor_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'ping_node': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}}, 'action': {'enum': ['ping_node']}}, 'admin': True, 'required': ['action', 'headers']}, 'message_get': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['message_get']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'message_id': {'type': 'string'}}, 'required': ['queue_name', 'message_id']}}, 'required': ['action', 'headers', 'body']}, 'subscription_delete': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['subscription_delete']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'subscription_id': {'type': 'string'}}, 'required': ['queue_name', 'subscription_id']}}, 'required': ['action', 'headers', 'body']}, 'authenticate': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['X-Project-ID', 'X-Auth-Token']}, 'action': {'enum': ['authenticate']}}, 'required': ['action', 'headers']}, 'pool_get': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['pool_get']}, 'body': {'type': 'object', 'properties': {'pool_name': {'type': 'string'}, 'detailed': {'type': 'boolean'}}, 'required': ['pool_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'message_get_many': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['message_get_many']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'message_ids': {'type': 'array'}}, 'required': ['queue_name', 'message_ids']}}, 'required': ['action', 'headers', 'body']}, 'flavor_create': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['flavor_create']}, 'body': {'type': 'object', 'properties': {'capabilities': {'type': 'object'}, 'flavor_name': {'type': 'string'}, 'pool_name': {'type': 'string'}}, 'required': ['flavor_name', 'pool_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'message_list': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['message_list']}, 'body': {'type': 'object', 'properties': {'limit': {'type': 'integer'}, 'queue_name': {'type': 'string'}, 'marker': {'type': 'string'}, 'echo': {'type': 'boolean'}, 'include_claimed': {'type': 'boolean'}}, 'required': ['queue_name']}}, 'required': ['action', 'headers', 'body']}, 'subscription_list': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['subscription_list']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}}, 'required': ['queue_name']}}, 'required': ['action', 'headers', 'body']}, 'claim_get': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['claim_get']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'claim_id': {'type': 'string'}}, 'required': ['queue_name', 'claim_id']}}, 'required': ['action', 'headers', 'body']}, 'flavor_update': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['flavor_update']}, 'body': {'type': 'object', 'properties': {'capabilities': {'type': 'object'}, 'flavor_name': {'type': 'string'}, 'pool_name': {'type': 'string'}}, 'required': ['flavor_name']}}, 'admin': True, 'required': ['action', 'headers', 'body']}, 'subscription_create': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['subscription_create']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'subscriber': {'type': 'string'}, 'ttl': {'type': 'integer'}, 'options': {'type': 'object'}}, 'required': ['queue_name']}}, 'required': ['action', 'headers', 'body']}, 'claim_update': {'properties': {'headers': {'type': 'object', 'properties': {'X-Project-ID': {'type': 'string'}, 'Client-ID': {'type': 'string'}, 'User-Agent': {'type': 'string'}, 'X-Auth-Token': {'type': 'string'}, 'Date': {'type': 'string'}, 'Accept': {'type': 'string'}}, 'required': ['Client-ID', 'X-Project-ID']}, 'action': {'enum': ['claim_update']}, 'body': {'type': 'object', 'properties': {'queue_name': {'type': 'string'}, 'ttl': {'type': 'integer'}, 'claim_id': {'type': 'string'}}, 'required': ['queue_name', 'claim_id']}}, 'required': ['action', 'headers', 'body']}}

Previous topic

The zaqar.api.v1.response module

Next topic

The zaqar.api.v1_1.response module

Project Source

This Page