Supported API GetTxtRecordForVerify.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2019-11-28 Version 1.36.203
|
||||||
|
- Supported API GetTxtRecordForVerify.
|
||||||
|
- Supported API RetrieveDomain.
|
||||||
|
|
||||||
2019-11-28 Version 1.36.202
|
2019-11-28 Version 1.36.202
|
||||||
- Supported dash for compress.
|
- Supported dash for compress.
|
||||||
|
|
||||||
|
|||||||
@@ -141,12 +141,16 @@ set(alidns_public_header_model
|
|||||||
include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanResult.h
|
include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanResult.h
|
||||||
include/alibabacloud/alidns/model/GetMainDomainNameRequest.h
|
include/alibabacloud/alidns/model/GetMainDomainNameRequest.h
|
||||||
include/alibabacloud/alidns/model/GetMainDomainNameResult.h
|
include/alibabacloud/alidns/model/GetMainDomainNameResult.h
|
||||||
|
include/alibabacloud/alidns/model/GetTxtRecordForVerifyRequest.h
|
||||||
|
include/alibabacloud/alidns/model/GetTxtRecordForVerifyResult.h
|
||||||
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.h
|
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.h
|
||||||
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSResult.h
|
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSResult.h
|
||||||
include/alibabacloud/alidns/model/OperateBatchDomainRequest.h
|
include/alibabacloud/alidns/model/OperateBatchDomainRequest.h
|
||||||
include/alibabacloud/alidns/model/OperateBatchDomainResult.h
|
include/alibabacloud/alidns/model/OperateBatchDomainResult.h
|
||||||
include/alibabacloud/alidns/model/PreviewGtmRecoveryPlanRequest.h
|
include/alibabacloud/alidns/model/PreviewGtmRecoveryPlanRequest.h
|
||||||
include/alibabacloud/alidns/model/PreviewGtmRecoveryPlanResult.h
|
include/alibabacloud/alidns/model/PreviewGtmRecoveryPlanResult.h
|
||||||
|
include/alibabacloud/alidns/model/RetrieveDomainRequest.h
|
||||||
|
include/alibabacloud/alidns/model/RetrieveDomainResult.h
|
||||||
include/alibabacloud/alidns/model/RollbackGtmRecoveryPlanRequest.h
|
include/alibabacloud/alidns/model/RollbackGtmRecoveryPlanRequest.h
|
||||||
include/alibabacloud/alidns/model/RollbackGtmRecoveryPlanResult.h
|
include/alibabacloud/alidns/model/RollbackGtmRecoveryPlanResult.h
|
||||||
include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h
|
include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h
|
||||||
@@ -306,12 +310,16 @@ set(alidns_src
|
|||||||
src/model/ExecuteGtmRecoveryPlanResult.cc
|
src/model/ExecuteGtmRecoveryPlanResult.cc
|
||||||
src/model/GetMainDomainNameRequest.cc
|
src/model/GetMainDomainNameRequest.cc
|
||||||
src/model/GetMainDomainNameResult.cc
|
src/model/GetMainDomainNameResult.cc
|
||||||
|
src/model/GetTxtRecordForVerifyRequest.cc
|
||||||
|
src/model/GetTxtRecordForVerifyResult.cc
|
||||||
src/model/ModifyHichinaDomainDNSRequest.cc
|
src/model/ModifyHichinaDomainDNSRequest.cc
|
||||||
src/model/ModifyHichinaDomainDNSResult.cc
|
src/model/ModifyHichinaDomainDNSResult.cc
|
||||||
src/model/OperateBatchDomainRequest.cc
|
src/model/OperateBatchDomainRequest.cc
|
||||||
src/model/OperateBatchDomainResult.cc
|
src/model/OperateBatchDomainResult.cc
|
||||||
src/model/PreviewGtmRecoveryPlanRequest.cc
|
src/model/PreviewGtmRecoveryPlanRequest.cc
|
||||||
src/model/PreviewGtmRecoveryPlanResult.cc
|
src/model/PreviewGtmRecoveryPlanResult.cc
|
||||||
|
src/model/RetrieveDomainRequest.cc
|
||||||
|
src/model/RetrieveDomainResult.cc
|
||||||
src/model/RollbackGtmRecoveryPlanRequest.cc
|
src/model/RollbackGtmRecoveryPlanRequest.cc
|
||||||
src/model/RollbackGtmRecoveryPlanResult.cc
|
src/model/RollbackGtmRecoveryPlanResult.cc
|
||||||
src/model/SetDNSSLBStatusRequest.cc
|
src/model/SetDNSSLBStatusRequest.cc
|
||||||
|
|||||||
@@ -142,12 +142,16 @@
|
|||||||
#include "model/ExecuteGtmRecoveryPlanResult.h"
|
#include "model/ExecuteGtmRecoveryPlanResult.h"
|
||||||
#include "model/GetMainDomainNameRequest.h"
|
#include "model/GetMainDomainNameRequest.h"
|
||||||
#include "model/GetMainDomainNameResult.h"
|
#include "model/GetMainDomainNameResult.h"
|
||||||
|
#include "model/GetTxtRecordForVerifyRequest.h"
|
||||||
|
#include "model/GetTxtRecordForVerifyResult.h"
|
||||||
#include "model/ModifyHichinaDomainDNSRequest.h"
|
#include "model/ModifyHichinaDomainDNSRequest.h"
|
||||||
#include "model/ModifyHichinaDomainDNSResult.h"
|
#include "model/ModifyHichinaDomainDNSResult.h"
|
||||||
#include "model/OperateBatchDomainRequest.h"
|
#include "model/OperateBatchDomainRequest.h"
|
||||||
#include "model/OperateBatchDomainResult.h"
|
#include "model/OperateBatchDomainResult.h"
|
||||||
#include "model/PreviewGtmRecoveryPlanRequest.h"
|
#include "model/PreviewGtmRecoveryPlanRequest.h"
|
||||||
#include "model/PreviewGtmRecoveryPlanResult.h"
|
#include "model/PreviewGtmRecoveryPlanResult.h"
|
||||||
|
#include "model/RetrieveDomainRequest.h"
|
||||||
|
#include "model/RetrieveDomainResult.h"
|
||||||
#include "model/RollbackGtmRecoveryPlanRequest.h"
|
#include "model/RollbackGtmRecoveryPlanRequest.h"
|
||||||
#include "model/RollbackGtmRecoveryPlanResult.h"
|
#include "model/RollbackGtmRecoveryPlanResult.h"
|
||||||
#include "model/SetDNSSLBStatusRequest.h"
|
#include "model/SetDNSSLBStatusRequest.h"
|
||||||
@@ -373,6 +377,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetMainDomainNameResult> GetMainDomainNameOutcome;
|
typedef Outcome<Error, Model::GetMainDomainNameResult> GetMainDomainNameOutcome;
|
||||||
typedef std::future<GetMainDomainNameOutcome> GetMainDomainNameOutcomeCallable;
|
typedef std::future<GetMainDomainNameOutcome> GetMainDomainNameOutcomeCallable;
|
||||||
typedef std::function<void(const AlidnsClient*, const Model::GetMainDomainNameRequest&, const GetMainDomainNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMainDomainNameAsyncHandler;
|
typedef std::function<void(const AlidnsClient*, const Model::GetMainDomainNameRequest&, const GetMainDomainNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMainDomainNameAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetTxtRecordForVerifyResult> GetTxtRecordForVerifyOutcome;
|
||||||
|
typedef std::future<GetTxtRecordForVerifyOutcome> GetTxtRecordForVerifyOutcomeCallable;
|
||||||
|
typedef std::function<void(const AlidnsClient*, const Model::GetTxtRecordForVerifyRequest&, const GetTxtRecordForVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTxtRecordForVerifyAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ModifyHichinaDomainDNSResult> ModifyHichinaDomainDNSOutcome;
|
typedef Outcome<Error, Model::ModifyHichinaDomainDNSResult> ModifyHichinaDomainDNSOutcome;
|
||||||
typedef std::future<ModifyHichinaDomainDNSOutcome> ModifyHichinaDomainDNSOutcomeCallable;
|
typedef std::future<ModifyHichinaDomainDNSOutcome> ModifyHichinaDomainDNSOutcomeCallable;
|
||||||
typedef std::function<void(const AlidnsClient*, const Model::ModifyHichinaDomainDNSRequest&, const ModifyHichinaDomainDNSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHichinaDomainDNSAsyncHandler;
|
typedef std::function<void(const AlidnsClient*, const Model::ModifyHichinaDomainDNSRequest&, const ModifyHichinaDomainDNSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHichinaDomainDNSAsyncHandler;
|
||||||
@@ -382,6 +389,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::PreviewGtmRecoveryPlanResult> PreviewGtmRecoveryPlanOutcome;
|
typedef Outcome<Error, Model::PreviewGtmRecoveryPlanResult> PreviewGtmRecoveryPlanOutcome;
|
||||||
typedef std::future<PreviewGtmRecoveryPlanOutcome> PreviewGtmRecoveryPlanOutcomeCallable;
|
typedef std::future<PreviewGtmRecoveryPlanOutcome> PreviewGtmRecoveryPlanOutcomeCallable;
|
||||||
typedef std::function<void(const AlidnsClient*, const Model::PreviewGtmRecoveryPlanRequest&, const PreviewGtmRecoveryPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PreviewGtmRecoveryPlanAsyncHandler;
|
typedef std::function<void(const AlidnsClient*, const Model::PreviewGtmRecoveryPlanRequest&, const PreviewGtmRecoveryPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PreviewGtmRecoveryPlanAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::RetrieveDomainResult> RetrieveDomainOutcome;
|
||||||
|
typedef std::future<RetrieveDomainOutcome> RetrieveDomainOutcomeCallable;
|
||||||
|
typedef std::function<void(const AlidnsClient*, const Model::RetrieveDomainRequest&, const RetrieveDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RetrieveDomainAsyncHandler;
|
||||||
typedef Outcome<Error, Model::RollbackGtmRecoveryPlanResult> RollbackGtmRecoveryPlanOutcome;
|
typedef Outcome<Error, Model::RollbackGtmRecoveryPlanResult> RollbackGtmRecoveryPlanOutcome;
|
||||||
typedef std::future<RollbackGtmRecoveryPlanOutcome> RollbackGtmRecoveryPlanOutcomeCallable;
|
typedef std::future<RollbackGtmRecoveryPlanOutcome> RollbackGtmRecoveryPlanOutcomeCallable;
|
||||||
typedef std::function<void(const AlidnsClient*, const Model::RollbackGtmRecoveryPlanRequest&, const RollbackGtmRecoveryPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RollbackGtmRecoveryPlanAsyncHandler;
|
typedef std::function<void(const AlidnsClient*, const Model::RollbackGtmRecoveryPlanRequest&, const RollbackGtmRecoveryPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RollbackGtmRecoveryPlanAsyncHandler;
|
||||||
@@ -621,6 +631,9 @@ namespace AlibabaCloud
|
|||||||
GetMainDomainNameOutcome getMainDomainName(const Model::GetMainDomainNameRequest &request)const;
|
GetMainDomainNameOutcome getMainDomainName(const Model::GetMainDomainNameRequest &request)const;
|
||||||
void getMainDomainNameAsync(const Model::GetMainDomainNameRequest& request, const GetMainDomainNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getMainDomainNameAsync(const Model::GetMainDomainNameRequest& request, const GetMainDomainNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetMainDomainNameOutcomeCallable getMainDomainNameCallable(const Model::GetMainDomainNameRequest& request) const;
|
GetMainDomainNameOutcomeCallable getMainDomainNameCallable(const Model::GetMainDomainNameRequest& request) const;
|
||||||
|
GetTxtRecordForVerifyOutcome getTxtRecordForVerify(const Model::GetTxtRecordForVerifyRequest &request)const;
|
||||||
|
void getTxtRecordForVerifyAsync(const Model::GetTxtRecordForVerifyRequest& request, const GetTxtRecordForVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetTxtRecordForVerifyOutcomeCallable getTxtRecordForVerifyCallable(const Model::GetTxtRecordForVerifyRequest& request) const;
|
||||||
ModifyHichinaDomainDNSOutcome modifyHichinaDomainDNS(const Model::ModifyHichinaDomainDNSRequest &request)const;
|
ModifyHichinaDomainDNSOutcome modifyHichinaDomainDNS(const Model::ModifyHichinaDomainDNSRequest &request)const;
|
||||||
void modifyHichinaDomainDNSAsync(const Model::ModifyHichinaDomainDNSRequest& request, const ModifyHichinaDomainDNSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void modifyHichinaDomainDNSAsync(const Model::ModifyHichinaDomainDNSRequest& request, const ModifyHichinaDomainDNSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ModifyHichinaDomainDNSOutcomeCallable modifyHichinaDomainDNSCallable(const Model::ModifyHichinaDomainDNSRequest& request) const;
|
ModifyHichinaDomainDNSOutcomeCallable modifyHichinaDomainDNSCallable(const Model::ModifyHichinaDomainDNSRequest& request) const;
|
||||||
@@ -630,6 +643,9 @@ namespace AlibabaCloud
|
|||||||
PreviewGtmRecoveryPlanOutcome previewGtmRecoveryPlan(const Model::PreviewGtmRecoveryPlanRequest &request)const;
|
PreviewGtmRecoveryPlanOutcome previewGtmRecoveryPlan(const Model::PreviewGtmRecoveryPlanRequest &request)const;
|
||||||
void previewGtmRecoveryPlanAsync(const Model::PreviewGtmRecoveryPlanRequest& request, const PreviewGtmRecoveryPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void previewGtmRecoveryPlanAsync(const Model::PreviewGtmRecoveryPlanRequest& request, const PreviewGtmRecoveryPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
PreviewGtmRecoveryPlanOutcomeCallable previewGtmRecoveryPlanCallable(const Model::PreviewGtmRecoveryPlanRequest& request) const;
|
PreviewGtmRecoveryPlanOutcomeCallable previewGtmRecoveryPlanCallable(const Model::PreviewGtmRecoveryPlanRequest& request) const;
|
||||||
|
RetrieveDomainOutcome retrieveDomain(const Model::RetrieveDomainRequest &request)const;
|
||||||
|
void retrieveDomainAsync(const Model::RetrieveDomainRequest& request, const RetrieveDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
RetrieveDomainOutcomeCallable retrieveDomainCallable(const Model::RetrieveDomainRequest& request) const;
|
||||||
RollbackGtmRecoveryPlanOutcome rollbackGtmRecoveryPlan(const Model::RollbackGtmRecoveryPlanRequest &request)const;
|
RollbackGtmRecoveryPlanOutcome rollbackGtmRecoveryPlan(const Model::RollbackGtmRecoveryPlanRequest &request)const;
|
||||||
void rollbackGtmRecoveryPlanAsync(const Model::RollbackGtmRecoveryPlanRequest& request, const RollbackGtmRecoveryPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void rollbackGtmRecoveryPlanAsync(const Model::RollbackGtmRecoveryPlanRequest& request, const RollbackGtmRecoveryPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
RollbackGtmRecoveryPlanOutcomeCallable rollbackGtmRecoveryPlanCallable(const Model::RollbackGtmRecoveryPlanRequest& request) const;
|
RollbackGtmRecoveryPlanOutcomeCallable rollbackGtmRecoveryPlanCallable(const Model::RollbackGtmRecoveryPlanRequest& request) const;
|
||||||
|
|||||||
@@ -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_ALIDNS_MODEL_GETTXTRECORDFORVERIFYREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ALIDNS_MODEL_GETTXTRECORDFORVERIFYREQUEST_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 GetTxtRecordForVerifyRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetTxtRecordForVerifyRequest();
|
||||||
|
~GetTxtRecordForVerifyRequest();
|
||||||
|
|
||||||
|
std::string getDomainName()const;
|
||||||
|
void setDomainName(const std::string& domainName);
|
||||||
|
std::string getType()const;
|
||||||
|
void setType(const std::string& type);
|
||||||
|
std::string getUserClientIp()const;
|
||||||
|
void setUserClientIp(const std::string& userClientIp);
|
||||||
|
std::string getLang()const;
|
||||||
|
void setLang(const std::string& lang);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string domainName_;
|
||||||
|
std::string type_;
|
||||||
|
std::string userClientIp_;
|
||||||
|
std::string lang_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ALIDNS_MODEL_GETTXTRECORDFORVERIFYREQUEST_H_
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* 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_GETTXTRECORDFORVERIFYRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ALIDNS_MODEL_GETTXTRECORDFORVERIFYRESULT_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 GetTxtRecordForVerifyResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
GetTxtRecordForVerifyResult();
|
||||||
|
explicit GetTxtRecordForVerifyResult(const std::string &payload);
|
||||||
|
~GetTxtRecordForVerifyResult();
|
||||||
|
std::string getRR()const;
|
||||||
|
std::string getDomainName()const;
|
||||||
|
std::string getValue()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string rR_;
|
||||||
|
std::string domainName_;
|
||||||
|
std::string value_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ALIDNS_MODEL_GETTXTRECORDFORVERIFYRESULT_H_
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* 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_RETRIEVEDOMAINREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_ALIDNS_MODEL_RETRIEVEDOMAINREQUEST_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 RetrieveDomainRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
RetrieveDomainRequest();
|
||||||
|
~RetrieveDomainRequest();
|
||||||
|
|
||||||
|
std::string getDomainName()const;
|
||||||
|
void setDomainName(const std::string& domainName);
|
||||||
|
std::string getUserClientIp()const;
|
||||||
|
void setUserClientIp(const std::string& userClientIp);
|
||||||
|
std::string getLang()const;
|
||||||
|
void setLang(const std::string& lang);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string domainName_;
|
||||||
|
std::string userClientIp_;
|
||||||
|
std::string lang_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ALIDNS_MODEL_RETRIEVEDOMAINREQUEST_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_RETRIEVEDOMAINRESULT_H_
|
||||||
|
#define ALIBABACLOUD_ALIDNS_MODEL_RETRIEVEDOMAINRESULT_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 RetrieveDomainResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
RetrieveDomainResult();
|
||||||
|
explicit RetrieveDomainResult(const std::string &payload);
|
||||||
|
~RetrieveDomainResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ALIDNS_MODEL_RETRIEVEDOMAINRESULT_H_
|
||||||
@@ -2211,6 +2211,42 @@ AlidnsClient::GetMainDomainNameOutcomeCallable AlidnsClient::getMainDomainNameCa
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AlidnsClient::GetTxtRecordForVerifyOutcome AlidnsClient::getTxtRecordForVerify(const GetTxtRecordForVerifyRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetTxtRecordForVerifyOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetTxtRecordForVerifyOutcome(GetTxtRecordForVerifyResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetTxtRecordForVerifyOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void AlidnsClient::getTxtRecordForVerifyAsync(const GetTxtRecordForVerifyRequest& request, const GetTxtRecordForVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getTxtRecordForVerify(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
AlidnsClient::GetTxtRecordForVerifyOutcomeCallable AlidnsClient::getTxtRecordForVerifyCallable(const GetTxtRecordForVerifyRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetTxtRecordForVerifyOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getTxtRecordForVerify(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
AlidnsClient::ModifyHichinaDomainDNSOutcome AlidnsClient::modifyHichinaDomainDNS(const ModifyHichinaDomainDNSRequest &request) const
|
AlidnsClient::ModifyHichinaDomainDNSOutcome AlidnsClient::modifyHichinaDomainDNS(const ModifyHichinaDomainDNSRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -2319,6 +2355,42 @@ AlidnsClient::PreviewGtmRecoveryPlanOutcomeCallable AlidnsClient::previewGtmReco
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AlidnsClient::RetrieveDomainOutcome AlidnsClient::retrieveDomain(const RetrieveDomainRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return RetrieveDomainOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return RetrieveDomainOutcome(RetrieveDomainResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return RetrieveDomainOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void AlidnsClient::retrieveDomainAsync(const RetrieveDomainRequest& request, const RetrieveDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, retrieveDomain(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
AlidnsClient::RetrieveDomainOutcomeCallable AlidnsClient::retrieveDomainCallable(const RetrieveDomainRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<RetrieveDomainOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->retrieveDomain(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
AlidnsClient::RollbackGtmRecoveryPlanOutcome AlidnsClient::rollbackGtmRecoveryPlan(const RollbackGtmRecoveryPlanRequest &request) const
|
AlidnsClient::RollbackGtmRecoveryPlanOutcome AlidnsClient::rollbackGtmRecoveryPlan(const RollbackGtmRecoveryPlanRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
73
alidns/src/model/GetTxtRecordForVerifyRequest.cc
Normal file
73
alidns/src/model/GetTxtRecordForVerifyRequest.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/alidns/model/GetTxtRecordForVerifyRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Alidns::Model::GetTxtRecordForVerifyRequest;
|
||||||
|
|
||||||
|
GetTxtRecordForVerifyRequest::GetTxtRecordForVerifyRequest() :
|
||||||
|
RpcServiceRequest("alidns", "2015-01-09", "GetTxtRecordForVerify")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetTxtRecordForVerifyRequest::~GetTxtRecordForVerifyRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetTxtRecordForVerifyRequest::getDomainName()const
|
||||||
|
{
|
||||||
|
return domainName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetTxtRecordForVerifyRequest::setDomainName(const std::string& domainName)
|
||||||
|
{
|
||||||
|
domainName_ = domainName;
|
||||||
|
setCoreParameter("DomainName", domainName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTxtRecordForVerifyRequest::getType()const
|
||||||
|
{
|
||||||
|
return type_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetTxtRecordForVerifyRequest::setType(const std::string& type)
|
||||||
|
{
|
||||||
|
type_ = type;
|
||||||
|
setCoreParameter("Type", type);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTxtRecordForVerifyRequest::getUserClientIp()const
|
||||||
|
{
|
||||||
|
return userClientIp_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetTxtRecordForVerifyRequest::setUserClientIp(const std::string& userClientIp)
|
||||||
|
{
|
||||||
|
userClientIp_ = userClientIp;
|
||||||
|
setCoreParameter("UserClientIp", userClientIp);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTxtRecordForVerifyRequest::getLang()const
|
||||||
|
{
|
||||||
|
return lang_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetTxtRecordForVerifyRequest::setLang(const std::string& lang)
|
||||||
|
{
|
||||||
|
lang_ = lang;
|
||||||
|
setCoreParameter("Lang", lang);
|
||||||
|
}
|
||||||
|
|
||||||
65
alidns/src/model/GetTxtRecordForVerifyResult.cc
Normal file
65
alidns/src/model/GetTxtRecordForVerifyResult.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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/GetTxtRecordForVerifyResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Alidns;
|
||||||
|
using namespace AlibabaCloud::Alidns::Model;
|
||||||
|
|
||||||
|
GetTxtRecordForVerifyResult::GetTxtRecordForVerifyResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetTxtRecordForVerifyResult::GetTxtRecordForVerifyResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetTxtRecordForVerifyResult::~GetTxtRecordForVerifyResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetTxtRecordForVerifyResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["DomainName"].isNull())
|
||||||
|
domainName_ = value["DomainName"].asString();
|
||||||
|
if(!value["RR"].isNull())
|
||||||
|
rR_ = value["RR"].asString();
|
||||||
|
if(!value["Value"].isNull())
|
||||||
|
value_ = value["Value"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTxtRecordForVerifyResult::getRR()const
|
||||||
|
{
|
||||||
|
return rR_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTxtRecordForVerifyResult::getDomainName()const
|
||||||
|
{
|
||||||
|
return domainName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetTxtRecordForVerifyResult::getValue()const
|
||||||
|
{
|
||||||
|
return value_;
|
||||||
|
}
|
||||||
|
|
||||||
62
alidns/src/model/RetrieveDomainRequest.cc
Normal file
62
alidns/src/model/RetrieveDomainRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* 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/RetrieveDomainRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Alidns::Model::RetrieveDomainRequest;
|
||||||
|
|
||||||
|
RetrieveDomainRequest::RetrieveDomainRequest() :
|
||||||
|
RpcServiceRequest("alidns", "2015-01-09", "RetrieveDomain")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
RetrieveDomainRequest::~RetrieveDomainRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string RetrieveDomainRequest::getDomainName()const
|
||||||
|
{
|
||||||
|
return domainName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void RetrieveDomainRequest::setDomainName(const std::string& domainName)
|
||||||
|
{
|
||||||
|
domainName_ = domainName;
|
||||||
|
setCoreParameter("DomainName", domainName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string RetrieveDomainRequest::getUserClientIp()const
|
||||||
|
{
|
||||||
|
return userClientIp_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void RetrieveDomainRequest::setUserClientIp(const std::string& userClientIp)
|
||||||
|
{
|
||||||
|
userClientIp_ = userClientIp;
|
||||||
|
setCoreParameter("UserClientIp", userClientIp);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string RetrieveDomainRequest::getLang()const
|
||||||
|
{
|
||||||
|
return lang_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void RetrieveDomainRequest::setLang(const std::string& lang)
|
||||||
|
{
|
||||||
|
lang_ = lang;
|
||||||
|
setCoreParameter("Lang", lang);
|
||||||
|
}
|
||||||
|
|
||||||
44
alidns/src/model/RetrieveDomainResult.cc
Normal file
44
alidns/src/model/RetrieveDomainResult.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/RetrieveDomainResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Alidns;
|
||||||
|
using namespace AlibabaCloud::Alidns::Model;
|
||||||
|
|
||||||
|
RetrieveDomainResult::RetrieveDomainResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
RetrieveDomainResult::RetrieveDomainResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
RetrieveDomainResult::~RetrieveDomainResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void RetrieveDomainResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user