def delete_association_set(self, association_set): """Deletes an association set. """ check_resource_type(association_set, ASSOCIATION_SET_PATH, message="An association set id is needed.") association_set_id = get_association_set_id(association_set) if association_set_id: return self._delete("%s%s" % (self.url, association_set_id))
def get_association_set(self, association_set, query_string=''): """Retrieves an association set. """ check_resource_type(association_set, ASSOCIATION_SET_PATH, message="An association set id is needed.") association_set_id = get_association_set_id(association_set) if association_set_id: return self._get("%s%s" % (self.url, association_set_id), query_string)
def update_association_set(self, association_set, changes): """Updates a association set. """ check_resource_type(association_set, ASSOCIATION_SET_PATH, message="An association set id is needed.") association_set_id = get_association_set_id(association_set) if association_set_id: body = json.dumps(changes) return self._update("%s%s" % (self.url, association_set_id), body)