Module Values.GetFileOutputSource

Returns the base-64 encoded contents of a specified file and its metadata.

Sourcetype nonrec t = {
  1. commitId : ObjectId.t option;
    (*

    The full commit ID of the commit that contains the content returned by GetFile.

    *)
  2. blobId : ObjectId.t option;
    (*

    The blob ID of the object that represents the file content.

    *)
  3. filePath : Path.t option;
    (*

    The fully qualified path to the specified file. Returns the name and extension of the file.

    *)
  4. fileMode : FileModeTypeEnum.t option;
    (*

    The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values. The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.

    *)
  5. fileSize : ObjectSize.t option;
    (*

    The size of the contents of the file, in bytes.

    *)
  6. fileContent : FileContent.t option;
    (*

    The base-64 encoded binary data object that represents the content of the file.

    *)
}
Sourcetype nonrec error = [
  1. | `CommitDoesNotExistException of CommitDoesNotExistException.t
  2. | `EncryptionIntegrityChecksFailedException of EncryptionIntegrityChecksFailedException.t
  3. | `EncryptionKeyAccessDeniedException of EncryptionKeyAccessDeniedException.t
  4. | `EncryptionKeyDisabledException of EncryptionKeyDisabledException.t
  5. | `EncryptionKeyNotFoundException of EncryptionKeyNotFoundException.t
  6. | `EncryptionKeyUnavailableException of EncryptionKeyUnavailableException.t
  7. | `FileDoesNotExistException of FileDoesNotExistException.t
  8. | `FileTooLargeException of FileTooLargeException.t
  9. | `InvalidCommitException of InvalidCommitException.t
  10. | `InvalidPathException of InvalidPathException.t
  11. | `InvalidRepositoryNameException of InvalidRepositoryNameException.t
  12. | `PathRequiredException of PathRequiredException.t
  13. | `RepositoryDoesNotExistException of RepositoryDoesNotExistException.t
  14. | `RepositoryNameRequiredException of RepositoryNameRequiredException.t
  15. | `Unknown_operation_error of string * string option
]
Sourceval make : ?commitId:??? -> ?blobId:??? -> ?filePath:??? -> ?fileMode:??? -> ?fileSize:??? -> ?fileContent:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `CommitDoesNotExistException of unit | `EncryptionIntegrityChecksFailedException of unit | `EncryptionKeyAccessDeniedException of unit | `EncryptionKeyDisabledException of unit | `EncryptionKeyNotFoundException of unit | `EncryptionKeyUnavailableException of unit | `FileDoesNotExistException of unit | `FileTooLargeException of unit | `InvalidCommitException of unit | `InvalidPathException of unit | `InvalidRepositoryNameException of unit | `PathRequiredException of unit | `RepositoryDoesNotExistException of unit | `RepositoryNameRequiredException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `CommitDoesNotExistException of unit | `EncryptionIntegrityChecksFailedException of unit | `EncryptionKeyAccessDeniedException of unit | `EncryptionKeyDisabledException of unit | `EncryptionKeyNotFoundException of unit | `EncryptionKeyUnavailableException of unit | `FileDoesNotExistException of unit | `FileTooLargeException of unit | `InvalidCommitException of unit | `InvalidPathException of unit | `InvalidRepositoryNameException of unit | `PathRequiredException of unit | `RepositoryDoesNotExistException of unit | `RepositoryNameRequiredException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Blob of FileContent.t | `Enum of string | `Long of ObjectSize.t | `String of ObjectId.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