diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs index ed4e7acc0df5..02835f7319bb 100644 --- a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs @@ -550,6 +550,20 @@ internal BlobItem() { } public System.Collections.Generic.IDictionary Tags { get { throw null; } } public string VersionId { get { throw null; } } } + public partial class BlobItemInternal + { + internal BlobItemInternal() { } + public Azure.Storage.Blobs.Models.BlobTags BlobTags { get { throw null; } } + public bool Deleted { get { throw null; } } + public bool? IsCurrentVersion { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } } + public string ObjectReplicationPolicyId { get { throw null; } } + public System.Collections.Generic.IDictionary ObjectReplicationRuleStatus { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobItemProperties Properties { get { throw null; } } + public string Snapshot { get { throw null; } } + public string VersionId { get { throw null; } } + } public partial class BlobItemProperties { internal BlobItemProperties() { } @@ -643,6 +657,8 @@ public BlobProperties() { } public Azure.Storage.Blobs.Models.LeaseState LeaseState { get { throw null; } } public Azure.Storage.Blobs.Models.LeaseStatus LeaseStatus { get { throw null; } } public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string ObjectReplicationPolicyId { get { throw null; } } + public System.Collections.Generic.IDictionary ObjectReplicationRuleStatus { get { throw null; } } public long TagCount { get { throw null; } } public string VersionId { get { throw null; } } } @@ -711,13 +727,14 @@ public static partial class BlobsModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobItem BlobItem(string name, bool deleted, Azure.Storage.Blobs.Models.BlobItemProperties properties, string snapshot, System.Collections.Generic.IDictionary metadata) { throw null; } public static Azure.Storage.Blobs.Models.BlobItem BlobItem(string name, bool deleted, Azure.Storage.Blobs.Models.BlobItemProperties properties, string snapshot = null, string versionId = null, bool? isCurrentVersion = default(bool?), System.Collections.Generic.IDictionary metadata = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.Storage.Blobs.Models.BlobItemInternal BlobItemInternal(string name, bool deleted, Azure.Storage.Blobs.Models.BlobItemProperties properties, string snapshot = null, string versionId = null, bool? isCurrentVersion = default(bool?), System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobTags blobTags = null, string objectReplicationPolicyId = null, System.Collections.Generic.IDictionary objectReplicationRuleStatus = null) { throw null; } public static Azure.Storage.Blobs.Models.BlobItemProperties BlobItemProperties(bool accessTierInferred, string copyStatusDescription = null, string contentType = null, string contentEncoding = null, string contentLanguage = null, byte[] contentHash = null, string contentDisposition = null, string cacheControl = null, long? blobSequenceNumber = default(long?), Azure.Storage.Blobs.Models.BlobType? blobType = default(Azure.Storage.Blobs.Models.BlobType?), Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus = default(Azure.Storage.Blobs.Models.LeaseStatus?), Azure.Storage.Blobs.Models.LeaseState? leaseState = default(Azure.Storage.Blobs.Models.LeaseState?), Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration = default(Azure.Storage.Blobs.Models.LeaseDurationType?), string copyId = null, Azure.Storage.Blobs.Models.CopyStatus? copyStatus = default(Azure.Storage.Blobs.Models.CopyStatus?), System.Uri copySource = null, string copyProgress = null, long? contentLength = default(long?), bool? serverEncrypted = default(bool?), bool? incrementalCopy = default(bool?), string destinationSnapshot = null, int? remainingRetentionDays = default(int?), Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Azure.Storage.Blobs.Models.ArchiveStatus? archiveStatus = default(Azure.Storage.Blobs.Models.ArchiveStatus?), string customerProvidedKeySha256 = null, string encryptionScope = null, System.DateTimeOffset? expiresOn = default(System.DateTimeOffset?), bool? isSealed = default(bool?), Azure.ETag? eTag = default(Azure.ETag?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? copyCompletedOn = default(System.DateTimeOffset?), System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?), System.DateTimeOffset? accessTierChangedOn = default(System.DateTimeOffset?)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobItemProperties BlobItemProperties(bool accessTierInferred, System.Uri copySource, string contentType, string contentEncoding, string contentLanguage, byte[] contentHash, string contentDisposition, string cacheControl, long? blobSequenceNumber, Azure.Storage.Blobs.Models.BlobType? blobType, Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus, Azure.Storage.Blobs.Models.LeaseState? leaseState, Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration, string copyId, Azure.Storage.Blobs.Models.CopyStatus? copyStatus, long? contentLength, string copyProgress, string copyStatusDescription, bool? serverEncrypted, bool? incrementalCopy, string destinationSnapshot, int? remainingRetentionDays, Azure.Storage.Blobs.Models.AccessTier? accessTier, System.DateTimeOffset? lastModified, Azure.Storage.Blobs.Models.ArchiveStatus? archiveStatus, string customerProvidedKeySha256, Azure.ETag? eTag, System.DateTimeOffset? createdOn, System.DateTimeOffset? copyCompletedOn, System.DateTimeOffset? deletedOn, System.DateTimeOffset? accessTierChangedOn) { throw null; } public static Azure.Storage.Blobs.Models.BlobLease BlobLease(Azure.ETag eTag, System.DateTimeOffset lastModified, string leaseId) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties(System.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, System.Uri copySource, string acceptRanges, string copyProgress, int blobCommittedBlockCount, string copyId, bool isServerEncrypted, string copyStatusDescription, string encryptionKeySha256, System.DateTimeOffset copyCompletedOn, string accessTier, Azure.Storage.Blobs.Models.BlobType blobType, bool accessTierInferred, System.Collections.Generic.IDictionary metadata, string archiveStatus, System.DateTimeOffset createdOn, System.DateTimeOffset accessTierChangedOn, string contentType) { throw null; } - public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties(System.DateTimeOffset lastModified, long contentLength, string contentType, Azure.ETag eTag, byte[] contentHash, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, string contentDisposition, string contentLanguage, string cacheControl, long blobSequenceNumber, string acceptRanges, Azure.Storage.Blobs.Models.LeaseState leaseState, int blobCommittedBlockCount, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, bool isServerEncrypted, string destinationSnapshot, string encryptionKeySha256, bool isIncrementalCopy, string encryptionScope, Azure.Storage.Blobs.Models.CopyStatus copyStatus, string accessTier, System.Uri copySource, bool accessTierInferred, string copyProgress, string archiveStatus, string copyId, System.DateTimeOffset accessTierChangedOn, string copyStatusDescription, string versionId, System.DateTimeOffset copyCompletedOn, bool isCurrentVersion, Azure.Storage.Blobs.Models.BlobType blobType, long tagCount, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset expiresOn, System.DateTimeOffset createdOn, bool isSealed, string contentEncoding) { throw null; } + public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties(System.DateTimeOffset lastModified, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, long contentLength, string contentType, Azure.ETag eTag, Azure.Storage.Blobs.Models.LeaseState leaseState, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, long blobSequenceNumber, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, string acceptRanges, string destinationSnapshot, int blobCommittedBlockCount, bool isIncrementalCopy, bool isServerEncrypted, Azure.Storage.Blobs.Models.CopyStatus copyStatus, string encryptionKeySha256, System.Uri copySource, string encryptionScope, string copyProgress, string accessTier, string copyId, bool accessTierInferred, string copyStatusDescription, string archiveStatus, System.DateTimeOffset copyCompletedOn, System.DateTimeOffset accessTierChangedOn, Azure.Storage.Blobs.Models.BlobType blobType, string versionId, System.Collections.Generic.IDictionary objectReplicationRuleStatus, bool isCurrentVersion, string objectReplicationPolicyId, long tagCount, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset expiresOn, System.DateTimeOffset createdOn, bool isSealed, byte[] contentHash) { throw null; } public static Azure.Storage.Blobs.Models.BlobServiceStatistics BlobServiceStatistics(Azure.Storage.Blobs.Models.BlobGeoReplication geoReplication = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobSnapshotInfo BlobSnapshotInfo(string snapshot, Azure.ETag eTag, System.DateTimeOffset lastModified, bool isServerEncrypted) { throw null; } @@ -760,6 +777,17 @@ public BlobStaticWebsite() { } public string ErrorDocument404Path { get { throw null; } set { } } public string IndexDocument { get { throw null; } set { } } } + public partial class BlobTag + { + public BlobTag() { } + public string Key { get { throw null; } set { } } + public string Value { get { throw null; } set { } } + } + public partial class BlobTags + { + public BlobTags() { } + public System.Collections.Generic.IList BlobTagSet { get { throw null; } } + } [System.FlagsAttribute] public enum BlobTraits { diff --git a/sdk/storage/Azure.Storage.Blobs/src/BlobExtensions.cs b/sdk/storage/Azure.Storage.Blobs/src/BlobExtensions.cs index 7e683d37026b..5c8dff49048c 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/BlobExtensions.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/BlobExtensions.cs @@ -17,7 +17,7 @@ internal static IDictionary ToTags(this BlobTags blobTags) return null; } Dictionary tags = new Dictionary(); - foreach (BlobTag blobTag in blobTags.BlobTagSet.BlobTagList) + foreach (BlobTag blobTag in blobTags.BlobTagSet) { tags[blobTag.Key] = blobTag.Value; } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs index 95c4ab0a3a78..599479fbee8d 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs @@ -3995,6 +3995,18 @@ internal static Azure.Core.HttpMessage DownloadAsync_CreateMessage( _value.Metadata[_headerPair.Name.Substring(10)] = _headerPair.Value; } } + if (response.Headers.TryGetValue("x-ms-or-policy-id", out _header)) + { + _value.ObjectReplicationPolicyId = _header; + } + _value.ObjectReplicationRuleStatus = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); + foreach (Azure.Core.HttpHeader _headerPair in response.Headers) + { + if (_headerPair.Name.StartsWith("x-ms-or-", System.StringComparison.InvariantCulture)) + { + _value.ObjectReplicationRuleStatus[_headerPair.Name.Substring(8)] = _headerPair.Value; + } + } if (response.Headers.TryGetValue("Content-Length", out _header)) { _value.ContentLength = long.Parse(_header, System.Globalization.CultureInfo.InvariantCulture); @@ -4135,6 +4147,18 @@ internal static Azure.Core.HttpMessage DownloadAsync_CreateMessage( _value.Metadata[_headerPair.Name.Substring(10)] = _headerPair.Value; } } + if (response.Headers.TryGetValue("x-ms-or-policy-id", out _header)) + { + _value.ObjectReplicationPolicyId = _header; + } + _value.ObjectReplicationRuleStatus = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); + foreach (Azure.Core.HttpHeader _headerPair in response.Headers) + { + if (_headerPair.Name.StartsWith("x-ms-or-", System.StringComparison.InvariantCulture)) + { + _value.ObjectReplicationRuleStatus[_headerPair.Name.Substring(8)] = _headerPair.Value; + } + } if (response.Headers.TryGetValue("Content-Length", out _header)) { _value.ContentLength = long.Parse(_header, System.Globalization.CultureInfo.InvariantCulture); @@ -4473,6 +4497,18 @@ internal static Azure.Core.HttpMessage GetPropertiesAsync_CreateMessage( _value.Metadata[_headerPair.Name.Substring(10)] = _headerPair.Value; } } + if (response.Headers.TryGetValue("x-ms-or-policy-id", out _header)) + { + _value.ObjectReplicationPolicyId = _header; + } + _value.ObjectReplicationRuleStatus = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); + foreach (Azure.Core.HttpHeader _headerPair in response.Headers) + { + if (_headerPair.Name.StartsWith("x-ms-or-", System.StringComparison.InvariantCulture)) + { + _value.ObjectReplicationRuleStatus[_headerPair.Name.Substring(8)] = _headerPair.Value; + } + } if (response.Headers.TryGetValue("x-ms-blob-type", out _header)) { _value.BlobType = Azure.Storage.Blobs.BlobRestClient.Serialization.ParseBlobType(_header); @@ -17599,7 +17635,7 @@ namespace Azure.Storage.Blobs.Models /// /// An Azure Storage blob /// - internal partial class BlobItemInternal + public partial class BlobItemInternal { /// /// Name @@ -17641,10 +17677,20 @@ internal partial class BlobItemInternal /// public Azure.Storage.Blobs.Models.BlobTags BlobTags { get; internal set; } + /// + /// ObjectReplicationPolicyId + /// + public string ObjectReplicationPolicyId { get; internal set; } + + /// + /// ObjectReplicationRuleStatus + /// + public System.Collections.Generic.IDictionary ObjectReplicationRuleStatus { get; internal set; } + /// /// Creates a new BlobItemInternal instance /// - public BlobItemInternal() + internal BlobItemInternal() : this(false) { } @@ -17660,6 +17706,7 @@ internal BlobItemInternal(bool skipInitialization) Properties = new Azure.Storage.Blobs.Models.BlobItemProperties(); Metadata = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); BlobTags = new Azure.Storage.Blobs.Models.BlobTags(); + ObjectReplicationRuleStatus = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); } } @@ -17717,12 +17764,62 @@ internal static Azure.Storage.Blobs.Models.BlobItemInternal FromXml(System.Xml.L { _value.BlobTags = Azure.Storage.Blobs.Models.BlobTags.FromXml(_child); } + _child = element.Element(System.Xml.Linq.XName.Get("ObjectReplicationPolicyId", "")); + if (_child != null) + { + _value.ObjectReplicationPolicyId = _child.Value; + } + _value.ObjectReplicationRuleStatus = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); + _child = element.Element(System.Xml.Linq.XName.Get("ObjectReplicationRuleStatus", "")); + if (_child != null) + { + foreach (System.Xml.Linq.XElement _pair in _child.Elements()) + { + _value.ObjectReplicationRuleStatus[_pair.Name.LocalName] = _pair.Value; + } + } CustomizeFromXml(element, _value); return _value; } static partial void CustomizeFromXml(System.Xml.Linq.XElement element, Azure.Storage.Blobs.Models.BlobItemInternal value); } + + /// + /// BlobsModelFactory provides utilities for mocking. + /// + public static partial class BlobsModelFactory + { + /// + /// Creates a new BlobItemInternal instance for mocking. + /// + public static BlobItemInternal BlobItemInternal( + string name, + bool deleted, + Azure.Storage.Blobs.Models.BlobItemProperties properties, + string snapshot = default, + string versionId = default, + bool? isCurrentVersion = default, + System.Collections.Generic.IDictionary metadata = default, + Azure.Storage.Blobs.Models.BlobTags blobTags = default, + string objectReplicationPolicyId = default, + System.Collections.Generic.IDictionary objectReplicationRuleStatus = default) + { + return new BlobItemInternal() + { + Name = name, + Deleted = deleted, + Properties = properties, + Snapshot = snapshot, + VersionId = versionId, + IsCurrentVersion = isCurrentVersion, + Metadata = metadata, + BlobTags = blobTags, + ObjectReplicationPolicyId = objectReplicationPolicyId, + ObjectReplicationRuleStatus = objectReplicationRuleStatus, + }; + } + } } #endregion class BlobItemInternal @@ -18429,6 +18526,16 @@ public partial class BlobProperties /// public System.Collections.Generic.IDictionary Metadata { get; internal set; } + /// + /// Optional. Only valid when Object Replication is enabled for the storage container and on the destination blob of the replication. + /// + public string ObjectReplicationPolicyId { get; internal set; } + + /// + /// Optional. Only valid when Object Replication is enabled for the storage container and on the source blob of the replication. When retrieving this header, it will return the header with the policy id and rule id (e.g. x-ms-or-policyid_ruleid), and the value will be the status of the replication (e.g. complete, failed). + /// + public System.Collections.Generic.IDictionary ObjectReplicationRuleStatus { get; internal set; } + /// /// The blob's type. /// @@ -18612,6 +18719,7 @@ public partial class BlobProperties public BlobProperties() { Metadata = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); + ObjectReplicationRuleStatus = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); } } @@ -18625,84 +18733,88 @@ public static partial class BlobsModelFactory /// public static BlobProperties BlobProperties( System.DateTimeOffset lastModified, + Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, long contentLength, string contentType, Azure.ETag eTag, - byte[] contentHash, - Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, + Azure.Storage.Blobs.Models.LeaseState leaseState, + string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, long blobSequenceNumber, + Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, string acceptRanges, - Azure.Storage.Blobs.Models.LeaseState leaseState, + string destinationSnapshot, int blobCommittedBlockCount, - Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, + bool isIncrementalCopy, bool isServerEncrypted, - string destinationSnapshot, + Azure.Storage.Blobs.Models.CopyStatus copyStatus, string encryptionKeySha256, - bool isIncrementalCopy, + System.Uri copySource, string encryptionScope, - Azure.Storage.Blobs.Models.CopyStatus copyStatus, + string copyProgress, string accessTier, - System.Uri copySource, + string copyId, bool accessTierInferred, - string copyProgress, + string copyStatusDescription, string archiveStatus, - string copyId, + System.DateTimeOffset copyCompletedOn, System.DateTimeOffset accessTierChangedOn, - string copyStatusDescription, + Azure.Storage.Blobs.Models.BlobType blobType, string versionId, - System.DateTimeOffset copyCompletedOn, + System.Collections.Generic.IDictionary objectReplicationRuleStatus, bool isCurrentVersion, - Azure.Storage.Blobs.Models.BlobType blobType, + string objectReplicationPolicyId, long tagCount, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset expiresOn, System.DateTimeOffset createdOn, bool isSealed, - string contentEncoding) + byte[] contentHash) { return new BlobProperties() { LastModified = lastModified, + LeaseStatus = leaseStatus, ContentLength = contentLength, ContentType = contentType, ETag = eTag, - ContentHash = contentHash, - LeaseStatus = leaseStatus, + LeaseState = leaseState, + ContentEncoding = contentEncoding, ContentDisposition = contentDisposition, ContentLanguage = contentLanguage, CacheControl = cacheControl, BlobSequenceNumber = blobSequenceNumber, + LeaseDuration = leaseDuration, AcceptRanges = acceptRanges, - LeaseState = leaseState, + DestinationSnapshot = destinationSnapshot, BlobCommittedBlockCount = blobCommittedBlockCount, - LeaseDuration = leaseDuration, + IsIncrementalCopy = isIncrementalCopy, IsServerEncrypted = isServerEncrypted, - DestinationSnapshot = destinationSnapshot, + CopyStatus = copyStatus, EncryptionKeySha256 = encryptionKeySha256, - IsIncrementalCopy = isIncrementalCopy, + CopySource = copySource, EncryptionScope = encryptionScope, - CopyStatus = copyStatus, + CopyProgress = copyProgress, AccessTier = accessTier, - CopySource = copySource, + CopyId = copyId, AccessTierInferred = accessTierInferred, - CopyProgress = copyProgress, + CopyStatusDescription = copyStatusDescription, ArchiveStatus = archiveStatus, - CopyId = copyId, + CopyCompletedOn = copyCompletedOn, AccessTierChangedOn = accessTierChangedOn, - CopyStatusDescription = copyStatusDescription, + BlobType = blobType, VersionId = versionId, - CopyCompletedOn = copyCompletedOn, + ObjectReplicationRuleStatus = objectReplicationRuleStatus, IsCurrentVersion = isCurrentVersion, - BlobType = blobType, + ObjectReplicationPolicyId = objectReplicationPolicyId, TagCount = tagCount, Metadata = metadata, ExpiresOn = expiresOn, CreatedOn = createdOn, IsSealed = isSealed, - ContentEncoding = contentEncoding, + ContentHash = contentHash, }; } } @@ -19317,7 +19429,7 @@ namespace Azure.Storage.Blobs.Models /// /// BlobTag /// - internal partial class BlobTag + public partial class BlobTag { /// /// Key @@ -19383,91 +19495,18 @@ internal static Azure.Storage.Blobs.Models.BlobTag FromXml(System.Xml.Linq.XElem } #endregion class BlobTag -#region class BlobTagSet -namespace Azure.Storage.Blobs.Models -{ - /// - /// a collection of blob tags - /// - internal partial class BlobTagSet - { - /// - /// a collection of blob tags - /// - public System.Collections.Generic.IList BlobTagList { get; internal set; } - - /// - /// Creates a new BlobTagSet instance - /// - public BlobTagSet() - : this(false) - { - } - - /// - /// Creates a new BlobTagSet instance - /// - /// Whether to skip initializing nested objects. - internal BlobTagSet(bool skipInitialization) - { - if (!skipInitialization) - { - BlobTagList = new System.Collections.Generic.List(); - } - } - - /// - /// Serialize a BlobTagSet instance as XML. - /// - /// The BlobTagSet instance to serialize. - /// An optional name to use for the root element instead of "TagSet". - /// An optional namespace to use for the root element instead of "". - /// The serialized XML element. - internal static System.Xml.Linq.XElement ToXml(Azure.Storage.Blobs.Models.BlobTagSet value, string name = "TagSet", string ns = "") - { - System.Diagnostics.Debug.Assert(value != null); - System.Xml.Linq.XElement _element = new System.Xml.Linq.XElement(System.Xml.Linq.XName.Get(name, ns)); - foreach (Azure.Storage.Blobs.Models.BlobTag _child in value.BlobTagList) - { - _element.Add(Azure.Storage.Blobs.Models.BlobTag.ToXml(_child)); - } - return _element; - } - - /// - /// Deserializes XML into a new BlobTagSet instance. - /// - /// The XML element to deserialize. - /// A deserialized BlobTagSet instance. - internal static Azure.Storage.Blobs.Models.BlobTagSet FromXml(System.Xml.Linq.XElement element) - { - System.Diagnostics.Debug.Assert(element != null); - Azure.Storage.Blobs.Models.BlobTagSet _value = new Azure.Storage.Blobs.Models.BlobTagSet(true); - _value.BlobTagList = System.Linq.Enumerable.ToList( - System.Linq.Enumerable.Select( - element.Elements(System.Xml.Linq.XName.Get("Tag", "")), - e => Azure.Storage.Blobs.Models.BlobTag.FromXml(e))); - CustomizeFromXml(element, _value); - return _value; - } - - static partial void CustomizeFromXml(System.Xml.Linq.XElement element, Azure.Storage.Blobs.Models.BlobTagSet value); - } -} -#endregion class BlobTagSet - #region class BlobTags namespace Azure.Storage.Blobs.Models { /// /// Blob tags /// - internal partial class BlobTags + public partial class BlobTags { /// - /// a collection of blob tags + /// BlobTagSet /// - public Azure.Storage.Blobs.Models.BlobTagSet BlobTagSet { get; set; } + public System.Collections.Generic.IList BlobTagSet { get; internal set; } /// /// Creates a new BlobTags instance @@ -19485,7 +19524,7 @@ internal BlobTags(bool skipInitialization) { if (!skipInitialization) { - BlobTagSet = new Azure.Storage.Blobs.Models.BlobTagSet(); + BlobTagSet = new System.Collections.Generic.List(); } } @@ -19500,8 +19539,12 @@ internal static System.Xml.Linq.XElement ToXml(Azure.Storage.Blobs.Models.BlobTa { System.Diagnostics.Debug.Assert(value != null); System.Xml.Linq.XElement _element = new System.Xml.Linq.XElement(System.Xml.Linq.XName.Get(name, ns)); - _element.Add(Azure.Storage.Blobs.Models.BlobTagSet.ToXml(value.BlobTagSet, "TagSet", "")); - return _element; + System.Xml.Linq.XElement _elements = new System.Xml.Linq.XElement(System.Xml.Linq.XName.Get("TagSet", "")); + foreach (Azure.Storage.Blobs.Models.BlobTag _child in value.BlobTagSet) + { + _elements.Add(Azure.Storage.Blobs.Models.BlobTag.ToXml(_child)); + } + _element.Add(_elements);return _element; } /// @@ -19517,7 +19560,14 @@ internal static Azure.Storage.Blobs.Models.BlobTags FromXml(System.Xml.Linq.XEle _child = element.Element(System.Xml.Linq.XName.Get("TagSet", "")); if (_child != null) { - _value.BlobTagSet = Azure.Storage.Blobs.Models.BlobTagSet.FromXml(_child); + _value.BlobTagSet = System.Linq.Enumerable.ToList( + System.Linq.Enumerable.Select( + _child.Elements(System.Xml.Linq.XName.Get("Tag", "")), + e => Azure.Storage.Blobs.Models.BlobTag.FromXml(e))); + } + else + { + _value.BlobTagSet = new System.Collections.Generic.List(); } CustomizeFromXml(element, _value); return _value; @@ -21085,6 +21135,16 @@ internal partial class FlattenedDownloadProperties /// public System.Collections.Generic.IDictionary Metadata { get; internal set; } + /// + /// Optional. Only valid when Object Replication is enabled for the storage container and on the destination blob of the replication. + /// + public string ObjectReplicationPolicyId { get; internal set; } + + /// + /// Optional. Only valid when Object Replication is enabled for the storage container and on the source blob of the replication. When retrieving this header, it will return the header with the policy id and rule id (e.g. x-ms-or-policyid_ruleid), and the value will be the status of the replication (e.g. complete, failed). + /// + public System.Collections.Generic.IDictionary ObjectReplicationRuleStatus { get; internal set; } + /// /// The number of bytes present in the response body. /// @@ -21252,6 +21312,7 @@ internal partial class FlattenedDownloadProperties public FlattenedDownloadProperties() { Metadata = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); + ObjectReplicationRuleStatus = new System.Collections.Generic.Dictionary(System.StringComparer.OrdinalIgnoreCase); } } }