File tree Expand file tree Collapse file tree 6 files changed +64
-3
lines changed
Azure.Storage.Files.DataLake/samples
Azure.Storage.Files.Shares/src Expand file tree Collapse file tree 6 files changed +64
-3
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,13 @@ public void Traverse()
570570
571571 // Keep track of all the names we encounter
572572 List < string > names = new List < string > ( ) ;
573- foreach ( PathItem pathItem in filesystem . GetPaths ( recursive : true ) )
573+
574+ DataLakeGetPathsOptions options = new DataLakeGetPathsOptions
575+ {
576+ Recursive = true
577+ } ;
578+
579+ foreach ( PathItem pathItem in filesystem . GetPaths ( options ) )
574580 {
575581 names . Add ( pathItem . Name ) ;
576582 }
Original file line number Diff line number Diff line change @@ -567,7 +567,13 @@ public async Task TraverseAsync()
567567
568568 // Keep track of all the names we encounter
569569 List < string > names = new List < string > ( ) ;
570- await foreach ( PathItem pathItem in filesystem . GetPathsAsync ( recursive : true ) )
570+
571+ DataLakeGetPathsOptions options = new DataLakeGetPathsOptions
572+ {
573+ Recursive = true ,
574+ } ;
575+
576+ await foreach ( PathItem pathItem in filesystem . GetPathsAsync ( options ) )
571577 {
572578 names . Add ( pathItem . Name ) ;
573579 }
Original file line number Diff line number Diff line change 1919 REST API Reference for File Service - https://docs.microsoft.com/en-us/rest/api/storageservices/file-service-rest-api
2020 </Description >
2121 <IncludeOperationsSharedSource >true</IncludeOperationsSharedSource >
22+ <NoWarn >$(NoWarn);AZC0034;AZC0007;AZC0010</NoWarn >
2223 </PropertyGroup >
2324 <ItemGroup >
2425 <PackageReference Include =" Azure.Core" />
Original file line number Diff line number Diff line change @@ -670,5 +670,29 @@ public static ShareFileItemProperties ShareFileItemProperties(
670670 changedOn : changedOn ,
671671 lastModified : lastModified ,
672672 eTag : etag ) ;
673+
674+ /// <summary>
675+ /// Creates a new UserDelegationKey instance for mocking.
676+ /// </summary>
677+ public static UserDelegationKey UserDelegationKey (
678+ string signedObjectId = default ,
679+ string signedTenantId = default ,
680+ DateTimeOffset signedStartsOn = default ,
681+ DateTimeOffset signedExpiresOn = default ,
682+ string signedService = default ,
683+ string signedVersion = default ,
684+ string value = default )
685+ {
686+ return new UserDelegationKey ( )
687+ {
688+ SignedObjectId = signedObjectId ,
689+ SignedTenantId = signedTenantId ,
690+ SignedStartsOn = signedStartsOn ,
691+ SignedExpiresOn = signedExpiresOn ,
692+ SignedService = signedService ,
693+ SignedVersion = signedVersion ,
694+ Value = value
695+ } ;
696+ }
673697 }
674698}
Original file line number Diff line number Diff line change 1818 REST API Reference for Queue Service - https://docs.microsoft.com/en-us/rest/api/storageservices/queue-service-rest-api
1919 </Description >
2020 <!-- https://github.com/Azure/azure-sdk-for-net/issues/19222 -->
21- <NoWarn >$(NoWarn);IDT002;IDT003</NoWarn >
21+ <NoWarn >$(NoWarn);IDT002;IDT003;AZC0034 </NoWarn >
2222 <IncludeOperationsSharedSource >true</IncludeOperationsSharedSource >
2323 </PropertyGroup >
2424 <PropertyGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
Original file line number Diff line number Diff line change @@ -206,5 +206,29 @@ public static QueueGeoReplication QueueGeoReplication(
206206 LastSyncedOn = lastSyncedOn ,
207207 } ;
208208 }
209+
210+ /// <summary>
211+ /// Creates a new UserDelegationKey instance for mocking.
212+ /// </summary>
213+ public static UserDelegationKey UserDelegationKey (
214+ string signedObjectId = default ,
215+ string signedTenantId = default ,
216+ DateTimeOffset signedStartsOn = default ,
217+ DateTimeOffset signedExpiresOn = default ,
218+ string signedService = default ,
219+ string signedVersion = default ,
220+ string value = default )
221+ {
222+ return new UserDelegationKey ( )
223+ {
224+ SignedObjectId = signedObjectId ,
225+ SignedTenantId = signedTenantId ,
226+ SignedStartsOn = signedStartsOn ,
227+ SignedExpiresOn = signedExpiresOn ,
228+ SignedService = signedService ,
229+ SignedVersion = signedVersion ,
230+ Value = value
231+ } ;
232+ }
209233 }
210234}
You can’t perform that action at this time.
0 commit comments