Module Values.DeletePullRequestApprovalRuleOutputSource

Deletes 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.

Sourcetype nonrec t = {
  1. 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.

    *)
}
Sourcetype nonrec error = [
  1. | `ApprovalRuleNameRequiredException of ApprovalRuleNameRequiredException.t
  2. | `CannotDeleteApprovalRuleFromTemplateException of CannotDeleteApprovalRuleFromTemplateException.t
  3. | `EncryptionIntegrityChecksFailedException of EncryptionIntegrityChecksFailedException.t
  4. | `EncryptionKeyAccessDeniedException of EncryptionKeyAccessDeniedException.t
  5. | `EncryptionKeyDisabledException of EncryptionKeyDisabledException.t
  6. | `EncryptionKeyNotFoundException of EncryptionKeyNotFoundException.t
  7. | `EncryptionKeyUnavailableException of EncryptionKeyUnavailableException.t
  8. | `InvalidApprovalRuleNameException of InvalidApprovalRuleNameException.t
  9. | `InvalidPullRequestIdException of InvalidPullRequestIdException.t
  10. | `PullRequestAlreadyClosedException of PullRequestAlreadyClosedException.t
  11. | `PullRequestDoesNotExistException of PullRequestDoesNotExistException.t
  12. | `PullRequestIdRequiredException of PullRequestIdRequiredException.t
  13. | `Unknown_operation_error of string * string option
]
Sourceval make : ?approvalRuleId:??? -> unit -> t
Sourceval 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 ]
Sourceval 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 ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ApprovalRuleId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t