File tree Expand file tree Collapse file tree 9 files changed +51
-105
lines changed
azure-storage-files-shares
inc/azure/storage/files/shares Expand file tree Collapse file tree 9 files changed +51
-105
lines changed Original file line number Diff line number Diff line change 2
2
"AssetsRepo" : " Azure/azure-sdk-assets" ,
3
3
"AssetsRepoPrefixPath" : " cpp" ,
4
4
"TagPrefix" : " cpp/storage" ,
5
- "Tag" : " cpp/storage_67aff8fa0e "
5
+ "Tag" : " cpp/storage_f8b8f80b3c "
6
6
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
31
31
/* *
32
32
* The version used for the operations to Azure storage services.
33
33
*/
34
- constexpr static const char * ApiVersion = " 2024-02-04 " ;
34
+ constexpr static const char * ApiVersion = " 2023-01-03 " ;
35
35
} // namespace _detail
36
36
namespace Models {
37
37
/* *
@@ -1300,10 +1300,6 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
1300
1300
* Client IP that opened the handle.
1301
1301
*/
1302
1302
std::string ClientIp;
1303
- /* *
1304
- * Name of the client machine where the share is being mounted.
1305
- */
1306
- std::string ClientName;
1307
1303
/* *
1308
1304
* Time when the session that previously opened the handle has last been reconnected. (UTC).
1309
1305
*/
Original file line number Diff line number Diff line change @@ -300,10 +300,6 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
300
300
* Client IP that opened the handle.
301
301
*/
302
302
std::string ClientIp;
303
- /* *
304
- * Name of the client machine where the share is being mounted.
305
- */
306
- std::string ClientName;
307
303
/* *
308
304
* Time when the session that previously opened the handle has last been reconnected. (UTC).
309
305
*/
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -587,7 +587,6 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
587
587
directoryHandle.Path = std::move (handle.Path .Content );
588
588
}
589
589
directoryHandle.ClientIp = std::move (handle.ClientIp );
590
- directoryHandle.ClientName = std::move (handle.ClientName );
591
590
directoryHandle.FileId = std::move (handle.FileId );
592
591
directoryHandle.HandleId = std::move (handle.HandleId );
593
592
directoryHandle.LastReconnectedOn = std::move (handle.LastReconnectedOn );
Original file line number Diff line number Diff line change @@ -692,7 +692,6 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
692
692
fileHandle.Path = std::move (handle.Path .Content );
693
693
}
694
694
fileHandle.ClientIp = std::move (handle.ClientIp );
695
- fileHandle.ClientName = std::move (handle.ClientName );
696
695
fileHandle.FileId = std::move (handle.FileId );
697
696
fileHandle.HandleId = std::move (handle.HandleId );
698
697
fileHandle.LastReconnectedOn = std::move (handle.LastReconnectedOn );
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ package-name: azure-storage-files-shares
9
9
namespace : Azure::Storage::Files::Shares
10
10
output-folder : generated
11
11
clear-output-folder : true
12
- input-file : https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/storage/data-plane/Microsoft.FileStorage/preview/2024-02-04 /file.json
12
+ input-file : https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/storage/data-plane/Microsoft.FileStorage/preview/2023-08-03 /file.json
13
13
` ` `
14
14
15
15
## ModelFour Options
@@ -79,12 +79,12 @@ directive:
79
79
"name": "ApiVersion",
80
80
"modelAsString": false
81
81
},
82
- "enum": ["2024-02-04 "]
82
+ "enum": ["2023-01-03 "]
83
83
};
84
84
- from : swagger-document
85
85
where : $.parameters
86
86
transform : >
87
- $.ApiVersionParameter.enum[0] = "2024-02-04 ";
87
+ $.ApiVersionParameter.enum[0] = "2023-01-03 ";
88
88
` ` `
89
89
90
90
### Rename Operations
Original file line number Diff line number Diff line change @@ -1190,18 +1190,6 @@ namespace Azure { namespace Storage { namespace Test {
1190
1190
EXPECT_EQ (allAccessRights, directoryHandles[0 ].AccessRights .Value ());
1191
1191
}
1192
1192
1193
- TEST_F (FileShareDirectoryClientTest, ListHandlesWithClientName_PLAYBACKONLY_)
1194
- {
1195
- auto shareClient = Files::Shares::ShareClient::CreateFromConnectionString (
1196
- StandardStorageConnectionString (),
1197
- " testing" ,
1198
- InitStorageClientOptions<Files::Shares::ShareClientOptions>());
1199
- auto directoryClient = shareClient.GetRootDirectoryClient ().GetSubdirectoryClient (" dir1" );
1200
- auto directoryHandles = directoryClient.ListHandles ().DirectoryHandles ;
1201
- EXPECT_EQ (directoryHandles.size (), 1L );
1202
- EXPECT_FALSE (directoryHandles[0 ].ClientName .empty ());
1203
- }
1204
-
1205
1193
TEST_F (FileShareDirectoryClientTest, WithShareSnapshot)
1206
1194
{
1207
1195
const std::string timestamp1 = " 2001-01-01T01:01:01.1111000Z" ;
Original file line number Diff line number Diff line change @@ -1741,20 +1741,6 @@ namespace Azure { namespace Storage { namespace Test {
1741
1741
EXPECT_EQ (allAccessRights, fileHandles[0 ].AccessRights .Value ());
1742
1742
}
1743
1743
1744
- TEST_F (FileShareFileClientTest, ListHandlesWithClientName_PLAYBACKONLY_)
1745
- {
1746
- auto shareClient = Files::Shares::ShareClient::CreateFromConnectionString (
1747
- StandardStorageConnectionString (),
1748
- " testing" ,
1749
- InitStorageClientOptions<Files::Shares::ShareClientOptions>());
1750
- auto fileClient
1751
- = shareClient.GetRootDirectoryClient ().GetSubdirectoryClient (" dir1" ).GetFileClient (
1752
- " test.txt" );
1753
- auto fileHandles = fileClient.ListHandles ().FileHandles ;
1754
- EXPECT_EQ (fileHandles.size (), 1L );
1755
- EXPECT_FALSE (fileHandles[0 ].ClientName .empty ());
1756
- }
1757
-
1758
1744
TEST_F (FileShareFileClientTest, WithShareSnapshot)
1759
1745
{
1760
1746
const std::string timestamp1 = " 2001-01-01T01:01:01.1111000Z" ;
You can’t perform that action at this time.
0 commit comments