DBS SDK Auto Released By wanxin,Version:1.36.16

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-04-17 00:30:27 +08:00
parent 464ff6cf22
commit 2ee90f14b2
13 changed files with 788 additions and 43 deletions

View File

@@ -42,6 +42,10 @@
#include "model/DescribeFullBackupListResult.h"
#include "model/StartRestoreTaskRequest.h"
#include "model/StartRestoreTaskResult.h"
#include "model/DescribeNodeCidrListRequest.h"
#include "model/DescribeNodeCidrListResult.h"
#include "model/DescribeRestoreTaskListRequest.h"
#include "model/DescribeRestoreTaskListResult.h"
namespace AlibabaCloud
@@ -81,6 +85,12 @@ namespace AlibabaCloud
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;
typedef Outcome<Error, Model::DescribeNodeCidrListResult> DescribeNodeCidrListOutcome;
typedef std::future<DescribeNodeCidrListOutcome> DescribeNodeCidrListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeNodeCidrListRequest&, const DescribeNodeCidrListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNodeCidrListAsyncHandler;
typedef Outcome<Error, Model::DescribeRestoreTaskListResult> DescribeRestoreTaskListOutcome;
typedef std::future<DescribeRestoreTaskListOutcome> DescribeRestoreTaskListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeRestoreTaskListRequest&, const DescribeRestoreTaskListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreTaskListAsyncHandler;
DbsClient(const Credentials &credentials, const ClientConfiguration &configuration);
DbsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -116,6 +126,12 @@ namespace AlibabaCloud
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;
DescribeNodeCidrListOutcome describeNodeCidrList(const Model::DescribeNodeCidrListRequest &request)const;
void describeNodeCidrListAsync(const Model::DescribeNodeCidrListRequest& request, const DescribeNodeCidrListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeNodeCidrListOutcomeCallable describeNodeCidrListCallable(const Model::DescribeNodeCidrListRequest& request) const;
DescribeRestoreTaskListOutcome describeRestoreTaskList(const Model::DescribeRestoreTaskListRequest &request)const;
void describeRestoreTaskListAsync(const Model::DescribeRestoreTaskListRequest& request, const DescribeRestoreTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRestoreTaskListOutcomeCallable describeRestoreTaskListCallable(const Model::DescribeRestoreTaskListRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

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_DESCRIBENODECIDRLISTREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_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 DescribeNodeCidrListRequest : public RpcServiceRequest
{
public:
DescribeNodeCidrListRequest();
~DescribeNodeCidrListRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getRegion()const;
void setRegion(const std::string& region);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
private:
std::string regionId_;
std::string clientToken_;
std::string region_;
std::string ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_DESCRIBENODECIDRLISTRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTRESULT_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 DescribeNodeCidrListResult : public ServiceResult
{
public:
DescribeNodeCidrListResult();
explicit DescribeNodeCidrListResult(const std::string &payload);
~DescribeNodeCidrListResult();
std::vector<std::string> getInternetIPs()const;
int getHttpStatusCode()const;
std::vector<std::string> getIntranetIPs()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> internetIPs_;
int httpStatusCode_;
std::vector<std::string> intranetIPs_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* 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_DESCRIBERESTORETASKLISTREQUEST_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_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 DescribeRestoreTaskListRequest : public RpcServiceRequest
{
public:
DescribeRestoreTaskListRequest();
~DescribeRestoreTaskListRequest();
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);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getBackupPlanId()const;
void setBackupPlanId(const std::string& backupPlanId);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
private:
std::string regionId_;
std::string clientToken_;
std::string restoreTaskId_;
int pageSize_;
std::string backupPlanId_;
int pageNum_;
std::string ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_

View File

@@ -0,0 +1,91 @@
/*
* 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_DESCRIBERESTORETASKLISTRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTRESULT_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 DescribeRestoreTaskListResult : public ServiceResult
{
public:
struct RestoreTaskDetail
{
std::string restoreDir;
int fullStruAfterRestoreProgress;
int fullStruforeRestoreProgress;
std::string destinationEndpointOracleSID;
std::string backupSetId;
std::string restoreStatus;
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;
};
DescribeRestoreTaskListResult();
explicit DescribeRestoreTaskListResult(const std::string &payload);
~DescribeRestoreTaskListResult();
int getPageSize()const;
int getPageNum()const;
int getHttpStatusCode()const;
int getTotalElements()const;
std::vector<RestoreTaskDetail> getItems()const;
int getTotalPages()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getErrCode()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNum_;
int httpStatusCode_;
int totalElements_;
std::vector<RestoreTaskDetail> items_;
int totalPages_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTRESULT_H_