Skip to content

Commit d74bb18

Browse files
authored
[Storage] [Blobs] Added PageBlobCreateOptions.PremiumPageBlobAccessTier (Azure#49521)
* Added PageBlobCreateOptions.PremiumPageBlobAccessTier * Recording tests * Export-Api.ps1
1 parent ed285d9 commit d74bb18

11 files changed

+170
-5
lines changed

sdk/storage/Azure.Storage.Blobs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 12.25.0-beta.1 (Unreleased)
44

55
### Features Added
6+
- Added `PageBlobCreateOptions.PremiumPageBlobAccessTier` for `PageBlobClient.Create(..)`
67

78
### Breaking Changes
89

sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,7 @@ public PageBlobCreateOptions() { }
13991399
public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } set { } }
14001400
public bool? LegalHold { get { throw null; } set { } }
14011401
public System.Collections.Generic.IDictionary<string, string> Metadata { get { throw null; } set { } }
1402+
public Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier? PremiumPageBlobAccessTier { get { throw null; } set { } }
14021403
public long? SequenceNumber { get { throw null; } set { } }
14031404
public System.Collections.Generic.IDictionary<string, string> Tags { get { throw null; } set { } }
14041405
}
@@ -1472,6 +1473,33 @@ public enum PathRenameMode
14721473
Legacy = 0,
14731474
Posix = 1,
14741475
}
1476+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
1477+
public readonly partial struct PremiumPageBlobAccessTier : System.IEquatable<Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier>
1478+
{
1479+
private readonly object _dummy;
1480+
private readonly int _dummyPrimitive;
1481+
public PremiumPageBlobAccessTier(string value) { throw null; }
1482+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P10 { get { throw null; } }
1483+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P15 { get { throw null; } }
1484+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P20 { get { throw null; } }
1485+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P30 { get { throw null; } }
1486+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P4 { get { throw null; } }
1487+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P40 { get { throw null; } }
1488+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P50 { get { throw null; } }
1489+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P6 { get { throw null; } }
1490+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P60 { get { throw null; } }
1491+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P70 { get { throw null; } }
1492+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P80 { get { throw null; } }
1493+
public bool Equals(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier other) { throw null; }
1494+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1495+
public override bool Equals(object obj) { throw null; }
1496+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1497+
public override int GetHashCode() { throw null; }
1498+
public static bool operator ==(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier left, Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier right) { throw null; }
1499+
public static implicit operator Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier (string value) { throw null; }
1500+
public static bool operator !=(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier left, Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier right) { throw null; }
1501+
public override string ToString() { throw null; }
1502+
}
14751503
public enum PublicAccessType
14761504
{
14771505
None = 0,

sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net8.0.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,7 @@ public PageBlobCreateOptions() { }
13991399
public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } set { } }
14001400
public bool? LegalHold { get { throw null; } set { } }
14011401
public System.Collections.Generic.IDictionary<string, string> Metadata { get { throw null; } set { } }
1402+
public Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier? PremiumPageBlobAccessTier { get { throw null; } set { } }
14021403
public long? SequenceNumber { get { throw null; } set { } }
14031404
public System.Collections.Generic.IDictionary<string, string> Tags { get { throw null; } set { } }
14041405
}
@@ -1472,6 +1473,33 @@ public enum PathRenameMode
14721473
Legacy = 0,
14731474
Posix = 1,
14741475
}
1476+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
1477+
public readonly partial struct PremiumPageBlobAccessTier : System.IEquatable<Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier>
1478+
{
1479+
private readonly object _dummy;
1480+
private readonly int _dummyPrimitive;
1481+
public PremiumPageBlobAccessTier(string value) { throw null; }
1482+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P10 { get { throw null; } }
1483+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P15 { get { throw null; } }
1484+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P20 { get { throw null; } }
1485+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P30 { get { throw null; } }
1486+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P4 { get { throw null; } }
1487+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P40 { get { throw null; } }
1488+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P50 { get { throw null; } }
1489+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P6 { get { throw null; } }
1490+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P60 { get { throw null; } }
1491+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P70 { get { throw null; } }
1492+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P80 { get { throw null; } }
1493+
public bool Equals(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier other) { throw null; }
1494+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1495+
public override bool Equals(object obj) { throw null; }
1496+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1497+
public override int GetHashCode() { throw null; }
1498+
public static bool operator ==(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier left, Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier right) { throw null; }
1499+
public static implicit operator Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier (string value) { throw null; }
1500+
public static bool operator !=(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier left, Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier right) { throw null; }
1501+
public override string ToString() { throw null; }
1502+
}
14751503
public enum PublicAccessType
14761504
{
14771505
None = 0,

sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,7 @@ public PageBlobCreateOptions() { }
13991399
public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } set { } }
14001400
public bool? LegalHold { get { throw null; } set { } }
14011401
public System.Collections.Generic.IDictionary<string, string> Metadata { get { throw null; } set { } }
1402+
public Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier? PremiumPageBlobAccessTier { get { throw null; } set { } }
14021403
public long? SequenceNumber { get { throw null; } set { } }
14031404
public System.Collections.Generic.IDictionary<string, string> Tags { get { throw null; } set { } }
14041405
}
@@ -1472,6 +1473,33 @@ public enum PathRenameMode
14721473
Legacy = 0,
14731474
Posix = 1,
14741475
}
1476+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
1477+
public readonly partial struct PremiumPageBlobAccessTier : System.IEquatable<Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier>
1478+
{
1479+
private readonly object _dummy;
1480+
private readonly int _dummyPrimitive;
1481+
public PremiumPageBlobAccessTier(string value) { throw null; }
1482+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P10 { get { throw null; } }
1483+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P15 { get { throw null; } }
1484+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P20 { get { throw null; } }
1485+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P30 { get { throw null; } }
1486+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P4 { get { throw null; } }
1487+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P40 { get { throw null; } }
1488+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P50 { get { throw null; } }
1489+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P6 { get { throw null; } }
1490+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P60 { get { throw null; } }
1491+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P70 { get { throw null; } }
1492+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P80 { get { throw null; } }
1493+
public bool Equals(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier other) { throw null; }
1494+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1495+
public override bool Equals(object obj) { throw null; }
1496+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1497+
public override int GetHashCode() { throw null; }
1498+
public static bool operator ==(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier left, Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier right) { throw null; }
1499+
public static implicit operator Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier (string value) { throw null; }
1500+
public static bool operator !=(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier left, Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier right) { throw null; }
1501+
public override string ToString() { throw null; }
1502+
}
14751503
public enum PublicAccessType
14761504
{
14771505
None = 0,

sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.1.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,7 @@ public PageBlobCreateOptions() { }
13991399
public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } set { } }
14001400
public bool? LegalHold { get { throw null; } set { } }
14011401
public System.Collections.Generic.IDictionary<string, string> Metadata { get { throw null; } set { } }
1402+
public Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier? PremiumPageBlobAccessTier { get { throw null; } set { } }
14021403
public long? SequenceNumber { get { throw null; } set { } }
14031404
public System.Collections.Generic.IDictionary<string, string> Tags { get { throw null; } set { } }
14041405
}
@@ -1472,6 +1473,33 @@ public enum PathRenameMode
14721473
Legacy = 0,
14731474
Posix = 1,
14741475
}
1476+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
1477+
public readonly partial struct PremiumPageBlobAccessTier : System.IEquatable<Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier>
1478+
{
1479+
private readonly object _dummy;
1480+
private readonly int _dummyPrimitive;
1481+
public PremiumPageBlobAccessTier(string value) { throw null; }
1482+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P10 { get { throw null; } }
1483+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P15 { get { throw null; } }
1484+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P20 { get { throw null; } }
1485+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P30 { get { throw null; } }
1486+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P4 { get { throw null; } }
1487+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P40 { get { throw null; } }
1488+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P50 { get { throw null; } }
1489+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P6 { get { throw null; } }
1490+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P60 { get { throw null; } }
1491+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P70 { get { throw null; } }
1492+
public static Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier P80 { get { throw null; } }
1493+
public bool Equals(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier other) { throw null; }
1494+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1495+
public override bool Equals(object obj) { throw null; }
1496+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1497+
public override int GetHashCode() { throw null; }
1498+
public static bool operator ==(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier left, Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier right) { throw null; }
1499+
public static implicit operator Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier (string value) { throw null; }
1500+
public static bool operator !=(Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier left, Azure.Storage.Blobs.Models.PremiumPageBlobAccessTier right) { throw null; }
1501+
public override string ToString() { throw null; }
1502+
}
14751503
public enum PublicAccessType
14761504
{
14771505
None = 0,

sdk/storage/Azure.Storage.Blobs/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/storage/Azure.Storage.Blobs",
5-
"Tag": "net/storage/Azure.Storage.Blobs_b4d1ce2a63"
5+
"Tag": "net/storage/Azure.Storage.Blobs_723995cc64"
66
}

sdk/storage/Azure.Storage.Blobs/src/Generated/Models/PremiumPageBlobAccessTier.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/Azure.Storage.Blobs/src/Models/PageBlobCreateOptions.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,11 @@ public class PageBlobCreateOptions
5757
/// has immutable storage with versioning enabled.
5858
/// </summary>
5959
public bool? LegalHold { get; set; }
60+
61+
/// <summary>
62+
/// Optional. Sets the page blob tiers on the blob.
63+
/// This is only supported for page blobs on premium accounts.
64+
/// </summary>
65+
public PremiumPageBlobAccessTier? PremiumPageBlobAccessTier { get; set; }
6066
}
6167
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
namespace Azure.Storage.Blobs.Models
55
{
6-
internal partial struct PremiumPageBlobAccessTier {}
6+
public partial struct PremiumPageBlobAccessTier {}
77
}

0 commit comments

Comments
 (0)