Removed GetDfsUri. (#1394)
# Pull Request Checklist Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly: See the detailed list in the [contributing guide](https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#pull-requests). - [x] [C++ Guidelines](https://azure.github.io/azure-sdk/cpp_introduction.html) - [x] Doxygen docs - [x] Unit tests - [x] No unwanted commits/changes - [x] Descriptive title/description - [x] PR is single purpose - [x] Related issue listed - [x] Comments in source - [x] No typos - [x] Update changelog - [x] Not work-in-progress - [x] External references or docs updated - [x] Self review of PR done - [x] Any breaking changes?
This commit is contained in:
parent
d51d034b5b
commit
57e6e8dbba
@ -2,6 +2,9 @@
|
||||
|
||||
## 12.0.0-beta.7 (Unreleased)
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
- Removed `GetDfsUri` in all clients since they are currently implementation details.
|
||||
|
||||
## 12.0.0-beta.6 (2020-01-14)
|
||||
|
||||
|
||||
@ -88,14 +88,6 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
std::string GetUri() const { return m_blobClient.GetUrl(); }
|
||||
|
||||
/**
|
||||
* @brief Gets the directory's primary uri endpoint. This is the endpoint used for dfs
|
||||
* endpoint only operations
|
||||
*
|
||||
* @return The directory's primary uri endpoint.
|
||||
*/
|
||||
std::string GetDfsUri() const { return m_dfsUri.GetAbsoluteUrl(); }
|
||||
|
||||
/**
|
||||
* @brief Create a directory. By default, the destination is overwritten and
|
||||
* if the destination already exists and has a lease the lease is broken.
|
||||
|
||||
@ -75,14 +75,6 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
std::string GetUri() const { return m_blockBlobClient.GetUrl(); }
|
||||
|
||||
/**
|
||||
* @brief Gets the file's primary uri endpoint. This is the endpoint used for dfs
|
||||
* endpoint only operations
|
||||
*
|
||||
* @return The file's primary uri endpoint.
|
||||
*/
|
||||
std::string GetDfsUri() const { return m_dfsUri.GetAbsoluteUrl(); }
|
||||
|
||||
/**
|
||||
* @brief Uploads data to be appended to a file. Data can only be appended to a file.
|
||||
* @param content The data to be appended.
|
||||
|
||||
@ -97,14 +97,6 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
std::string GetUri() const { return m_blobContainerClient.GetUrl(); }
|
||||
|
||||
/**
|
||||
* @brief Gets the filesystem's primary uri endpoint. This is the endpoint used for dfs
|
||||
* endpoint only operations
|
||||
*
|
||||
* @return The filesystem's primary uri endpoint.
|
||||
*/
|
||||
std::string GetDfsUri() const { return m_dfsUri.GetAbsoluteUrl(); }
|
||||
|
||||
/**
|
||||
* @brief Creates the file system.
|
||||
* @param options Optional parameters to create this file system.
|
||||
|
||||
@ -76,14 +76,6 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
std::string GetUri() const { return m_blobClient.GetUrl(); }
|
||||
|
||||
/**
|
||||
* @brief Gets the path's primary uri endpoint. This is the endpoint used for dfs
|
||||
* endpoint only operations
|
||||
*
|
||||
* @return The path's primary uri endpoint.
|
||||
*/
|
||||
std::string GetDfsUri() const { return m_dfsUri.GetAbsoluteUrl(); }
|
||||
|
||||
/**
|
||||
* @brief Creates a file or directory. By default, the destination is overwritten and
|
||||
* if the destination already exists and has a lease the lease is broken.
|
||||
|
||||
@ -78,14 +78,6 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
std::string GetUri() const { return m_blobServiceClient.GetUrl(); }
|
||||
|
||||
/**
|
||||
* @brief Gets the datalake service's primary uri endpoint. This is the endpoint used for dfs
|
||||
* endpoint only operations
|
||||
*
|
||||
* @return The datalake service's primary uri endpoint.
|
||||
*/
|
||||
std::string GetDfsUri() const { return m_dfsUri.GetAbsoluteUrl(); }
|
||||
|
||||
/**
|
||||
* @brief List the file systems from the service.
|
||||
* @param options Optional parameters to list the file systems.
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
#include <azure/identity/client_secret_credential.hpp>
|
||||
#include <azure/storage/blobs/blob_sas_builder.hpp>
|
||||
#include <azure/storage/files/datalake/datalake_sas_builder.hpp>
|
||||
#include <azure/storage/files/datalake/datalake_utilities.hpp>
|
||||
|
||||
#include "datalake_file_system_client_test.hpp"
|
||||
|
||||
@ -51,10 +52,10 @@ namespace Azure { namespace Storage { namespace Test {
|
||||
directory1Client0.Create();
|
||||
directory2Client0.Create();
|
||||
|
||||
auto serviceUri = serviceClient0.GetDfsUri();
|
||||
auto filesystemUri = filesystemClient0.GetDfsUri();
|
||||
auto directory1Uri = directory1Client0.GetDfsUri();
|
||||
auto directory2Uri = directory2Client0.GetDfsUri();
|
||||
auto serviceUri = Files::DataLake::Details::GetDfsUriFromUri(serviceClient0.GetUri());
|
||||
auto filesystemUri = Files::DataLake::Details::GetDfsUriFromUri(filesystemClient0.GetUri());
|
||||
auto directory1Uri = Files::DataLake::Details::GetDfsUriFromUri(directory1Client0.GetUri());
|
||||
auto directory2Uri = Files::DataLake::Details::GetDfsUriFromUri(directory2Client0.GetUri());
|
||||
auto fileUri = fileClient0.GetUri();
|
||||
|
||||
auto serviceClient1 = Files::DataLake::DataLakeServiceClient(
|
||||
@ -123,7 +124,8 @@ namespace Azure { namespace Storage { namespace Test {
|
||||
std::string newFilename = RandomString();
|
||||
auto newFileClient0 = directory2Client0.GetFileClient(newFilename);
|
||||
newFileClient0.Create();
|
||||
auto fileClient = Files::DataLake::DataLakeFileClient(newFileClient0.GetDfsUri() + sas);
|
||||
auto fileClient = Files::DataLake::DataLakeFileClient(
|
||||
Files::DataLake::Details::GetDfsUriFromUri(newFileClient0.GetUri()) + sas);
|
||||
EXPECT_NO_THROW(fileClient.Rename(directory1Name + "/" + directory2Name + "/" + fileName));
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user