def __init__(self): mapper = routes.Mapper() super(MonitoringApplication, self).__init__(mapper) mapper.connect( "monitor_table", "/projects/{project_id}/tables/{table_name}", controller=api_v1.create_resource( table_usage_details.TableUsageController()), conditions={'method': 'GET'}, action="table_usage_details" ) mapper.connect( "monitor_project", "/projects/{project_id}", controller=api_v1.create_resource( project_usage_details.ProjectUsageController()), conditions={'method': 'GET'}, action="project_usage_details" ) mapper.connect( "monitor_all_projects", "/projects", controller=api_v1.create_resource( all_projects_usage_details.AllProjectsUsageController()), conditions={'method': 'GET'}, action="projects_usage_details" )
def __init__(self): mapper = routes.Mapper() super(MagnetoDBApplication, self).__init__(mapper) amz_dynamodb_api_app = ( amazon_wsgi.AmazonResource( controller=amz_api_controller.AmzDynamoDBApiController()) ) mapper.extend(openstack_api, "/v1") mapper.connect("/", controller=amz_dynamodb_api_app, conditions={'method': 'POST'}, action="process_request") mapper.connect("/v1/{project_id}/data/tables", controller=create_resource( list_tables.ListTablesController()), conditions={'method': 'GET'}, action="list_tables") mapper.connect("/v1/{project_id}/data/tables", controller=create_resource( create_table.CreateTableController()), conditions={'method': 'POST'}, action="create_table")
def __init__(self): mapper = routes.Mapper() super(MonitoringApplication, self).__init__(mapper) mapper.connect( "list_monitored_tables", "/{project_id}/tables", conditions={'method': 'GET'}, controller=create_resource( monitoring_list_tables.MonitoringListTablesController()), action="list_tables") mapper.connect("monitor_table", "/{project_id}/tables/{table_name}", controller=create_resource( table_usage_details.TableUsageController()), conditions={'method': 'GET'}, action="table_usage_details")
def __init__(self): mapper = routes.Mapper() super(MonitoringApplication, self).__init__(mapper) mapper.connect( "list_monitored_tables", "/{project_id}/tables", conditions={'method': 'GET'}, controller=create_resource( monitoring_list_tables.MonitoringListTablesController()), action="list_tables" ) mapper.connect( "monitor_table", "/{project_id}/tables/{table_name}", controller=create_resource( table_usage_details.TableUsageController()), conditions={'method': 'GET'}, action="table_usage_details" )
def __init__(self): mapper = routes.Mapper() super(ManagementApplication, self).__init__(mapper) mapper.connect("create_backup", "/{project_id}/{table_name}/backups", conditions={'method': 'POST'}, controller=api_v1.create_resource( create_backup.CreateBackupController()), action="process_request") mapper.connect("list_backups", "/{project_id}/{table_name}/backups", conditions={'method': 'GET'}, controller=api_v1.create_resource( list_backups.ListBackupsController()), action="process_request") mapper.connect("describe_backup", "/{project_id}/{table_name}/backups/{backup_id}", conditions={'method': 'GET'}, controller=api_v1.create_resource( describe_backup.DescribeBackupController()), action="process_request") mapper.connect("delete_backup", "/{project_id}/{table_name}/backups/{backup_id}", conditions={'method': 'DELETE'}, controller=api_v1.create_resource( delete_backup.DeleteBackupController()), action="process_request") mapper.connect("create_restore_job", "/{project_id}/{table_name}/restores", conditions={'method': 'POST'}, controller=api_v1.create_resource( create_restore_job.CreateRestoreJobController()), action="process_request") mapper.connect("list_restore_jobs", "/{project_id}/{table_name}/restores", conditions={'method': 'GET'}, controller=api_v1.create_resource( list_restore_jobs.ListRestoreJobsController()), action="process_request") mapper.connect( "describe_restore_job", "/{project_id}/{table_name}/restores/{restore_job_id}", conditions={'method': 'GET'}, controller=api_v1.create_resource( describe_restore_job.DescribeRestoreJobController()), action="process_request")
def __init__(self): mapper = routes.Mapper() super(MonitoringApplication, self).__init__(mapper) mapper.connect("monitor_table", "/projects/{project_id}/tables/{table_name}", controller=api_v1.create_resource( table_usage_details.TableUsageController()), conditions={'method': 'GET'}, action="table_usage_details") mapper.connect("monitor_project", "/projects/{project_id}", controller=api_v1.create_resource( project_usage_details.ProjectUsageController()), conditions={'method': 'GET'}, action="project_usage_details") mapper.connect( "monitor_all_projects", "/projects", controller=api_v1.create_resource( all_projects_usage_details.AllProjectsUsageController()), conditions={'method': 'GET'}, action="projects_usage_details")
def __init__(self): mapper = routes.Mapper() super(MagnetoDBApplication, self).__init__(mapper) amz_dynamodb_api_app = ( amazon_wsgi.AmazonResource( controller=amz_api_controller.AmzDynamoDBApiController()) ) mapper.extend(openstack_api, "/v1") mapper.connect("/", controller=amz_dynamodb_api_app, conditions={'method': 'POST'}, action="process_request") mapper.connect("/v1/{project_id}/data/tables", controller=create_resource( list_tables.ListTablesController()), conditions={'method': 'GET'}, action="list_tables") mapper.connect("/v1/{project_id}/data/tables", controller=create_resource( create_table.CreateTableController()), conditions={'method': 'POST'}, action="create_table") mapper.connect("/v1/{project_id}/data/tables/{table_name}", controller=create_resource( describe_table.DescribeTableController()), conditions={'method': 'GET'}, action="describe_table") mapper.connect("/v1/{project_id}/data/tables/{table_name}/scan", controller=create_resource( scan.ScanController()), conditions={'method': 'POST'}, action="scan") mapper.connect("/v1/{project_id}/data/tables/{table_name}/query", controller=create_resource( query.QueryController()), conditions={'method': 'POST'}, action="query") mapper.connect("/v1/{project_id}/data/tables/{table_name}", controller=create_resource( delete_table.DeleteTableController()), conditions={'method': 'DELETE'}, action="delete_table")
def __init__(self): mapper = routes.Mapper() super(MagnetoDBApplication, self).__init__(mapper) mapper.connect("batch_write_item", "/{project_id}/data/batch_write_item", conditions={'method': 'POST'}, controller=create_resource( batch_write_item.BatchWriteItemController()), action="process_request"), mapper.connect("put_item", "/{project_id}/data/tables/{table_name}/put_item", conditions={'method': 'POST'}, controller=create_resource( put_item.PutItemController()), action="process_request"), mapper.connect("get_item", "/{project_id}/data/tables/{table_name}/get_item", conditions={'method': 'POST'}, controller=create_resource( get_item.GetItemController()), action="process_request"), mapper.connect("delete_item", "/{project_id}/data/tables/{table_name}/delete_item", conditions={'method': 'POST'}, controller=create_resource( delete_item.DeleteItemController()), action="process_request"), mapper.connect("update_item", "/{project_id}/data/tables/{table_name}/update_item", conditions={'method': 'POST'}, controller=create_resource( update_item.UpdateItemController()), action="process_request"), mapper.connect("batch_get_item", "/{project_id}/data/batch_get_item", conditions={'method': 'POST'}, controller=create_resource( batch_get_item.BatchGetItemController()), action="process_request"), mapper.connect("list_tables", "/{project_id}/data/tables", conditions={'method': 'GET'}, controller=create_resource( list_tables.ListTablesController()), action="list_tables"), mapper.connect("create_table", "/{project_id}/data/tables", conditions={'method': 'POST'}, controller=create_resource( create_table.CreateTableController()), action="create_table"), mapper.connect("describe_table", "/{project_id}/data/tables/{table_name}", conditions={'method': 'GET'}, controller=create_resource( describe_table.DescribeTableController()), action="describe_table"), mapper.connect("scan", "/{project_id}/data/tables/{table_name}/scan", conditions={'method': 'POST'}, controller=create_resource(scan.ScanController()), action="scan"), mapper.connect("query", "/{project_id}/data/tables/{table_name}/query", conditions={'method': 'POST'}, controller=create_resource(query.QueryController()), action="query"), mapper.connect("delete_table", "/{project_id}/data/tables/{table_name}", conditions={'method': 'DELETE'}, controller=create_resource( delete_table.DeleteTableController()), action="delete_table")
def __init__(self): mapper = routes.Mapper() super(ManagementApplication, self).__init__(mapper) mapper.connect( "create_backup", "/{project_id}/{table_name}/backups", conditions={'method': 'POST'}, controller=create_resource( create_backup.CreateBackupController()), action="process_request" ) mapper.connect( "list_backups", "/{project_id}/{table_name}/backups", conditions={'method': 'GET'}, controller=create_resource( list_backups.ListBackupsController()), action="process_request" ) mapper.connect( "describe_backup", "/{project_id}/{table_name}/backups/{backup_id}", conditions={'method': 'GET'}, controller=create_resource( describe_backup.DescribeBackupController()), action="process_request" ) mapper.connect( "delete_backup", "/{project_id}/{table_name}/backups/{backup_id}", conditions={'method': 'DELETE'}, controller=create_resource( delete_backup.DeleteBackupController()), action="process_request" ) mapper.connect( "create_restore_job", "/{project_id}/{table_name}/restores", conditions={'method': 'POST'}, controller=create_resource( create_restore_job.CreateRestoreJobController()), action="process_request" ) mapper.connect( "list_restore_jobs", "/{project_id}/{table_name}/restores", conditions={'method': 'GET'}, controller=create_resource( list_restore_jobs.ListRestoreJobsController()), action="process_request" ) mapper.connect( "describe_restore_job", "/{project_id}/{table_name}/restores/{restore_job_id}", conditions={'method': 'GET'}, controller=create_resource( describe_restore_job.DescribeRestoreJobController()), action="process_request" )
def __init__(self): mapper = routes.Mapper() super(MagnetoDBApplication, self).__init__(mapper) mapper.connect( "batch_write_item", "/{project_id}/batch_write_item", conditions={'method': 'POST'}, controller=create_resource( batch_write_item.BatchWriteItemController()), action="process_request" ) mapper.connect( "put_item", "/{project_id}/tables/{table_name}/put_item", conditions={'method': 'POST'}, controller=create_resource(put_item.PutItemController()), action="process_request" ) mapper.connect( "get_item", "/{project_id}/tables/{table_name}/get_item", conditions={'method': 'POST'}, controller=create_resource(get_item.GetItemController()), action="process_request" ) mapper.connect( "delete_item", "/{project_id}/tables/{table_name}/delete_item", conditions={'method': 'POST'}, controller=create_resource(delete_item.DeleteItemController()), action="process_request" ) mapper.connect( "update_item", "/{project_id}/tables/{table_name}/update_item", conditions={'method': 'POST'}, controller=create_resource(update_item.UpdateItemController()), action="process_request" ) mapper.connect( "batch_get_item", "/{project_id}/batch_get_item", conditions={'method': 'POST'}, controller=create_resource( batch_get_item.BatchGetItemController()), action="process_request" ) mapper.connect( "list_tables", "/{project_id}/tables", conditions={'method': 'GET'}, controller=create_resource(list_tables.ListTablesController()), action="list_tables" ) mapper.connect( "create_table", "/{project_id}/tables", conditions={'method': 'POST'}, controller=create_resource(create_table.CreateTableController()), action="create_table" ) mapper.connect( "describe_table", "/{project_id}/tables/{table_name}", conditions={'method': 'GET'}, controller=create_resource( describe_table.DescribeTableController()), action="describe_table" ) mapper.connect( "scan", "/{project_id}/tables/{table_name}/scan", conditions={'method': 'POST'}, controller=create_resource(scan.ScanController()), action="scan" ) mapper.connect( "query", "/{project_id}/tables/{table_name}/query", conditions={'method': 'POST'}, controller=create_resource(query.QueryController()), action="query" ) mapper.connect( "delete_table", "/{project_id}/tables/{table_name}", conditions={'method': 'DELETE'}, controller=create_resource(delete_table.DeleteTableController()), action="delete_table" )