Azure.Storage.Files.DataLake.Models.DataLakeModelFactory
DataLakeModelFactory provides utilities for mocking.
public static DataLakeFileReadResult DataLakeFileReadResult(BinaryData content, FileDownloadDetails details)
Creates a new DataLakeFileReadResult instance for mocking.
public static DataLakeFileReadStreamingResult DataLakeFileReadStreamingResult(Stream content, FileDownloadDetails details)
Creates a new DataLakeFileReadStreamingResult instance for mocking.
public static DataLakeQueryError DataLakeQueryError(string name = null, string description = null, bool isFatal = false, long position = 0)
Creates a new BlobQueryError instance for mocking.
public static FileDownloadDetails FileDownloadDetails(DateTimeOffset lastModified, IDictionary<string, string> metadata, string contentRange, ETag eTag, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, Uri copySource, CopyStatus copyStatus, DataLakeLeaseDuration leaseDuration, DataLakeLeaseState leaseState, DataLakeLeaseStatus leaseStatus, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, byte[] contentHash, DateTimeOffset createdOn, string encryptionContext, IList<PathAccessControlItem> accessControlList)
Creates a new FileDownloadDetails instance for mocking.
public static FileDownloadDetails FileDownloadDetails(DateTimeOffset lastModified, IDictionary<string, string> metadata, string contentRange, ETag eTag, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, Uri copySource, CopyStatus copyStatus, DataLakeLeaseDuration leaseDuration, DataLakeLeaseState leaseState, DataLakeLeaseStatus leaseStatus, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, byte[] contentHash, DateTimeOffset createdOn, string encryptionContext)
Creates a new FileDownloadDetails instance for mocking.
public static FileDownloadDetails FileDownloadDetails(DateTimeOffset lastModified, IDictionary<string, string> metadata, string contentRange, ETag eTag, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, Uri copySource, CopyStatus copyStatus, DataLakeLeaseDuration leaseDuration, DataLakeLeaseState leaseState, DataLakeLeaseStatus leaseStatus, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, byte[] contentHash, DateTimeOffset createdOn)
Creates a new FileDownloadDetails instance for mocking.
public static FileDownloadDetails FileDownloadDetails(DateTimeOffset lastModified, IDictionary<string, string> metadata, string contentRange, ETag eTag, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, Uri copySource, CopyStatus copyStatus, DataLakeLeaseDuration leaseDuration, DataLakeLeaseState leaseState, DataLakeLeaseStatus leaseStatus, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, byte[] contentHash)
Creates a new FileDownloadDetails instance for mocking.
public static FileDownloadInfo FileDownloadInfo(long contentLength, Stream content, byte[] contentHash, FileDownloadDetails properties)
Creates a new FileDownloadInfo instance for mocking.
Creates a new FileSystemInfo instance for mocking.
public static FileSystemItem FileSystemItem(string name = null, bool? isDeleted = default, string versionId = null, FileSystemProperties properties = null)
Creates a new FileSystemItem instance for mocking.
Creates a new FileSystemItem" instance for mocking.
public static FileSystemProperties FileSystemProperties(DateTimeOffset lastModified = default, DataLakeLeaseStatus? leaseStatus = default, DataLakeLeaseState? leaseState = default, DataLakeLeaseDuration? leaseDuration = default, PublicAccessType? publicAccess = default, bool? hasImmutabilityPolicy = default, bool? hasLegalHold = default, ETag eTag = default, IDictionary<string, string> metadata = null, DateTimeOffset? deletedOn = default, int? remainingRetentionDays = default)
Creates a new FileSystemProperties instance for mocking.
public static FileSystemProperties FileSystemProperties(DateTimeOffset lastModified, DataLakeLeaseStatus? leaseStatus, DataLakeLeaseState? leaseState, DataLakeLeaseDuration? leaseDuration, PublicAccessType? publicAccess, bool? hasImmutabilityPolicy, bool? hasLegalHold, ETag eTag)
Creates a new FileSystemProperties instance for mocking.
public static DataLakeLease Lease(ETag eTag, DateTimeOffset lastModified, string leaseId, int? leaseTime)
Creates a new DataLakeLease instance for mocking.
public static PathAccessControl PathAccessControl(string owner, string group, PathPermissions permissions, IList<PathAccessControlItem> acl)
Creates a new PathAccessControl instance for mocking.
public static PathContentInfo PathContentInfo(string contentHash, ETag eTag, DateTimeOffset lastModified, string acceptRanges, string cacheControl, string contentDisposition, string contentEncoding, string contentLanguage, long contentLength, string contentRange, string contentType, IDictionary<string, string> metadata)
Creates a new PathContentInfo instance for mocking.
Creates a new PathCreateInfo instance for mocking.
Creates a new PathInfo instance for mocking.
public static PathItem PathItem(string name, bool? isDirectory, DateTimeOffset lastModified, ETag eTag, long? contentLength, string owner, string group, string permissions, DateTimeOffset? createdOn, DateTimeOffset? expiresOn, string encryptionContext)
Creates a new PathItem instance for mocking.
public static PathItem PathItem(string name, bool? isDirectory, DateTimeOffset lastModified, ETag eTag, long? contentLength, string owner, string group, string permissions, DateTimeOffset? createdOn, DateTimeOffset? expiresOn)
Creates a new PathItem instance for mocking.
public static PathItem PathItem(string name, bool? isDirectory, DateTimeOffset lastModified, ETag eTag, long? contentLength, string owner, string group, string permissions)
Creates a new PathItem instance for mocking.
public static PathProperties PathProperties(DateTimeOffset lastModified, DateTimeOffset creationTime, IDictionary<string, string> metadata, DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, Uri copySource, CopyStatus copyStatus, bool isIncrementalCopy, DataLakeLeaseDuration leaseDuration, DataLakeLeaseState leaseState, DataLakeLeaseStatus leaseStatus, long contentLength, string contentType, ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, string accessTier, string archiveStatus, DateTimeOffset accessTierChangeTime, bool isDirectory, string encryptionContext, string owner, string group, string permissions, IList<PathAccessControlItem> accessControlList)
Creates a new PathProperties instance for mocking.
public static PathProperties PathProperties(DateTimeOffset lastModified, DateTimeOffset creationTime, IDictionary<string, string> metadata, DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, Uri copySource, CopyStatus copyStatus, bool isIncrementalCopy, DataLakeLeaseDuration leaseDuration, DataLakeLeaseState leaseState, DataLakeLeaseStatus leaseStatus, long contentLength, string contentType, ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, string accessTier, string archiveStatus, DateTimeOffset accessTierChangeTime, bool isDirectory, string encryptionContext, string owner, string group, string permissions)
Creates a new PathProperties instance for mocking.
public static PathProperties PathProperties(DateTimeOffset lastModified, DateTimeOffset creationTime, IDictionary<string, string> metadata, DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, Uri copySource, CopyStatus copyStatus, bool isIncrementalCopy, DataLakeLeaseDuration leaseDuration, DataLakeLeaseState leaseState, DataLakeLeaseStatus leaseStatus, long contentLength, string contentType, ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, string accessTier, string archiveStatus, DateTimeOffset accessTierChangeTime, bool isDirectory, string encryptionContext)
Creates a new PathProperties instance for mocking.
public static PathProperties PathProperties(DateTimeOffset lastModified, DateTimeOffset creationTime, IDictionary<string, string> metadata, DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, Uri copySource, CopyStatus copyStatus, bool isIncrementalCopy, DataLakeLeaseDuration leaseDuration, DataLakeLeaseState leaseState, DataLakeLeaseStatus leaseStatus, long contentLength, string contentType, ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, string accessTier, string archiveStatus, DateTimeOffset accessTierChangeTime, bool isDirectory)
Creates a new PathProperties instance for mocking.
public static PathProperties PathProperties(DateTimeOffset lastModified, DateTimeOffset creationTime, IDictionary<string, string> metadata, DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, Uri copySource, CopyStatus copyStatus, bool isIncrementalCopy, DataLakeLeaseDuration leaseDuration, DataLakeLeaseState leaseState, DataLakeLeaseStatus leaseStatus, long contentLength, string contentType, ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, string accessTier, string archiveStatus, DateTimeOffset accessTierChangeTime)
Creates a new PathProperties instance for mocking.
public static UserDelegationKey UserDelegationKey(string signedObjectId, string signedTenantId, DateTimeOffset signedStart, DateTimeOffset signedExpiry, string signedService, string signedVersion, string value)
Creates a new UserDelegationKey instance for mocking.