Class BlobsModelFactory
BlobsModelFactory provides utilities for mocking.
Namespace: Azure.Storage.Blobs.Models
Assembly: Azure.Storage.Blobs.dll
Syntax
public static class BlobsModelFactory
Methods
AccountInfo(SkuName, AccountKind)
Creates a new AccountInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.AccountInfo AccountInfo (Azure.Storage.Blobs.Models.SkuName skuName, Azure.Storage.Blobs.Models.AccountKind accountKind);
Parameters
SkuName
skuName
|
AccountKind
accountKind
|
Returns
AccountInfo
|
BlobAppendInfo(ETag, DateTimeOffset, Byte[], Byte[], String, Int32, Boolean, String)
Creates a new BlobAppendInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobAppendInfo BlobAppendInfo (Azure.ETag eTag, DateTimeOffset lastModified, byte[] contentHash, byte[] contentCrc64, string blobAppendOffset, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256);
Parameters
ETag
eTag
|
DateTimeOffset
lastModified
|
Byte[]
contentHash
|
Byte[]
contentCrc64
|
String
blobAppendOffset
|
Int32
blobCommittedBlockCount
|
Boolean
isServerEncrypted
|
String
encryptionKeySha256
|
Returns
BlobAppendInfo
|
BlobBlock(String, Int32)
Creates a new BlobBlock instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobBlock BlobBlock (string name, int size);
Parameters
String
name
|
Int32
size
|
Returns
BlobBlock
|
BlobContainerAccessPolicy(PublicAccessType, ETag, DateTimeOffset, IEnumerable<BlobSignedIdentifier>)
Creates a new BlobContainerAccessPolicy instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobContainerAccessPolicy BlobContainerAccessPolicy (Azure.Storage.Blobs.Models.PublicAccessType blobPublicAccess, Azure.ETag eTag, DateTimeOffset lastModified, System.Collections.Generic.IEnumerable<Azure.Storage.Blobs.Models.BlobSignedIdentifier> signedIdentifiers);
Parameters
PublicAccessType
blobPublicAccess
|
ETag
eTag
|
DateTimeOffset
lastModified
|
IEnumerable<BlobSignedIdentifier>
signedIdentifiers
|
Returns
BlobContainerAccessPolicy
|
BlobContainerInfo(ETag, DateTimeOffset)
Creates a new BlobContainerInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobContainerInfo BlobContainerInfo (Azure.ETag eTag, DateTimeOffset lastModified);
Parameters
ETag
eTag
|
DateTimeOffset
lastModified
|
Returns
BlobContainerInfo
|
BlobContainerItem(String, BlobContainerProperties)
Creates a new BlobContainerItem instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobContainerItem BlobContainerItem (string name, Azure.Storage.Blobs.Models.BlobContainerProperties properties);
Parameters
String
name
|
BlobContainerProperties
properties
|
Returns
BlobContainerItem
|
BlobContainerProperties(DateTimeOffset, ETag, Nullable<LeaseStatus>, Nullable<LeaseState>, Nullable<LeaseDurationType>, Nullable<PublicAccessType>, Nullable<Boolean>, Nullable<Boolean>, IDictionary<String,String>)
Creates a new BlobContainerProperties instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobContainerProperties BlobContainerProperties (DateTimeOffset lastModified, Azure.ETag eTag, Nullable<Azure.Storage.Blobs.Models.LeaseStatus> leaseStatus = null, Nullable<Azure.Storage.Blobs.Models.LeaseState> leaseState = null, Nullable<Azure.Storage.Blobs.Models.LeaseDurationType> leaseDuration = null, Nullable<Azure.Storage.Blobs.Models.PublicAccessType> publicAccess = null, Nullable<bool> hasImmutabilityPolicy = null, Nullable<bool> hasLegalHold = null, System.Collections.Generic.IDictionary<string,string> metadata = null);
Parameters
DateTimeOffset
lastModified
|
ETag
eTag
|
Nullable<LeaseStatus>
leaseStatus
|
Nullable<LeaseState>
leaseState
|
Nullable<LeaseDurationType>
leaseDuration
|
Nullable<PublicAccessType>
publicAccess
|
Nullable<Boolean>
hasImmutabilityPolicy
|
Nullable<Boolean>
hasLegalHold
|
IDictionary<String,String>
metadata
|
Returns
BlobContainerProperties
|
BlobContentInfo(ETag, DateTimeOffset, Byte[], String, Int64)
Creates a new BlobContentInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobContentInfo BlobContentInfo (Azure.ETag eTag, DateTimeOffset lastModified, byte[] contentHash, string encryptionKeySha256, long blobSequenceNumber);
Parameters
ETag
eTag
|
DateTimeOffset
lastModified
|
Byte[]
contentHash
|
String
encryptionKeySha256
|
Int64
blobSequenceNumber
|
Returns
BlobContentInfo
|
BlobCopyInfo(ETag, DateTimeOffset, String, CopyStatus)
Creates a new BlobCopyInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobCopyInfo BlobCopyInfo (Azure.ETag eTag, DateTimeOffset lastModified, string copyId, Azure.Storage.Blobs.Models.CopyStatus copyStatus);
Parameters
ETag
eTag
|
DateTimeOffset
lastModified
|
String
copyId
|
CopyStatus
copyStatus
|
Returns
BlobCopyInfo
|
BlobDownloadInfo(DateTimeOffset, Int64, BlobType, Byte[], String, String, String, String, Uri, CopyStatus, String, LeaseDurationType, String, LeaseState, String, LeaseStatus, Byte[], String, ETag, Int32, String, Boolean, String, String, Int64, Byte[], IDictionary<String,String>, Stream, DateTimeOffset)
Creates a new BlobDownloadInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobDownloadInfo BlobDownloadInfo (DateTimeOffset lastModified = null, long blobSequenceNumber = 0, Azure.Storage.Blobs.Models.BlobType blobType = Azure.Storage.Blobs.Models.BlobType.Block, byte[] contentCrc64 = null, string contentLanguage = null, string copyStatusDescription = null, string copyId = null, string copyProgress = null, Uri copySource = null, Azure.Storage.Blobs.Models.CopyStatus copyStatus = Azure.Storage.Blobs.Models.CopyStatus.Pending, string contentDisposition = null, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration = Azure.Storage.Blobs.Models.LeaseDurationType.Infinite, string cacheControl = null, Azure.Storage.Blobs.Models.LeaseState leaseState = Azure.Storage.Blobs.Models.LeaseState.Available, string contentEncoding = null, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus = Azure.Storage.Blobs.Models.LeaseStatus.Locked, byte[] contentHash = null, string acceptRanges = null, Azure.ETag eTag = null, int blobCommittedBlockCount = 0, string contentRange = null, bool isServerEncrypted = false, string contentType = null, string encryptionKeySha256 = null, long contentLength = 0, byte[] blobContentHash = null, System.Collections.Generic.IDictionary<string,string> metadata = null, System.IO.Stream content = null, DateTimeOffset copyCompletionTime = null);
Parameters
DateTimeOffset
lastModified
|
Int64
blobSequenceNumber
|
BlobType
blobType
|
Byte[]
contentCrc64
|
String
contentLanguage
|
String
copyStatusDescription
|
String
copyId
|
String
copyProgress
|
Uri
copySource
|
CopyStatus
copyStatus
|
String
contentDisposition
|
LeaseDurationType
leaseDuration
|
String
cacheControl
|
LeaseState
leaseState
|
String
contentEncoding
|
LeaseStatus
leaseStatus
|
Byte[]
contentHash
|
String
acceptRanges
|
ETag
eTag
|
Int32
blobCommittedBlockCount
|
String
contentRange
|
Boolean
isServerEncrypted
|
String
contentType
|
String
encryptionKeySha256
|
Int64
contentLength
|
Byte[]
blobContentHash
|
IDictionary<String,String>
metadata
|
Stream
content
|
DateTimeOffset
copyCompletionTime
|
Returns
BlobDownloadInfo
|
BlobGeoReplication(BlobGeoReplicationStatus, Nullable<DateTimeOffset>)
Creates a new BlobGeoReplication instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobGeoReplication BlobGeoReplication (Azure.Storage.Blobs.Models.BlobGeoReplicationStatus status, Nullable<DateTimeOffset> lastSyncedOn = null);
Parameters
BlobGeoReplicationStatus
status
|
Nullable<DateTimeOffset>
lastSyncedOn
|
Returns
BlobGeoReplication
|
BlobHierarchyItem(String, BlobItem)
Creates a new BlobHierarchyItem instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobHierarchyItem BlobHierarchyItem (string prefix, Azure.Storage.Blobs.Models.BlobItem blob);
Parameters
String
prefix
|
BlobItem
blob
|
Returns
BlobHierarchyItem
|
BlobInfo(ETag, DateTimeOffset)
Creates a new BlobInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobInfo BlobInfo (Azure.ETag eTag, DateTimeOffset lastModified);
Parameters
ETag
eTag
|
DateTimeOffset
lastModified
|
Returns
BlobInfo
|
BlobItem(String, Boolean, BlobItemProperties, String, IDictionary<String,String>)
Creates a new BlobItem instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobItem BlobItem (string name, bool deleted, Azure.Storage.Blobs.Models.BlobItemProperties properties, string snapshot = null, System.Collections.Generic.IDictionary<string,string> metadata = null);
Parameters
String
name
|
Boolean
deleted
|
BlobItemProperties
properties
|
String
snapshot
|
IDictionary<String,String>
metadata
|
Returns
BlobItem
|
BlobItemProperties(Boolean, Uri, String, String, String, Byte[], String, String, Nullable<Int64>, Nullable<BlobType>, Nullable<LeaseStatus>, Nullable<LeaseState>, Nullable<LeaseDurationType>, String, Nullable<CopyStatus>, Nullable<Int64>, String, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Int32>, Nullable<AccessTier>, Nullable<DateTimeOffset>, Nullable<ArchiveStatus>, String, Nullable<ETag>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Creates a new BlobItemProperties instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobItemProperties BlobItemProperties (bool accessTierInferred, Uri copySource = null, string contentType = null, string contentEncoding = null, string contentLanguage = null, byte[] contentHash = null, string contentDisposition = null, string cacheControl = null, Nullable<long> blobSequenceNumber = null, Nullable<Azure.Storage.Blobs.Models.BlobType> blobType = null, Nullable<Azure.Storage.Blobs.Models.LeaseStatus> leaseStatus = null, Nullable<Azure.Storage.Blobs.Models.LeaseState> leaseState = null, Nullable<Azure.Storage.Blobs.Models.LeaseDurationType> leaseDuration = null, string copyId = null, Nullable<Azure.Storage.Blobs.Models.CopyStatus> copyStatus = null, Nullable<long> contentLength = null, string copyProgress = null, string copyStatusDescription = null, Nullable<bool> serverEncrypted = null, Nullable<bool> incrementalCopy = null, string destinationSnapshot = null, Nullable<int> remainingRetentionDays = null, Nullable<Azure.Storage.Blobs.Models.AccessTier> accessTier = null, Nullable<DateTimeOffset> lastModified = null, Nullable<Azure.Storage.Blobs.Models.ArchiveStatus> archiveStatus = null, string customerProvidedKeySha256 = null, Nullable<Azure.ETag> eTag = null, Nullable<DateTimeOffset> createdOn = null, Nullable<DateTimeOffset> copyCompletedOn = null, Nullable<DateTimeOffset> deletedOn = null, Nullable<DateTimeOffset> accessTierChangedOn = null);
Parameters
Boolean
accessTierInferred
|
Uri
copySource
|
String
contentType
|
String
contentEncoding
|
String
contentLanguage
|
Byte[]
contentHash
|
String
contentDisposition
|
String
cacheControl
|
Nullable<Int64>
blobSequenceNumber
|
Nullable<BlobType>
blobType
|
Nullable<LeaseStatus>
leaseStatus
|
Nullable<LeaseState>
leaseState
|
Nullable<LeaseDurationType>
leaseDuration
|
String
copyId
|
Nullable<CopyStatus>
copyStatus
|
Nullable<Int64>
contentLength
|
String
copyProgress
|
String
copyStatusDescription
|
Nullable<Boolean>
serverEncrypted
|
Nullable<Boolean>
incrementalCopy
|
String
destinationSnapshot
|
Nullable<Int32>
remainingRetentionDays
|
Nullable<AccessTier>
accessTier
|
Nullable<DateTimeOffset>
lastModified
|
Nullable<ArchiveStatus>
archiveStatus
|
String
customerProvidedKeySha256
|
Nullable<ETag>
eTag
|
Nullable<DateTimeOffset>
createdOn
|
Nullable<DateTimeOffset>
copyCompletedOn
|
Nullable<DateTimeOffset>
deletedOn
|
Nullable<DateTimeOffset>
accessTierChangedOn
|
Returns
BlobItemProperties
|
BlobLease(ETag, DateTimeOffset, String)
Creates a new BlobLease instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobLease BlobLease (Azure.ETag eTag, DateTimeOffset lastModified, string leaseId);
Parameters
ETag
eTag
|
DateTimeOffset
lastModified
|
String
leaseId
|
Returns
BlobLease
|
BlobProperties(DateTimeOffset, LeaseDurationType, LeaseState, LeaseStatus, Int64, String, ETag, Byte[], String, String, String, Boolean, String, CopyStatus, Int64, Uri, String, String, Int32, String, Boolean, String, String, DateTimeOffset, String, BlobType, Boolean, IDictionary<String,String>, String, DateTimeOffset, DateTimeOffset, String)
Creates a new BlobProperties instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties (DateTimeOffset lastModified, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, long contentLength, string destinationSnapshot, Azure.ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, bool isIncrementalCopy, string cacheControl, Azure.Storage.Blobs.Models.CopyStatus copyStatus, long blobSequenceNumber, Uri copySource, string acceptRanges, string copyProgress, int blobCommittedBlockCount, string copyId, bool isServerEncrypted, string copyStatusDescription, string encryptionKeySha256, DateTimeOffset copyCompletedOn, string accessTier, Azure.Storage.Blobs.Models.BlobType blobType, bool accessTierInferred, System.Collections.Generic.IDictionary<string,string> metadata, string archiveStatus, DateTimeOffset createdOn, DateTimeOffset accessTierChangedOn, string contentType);
Parameters
DateTimeOffset
lastModified
|
LeaseDurationType
leaseDuration
|
LeaseState
leaseState
|
LeaseStatus
leaseStatus
|
Int64
contentLength
|
String
destinationSnapshot
|
ETag
eTag
|
Byte[]
contentHash
|
String
contentEncoding
|
String
contentDisposition
|
String
contentLanguage
|
Boolean
isIncrementalCopy
|
String
cacheControl
|
CopyStatus
copyStatus
|
Int64
blobSequenceNumber
|
Uri
copySource
|
String
acceptRanges
|
String
copyProgress
|
Int32
blobCommittedBlockCount
|
String
copyId
|
Boolean
isServerEncrypted
|
String
copyStatusDescription
|
String
encryptionKeySha256
|
DateTimeOffset
copyCompletedOn
|
String
accessTier
|
BlobType
blobType
|
Boolean
accessTierInferred
|
IDictionary<String,String>
metadata
|
String
archiveStatus
|
DateTimeOffset
createdOn
|
DateTimeOffset
accessTierChangedOn
|
String
contentType
|
Returns
BlobProperties
|
BlobServiceStatistics(BlobGeoReplication)
Creates a new BlobServiceStatistics instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobServiceStatistics BlobServiceStatistics (Azure.Storage.Blobs.Models.BlobGeoReplication geoReplication = null);
Parameters
BlobGeoReplication
geoReplication
|
Returns
BlobServiceStatistics
|
BlobSnapshotInfo(String, ETag, DateTimeOffset, Boolean)
Creates a new BlobSnapshotInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlobSnapshotInfo BlobSnapshotInfo (string snapshot, Azure.ETag eTag, DateTimeOffset lastModified, bool isServerEncrypted);
Parameters
String
snapshot
|
ETag
eTag
|
DateTimeOffset
lastModified
|
Boolean
isServerEncrypted
|
Returns
BlobSnapshotInfo
|
BlockInfo(Byte[], Byte[], String)
Creates a new BlockInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlockInfo BlockInfo (byte[] contentHash, byte[] contentCrc64, string encryptionKeySha256);
Parameters
Byte[]
contentHash
|
Byte[]
contentCrc64
|
String
encryptionKeySha256
|
Returns
BlockInfo
|
BlockList(IEnumerable<BlobBlock>, IEnumerable<BlobBlock>)
Creates a new BlockList instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.BlockList BlockList (System.Collections.Generic.IEnumerable<Azure.Storage.Blobs.Models.BlobBlock> committedBlocks = null, System.Collections.Generic.IEnumerable<Azure.Storage.Blobs.Models.BlobBlock> uncommittedBlocks = null);
Parameters
IEnumerable<BlobBlock>
committedBlocks
|
IEnumerable<BlobBlock>
uncommittedBlocks
|
Returns
BlockList
|
PageBlobInfo(ETag, DateTimeOffset, Int64)
Creates a new PageBlobInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.PageBlobInfo PageBlobInfo (Azure.ETag eTag, DateTimeOffset lastModified, long blobSequenceNumber);
Parameters
ETag
eTag
|
DateTimeOffset
lastModified
|
Int64
blobSequenceNumber
|
Returns
PageBlobInfo
|
PageInfo(ETag, DateTimeOffset, Byte[], Byte[], Int64, String)
Creates a new PageInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.PageInfo PageInfo (Azure.ETag eTag, DateTimeOffset lastModified, byte[] contentHash, byte[] contentCrc64, long blobSequenceNumber, string encryptionKeySha256);
Parameters
ETag
eTag
|
DateTimeOffset
lastModified
|
Byte[]
contentHash
|
Byte[]
contentCrc64
|
Int64
blobSequenceNumber
|
String
encryptionKeySha256
|
Returns
PageInfo
|
PageRangesInfo(DateTimeOffset, ETag, Int64, IEnumerable<HttpRange>, IEnumerable<HttpRange>)
Creates a new PageRangesInfo instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.PageRangesInfo PageRangesInfo (DateTimeOffset lastModified, Azure.ETag eTag, long blobContentLength, System.Collections.Generic.IEnumerable<Azure.HttpRange> pageRanges, System.Collections.Generic.IEnumerable<Azure.HttpRange> clearRanges);
Parameters
DateTimeOffset
lastModified
|
ETag
eTag
|
Int64
blobContentLength
|
IEnumerable<HttpRange>
pageRanges
|
IEnumerable<HttpRange>
clearRanges
|
Returns
PageRangesInfo
|
UserDelegationKey(String, String, String, String, String, DateTimeOffset, DateTimeOffset)
Creates a new UserDelegationKey instance for mocking.
Declaration
public static Azure.Storage.Blobs.Models.UserDelegationKey UserDelegationKey (string signedObjectId, string signedTenantId, string signedService, string signedVersion, string value, DateTimeOffset signedExpiresOn, DateTimeOffset signedStartsOn);
Parameters
String
signedObjectId
|
String
signedTenantId
|
String
signedService
|
String
signedVersion
|
String
value
|
DateTimeOffset
signedExpiresOn
|
DateTimeOffset
signedStartsOn
|
Returns
UserDelegationKey
|