DBS SDK Auto Released By wanxin,Version:1.36.7

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-04-15 19:09:31 +08:00
parent 328288acb1
commit bcea2432e3
13 changed files with 847 additions and 3 deletions

View File

@@ -32,12 +32,16 @@
#include "model/StartBackupPlanResult.h"
#include "model/DescribeBackupGatewayListRequest.h"
#include "model/DescribeBackupGatewayListResult.h"
#include "model/CreateRestoreTaskRequest.h"
#include "model/CreateRestoreTaskResult.h"
#include "model/DescribeIncrementBackupListRequest.h"
#include "model/DescribeIncrementBackupListResult.h"
#include "model/ConfigureBackupPlanRequest.h"
#include "model/ConfigureBackupPlanResult.h"
#include "model/DescribeFullBackupListRequest.h"
#include "model/DescribeFullBackupListResult.h"
#include "model/StartRestoreTaskRequest.h"
#include "model/StartRestoreTaskResult.h"
namespace AlibabaCloud
@@ -62,6 +66,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::CreateRestoreTaskResult> CreateRestoreTaskOutcome;
typedef std::future<CreateRestoreTaskOutcome> CreateRestoreTaskOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::CreateRestoreTaskRequest&, const CreateRestoreTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRestoreTaskAsyncHandler;
typedef Outcome<Error, Model::DescribeIncrementBackupListResult> DescribeIncrementBackupListOutcome;
typedef std::future<DescribeIncrementBackupListOutcome> DescribeIncrementBackupListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeIncrementBackupListRequest&, const DescribeIncrementBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIncrementBackupListAsyncHandler;
@@ -71,6 +78,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeFullBackupListResult> DescribeFullBackupListOutcome;
typedef std::future<DescribeFullBackupListOutcome> DescribeFullBackupListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeFullBackupListRequest&, const DescribeFullBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFullBackupListAsyncHandler;
typedef Outcome<Error, Model::StartRestoreTaskResult> StartRestoreTaskOutcome;
typedef std::future<StartRestoreTaskOutcome> StartRestoreTaskOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::StartRestoreTaskRequest&, const StartRestoreTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartRestoreTaskAsyncHandler;
DbsClient(const Credentials &credentials, const ClientConfiguration &configuration);
DbsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -91,6 +101,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;
CreateRestoreTaskOutcome createRestoreTask(const Model::CreateRestoreTaskRequest &request)const;
void createRestoreTaskAsync(const Model::CreateRestoreTaskRequest& request, const CreateRestoreTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRestoreTaskOutcomeCallable createRestoreTaskCallable(const Model::CreateRestoreTaskRequest& request) const;
DescribeIncrementBackupListOutcome describeIncrementBackupList(const Model::DescribeIncrementBackupListRequest &request)const;
void describeIncrementBackupListAsync(const Model::DescribeIncrementBackupListRequest& request, const DescribeIncrementBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeIncrementBackupListOutcomeCallable describeIncrementBackupListCallable(const Model::DescribeIncrementBackupListRequest& request) const;
@@ -100,6 +113,9 @@ namespace AlibabaCloud
DescribeFullBackupListOutcome describeFullBackupList(const Model::DescribeFullBackupListRequest &request)const;
void describeFullBackupListAsync(const Model::DescribeFullBackupListRequest& request, const DescribeFullBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFullBackupListOutcomeCallable describeFullBackupListCallable(const Model::DescribeFullBackupListRequest& request) const;
StartRestoreTaskOutcome startRestoreTask(const Model::StartRestoreTaskRequest &request)const;
void startRestoreTaskAsync(const Model::StartRestoreTaskRequest& request, const StartRestoreTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartRestoreTaskOutcomeCallable startRestoreTaskCallable(const Model::StartRestoreTaskRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,102 @@
/*
* 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_CREATERESTORETASKREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_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 CreateRestoreTaskRequest : public RpcServiceRequest
{
public:
CreateRestoreTaskRequest();
~CreateRestoreTaskRequest();
long getBackupGatewayId()const;
void setBackupGatewayId(long backupGatewayId);
std::string getDestinationEndpointOracleSID()const;
void setDestinationEndpointOracleSID(const std::string& destinationEndpointOracleSID);
long getRestoreTime()const;
void setRestoreTime(long restoreTime);
std::string getDestinationEndpointInstanceType()const;
void setDestinationEndpointInstanceType(const std::string& destinationEndpointInstanceType);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getDestinationEndpointInstanceID()const;
void setDestinationEndpointInstanceID(const std::string& destinationEndpointInstanceID);
int getDestinationEndpointPort()const;
void setDestinationEndpointPort(int destinationEndpointPort);
std::string getBackupPlanId()const;
void setBackupPlanId(const std::string& backupPlanId);
std::string getBackupSetId()const;
void setBackupSetId(const std::string& backupSetId);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
std::string getDestinationEndpointRegion()const;
void setDestinationEndpointRegion(const std::string& destinationEndpointRegion);
std::string getRestoreDir()const;
void setRestoreDir(const std::string& restoreDir);
std::string getDestinationEndpointIP()const;
void setDestinationEndpointIP(const std::string& destinationEndpointIP);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getDestinationEndpointDatabaseName()const;
void setDestinationEndpointDatabaseName(const std::string& destinationEndpointDatabaseName);
std::string getDestinationEndpointUserName()const;
void setDestinationEndpointUserName(const std::string& destinationEndpointUserName);
std::string getRestoreObjects()const;
void setRestoreObjects(const std::string& restoreObjects);
std::string getRestoreTaskName()const;
void setRestoreTaskName(const std::string& restoreTaskName);
std::string getDestinationEndpointPassword()const;
void setDestinationEndpointPassword(const std::string& destinationEndpointPassword);
private:
long backupGatewayId_;
std::string destinationEndpointOracleSID_;
long restoreTime_;
std::string destinationEndpointInstanceType_;
std::string clientToken_;
std::string destinationEndpointInstanceID_;
int destinationEndpointPort_;
std::string backupPlanId_;
std::string backupSetId_;
std::string ownerId_;
std::string destinationEndpointRegion_;
std::string restoreDir_;
std::string destinationEndpointIP_;
std::string regionId_;
std::string destinationEndpointDatabaseName_;
std::string destinationEndpointUserName_;
std::string restoreObjects_;
std::string restoreTaskName_;
std::string destinationEndpointPassword_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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_CREATERESTORETASKRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKRESULT_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 CreateRestoreTaskResult : public ServiceResult
{
public:
CreateRestoreTaskResult();
explicit CreateRestoreTaskResult(const std::string &payload);
~CreateRestoreTaskResult();
std::string getRestoreTaskId()const;
int getHttpStatusCode()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
std::string restoreTaskId_;
int httpStatusCode_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKRESULT_H_

View File

@@ -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_STARTRESTORETASKREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_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 StartRestoreTaskRequest : public RpcServiceRequest
{
public:
StartRestoreTaskRequest();
~StartRestoreTaskRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getRestoreTaskId()const;
void setRestoreTaskId(const std::string& restoreTaskId);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
private:
std::string regionId_;
std::string clientToken_;
std::string restoreTaskId_;
std::string ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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_STARTRESTORETASKRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKRESULT_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 StartRestoreTaskResult : public ServiceResult
{
public:
StartRestoreTaskResult();
explicit StartRestoreTaskResult(const std::string &payload);
~StartRestoreTaskResult();
std::string getRestoreTaskId()const;
int getHttpStatusCode()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
std::string restoreTaskId_;
int httpStatusCode_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKRESULT_H_