Add DescribeBackupPlanBilling.
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
#include "model/CreateRestoreTaskResult.h"
|
||||
#include "model/DescribeBackupGatewayListRequest.h"
|
||||
#include "model/DescribeBackupGatewayListResult.h"
|
||||
#include "model/DescribeBackupPlanBillingRequest.h"
|
||||
#include "model/DescribeBackupPlanBillingResult.h"
|
||||
#include "model/DescribeBackupPlanListRequest.h"
|
||||
#include "model/DescribeBackupPlanListResult.h"
|
||||
#include "model/DescribeBackupSetDownloadTaskListRequest.h"
|
||||
@@ -101,6 +103,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeBackupGatewayListResult> DescribeBackupGatewayListOutcome;
|
||||
typedef std::future<DescribeBackupGatewayListOutcome> DescribeBackupGatewayListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeBackupGatewayListRequest&, const DescribeBackupGatewayListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupGatewayListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupPlanBillingResult> DescribeBackupPlanBillingOutcome;
|
||||
typedef std::future<DescribeBackupPlanBillingOutcome> DescribeBackupPlanBillingOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeBackupPlanBillingRequest&, const DescribeBackupPlanBillingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupPlanBillingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupPlanListResult> DescribeBackupPlanListOutcome;
|
||||
typedef std::future<DescribeBackupPlanListOutcome> DescribeBackupPlanListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeBackupPlanListRequest&, const DescribeBackupPlanListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupPlanListAsyncHandler;
|
||||
@@ -184,6 +189,9 @@ namespace AlibabaCloud
|
||||
DescribeBackupGatewayListOutcome describeBackupGatewayList(const Model::DescribeBackupGatewayListRequest &request)const;
|
||||
void describeBackupGatewayListAsync(const Model::DescribeBackupGatewayListRequest& request, const DescribeBackupGatewayListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupGatewayListOutcomeCallable describeBackupGatewayListCallable(const Model::DescribeBackupGatewayListRequest& request) const;
|
||||
DescribeBackupPlanBillingOutcome describeBackupPlanBilling(const Model::DescribeBackupPlanBillingRequest &request)const;
|
||||
void describeBackupPlanBillingAsync(const Model::DescribeBackupPlanBillingRequest& request, const DescribeBackupPlanBillingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupPlanBillingOutcomeCallable describeBackupPlanBillingCallable(const Model::DescribeBackupPlanBillingRequest& request) const;
|
||||
DescribeBackupPlanListOutcome describeBackupPlanList(const Model::DescribeBackupPlanListRequest &request)const;
|
||||
void describeBackupPlanListAsync(const Model::DescribeBackupPlanListRequest& request, const DescribeBackupPlanListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupPlanListOutcomeCallable describeBackupPlanListCallable(const Model::DescribeBackupPlanListRequest& request) const;
|
||||
|
||||
@@ -55,12 +55,16 @@ namespace AlibabaCloud
|
||||
void setBackupStartTime(const std::string& backupStartTime);
|
||||
std::string getSourceEndpointIP()const;
|
||||
void setSourceEndpointIP(const std::string& sourceEndpointIP);
|
||||
std::string getCrossRoleName()const;
|
||||
void setCrossRoleName(const std::string& crossRoleName);
|
||||
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 getCrossAliyunId()const;
|
||||
void setCrossAliyunId(const std::string& crossAliyunId);
|
||||
std::string getSourceEndpointPassword()const;
|
||||
void setSourceEndpointPassword(const std::string& sourceEndpointPassword);
|
||||
std::string getBackupObjects()const;
|
||||
@@ -73,6 +77,8 @@ namespace AlibabaCloud
|
||||
void setBackupRetentionPeriod(int backupRetentionPeriod);
|
||||
std::string getBackupPeriod()const;
|
||||
void setBackupPeriod(const std::string& backupPeriod);
|
||||
long getBackupSpeedLimit()const;
|
||||
void setBackupSpeedLimit(long backupSpeedLimit);
|
||||
std::string getSourceEndpointInstanceType()const;
|
||||
void setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType);
|
||||
std::string getBackupPlanName()const;
|
||||
@@ -81,6 +87,8 @@ namespace AlibabaCloud
|
||||
void setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID);
|
||||
std::string getOSSBucketName()const;
|
||||
void setOSSBucketName(const std::string& oSSBucketName);
|
||||
std::string getBackupStrategyType()const;
|
||||
void setBackupStrategyType(const std::string& backupStrategyType);
|
||||
|
||||
private:
|
||||
std::string sourceEndpointRegion_;
|
||||
@@ -93,19 +101,23 @@ namespace AlibabaCloud
|
||||
int duplicationInfrequentAccessPeriod_;
|
||||
std::string backupStartTime_;
|
||||
std::string sourceEndpointIP_;
|
||||
std::string crossRoleName_;
|
||||
bool enableBackupLog_;
|
||||
std::string backupStorageType_;
|
||||
int duplicationArchivePeriod_;
|
||||
std::string crossAliyunId_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string backupObjects_;
|
||||
std::string ownerId_;
|
||||
int sourceEndpointPort_;
|
||||
int backupRetentionPeriod_;
|
||||
std::string backupPeriod_;
|
||||
long backupSpeedLimit_;
|
||||
std::string sourceEndpointInstanceType_;
|
||||
std::string backupPlanName_;
|
||||
std::string sourceEndpointOracleSID_;
|
||||
std::string oSSBucketName_;
|
||||
std::string backupStrategyType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,6 +49,8 @@ namespace AlibabaCloud
|
||||
void setInstanceType(const std::string& instanceType);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getFromApp()const;
|
||||
void setFromApp(const std::string& fromApp);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
int getUsedTime()const;
|
||||
@@ -70,6 +72,7 @@ namespace AlibabaCloud
|
||||
std::string databaseRegion_;
|
||||
std::string instanceType_;
|
||||
std::string period_;
|
||||
std::string fromApp_;
|
||||
std::string ownerId_;
|
||||
int usedTime_;
|
||||
std::string backupMethod_;
|
||||
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getDestinationEndpointRegion()const;
|
||||
void setDestinationEndpointRegion(const std::string& destinationEndpointRegion);
|
||||
std::string getCrossRoleName()const;
|
||||
void setCrossRoleName(const std::string& crossRoleName);
|
||||
std::string getDestinationEndpointUserName()const;
|
||||
void setDestinationEndpointUserName(const std::string& destinationEndpointUserName);
|
||||
std::string getRestoreObjects()const;
|
||||
@@ -57,6 +59,8 @@ namespace AlibabaCloud
|
||||
void setDestinationEndpointOracleSID(const std::string& destinationEndpointOracleSID);
|
||||
long getRestoreTime()const;
|
||||
void setRestoreTime(long restoreTime);
|
||||
std::string getCrossAliyunId()const;
|
||||
void setCrossAliyunId(const std::string& crossAliyunId);
|
||||
std::string getDestinationEndpointInstanceID()const;
|
||||
void setDestinationEndpointInstanceID(const std::string& destinationEndpointInstanceID);
|
||||
int getDestinationEndpointPort()const;
|
||||
@@ -82,12 +86,14 @@ namespace AlibabaCloud
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string destinationEndpointRegion_;
|
||||
std::string crossRoleName_;
|
||||
std::string destinationEndpointUserName_;
|
||||
std::string restoreObjects_;
|
||||
std::string restoreTaskName_;
|
||||
std::string restoreHome_;
|
||||
std::string destinationEndpointOracleSID_;
|
||||
long restoreTime_;
|
||||
std::string crossAliyunId_;
|
||||
std::string destinationEndpointInstanceID_;
|
||||
int destinationEndpointPort_;
|
||||
std::string backupSetId_;
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanBillingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBackupPlanBillingRequest();
|
||||
~DescribeBackupPlanBillingRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
bool getShowStorageType()const;
|
||||
void setShowStorageType(bool showStorageType);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
bool showStorageType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanBillingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Item
|
||||
{
|
||||
bool isExpired;
|
||||
long buyExpiredTimestamp;
|
||||
long totalFreeBytes;
|
||||
long paiedBytes;
|
||||
long quotaStartTimestamp;
|
||||
long fullStorageSize;
|
||||
long buyCreateTimestamp;
|
||||
bool isFreeBytesUnlimited;
|
||||
long quotaEndTimestamp;
|
||||
long contStorageSize;
|
||||
std::string buySpec;
|
||||
std::string buyChargeType;
|
||||
long usedIncrementBytes;
|
||||
long usedFullBytes;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupPlanBillingResult();
|
||||
explicit DescribeBackupPlanBillingResult(const std::string &payload);
|
||||
~DescribeBackupPlanBillingResult();
|
||||
Item getItem()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Item item_;
|
||||
int httpStatusCode_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGRESULT_H_
|
||||
@@ -43,6 +43,10 @@ namespace AlibabaCloud
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
std::string getBackupPlanStatus()const;
|
||||
void setBackupPlanStatus(const std::string& backupPlanStatus);
|
||||
std::string getBackupPlanName()const;
|
||||
void setBackupPlanName(const std::string& backupPlanName);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getRegion()const;
|
||||
@@ -53,6 +57,8 @@ namespace AlibabaCloud
|
||||
std::string backupPlanId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
std::string backupPlanStatus_;
|
||||
std::string backupPlanName_;
|
||||
int pageSize_;
|
||||
std::string region_;
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace AlibabaCloud
|
||||
std::string backupObjects;
|
||||
std::string backupSetDownloadDir;
|
||||
std::string sourceEndpointInstanceID;
|
||||
std::string crossAliyunId;
|
||||
std::string sourceEndpointDatabaseName;
|
||||
std::string oSSBucketRegion;
|
||||
long beginTimestampForRestore;
|
||||
@@ -50,7 +51,9 @@ namespace AlibabaCloud
|
||||
std::string sourceEndpointInstanceType;
|
||||
long backupGatewayId;
|
||||
std::string sourceEndpointUserName;
|
||||
std::string backupStorageType;
|
||||
int duplicationInfrequentAccessPeriod;
|
||||
std::string crossRoleName;
|
||||
std::string backupMethod;
|
||||
std::string backupSetDownloadFullDataFormat;
|
||||
std::string backupPeriod;
|
||||
|
||||
@@ -34,29 +34,31 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct RestoreTaskDetail
|
||||
{
|
||||
std::string restoreDir;
|
||||
int fullStruAfterRestoreProgress;
|
||||
int fullStruforeRestoreProgress;
|
||||
std::string crossAliyunId;
|
||||
std::string destinationEndpointOracleSID;
|
||||
std::string backupSetId;
|
||||
std::string restoreStatus;
|
||||
std::string errMessage;
|
||||
std::string destinationEndpointInstanceType;
|
||||
long restoreTime;
|
||||
std::string destinationEndpointRegion;
|
||||
int fullDataRestoreProgress;
|
||||
std::string destinationEndpointDatabaseName;
|
||||
std::string restoreTaskId;
|
||||
int continuousRestoreProgress;
|
||||
std::string destinationEndpointIpPort;
|
||||
std::string destinationEndpointUserName;
|
||||
std::string restoreObjects;
|
||||
std::string restoreTaskName;
|
||||
std::string backupPlanId;
|
||||
long restoreTaskCreateTime;
|
||||
long backupGatewayId;
|
||||
std::string destinationEndpointInstanceID;
|
||||
long restoreTaskFinishTime;
|
||||
std::string crossRoleName;
|
||||
std::string restoreDir;
|
||||
int fullStruforeRestoreProgress;
|
||||
std::string backupSetId;
|
||||
std::string errMessage;
|
||||
std::string destinationEndpointInstanceType;
|
||||
std::string restoreTaskId;
|
||||
std::string destinationEndpointUserName;
|
||||
long restoreTaskCreateTime;
|
||||
std::string destinationEndpointInstanceID;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -51,6 +51,10 @@ namespace AlibabaCloud
|
||||
void setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName);
|
||||
std::string getSourceEndpointIP()const;
|
||||
void setSourceEndpointIP(const std::string& sourceEndpointIP);
|
||||
std::string getCrossRoleName()const;
|
||||
void setCrossRoleName(const std::string& crossRoleName);
|
||||
std::string getCrossAliyunId()const;
|
||||
void setCrossAliyunId(const std::string& crossAliyunId);
|
||||
std::string getSourceEndpointPassword()const;
|
||||
void setSourceEndpointPassword(const std::string& sourceEndpointPassword);
|
||||
std::string getBackupObjects()const;
|
||||
@@ -73,6 +77,8 @@ namespace AlibabaCloud
|
||||
std::string backupPlanId_;
|
||||
std::string sourceEndpointDatabaseName_;
|
||||
std::string sourceEndpointIP_;
|
||||
std::string crossRoleName_;
|
||||
std::string crossAliyunId_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string backupObjects_;
|
||||
std::string ownerId_;
|
||||
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setBackupPeriod(const std::string& backupPeriod);
|
||||
std::string getBackupStartTime()const;
|
||||
void setBackupStartTime(const std::string& backupStartTime);
|
||||
std::string getBackupStrategyType()const;
|
||||
void setBackupStrategyType(const std::string& backupStrategyType);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
@@ -52,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string ownerId_;
|
||||
std::string backupPeriod_;
|
||||
std::string backupStartTime_;
|
||||
std::string backupStrategyType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user