Skip to content

Commit 944e6d7

Browse files
committed
Update API ListRecognitionLibs: add request parameters LibId.
1 parent 071f537 commit 944e6d7

9 files changed

+115
-10
lines changed

ice-20201109/ChangeLog.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2025-11-17 Version: 6.8.1
2+
- Update API ListRecognitionLibs: add request parameters LibId.
3+
- Update API ListRecognitionSamples: add request parameters EntityName.
4+
- Update API ListRecognitionSamples: add response parameters Body.Samples.$.EntityId.
5+
- Update API ListRecognitionSamples: add response parameters Body.Samples.$.LibId.
6+
- Update API SubmitSmarttagJob: add request parameters TemplateConfig.
7+
- Update API SubmitVideoCognitionJob: add request parameters TemplateConfig.
8+
9+
110
2025-11-13 Version: 6.8.0
211
- Support API ActiveAiRtcLicense.
312
- Support API GetAiRtcAuthCodeList.

ice-20201109/include/alibabacloud/models/ListRecognitionLibsRequest.hpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace Models
1414
public:
1515
friend void to_json(Darabonba::Json& j, const ListRecognitionLibsRequest& obj) {
1616
DARABONBA_PTR_TO_JSON(Algorithm, algorithm_);
17+
DARABONBA_PTR_TO_JSON(LibId, libId_);
1718
DARABONBA_PTR_TO_JSON(OwnerAccount, ownerAccount_);
1819
DARABONBA_PTR_TO_JSON(OwnerId, ownerId_);
1920
DARABONBA_PTR_TO_JSON(PageNumber, pageNumber_);
@@ -23,6 +24,7 @@ namespace Models
2324
};
2425
friend void from_json(const Darabonba::Json& j, ListRecognitionLibsRequest& obj) {
2526
DARABONBA_PTR_FROM_JSON(Algorithm, algorithm_);
27+
DARABONBA_PTR_FROM_JSON(LibId, libId_);
2628
DARABONBA_PTR_FROM_JSON(OwnerAccount, ownerAccount_);
2729
DARABONBA_PTR_FROM_JSON(OwnerId, ownerId_);
2830
DARABONBA_PTR_FROM_JSON(PageNumber, pageNumber_);
@@ -42,15 +44,22 @@ namespace Models
4244
virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };
4345
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
4446
virtual bool empty() const override { return this->algorithm_ == nullptr
45-
&& return this->ownerAccount_ == nullptr && return this->ownerId_ == nullptr && return this->pageNumber_ == nullptr && return this->pageSize_ == nullptr && return this->resourceOwnerAccount_ == nullptr
46-
&& return this->resourceOwnerId_ == nullptr; };
47+
&& return this->libId_ == nullptr && return this->ownerAccount_ == nullptr && return this->ownerId_ == nullptr && return this->pageNumber_ == nullptr && return this->pageSize_ == nullptr
48+
&& return this->resourceOwnerAccount_ == nullptr && return this->resourceOwnerId_ == nullptr; };
4749
// algorithm Field Functions
4850
bool hasAlgorithm() const { return this->algorithm_ != nullptr;};
4951
void deleteAlgorithm() { this->algorithm_ = nullptr;};
5052
inline string algorithm() const { DARABONBA_PTR_GET_DEFAULT(algorithm_, "") };
5153
inline ListRecognitionLibsRequest& setAlgorithm(string algorithm) { DARABONBA_PTR_SET_VALUE(algorithm_, algorithm) };
5254

5355

56+
// libId Field Functions
57+
bool hasLibId() const { return this->libId_ != nullptr;};
58+
void deleteLibId() { this->libId_ = nullptr;};
59+
inline string libId() const { DARABONBA_PTR_GET_DEFAULT(libId_, "") };
60+
inline ListRecognitionLibsRequest& setLibId(string libId) { DARABONBA_PTR_SET_VALUE(libId_, libId) };
61+
62+
5463
// ownerAccount Field Functions
5564
bool hasOwnerAccount() const { return this->ownerAccount_ != nullptr;};
5665
void deleteOwnerAccount() { this->ownerAccount_ = nullptr;};
@@ -104,6 +113,7 @@ namespace Models
104113
//
105114
// This parameter is required.
106115
std::shared_ptr<string> algorithm_ = nullptr;
116+
std::shared_ptr<string> libId_ = nullptr;
107117
std::shared_ptr<string> ownerAccount_ = nullptr;
108118
std::shared_ptr<int64_t> ownerId_ = nullptr;
109119
// The page number.

ice-20201109/include/alibabacloud/models/ListRecognitionSamplesRequest.hpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Models
1515
friend void to_json(Darabonba::Json& j, const ListRecognitionSamplesRequest& obj) {
1616
DARABONBA_PTR_TO_JSON(Algorithm, algorithm_);
1717
DARABONBA_PTR_TO_JSON(EntityId, entityId_);
18+
DARABONBA_PTR_TO_JSON(EntityName, entityName_);
1819
DARABONBA_PTR_TO_JSON(LibId, libId_);
1920
DARABONBA_PTR_TO_JSON(OwnerAccount, ownerAccount_);
2021
DARABONBA_PTR_TO_JSON(OwnerId, ownerId_);
@@ -26,6 +27,7 @@ namespace Models
2627
friend void from_json(const Darabonba::Json& j, ListRecognitionSamplesRequest& obj) {
2728
DARABONBA_PTR_FROM_JSON(Algorithm, algorithm_);
2829
DARABONBA_PTR_FROM_JSON(EntityId, entityId_);
30+
DARABONBA_PTR_FROM_JSON(EntityName, entityName_);
2931
DARABONBA_PTR_FROM_JSON(LibId, libId_);
3032
DARABONBA_PTR_FROM_JSON(OwnerAccount, ownerAccount_);
3133
DARABONBA_PTR_FROM_JSON(OwnerId, ownerId_);
@@ -46,8 +48,8 @@ namespace Models
4648
virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };
4749
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
4850
virtual bool empty() const override { return this->algorithm_ == nullptr
49-
&& return this->entityId_ == nullptr && return this->libId_ == nullptr && return this->ownerAccount_ == nullptr && return this->ownerId_ == nullptr && return this->pageNumber_ == nullptr
50-
&& return this->pageSize_ == nullptr && return this->resourceOwnerAccount_ == nullptr && return this->resourceOwnerId_ == nullptr; };
51+
&& return this->entityId_ == nullptr && return this->entityName_ == nullptr && return this->libId_ == nullptr && return this->ownerAccount_ == nullptr && return this->ownerId_ == nullptr
52+
&& return this->pageNumber_ == nullptr && return this->pageSize_ == nullptr && return this->resourceOwnerAccount_ == nullptr && return this->resourceOwnerId_ == nullptr; };
5153
// algorithm Field Functions
5254
bool hasAlgorithm() const { return this->algorithm_ != nullptr;};
5355
void deleteAlgorithm() { this->algorithm_ = nullptr;};
@@ -62,6 +64,13 @@ namespace Models
6264
inline ListRecognitionSamplesRequest& setEntityId(string entityId) { DARABONBA_PTR_SET_VALUE(entityId_, entityId) };
6365

6466

67+
// entityName Field Functions
68+
bool hasEntityName() const { return this->entityName_ != nullptr;};
69+
void deleteEntityName() { this->entityName_ = nullptr;};
70+
inline string entityName() const { DARABONBA_PTR_GET_DEFAULT(entityName_, "") };
71+
inline ListRecognitionSamplesRequest& setEntityName(string entityName) { DARABONBA_PTR_SET_VALUE(entityName_, entityName) };
72+
73+
6574
// libId Field Functions
6675
bool hasLibId() const { return this->libId_ != nullptr;};
6776
void deleteLibId() { this->libId_ = nullptr;};
@@ -125,6 +134,7 @@ namespace Models
125134
//
126135
// This parameter is required.
127136
std::shared_ptr<string> entityId_ = nullptr;
137+
std::shared_ptr<string> entityName_ = nullptr;
128138
// The ID of the recognition library.
129139
//
130140
// This parameter is required.

ice-20201109/include/alibabacloud/models/ListRecognitionSamplesResponseBodySamplesSample.hpp

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ namespace Models
1313
class ListRecognitionSamplesResponseBodySamplesSample : public Darabonba::Model {
1414
public:
1515
friend void to_json(Darabonba::Json& j, const ListRecognitionSamplesResponseBodySamplesSample& obj) {
16+
DARABONBA_PTR_TO_JSON(EntityId, entityId_);
1617
DARABONBA_PTR_TO_JSON(ImageUrl, imageUrl_);
18+
DARABONBA_PTR_TO_JSON(LibId, libId_);
1719
DARABONBA_PTR_TO_JSON(SampleId, sampleId_);
1820
};
1921
friend void from_json(const Darabonba::Json& j, ListRecognitionSamplesResponseBodySamplesSample& obj) {
22+
DARABONBA_PTR_FROM_JSON(EntityId, entityId_);
2023
DARABONBA_PTR_FROM_JSON(ImageUrl, imageUrl_);
24+
DARABONBA_PTR_FROM_JSON(LibId, libId_);
2125
DARABONBA_PTR_FROM_JSON(SampleId, sampleId_);
2226
};
2327
ListRecognitionSamplesResponseBodySamplesSample() = default ;
@@ -31,15 +35,29 @@ namespace Models
3135
};
3236
virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };
3337
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
34-
virtual bool empty() const override { return this->imageUrl_ == nullptr
35-
&& return this->sampleId_ == nullptr; };
38+
virtual bool empty() const override { return this->entityId_ == nullptr
39+
&& return this->imageUrl_ == nullptr && return this->libId_ == nullptr && return this->sampleId_ == nullptr; };
40+
// entityId Field Functions
41+
bool hasEntityId() const { return this->entityId_ != nullptr;};
42+
void deleteEntityId() { this->entityId_ = nullptr;};
43+
inline string entityId() const { DARABONBA_PTR_GET_DEFAULT(entityId_, "") };
44+
inline ListRecognitionSamplesResponseBodySamplesSample& setEntityId(string entityId) { DARABONBA_PTR_SET_VALUE(entityId_, entityId) };
45+
46+
3647
// imageUrl Field Functions
3748
bool hasImageUrl() const { return this->imageUrl_ != nullptr;};
3849
void deleteImageUrl() { this->imageUrl_ = nullptr;};
3950
inline string imageUrl() const { DARABONBA_PTR_GET_DEFAULT(imageUrl_, "") };
4051
inline ListRecognitionSamplesResponseBodySamplesSample& setImageUrl(string imageUrl) { DARABONBA_PTR_SET_VALUE(imageUrl_, imageUrl) };
4152

4253

54+
// libId Field Functions
55+
bool hasLibId() const { return this->libId_ != nullptr;};
56+
void deleteLibId() { this->libId_ = nullptr;};
57+
inline string libId() const { DARABONBA_PTR_GET_DEFAULT(libId_, "") };
58+
inline ListRecognitionSamplesResponseBodySamplesSample& setLibId(string libId) { DARABONBA_PTR_SET_VALUE(libId_, libId) };
59+
60+
4361
// sampleId Field Functions
4462
bool hasSampleId() const { return this->sampleId_ != nullptr;};
4563
void deleteSampleId() { this->sampleId_ = nullptr;};
@@ -48,8 +66,10 @@ namespace Models
4866

4967

5068
protected:
69+
std::shared_ptr<string> entityId_ = nullptr;
5170
// The URL of the image sample.
5271
std::shared_ptr<string> imageUrl_ = nullptr;
72+
std::shared_ptr<string> libId_ = nullptr;
5373
// The sample ID.
5474
std::shared_ptr<string> sampleId_ = nullptr;
5575
};

ice-20201109/include/alibabacloud/models/SubmitSmarttagJobRequest.hpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace Models
2222
DARABONBA_PTR_TO_JSON(NotifyUrl, notifyUrl_);
2323
DARABONBA_PTR_TO_JSON(Params, params_);
2424
DARABONBA_PTR_TO_JSON(ScheduleConfig, scheduleConfig_);
25+
DARABONBA_PTR_TO_JSON(TemplateConfig, templateConfig_);
2526
DARABONBA_PTR_TO_JSON(TemplateId, templateId_);
2627
DARABONBA_PTR_TO_JSON(Title, title_);
2728
DARABONBA_PTR_TO_JSON(UserData, userData_);
@@ -34,6 +35,7 @@ namespace Models
3435
DARABONBA_PTR_FROM_JSON(NotifyUrl, notifyUrl_);
3536
DARABONBA_PTR_FROM_JSON(Params, params_);
3637
DARABONBA_PTR_FROM_JSON(ScheduleConfig, scheduleConfig_);
38+
DARABONBA_PTR_FROM_JSON(TemplateConfig, templateConfig_);
3739
DARABONBA_PTR_FROM_JSON(TemplateId, templateId_);
3840
DARABONBA_PTR_FROM_JSON(Title, title_);
3941
DARABONBA_PTR_FROM_JSON(UserData, userData_);
@@ -51,7 +53,7 @@ namespace Models
5153
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
5254
virtual bool empty() const override { return this->content_ == nullptr
5355
&& return this->contentAddr_ == nullptr && return this->contentType_ == nullptr && return this->input_ == nullptr && return this->notifyUrl_ == nullptr && return this->params_ == nullptr
54-
&& return this->scheduleConfig_ == nullptr && return this->templateId_ == nullptr && return this->title_ == nullptr && return this->userData_ == nullptr; };
56+
&& return this->scheduleConfig_ == nullptr && return this->templateConfig_ == nullptr && return this->templateId_ == nullptr && return this->title_ == nullptr && return this->userData_ == nullptr; };
5557
// content Field Functions
5658
bool hasContent() const { return this->content_ != nullptr;};
5759
void deleteContent() { this->content_ = nullptr;};
@@ -105,6 +107,13 @@ namespace Models
105107
inline SubmitSmarttagJobRequest& setScheduleConfig(SubmitSmarttagJobRequestScheduleConfig && scheduleConfig) { DARABONBA_PTR_SET_RVALUE(scheduleConfig_, scheduleConfig) };
106108

107109

110+
// templateConfig Field Functions
111+
bool hasTemplateConfig() const { return this->templateConfig_ != nullptr;};
112+
void deleteTemplateConfig() { this->templateConfig_ = nullptr;};
113+
inline string templateConfig() const { DARABONBA_PTR_GET_DEFAULT(templateConfig_, "") };
114+
inline SubmitSmarttagJobRequest& setTemplateConfig(string templateConfig) { DARABONBA_PTR_SET_VALUE(templateConfig_, templateConfig) };
115+
116+
108117
// templateId Field Functions
109118
bool hasTemplateId() const { return this->templateId_ != nullptr;};
110119
void deleteTemplateId() { this->templateId_ = nullptr;};
@@ -146,6 +155,7 @@ namespace Models
146155
std::shared_ptr<string> params_ = nullptr;
147156
// The scheduling configurations.
148157
std::shared_ptr<SubmitSmarttagJobRequestScheduleConfig> scheduleConfig_ = nullptr;
158+
std::shared_ptr<string> templateConfig_ = nullptr;
149159
// The ID of the template that specifies the analysis algorithms. For more information about template operations, see [Configure templates](https://help.aliyun.com/document_detail/445702.html).
150160
std::shared_ptr<string> templateId_ = nullptr;
151161
// The video title. The title can contain letters, digits, and hyphens (-) and cannot start with a special character. The title can be up to 256 bytes in length.

ice-20201109/include/alibabacloud/models/SubmitSmarttagJobShrinkRequest.hpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace Models
2020
DARABONBA_PTR_TO_JSON(NotifyUrl, notifyUrl_);
2121
DARABONBA_PTR_TO_JSON(Params, params_);
2222
DARABONBA_PTR_TO_JSON(ScheduleConfig, scheduleConfigShrink_);
23+
DARABONBA_PTR_TO_JSON(TemplateConfig, templateConfig_);
2324
DARABONBA_PTR_TO_JSON(TemplateId, templateId_);
2425
DARABONBA_PTR_TO_JSON(Title, title_);
2526
DARABONBA_PTR_TO_JSON(UserData, userData_);
@@ -32,6 +33,7 @@ namespace Models
3233
DARABONBA_PTR_FROM_JSON(NotifyUrl, notifyUrl_);
3334
DARABONBA_PTR_FROM_JSON(Params, params_);
3435
DARABONBA_PTR_FROM_JSON(ScheduleConfig, scheduleConfigShrink_);
36+
DARABONBA_PTR_FROM_JSON(TemplateConfig, templateConfig_);
3537
DARABONBA_PTR_FROM_JSON(TemplateId, templateId_);
3638
DARABONBA_PTR_FROM_JSON(Title, title_);
3739
DARABONBA_PTR_FROM_JSON(UserData, userData_);
@@ -49,7 +51,7 @@ namespace Models
4951
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
5052
virtual bool empty() const override { return this->content_ == nullptr
5153
&& return this->contentAddr_ == nullptr && return this->contentType_ == nullptr && return this->inputShrink_ == nullptr && return this->notifyUrl_ == nullptr && return this->params_ == nullptr
52-
&& return this->scheduleConfigShrink_ == nullptr && return this->templateId_ == nullptr && return this->title_ == nullptr && return this->userData_ == nullptr; };
54+
&& return this->scheduleConfigShrink_ == nullptr && return this->templateConfig_ == nullptr && return this->templateId_ == nullptr && return this->title_ == nullptr && return this->userData_ == nullptr; };
5355
// content Field Functions
5456
bool hasContent() const { return this->content_ != nullptr;};
5557
void deleteContent() { this->content_ = nullptr;};
@@ -99,6 +101,13 @@ namespace Models
99101
inline SubmitSmarttagJobShrinkRequest& setScheduleConfigShrink(string scheduleConfigShrink) { DARABONBA_PTR_SET_VALUE(scheduleConfigShrink_, scheduleConfigShrink) };
100102

101103

104+
// templateConfig Field Functions
105+
bool hasTemplateConfig() const { return this->templateConfig_ != nullptr;};
106+
void deleteTemplateConfig() { this->templateConfig_ = nullptr;};
107+
inline string templateConfig() const { DARABONBA_PTR_GET_DEFAULT(templateConfig_, "") };
108+
inline SubmitSmarttagJobShrinkRequest& setTemplateConfig(string templateConfig) { DARABONBA_PTR_SET_VALUE(templateConfig_, templateConfig) };
109+
110+
102111
// templateId Field Functions
103112
bool hasTemplateId() const { return this->templateId_ != nullptr;};
104113
void deleteTemplateId() { this->templateId_ = nullptr;};
@@ -140,6 +149,7 @@ namespace Models
140149
std::shared_ptr<string> params_ = nullptr;
141150
// The scheduling configurations.
142151
std::shared_ptr<string> scheduleConfigShrink_ = nullptr;
152+
std::shared_ptr<string> templateConfig_ = nullptr;
143153
// The ID of the template that specifies the analysis algorithms. For more information about template operations, see [Configure templates](https://help.aliyun.com/document_detail/445702.html).
144154
std::shared_ptr<string> templateId_ = nullptr;
145155
// The video title. The title can contain letters, digits, and hyphens (-) and cannot start with a special character. The title can be up to 256 bytes in length.

ice-20201109/include/alibabacloud/models/SubmitVideoCognitionJobRequest.hpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ namespace Models
1616
friend void to_json(Darabonba::Json& j, const SubmitVideoCognitionJobRequest& obj) {
1717
DARABONBA_PTR_TO_JSON(Input, input_);
1818
DARABONBA_PTR_TO_JSON(Params, params_);
19+
DARABONBA_PTR_TO_JSON(TemplateConfig, templateConfig_);
1920
DARABONBA_PTR_TO_JSON(TemplateId, templateId_);
2021
DARABONBA_PTR_TO_JSON(Title, title_);
2122
DARABONBA_PTR_TO_JSON(UserData, userData_);
2223
};
2324
friend void from_json(const Darabonba::Json& j, SubmitVideoCognitionJobRequest& obj) {
2425
DARABONBA_PTR_FROM_JSON(Input, input_);
2526
DARABONBA_PTR_FROM_JSON(Params, params_);
27+
DARABONBA_PTR_FROM_JSON(TemplateConfig, templateConfig_);
2628
DARABONBA_PTR_FROM_JSON(TemplateId, templateId_);
2729
DARABONBA_PTR_FROM_JSON(Title, title_);
2830
DARABONBA_PTR_FROM_JSON(UserData, userData_);
@@ -39,7 +41,7 @@ namespace Models
3941
virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };
4042
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
4143
virtual bool empty() const override { return this->input_ == nullptr
42-
&& return this->params_ == nullptr && return this->templateId_ == nullptr && return this->title_ == nullptr && return this->userData_ == nullptr; };
44+
&& return this->params_ == nullptr && return this->templateConfig_ == nullptr && return this->templateId_ == nullptr && return this->title_ == nullptr && return this->userData_ == nullptr; };
4345
// input Field Functions
4446
bool hasInput() const { return this->input_ != nullptr;};
4547
void deleteInput() { this->input_ = nullptr;};
@@ -56,6 +58,13 @@ namespace Models
5658
inline SubmitVideoCognitionJobRequest& setParams(string params) { DARABONBA_PTR_SET_VALUE(params_, params) };
5759

5860

61+
// templateConfig Field Functions
62+
bool hasTemplateConfig() const { return this->templateConfig_ != nullptr;};
63+
void deleteTemplateConfig() { this->templateConfig_ = nullptr;};
64+
inline string templateConfig() const { DARABONBA_PTR_GET_DEFAULT(templateConfig_, "") };
65+
inline SubmitVideoCognitionJobRequest& setTemplateConfig(string templateConfig) { DARABONBA_PTR_SET_VALUE(templateConfig_, templateConfig) };
66+
67+
5968
// templateId Field Functions
6069
bool hasTemplateId() const { return this->templateId_ != nullptr;};
6170
void deleteTemplateId() { this->templateId_ = nullptr;};
@@ -82,6 +91,7 @@ namespace Models
8291
std::shared_ptr<SubmitVideoCognitionJobRequestInput> input_ = nullptr;
8392
// Additional request parameters, provided as a JSON string. This is used to pass specific settings for various AI analysis modules, such as Natural Language Processing (NLP), shot segmentation, tagging, and action recognition.
8493
std::shared_ptr<string> params_ = nullptr;
94+
std::shared_ptr<string> templateConfig_ = nullptr;
8595
// The ID of the template that specifies the analysis algorithms to be used. For details, see [CreateCustomTemplate](https://help.aliyun.com/zh/ims/developer-reference/api-ice-2020-11-09-createcustomtemplate?spm=a2c4g.11186623.help-menu-193643.d_5_0_3_3_0_0.17b66afamjKySv) and [smart tagging template](https://help.aliyun.com/zh/ims/user-guide/smart-tagging-template?spm=a2c4g.11186623.0.i15).
8696
std::shared_ptr<string> templateId_ = nullptr;
8797
// The video title. It supports letters, digits, and hyphens (-), and cannot start with a special character. Max length: 256 bytes.

0 commit comments

Comments
 (0)