Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bde21ef594 | ||
|
|
7a8130ffb0 |
@@ -1,3 +1,9 @@
|
||||
2020-05-06 Version: 1.36.398
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-04-30 Version: 1.36.397
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.396
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
|
||||
@@ -65,6 +65,12 @@ set(hbase_public_header_model
|
||||
include/alibabacloud/hbase/model/DescribeRecoverableTimeRangeResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreFullDetailsRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreFullDetailsResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreIncrDetailRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreIncrDetailResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreSchemaDetailsRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreSchemaDetailsResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreSummaryRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreSummaryResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreTablesRequest.h
|
||||
@@ -158,6 +164,12 @@ set(hbase_src
|
||||
src/model/DescribeRecoverableTimeRangeResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeRestoreFullDetailsRequest.cc
|
||||
src/model/DescribeRestoreFullDetailsResult.cc
|
||||
src/model/DescribeRestoreIncrDetailRequest.cc
|
||||
src/model/DescribeRestoreIncrDetailResult.cc
|
||||
src/model/DescribeRestoreSchemaDetailsRequest.cc
|
||||
src/model/DescribeRestoreSchemaDetailsResult.cc
|
||||
src/model/DescribeRestoreSummaryRequest.cc
|
||||
src/model/DescribeRestoreSummaryResult.cc
|
||||
src/model/DescribeRestoreTablesRequest.cc
|
||||
|
||||
@@ -66,6 +66,12 @@
|
||||
#include "model/DescribeRecoverableTimeRangeResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeRestoreFullDetailsRequest.h"
|
||||
#include "model/DescribeRestoreFullDetailsResult.h"
|
||||
#include "model/DescribeRestoreIncrDetailRequest.h"
|
||||
#include "model/DescribeRestoreIncrDetailResult.h"
|
||||
#include "model/DescribeRestoreSchemaDetailsRequest.h"
|
||||
#include "model/DescribeRestoreSchemaDetailsResult.h"
|
||||
#include "model/DescribeRestoreSummaryRequest.h"
|
||||
#include "model/DescribeRestoreSummaryResult.h"
|
||||
#include "model/DescribeRestoreTablesRequest.h"
|
||||
@@ -187,6 +193,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRestoreFullDetailsResult> DescribeRestoreFullDetailsOutcome;
|
||||
typedef std::future<DescribeRestoreFullDetailsOutcome> DescribeRestoreFullDetailsOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRestoreFullDetailsRequest&, const DescribeRestoreFullDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreFullDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRestoreIncrDetailResult> DescribeRestoreIncrDetailOutcome;
|
||||
typedef std::future<DescribeRestoreIncrDetailOutcome> DescribeRestoreIncrDetailOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRestoreIncrDetailRequest&, const DescribeRestoreIncrDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreIncrDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRestoreSchemaDetailsResult> DescribeRestoreSchemaDetailsOutcome;
|
||||
typedef std::future<DescribeRestoreSchemaDetailsOutcome> DescribeRestoreSchemaDetailsOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRestoreSchemaDetailsRequest&, const DescribeRestoreSchemaDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreSchemaDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRestoreSummaryResult> DescribeRestoreSummaryOutcome;
|
||||
typedef std::future<DescribeRestoreSummaryOutcome> DescribeRestoreSummaryOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRestoreSummaryRequest&, const DescribeRestoreSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreSummaryAsyncHandler;
|
||||
@@ -327,6 +342,15 @@ namespace AlibabaCloud
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
DescribeRestoreFullDetailsOutcome describeRestoreFullDetails(const Model::DescribeRestoreFullDetailsRequest &request)const;
|
||||
void describeRestoreFullDetailsAsync(const Model::DescribeRestoreFullDetailsRequest& request, const DescribeRestoreFullDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreFullDetailsOutcomeCallable describeRestoreFullDetailsCallable(const Model::DescribeRestoreFullDetailsRequest& request) const;
|
||||
DescribeRestoreIncrDetailOutcome describeRestoreIncrDetail(const Model::DescribeRestoreIncrDetailRequest &request)const;
|
||||
void describeRestoreIncrDetailAsync(const Model::DescribeRestoreIncrDetailRequest& request, const DescribeRestoreIncrDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreIncrDetailOutcomeCallable describeRestoreIncrDetailCallable(const Model::DescribeRestoreIncrDetailRequest& request) const;
|
||||
DescribeRestoreSchemaDetailsOutcome describeRestoreSchemaDetails(const Model::DescribeRestoreSchemaDetailsRequest &request)const;
|
||||
void describeRestoreSchemaDetailsAsync(const Model::DescribeRestoreSchemaDetailsRequest& request, const DescribeRestoreSchemaDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreSchemaDetailsOutcomeCallable describeRestoreSchemaDetailsCallable(const Model::DescribeRestoreSchemaDetailsRequest& request) const;
|
||||
DescribeRestoreSummaryOutcome describeRestoreSummary(const Model::DescribeRestoreSummaryRequest &request)const;
|
||||
void describeRestoreSummaryAsync(const Model::DescribeRestoreSummaryRequest& request, const DescribeRestoreSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreSummaryOutcomeCallable describeRestoreSummaryCallable(const Model::DescribeRestoreSummaryRequest& request) const;
|
||||
|
||||
@@ -37,9 +37,15 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,9 +54,11 @@ namespace AlibabaCloud
|
||||
std::string recordId;
|
||||
};
|
||||
std::string hasMore;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::string nextFullBackupDate;
|
||||
int total;
|
||||
std::vector<Record> records;
|
||||
std::string recordSize;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -35,14 +35,20 @@ namespace AlibabaCloud
|
||||
DescribeBackupTablesRequest();
|
||||
~DescribeBackupTablesRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getBackupRecordId()const;
|
||||
void setBackupRecordId(const std::string& backupRecordId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string backupRecordId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,16 +32,35 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeBackupTablesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BackupRecord
|
||||
{
|
||||
std::string speed;
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string dataSize;
|
||||
std::string startTime;
|
||||
std::string process;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupTablesResult();
|
||||
explicit DescribeBackupTablesResult(const std::string &payload);
|
||||
~DescribeBackupTablesResult();
|
||||
std::vector<BackupRecord> getBackupRecords()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
long getTotal()const;
|
||||
std::vector<std::string> getTables()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<BackupRecord> backupRecords_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
long total_;
|
||||
std::vector<std::string> tables_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreFullDetailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRestoreFullDetailsRequest();
|
||||
~DescribeRestoreFullDetailsRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getRestoreRecordId()const;
|
||||
void setRestoreRecordId(const std::string& restoreRecordId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string clusterId_;
|
||||
std::string restoreRecordId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSREQUEST_H_
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreFullDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RestoreFull
|
||||
{
|
||||
struct RestoreFullDetail
|
||||
{
|
||||
std::string speed;
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string dataSize;
|
||||
std::string startTime;
|
||||
std::string process;
|
||||
};
|
||||
std::vector<RestoreFullDetail> restoreFullDetails;
|
||||
std::string speed;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::string dataSize;
|
||||
long total;
|
||||
int succeed;
|
||||
int fail;
|
||||
};
|
||||
|
||||
|
||||
DescribeRestoreFullDetailsResult();
|
||||
explicit DescribeRestoreFullDetailsResult(const std::string &payload);
|
||||
~DescribeRestoreFullDetailsResult();
|
||||
RestoreFull getRestoreFull()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
RestoreFull restoreFull_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_HBASE_MODEL_DESCRIBERESTOREINCRDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREINCRDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreIncrDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRestoreIncrDetailRequest();
|
||||
~DescribeRestoreIncrDetailRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getRestoreRecordId()const;
|
||||
void setRestoreRecordId(const std::string& restoreRecordId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string restoreRecordId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREINCRDETAILREQUEST_H_
|
||||
@@ -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_HBASE_MODEL_DESCRIBERESTOREINCRDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREINCRDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreIncrDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RestoreIncrDetail
|
||||
{
|
||||
std::string endTime;
|
||||
std::string restoreDelay;
|
||||
std::string restoreStartTs;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
std::string restoredTs;
|
||||
std::string process;
|
||||
};
|
||||
|
||||
|
||||
DescribeRestoreIncrDetailResult();
|
||||
explicit DescribeRestoreIncrDetailResult(const std::string &payload);
|
||||
~DescribeRestoreIncrDetailResult();
|
||||
RestoreIncrDetail getRestoreIncrDetail()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
RestoreIncrDetail restoreIncrDetail_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREINCRDETAILRESULT_H_
|
||||
@@ -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_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreSchemaDetailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRestoreSchemaDetailsRequest();
|
||||
~DescribeRestoreSchemaDetailsRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getRestoreRecordId()const;
|
||||
void setRestoreRecordId(const std::string& restoreRecordId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string clusterId_;
|
||||
std::string restoreRecordId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreSchemaDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RestoreSchema
|
||||
{
|
||||
struct RestoreSchemaDetail
|
||||
{
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
};
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
long total;
|
||||
std::vector<RestoreSchemaDetail> restoreSchemaDetails;
|
||||
int succeed;
|
||||
int fail;
|
||||
};
|
||||
|
||||
|
||||
DescribeRestoreSchemaDetailsResult();
|
||||
explicit DescribeRestoreSchemaDetailsResult(const std::string &payload);
|
||||
~DescribeRestoreSchemaDetailsResult();
|
||||
RestoreSchema getRestoreSchema()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
RestoreSchema restoreSchema_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSRESULT_H_
|
||||
@@ -37,9 +37,15 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -48,14 +48,18 @@ namespace AlibabaCloud
|
||||
DescribeRestoreSummaryResult();
|
||||
explicit DescribeRestoreSummaryResult(const std::string &payload);
|
||||
~DescribeRestoreSummaryResult();
|
||||
int getRestoreRecordSize()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getTotal()const;
|
||||
int getHasMoreRestoreRecord()const;
|
||||
std::vector<Rescord> getRescords()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int restoreRecordSize_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
int total_;
|
||||
int hasMoreRestoreRecord_;
|
||||
std::vector<Rescord> rescords_;
|
||||
|
||||
|
||||
@@ -32,17 +32,83 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreTablesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RestoreSummary
|
||||
{
|
||||
std::string endTime;
|
||||
std::string targetCluster;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
std::string restoreToDate;
|
||||
std::string recordId;
|
||||
};
|
||||
struct RestoreSchema
|
||||
{
|
||||
struct RestoreSchemaDetail
|
||||
{
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
};
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
long total;
|
||||
std::vector<RestoreSchemaDetail> restoreSchemaDetails;
|
||||
int succeed;
|
||||
int fail;
|
||||
};
|
||||
struct RestoreFull
|
||||
{
|
||||
struct RestoreFullDetail
|
||||
{
|
||||
std::string speed;
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string dataSize;
|
||||
std::string startTime;
|
||||
std::string process;
|
||||
};
|
||||
std::vector<RestoreFullDetail> restoreFullDetails;
|
||||
std::string speed;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::string dataSize;
|
||||
long total;
|
||||
int succeed;
|
||||
int fail;
|
||||
};
|
||||
struct RestoreIncrDetail
|
||||
{
|
||||
std::string endTime;
|
||||
std::string restoreDelay;
|
||||
std::string restoreStartTs;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
std::string restoredTs;
|
||||
std::string process;
|
||||
};
|
||||
|
||||
|
||||
DescribeRestoreTablesResult();
|
||||
explicit DescribeRestoreTablesResult(const std::string &payload);
|
||||
~DescribeRestoreTablesResult();
|
||||
RestoreSchema getRestoreSchema()const;
|
||||
RestoreFull getRestoreFull()const;
|
||||
RestoreSummary getRestoreSummary()const;
|
||||
std::vector<std::string> getTables()const;
|
||||
RestoreIncrDetail getRestoreIncrDetail()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
RestoreSchema restoreSchema_;
|
||||
RestoreFull restoreFull_;
|
||||
RestoreSummary restoreSummary_;
|
||||
std::vector<std::string> tables_;
|
||||
RestoreIncrDetail restoreIncrDetail_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -843,6 +843,114 @@ HBaseClient::DescribeRegionsOutcomeCallable HBaseClient::describeRegionsCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreFullDetailsOutcome HBaseClient::describeRestoreFullDetails(const DescribeRestoreFullDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRestoreFullDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRestoreFullDetailsOutcome(DescribeRestoreFullDetailsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRestoreFullDetailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeRestoreFullDetailsAsync(const DescribeRestoreFullDetailsRequest& request, const DescribeRestoreFullDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRestoreFullDetails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreFullDetailsOutcomeCallable HBaseClient::describeRestoreFullDetailsCallable(const DescribeRestoreFullDetailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRestoreFullDetailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRestoreFullDetails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreIncrDetailOutcome HBaseClient::describeRestoreIncrDetail(const DescribeRestoreIncrDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRestoreIncrDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRestoreIncrDetailOutcome(DescribeRestoreIncrDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeRestoreIncrDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeRestoreIncrDetailAsync(const DescribeRestoreIncrDetailRequest& request, const DescribeRestoreIncrDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRestoreIncrDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreIncrDetailOutcomeCallable HBaseClient::describeRestoreIncrDetailCallable(const DescribeRestoreIncrDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRestoreIncrDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRestoreIncrDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreSchemaDetailsOutcome HBaseClient::describeRestoreSchemaDetails(const DescribeRestoreSchemaDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRestoreSchemaDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRestoreSchemaDetailsOutcome(DescribeRestoreSchemaDetailsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRestoreSchemaDetailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeRestoreSchemaDetailsAsync(const DescribeRestoreSchemaDetailsRequest& request, const DescribeRestoreSchemaDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRestoreSchemaDetails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreSchemaDetailsOutcomeCallable HBaseClient::describeRestoreSchemaDetailsCallable(const DescribeRestoreSchemaDetailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRestoreSchemaDetailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRestoreSchemaDetails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreSummaryOutcome HBaseClient::describeRestoreSummary(const DescribeRestoreSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -38,3 +38,25 @@ void DescribeBackupSummaryRequest::setClusterId(const std::string& clusterId)
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int DescribeBackupSummaryRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeBackupSummaryRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeBackupSummaryRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBackupSummaryRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -55,10 +55,14 @@ void DescribeBackupSummaryResult::parse(const std::string &payload)
|
||||
auto fullNode = value["Full"];
|
||||
if(!fullNode["HasMore"].isNull())
|
||||
full_.hasMore = fullNode["HasMore"].asString();
|
||||
if(!fullNode["RecordSize"].isNull())
|
||||
full_.recordSize = fullNode["RecordSize"].asString();
|
||||
if(!fullNode["NextFullBackupDate"].isNull())
|
||||
full_.nextFullBackupDate = fullNode["NextFullBackupDate"].asString();
|
||||
if(!fullNode["PageNumber"].isNull())
|
||||
full_.pageNumber = std::stoi(fullNode["PageNumber"].asString());
|
||||
if(!fullNode["PageSize"].isNull())
|
||||
full_.pageSize = std::stoi(fullNode["PageSize"].asString());
|
||||
if(!fullNode["Total"].isNull())
|
||||
full_.total = std::stoi(fullNode["Total"].asString());
|
||||
auto allRecordsNode = fullNode["Records"]["Record"];
|
||||
for (auto fullNodeRecordsRecord : allRecordsNode)
|
||||
{
|
||||
|
||||
@@ -27,15 +27,26 @@ DescribeBackupTablesRequest::DescribeBackupTablesRequest() :
|
||||
DescribeBackupTablesRequest::~DescribeBackupTablesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupTablesRequest::getClusterId()const
|
||||
int DescribeBackupTablesRequest::getPageNumber()const
|
||||
{
|
||||
return clusterId_;
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeBackupTablesRequest::setClusterId(const std::string& clusterId)
|
||||
void DescribeBackupTablesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeBackupTablesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBackupTablesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBackupTablesRequest::getBackupRecordId()const
|
||||
@@ -49,3 +60,14 @@ void DescribeBackupTablesRequest::setBackupRecordId(const std::string& backupRec
|
||||
setParameter("BackupRecordId", backupRecordId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupTablesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupTablesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,60 @@ void DescribeBackupTablesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBackupRecordsNode = value["BackupRecords"]["BackupRecord"];
|
||||
for (auto valueBackupRecordsBackupRecord : allBackupRecordsNode)
|
||||
{
|
||||
BackupRecord backupRecordsObject;
|
||||
if(!valueBackupRecordsBackupRecord["Table"].isNull())
|
||||
backupRecordsObject.table = valueBackupRecordsBackupRecord["Table"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["State"].isNull())
|
||||
backupRecordsObject.state = valueBackupRecordsBackupRecord["State"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["StartTime"].isNull())
|
||||
backupRecordsObject.startTime = valueBackupRecordsBackupRecord["StartTime"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["EndTime"].isNull())
|
||||
backupRecordsObject.endTime = valueBackupRecordsBackupRecord["EndTime"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["Process"].isNull())
|
||||
backupRecordsObject.process = valueBackupRecordsBackupRecord["Process"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["DataSize"].isNull())
|
||||
backupRecordsObject.dataSize = valueBackupRecordsBackupRecord["DataSize"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["Speed"].isNull())
|
||||
backupRecordsObject.speed = valueBackupRecordsBackupRecord["Speed"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["Message"].isNull())
|
||||
backupRecordsObject.message = valueBackupRecordsBackupRecord["Message"].asString();
|
||||
backupRecords_.push_back(backupRecordsObject);
|
||||
}
|
||||
auto allTables = value["Tables"]["Table"];
|
||||
for (const auto &item : allTables)
|
||||
tables_.push_back(item.asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupTablesResult::BackupRecord> DescribeBackupTablesResult::getBackupRecords()const
|
||||
{
|
||||
return backupRecords_;
|
||||
}
|
||||
|
||||
int DescribeBackupTablesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBackupTablesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeBackupTablesResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeBackupTablesResult::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
|
||||
73
hbase/src/model/DescribeRestoreFullDetailsRequest.cc
Normal file
73
hbase/src/model/DescribeRestoreFullDetailsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreFullDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeRestoreFullDetailsRequest;
|
||||
|
||||
DescribeRestoreFullDetailsRequest::DescribeRestoreFullDetailsRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeRestoreFullDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRestoreFullDetailsRequest::~DescribeRestoreFullDetailsRequest()
|
||||
{}
|
||||
|
||||
int DescribeRestoreFullDetailsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRestoreFullDetailsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeRestoreFullDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRestoreFullDetailsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreFullDetailsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreFullDetailsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeRestoreFullDetailsRequest::getRestoreRecordId()const
|
||||
{
|
||||
return restoreRecordId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreFullDetailsRequest::setRestoreRecordId(const std::string& restoreRecordId)
|
||||
{
|
||||
restoreRecordId_ = restoreRecordId;
|
||||
setParameter("RestoreRecordId", restoreRecordId);
|
||||
}
|
||||
|
||||
86
hbase/src/model/DescribeRestoreFullDetailsResult.cc
Normal file
86
hbase/src/model/DescribeRestoreFullDetailsResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreFullDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeRestoreFullDetailsResult::DescribeRestoreFullDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRestoreFullDetailsResult::DescribeRestoreFullDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRestoreFullDetailsResult::~DescribeRestoreFullDetailsResult()
|
||||
{}
|
||||
|
||||
void DescribeRestoreFullDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto restoreFullNode = value["RestoreFull"];
|
||||
if(!restoreFullNode["Succeed"].isNull())
|
||||
restoreFull_.succeed = std::stoi(restoreFullNode["Succeed"].asString());
|
||||
if(!restoreFullNode["Fail"].isNull())
|
||||
restoreFull_.fail = std::stoi(restoreFullNode["Fail"].asString());
|
||||
if(!restoreFullNode["DataSize"].isNull())
|
||||
restoreFull_.dataSize = restoreFullNode["DataSize"].asString();
|
||||
if(!restoreFullNode["Speed"].isNull())
|
||||
restoreFull_.speed = restoreFullNode["Speed"].asString();
|
||||
if(!restoreFullNode["Total"].isNull())
|
||||
restoreFull_.total = std::stol(restoreFullNode["Total"].asString());
|
||||
if(!restoreFullNode["PageNumber"].isNull())
|
||||
restoreFull_.pageNumber = std::stoi(restoreFullNode["PageNumber"].asString());
|
||||
if(!restoreFullNode["PageSize"].isNull())
|
||||
restoreFull_.pageSize = std::stoi(restoreFullNode["PageSize"].asString());
|
||||
auto allRestoreFullDetailsNode = restoreFullNode["RestoreFullDetails"]["RestoreFullDetail"];
|
||||
for (auto restoreFullNodeRestoreFullDetailsRestoreFullDetail : allRestoreFullDetailsNode)
|
||||
{
|
||||
RestoreFull::RestoreFullDetail restoreFullDetailObject;
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Table"].isNull())
|
||||
restoreFullDetailObject.table = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Table"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["State"].isNull())
|
||||
restoreFullDetailObject.state = restoreFullNodeRestoreFullDetailsRestoreFullDetail["State"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["StartTime"].isNull())
|
||||
restoreFullDetailObject.startTime = restoreFullNodeRestoreFullDetailsRestoreFullDetail["StartTime"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["EndTime"].isNull())
|
||||
restoreFullDetailObject.endTime = restoreFullNodeRestoreFullDetailsRestoreFullDetail["EndTime"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Process"].isNull())
|
||||
restoreFullDetailObject.process = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Process"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["DataSize"].isNull())
|
||||
restoreFullDetailObject.dataSize = restoreFullNodeRestoreFullDetailsRestoreFullDetail["DataSize"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Speed"].isNull())
|
||||
restoreFullDetailObject.speed = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Speed"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Message"].isNull())
|
||||
restoreFullDetailObject.message = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Message"].asString();
|
||||
restoreFull_.restoreFullDetails.push_back(restoreFullDetailObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeRestoreFullDetailsResult::RestoreFull DescribeRestoreFullDetailsResult::getRestoreFull()const
|
||||
{
|
||||
return restoreFull_;
|
||||
}
|
||||
|
||||
51
hbase/src/model/DescribeRestoreIncrDetailRequest.cc
Normal file
51
hbase/src/model/DescribeRestoreIncrDetailRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreIncrDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeRestoreIncrDetailRequest;
|
||||
|
||||
DescribeRestoreIncrDetailRequest::DescribeRestoreIncrDetailRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeRestoreIncrDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRestoreIncrDetailRequest::~DescribeRestoreIncrDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRestoreIncrDetailRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreIncrDetailRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeRestoreIncrDetailRequest::getRestoreRecordId()const
|
||||
{
|
||||
return restoreRecordId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreIncrDetailRequest::setRestoreRecordId(const std::string& restoreRecordId)
|
||||
{
|
||||
restoreRecordId_ = restoreRecordId;
|
||||
setParameter("RestoreRecordId", restoreRecordId);
|
||||
}
|
||||
|
||||
64
hbase/src/model/DescribeRestoreIncrDetailResult.cc
Normal file
64
hbase/src/model/DescribeRestoreIncrDetailResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreIncrDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeRestoreIncrDetailResult::DescribeRestoreIncrDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRestoreIncrDetailResult::DescribeRestoreIncrDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRestoreIncrDetailResult::~DescribeRestoreIncrDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeRestoreIncrDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto restoreIncrDetailNode = value["RestoreIncrDetail"];
|
||||
if(!restoreIncrDetailNode["State"].isNull())
|
||||
restoreIncrDetail_.state = restoreIncrDetailNode["State"].asString();
|
||||
if(!restoreIncrDetailNode["StartTime"].isNull())
|
||||
restoreIncrDetail_.startTime = restoreIncrDetailNode["StartTime"].asString();
|
||||
if(!restoreIncrDetailNode["EndTime"].isNull())
|
||||
restoreIncrDetail_.endTime = restoreIncrDetailNode["EndTime"].asString();
|
||||
if(!restoreIncrDetailNode["RestoreStartTs"].isNull())
|
||||
restoreIncrDetail_.restoreStartTs = restoreIncrDetailNode["RestoreStartTs"].asString();
|
||||
if(!restoreIncrDetailNode["RestoredTs"].isNull())
|
||||
restoreIncrDetail_.restoredTs = restoreIncrDetailNode["RestoredTs"].asString();
|
||||
if(!restoreIncrDetailNode["RestoreDelay"].isNull())
|
||||
restoreIncrDetail_.restoreDelay = restoreIncrDetailNode["RestoreDelay"].asString();
|
||||
if(!restoreIncrDetailNode["Process"].isNull())
|
||||
restoreIncrDetail_.process = restoreIncrDetailNode["Process"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeRestoreIncrDetailResult::RestoreIncrDetail DescribeRestoreIncrDetailResult::getRestoreIncrDetail()const
|
||||
{
|
||||
return restoreIncrDetail_;
|
||||
}
|
||||
|
||||
73
hbase/src/model/DescribeRestoreSchemaDetailsRequest.cc
Normal file
73
hbase/src/model/DescribeRestoreSchemaDetailsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreSchemaDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeRestoreSchemaDetailsRequest;
|
||||
|
||||
DescribeRestoreSchemaDetailsRequest::DescribeRestoreSchemaDetailsRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeRestoreSchemaDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRestoreSchemaDetailsRequest::~DescribeRestoreSchemaDetailsRequest()
|
||||
{}
|
||||
|
||||
int DescribeRestoreSchemaDetailsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSchemaDetailsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeRestoreSchemaDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSchemaDetailsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreSchemaDetailsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSchemaDetailsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeRestoreSchemaDetailsRequest::getRestoreRecordId()const
|
||||
{
|
||||
return restoreRecordId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSchemaDetailsRequest::setRestoreRecordId(const std::string& restoreRecordId)
|
||||
{
|
||||
restoreRecordId_ = restoreRecordId;
|
||||
setParameter("RestoreRecordId", restoreRecordId);
|
||||
}
|
||||
|
||||
76
hbase/src/model/DescribeRestoreSchemaDetailsResult.cc
Normal file
76
hbase/src/model/DescribeRestoreSchemaDetailsResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreSchemaDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeRestoreSchemaDetailsResult::DescribeRestoreSchemaDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRestoreSchemaDetailsResult::DescribeRestoreSchemaDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRestoreSchemaDetailsResult::~DescribeRestoreSchemaDetailsResult()
|
||||
{}
|
||||
|
||||
void DescribeRestoreSchemaDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto restoreSchemaNode = value["RestoreSchema"];
|
||||
if(!restoreSchemaNode["Succeed"].isNull())
|
||||
restoreSchema_.succeed = std::stoi(restoreSchemaNode["Succeed"].asString());
|
||||
if(!restoreSchemaNode["Fail"].isNull())
|
||||
restoreSchema_.fail = std::stoi(restoreSchemaNode["Fail"].asString());
|
||||
if(!restoreSchemaNode["Total"].isNull())
|
||||
restoreSchema_.total = std::stol(restoreSchemaNode["Total"].asString());
|
||||
if(!restoreSchemaNode["PageNumber"].isNull())
|
||||
restoreSchema_.pageNumber = std::stoi(restoreSchemaNode["PageNumber"].asString());
|
||||
if(!restoreSchemaNode["PageSize"].isNull())
|
||||
restoreSchema_.pageSize = std::stoi(restoreSchemaNode["PageSize"].asString());
|
||||
auto allRestoreSchemaDetailsNode = restoreSchemaNode["RestoreSchemaDetails"]["RestoreSchemaDetail"];
|
||||
for (auto restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail : allRestoreSchemaDetailsNode)
|
||||
{
|
||||
RestoreSchema::RestoreSchemaDetail restoreSchemaDetailObject;
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Table"].isNull())
|
||||
restoreSchemaDetailObject.table = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Table"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["StartTime"].isNull())
|
||||
restoreSchemaDetailObject.startTime = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["StartTime"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["EndTime"].isNull())
|
||||
restoreSchemaDetailObject.endTime = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["EndTime"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["State"].isNull())
|
||||
restoreSchemaDetailObject.state = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["State"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Message"].isNull())
|
||||
restoreSchemaDetailObject.message = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Message"].asString();
|
||||
restoreSchema_.restoreSchemaDetails.push_back(restoreSchemaDetailObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeRestoreSchemaDetailsResult::RestoreSchema DescribeRestoreSchemaDetailsResult::getRestoreSchema()const
|
||||
{
|
||||
return restoreSchema_;
|
||||
}
|
||||
|
||||
@@ -38,3 +38,25 @@ void DescribeRestoreSummaryRequest::setClusterId(const std::string& clusterId)
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSummaryRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSummaryRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -61,16 +61,30 @@ void DescribeRestoreSummaryResult::parse(const std::string &payload)
|
||||
rescordsObject.logProcess = valueRescordsRescord["LogProcess"].asString();
|
||||
rescords_.push_back(rescordsObject);
|
||||
}
|
||||
if(!value["RestoreRecordSize"].isNull())
|
||||
restoreRecordSize_ = std::stoi(value["RestoreRecordSize"].asString());
|
||||
if(!value["HasMoreRestoreRecord"].isNull())
|
||||
hasMoreRestoreRecord_ = std::stoi(value["HasMoreRestoreRecord"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getRestoreRecordSize()const
|
||||
int DescribeRestoreSummaryResult::getPageSize()const
|
||||
{
|
||||
return restoreRecordSize_;
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getHasMoreRestoreRecord()const
|
||||
|
||||
@@ -39,14 +39,126 @@ void DescribeRestoreTablesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto restoreSummaryNode = value["RestoreSummary"];
|
||||
if(!restoreSummaryNode["RecordId"].isNull())
|
||||
restoreSummary_.recordId = restoreSummaryNode["RecordId"].asString();
|
||||
if(!restoreSummaryNode["StartTime"].isNull())
|
||||
restoreSummary_.startTime = restoreSummaryNode["StartTime"].asString();
|
||||
if(!restoreSummaryNode["EndTime"].isNull())
|
||||
restoreSummary_.endTime = restoreSummaryNode["EndTime"].asString();
|
||||
if(!restoreSummaryNode["State"].isNull())
|
||||
restoreSummary_.state = restoreSummaryNode["State"].asString();
|
||||
if(!restoreSummaryNode["TargetCluster"].isNull())
|
||||
restoreSummary_.targetCluster = restoreSummaryNode["TargetCluster"].asString();
|
||||
if(!restoreSummaryNode["RestoreToDate"].isNull())
|
||||
restoreSummary_.restoreToDate = restoreSummaryNode["RestoreToDate"].asString();
|
||||
auto restoreSchemaNode = value["RestoreSchema"];
|
||||
if(!restoreSchemaNode["Succeed"].isNull())
|
||||
restoreSchema_.succeed = std::stoi(restoreSchemaNode["Succeed"].asString());
|
||||
if(!restoreSchemaNode["Fail"].isNull())
|
||||
restoreSchema_.fail = std::stoi(restoreSchemaNode["Fail"].asString());
|
||||
if(!restoreSchemaNode["Total"].isNull())
|
||||
restoreSchema_.total = std::stol(restoreSchemaNode["Total"].asString());
|
||||
if(!restoreSchemaNode["PageNumber"].isNull())
|
||||
restoreSchema_.pageNumber = std::stoi(restoreSchemaNode["PageNumber"].asString());
|
||||
if(!restoreSchemaNode["PageSize"].isNull())
|
||||
restoreSchema_.pageSize = std::stoi(restoreSchemaNode["PageSize"].asString());
|
||||
auto allRestoreSchemaDetailsNode = restoreSchemaNode["RestoreSchemaDetails"]["RestoreSchemaDetail"];
|
||||
for (auto restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail : allRestoreSchemaDetailsNode)
|
||||
{
|
||||
RestoreSchema::RestoreSchemaDetail restoreSchemaDetailObject;
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Table"].isNull())
|
||||
restoreSchemaDetailObject.table = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Table"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["StartTime"].isNull())
|
||||
restoreSchemaDetailObject.startTime = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["StartTime"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["EndTime"].isNull())
|
||||
restoreSchemaDetailObject.endTime = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["EndTime"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["State"].isNull())
|
||||
restoreSchemaDetailObject.state = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["State"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Message"].isNull())
|
||||
restoreSchemaDetailObject.message = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Message"].asString();
|
||||
restoreSchema_.restoreSchemaDetails.push_back(restoreSchemaDetailObject);
|
||||
}
|
||||
auto restoreFullNode = value["RestoreFull"];
|
||||
if(!restoreFullNode["Succeed"].isNull())
|
||||
restoreFull_.succeed = std::stoi(restoreFullNode["Succeed"].asString());
|
||||
if(!restoreFullNode["Fail"].isNull())
|
||||
restoreFull_.fail = std::stoi(restoreFullNode["Fail"].asString());
|
||||
if(!restoreFullNode["DataSize"].isNull())
|
||||
restoreFull_.dataSize = restoreFullNode["DataSize"].asString();
|
||||
if(!restoreFullNode["Speed"].isNull())
|
||||
restoreFull_.speed = restoreFullNode["Speed"].asString();
|
||||
if(!restoreFullNode["Total"].isNull())
|
||||
restoreFull_.total = std::stol(restoreFullNode["Total"].asString());
|
||||
if(!restoreFullNode["PageNumber"].isNull())
|
||||
restoreFull_.pageNumber = std::stoi(restoreFullNode["PageNumber"].asString());
|
||||
if(!restoreFullNode["PageSize"].isNull())
|
||||
restoreFull_.pageSize = std::stoi(restoreFullNode["PageSize"].asString());
|
||||
auto allRestoreFullDetailsNode = restoreFullNode["RestoreFullDetails"]["RestoreFullDetail"];
|
||||
for (auto restoreFullNodeRestoreFullDetailsRestoreFullDetail : allRestoreFullDetailsNode)
|
||||
{
|
||||
RestoreFull::RestoreFullDetail restoreFullDetailObject;
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Table"].isNull())
|
||||
restoreFullDetailObject.table = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Table"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["State"].isNull())
|
||||
restoreFullDetailObject.state = restoreFullNodeRestoreFullDetailsRestoreFullDetail["State"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["StartTime"].isNull())
|
||||
restoreFullDetailObject.startTime = restoreFullNodeRestoreFullDetailsRestoreFullDetail["StartTime"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["EndTime"].isNull())
|
||||
restoreFullDetailObject.endTime = restoreFullNodeRestoreFullDetailsRestoreFullDetail["EndTime"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Process"].isNull())
|
||||
restoreFullDetailObject.process = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Process"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["DataSize"].isNull())
|
||||
restoreFullDetailObject.dataSize = restoreFullNodeRestoreFullDetailsRestoreFullDetail["DataSize"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Speed"].isNull())
|
||||
restoreFullDetailObject.speed = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Speed"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Message"].isNull())
|
||||
restoreFullDetailObject.message = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Message"].asString();
|
||||
restoreFull_.restoreFullDetails.push_back(restoreFullDetailObject);
|
||||
}
|
||||
auto restoreIncrDetailNode = value["RestoreIncrDetail"];
|
||||
if(!restoreIncrDetailNode["State"].isNull())
|
||||
restoreIncrDetail_.state = restoreIncrDetailNode["State"].asString();
|
||||
if(!restoreIncrDetailNode["StartTime"].isNull())
|
||||
restoreIncrDetail_.startTime = restoreIncrDetailNode["StartTime"].asString();
|
||||
if(!restoreIncrDetailNode["EndTime"].isNull())
|
||||
restoreIncrDetail_.endTime = restoreIncrDetailNode["EndTime"].asString();
|
||||
if(!restoreIncrDetailNode["RestoreStartTs"].isNull())
|
||||
restoreIncrDetail_.restoreStartTs = restoreIncrDetailNode["RestoreStartTs"].asString();
|
||||
if(!restoreIncrDetailNode["RestoredTs"].isNull())
|
||||
restoreIncrDetail_.restoredTs = restoreIncrDetailNode["RestoredTs"].asString();
|
||||
if(!restoreIncrDetailNode["RestoreDelay"].isNull())
|
||||
restoreIncrDetail_.restoreDelay = restoreIncrDetailNode["RestoreDelay"].asString();
|
||||
if(!restoreIncrDetailNode["Process"].isNull())
|
||||
restoreIncrDetail_.process = restoreIncrDetailNode["Process"].asString();
|
||||
auto allTables = value["Tables"]["Table"];
|
||||
for (const auto &item : allTables)
|
||||
tables_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeRestoreTablesResult::RestoreSchema DescribeRestoreTablesResult::getRestoreSchema()const
|
||||
{
|
||||
return restoreSchema_;
|
||||
}
|
||||
|
||||
DescribeRestoreTablesResult::RestoreFull DescribeRestoreTablesResult::getRestoreFull()const
|
||||
{
|
||||
return restoreFull_;
|
||||
}
|
||||
|
||||
DescribeRestoreTablesResult::RestoreSummary DescribeRestoreTablesResult::getRestoreSummary()const
|
||||
{
|
||||
return restoreSummary_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRestoreTablesResult::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
}
|
||||
|
||||
DescribeRestoreTablesResult::RestoreIncrDetail DescribeRestoreTablesResult::getRestoreIncrDetail()const
|
||||
{
|
||||
return restoreIncrDetail_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user