Supported DRM.

This commit is contained in:
sdk-team
2020-05-12 11:28:55 +08:00
parent ab7e92063b
commit 6c1dbc8b06
17 changed files with 853 additions and 1 deletions

View File

@@ -98,6 +98,10 @@
#include "model/FindImagesByTagNamesResult.h"
#include "model/FindSimilarFacesRequest.h"
#include "model/FindSimilarFacesResult.h"
#include "model/GetContentKeyRequest.h"
#include "model/GetContentKeyResult.h"
#include "model/GetDRMLicenseRequest.h"
#include "model/GetDRMLicenseResult.h"
#include "model/GetDocIndexRequest.h"
#include "model/GetDocIndexResult.h"
#include "model/GetDocIndexTaskRequest.h"
@@ -158,6 +162,8 @@
#include "model/RefreshOfficePreviewTokenResult.h"
#include "model/SearchDocIndexRequest.h"
#include "model/SearchDocIndexResult.h"
#include "model/StopStreamAnalyseTaskRequest.h"
#include "model/StopStreamAnalyseTaskResult.h"
#include "model/UpdateDocIndexMetaRequest.h"
#include "model/UpdateDocIndexMetaResult.h"
#include "model/UpdateFaceGroupRequest.h"
@@ -291,6 +297,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::FindSimilarFacesResult> FindSimilarFacesOutcome;
typedef std::future<FindSimilarFacesOutcome> FindSimilarFacesOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::FindSimilarFacesRequest&, const FindSimilarFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindSimilarFacesAsyncHandler;
typedef Outcome<Error, Model::GetContentKeyResult> GetContentKeyOutcome;
typedef std::future<GetContentKeyOutcome> GetContentKeyOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::GetContentKeyRequest&, const GetContentKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetContentKeyAsyncHandler;
typedef Outcome<Error, Model::GetDRMLicenseResult> GetDRMLicenseOutcome;
typedef std::future<GetDRMLicenseOutcome> GetDRMLicenseOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::GetDRMLicenseRequest&, const GetDRMLicenseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDRMLicenseAsyncHandler;
typedef Outcome<Error, Model::GetDocIndexResult> GetDocIndexOutcome;
typedef std::future<GetDocIndexOutcome> GetDocIndexOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::GetDocIndexRequest&, const GetDocIndexOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocIndexAsyncHandler;
@@ -381,6 +393,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SearchDocIndexResult> SearchDocIndexOutcome;
typedef std::future<SearchDocIndexOutcome> SearchDocIndexOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::SearchDocIndexRequest&, const SearchDocIndexOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchDocIndexAsyncHandler;
typedef Outcome<Error, Model::StopStreamAnalyseTaskResult> StopStreamAnalyseTaskOutcome;
typedef std::future<StopStreamAnalyseTaskOutcome> StopStreamAnalyseTaskOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::StopStreamAnalyseTaskRequest&, const StopStreamAnalyseTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopStreamAnalyseTaskAsyncHandler;
typedef Outcome<Error, Model::UpdateDocIndexMetaResult> UpdateDocIndexMetaOutcome;
typedef std::future<UpdateDocIndexMetaOutcome> UpdateDocIndexMetaOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::UpdateDocIndexMetaRequest&, const UpdateDocIndexMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDocIndexMetaAsyncHandler;
@@ -515,6 +530,12 @@ namespace AlibabaCloud
FindSimilarFacesOutcome findSimilarFaces(const Model::FindSimilarFacesRequest &request)const;
void findSimilarFacesAsync(const Model::FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindSimilarFacesOutcomeCallable findSimilarFacesCallable(const Model::FindSimilarFacesRequest& request) const;
GetContentKeyOutcome getContentKey(const Model::GetContentKeyRequest &request)const;
void getContentKeyAsync(const Model::GetContentKeyRequest& request, const GetContentKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetContentKeyOutcomeCallable getContentKeyCallable(const Model::GetContentKeyRequest& request) const;
GetDRMLicenseOutcome getDRMLicense(const Model::GetDRMLicenseRequest &request)const;
void getDRMLicenseAsync(const Model::GetDRMLicenseRequest& request, const GetDRMLicenseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDRMLicenseOutcomeCallable getDRMLicenseCallable(const Model::GetDRMLicenseRequest& request) const;
GetDocIndexOutcome getDocIndex(const Model::GetDocIndexRequest &request)const;
void getDocIndexAsync(const Model::GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDocIndexOutcomeCallable getDocIndexCallable(const Model::GetDocIndexRequest& request) const;
@@ -605,6 +626,9 @@ namespace AlibabaCloud
SearchDocIndexOutcome searchDocIndex(const Model::SearchDocIndexRequest &request)const;
void searchDocIndexAsync(const Model::SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchDocIndexOutcomeCallable searchDocIndexCallable(const Model::SearchDocIndexRequest& request) const;
StopStreamAnalyseTaskOutcome stopStreamAnalyseTask(const Model::StopStreamAnalyseTaskRequest &request)const;
void stopStreamAnalyseTaskAsync(const Model::StopStreamAnalyseTaskRequest& request, const StopStreamAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopStreamAnalyseTaskOutcomeCallable stopStreamAnalyseTaskCallable(const Model::StopStreamAnalyseTaskRequest& request) const;
UpdateDocIndexMetaOutcome updateDocIndexMeta(const Model::UpdateDocIndexMetaRequest &request)const;
void updateDocIndexMetaAsync(const Model::UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDocIndexMetaOutcomeCallable updateDocIndexMetaCallable(const Model::UpdateDocIndexMetaRequest& request) const;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GetContentKeyRequest : public RpcServiceRequest
{
public:
GetContentKeyRequest();
~GetContentKeyRequest();
std::string getProject()const;
void setProject(const std::string& project);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getVersionId()const;
void setVersionId(const std::string& versionId);
std::string getDRMServerId()const;
void setDRMServerId(const std::string& dRMServerId);
std::string getKeyIds()const;
void setKeyIds(const std::string& keyIds);
private:
std::string project_;
std::string accessKeyId_;
std::string versionId_;
std::string dRMServerId_;
std::string keyIds_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYRESULT_H_
#define ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GetContentKeyResult : public ServiceResult
{
public:
GetContentKeyResult();
explicit GetContentKeyResult(const std::string &payload);
~GetContentKeyResult();
std::string getVersionId()const;
std::string getKeyInfos()const;
protected:
void parse(const std::string &payload);
private:
std::string versionId_;
std::string keyInfos_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GetDRMLicenseRequest : public RpcServiceRequest
{
public:
GetDRMLicenseRequest();
~GetDRMLicenseRequest();
std::string getProject()const;
void setProject(const std::string& project);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getDRMType()const;
void setDRMType(const std::string& dRMType);
std::string getDRMLicense()const;
void setDRMLicense(const std::string& dRMLicense);
private:
std::string project_;
std::string accessKeyId_;
std::string dRMType_;
std::string dRMLicense_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_

View File

@@ -0,0 +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_IMM_MODEL_GETDRMLICENSERESULT_H_
#define ALIBABACLOUD_IMM_MODEL_GETDRMLICENSERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GetDRMLicenseResult : public ServiceResult
{
public:
GetDRMLicenseResult();
explicit GetDRMLicenseResult(const std::string &payload);
~GetDRMLicenseResult();
std::string getDRMData()const;
protected:
void parse(const std::string &payload);
private:
std::string dRMData_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GETDRMLICENSERESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT StopStreamAnalyseTaskRequest : public RpcServiceRequest
{
public:
StopStreamAnalyseTaskRequest();
~StopStreamAnalyseTaskRequest();
std::string getProject()const;
void setProject(const std::string& project);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string project_;
std::string accessKeyId_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKREQUEST_H_

View File

@@ -0,0 +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_IMM_MODEL_STOPSTREAMANALYSETASKRESULT_H_
#define ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT StopStreamAnalyseTaskResult : public ServiceResult
{
public:
StopStreamAnalyseTaskResult();
explicit StopStreamAnalyseTaskResult(const std::string &payload);
~StopStreamAnalyseTaskResult();
std::string getTaskId()const;
protected:
void parse(const std::string &payload);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKRESULT_H_