Module crowdin_api.api_resources.branches.resource

Classes

class BranchesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)

Resource for Branches.

Branch CRUD and deletion status endpoints are available for both file-based and string-based projects. Clones and merges are available for string-based projects only.

Link to documentation: https://support.crowdin.com/developer/api/v2/#tag/Branches https://support.crowdin.com/developer/api/v2/string-based/#tag/Branches

Link to documentation for enterprise: https://support.crowdin.com/developer/enterprise/api/v2/#tag/Branches https://support.crowdin.com/developer/enterprise/api/v2/string-based/#tag/Branches

Ancestors

Methods

def add_branch(self, project_id: int, request_data: AddBranchRequest)
def check_branch_clone_status(self, project_id: int, branch_id: int, clone_id: str)
def check_branch_deletion_status(self, project_id: int, branch_id: int, job_identifier: str)
def check_branch_merge_status(self, project_id: int, branch_id: int, merge_id: Union[int, str])
def clone_branch(self, project_id: int, branch_id: int, request_data: CloneBranchRequest)
def delete_branch(self, project_id: int, branch_id: int, prefer: Optional[str] = None)
def edit_branch(self, project_id: int, branch_id: int, patches: Iterable[EditBranchPatch])
def get_branch(self, project_id: int, branch_id: int)
def get_branch_clones_path(self, project_id: int, branch_id: int, clone_id: Optional[str] = None)
def get_branch_merge_summary(self, project_id: int, branch_id: int, merge_id: Union[int, str])
def get_branch_merges_path(self, project_id: int, branch_id: int, merge_id: Union[int, str, None] = None)
def get_branches_path(self, project_id: int, branch_id: Optional[int] = None)
def get_cloned_branch(self, project_id: int, branch_id: int, clone_id: str)
def list_branches(self, project_id: int, name: Optional[str] = None, order_by: Optional[Sorting] = None, limit: Optional[int] = None, offset: Optional[int] = None)
def merge_branch(self, project_id: int, branch_id: int, request: MergeBranchRequest)