# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import jsonschema from magnetodb import storage from magnetodb.openstack.common.log import logging from magnetodb.storage import models from magnetodb.api.openstack.v1 import parser LOG = logging.getLogger(__name__) class QueryController(object): schema = { "required": [parser.Props.KEY_CONDITIONS], "properties": { parser.Props.ATTRIBUTES_TO_GET: { "type": "array", "items": { "type": "string", "pattern": parser.ATTRIBUTE_NAME_PATTERN } }, parser.Props.CONSISTENT_READ: {
# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from magnetodb import storage from magnetodb.api import validation from magnetodb.openstack.common.log import logging from magnetodb.api.openstack.v1 import parser from magnetodb.api.openstack.v1 import utils from magnetodb.common import probe LOG = logging.getLogger(__name__) class ListTablesController(): """Returns an array of table describing info associated with the current user in given tenant. """ @probe.Probe(__name__) def list_tables(self, req, project_id): utils.check_project_id(req.context, project_id) req.context.tenant = project_id params = req.params.copy() exclusive_start_table_name = params.pop( parser.Props.EXCLUSIVE_START_TABLE_NAME, None)