Ver código fonte

Update imgsearch.

sdk-team 3 anos atrás
pai
commit
e9b7f9a589

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1466
+1.36.1467

+ 40 - 46
imgsearch/include/alibabacloud/imgsearch/model/AddImageRequest.h

@@ -1,57 +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_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
-#define ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/imgsearch/ImgsearchExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Imgsearch
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_IMGSEARCH_EXPORT AddImageRequest : public RpcServiceRequest
-			{
-
-			public:
-				AddImageRequest();
-				~AddImageRequest();
-
-				std::string getEntityId()const;
-				void setEntityId(const std::string& entityId);
-				std::string getDbName()const;
-				void setDbName(const std::string& dbName);
-				std::string getImageUrl()const;
-				void setImageUrl(const std::string& imageUrl);
-				std::string getExtraData()const;
-				void setExtraData(const std::string& extraData);
-
-            private:
-				std::string entityId_;
-				std::string dbName_;
-				std::string imageUrl_;
-				std::string extraData_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
+#define ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
+
+#include <alibabacloud/imgsearch/ImgsearchExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Imgsearch {
+namespace Model {
+class ALIBABACLOUD_IMGSEARCH_EXPORT AddImageRequest : public RpcServiceRequest {
+public:
+	AddImageRequest();
+	~AddImageRequest();
+	std::string getEntityId() const;
+	void setEntityId(const std::string &entityId);
+	std::string getDbName() const;
+	void setDbName(const std::string &dbName);
+	std::string getImageUrl() const;
+	void setImageUrl(const std::string &imageUrl);
+	std::string getExtraData() const;
+	void setExtraData(const std::string &extraData);
+
+private:
+	std::string entityId_;
+	std::string dbName_;
+	std::string imageUrl_;
+	std::string extraData_;
+};
+} // namespace Model
+} // namespace Imgsearch
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_

+ 31 - 37
imgsearch/include/alibabacloud/imgsearch/model/CreateImageDbRequest.h

@@ -1,48 +1,42 @@
 /*
  * 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_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
-#define ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/imgsearch/ImgsearchExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Imgsearch
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_IMGSEARCH_EXPORT CreateImageDbRequest : public RpcServiceRequest
-			{
-
-			public:
-				CreateImageDbRequest();
-				~CreateImageDbRequest();
-
-				std::string getName()const;
-				void setName(const std::string& name);
-
-            private:
-				std::string name_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
+#define ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
+
+#include <alibabacloud/imgsearch/ImgsearchExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Imgsearch {
+namespace Model {
+class ALIBABACLOUD_IMGSEARCH_EXPORT CreateImageDbRequest : public RpcServiceRequest {
+public:
+	CreateImageDbRequest();
+	~CreateImageDbRequest();
+	std::string getName() const;
+	void setName(const std::string &name);
+
+private:
+	std::string name_;
+};
+} // namespace Model
+} // namespace Imgsearch
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_

+ 31 - 37
imgsearch/include/alibabacloud/imgsearch/model/DeleteImageDbRequest.h

@@ -1,48 +1,42 @@
 /*
  * 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_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
-#define ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/imgsearch/ImgsearchExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Imgsearch
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_IMGSEARCH_EXPORT DeleteImageDbRequest : public RpcServiceRequest
-			{
-
-			public:
-				DeleteImageDbRequest();
-				~DeleteImageDbRequest();
-
-				std::string getName()const;
-				void setName(const std::string& name);
-
-            private:
-				std::string name_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
+#define ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
+
+#include <alibabacloud/imgsearch/ImgsearchExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Imgsearch {
+namespace Model {
+class ALIBABACLOUD_IMGSEARCH_EXPORT DeleteImageDbRequest : public RpcServiceRequest {
+public:
+	DeleteImageDbRequest();
+	~DeleteImageDbRequest();
+	std::string getName() const;
+	void setName(const std::string &name);
+
+private:
+	std::string name_;
+};
+} // namespace Model
+} // namespace Imgsearch
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_

+ 34 - 40
imgsearch/include/alibabacloud/imgsearch/model/DeleteImageRequest.h

@@ -1,51 +1,45 @@
 /*
  * 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_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
-#define ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/imgsearch/ImgsearchExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Imgsearch
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_IMGSEARCH_EXPORT DeleteImageRequest : public RpcServiceRequest
-			{
-
-			public:
-				DeleteImageRequest();
-				~DeleteImageRequest();
-
-				std::string getEntityId()const;
-				void setEntityId(const std::string& entityId);
-				std::string getDbName()const;
-				void setDbName(const std::string& dbName);
-
-            private:
-				std::string entityId_;
-				std::string dbName_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
+#define ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
+
+#include <alibabacloud/imgsearch/ImgsearchExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Imgsearch {
+namespace Model {
+class ALIBABACLOUD_IMGSEARCH_EXPORT DeleteImageRequest : public RpcServiceRequest {
+public:
+	DeleteImageRequest();
+	~DeleteImageRequest();
+	std::string getEntityId() const;
+	void setEntityId(const std::string &entityId);
+	std::string getDbName() const;
+	void setDbName(const std::string &dbName);
+
+private:
+	std::string entityId_;
+	std::string dbName_;
+};
+} // namespace Model
+} // namespace Imgsearch
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_

+ 28 - 34
imgsearch/include/alibabacloud/imgsearch/model/ListImageDbsRequest.h

@@ -1,45 +1,39 @@
 /*
  * 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_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
-#define ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/imgsearch/ImgsearchExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Imgsearch
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_IMGSEARCH_EXPORT ListImageDbsRequest : public RpcServiceRequest
-			{
-
-			public:
-				ListImageDbsRequest();
-				~ListImageDbsRequest();
-
-
-            private:
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
+#define ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
+
+#include <alibabacloud/imgsearch/ImgsearchExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Imgsearch {
+namespace Model {
+class ALIBABACLOUD_IMGSEARCH_EXPORT ListImageDbsRequest : public RpcServiceRequest {
+public:
+	ListImageDbsRequest();
+	~ListImageDbsRequest();
+
+private:
+};
+} // namespace Model
+} // namespace Imgsearch
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_

+ 46 - 52
imgsearch/include/alibabacloud/imgsearch/model/ListImagesRequest.h

@@ -1,63 +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_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
-#define ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/imgsearch/ImgsearchExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Imgsearch
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_IMGSEARCH_EXPORT ListImagesRequest : public RpcServiceRequest
-			{
-
-			public:
-				ListImagesRequest();
-				~ListImagesRequest();
-
-				std::string getEntityIdPrefix()const;
-				void setEntityIdPrefix(const std::string& entityIdPrefix);
-				int getLimit()const;
-				void setLimit(int limit);
-				std::string getOrder()const;
-				void setOrder(const std::string& order);
-				int getOffset()const;
-				void setOffset(int offset);
-				std::string getToken()const;
-				void setToken(const std::string& token);
-				std::string getDbName()const;
-				void setDbName(const std::string& dbName);
-
-            private:
-				std::string entityIdPrefix_;
-				int limit_;
-				std::string order_;
-				int offset_;
-				std::string token_;
-				std::string dbName_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
+#define ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
+
+#include <alibabacloud/imgsearch/ImgsearchExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Imgsearch {
+namespace Model {
+class ALIBABACLOUD_IMGSEARCH_EXPORT ListImagesRequest : public RpcServiceRequest {
+public:
+	ListImagesRequest();
+	~ListImagesRequest();
+	std::string getEntityIdPrefix() const;
+	void setEntityIdPrefix(const std::string &entityIdPrefix);
+	int getLimit() const;
+	void setLimit(int limit);
+	std::string getOrder() const;
+	void setOrder(const std::string &order);
+	int getOffset() const;
+	void setOffset(int offset);
+	std::string getToken() const;
+	void setToken(const std::string &token);
+	std::string getDbName() const;
+	void setDbName(const std::string &dbName);
+
+private:
+	std::string entityIdPrefix_;
+	int limit_;
+	std::string order_;
+	int offset_;
+	std::string token_;
+	std::string dbName_;
+};
+} // namespace Model
+} // namespace Imgsearch
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_

+ 37 - 43
imgsearch/include/alibabacloud/imgsearch/model/SearchImageRequest.h

@@ -1,54 +1,48 @@
 /*
  * 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_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
-#define ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/imgsearch/ImgsearchExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Imgsearch
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_IMGSEARCH_EXPORT SearchImageRequest : public RpcServiceRequest
-			{
-
-			public:
-				SearchImageRequest();
-				~SearchImageRequest();
-
-				std::string getDbName()const;
-				void setDbName(const std::string& dbName);
-				std::string getImageUrl()const;
-				void setImageUrl(const std::string& imageUrl);
-				int getLimit()const;
-				void setLimit(int limit);
-
-            private:
-				std::string dbName_;
-				std::string imageUrl_;
-				int limit_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
+#define ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
+
+#include <alibabacloud/imgsearch/ImgsearchExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Imgsearch {
+namespace Model {
+class ALIBABACLOUD_IMGSEARCH_EXPORT SearchImageRequest : public RpcServiceRequest {
+public:
+	SearchImageRequest();
+	~SearchImageRequest();
+	std::string getDbName() const;
+	void setDbName(const std::string &dbName);
+	std::string getImageUrl() const;
+	void setImageUrl(const std::string &imageUrl);
+	int getLimit() const;
+	void setLimit(int limit);
+
+private:
+	std::string dbName_;
+	std::string imageUrl_;
+	int limit_;
+};
+} // namespace Model
+} // namespace Imgsearch
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_

+ 3 - 3
imgsearch/src/ImgsearchClient.cc

@@ -31,21 +31,21 @@ ImgsearchClient::ImgsearchClient(const Credentials &credentials, const ClientCon
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "imgsearch");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
 }
 
 ImgsearchClient::ImgsearchClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "imgsearch");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
 }
 
 ImgsearchClient::ImgsearchClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "imgsearch");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
 }
 
 ImgsearchClient::~ImgsearchClient()

+ 36 - 46
imgsearch/src/model/AddImageRequest.cc

@@ -1,73 +1,63 @@
 /*
  * 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/imgsearch/model/AddImageRequest.h>
-
-using AlibabaCloud::Imgsearch::Model::AddImageRequest;
-
-AddImageRequest::AddImageRequest() :
-	RpcServiceRequest("imgsearch", "2020-03-20", "AddImage")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-AddImageRequest::~AddImageRequest()
-{}
-
-std::string AddImageRequest::getEntityId()const
-{
-	return entityId_;
+ */
+
+#include <alibabacloud/imgsearch/model/AddImageRequest.h>
+
+using AlibabaCloud::Imgsearch::Model::AddImageRequest;
+
+AddImageRequest::AddImageRequest()
+    : RpcServiceRequest("imgsearch", "2020-03-20", "AddImage") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+AddImageRequest::~AddImageRequest() {}
+
+std::string AddImageRequest::getEntityId() const {
+  return entityId_;
 }
 
-void AddImageRequest::setEntityId(const std::string& entityId)
-{
-	entityId_ = entityId;
-	setBodyParameter("EntityId", entityId);
+void AddImageRequest::setEntityId(const std::string &entityId) {
+  entityId_ = entityId;
+  setBodyParameter(std::string("EntityId"), entityId);
 }
 
-std::string AddImageRequest::getDbName()const
-{
-	return dbName_;
+std::string AddImageRequest::getDbName() const {
+  return dbName_;
 }
 
-void AddImageRequest::setDbName(const std::string& dbName)
-{
-	dbName_ = dbName;
-	setBodyParameter("DbName", dbName);
+void AddImageRequest::setDbName(const std::string &dbName) {
+  dbName_ = dbName;
+  setBodyParameter(std::string("DbName"), dbName);
 }
 
-std::string AddImageRequest::getImageUrl()const
-{
-	return imageUrl_;
+std::string AddImageRequest::getImageUrl() const {
+  return imageUrl_;
 }
 
-void AddImageRequest::setImageUrl(const std::string& imageUrl)
-{
-	imageUrl_ = imageUrl;
-	setBodyParameter("ImageUrl", imageUrl);
+void AddImageRequest::setImageUrl(const std::string &imageUrl) {
+  imageUrl_ = imageUrl;
+  setBodyParameter(std::string("ImageUrl"), imageUrl);
 }
 
-std::string AddImageRequest::getExtraData()const
-{
-	return extraData_;
+std::string AddImageRequest::getExtraData() const {
+  return extraData_;
 }
 
-void AddImageRequest::setExtraData(const std::string& extraData)
-{
-	extraData_ = extraData;
-	setBodyParameter("ExtraData", extraData);
+void AddImageRequest::setExtraData(const std::string &extraData) {
+  extraData_ = extraData;
+  setBodyParameter(std::string("ExtraData"), extraData);
 }
 

+ 21 - 25
imgsearch/src/model/CreateImageDbRequest.cc

@@ -1,40 +1,36 @@
 /*
  * 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/imgsearch/model/CreateImageDbRequest.h>
-
-using AlibabaCloud::Imgsearch::Model::CreateImageDbRequest;
-
-CreateImageDbRequest::CreateImageDbRequest() :
-	RpcServiceRequest("imgsearch", "2020-03-20", "CreateImageDb")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-CreateImageDbRequest::~CreateImageDbRequest()
-{}
-
-std::string CreateImageDbRequest::getName()const
-{
-	return name_;
+ */
+
+#include <alibabacloud/imgsearch/model/CreateImageDbRequest.h>
+
+using AlibabaCloud::Imgsearch::Model::CreateImageDbRequest;
+
+CreateImageDbRequest::CreateImageDbRequest()
+    : RpcServiceRequest("imgsearch", "2020-03-20", "CreateImageDb") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+CreateImageDbRequest::~CreateImageDbRequest() {}
+
+std::string CreateImageDbRequest::getName() const {
+  return name_;
 }
 
-void CreateImageDbRequest::setName(const std::string& name)
-{
-	name_ = name;
-	setBodyParameter("Name", name);
+void CreateImageDbRequest::setName(const std::string &name) {
+  name_ = name;
+  setBodyParameter(std::string("Name"), name);
 }
 

+ 21 - 25
imgsearch/src/model/DeleteImageDbRequest.cc

@@ -1,40 +1,36 @@
 /*
  * 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/imgsearch/model/DeleteImageDbRequest.h>
-
-using AlibabaCloud::Imgsearch::Model::DeleteImageDbRequest;
-
-DeleteImageDbRequest::DeleteImageDbRequest() :
-	RpcServiceRequest("imgsearch", "2020-03-20", "DeleteImageDb")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-DeleteImageDbRequest::~DeleteImageDbRequest()
-{}
-
-std::string DeleteImageDbRequest::getName()const
-{
-	return name_;
+ */
+
+#include <alibabacloud/imgsearch/model/DeleteImageDbRequest.h>
+
+using AlibabaCloud::Imgsearch::Model::DeleteImageDbRequest;
+
+DeleteImageDbRequest::DeleteImageDbRequest()
+    : RpcServiceRequest("imgsearch", "2020-03-20", "DeleteImageDb") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+DeleteImageDbRequest::~DeleteImageDbRequest() {}
+
+std::string DeleteImageDbRequest::getName() const {
+  return name_;
 }
 
-void DeleteImageDbRequest::setName(const std::string& name)
-{
-	name_ = name;
-	setBodyParameter("Name", name);
+void DeleteImageDbRequest::setName(const std::string &name) {
+  name_ = name;
+  setBodyParameter(std::string("Name"), name);
 }
 

+ 26 - 32
imgsearch/src/model/DeleteImageRequest.cc

@@ -1,51 +1,45 @@
 /*
  * 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/imgsearch/model/DeleteImageRequest.h>
-
-using AlibabaCloud::Imgsearch::Model::DeleteImageRequest;
-
-DeleteImageRequest::DeleteImageRequest() :
-	RpcServiceRequest("imgsearch", "2020-03-20", "DeleteImage")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-DeleteImageRequest::~DeleteImageRequest()
-{}
-
-std::string DeleteImageRequest::getEntityId()const
-{
-	return entityId_;
+ */
+
+#include <alibabacloud/imgsearch/model/DeleteImageRequest.h>
+
+using AlibabaCloud::Imgsearch::Model::DeleteImageRequest;
+
+DeleteImageRequest::DeleteImageRequest()
+    : RpcServiceRequest("imgsearch", "2020-03-20", "DeleteImage") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+DeleteImageRequest::~DeleteImageRequest() {}
+
+std::string DeleteImageRequest::getEntityId() const {
+  return entityId_;
 }
 
-void DeleteImageRequest::setEntityId(const std::string& entityId)
-{
-	entityId_ = entityId;
-	setBodyParameter("EntityId", entityId);
+void DeleteImageRequest::setEntityId(const std::string &entityId) {
+  entityId_ = entityId;
+  setBodyParameter(std::string("EntityId"), entityId);
 }
 
-std::string DeleteImageRequest::getDbName()const
-{
-	return dbName_;
+std::string DeleteImageRequest::getDbName() const {
+  return dbName_;
 }
 
-void DeleteImageRequest::setDbName(const std::string& dbName)
-{
-	dbName_ = dbName;
-	setBodyParameter("DbName", dbName);
+void DeleteImageRequest::setDbName(const std::string &dbName) {
+  dbName_ = dbName;
+  setBodyParameter(std::string("DbName"), dbName);
 }
 

+ 16 - 18
imgsearch/src/model/ListImageDbsRequest.cc

@@ -1,29 +1,27 @@
 /*
  * 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/imgsearch/model/ListImageDbsRequest.h>
-
-using AlibabaCloud::Imgsearch::Model::ListImageDbsRequest;
-
-ListImageDbsRequest::ListImageDbsRequest() :
-	RpcServiceRequest("imgsearch", "2020-03-20", "ListImageDbs")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-ListImageDbsRequest::~ListImageDbsRequest()
-{}
-
+ */
+
+#include <alibabacloud/imgsearch/model/ListImageDbsRequest.h>
+
+using AlibabaCloud::Imgsearch::Model::ListImageDbsRequest;
+
+ListImageDbsRequest::ListImageDbsRequest()
+    : RpcServiceRequest("imgsearch", "2020-03-20", "ListImageDbs") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+ListImageDbsRequest::~ListImageDbsRequest() {}
+

+ 46 - 60
imgsearch/src/model/ListImagesRequest.cc

@@ -1,95 +1,81 @@
 /*
  * 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/imgsearch/model/ListImagesRequest.h>
-
-using AlibabaCloud::Imgsearch::Model::ListImagesRequest;
-
-ListImagesRequest::ListImagesRequest() :
-	RpcServiceRequest("imgsearch", "2020-03-20", "ListImages")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-ListImagesRequest::~ListImagesRequest()
-{}
-
-std::string ListImagesRequest::getEntityIdPrefix()const
-{
-	return entityIdPrefix_;
+ */
+
+#include <alibabacloud/imgsearch/model/ListImagesRequest.h>
+
+using AlibabaCloud::Imgsearch::Model::ListImagesRequest;
+
+ListImagesRequest::ListImagesRequest()
+    : RpcServiceRequest("imgsearch", "2020-03-20", "ListImages") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+ListImagesRequest::~ListImagesRequest() {}
+
+std::string ListImagesRequest::getEntityIdPrefix() const {
+  return entityIdPrefix_;
 }
 
-void ListImagesRequest::setEntityIdPrefix(const std::string& entityIdPrefix)
-{
-	entityIdPrefix_ = entityIdPrefix;
-	setBodyParameter("EntityIdPrefix", entityIdPrefix);
+void ListImagesRequest::setEntityIdPrefix(const std::string &entityIdPrefix) {
+  entityIdPrefix_ = entityIdPrefix;
+  setBodyParameter(std::string("EntityIdPrefix"), entityIdPrefix);
 }
 
-int ListImagesRequest::getLimit()const
-{
-	return limit_;
+int ListImagesRequest::getLimit() const {
+  return limit_;
 }
 
-void ListImagesRequest::setLimit(int limit)
-{
-	limit_ = limit;
-	setBodyParameter("Limit", std::to_string(limit));
+void ListImagesRequest::setLimit(int limit) {
+  limit_ = limit;
+  setBodyParameter(std::string("Limit"), std::to_string(limit));
 }
 
-std::string ListImagesRequest::getOrder()const
-{
-	return order_;
+std::string ListImagesRequest::getOrder() const {
+  return order_;
 }
 
-void ListImagesRequest::setOrder(const std::string& order)
-{
-	order_ = order;
-	setBodyParameter("Order", order);
+void ListImagesRequest::setOrder(const std::string &order) {
+  order_ = order;
+  setBodyParameter(std::string("Order"), order);
 }
 
-int ListImagesRequest::getOffset()const
-{
-	return offset_;
+int ListImagesRequest::getOffset() const {
+  return offset_;
 }
 
-void ListImagesRequest::setOffset(int offset)
-{
-	offset_ = offset;
-	setBodyParameter("Offset", std::to_string(offset));
+void ListImagesRequest::setOffset(int offset) {
+  offset_ = offset;
+  setBodyParameter(std::string("Offset"), std::to_string(offset));
 }
 
-std::string ListImagesRequest::getToken()const
-{
-	return token_;
+std::string ListImagesRequest::getToken() const {
+  return token_;
 }
 
-void ListImagesRequest::setToken(const std::string& token)
-{
-	token_ = token;
-	setBodyParameter("Token", token);
+void ListImagesRequest::setToken(const std::string &token) {
+  token_ = token;
+  setBodyParameter(std::string("Token"), token);
 }
 
-std::string ListImagesRequest::getDbName()const
-{
-	return dbName_;
+std::string ListImagesRequest::getDbName() const {
+  return dbName_;
 }
 
-void ListImagesRequest::setDbName(const std::string& dbName)
-{
-	dbName_ = dbName;
-	setBodyParameter("DbName", dbName);
+void ListImagesRequest::setDbName(const std::string &dbName) {
+  dbName_ = dbName;
+  setBodyParameter(std::string("DbName"), dbName);
 }
 

+ 6 - 6
imgsearch/src/model/ListImagesResult.cc

@@ -48,16 +48,16 @@ void ListImagesResult::parse(const std::string &payload)
 	for (auto dataNodeImageListImageListItem : allImageListNode)
 	{
 		Data::ImageListItem imageListItemObject;
-		if(!dataNodeImageListImageListItem["DataId"].isNull())
-			imageListItemObject.dataId = dataNodeImageListImageListItem["DataId"].asString();
-		if(!dataNodeImageListImageListItem["ExtraData"].isNull())
-			imageListItemObject.extraData = dataNodeImageListImageListItem["ExtraData"].asString();
 		if(!dataNodeImageListImageListItem["EntityId"].isNull())
 			imageListItemObject.entityId = dataNodeImageListImageListItem["EntityId"].asString();
-		if(!dataNodeImageListImageListItem["UpdatedAt"].isNull())
-			imageListItemObject.updatedAt = std::stol(dataNodeImageListImageListItem["UpdatedAt"].asString());
 		if(!dataNodeImageListImageListItem["CreatedAt"].isNull())
 			imageListItemObject.createdAt = std::stol(dataNodeImageListImageListItem["CreatedAt"].asString());
+		if(!dataNodeImageListImageListItem["UpdatedAt"].isNull())
+			imageListItemObject.updatedAt = std::stol(dataNodeImageListImageListItem["UpdatedAt"].asString());
+		if(!dataNodeImageListImageListItem["DataId"].isNull())
+			imageListItemObject.dataId = dataNodeImageListImageListItem["DataId"].asString();
+		if(!dataNodeImageListImageListItem["ExtraData"].isNull())
+			imageListItemObject.extraData = dataNodeImageListImageListItem["ExtraData"].asString();
 		data_.imageList.push_back(imageListItemObject);
 	}
 

+ 31 - 39
imgsearch/src/model/SearchImageRequest.cc

@@ -1,62 +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.
- */
-
-#include <alibabacloud/imgsearch/model/SearchImageRequest.h>
-
-using AlibabaCloud::Imgsearch::Model::SearchImageRequest;
-
-SearchImageRequest::SearchImageRequest() :
-	RpcServiceRequest("imgsearch", "2020-03-20", "SearchImage")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-SearchImageRequest::~SearchImageRequest()
-{}
-
-std::string SearchImageRequest::getDbName()const
-{
-	return dbName_;
+ */
+
+#include <alibabacloud/imgsearch/model/SearchImageRequest.h>
+
+using AlibabaCloud::Imgsearch::Model::SearchImageRequest;
+
+SearchImageRequest::SearchImageRequest()
+    : RpcServiceRequest("imgsearch", "2020-03-20", "SearchImage") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+SearchImageRequest::~SearchImageRequest() {}
+
+std::string SearchImageRequest::getDbName() const {
+  return dbName_;
 }
 
-void SearchImageRequest::setDbName(const std::string& dbName)
-{
-	dbName_ = dbName;
-	setBodyParameter("DbName", dbName);
+void SearchImageRequest::setDbName(const std::string &dbName) {
+  dbName_ = dbName;
+  setBodyParameter(std::string("DbName"), dbName);
 }
 
-std::string SearchImageRequest::getImageUrl()const
-{
-	return imageUrl_;
+std::string SearchImageRequest::getImageUrl() const {
+  return imageUrl_;
 }
 
-void SearchImageRequest::setImageUrl(const std::string& imageUrl)
-{
-	imageUrl_ = imageUrl;
-	setBodyParameter("ImageUrl", imageUrl);
+void SearchImageRequest::setImageUrl(const std::string &imageUrl) {
+  imageUrl_ = imageUrl;
+  setBodyParameter(std::string("ImageUrl"), imageUrl);
 }
 
-int SearchImageRequest::getLimit()const
-{
-	return limit_;
+int SearchImageRequest::getLimit() const {
+  return limit_;
 }
 
-void SearchImageRequest::setLimit(int limit)
-{
-	limit_ = limit;
-	setBodyParameter("Limit", std::to_string(limit));
+void SearchImageRequest::setLimit(int limit) {
+  limit_ = limit;
+  setBodyParameter(std::string("Limit"), std::to_string(limit));
 }
 

+ 6 - 6
imgsearch/src/model/SearchImageResult.cc

@@ -44,16 +44,16 @@ void SearchImageResult::parse(const std::string &payload)
 	for (auto dataNodeMatchListMatchListItem : allMatchListNode)
 	{
 		Data::MatchListItem matchListItemObject;
-		if(!dataNodeMatchListMatchListItem["DataId"].isNull())
-			matchListItemObject.dataId = dataNodeMatchListMatchListItem["DataId"].asString();
-		if(!dataNodeMatchListMatchListItem["ExtraData"].isNull())
-			matchListItemObject.extraData = dataNodeMatchListMatchListItem["ExtraData"].asString();
-		if(!dataNodeMatchListMatchListItem["EntityId"].isNull())
-			matchListItemObject.entityId = dataNodeMatchListMatchListItem["EntityId"].asString();
 		if(!dataNodeMatchListMatchListItem["ImageUrl"].isNull())
 			matchListItemObject.imageUrl = dataNodeMatchListMatchListItem["ImageUrl"].asString();
+		if(!dataNodeMatchListMatchListItem["EntityId"].isNull())
+			matchListItemObject.entityId = dataNodeMatchListMatchListItem["EntityId"].asString();
 		if(!dataNodeMatchListMatchListItem["Score"].isNull())
 			matchListItemObject.score = std::stof(dataNodeMatchListMatchListItem["Score"].asString());
+		if(!dataNodeMatchListMatchListItem["DataId"].isNull())
+			matchListItemObject.dataId = dataNodeMatchListMatchListItem["DataId"].asString();
+		if(!dataNodeMatchListMatchListItem["ExtraData"].isNull())
+			matchListItemObject.extraData = dataNodeMatchListMatchListItem["ExtraData"].asString();
 		data_.matchList.push_back(matchListItemObject);
 	}