Skip to content

Commit 8608dd9

Browse files
authored
STG 102 GA API view comments (#59684)
1 parent 6f35719 commit 8608dd9

8 files changed

Lines changed: 42 additions & 42 deletions

sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net10.0.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ public partial class PathSystemProperties
11791179
{
11801180
internal PathSystemProperties() { }
11811181
public long? ContentLength { get { throw null; } }
1182-
public System.DateTimeOffset? CreationTime { get { throw null; } }
1182+
public System.DateTimeOffset? CreatedOn { get { throw null; } }
11831183
public string EncryptionContext { get { throw null; } }
11841184
public string EncryptionKeySha256 { get { throw null; } }
11851185
public string EncryptionScope { get { throw null; } }
@@ -1188,7 +1188,7 @@ internal PathSystemProperties() { }
11881188
public string Group { get { throw null; } }
11891189
public bool? IsDirectory { get { throw null; } }
11901190
public bool? IsServerEncrypted { get { throw null; } }
1191-
public System.DateTimeOffset? LastModifiedTime { get { throw null; } }
1191+
public System.DateTimeOffset? LastModifiedOn { get { throw null; } }
11921192
public string Owner { get { throw null; } }
11931193
public Azure.Storage.Files.DataLake.Models.PathPermissions Permissions { get { throw null; } }
11941194
}

sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net8.0.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ public partial class PathSystemProperties
11791179
{
11801180
internal PathSystemProperties() { }
11811181
public long? ContentLength { get { throw null; } }
1182-
public System.DateTimeOffset? CreationTime { get { throw null; } }
1182+
public System.DateTimeOffset? CreatedOn { get { throw null; } }
11831183
public string EncryptionContext { get { throw null; } }
11841184
public string EncryptionKeySha256 { get { throw null; } }
11851185
public string EncryptionScope { get { throw null; } }
@@ -1188,7 +1188,7 @@ internal PathSystemProperties() { }
11881188
public string Group { get { throw null; } }
11891189
public bool? IsDirectory { get { throw null; } }
11901190
public bool? IsServerEncrypted { get { throw null; } }
1191-
public System.DateTimeOffset? LastModifiedTime { get { throw null; } }
1191+
public System.DateTimeOffset? LastModifiedOn { get { throw null; } }
11921192
public string Owner { get { throw null; } }
11931193
public Azure.Storage.Files.DataLake.Models.PathPermissions Permissions { get { throw null; } }
11941194
}

sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.netstandard2.0.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ public partial class PathSystemProperties
11771177
{
11781178
internal PathSystemProperties() { }
11791179
public long? ContentLength { get { throw null; } }
1180-
public System.DateTimeOffset? CreationTime { get { throw null; } }
1180+
public System.DateTimeOffset? CreatedOn { get { throw null; } }
11811181
public string EncryptionContext { get { throw null; } }
11821182
public string EncryptionKeySha256 { get { throw null; } }
11831183
public string EncryptionScope { get { throw null; } }
@@ -1186,7 +1186,7 @@ internal PathSystemProperties() { }
11861186
public string Group { get { throw null; } }
11871187
public bool? IsDirectory { get { throw null; } }
11881188
public bool? IsServerEncrypted { get { throw null; } }
1189-
public System.DateTimeOffset? LastModifiedTime { get { throw null; } }
1189+
public System.DateTimeOffset? LastModifiedOn { get { throw null; } }
11901190
public string Owner { get { throw null; } }
11911191
public Azure.Storage.Files.DataLake.Models.PathPermissions Permissions { get { throw null; } }
11921192
}

sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,8 @@ internal static PathAccessControl ToPathAccessControl(this ResponseWithHeaders<P
700700
internal static PathSystemProperties ToPathSystemProperties(this ResponseWithHeaders<PathGetPropertiesHeaders> response)
701701
=> new PathSystemProperties
702702
{
703-
CreationTime = response.Headers.CreationTime,
704-
LastModifiedTime = response.Headers.LastModified,
703+
CreatedOn = response.Headers.CreationTime,
704+
LastModifiedOn = response.Headers.LastModified,
705705
ETag = response.GetRawResponse().Headers.TryGetValue(Constants.HeaderNames.ETag, out string value) ? new ETag(value) : default,
706706
ContentLength = response.Headers.ContentLength,
707707
IsDirectory = response.Headers.ResourceType == Constants.DataLake.DirectoryResourceType,

sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeModelFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ public static PathSystemProperties PathSystemProperties(
437437
PathPermissions permissions)
438438
=> new PathSystemProperties()
439439
{
440-
CreationTime = creationTime,
441-
LastModifiedTime = lastModifiedTime,
440+
CreatedOn = creationTime,
441+
LastModifiedOn = lastModifiedTime,
442442
ETag = eTag,
443443
ContentLength = contentLength,
444444
IsDirectory = isDirectory,

sdk/storage/Azure.Storage.Files.DataLake/src/Models/PathSystemProperties.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ public class PathSystemProperties
1313
/// <summary>
1414
/// The creation time of the file or directory.
1515
/// </summary>
16-
public DateTimeOffset? CreationTime { get; internal set; }
16+
public DateTimeOffset? CreatedOn { get; internal set; }
1717

1818
/// <summary>
1919
/// The last modified time of the file or directory.
2020
/// </summary>
21-
public DateTimeOffset? LastModifiedTime { get; internal set; }
21+
public DateTimeOffset? LastModifiedOn { get; internal set; }
2222

2323
/// <summary>
2424
/// The eTag of the file or directory.

sdk/storage/Azure.Storage.Files.DataLake/tests/DirectoryClientTests.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,8 +1684,8 @@ public async Task GetSystemPropertiesAsync()
16841684
PathSystemProperties systemProperties = await directory.GetSystemPropertiesAsync();
16851685

16861686
// Assert
1687-
Assert.IsNotNull(systemProperties.CreationTime);
1688-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1687+
Assert.IsNotNull(systemProperties.CreatedOn);
1688+
Assert.IsNotNull(systemProperties.LastModifiedOn);
16891689
Assert.IsNotNull(systemProperties.ETag);
16901690
Assert.IsNotNull(systemProperties.ContentLength);
16911691
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1705,8 +1705,8 @@ public async Task GetSystemPropertiesAsync_RootDirectory()
17051705
PathSystemProperties systemProperties = await directory.GetSystemPropertiesAsync();
17061706

17071707
// Assert
1708-
Assert.IsNotNull(systemProperties.CreationTime);
1709-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1708+
Assert.IsNotNull(systemProperties.CreatedOn);
1709+
Assert.IsNotNull(systemProperties.LastModifiedOn);
17101710
Assert.IsNotNull(systemProperties.ETag);
17111711
Assert.IsNotNull(systemProperties.ContentLength);
17121712
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1735,8 +1735,8 @@ public async Task GetSystemPropertiesAsync_Oauth()
17351735
PathSystemProperties systemProperties = await directory.GetSystemPropertiesAsync();
17361736

17371737
// Assert
1738-
Assert.IsNotNull(systemProperties.CreationTime);
1739-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1738+
Assert.IsNotNull(systemProperties.CreatedOn);
1739+
Assert.IsNotNull(systemProperties.LastModifiedOn);
17401740
Assert.IsNotNull(systemProperties.ETag);
17411741
Assert.IsNotNull(systemProperties.ContentLength);
17421742
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1767,8 +1767,8 @@ public async Task GetSystemPropertiesAsync_FileSystemSAS()
17671767
PathSystemProperties systemProperties = await sasDirectory.GetSystemPropertiesAsync();
17681768

17691769
// Assert
1770-
Assert.IsNotNull(systemProperties.CreationTime);
1771-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1770+
Assert.IsNotNull(systemProperties.CreatedOn);
1771+
Assert.IsNotNull(systemProperties.LastModifiedOn);
17721772
Assert.IsNotNull(systemProperties.ETag);
17731773
Assert.IsNotNull(systemProperties.ContentLength);
17741774
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1805,8 +1805,8 @@ public async Task GetSystemPropertiesAsync_FileSystemIdentitySAS()
18051805
PathSystemProperties systemProperties = await identitySasDirectory.GetSystemPropertiesAsync();
18061806

18071807
// Assert
1808-
Assert.IsNotNull(systemProperties.CreationTime);
1809-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1808+
Assert.IsNotNull(systemProperties.CreatedOn);
1809+
Assert.IsNotNull(systemProperties.LastModifiedOn);
18101810
Assert.IsNotNull(systemProperties.ETag);
18111811
Assert.IsNotNull(systemProperties.ContentLength);
18121812
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1838,8 +1838,8 @@ public async Task GetSystemPropertiesAsync_PathSAS()
18381838
PathSystemProperties systemProperties = await sasDirectory.GetSystemPropertiesAsync();
18391839

18401840
// Assert
1841-
Assert.IsNotNull(systemProperties.CreationTime);
1842-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1841+
Assert.IsNotNull(systemProperties.CreatedOn);
1842+
Assert.IsNotNull(systemProperties.LastModifiedOn);
18431843
Assert.IsNotNull(systemProperties.ETag);
18441844
Assert.IsNotNull(systemProperties.ContentLength);
18451845
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1877,8 +1877,8 @@ public async Task GetSystemPropertiesAsync_PathIdentitySAS()
18771877
PathSystemProperties systemProperties = await identitySasDirectory.GetSystemPropertiesAsync();
18781878

18791879
// Assert
1880-
Assert.IsNotNull(systemProperties.CreationTime);
1881-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1880+
Assert.IsNotNull(systemProperties.CreatedOn);
1881+
Assert.IsNotNull(systemProperties.LastModifiedOn);
18821882
Assert.IsNotNull(systemProperties.ETag);
18831883
Assert.IsNotNull(systemProperties.ContentLength);
18841884
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1971,8 +1971,8 @@ public async Task GetSystemPropertiesAsync_CPK()
19711971

19721972
// Assert
19731973
Assert.IsNotNull(systemProperties.EncryptionKeySha256);
1974-
Assert.IsNotNull(systemProperties.CreationTime);
1975-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1974+
Assert.IsNotNull(systemProperties.CreatedOn);
1975+
Assert.IsNotNull(systemProperties.LastModifiedOn);
19761976
Assert.IsNotNull(systemProperties.ETag);
19771977
Assert.IsNotNull(systemProperties.ContentLength);
19781978
Assert.IsNotNull(systemProperties.IsDirectory);

sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,8 +1596,8 @@ public async Task GetSystemPropertiesAsync()
15961596
PathSystemProperties systemProperties = await file.GetSystemPropertiesAsync();
15971597

15981598
// Assert
1599-
Assert.IsNotNull(systemProperties.CreationTime);
1600-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1599+
Assert.IsNotNull(systemProperties.CreatedOn);
1600+
Assert.IsNotNull(systemProperties.LastModifiedOn);
16011601
Assert.IsNotNull(systemProperties.ETag);
16021602
Assert.IsNotNull(systemProperties.ContentLength);
16031603
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1629,8 +1629,8 @@ public async Task GetSystemPropertiesAsync_Oauth()
16291629
PathSystemProperties systemProperties = await oauthFile.GetSystemPropertiesAsync();
16301630

16311631
// Assert
1632-
Assert.IsNotNull(systemProperties.CreationTime);
1633-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1632+
Assert.IsNotNull(systemProperties.CreatedOn);
1633+
Assert.IsNotNull(systemProperties.LastModifiedOn);
16341634
Assert.IsNotNull(systemProperties.ETag);
16351635
Assert.IsNotNull(systemProperties.ContentLength);
16361636
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1664,8 +1664,8 @@ public async Task GetSystemPropertiesAsync_FileSystemSAS()
16641664
PathSystemProperties systemProperties = await sasFile.GetSystemPropertiesAsync();
16651665

16661666
// Assert
1667-
Assert.IsNotNull(systemProperties.CreationTime);
1668-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1667+
Assert.IsNotNull(systemProperties.CreatedOn);
1668+
Assert.IsNotNull(systemProperties.LastModifiedOn);
16691669
Assert.IsNotNull(systemProperties.ETag);
16701670
Assert.IsNotNull(systemProperties.ContentLength);
16711671
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1705,8 +1705,8 @@ public async Task GetSystemPropertiesAsync_FileSystemIdentitySAS()
17051705
PathSystemProperties systemProperties = await identitySasFile.GetSystemPropertiesAsync();
17061706

17071707
// Assert
1708-
Assert.IsNotNull(systemProperties.CreationTime);
1709-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1708+
Assert.IsNotNull(systemProperties.CreatedOn);
1709+
Assert.IsNotNull(systemProperties.LastModifiedOn);
17101710
Assert.IsNotNull(systemProperties.ETag);
17111711
Assert.IsNotNull(systemProperties.ContentLength);
17121712
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1742,8 +1742,8 @@ public async Task GetSystemPropertiesAsync_PathSAS()
17421742
PathSystemProperties systemProperties = await sasFile.GetSystemPropertiesAsync();
17431743

17441744
// Assert
1745-
Assert.IsNotNull(systemProperties.CreationTime);
1746-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1745+
Assert.IsNotNull(systemProperties.CreatedOn);
1746+
Assert.IsNotNull(systemProperties.LastModifiedOn);
17471747
Assert.IsNotNull(systemProperties.ETag);
17481748
Assert.IsNotNull(systemProperties.ContentLength);
17491749
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1784,8 +1784,8 @@ public async Task GetSystemPropertiesAsync_PathIdentitySAS()
17841784
PathSystemProperties systemProperties = await identitySasFile.GetSystemPropertiesAsync();
17851785

17861786
// Assert
1787-
Assert.IsNotNull(systemProperties.CreationTime);
1788-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1787+
Assert.IsNotNull(systemProperties.CreatedOn);
1788+
Assert.IsNotNull(systemProperties.LastModifiedOn);
17891789
Assert.IsNotNull(systemProperties.ETag);
17901790
Assert.IsNotNull(systemProperties.ContentLength);
17911791
Assert.IsNotNull(systemProperties.IsDirectory);
@@ -1900,8 +1900,8 @@ public async Task GetSystemPropertiesAsync_CPK()
19001900

19011901
// Assert
19021902
Assert.IsNotNull(systemProperties.EncryptionKeySha256);
1903-
Assert.IsNotNull(systemProperties.CreationTime);
1904-
Assert.IsNotNull(systemProperties.LastModifiedTime);
1903+
Assert.IsNotNull(systemProperties.CreatedOn);
1904+
Assert.IsNotNull(systemProperties.LastModifiedOn);
19051905
Assert.IsNotNull(systemProperties.ETag);
19061906
Assert.IsNotNull(systemProperties.ContentLength);
19071907
Assert.IsNotNull(systemProperties.IsDirectory);

0 commit comments

Comments
 (0)