regenerate code
This commit is contained in:
@@ -45,6 +45,8 @@ set(alidns_public_header_model
|
||||
include/alibabacloud/alidns/model/ChangeDomainGroupResult.h
|
||||
include/alibabacloud/alidns/model/ChangeDomainOfDnsProductRequest.h
|
||||
include/alibabacloud/alidns/model/ChangeDomainOfDnsProductResult.h
|
||||
include/alibabacloud/alidns/model/CopyGtmConfigRequest.h
|
||||
include/alibabacloud/alidns/model/CopyGtmConfigResult.h
|
||||
include/alibabacloud/alidns/model/DeleteCustomLinesRequest.h
|
||||
include/alibabacloud/alidns/model/DeleteCustomLinesResult.h
|
||||
include/alibabacloud/alidns/model/DeleteDomainRequest.h
|
||||
@@ -220,6 +222,8 @@ set(alidns_src
|
||||
src/model/ChangeDomainGroupResult.cc
|
||||
src/model/ChangeDomainOfDnsProductRequest.cc
|
||||
src/model/ChangeDomainOfDnsProductResult.cc
|
||||
src/model/CopyGtmConfigRequest.cc
|
||||
src/model/CopyGtmConfigResult.cc
|
||||
src/model/DeleteCustomLinesRequest.cc
|
||||
src/model/DeleteCustomLinesResult.cc
|
||||
src/model/DeleteDomainRequest.cc
|
||||
|
||||
@@ -46,6 +46,8 @@
|
||||
#include "model/ChangeDomainGroupResult.h"
|
||||
#include "model/ChangeDomainOfDnsProductRequest.h"
|
||||
#include "model/ChangeDomainOfDnsProductResult.h"
|
||||
#include "model/CopyGtmConfigRequest.h"
|
||||
#include "model/CopyGtmConfigResult.h"
|
||||
#include "model/DeleteCustomLinesRequest.h"
|
||||
#include "model/DeleteCustomLinesResult.h"
|
||||
#include "model/DeleteDomainRequest.h"
|
||||
@@ -239,6 +241,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ChangeDomainOfDnsProductResult> ChangeDomainOfDnsProductOutcome;
|
||||
typedef std::future<ChangeDomainOfDnsProductOutcome> ChangeDomainOfDnsProductOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::ChangeDomainOfDnsProductRequest&, const ChangeDomainOfDnsProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeDomainOfDnsProductAsyncHandler;
|
||||
typedef Outcome<Error, Model::CopyGtmConfigResult> CopyGtmConfigOutcome;
|
||||
typedef std::future<CopyGtmConfigOutcome> CopyGtmConfigOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::CopyGtmConfigRequest&, const CopyGtmConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CopyGtmConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteCustomLinesResult> DeleteCustomLinesOutcome;
|
||||
typedef std::future<DeleteCustomLinesOutcome> DeleteCustomLinesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DeleteCustomLinesRequest&, const DeleteCustomLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCustomLinesAsyncHandler;
|
||||
@@ -502,6 +507,9 @@ namespace AlibabaCloud
|
||||
ChangeDomainOfDnsProductOutcome changeDomainOfDnsProduct(const Model::ChangeDomainOfDnsProductRequest &request)const;
|
||||
void changeDomainOfDnsProductAsync(const Model::ChangeDomainOfDnsProductRequest& request, const ChangeDomainOfDnsProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeDomainOfDnsProductOutcomeCallable changeDomainOfDnsProductCallable(const Model::ChangeDomainOfDnsProductRequest& request) const;
|
||||
CopyGtmConfigOutcome copyGtmConfig(const Model::CopyGtmConfigRequest &request)const;
|
||||
void copyGtmConfigAsync(const Model::CopyGtmConfigRequest& request, const CopyGtmConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CopyGtmConfigOutcomeCallable copyGtmConfigCallable(const Model::CopyGtmConfigRequest& request) const;
|
||||
DeleteCustomLinesOutcome deleteCustomLines(const Model::DeleteCustomLinesRequest &request)const;
|
||||
void deleteCustomLinesAsync(const Model::DeleteCustomLinesRequest& request, const DeleteCustomLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCustomLinesOutcomeCallable deleteCustomLinesCallable(const Model::DeleteCustomLinesRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_ALIDNS_MODEL_COPYGTMCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_COPYGTMCONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT CopyGtmConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CopyGtmConfigRequest();
|
||||
~CopyGtmConfigRequest();
|
||||
|
||||
std::string getSourceId()const;
|
||||
void setSourceId(const std::string& sourceId);
|
||||
std::string getTargetId()const;
|
||||
void setTargetId(const std::string& targetId);
|
||||
std::string getCopyType()const;
|
||||
void setCopyType(const std::string& copyType);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string sourceId_;
|
||||
std::string targetId_;
|
||||
std::string copyType_;
|
||||
std::string userClientIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_COPYGTMCONFIGREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_ALIDNS_MODEL_COPYGTMCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_COPYGTMCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT CopyGtmConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CopyGtmConfigResult();
|
||||
explicit CopyGtmConfigResult(const std::string &payload);
|
||||
~CopyGtmConfigResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_COPYGTMCONFIGRESULT_H_
|
||||
@@ -37,16 +37,20 @@ namespace AlibabaCloud
|
||||
DescribeGtmInstanceStatusResult();
|
||||
explicit DescribeGtmInstanceStatusResult(const std::string &payload);
|
||||
~DescribeGtmInstanceStatusResult();
|
||||
std::string getStatus()const;
|
||||
int getStrategyNotAvailableNum()const;
|
||||
int getSwitchToFailoverStrategyNum()const;
|
||||
std::string getStatusReason()const;
|
||||
int getAddrNotAvailableNum()const;
|
||||
int getAddrPoolNotAvailableNum()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
int strategyNotAvailableNum_;
|
||||
int switchToFailoverStrategyNum_;
|
||||
std::string statusReason_;
|
||||
int addrNotAvailableNum_;
|
||||
int addrPoolNotAvailableNum_;
|
||||
|
||||
|
||||
@@ -483,6 +483,42 @@ AlidnsClient::ChangeDomainOfDnsProductOutcomeCallable AlidnsClient::changeDomain
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::CopyGtmConfigOutcome AlidnsClient::copyGtmConfig(const CopyGtmConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CopyGtmConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CopyGtmConfigOutcome(CopyGtmConfigResult(outcome.result()));
|
||||
else
|
||||
return CopyGtmConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::copyGtmConfigAsync(const CopyGtmConfigRequest& request, const CopyGtmConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, copyGtmConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::CopyGtmConfigOutcomeCallable AlidnsClient::copyGtmConfigCallable(const CopyGtmConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CopyGtmConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->copyGtmConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DeleteCustomLinesOutcome AlidnsClient::deleteCustomLines(const DeleteCustomLinesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
alidns/src/model/CopyGtmConfigRequest.cc
Normal file
84
alidns/src/model/CopyGtmConfigRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/alidns/model/CopyGtmConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::CopyGtmConfigRequest;
|
||||
|
||||
CopyGtmConfigRequest::CopyGtmConfigRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "CopyGtmConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CopyGtmConfigRequest::~CopyGtmConfigRequest()
|
||||
{}
|
||||
|
||||
std::string CopyGtmConfigRequest::getSourceId()const
|
||||
{
|
||||
return sourceId_;
|
||||
}
|
||||
|
||||
void CopyGtmConfigRequest::setSourceId(const std::string& sourceId)
|
||||
{
|
||||
sourceId_ = sourceId;
|
||||
setParameter("SourceId", sourceId);
|
||||
}
|
||||
|
||||
std::string CopyGtmConfigRequest::getTargetId()const
|
||||
{
|
||||
return targetId_;
|
||||
}
|
||||
|
||||
void CopyGtmConfigRequest::setTargetId(const std::string& targetId)
|
||||
{
|
||||
targetId_ = targetId;
|
||||
setParameter("TargetId", targetId);
|
||||
}
|
||||
|
||||
std::string CopyGtmConfigRequest::getCopyType()const
|
||||
{
|
||||
return copyType_;
|
||||
}
|
||||
|
||||
void CopyGtmConfigRequest::setCopyType(const std::string& copyType)
|
||||
{
|
||||
copyType_ = copyType;
|
||||
setParameter("CopyType", copyType);
|
||||
}
|
||||
|
||||
std::string CopyGtmConfigRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void CopyGtmConfigRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string CopyGtmConfigRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CopyGtmConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
alidns/src/model/CopyGtmConfigResult.cc
Normal file
44
alidns/src/model/CopyGtmConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/alidns/model/CopyGtmConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
CopyGtmConfigResult::CopyGtmConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CopyGtmConfigResult::CopyGtmConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CopyGtmConfigResult::~CopyGtmConfigResult()
|
||||
{}
|
||||
|
||||
void CopyGtmConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -47,9 +47,18 @@ void DescribeGtmInstanceStatusResult::parse(const std::string &payload)
|
||||
switchToFailoverStrategyNum_ = std::stoi(value["SwitchToFailoverStrategyNum"].asString());
|
||||
if(!value["StrategyNotAvailableNum"].isNull())
|
||||
strategyNotAvailableNum_ = std::stoi(value["StrategyNotAvailableNum"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["StatusReason"].isNull())
|
||||
statusReason_ = value["StatusReason"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeGtmInstanceStatusResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int DescribeGtmInstanceStatusResult::getStrategyNotAvailableNum()const
|
||||
{
|
||||
return strategyNotAvailableNum_;
|
||||
@@ -60,6 +69,11 @@ int DescribeGtmInstanceStatusResult::getSwitchToFailoverStrategyNum()const
|
||||
return switchToFailoverStrategyNum_;
|
||||
}
|
||||
|
||||
std::string DescribeGtmInstanceStatusResult::getStatusReason()const
|
||||
{
|
||||
return statusReason_;
|
||||
}
|
||||
|
||||
int DescribeGtmInstanceStatusResult::getAddrNotAvailableNum()const
|
||||
{
|
||||
return addrNotAvailableNum_;
|
||||
|
||||
Reference in New Issue
Block a user