Compare commits
2 Commits
CDRS-patch
...
HBase-patc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b58532ad0 | ||
|
|
4e4d3730de |
@@ -1,3 +1,9 @@
|
||||
2021-01-31 Version: patch
|
||||
- ConvertInstance.
|
||||
|
||||
2021-01-30 Version: patch
|
||||
- Update rate limit.
|
||||
|
||||
2021-01-29 Version: patch
|
||||
- Update Monitor Api.
|
||||
|
||||
|
||||
@@ -93,8 +93,6 @@ set(dts_public_header_model
|
||||
include/alibabacloud/dts/model/ModifyConsumerGroupPasswordResult.h
|
||||
include/alibabacloud/dts/model/ModifyConsumptionTimestampRequest.h
|
||||
include/alibabacloud/dts/model/ModifyConsumptionTimestampResult.h
|
||||
include/alibabacloud/dts/model/ModifyMigrationObjectRequest.h
|
||||
include/alibabacloud/dts/model/ModifyMigrationObjectResult.h
|
||||
include/alibabacloud/dts/model/ModifySubscriptionObjectRequest.h
|
||||
include/alibabacloud/dts/model/ModifySubscriptionObjectResult.h
|
||||
include/alibabacloud/dts/model/ModifySynchronizationObjectRequest.h
|
||||
@@ -196,8 +194,6 @@ set(dts_src
|
||||
src/model/ModifyConsumerGroupPasswordResult.cc
|
||||
src/model/ModifyConsumptionTimestampRequest.cc
|
||||
src/model/ModifyConsumptionTimestampResult.cc
|
||||
src/model/ModifyMigrationObjectRequest.cc
|
||||
src/model/ModifyMigrationObjectResult.cc
|
||||
src/model/ModifySubscriptionObjectRequest.cc
|
||||
src/model/ModifySubscriptionObjectResult.cc
|
||||
src/model/ModifySynchronizationObjectRequest.cc
|
||||
|
||||
@@ -94,8 +94,6 @@
|
||||
#include "model/ModifyConsumerGroupPasswordResult.h"
|
||||
#include "model/ModifyConsumptionTimestampRequest.h"
|
||||
#include "model/ModifyConsumptionTimestampResult.h"
|
||||
#include "model/ModifyMigrationObjectRequest.h"
|
||||
#include "model/ModifyMigrationObjectResult.h"
|
||||
#include "model/ModifySubscriptionObjectRequest.h"
|
||||
#include "model/ModifySubscriptionObjectResult.h"
|
||||
#include "model/ModifySynchronizationObjectRequest.h"
|
||||
@@ -239,9 +237,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyConsumptionTimestampResult> ModifyConsumptionTimestampOutcome;
|
||||
typedef std::future<ModifyConsumptionTimestampOutcome> ModifyConsumptionTimestampOutcomeCallable;
|
||||
typedef std::function<void(const DtsClient*, const Model::ModifyConsumptionTimestampRequest&, const ModifyConsumptionTimestampOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyConsumptionTimestampAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyMigrationObjectResult> ModifyMigrationObjectOutcome;
|
||||
typedef std::future<ModifyMigrationObjectOutcome> ModifyMigrationObjectOutcomeCallable;
|
||||
typedef std::function<void(const DtsClient*, const Model::ModifyMigrationObjectRequest&, const ModifyMigrationObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMigrationObjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifySubscriptionObjectResult> ModifySubscriptionObjectOutcome;
|
||||
typedef std::future<ModifySubscriptionObjectOutcome> ModifySubscriptionObjectOutcomeCallable;
|
||||
typedef std::function<void(const DtsClient*, const Model::ModifySubscriptionObjectRequest&, const ModifySubscriptionObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySubscriptionObjectAsyncHandler;
|
||||
@@ -394,9 +389,6 @@ namespace AlibabaCloud
|
||||
ModifyConsumptionTimestampOutcome modifyConsumptionTimestamp(const Model::ModifyConsumptionTimestampRequest &request)const;
|
||||
void modifyConsumptionTimestampAsync(const Model::ModifyConsumptionTimestampRequest& request, const ModifyConsumptionTimestampAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyConsumptionTimestampOutcomeCallable modifyConsumptionTimestampCallable(const Model::ModifyConsumptionTimestampRequest& request) const;
|
||||
ModifyMigrationObjectOutcome modifyMigrationObject(const Model::ModifyMigrationObjectRequest &request)const;
|
||||
void modifyMigrationObjectAsync(const Model::ModifyMigrationObjectRequest& request, const ModifyMigrationObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyMigrationObjectOutcomeCallable modifyMigrationObjectCallable(const Model::ModifyMigrationObjectRequest& request) const;
|
||||
ModifySubscriptionObjectOutcome modifySubscriptionObject(const Model::ModifySubscriptionObjectRequest &request)const;
|
||||
void modifySubscriptionObjectAsync(const Model::ModifySubscriptionObjectRequest& request, const ModifySubscriptionObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySubscriptionObjectOutcomeCallable modifySubscriptionObjectCallable(const Model::ModifySubscriptionObjectRequest& request) const;
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* 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_DTS_MODEL_MODIFYMIGRATIONOBJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_DTS_MODEL_MODIFYMIGRATIONOBJECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dts/DtsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dts
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DTS_EXPORT ModifyMigrationObjectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyMigrationObjectRequest();
|
||||
~ModifyMigrationObjectRequest();
|
||||
|
||||
std::string getMigrationObject()const;
|
||||
void setMigrationObject(const std::string& migrationObject);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getMigrationJobId()const;
|
||||
void setMigrationJobId(const std::string& migrationJobId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getAccountId()const;
|
||||
void setAccountId(const std::string& accountId);
|
||||
|
||||
private:
|
||||
std::string migrationObject_;
|
||||
std::string clientToken_;
|
||||
std::string migrationJobId_;
|
||||
std::string ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYMIGRATIONOBJECTREQUEST_H_
|
||||
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* 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_DTS_MODEL_MODIFYMIGRATIONOBJECTRESULT_H_
|
||||
#define ALIBABACLOUD_DTS_MODEL_MODIFYMIGRATIONOBJECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dts/DtsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dts
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DTS_EXPORT ModifyMigrationObjectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyMigrationObjectResult();
|
||||
explicit ModifyMigrationObjectResult(const std::string &payload);
|
||||
~ModifyMigrationObjectResult();
|
||||
std::string getErrMessage()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errMessage_;
|
||||
std::string success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYMIGRATIONOBJECTRESULT_H_
|
||||
@@ -1347,42 +1347,6 @@ DtsClient::ModifyConsumptionTimestampOutcomeCallable DtsClient::modifyConsumptio
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DtsClient::ModifyMigrationObjectOutcome DtsClient::modifyMigrationObject(const ModifyMigrationObjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyMigrationObjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyMigrationObjectOutcome(ModifyMigrationObjectResult(outcome.result()));
|
||||
else
|
||||
return ModifyMigrationObjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DtsClient::modifyMigrationObjectAsync(const ModifyMigrationObjectRequest& request, const ModifyMigrationObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyMigrationObject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DtsClient::ModifyMigrationObjectOutcomeCallable DtsClient::modifyMigrationObjectCallable(const ModifyMigrationObjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyMigrationObjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyMigrationObject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DtsClient::ModifySubscriptionObjectOutcome DtsClient::modifySubscriptionObject(const ModifySubscriptionObjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* 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/dts/model/ModifyMigrationObjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Dts::Model::ModifyMigrationObjectRequest;
|
||||
|
||||
ModifyMigrationObjectRequest::ModifyMigrationObjectRequest() :
|
||||
RpcServiceRequest("dts", "2020-01-01", "ModifyMigrationObject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyMigrationObjectRequest::~ModifyMigrationObjectRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyMigrationObjectRequest::getMigrationObject()const
|
||||
{
|
||||
return migrationObject_;
|
||||
}
|
||||
|
||||
void ModifyMigrationObjectRequest::setMigrationObject(const std::string& migrationObject)
|
||||
{
|
||||
migrationObject_ = migrationObject;
|
||||
setParameter("MigrationObject", migrationObject);
|
||||
}
|
||||
|
||||
std::string ModifyMigrationObjectRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ModifyMigrationObjectRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ModifyMigrationObjectRequest::getMigrationJobId()const
|
||||
{
|
||||
return migrationJobId_;
|
||||
}
|
||||
|
||||
void ModifyMigrationObjectRequest::setMigrationJobId(const std::string& migrationJobId)
|
||||
{
|
||||
migrationJobId_ = migrationJobId;
|
||||
setParameter("MigrationJobId", migrationJobId);
|
||||
}
|
||||
|
||||
std::string ModifyMigrationObjectRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyMigrationObjectRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
std::string ModifyMigrationObjectRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyMigrationObjectRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyMigrationObjectRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void ModifyMigrationObjectRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* 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/dts/model/ModifyMigrationObjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dts;
|
||||
using namespace AlibabaCloud::Dts::Model;
|
||||
|
||||
ModifyMigrationObjectResult::ModifyMigrationObjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyMigrationObjectResult::ModifyMigrationObjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyMigrationObjectResult::~ModifyMigrationObjectResult()
|
||||
{}
|
||||
|
||||
void ModifyMigrationObjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyMigrationObjectResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string ModifyMigrationObjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ModifyMigrationObjectResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -119,6 +119,8 @@ set(hbase_public_header_model
|
||||
include/alibabacloud/hbase/model/DescribeRestoreTablesResult.h
|
||||
include/alibabacloud/hbase/model/DescribeSecurityGroupsRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeSecurityGroupsResult.h
|
||||
include/alibabacloud/hbase/model/DescribeServerlessClusterRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeServerlessClusterResult.h
|
||||
include/alibabacloud/hbase/model/DescribeSubDomainRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeSubDomainResult.h
|
||||
include/alibabacloud/hbase/model/EnableHBaseueBackupRequest.h
|
||||
@@ -304,6 +306,8 @@ set(hbase_src
|
||||
src/model/DescribeRestoreTablesResult.cc
|
||||
src/model/DescribeSecurityGroupsRequest.cc
|
||||
src/model/DescribeSecurityGroupsResult.cc
|
||||
src/model/DescribeServerlessClusterRequest.cc
|
||||
src/model/DescribeServerlessClusterResult.cc
|
||||
src/model/DescribeSubDomainRequest.cc
|
||||
src/model/DescribeSubDomainResult.cc
|
||||
src/model/EnableHBaseueBackupRequest.cc
|
||||
|
||||
@@ -120,6 +120,8 @@
|
||||
#include "model/DescribeRestoreTablesResult.h"
|
||||
#include "model/DescribeSecurityGroupsRequest.h"
|
||||
#include "model/DescribeSecurityGroupsResult.h"
|
||||
#include "model/DescribeServerlessClusterRequest.h"
|
||||
#include "model/DescribeServerlessClusterResult.h"
|
||||
#include "model/DescribeSubDomainRequest.h"
|
||||
#include "model/DescribeSubDomainResult.h"
|
||||
#include "model/EnableHBaseueBackupRequest.h"
|
||||
@@ -360,6 +362,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSecurityGroupsResult> DescribeSecurityGroupsOutcome;
|
||||
typedef std::future<DescribeSecurityGroupsOutcome> DescribeSecurityGroupsOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeSecurityGroupsRequest&, const DescribeSecurityGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSecurityGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeServerlessClusterResult> DescribeServerlessClusterOutcome;
|
||||
typedef std::future<DescribeServerlessClusterOutcome> DescribeServerlessClusterOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeServerlessClusterRequest&, const DescribeServerlessClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeServerlessClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSubDomainResult> DescribeSubDomainOutcome;
|
||||
typedef std::future<DescribeSubDomainOutcome> DescribeSubDomainOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeSubDomainRequest&, const DescribeSubDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSubDomainAsyncHandler;
|
||||
@@ -638,6 +643,9 @@ namespace AlibabaCloud
|
||||
DescribeSecurityGroupsOutcome describeSecurityGroups(const Model::DescribeSecurityGroupsRequest &request)const;
|
||||
void describeSecurityGroupsAsync(const Model::DescribeSecurityGroupsRequest& request, const DescribeSecurityGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSecurityGroupsOutcomeCallable describeSecurityGroupsCallable(const Model::DescribeSecurityGroupsRequest& request) const;
|
||||
DescribeServerlessClusterOutcome describeServerlessCluster(const Model::DescribeServerlessClusterRequest &request)const;
|
||||
void describeServerlessClusterAsync(const Model::DescribeServerlessClusterRequest& request, const DescribeServerlessClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeServerlessClusterOutcomeCallable describeServerlessClusterCallable(const Model::DescribeServerlessClusterRequest& request) const;
|
||||
DescribeSubDomainOutcome describeSubDomain(const Model::DescribeSubDomainRequest &request)const;
|
||||
void describeSubDomainAsync(const Model::DescribeSubDomainRequest& request, const DescribeSubDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSubDomainOutcomeCallable describeSubDomainCallable(const Model::DescribeSubDomainRequest& request) const;
|
||||
|
||||
@@ -35,17 +35,20 @@ namespace AlibabaCloud
|
||||
ConvertInstanceRequest();
|
||||
~ConvertInstanceRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
int getDuration()const;
|
||||
void setDuration(int duration);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getPricingCycle()const;
|
||||
void setPricingCycle(const std::string& pricingCycle);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
int duration_;
|
||||
std::string clusterId_;
|
||||
std::string pricingCycle_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -53,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
std::string getDiskType()const;
|
||||
void setDiskType(const std::string& diskType);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getPeriodUnit()const;
|
||||
@@ -80,6 +82,7 @@ namespace AlibabaCloud
|
||||
std::string engine_;
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
std::string diskType_;
|
||||
std::string vSwitchId_;
|
||||
std::string periodUnit_;
|
||||
int serverlessCapability_;
|
||||
|
||||
@@ -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_DESCRIBESERVERLESSCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBESERVERLESSCLUSTERREQUEST_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 DescribeServerlessClusterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeServerlessClusterRequest();
|
||||
~DescribeServerlessClusterRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string zoneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBESERVERLESSCLUSTERREQUEST_H_
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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_DESCRIBESERVERLESSCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBESERVERLESSCLUSTERRESULT_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 DescribeServerlessClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeServerlessClusterResult();
|
||||
explicit DescribeServerlessClusterResult(const std::string &payload);
|
||||
~DescribeServerlessClusterResult();
|
||||
std::string getUpdateStatus()const;
|
||||
std::string getResourceGroupId()const;
|
||||
std::string getOuterEndpoint()const;
|
||||
std::string getAutoRenew()const;
|
||||
std::string getReserverMinQpsNum()const;
|
||||
std::string getIsDeletionProtection()const;
|
||||
std::string getDiskSize()const;
|
||||
std::string getReserverMaxQpsNum()const;
|
||||
std::string getCuSize()const;
|
||||
std::string getStatus()const;
|
||||
std::string getInnerEndpoint()const;
|
||||
std::string getMainVersion()const;
|
||||
std::string getZoneId()const;
|
||||
std::string getInstanceId()const;
|
||||
std::string getHasUser()const;
|
||||
std::string getVSwitchId()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getHaType()const;
|
||||
std::string getClusterType()const;
|
||||
std::string getLockMode()const;
|
||||
std::string getPayType()const;
|
||||
std::string getInstanceName()const;
|
||||
std::string getVpcId()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getExpireTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string updateStatus_;
|
||||
std::string resourceGroupId_;
|
||||
std::string outerEndpoint_;
|
||||
std::string autoRenew_;
|
||||
std::string reserverMinQpsNum_;
|
||||
std::string isDeletionProtection_;
|
||||
std::string diskSize_;
|
||||
std::string reserverMaxQpsNum_;
|
||||
std::string cuSize_;
|
||||
std::string status_;
|
||||
std::string innerEndpoint_;
|
||||
std::string mainVersion_;
|
||||
std::string zoneId_;
|
||||
std::string instanceId_;
|
||||
std::string hasUser_;
|
||||
std::string vSwitchId_;
|
||||
std::string createTime_;
|
||||
std::string haType_;
|
||||
std::string clusterType_;
|
||||
std::string lockMode_;
|
||||
std::string payType_;
|
||||
std::string instanceName_;
|
||||
std::string vpcId_;
|
||||
std::string regionId_;
|
||||
std::string expireTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBESERVERLESSCLUSTERRESULT_H_
|
||||
@@ -1815,6 +1815,42 @@ HBaseClient::DescribeSecurityGroupsOutcomeCallable HBaseClient::describeSecurity
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeServerlessClusterOutcome HBaseClient::describeServerlessCluster(const DescribeServerlessClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeServerlessClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeServerlessClusterOutcome(DescribeServerlessClusterResult(outcome.result()));
|
||||
else
|
||||
return DescribeServerlessClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeServerlessClusterAsync(const DescribeServerlessClusterRequest& request, const DescribeServerlessClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeServerlessCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeServerlessClusterOutcomeCallable HBaseClient::describeServerlessClusterCallable(const DescribeServerlessClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeServerlessClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeServerlessCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeSubDomainOutcome HBaseClient::describeSubDomain(const DescribeSubDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -27,17 +27,6 @@ ConvertInstanceRequest::ConvertInstanceRequest() :
|
||||
ConvertInstanceRequest::~ConvertInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string ConvertInstanceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ConvertInstanceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ConvertInstanceRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
@@ -49,6 +38,17 @@ void ConvertInstanceRequest::setDuration(int duration)
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string ConvertInstanceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ConvertInstanceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ConvertInstanceRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
@@ -60,3 +60,14 @@ void ConvertInstanceRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
std::string ConvertInstanceRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void ConvertInstanceRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
|
||||
@@ -126,6 +126,17 @@ void CreateServerlessClusterRequest::setPeriod(int period)
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateServerlessClusterRequest::getDiskType()const
|
||||
{
|
||||
return diskType_;
|
||||
}
|
||||
|
||||
void CreateServerlessClusterRequest::setDiskType(const std::string& diskType)
|
||||
{
|
||||
diskType_ = diskType;
|
||||
setParameter("DiskType", diskType);
|
||||
}
|
||||
|
||||
std::string CreateServerlessClusterRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
|
||||
51
hbase/src/model/DescribeServerlessClusterRequest.cc
Normal file
51
hbase/src/model/DescribeServerlessClusterRequest.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/DescribeServerlessClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeServerlessClusterRequest;
|
||||
|
||||
DescribeServerlessClusterRequest::DescribeServerlessClusterRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeServerlessCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeServerlessClusterRequest::~DescribeServerlessClusterRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeServerlessClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeServerlessClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeServerlessClusterRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
219
hbase/src/model/DescribeServerlessClusterResult.cc
Normal file
219
hbase/src/model/DescribeServerlessClusterResult.cc
Normal file
@@ -0,0 +1,219 @@
|
||||
/*
|
||||
* 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/DescribeServerlessClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeServerlessClusterResult::DescribeServerlessClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeServerlessClusterResult::DescribeServerlessClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeServerlessClusterResult::~DescribeServerlessClusterResult()
|
||||
{}
|
||||
|
||||
void DescribeServerlessClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchId_ = value["VSwitchId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
instanceName_ = value["InstanceName"].asString();
|
||||
if(!value["MainVersion"].isNull())
|
||||
mainVersion_ = value["MainVersion"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["ClusterType"].isNull())
|
||||
clusterType_ = value["ClusterType"].asString();
|
||||
if(!value["HasUser"].isNull())
|
||||
hasUser_ = value["HasUser"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
lockMode_ = value["LockMode"].asString();
|
||||
if(!value["HaType"].isNull())
|
||||
haType_ = value["HaType"].asString();
|
||||
if(!value["PayType"].isNull())
|
||||
payType_ = value["PayType"].asString();
|
||||
if(!value["InnerEndpoint"].isNull())
|
||||
innerEndpoint_ = value["InnerEndpoint"].asString();
|
||||
if(!value["OuterEndpoint"].isNull())
|
||||
outerEndpoint_ = value["OuterEndpoint"].asString();
|
||||
if(!value["ReserverMinQpsNum"].isNull())
|
||||
reserverMinQpsNum_ = value["ReserverMinQpsNum"].asString();
|
||||
if(!value["ReserverMaxQpsNum"].isNull())
|
||||
reserverMaxQpsNum_ = value["ReserverMaxQpsNum"].asString();
|
||||
if(!value["AutoRenew"].isNull())
|
||||
autoRenew_ = value["AutoRenew"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
zoneId_ = value["ZoneId"].asString();
|
||||
if(!value["UpdateStatus"].isNull())
|
||||
updateStatus_ = value["UpdateStatus"].asString();
|
||||
if(!value["IsDeletionProtection"].isNull())
|
||||
isDeletionProtection_ = value["IsDeletionProtection"].asString();
|
||||
if(!value["DiskSize"].isNull())
|
||||
diskSize_ = value["DiskSize"].asString();
|
||||
if(!value["CuSize"].isNull())
|
||||
cuSize_ = value["CuSize"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getUpdateStatus()const
|
||||
{
|
||||
return updateStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getOuterEndpoint()const
|
||||
{
|
||||
return outerEndpoint_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getReserverMinQpsNum()const
|
||||
{
|
||||
return reserverMinQpsNum_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getIsDeletionProtection()const
|
||||
{
|
||||
return isDeletionProtection_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getReserverMaxQpsNum()const
|
||||
{
|
||||
return reserverMaxQpsNum_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getCuSize()const
|
||||
{
|
||||
return cuSize_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getInnerEndpoint()const
|
||||
{
|
||||
return innerEndpoint_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getMainVersion()const
|
||||
{
|
||||
return mainVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getHasUser()const
|
||||
{
|
||||
return hasUser_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getHaType()const
|
||||
{
|
||||
return haType_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getLockMode()const
|
||||
{
|
||||
return lockMode_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeServerlessClusterResult::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user