Browse Source

Supported console.

sdk-team 5 năm trước cách đây
mục cha
commit
fb12252d2d
2 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 3 0
      CHANGELOG
  2. 3 3
      safconsole/src/SafconsoleClient.cc

+ 3 - 0
CHANGELOG

@@ -1,6 +1,9 @@
 2021-02-04 Version: patch
 - Supported console.
 
+2021-02-04 Version: patch
+- Supported console.
+
 2021-02-04 Version: patch
 - Update TaggingImage.
 

+ 3 - 3
safconsole/src/SafconsoleClient.cc

@@ -31,21 +31,21 @@ SafconsoleClient::SafconsoleClient(const Credentials &credentials, const ClientC
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "safconsole");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "saf");
 }
 
 SafconsoleClient::SafconsoleClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "safconsole");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "saf");
 }
 
 SafconsoleClient::SafconsoleClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "safconsole");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "saf");
 }
 
 SafconsoleClient::~SafconsoleClient()