forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
535 changed files
with
181,855 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
sdk/storage/Azure.Storage.Files.DataLake/src/BlobContainerItemExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.Storage.Blobs.Models; | ||
using Azure.Storage.Files.DataLake.Models; | ||
|
||
namespace Azure.Storage.Files.DataLake | ||
{ | ||
internal static class BlobContainerItemExtensions | ||
{ | ||
internal static FileSystemItem ToFileSystemItem(this BlobContainerItem containerItem) => | ||
new FileSystemItem() | ||
{ | ||
Name = containerItem.Name, | ||
Properties = new FileSystemProperties() | ||
{ | ||
LastModified = containerItem.Properties.LastModified, | ||
LeaseStatus = containerItem.Properties.LeaseStatus.HasValue | ||
? (Models.LeaseStatus)containerItem.Properties.LeaseStatus : default, | ||
LeaseState = containerItem.Properties.LeaseState.HasValue | ||
? (Models.LeaseState)containerItem.Properties.LeaseState : default, | ||
LeaseDuration = containerItem.Properties.LeaseDuration.HasValue | ||
? (Models.LeaseDurationType)containerItem.Properties.LeaseDuration : default, | ||
PublicAccess = containerItem.Properties.PublicAccess.HasValue | ||
? (Models.PublicAccessType)containerItem.Properties.PublicAccess : default, | ||
HasImmutabilityPolicy = containerItem.Properties.HasImmutabilityPolicy, | ||
HasLegalHold = containerItem.Properties.HasLegalHold, | ||
ETag = containerItem.Properties.ETag | ||
}, | ||
Metadata = containerItem.Metadata | ||
}; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
sdk/storage/Azure.Storage.Files.DataLake/src/BlobDownloadDetailsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.Storage.Blobs.Models; | ||
using Azure.Storage.Files.DataLake.Models; | ||
|
||
namespace Azure.Storage.Files.DataLake | ||
{ | ||
internal static class BlobDownloadDetailsExtensions | ||
{ | ||
internal static FileDownloadDetails ToFileDownloadDetails(this BlobDownloadDetails blobDownloadProperties) => | ||
new FileDownloadDetails() | ||
{ | ||
LastModified = blobDownloadProperties.LastModified, | ||
Metadata = blobDownloadProperties.Metadata, | ||
ContentRange = blobDownloadProperties.ContentRange, | ||
ETag = blobDownloadProperties.ETag, | ||
ContentEncoding = blobDownloadProperties.ContentEncoding, | ||
ContentDisposition = blobDownloadProperties.ContentDisposition, | ||
ContentLanguage = blobDownloadProperties.ContentLanguage, | ||
CopyCompletedOn = blobDownloadProperties.CopyCompletedOn, | ||
CopyStatusDescription = blobDownloadProperties.CopyStatusDescription, | ||
CopyId = blobDownloadProperties.CopyId, | ||
CopyProgress = blobDownloadProperties.CopyProgress, | ||
CopyStatus = (Models.CopyStatus)blobDownloadProperties.CopyStatus, | ||
LeaseDuration = (Models.LeaseDurationType)blobDownloadProperties.LeaseDuration, | ||
LeaseState = (Models.LeaseState)blobDownloadProperties.LeaseState, | ||
LeaseStatus = (Models.LeaseStatus)blobDownloadProperties.LeaseStatus, | ||
AcceptRanges = blobDownloadProperties.AcceptRanges, | ||
IsServerEncrypted = blobDownloadProperties.IsServerEncrypted, | ||
EncryptionKeySha256 = blobDownloadProperties.EncryptionKeySha256, | ||
ContentHash = blobDownloadProperties.BlobContentHash | ||
}; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
sdk/storage/Azure.Storage.Files.DataLake/src/BlobDownloadInfoExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.Storage.Blobs.Models; | ||
using Azure.Storage.Files.DataLake.Models; | ||
|
||
namespace Azure.Storage.Files.DataLake | ||
{ | ||
internal static class BlobDownloadInfoExtensions | ||
{ | ||
internal static FileDownloadInfo ToFileDownloadInfo(this BlobDownloadInfo blobDownloadInfo) => | ||
new FileDownloadInfo() | ||
{ | ||
ContentLength = blobDownloadInfo.ContentLength, | ||
Content = blobDownloadInfo.Content, | ||
ContentHash = blobDownloadInfo.ContentHash, | ||
Properties = blobDownloadInfo.Details.ToFileDownloadDetails() | ||
}; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
sdk/storage/Azure.Storage.Files.DataLake/src/BlobPropertiesExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.Storage.Blobs.Models; | ||
using Azure.Storage.Files.DataLake.Models; | ||
|
||
namespace Azure.Storage.Files.DataLake | ||
{ | ||
internal static class BlobPropertiesExtensions | ||
{ | ||
internal static PathProperties ToPathProperties(this BlobProperties blobProperties) => | ||
new PathProperties() | ||
{ | ||
LastModified = blobProperties.LastModified, | ||
CreatedOn = blobProperties.CreatedOn, | ||
Metadata = blobProperties.Metadata, | ||
CopyCompletedOn = blobProperties.CopyCompletedOn, | ||
CopyStatusDescription = blobProperties.CopyStatusDescription, | ||
CopyId = blobProperties.CopyId, | ||
CopyProgress = blobProperties.CopyProgress, | ||
CopySource = blobProperties.CopySource, | ||
IsIncrementalCopy = blobProperties.IsIncrementalCopy, | ||
LeaseDuration = (Models.LeaseDurationType)blobProperties.LeaseDuration, | ||
LeaseStatus = (Models.LeaseStatus)blobProperties.LeaseStatus, | ||
LeaseState = (Models.LeaseState)blobProperties.LeaseState, | ||
ContentLength = blobProperties.ContentLength, | ||
ContentType = blobProperties.ContentType, | ||
ETag = blobProperties.ETag, | ||
ContentHash = blobProperties.ContentHash, | ||
ContentEncoding = blobProperties.ContentEncoding, | ||
ContentDisposition = blobProperties.ContentDisposition, | ||
ContentLanguage = blobProperties.ContentLanguage, | ||
CacheControl = blobProperties.CacheControl, | ||
AcceptRanges = blobProperties.AcceptRanges, | ||
IsServerEncrypted = blobProperties.IsServerEncrypted, | ||
EncryptionKeySha256 = blobProperties.EncryptionKeySha256, | ||
AccessTier = blobProperties.AccessTier, | ||
ArchiveStatus = blobProperties.ArchiveStatus, | ||
AccessTierChangedOn = blobProperties.AccessTierChangedOn | ||
}; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeClientOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.Core; | ||
using Azure.Storage.Blobs; | ||
using Azure.Storage.Files.DataLake.Models; | ||
|
||
namespace Azure.Storage.Files.DataLake | ||
{ | ||
#pragma warning disable AZC0008 // ClientOptions should have a nested enum called ServiceVersion | ||
/// <summary> | ||
/// Provides the client configuration options for connecting to Azure Data Lake service. | ||
/// </summary> | ||
public class DataLakeClientOptions : BlobClientOptions | ||
#pragma warning restore AZC0008 // ClientOptions should have a nested enum called ServiceVersion | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.