Describe describeAvailableResource.

This commit is contained in:
sdk-team
2020-05-06 17:59:18 +08:00
parent 7a8130ffb0
commit bde21ef594
31 changed files with 1308 additions and 18 deletions

View File

@@ -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;

View File

@@ -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_;
};
}

View File

@@ -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;
};

View File

@@ -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_;
};
}

View File

@@ -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_;
};

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_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_

View 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.
*/
#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_

View 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.
*/
#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_

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_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_

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_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_

View File

@@ -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_

View File

@@ -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_;
};
}

View File

@@ -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_;

View File

@@ -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_;
};
}