Просмотр исходного кода

Generated 2019-09-10 for waf-openapi.

sdk-team 5 лет назад
Родитель
Сommit
85cb326723

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-12-16 Version: patch
+- Generated 2019-09-10 for `waf-openapi`.
+
 2020-12-16 Version: patch
 - Support show pipeline history.
 - Support show log details.

+ 8 - 0
waf-openapi/CMakeLists.txt

@@ -61,8 +61,12 @@ set(waf-openapi_public_header_model
 	include/alibabacloud/waf-openapi/model/DescribeProtectionModuleRulesResult.h
 	include/alibabacloud/waf-openapi/model/DescribeProtectionModuleStatusRequest.h
 	include/alibabacloud/waf-openapi/model/DescribeProtectionModuleStatusResult.h
+	include/alibabacloud/waf-openapi/model/DescribeWafSourceIpSegmentRequest.h
+	include/alibabacloud/waf-openapi/model/DescribeWafSourceIpSegmentResult.h
 	include/alibabacloud/waf-openapi/model/ModifyDomainRequest.h
 	include/alibabacloud/waf-openapi/model/ModifyDomainResult.h
+	include/alibabacloud/waf-openapi/model/ModifyDomainClusterTypeRequest.h
+	include/alibabacloud/waf-openapi/model/ModifyDomainClusterTypeResult.h
 	include/alibabacloud/waf-openapi/model/ModifyDomainIpv6StatusRequest.h
 	include/alibabacloud/waf-openapi/model/ModifyDomainIpv6StatusResult.h
 	include/alibabacloud/waf-openapi/model/ModifyLogRetrievalStatusRequest.h
@@ -124,8 +128,12 @@ set(waf-openapi_src
 	src/model/DescribeProtectionModuleRulesResult.cc
 	src/model/DescribeProtectionModuleStatusRequest.cc
 	src/model/DescribeProtectionModuleStatusResult.cc
+	src/model/DescribeWafSourceIpSegmentRequest.cc
+	src/model/DescribeWafSourceIpSegmentResult.cc
 	src/model/ModifyDomainRequest.cc
 	src/model/ModifyDomainResult.cc
+	src/model/ModifyDomainClusterTypeRequest.cc
+	src/model/ModifyDomainClusterTypeResult.cc
 	src/model/ModifyDomainIpv6StatusRequest.cc
 	src/model/ModifyDomainIpv6StatusResult.cc
 	src/model/ModifyLogRetrievalStatusRequest.cc

+ 16 - 0
waf-openapi/include/alibabacloud/waf-openapi/Waf_openapiClient.h

@@ -62,8 +62,12 @@
 #include "model/DescribeProtectionModuleRulesResult.h"
 #include "model/DescribeProtectionModuleStatusRequest.h"
 #include "model/DescribeProtectionModuleStatusResult.h"
+#include "model/DescribeWafSourceIpSegmentRequest.h"
+#include "model/DescribeWafSourceIpSegmentResult.h"
 #include "model/ModifyDomainRequest.h"
 #include "model/ModifyDomainResult.h"
+#include "model/ModifyDomainClusterTypeRequest.h"
+#include "model/ModifyDomainClusterTypeResult.h"
 #include "model/ModifyDomainIpv6StatusRequest.h"
 #include "model/ModifyDomainIpv6StatusResult.h"
 #include "model/ModifyLogRetrievalStatusRequest.h"
@@ -151,9 +155,15 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::DescribeProtectionModuleStatusResult> DescribeProtectionModuleStatusOutcome;
 			typedef std::future<DescribeProtectionModuleStatusOutcome> DescribeProtectionModuleStatusOutcomeCallable;
 			typedef std::function<void(const Waf_openapiClient*, const Model::DescribeProtectionModuleStatusRequest&, const DescribeProtectionModuleStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProtectionModuleStatusAsyncHandler;
+			typedef Outcome<Error, Model::DescribeWafSourceIpSegmentResult> DescribeWafSourceIpSegmentOutcome;
+			typedef std::future<DescribeWafSourceIpSegmentOutcome> DescribeWafSourceIpSegmentOutcomeCallable;
+			typedef std::function<void(const Waf_openapiClient*, const Model::DescribeWafSourceIpSegmentRequest&, const DescribeWafSourceIpSegmentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWafSourceIpSegmentAsyncHandler;
 			typedef Outcome<Error, Model::ModifyDomainResult> ModifyDomainOutcome;
 			typedef std::future<ModifyDomainOutcome> ModifyDomainOutcomeCallable;
 			typedef std::function<void(const Waf_openapiClient*, const Model::ModifyDomainRequest&, const ModifyDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDomainAsyncHandler;
+			typedef Outcome<Error, Model::ModifyDomainClusterTypeResult> ModifyDomainClusterTypeOutcome;
+			typedef std::future<ModifyDomainClusterTypeOutcome> ModifyDomainClusterTypeOutcomeCallable;
+			typedef std::function<void(const Waf_openapiClient*, const Model::ModifyDomainClusterTypeRequest&, const ModifyDomainClusterTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDomainClusterTypeAsyncHandler;
 			typedef Outcome<Error, Model::ModifyDomainIpv6StatusResult> ModifyDomainIpv6StatusOutcome;
 			typedef std::future<ModifyDomainIpv6StatusOutcome> ModifyDomainIpv6StatusOutcomeCallable;
 			typedef std::function<void(const Waf_openapiClient*, const Model::ModifyDomainIpv6StatusRequest&, const ModifyDomainIpv6StatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDomainIpv6StatusAsyncHandler;
@@ -246,9 +256,15 @@ namespace AlibabaCloud
 			DescribeProtectionModuleStatusOutcome describeProtectionModuleStatus(const Model::DescribeProtectionModuleStatusRequest &request)const;
 			void describeProtectionModuleStatusAsync(const Model::DescribeProtectionModuleStatusRequest& request, const DescribeProtectionModuleStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DescribeProtectionModuleStatusOutcomeCallable describeProtectionModuleStatusCallable(const Model::DescribeProtectionModuleStatusRequest& request) const;
+			DescribeWafSourceIpSegmentOutcome describeWafSourceIpSegment(const Model::DescribeWafSourceIpSegmentRequest &request)const;
+			void describeWafSourceIpSegmentAsync(const Model::DescribeWafSourceIpSegmentRequest& request, const DescribeWafSourceIpSegmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			DescribeWafSourceIpSegmentOutcomeCallable describeWafSourceIpSegmentCallable(const Model::DescribeWafSourceIpSegmentRequest& request) const;
 			ModifyDomainOutcome modifyDomain(const Model::ModifyDomainRequest &request)const;
 			void modifyDomainAsync(const Model::ModifyDomainRequest& request, const ModifyDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			ModifyDomainOutcomeCallable modifyDomainCallable(const Model::ModifyDomainRequest& request) const;
+			ModifyDomainClusterTypeOutcome modifyDomainClusterType(const Model::ModifyDomainClusterTypeRequest &request)const;
+			void modifyDomainClusterTypeAsync(const Model::ModifyDomainClusterTypeRequest& request, const ModifyDomainClusterTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			ModifyDomainClusterTypeOutcomeCallable modifyDomainClusterTypeCallable(const Model::ModifyDomainClusterTypeRequest& request) const;
 			ModifyDomainIpv6StatusOutcome modifyDomainIpv6Status(const Model::ModifyDomainIpv6StatusRequest &request)const;
 			void modifyDomainIpv6StatusAsync(const Model::ModifyDomainIpv6StatusRequest& request, const ModifyDomainIpv6StatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			ModifyDomainIpv6StatusOutcomeCallable modifyDomainIpv6StatusCallable(const Model::ModifyDomainIpv6StatusRequest& request) const;

+ 60 - 0
waf-openapi/include/alibabacloud/waf-openapi/model/DescribeWafSourceIpSegmentRequest.h

@@ -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_WAF_OPENAPI_MODEL_DESCRIBEWAFSOURCEIPSEGMENTREQUEST_H_
+#define ALIBABACLOUD_WAF_OPENAPI_MODEL_DESCRIBEWAFSOURCEIPSEGMENTREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/waf-openapi/Waf_openapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Waf_openapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_WAF_OPENAPI_EXPORT DescribeWafSourceIpSegmentRequest : public RpcServiceRequest
+			{
+
+			public:
+				DescribeWafSourceIpSegmentRequest();
+				~DescribeWafSourceIpSegmentRequest();
+
+				std::string getResourceGroupId()const;
+				void setResourceGroupId(const std::string& resourceGroupId);
+				std::string getInstanceId()const;
+				void setInstanceId(const std::string& instanceId);
+				std::string getSourceIp()const;
+				void setSourceIp(const std::string& sourceIp);
+				std::string getLang()const;
+				void setLang(const std::string& lang);
+				std::string getRegion()const;
+				void setRegion(const std::string& region);
+
+            private:
+				std::string resourceGroupId_;
+				std::string instanceId_;
+				std::string sourceIp_;
+				std::string lang_;
+				std::string region_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_WAF_OPENAPI_MODEL_DESCRIBEWAFSOURCEIPSEGMENTREQUEST_H_

+ 53 - 0
waf-openapi/include/alibabacloud/waf-openapi/model/DescribeWafSourceIpSegmentResult.h

@@ -0,0 +1,53 @@
+/*
+ * 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_WAF_OPENAPI_MODEL_DESCRIBEWAFSOURCEIPSEGMENTRESULT_H_
+#define ALIBABACLOUD_WAF_OPENAPI_MODEL_DESCRIBEWAFSOURCEIPSEGMENTRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/waf-openapi/Waf_openapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Waf_openapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_WAF_OPENAPI_EXPORT DescribeWafSourceIpSegmentResult : public ServiceResult
+			{
+			public:
+
+
+				DescribeWafSourceIpSegmentResult();
+				explicit DescribeWafSourceIpSegmentResult(const std::string &payload);
+				~DescribeWafSourceIpSegmentResult();
+				std::string getIpV6s()const;
+				std::string getIps()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string ipV6s_;
+				std::string ips_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_WAF_OPENAPI_MODEL_DESCRIBEWAFSOURCEIPSEGMENTRESULT_H_

+ 57 - 0
waf-openapi/include/alibabacloud/waf-openapi/model/ModifyDomainClusterTypeRequest.h

@@ -0,0 +1,57 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPEREQUEST_H_
+#define ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPEREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/waf-openapi/Waf_openapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Waf_openapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_WAF_OPENAPI_EXPORT ModifyDomainClusterTypeRequest : public RpcServiceRequest
+			{
+
+			public:
+				ModifyDomainClusterTypeRequest();
+				~ModifyDomainClusterTypeRequest();
+
+				int getClusterType()const;
+				void setClusterType(int clusterType);
+				std::string getInstanceId()const;
+				void setInstanceId(const std::string& instanceId);
+				std::string getSourceIp()const;
+				void setSourceIp(const std::string& sourceIp);
+				std::string getDomain()const;
+				void setDomain(const std::string& domain);
+
+            private:
+				int clusterType_;
+				std::string instanceId_;
+				std::string sourceIp_;
+				std::string domain_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPEREQUEST_H_

+ 49 - 0
waf-openapi/include/alibabacloud/waf-openapi/model/ModifyDomainClusterTypeResult.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_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPERESULT_H_
+#define ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPERESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/waf-openapi/Waf_openapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Waf_openapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_WAF_OPENAPI_EXPORT ModifyDomainClusterTypeResult : public ServiceResult
+			{
+			public:
+
+
+				ModifyDomainClusterTypeResult();
+				explicit ModifyDomainClusterTypeResult(const std::string &payload);
+				~ModifyDomainClusterTypeResult();
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPERESULT_H_

+ 72 - 0
waf-openapi/src/Waf-openapiClient.cc

@@ -771,6 +771,42 @@ Waf_openapiClient::DescribeProtectionModuleStatusOutcomeCallable Waf_openapiClie
 	return task->get_future();
 }
 
+Waf_openapiClient::DescribeWafSourceIpSegmentOutcome Waf_openapiClient::describeWafSourceIpSegment(const DescribeWafSourceIpSegmentRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return DescribeWafSourceIpSegmentOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return DescribeWafSourceIpSegmentOutcome(DescribeWafSourceIpSegmentResult(outcome.result()));
+	else
+		return DescribeWafSourceIpSegmentOutcome(outcome.error());
+}
+
+void Waf_openapiClient::describeWafSourceIpSegmentAsync(const DescribeWafSourceIpSegmentRequest& request, const DescribeWafSourceIpSegmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, describeWafSourceIpSegment(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+Waf_openapiClient::DescribeWafSourceIpSegmentOutcomeCallable Waf_openapiClient::describeWafSourceIpSegmentCallable(const DescribeWafSourceIpSegmentRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<DescribeWafSourceIpSegmentOutcome()>>(
+			[this, request]()
+			{
+			return this->describeWafSourceIpSegment(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 Waf_openapiClient::ModifyDomainOutcome Waf_openapiClient::modifyDomain(const ModifyDomainRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -807,6 +843,42 @@ Waf_openapiClient::ModifyDomainOutcomeCallable Waf_openapiClient::modifyDomainCa
 	return task->get_future();
 }
 
+Waf_openapiClient::ModifyDomainClusterTypeOutcome Waf_openapiClient::modifyDomainClusterType(const ModifyDomainClusterTypeRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return ModifyDomainClusterTypeOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return ModifyDomainClusterTypeOutcome(ModifyDomainClusterTypeResult(outcome.result()));
+	else
+		return ModifyDomainClusterTypeOutcome(outcome.error());
+}
+
+void Waf_openapiClient::modifyDomainClusterTypeAsync(const ModifyDomainClusterTypeRequest& request, const ModifyDomainClusterTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, modifyDomainClusterType(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+Waf_openapiClient::ModifyDomainClusterTypeOutcomeCallable Waf_openapiClient::modifyDomainClusterTypeCallable(const ModifyDomainClusterTypeRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<ModifyDomainClusterTypeOutcome()>>(
+			[this, request]()
+			{
+			return this->modifyDomainClusterType(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 Waf_openapiClient::ModifyDomainIpv6StatusOutcome Waf_openapiClient::modifyDomainIpv6Status(const ModifyDomainIpv6StatusRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 84 - 0
waf-openapi/src/model/DescribeWafSourceIpSegmentRequest.cc

@@ -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/waf-openapi/model/DescribeWafSourceIpSegmentRequest.h>
+
+using AlibabaCloud::Waf_openapi::Model::DescribeWafSourceIpSegmentRequest;
+
+DescribeWafSourceIpSegmentRequest::DescribeWafSourceIpSegmentRequest() :
+	RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeWafSourceIpSegment")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+DescribeWafSourceIpSegmentRequest::~DescribeWafSourceIpSegmentRequest()
+{}
+
+std::string DescribeWafSourceIpSegmentRequest::getResourceGroupId()const
+{
+	return resourceGroupId_;
+}
+
+void DescribeWafSourceIpSegmentRequest::setResourceGroupId(const std::string& resourceGroupId)
+{
+	resourceGroupId_ = resourceGroupId;
+	setParameter("ResourceGroupId", resourceGroupId);
+}
+
+std::string DescribeWafSourceIpSegmentRequest::getInstanceId()const
+{
+	return instanceId_;
+}
+
+void DescribeWafSourceIpSegmentRequest::setInstanceId(const std::string& instanceId)
+{
+	instanceId_ = instanceId;
+	setParameter("InstanceId", instanceId);
+}
+
+std::string DescribeWafSourceIpSegmentRequest::getSourceIp()const
+{
+	return sourceIp_;
+}
+
+void DescribeWafSourceIpSegmentRequest::setSourceIp(const std::string& sourceIp)
+{
+	sourceIp_ = sourceIp;
+	setParameter("SourceIp", sourceIp);
+}
+
+std::string DescribeWafSourceIpSegmentRequest::getLang()const
+{
+	return lang_;
+}
+
+void DescribeWafSourceIpSegmentRequest::setLang(const std::string& lang)
+{
+	lang_ = lang;
+	setParameter("Lang", lang);
+}
+
+std::string DescribeWafSourceIpSegmentRequest::getRegion()const
+{
+	return region_;
+}
+
+void DescribeWafSourceIpSegmentRequest::setRegion(const std::string& region)
+{
+	region_ = region;
+	setParameter("Region", region);
+}
+

+ 58 - 0
waf-openapi/src/model/DescribeWafSourceIpSegmentResult.cc

@@ -0,0 +1,58 @@
+/*
+ * 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/waf-openapi/model/DescribeWafSourceIpSegmentResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Waf_openapi;
+using namespace AlibabaCloud::Waf_openapi::Model;
+
+DescribeWafSourceIpSegmentResult::DescribeWafSourceIpSegmentResult() :
+	ServiceResult()
+{}
+
+DescribeWafSourceIpSegmentResult::DescribeWafSourceIpSegmentResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+DescribeWafSourceIpSegmentResult::~DescribeWafSourceIpSegmentResult()
+{}
+
+void DescribeWafSourceIpSegmentResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["Ips"].isNull())
+		ips_ = value["Ips"].asString();
+	if(!value["IpV6s"].isNull())
+		ipV6s_ = value["IpV6s"].asString();
+
+}
+
+std::string DescribeWafSourceIpSegmentResult::getIpV6s()const
+{
+	return ipV6s_;
+}
+
+std::string DescribeWafSourceIpSegmentResult::getIps()const
+{
+	return ips_;
+}
+

+ 73 - 0
waf-openapi/src/model/ModifyDomainClusterTypeRequest.cc

@@ -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/waf-openapi/model/ModifyDomainClusterTypeRequest.h>
+
+using AlibabaCloud::Waf_openapi::Model::ModifyDomainClusterTypeRequest;
+
+ModifyDomainClusterTypeRequest::ModifyDomainClusterTypeRequest() :
+	RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyDomainClusterType")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+ModifyDomainClusterTypeRequest::~ModifyDomainClusterTypeRequest()
+{}
+
+int ModifyDomainClusterTypeRequest::getClusterType()const
+{
+	return clusterType_;
+}
+
+void ModifyDomainClusterTypeRequest::setClusterType(int clusterType)
+{
+	clusterType_ = clusterType;
+	setParameter("ClusterType", std::to_string(clusterType));
+}
+
+std::string ModifyDomainClusterTypeRequest::getInstanceId()const
+{
+	return instanceId_;
+}
+
+void ModifyDomainClusterTypeRequest::setInstanceId(const std::string& instanceId)
+{
+	instanceId_ = instanceId;
+	setParameter("InstanceId", instanceId);
+}
+
+std::string ModifyDomainClusterTypeRequest::getSourceIp()const
+{
+	return sourceIp_;
+}
+
+void ModifyDomainClusterTypeRequest::setSourceIp(const std::string& sourceIp)
+{
+	sourceIp_ = sourceIp;
+	setParameter("SourceIp", sourceIp);
+}
+
+std::string ModifyDomainClusterTypeRequest::getDomain()const
+{
+	return domain_;
+}
+
+void ModifyDomainClusterTypeRequest::setDomain(const std::string& domain)
+{
+	domain_ = domain;
+	setParameter("Domain", domain);
+}
+

+ 44 - 0
waf-openapi/src/model/ModifyDomainClusterTypeResult.cc

@@ -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/waf-openapi/model/ModifyDomainClusterTypeResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Waf_openapi;
+using namespace AlibabaCloud::Waf_openapi::Model;
+
+ModifyDomainClusterTypeResult::ModifyDomainClusterTypeResult() :
+	ServiceResult()
+{}
+
+ModifyDomainClusterTypeResult::ModifyDomainClusterTypeResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+ModifyDomainClusterTypeResult::~ModifyDomainClusterTypeResult()
+{}
+
+void ModifyDomainClusterTypeResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+
+}
+