Values.DeletePullRequestApprovalRuleOutputSourceDeletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.
type nonrec t = {approvalRuleId : ApprovalRuleId.t option;The ID of the deleted approval rule. If the approval rule was deleted in an earlier API call, the response is 200 OK without content.
*)}type nonrec error = [ | `ApprovalRuleNameRequiredException of ApprovalRuleNameRequiredException.t| `CannotDeleteApprovalRuleFromTemplateException of
CannotDeleteApprovalRuleFromTemplateException.t| `EncryptionIntegrityChecksFailedException of
EncryptionIntegrityChecksFailedException.t| `EncryptionKeyAccessDeniedException of EncryptionKeyAccessDeniedException.t| `EncryptionKeyDisabledException of EncryptionKeyDisabledException.t| `EncryptionKeyNotFoundException of EncryptionKeyNotFoundException.t| `InvalidApprovalRuleNameException of InvalidApprovalRuleNameException.t| `InvalidPullRequestIdException of InvalidPullRequestIdException.t| `PullRequestAlreadyClosedException of PullRequestAlreadyClosedException.t| `PullRequestDoesNotExistException of PullRequestDoesNotExistException.t| `PullRequestIdRequiredException of PullRequestIdRequiredException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `ApprovalRuleNameRequiredException of unit
| `CannotDeleteApprovalRuleFromTemplateException of unit
| `EncryptionIntegrityChecksFailedException of unit
| `EncryptionKeyAccessDeniedException of unit
| `EncryptionKeyDisabledException of unit
| `EncryptionKeyNotFoundException of unit
| `EncryptionKeyUnavailableException of unit
| `InvalidApprovalRuleNameException of unit
| `InvalidPullRequestIdException of unit
| `PullRequestAlreadyClosedException of unit
| `PullRequestDoesNotExistException of unit
| `PullRequestIdRequiredException of unit
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `ApprovalRuleNameRequiredException of unit
| `CannotDeleteApprovalRuleFromTemplateException of unit
| `EncryptionIntegrityChecksFailedException of unit
| `EncryptionKeyAccessDeniedException of unit
| `EncryptionKeyDisabledException of unit
| `EncryptionKeyNotFoundException of unit
| `EncryptionKeyUnavailableException of unit
| `InvalidApprovalRuleNameException of unit
| `InvalidPullRequestIdException of unit
| `PullRequestAlreadyClosedException of unit
| `PullRequestDoesNotExistException of unit
| `PullRequestIdRequiredException of unit
| `Unknown_operation_error of string * string option ]