Add BackupStorageType.

This commit is contained in:
sdk-team
2020-03-09 21:03:03 +08:00
parent 0f47a4c427
commit 320af597ca
5 changed files with 21 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
2020-03-09 Version: 1.36.310
- Add BackupStorageType.
2020-03-09 Version: 1.36.309
- Add EmotionConfidence to GetImage.

View File

@@ -1 +1 @@
1.36.309
1.36.310

View File

@@ -57,6 +57,8 @@ namespace AlibabaCloud
void setSourceEndpointIP(const std::string& sourceEndpointIP);
bool getEnableBackupLog()const;
void setEnableBackupLog(bool enableBackupLog);
std::string getBackupStorageType()const;
void setBackupStorageType(const std::string& backupStorageType);
int getDuplicationArchivePeriod()const;
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
std::string getSourceEndpointPassword()const;
@@ -92,6 +94,7 @@ namespace AlibabaCloud
std::string backupStartTime_;
std::string sourceEndpointIP_;
bool enableBackupLog_;
std::string backupStorageType_;
int duplicationArchivePeriod_;
std::string sourceEndpointPassword_;
std::string backupObjects_;

View File

@@ -31,21 +31,21 @@ DbsClient::DbsClient(const Credentials &credentials, const ClientConfiguration &
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, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
}
DbsClient::DbsClient(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, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
}
DbsClient::DbsClient(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, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
}
DbsClient::~DbsClient()

View File

@@ -148,6 +148,17 @@ void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog)
setParameter("EnableBackupLog", enableBackupLog ? "true" : "false");
}
std::string ConfigureBackupPlanRequest::getBackupStorageType()const
{
return backupStorageType_;
}
void ConfigureBackupPlanRequest::setBackupStorageType(const std::string& backupStorageType)
{
backupStorageType_ = backupStorageType;
setParameter("BackupStorageType", backupStorageType);
}
int ConfigureBackupPlanRequest::getDuplicationArchivePeriod()const
{
return duplicationArchivePeriod_;