def abort_check_in(identifier, **params): api_method = 'Tournaments : Abort Check-in' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/abort_check_in' return tools.request('POST', target, api_method, prefix, 0, **params)
def destroy(identifier): api_method = 'Tournaments : Destroy' identifier = tools.convert_identifier(identifier) target = '/' + identifier return tools.request('DELETE', target, api_method, prefix, 0)
def process_check_ins(identifier, **params): api_method = 'Tournaments : Process Check-ins' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/process_check_ins' return tools.request('POST', target, api_method, prefix, 0, **params)
def bulk_add(identifier, **params): api_method = 'Participants : Bulk Add' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/bulk_add' return tools.request('POST', target, api_method, 'participants[]', 1, **params)
def update(identifier, **params): api_method = 'Tournaments : Update' identifier = tools.convert_identifier(identifier) target = '/' + identifier return tools.request('PUT', target, api_method, prefix, 1, **params)
def show(identifier, match_id, attachment_id): api_method = 'Match Attachments : Show' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/matches/' + str(match_id) + '/attachments/'\ + str(attachment_id) return tools.request('GET', target, api_method, prefix, 0)
def destroy(identifier, match_id, attachment_id): api_method = 'Match Attachments : Destroy' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/matches/' + str(match_id) + '/attachments/'\ + str(attachment_id) return tools.request('DELETE', target, api_method, prefix, 0)
def randomize(identifier): api_method = 'Participants : Randomize' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/randomize' return tools.request('POST', target, api_method, prefix, 0)
def show(identifier, match_id, **params): api_method = 'Matches : Show' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/matches/' + str(match_id) return tools.request('GET', target, api_method, prefix, 0, **params)
def undo_check_in(identifier, participant_id): api_method = 'Participants : Undo Check In' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/' + \ str(participant_id) + '/undo_check_in' return tools.request('POST', target, api_method, prefix, 0)
def destroy(identifier, participant_id): api_method = 'Participants : Destroy' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/' + str(participant_id) return tools.request('DELETE', target, api_method, prefix, 0)
def index(identifier): api_method = 'Participants : Index' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants' return tools.request('GET', target, api_method, prefix, 0)
def update(identifier, participant_id, **params): api_method = 'Participants : Update' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/' + str(participant_id) return tools.request('PUT', target, api_method, prefix, 1, **params)
def show(identifier, participant_id, **params): api_method = 'Participants : Show' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants/' + str(participant_id) return tools.request('GET', target, api_method, prefix, 0, **params)
def finalize(identifier, **params): api_method = 'Tournaments : Finalize' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/finalize' return tools.request('POST', target, api_method, prefix, 0, **params)
def reopen(identifier, match_id): api_method = 'Matches : Reopen' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/matches/' + str(match_id) + '/reopen' return tools.request('POST', target, api_method, prefix, 0)
def reset(identifier, **params): api_method = 'Tournaments : Reset' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/reset' return tools.request('POST', target, api_method, prefix, 0, **params)
def index(identifier, **params): api_method = 'Matches : Index' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/matches' return tools.request('GET', target, api_method, prefix, 0, **params)
def update(identifier, match_id, attachment_id, **params): api_method = 'Match Attachments : Update' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/matches/' + str(match_id) + '/attachments/'\ + str(attachment_id) return tools.request('PUT', target, api_method, prefix, 1, **params)
def show(identifier, **params): api_method = 'Tournaments : Show' identifier = tools.convert_identifier(identifier) target = '/' + identifier return tools.request('GET', target, api_method, prefix, 0, **params)
def index(identifier, match_id): api_method = 'Match Attachments : Index' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/matches/' + str(match_id) + '/attachments' return tools.request('GET', target, api_method, prefix, 0)
def create(identifier, **params): api_method = 'Participants : Create' identifier = tools.convert_identifier(identifier) target = '/' + identifier + '/participants' return tools.request('POST', target, api_method, prefix, 1, **params)