reposDeleteDeploymentBranchPolicy
Delete a deployment branch policy
Details
- Method:
DELETE - Path:
/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id} - Operation ID:
repos/delete-deployment-branch-policy
Parameters
{
"owner": {
"description": "The account owner of the repository. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"repo": {
"description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"environment_name": {
"description": "The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.",
"required": true,
"location": "path",
"type": "string"
},
"branch_policy_id": {
"description": "The unique identifier of the branch policy.",
"required": true,
"location": "path",
"type": "integer"
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('reposDeleteDeploymentBranchPolicy', {
# Add required parameters here
})