create_protect_stage
project_id: The ID of the project.project_name: Name of the project. Ifproject_idis not provided, this will be used to look up the project.name: Name of the stage. Defaults to a generated name.stage_type: Type of the stage.pause: Whether the stage should be created in a paused state.prioritized_rulesets: List of rulesets for the stage.description: Description for the stage.
The newly created Stage.:
get_protect_stage
project_id: ID of the project.project_name: Name of the project. Ifproject_idis not provided, this will be used to look up the project.stage_id: ID of the stage to retrieve.stage_name: Name of the stage to retrieve. Ifstage_idis not provided, this will be used (in conjunction with project ID/name).
The fetched Stage.:
pause_protect_stage
project_id: ID of the project containing the stage.project_name: Name of the project containing the stage. (Used ifproject_idis not provided).stage_id: ID of the stage to pause.stage_name: Name of the stage to pause. (Used ifstage_idis not provided).
The Stage with its updated pause state.:
resume_protect_stage
project_id: ID of the project containing the stage.project_name: Name of the project containing the stage. (Used ifproject_idis not provided).stage_id: ID of the stage to resume.stage_name: Name of the stage to resume. (Used ifstage_idis not provided).
update_protect_stage
project_id: ID of the project.project_name: Name of the project. Ifproject_idis not provided, this will be used to look up the project.stage_id: ID of the stage to update.stage_name: Name of the stage to update. Ifstage_idis not provided, this will be used (in conjunction with project ID/name).prioritized_rulesets: New list of prioritized rulesets for the stage. IfNone, effectively clears existing rulesets.