Update imgsearch.
This commit is contained in:
@@ -1,57 +1,51 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
|
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
|
||||||
#define ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
|
#define ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Imgsearch
|
namespace Imgsearch {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_IMGSEARCH_EXPORT AddImageRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_IMGSEARCH_EXPORT AddImageRequest : public RpcServiceRequest
|
AddImageRequest();
|
||||||
{
|
~AddImageRequest();
|
||||||
|
std::string getEntityId() const;
|
||||||
public:
|
void setEntityId(const std::string &entityId);
|
||||||
AddImageRequest();
|
std::string getDbName() const;
|
||||||
~AddImageRequest();
|
void setDbName(const std::string &dbName);
|
||||||
|
std::string getImageUrl() const;
|
||||||
std::string getEntityId()const;
|
void setImageUrl(const std::string &imageUrl);
|
||||||
void setEntityId(const std::string& entityId);
|
std::string getExtraData() const;
|
||||||
std::string getDbName()const;
|
void setExtraData(const std::string &extraData);
|
||||||
void setDbName(const std::string& dbName);
|
|
||||||
std::string getImageUrl()const;
|
private:
|
||||||
void setImageUrl(const std::string& imageUrl);
|
std::string entityId_;
|
||||||
std::string getExtraData()const;
|
std::string dbName_;
|
||||||
void setExtraData(const std::string& extraData);
|
std::string imageUrl_;
|
||||||
|
std::string extraData_;
|
||||||
private:
|
};
|
||||||
std::string entityId_;
|
} // namespace Model
|
||||||
std::string dbName_;
|
} // namespace Imgsearch
|
||||||
std::string imageUrl_;
|
} // namespace AlibabaCloud
|
||||||
std::string extraData_;
|
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_ADDIMAGEREQUEST_H_
|
|
||||||
|
|||||||
@@ -1,48 +1,42 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
|
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
|
||||||
#define ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
|
#define ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Imgsearch
|
namespace Imgsearch {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_IMGSEARCH_EXPORT CreateImageDbRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_IMGSEARCH_EXPORT CreateImageDbRequest : public RpcServiceRequest
|
CreateImageDbRequest();
|
||||||
{
|
~CreateImageDbRequest();
|
||||||
|
std::string getName() const;
|
||||||
public:
|
void setName(const std::string &name);
|
||||||
CreateImageDbRequest();
|
|
||||||
~CreateImageDbRequest();
|
private:
|
||||||
|
std::string name_;
|
||||||
std::string getName()const;
|
};
|
||||||
void setName(const std::string& name);
|
} // namespace Model
|
||||||
|
} // namespace Imgsearch
|
||||||
private:
|
} // namespace AlibabaCloud
|
||||||
std::string name_;
|
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_CREATEIMAGEDBREQUEST_H_
|
|
||||||
|
|||||||
@@ -1,48 +1,42 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
|
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
|
||||||
#define ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
|
#define ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Imgsearch
|
namespace Imgsearch {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_IMGSEARCH_EXPORT DeleteImageDbRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_IMGSEARCH_EXPORT DeleteImageDbRequest : public RpcServiceRequest
|
DeleteImageDbRequest();
|
||||||
{
|
~DeleteImageDbRequest();
|
||||||
|
std::string getName() const;
|
||||||
public:
|
void setName(const std::string &name);
|
||||||
DeleteImageDbRequest();
|
|
||||||
~DeleteImageDbRequest();
|
private:
|
||||||
|
std::string name_;
|
||||||
std::string getName()const;
|
};
|
||||||
void setName(const std::string& name);
|
} // namespace Model
|
||||||
|
} // namespace Imgsearch
|
||||||
private:
|
} // namespace AlibabaCloud
|
||||||
std::string name_;
|
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEDBREQUEST_H_
|
|
||||||
|
|||||||
@@ -1,51 +1,45 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
|
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
|
||||||
#define ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
|
#define ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Imgsearch
|
namespace Imgsearch {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_IMGSEARCH_EXPORT DeleteImageRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_IMGSEARCH_EXPORT DeleteImageRequest : public RpcServiceRequest
|
DeleteImageRequest();
|
||||||
{
|
~DeleteImageRequest();
|
||||||
|
std::string getEntityId() const;
|
||||||
public:
|
void setEntityId(const std::string &entityId);
|
||||||
DeleteImageRequest();
|
std::string getDbName() const;
|
||||||
~DeleteImageRequest();
|
void setDbName(const std::string &dbName);
|
||||||
|
|
||||||
std::string getEntityId()const;
|
private:
|
||||||
void setEntityId(const std::string& entityId);
|
std::string entityId_;
|
||||||
std::string getDbName()const;
|
std::string dbName_;
|
||||||
void setDbName(const std::string& dbName);
|
};
|
||||||
|
} // namespace Model
|
||||||
private:
|
} // namespace Imgsearch
|
||||||
std::string entityId_;
|
} // namespace AlibabaCloud
|
||||||
std::string dbName_;
|
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_DELETEIMAGEREQUEST_H_
|
|
||||||
|
|||||||
@@ -1,45 +1,39 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
|
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
|
||||||
#define ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
|
#define ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Imgsearch
|
namespace Imgsearch {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_IMGSEARCH_EXPORT ListImageDbsRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_IMGSEARCH_EXPORT ListImageDbsRequest : public RpcServiceRequest
|
ListImageDbsRequest();
|
||||||
{
|
~ListImageDbsRequest();
|
||||||
|
|
||||||
public:
|
private:
|
||||||
ListImageDbsRequest();
|
};
|
||||||
~ListImageDbsRequest();
|
} // namespace Model
|
||||||
|
} // namespace Imgsearch
|
||||||
|
} // namespace AlibabaCloud
|
||||||
private:
|
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGEDBSREQUEST_H_
|
|
||||||
|
|||||||
@@ -1,63 +1,57 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
|
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
|
||||||
#define ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
|
#define ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Imgsearch
|
namespace Imgsearch {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_IMGSEARCH_EXPORT ListImagesRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_IMGSEARCH_EXPORT ListImagesRequest : public RpcServiceRequest
|
ListImagesRequest();
|
||||||
{
|
~ListImagesRequest();
|
||||||
|
std::string getEntityIdPrefix() const;
|
||||||
public:
|
void setEntityIdPrefix(const std::string &entityIdPrefix);
|
||||||
ListImagesRequest();
|
int getLimit() const;
|
||||||
~ListImagesRequest();
|
void setLimit(int limit);
|
||||||
|
std::string getOrder() const;
|
||||||
std::string getEntityIdPrefix()const;
|
void setOrder(const std::string &order);
|
||||||
void setEntityIdPrefix(const std::string& entityIdPrefix);
|
int getOffset() const;
|
||||||
int getLimit()const;
|
void setOffset(int offset);
|
||||||
void setLimit(int limit);
|
std::string getToken() const;
|
||||||
std::string getOrder()const;
|
void setToken(const std::string &token);
|
||||||
void setOrder(const std::string& order);
|
std::string getDbName() const;
|
||||||
int getOffset()const;
|
void setDbName(const std::string &dbName);
|
||||||
void setOffset(int offset);
|
|
||||||
std::string getToken()const;
|
private:
|
||||||
void setToken(const std::string& token);
|
std::string entityIdPrefix_;
|
||||||
std::string getDbName()const;
|
int limit_;
|
||||||
void setDbName(const std::string& dbName);
|
std::string order_;
|
||||||
|
int offset_;
|
||||||
private:
|
std::string token_;
|
||||||
std::string entityIdPrefix_;
|
std::string dbName_;
|
||||||
int limit_;
|
};
|
||||||
std::string order_;
|
} // namespace Model
|
||||||
int offset_;
|
} // namespace Imgsearch
|
||||||
std::string token_;
|
} // namespace AlibabaCloud
|
||||||
std::string dbName_;
|
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_LISTIMAGESREQUEST_H_
|
|
||||||
|
|||||||
@@ -1,54 +1,48 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
|
#ifndef ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
|
||||||
#define ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
|
#define ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/imgsearch/ImgsearchExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Imgsearch
|
namespace Imgsearch {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_IMGSEARCH_EXPORT SearchImageRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_IMGSEARCH_EXPORT SearchImageRequest : public RpcServiceRequest
|
SearchImageRequest();
|
||||||
{
|
~SearchImageRequest();
|
||||||
|
std::string getDbName() const;
|
||||||
public:
|
void setDbName(const std::string &dbName);
|
||||||
SearchImageRequest();
|
std::string getImageUrl() const;
|
||||||
~SearchImageRequest();
|
void setImageUrl(const std::string &imageUrl);
|
||||||
|
int getLimit() const;
|
||||||
std::string getDbName()const;
|
void setLimit(int limit);
|
||||||
void setDbName(const std::string& dbName);
|
|
||||||
std::string getImageUrl()const;
|
private:
|
||||||
void setImageUrl(const std::string& imageUrl);
|
std::string dbName_;
|
||||||
int getLimit()const;
|
std::string imageUrl_;
|
||||||
void setLimit(int limit);
|
int limit_;
|
||||||
|
};
|
||||||
private:
|
} // namespace Model
|
||||||
std::string dbName_;
|
} // namespace Imgsearch
|
||||||
std::string imageUrl_;
|
} // namespace AlibabaCloud
|
||||||
int limit_;
|
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_IMGSEARCH_MODEL_SEARCHIMAGEREQUEST_H_
|
|
||||||
|
|||||||
@@ -31,21 +31,21 @@ ImgsearchClient::ImgsearchClient(const Credentials &credentials, const ClientCon
|
|||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(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) :
|
ImgsearchClient::ImgsearchClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(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) :
|
ImgsearchClient::ImgsearchClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(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()
|
ImgsearchClient::~ImgsearchClient()
|
||||||
|
|||||||
@@ -1,73 +1,63 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/imgsearch/model/AddImageRequest.h>
|
#include <alibabacloud/imgsearch/model/AddImageRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Imgsearch::Model::AddImageRequest;
|
using AlibabaCloud::Imgsearch::Model::AddImageRequest;
|
||||||
|
|
||||||
AddImageRequest::AddImageRequest() :
|
AddImageRequest::AddImageRequest()
|
||||||
RpcServiceRequest("imgsearch", "2020-03-20", "AddImage")
|
: RpcServiceRequest("imgsearch", "2020-03-20", "AddImage") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
AddImageRequest::~AddImageRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string AddImageRequest::getEntityId()const
|
|
||||||
{
|
|
||||||
return entityId_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddImageRequest::setEntityId(const std::string& entityId)
|
AddImageRequest::~AddImageRequest() {}
|
||||||
{
|
|
||||||
entityId_ = entityId;
|
std::string AddImageRequest::getEntityId() const {
|
||||||
setBodyParameter("EntityId", entityId);
|
return entityId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string AddImageRequest::getDbName()const
|
void AddImageRequest::setEntityId(const std::string &entityId) {
|
||||||
{
|
entityId_ = entityId;
|
||||||
return dbName_;
|
setBodyParameter(std::string("EntityId"), entityId);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddImageRequest::setDbName(const std::string& dbName)
|
std::string AddImageRequest::getDbName() const {
|
||||||
{
|
return dbName_;
|
||||||
dbName_ = dbName;
|
|
||||||
setBodyParameter("DbName", dbName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string AddImageRequest::getImageUrl()const
|
void AddImageRequest::setDbName(const std::string &dbName) {
|
||||||
{
|
dbName_ = dbName;
|
||||||
return imageUrl_;
|
setBodyParameter(std::string("DbName"), dbName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddImageRequest::setImageUrl(const std::string& imageUrl)
|
std::string AddImageRequest::getImageUrl() const {
|
||||||
{
|
return imageUrl_;
|
||||||
imageUrl_ = imageUrl;
|
|
||||||
setBodyParameter("ImageUrl", imageUrl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string AddImageRequest::getExtraData()const
|
void AddImageRequest::setImageUrl(const std::string &imageUrl) {
|
||||||
{
|
imageUrl_ = imageUrl;
|
||||||
return extraData_;
|
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddImageRequest::setExtraData(const std::string& extraData)
|
std::string AddImageRequest::getExtraData() const {
|
||||||
{
|
return extraData_;
|
||||||
extraData_ = extraData;
|
}
|
||||||
setBodyParameter("ExtraData", extraData);
|
|
||||||
|
void AddImageRequest::setExtraData(const std::string &extraData) {
|
||||||
|
extraData_ = extraData;
|
||||||
|
setBodyParameter(std::string("ExtraData"), extraData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,40 +1,36 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/imgsearch/model/CreateImageDbRequest.h>
|
#include <alibabacloud/imgsearch/model/CreateImageDbRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Imgsearch::Model::CreateImageDbRequest;
|
using AlibabaCloud::Imgsearch::Model::CreateImageDbRequest;
|
||||||
|
|
||||||
CreateImageDbRequest::CreateImageDbRequest() :
|
CreateImageDbRequest::CreateImageDbRequest()
|
||||||
RpcServiceRequest("imgsearch", "2020-03-20", "CreateImageDb")
|
: RpcServiceRequest("imgsearch", "2020-03-20", "CreateImageDb") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateImageDbRequest::~CreateImageDbRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string CreateImageDbRequest::getName()const
|
|
||||||
{
|
|
||||||
return name_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateImageDbRequest::setName(const std::string& name)
|
CreateImageDbRequest::~CreateImageDbRequest() {}
|
||||||
{
|
|
||||||
name_ = name;
|
std::string CreateImageDbRequest::getName() const {
|
||||||
setBodyParameter("Name", name);
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateImageDbRequest::setName(const std::string &name) {
|
||||||
|
name_ = name;
|
||||||
|
setBodyParameter(std::string("Name"), name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,40 +1,36 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/imgsearch/model/DeleteImageDbRequest.h>
|
#include <alibabacloud/imgsearch/model/DeleteImageDbRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Imgsearch::Model::DeleteImageDbRequest;
|
using AlibabaCloud::Imgsearch::Model::DeleteImageDbRequest;
|
||||||
|
|
||||||
DeleteImageDbRequest::DeleteImageDbRequest() :
|
DeleteImageDbRequest::DeleteImageDbRequest()
|
||||||
RpcServiceRequest("imgsearch", "2020-03-20", "DeleteImageDb")
|
: RpcServiceRequest("imgsearch", "2020-03-20", "DeleteImageDb") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteImageDbRequest::~DeleteImageDbRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string DeleteImageDbRequest::getName()const
|
|
||||||
{
|
|
||||||
return name_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteImageDbRequest::setName(const std::string& name)
|
DeleteImageDbRequest::~DeleteImageDbRequest() {}
|
||||||
{
|
|
||||||
name_ = name;
|
std::string DeleteImageDbRequest::getName() const {
|
||||||
setBodyParameter("Name", name);
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteImageDbRequest::setName(const std::string &name) {
|
||||||
|
name_ = name;
|
||||||
|
setBodyParameter(std::string("Name"), name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,51 +1,45 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/imgsearch/model/DeleteImageRequest.h>
|
#include <alibabacloud/imgsearch/model/DeleteImageRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Imgsearch::Model::DeleteImageRequest;
|
using AlibabaCloud::Imgsearch::Model::DeleteImageRequest;
|
||||||
|
|
||||||
DeleteImageRequest::DeleteImageRequest() :
|
DeleteImageRequest::DeleteImageRequest()
|
||||||
RpcServiceRequest("imgsearch", "2020-03-20", "DeleteImage")
|
: RpcServiceRequest("imgsearch", "2020-03-20", "DeleteImage") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteImageRequest::~DeleteImageRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string DeleteImageRequest::getEntityId()const
|
|
||||||
{
|
|
||||||
return entityId_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteImageRequest::setEntityId(const std::string& entityId)
|
DeleteImageRequest::~DeleteImageRequest() {}
|
||||||
{
|
|
||||||
entityId_ = entityId;
|
std::string DeleteImageRequest::getEntityId() const {
|
||||||
setBodyParameter("EntityId", entityId);
|
return entityId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DeleteImageRequest::getDbName()const
|
void DeleteImageRequest::setEntityId(const std::string &entityId) {
|
||||||
{
|
entityId_ = entityId;
|
||||||
return dbName_;
|
setBodyParameter(std::string("EntityId"), entityId);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteImageRequest::setDbName(const std::string& dbName)
|
std::string DeleteImageRequest::getDbName() const {
|
||||||
{
|
return dbName_;
|
||||||
dbName_ = dbName;
|
}
|
||||||
setBodyParameter("DbName", dbName);
|
|
||||||
|
void DeleteImageRequest::setDbName(const std::string &dbName) {
|
||||||
|
dbName_ = dbName;
|
||||||
|
setBodyParameter(std::string("DbName"), dbName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +1,27 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/imgsearch/model/ListImageDbsRequest.h>
|
#include <alibabacloud/imgsearch/model/ListImageDbsRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Imgsearch::Model::ListImageDbsRequest;
|
using AlibabaCloud::Imgsearch::Model::ListImageDbsRequest;
|
||||||
|
|
||||||
ListImageDbsRequest::ListImageDbsRequest() :
|
ListImageDbsRequest::ListImageDbsRequest()
|
||||||
RpcServiceRequest("imgsearch", "2020-03-20", "ListImageDbs")
|
: RpcServiceRequest("imgsearch", "2020-03-20", "ListImageDbs") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
}
|
||||||
}
|
|
||||||
|
ListImageDbsRequest::~ListImageDbsRequest() {}
|
||||||
ListImageDbsRequest::~ListImageDbsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,95 +1,81 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/imgsearch/model/ListImagesRequest.h>
|
#include <alibabacloud/imgsearch/model/ListImagesRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Imgsearch::Model::ListImagesRequest;
|
using AlibabaCloud::Imgsearch::Model::ListImagesRequest;
|
||||||
|
|
||||||
ListImagesRequest::ListImagesRequest() :
|
ListImagesRequest::ListImagesRequest()
|
||||||
RpcServiceRequest("imgsearch", "2020-03-20", "ListImages")
|
: RpcServiceRequest("imgsearch", "2020-03-20", "ListImages") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListImagesRequest::~ListImagesRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ListImagesRequest::getEntityIdPrefix()const
|
|
||||||
{
|
|
||||||
return entityIdPrefix_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListImagesRequest::setEntityIdPrefix(const std::string& entityIdPrefix)
|
ListImagesRequest::~ListImagesRequest() {}
|
||||||
{
|
|
||||||
entityIdPrefix_ = entityIdPrefix;
|
std::string ListImagesRequest::getEntityIdPrefix() const {
|
||||||
setBodyParameter("EntityIdPrefix", entityIdPrefix);
|
return entityIdPrefix_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListImagesRequest::getLimit()const
|
void ListImagesRequest::setEntityIdPrefix(const std::string &entityIdPrefix) {
|
||||||
{
|
entityIdPrefix_ = entityIdPrefix;
|
||||||
return limit_;
|
setBodyParameter(std::string("EntityIdPrefix"), entityIdPrefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListImagesRequest::setLimit(int limit)
|
int ListImagesRequest::getLimit() const {
|
||||||
{
|
return limit_;
|
||||||
limit_ = limit;
|
|
||||||
setBodyParameter("Limit", std::to_string(limit));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListImagesRequest::getOrder()const
|
void ListImagesRequest::setLimit(int limit) {
|
||||||
{
|
limit_ = limit;
|
||||||
return order_;
|
setBodyParameter(std::string("Limit"), std::to_string(limit));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListImagesRequest::setOrder(const std::string& order)
|
std::string ListImagesRequest::getOrder() const {
|
||||||
{
|
return order_;
|
||||||
order_ = order;
|
|
||||||
setBodyParameter("Order", order);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListImagesRequest::getOffset()const
|
void ListImagesRequest::setOrder(const std::string &order) {
|
||||||
{
|
order_ = order;
|
||||||
return offset_;
|
setBodyParameter(std::string("Order"), order);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListImagesRequest::setOffset(int offset)
|
int ListImagesRequest::getOffset() const {
|
||||||
{
|
return offset_;
|
||||||
offset_ = offset;
|
|
||||||
setBodyParameter("Offset", std::to_string(offset));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListImagesRequest::getToken()const
|
void ListImagesRequest::setOffset(int offset) {
|
||||||
{
|
offset_ = offset;
|
||||||
return token_;
|
setBodyParameter(std::string("Offset"), std::to_string(offset));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListImagesRequest::setToken(const std::string& token)
|
std::string ListImagesRequest::getToken() const {
|
||||||
{
|
return token_;
|
||||||
token_ = token;
|
|
||||||
setBodyParameter("Token", token);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListImagesRequest::getDbName()const
|
void ListImagesRequest::setToken(const std::string &token) {
|
||||||
{
|
token_ = token;
|
||||||
return dbName_;
|
setBodyParameter(std::string("Token"), token);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListImagesRequest::setDbName(const std::string& dbName)
|
std::string ListImagesRequest::getDbName() const {
|
||||||
{
|
return dbName_;
|
||||||
dbName_ = dbName;
|
}
|
||||||
setBodyParameter("DbName", dbName);
|
|
||||||
|
void ListImagesRequest::setDbName(const std::string &dbName) {
|
||||||
|
dbName_ = dbName;
|
||||||
|
setBodyParameter(std::string("DbName"), dbName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,16 +48,16 @@ void ListImagesResult::parse(const std::string &payload)
|
|||||||
for (auto dataNodeImageListImageListItem : allImageListNode)
|
for (auto dataNodeImageListImageListItem : allImageListNode)
|
||||||
{
|
{
|
||||||
Data::ImageListItem imageListItemObject;
|
Data::ImageListItem imageListItemObject;
|
||||||
|
if(!dataNodeImageListImageListItem["EntityId"].isNull())
|
||||||
|
imageListItemObject.entityId = dataNodeImageListImageListItem["EntityId"].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())
|
if(!dataNodeImageListImageListItem["DataId"].isNull())
|
||||||
imageListItemObject.dataId = dataNodeImageListImageListItem["DataId"].asString();
|
imageListItemObject.dataId = dataNodeImageListImageListItem["DataId"].asString();
|
||||||
if(!dataNodeImageListImageListItem["ExtraData"].isNull())
|
if(!dataNodeImageListImageListItem["ExtraData"].isNull())
|
||||||
imageListItemObject.extraData = dataNodeImageListImageListItem["ExtraData"].asString();
|
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());
|
|
||||||
data_.imageList.push_back(imageListItemObject);
|
data_.imageList.push_back(imageListItemObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,54 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/imgsearch/model/SearchImageRequest.h>
|
#include <alibabacloud/imgsearch/model/SearchImageRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Imgsearch::Model::SearchImageRequest;
|
using AlibabaCloud::Imgsearch::Model::SearchImageRequest;
|
||||||
|
|
||||||
SearchImageRequest::SearchImageRequest() :
|
SearchImageRequest::SearchImageRequest()
|
||||||
RpcServiceRequest("imgsearch", "2020-03-20", "SearchImage")
|
: RpcServiceRequest("imgsearch", "2020-03-20", "SearchImage") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
SearchImageRequest::~SearchImageRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string SearchImageRequest::getDbName()const
|
|
||||||
{
|
|
||||||
return dbName_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchImageRequest::setDbName(const std::string& dbName)
|
SearchImageRequest::~SearchImageRequest() {}
|
||||||
{
|
|
||||||
dbName_ = dbName;
|
std::string SearchImageRequest::getDbName() const {
|
||||||
setBodyParameter("DbName", dbName);
|
return dbName_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SearchImageRequest::getImageUrl()const
|
void SearchImageRequest::setDbName(const std::string &dbName) {
|
||||||
{
|
dbName_ = dbName;
|
||||||
return imageUrl_;
|
setBodyParameter(std::string("DbName"), dbName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchImageRequest::setImageUrl(const std::string& imageUrl)
|
std::string SearchImageRequest::getImageUrl() const {
|
||||||
{
|
return imageUrl_;
|
||||||
imageUrl_ = imageUrl;
|
|
||||||
setBodyParameter("ImageUrl", imageUrl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int SearchImageRequest::getLimit()const
|
void SearchImageRequest::setImageUrl(const std::string &imageUrl) {
|
||||||
{
|
imageUrl_ = imageUrl;
|
||||||
return limit_;
|
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchImageRequest::setLimit(int limit)
|
int SearchImageRequest::getLimit() const {
|
||||||
{
|
return limit_;
|
||||||
limit_ = limit;
|
}
|
||||||
setBodyParameter("Limit", std::to_string(limit));
|
|
||||||
|
void SearchImageRequest::setLimit(int limit) {
|
||||||
|
limit_ = limit;
|
||||||
|
setBodyParameter(std::string("Limit"), std::to_string(limit));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,16 +44,16 @@ void SearchImageResult::parse(const std::string &payload)
|
|||||||
for (auto dataNodeMatchListMatchListItem : allMatchListNode)
|
for (auto dataNodeMatchListMatchListItem : allMatchListNode)
|
||||||
{
|
{
|
||||||
Data::MatchListItem matchListItemObject;
|
Data::MatchListItem matchListItemObject;
|
||||||
|
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())
|
if(!dataNodeMatchListMatchListItem["DataId"].isNull())
|
||||||
matchListItemObject.dataId = dataNodeMatchListMatchListItem["DataId"].asString();
|
matchListItemObject.dataId = dataNodeMatchListMatchListItem["DataId"].asString();
|
||||||
if(!dataNodeMatchListMatchListItem["ExtraData"].isNull())
|
if(!dataNodeMatchListMatchListItem["ExtraData"].isNull())
|
||||||
matchListItemObject.extraData = dataNodeMatchListMatchListItem["ExtraData"].asString();
|
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["Score"].isNull())
|
|
||||||
matchListItemObject.score = std::stof(dataNodeMatchListMatchListItem["Score"].asString());
|
|
||||||
data_.matchList.push_back(matchListItemObject);
|
data_.matchList.push_back(matchListItemObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user