create_protect_stage
project_id
: The ID of the project.project_name
: Name of the project. Ifproject_id
is 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.
get_protect_stage
project_id
: ID of the project.project_name
: Name of the project. Ifproject_id
is 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_id
is not provided, this will be used (in conjunction with project ID/name).
update_protect_stage
project_id
: ID of the project.project_name
: Name of the project. Ifproject_id
is 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_id
is 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.
pause_protect_stage
project_id
: ID of the project containing the stage.project_name
: Name of the project containing the stage. (Used ifproject_id
is not provided).stage_id
: ID of the stage to pause.stage_name
: Name of the stage to pause. (Used ifstage_id
is not provided).
resume_protect_stage
project_id
: ID of the project containing the stage.project_name
: Name of the project containing the stage. (Used ifproject_id
is not provided).stage_id
: ID of the stage to resume.stage_name
: Name of the stage to resume. (Used ifstage_id
is not provided).