Module Values.CreatePullRequestApprovalRuleOutputSource

Creates an approval rule for a pull request.

Sourcetype nonrec t = {
  1. approvalRule : ApprovalRule.t option;
    (*

    Information about the created approval rule.

    *)
}
Sourcetype nonrec error = [
  1. | `ApprovalRuleContentRequiredException of ApprovalRuleContentRequiredException.t
  2. | `ApprovalRuleNameAlreadyExistsException of ApprovalRuleNameAlreadyExistsException.t
  3. | `ApprovalRuleNameRequiredException of ApprovalRuleNameRequiredException.t
  4. | `EncryptionIntegrityChecksFailedException of EncryptionIntegrityChecksFailedException.t
  5. | `EncryptionKeyAccessDeniedException of EncryptionKeyAccessDeniedException.t
  6. | `EncryptionKeyDisabledException of EncryptionKeyDisabledException.t
  7. | `EncryptionKeyNotFoundException of EncryptionKeyNotFoundException.t
  8. | `EncryptionKeyUnavailableException of EncryptionKeyUnavailableException.t
  9. | `InvalidApprovalRuleContentException of InvalidApprovalRuleContentException.t
  10. | `InvalidApprovalRuleNameException of InvalidApprovalRuleNameException.t
  11. | `InvalidPullRequestIdException of InvalidPullRequestIdException.t
  12. | `NumberOfRulesExceededException of NumberOfRulesExceededException.t
  13. | `PullRequestAlreadyClosedException of PullRequestAlreadyClosedException.t
  14. | `PullRequestDoesNotExistException of PullRequestDoesNotExistException.t
  15. | `PullRequestIdRequiredException of PullRequestIdRequiredException.t
  16. | `Unknown_operation_error of string * string option
]
Sourceval make : ?approvalRule:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ApprovalRuleContentRequiredException of unit | `ApprovalRuleNameAlreadyExistsException of unit | `ApprovalRuleNameRequiredException of unit | `EncryptionIntegrityChecksFailedException of unit | `EncryptionKeyAccessDeniedException of unit | `EncryptionKeyDisabledException of unit | `EncryptionKeyNotFoundException of unit | `EncryptionKeyUnavailableException of unit | `InvalidApprovalRuleContentException of unit | `InvalidApprovalRuleNameException of unit | `InvalidPullRequestIdException of unit | `NumberOfRulesExceededException 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 -> [> `ApprovalRuleContentRequiredException of unit | `ApprovalRuleNameAlreadyExistsException of unit | `ApprovalRuleNameRequiredException of unit | `EncryptionIntegrityChecksFailedException of unit | `EncryptionKeyAccessDeniedException of unit | `EncryptionKeyDisabledException of unit | `EncryptionKeyNotFoundException of unit | `EncryptionKeyUnavailableException of unit | `InvalidApprovalRuleContentException of unit | `InvalidApprovalRuleNameException of unit | `InvalidPullRequestIdException of unit | `NumberOfRulesExceededException 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 * [> `Structure of (string * [> `String of ApprovalRuleId.t | `Structure of (string * [> `String of ApprovalRuleTemplateId.t ]) list | `Timestamp of LastModifiedDate.t ]) list ]) 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