Generated 2023-01-20 for csas.

This commit is contained in:
sdk-team
2024-06-20 08:51:03 +00:00
parent 8c606d0357
commit d4d30d5bb7
40 changed files with 2221 additions and 1 deletions

View File

@@ -39,6 +39,14 @@ set(csas_public_header_model
include/alibabacloud/csas/model/CreateRegistrationPolicyResult.h
include/alibabacloud/csas/model/CreateUserGroupRequest.h
include/alibabacloud/csas/model/CreateUserGroupResult.h
include/alibabacloud/csas/model/CreateWmBaseImageRequest.h
include/alibabacloud/csas/model/CreateWmBaseImageResult.h
include/alibabacloud/csas/model/CreateWmEmbedTaskRequest.h
include/alibabacloud/csas/model/CreateWmEmbedTaskResult.h
include/alibabacloud/csas/model/CreateWmExtractTaskRequest.h
include/alibabacloud/csas/model/CreateWmExtractTaskResult.h
include/alibabacloud/csas/model/CreateWmInfoMappingRequest.h
include/alibabacloud/csas/model/CreateWmInfoMappingResult.h
include/alibabacloud/csas/model/DeleteClientUserRequest.h
include/alibabacloud/csas/model/DeleteClientUserResult.h
include/alibabacloud/csas/model/DeleteDynamicRouteRequest.h
@@ -79,6 +87,10 @@ set(csas_public_header_model
include/alibabacloud/csas/model/GetUserDeviceResult.h
include/alibabacloud/csas/model/GetUserGroupRequest.h
include/alibabacloud/csas/model/GetUserGroupResult.h
include/alibabacloud/csas/model/GetWmEmbedTaskRequest.h
include/alibabacloud/csas/model/GetWmEmbedTaskResult.h
include/alibabacloud/csas/model/GetWmExtractTaskRequest.h
include/alibabacloud/csas/model/GetWmExtractTaskResult.h
include/alibabacloud/csas/model/ListApplicationsForPrivateAccessPolicyRequest.h
include/alibabacloud/csas/model/ListApplicationsForPrivateAccessPolicyResult.h
include/alibabacloud/csas/model/ListApplicationsForPrivateAccessTagRequest.h
@@ -135,6 +147,8 @@ set(csas_public_header_model
include/alibabacloud/csas/model/ListUserGroupsForRegistrationPolicyResult.h
include/alibabacloud/csas/model/ListUsersRequest.h
include/alibabacloud/csas/model/ListUsersResult.h
include/alibabacloud/csas/model/LookupWmInfoMappingRequest.h
include/alibabacloud/csas/model/LookupWmInfoMappingResult.h
include/alibabacloud/csas/model/RevokeUserSessionRequest.h
include/alibabacloud/csas/model/RevokeUserSessionResult.h
include/alibabacloud/csas/model/UpdateClientUserRequest.h
@@ -184,6 +198,14 @@ set(csas_src
src/model/CreateRegistrationPolicyResult.cc
src/model/CreateUserGroupRequest.cc
src/model/CreateUserGroupResult.cc
src/model/CreateWmBaseImageRequest.cc
src/model/CreateWmBaseImageResult.cc
src/model/CreateWmEmbedTaskRequest.cc
src/model/CreateWmEmbedTaskResult.cc
src/model/CreateWmExtractTaskRequest.cc
src/model/CreateWmExtractTaskResult.cc
src/model/CreateWmInfoMappingRequest.cc
src/model/CreateWmInfoMappingResult.cc
src/model/DeleteClientUserRequest.cc
src/model/DeleteClientUserResult.cc
src/model/DeleteDynamicRouteRequest.cc
@@ -224,6 +246,10 @@ set(csas_src
src/model/GetUserDeviceResult.cc
src/model/GetUserGroupRequest.cc
src/model/GetUserGroupResult.cc
src/model/GetWmEmbedTaskRequest.cc
src/model/GetWmEmbedTaskResult.cc
src/model/GetWmExtractTaskRequest.cc
src/model/GetWmExtractTaskResult.cc
src/model/ListApplicationsForPrivateAccessPolicyRequest.cc
src/model/ListApplicationsForPrivateAccessPolicyResult.cc
src/model/ListApplicationsForPrivateAccessTagRequest.cc
@@ -280,6 +306,8 @@ set(csas_src
src/model/ListUserGroupsForRegistrationPolicyResult.cc
src/model/ListUsersRequest.cc
src/model/ListUsersResult.cc
src/model/LookupWmInfoMappingRequest.cc
src/model/LookupWmInfoMappingResult.cc
src/model/RevokeUserSessionRequest.cc
src/model/RevokeUserSessionResult.cc
src/model/UpdateClientUserRequest.cc

View File

@@ -40,6 +40,14 @@
#include "model/CreateRegistrationPolicyResult.h"
#include "model/CreateUserGroupRequest.h"
#include "model/CreateUserGroupResult.h"
#include "model/CreateWmBaseImageRequest.h"
#include "model/CreateWmBaseImageResult.h"
#include "model/CreateWmEmbedTaskRequest.h"
#include "model/CreateWmEmbedTaskResult.h"
#include "model/CreateWmExtractTaskRequest.h"
#include "model/CreateWmExtractTaskResult.h"
#include "model/CreateWmInfoMappingRequest.h"
#include "model/CreateWmInfoMappingResult.h"
#include "model/DeleteClientUserRequest.h"
#include "model/DeleteClientUserResult.h"
#include "model/DeleteDynamicRouteRequest.h"
@@ -80,6 +88,10 @@
#include "model/GetUserDeviceResult.h"
#include "model/GetUserGroupRequest.h"
#include "model/GetUserGroupResult.h"
#include "model/GetWmEmbedTaskRequest.h"
#include "model/GetWmEmbedTaskResult.h"
#include "model/GetWmExtractTaskRequest.h"
#include "model/GetWmExtractTaskResult.h"
#include "model/ListApplicationsForPrivateAccessPolicyRequest.h"
#include "model/ListApplicationsForPrivateAccessPolicyResult.h"
#include "model/ListApplicationsForPrivateAccessTagRequest.h"
@@ -136,6 +148,8 @@
#include "model/ListUserGroupsForRegistrationPolicyResult.h"
#include "model/ListUsersRequest.h"
#include "model/ListUsersResult.h"
#include "model/LookupWmInfoMappingRequest.h"
#include "model/LookupWmInfoMappingResult.h"
#include "model/RevokeUserSessionRequest.h"
#include "model/RevokeUserSessionResult.h"
#include "model/UpdateClientUserRequest.h"
@@ -200,6 +214,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateUserGroupResult> CreateUserGroupOutcome;
typedef std::future<CreateUserGroupOutcome> CreateUserGroupOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreateUserGroupRequest&, const CreateUserGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserGroupAsyncHandler;
typedef Outcome<Error, Model::CreateWmBaseImageResult> CreateWmBaseImageOutcome;
typedef std::future<CreateWmBaseImageOutcome> CreateWmBaseImageOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreateWmBaseImageRequest&, const CreateWmBaseImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWmBaseImageAsyncHandler;
typedef Outcome<Error, Model::CreateWmEmbedTaskResult> CreateWmEmbedTaskOutcome;
typedef std::future<CreateWmEmbedTaskOutcome> CreateWmEmbedTaskOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreateWmEmbedTaskRequest&, const CreateWmEmbedTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWmEmbedTaskAsyncHandler;
typedef Outcome<Error, Model::CreateWmExtractTaskResult> CreateWmExtractTaskOutcome;
typedef std::future<CreateWmExtractTaskOutcome> CreateWmExtractTaskOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreateWmExtractTaskRequest&, const CreateWmExtractTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWmExtractTaskAsyncHandler;
typedef Outcome<Error, Model::CreateWmInfoMappingResult> CreateWmInfoMappingOutcome;
typedef std::future<CreateWmInfoMappingOutcome> CreateWmInfoMappingOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::CreateWmInfoMappingRequest&, const CreateWmInfoMappingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWmInfoMappingAsyncHandler;
typedef Outcome<Error, Model::DeleteClientUserResult> DeleteClientUserOutcome;
typedef std::future<DeleteClientUserOutcome> DeleteClientUserOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::DeleteClientUserRequest&, const DeleteClientUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClientUserAsyncHandler;
@@ -260,6 +286,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetUserGroupResult> GetUserGroupOutcome;
typedef std::future<GetUserGroupOutcome> GetUserGroupOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::GetUserGroupRequest&, const GetUserGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserGroupAsyncHandler;
typedef Outcome<Error, Model::GetWmEmbedTaskResult> GetWmEmbedTaskOutcome;
typedef std::future<GetWmEmbedTaskOutcome> GetWmEmbedTaskOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::GetWmEmbedTaskRequest&, const GetWmEmbedTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWmEmbedTaskAsyncHandler;
typedef Outcome<Error, Model::GetWmExtractTaskResult> GetWmExtractTaskOutcome;
typedef std::future<GetWmExtractTaskOutcome> GetWmExtractTaskOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::GetWmExtractTaskRequest&, const GetWmExtractTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWmExtractTaskAsyncHandler;
typedef Outcome<Error, Model::ListApplicationsForPrivateAccessPolicyResult> ListApplicationsForPrivateAccessPolicyOutcome;
typedef std::future<ListApplicationsForPrivateAccessPolicyOutcome> ListApplicationsForPrivateAccessPolicyOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListApplicationsForPrivateAccessPolicyRequest&, const ListApplicationsForPrivateAccessPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListApplicationsForPrivateAccessPolicyAsyncHandler;
@@ -344,6 +376,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome;
typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler;
typedef Outcome<Error, Model::LookupWmInfoMappingResult> LookupWmInfoMappingOutcome;
typedef std::future<LookupWmInfoMappingOutcome> LookupWmInfoMappingOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::LookupWmInfoMappingRequest&, const LookupWmInfoMappingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LookupWmInfoMappingAsyncHandler;
typedef Outcome<Error, Model::RevokeUserSessionResult> RevokeUserSessionOutcome;
typedef std::future<RevokeUserSessionOutcome> RevokeUserSessionOutcomeCallable;
typedef std::function<void(const CsasClient*, const Model::RevokeUserSessionRequest&, const RevokeUserSessionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeUserSessionAsyncHandler;
@@ -418,6 +453,18 @@ namespace AlibabaCloud
CreateUserGroupOutcome createUserGroup(const Model::CreateUserGroupRequest &request)const;
void createUserGroupAsync(const Model::CreateUserGroupRequest& request, const CreateUserGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateUserGroupOutcomeCallable createUserGroupCallable(const Model::CreateUserGroupRequest& request) const;
CreateWmBaseImageOutcome createWmBaseImage(const Model::CreateWmBaseImageRequest &request)const;
void createWmBaseImageAsync(const Model::CreateWmBaseImageRequest& request, const CreateWmBaseImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateWmBaseImageOutcomeCallable createWmBaseImageCallable(const Model::CreateWmBaseImageRequest& request) const;
CreateWmEmbedTaskOutcome createWmEmbedTask(const Model::CreateWmEmbedTaskRequest &request)const;
void createWmEmbedTaskAsync(const Model::CreateWmEmbedTaskRequest& request, const CreateWmEmbedTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateWmEmbedTaskOutcomeCallable createWmEmbedTaskCallable(const Model::CreateWmEmbedTaskRequest& request) const;
CreateWmExtractTaskOutcome createWmExtractTask(const Model::CreateWmExtractTaskRequest &request)const;
void createWmExtractTaskAsync(const Model::CreateWmExtractTaskRequest& request, const CreateWmExtractTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateWmExtractTaskOutcomeCallable createWmExtractTaskCallable(const Model::CreateWmExtractTaskRequest& request) const;
CreateWmInfoMappingOutcome createWmInfoMapping(const Model::CreateWmInfoMappingRequest &request)const;
void createWmInfoMappingAsync(const Model::CreateWmInfoMappingRequest& request, const CreateWmInfoMappingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateWmInfoMappingOutcomeCallable createWmInfoMappingCallable(const Model::CreateWmInfoMappingRequest& request) const;
DeleteClientUserOutcome deleteClientUser(const Model::DeleteClientUserRequest &request)const;
void deleteClientUserAsync(const Model::DeleteClientUserRequest& request, const DeleteClientUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteClientUserOutcomeCallable deleteClientUserCallable(const Model::DeleteClientUserRequest& request) const;
@@ -478,6 +525,12 @@ namespace AlibabaCloud
GetUserGroupOutcome getUserGroup(const Model::GetUserGroupRequest &request)const;
void getUserGroupAsync(const Model::GetUserGroupRequest& request, const GetUserGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserGroupOutcomeCallable getUserGroupCallable(const Model::GetUserGroupRequest& request) const;
GetWmEmbedTaskOutcome getWmEmbedTask(const Model::GetWmEmbedTaskRequest &request)const;
void getWmEmbedTaskAsync(const Model::GetWmEmbedTaskRequest& request, const GetWmEmbedTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetWmEmbedTaskOutcomeCallable getWmEmbedTaskCallable(const Model::GetWmEmbedTaskRequest& request) const;
GetWmExtractTaskOutcome getWmExtractTask(const Model::GetWmExtractTaskRequest &request)const;
void getWmExtractTaskAsync(const Model::GetWmExtractTaskRequest& request, const GetWmExtractTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetWmExtractTaskOutcomeCallable getWmExtractTaskCallable(const Model::GetWmExtractTaskRequest& request) const;
ListApplicationsForPrivateAccessPolicyOutcome listApplicationsForPrivateAccessPolicy(const Model::ListApplicationsForPrivateAccessPolicyRequest &request)const;
void listApplicationsForPrivateAccessPolicyAsync(const Model::ListApplicationsForPrivateAccessPolicyRequest& request, const ListApplicationsForPrivateAccessPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListApplicationsForPrivateAccessPolicyOutcomeCallable listApplicationsForPrivateAccessPolicyCallable(const Model::ListApplicationsForPrivateAccessPolicyRequest& request) const;
@@ -562,6 +615,9 @@ namespace AlibabaCloud
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const;
LookupWmInfoMappingOutcome lookupWmInfoMapping(const Model::LookupWmInfoMappingRequest &request)const;
void lookupWmInfoMappingAsync(const Model::LookupWmInfoMappingRequest& request, const LookupWmInfoMappingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LookupWmInfoMappingOutcomeCallable lookupWmInfoMappingCallable(const Model::LookupWmInfoMappingRequest& request) const;
RevokeUserSessionOutcome revokeUserSession(const Model::RevokeUserSessionRequest &request)const;
void revokeUserSessionAsync(const Model::RevokeUserSessionRequest& request, const RevokeUserSessionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RevokeUserSessionOutcomeCallable revokeUserSessionCallable(const Model::RevokeUserSessionRequest& request) const;

View File

@@ -52,6 +52,8 @@ public:
void setPolicyAction(const std::string &policyAction);
int getPriority() const;
void setPriority(int priority);
std::string getDeviceAttributeAction() const;
void setDeviceAttributeAction(const std::string &deviceAttributeAction);
std::vector<std::string> getApplicationIds() const;
void setApplicationIds(const std::vector<std::string> &applicationIds);
std::string getUserGroupMode() const;
@@ -72,6 +74,7 @@ private:
std::vector<std::string> userGroupIds_;
std::string policyAction_;
int priority_;
std::string deviceAttributeAction_;
std::vector<std::string> applicationIds_;
std::string userGroupMode_;
std::string name_;

View File

@@ -0,0 +1,66 @@
/*
* 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_CSAS_MODEL_CREATEWMBASEIMAGEREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEWMBASEIMAGEREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreateWmBaseImageRequest : public RpcServiceRequest {
public:
CreateWmBaseImageRequest();
~CreateWmBaseImageRequest();
int getScale() const;
void setScale(int scale);
std::string getApiType() const;
void setApiType(const std::string &apiType);
std::string getWmInfoUint() const;
void setWmInfoUint(const std::string &wmInfoUint);
long getWmInfoSize() const;
void setWmInfoSize(long wmInfoSize);
std::string getWmInfoBytesB64() const;
void setWmInfoBytesB64(const std::string &wmInfoBytesB64);
std::string getWmType() const;
void setWmType(const std::string &wmType);
int getWidth() const;
void setWidth(int width);
int getOpacity() const;
void setOpacity(int opacity);
int getHeight() const;
void setHeight(int height);
private:
int scale_;
std::string apiType_;
std::string wmInfoUint_;
long wmInfoSize_;
std::string wmInfoBytesB64_;
std::string wmType_;
int width_;
int opacity_;
int height_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEWMBASEIMAGEREQUEST_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_CSAS_MODEL_CREATEWMBASEIMAGERESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEWMBASEIMAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT CreateWmBaseImageResult : public ServiceResult
{
public:
struct Data
{
long imageUrlExp;
std::string imageId;
std::string imageUrl;
};
CreateWmBaseImageResult();
explicit CreateWmBaseImageResult(const std::string &payload);
~CreateWmBaseImageResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEWMBASEIMAGERESULT_H_

View File

@@ -0,0 +1,110 @@
/*
* 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_CSAS_MODEL_CREATEWMEMBEDTASKREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEWMEMBEDTASKREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreateWmEmbedTaskRequest : public RpcServiceRequest {
public:
struct DocumentControl {
bool invisibleAntiAllCopy;
struct BackgroundControl {
bool bgAddInvisible;
struct BgVisibleControl {
std::string mode;
std::string posX;
std::string posY;
long verticalNumber;
long horizontalNumber;
std::string visibleText;
long fontSize;
std::string fontColor;
long angle;
long horizonNumber;
long opacity;
std::string fontTransparent;
};
BgVisibleControl bgVisibleControl;
struct BgInvisibleControl {
std::string invisibleTransparent;
long opacity;
};
BgInvisibleControl bgInvisibleControl;
bool bgAddVisible;
};
BackgroundControl backgroundControl;
bool invisibleAntiTextCopy;
};
CreateWmEmbedTaskRequest();
~CreateWmEmbedTaskRequest();
bool getVideoIsLong() const;
void setVideoIsLong(bool videoIsLong);
std::string getApiType() const;
void setApiType(const std::string &apiType);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
long getImageEmbedLevel() const;
void setImageEmbedLevel(long imageEmbedLevel);
std::string getWmType() const;
void setWmType(const std::string &wmType);
DocumentControl getDocumentControl() const;
void setDocumentControl(const DocumentControl &documentControl);
long getImageEmbedJpegQuality() const;
void setImageEmbedJpegQuality(long imageEmbedJpegQuality);
long getWatermarkInfoUint() const;
void setWatermarkInfoUint(long watermarkInfoUint);
std::string getWmInfoUint() const;
void setWmInfoUint(const std::string &wmInfoUint);
std::string getFilename() const;
void setFilename(const std::string &filename);
long getWmInfoSize() const;
void setWmInfoSize(long wmInfoSize);
std::string getWmInfoBytesB64() const;
void setWmInfoBytesB64(const std::string &wmInfoBytesB64);
std::string getFileUrl() const;
void setFileUrl(const std::string &fileUrl);
std::string getVideoBitrate() const;
void setVideoBitrate(const std::string &videoBitrate);
private:
bool videoIsLong_;
std::string apiType_;
std::string sourceIp_;
long imageEmbedLevel_;
std::string wmType_;
DocumentControl documentControl_;
long imageEmbedJpegQuality_;
long watermarkInfoUint_;
std::string wmInfoUint_;
std::string filename_;
long wmInfoSize_;
std::string wmInfoBytesB64_;
std::string fileUrl_;
std::string videoBitrate_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEWMEMBEDTASKREQUEST_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_CSAS_MODEL_CREATEWMEMBEDTASKRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEWMEMBEDTASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT CreateWmEmbedTaskResult : public ServiceResult
{
public:
struct Data
{
std::string taskId;
std::string inFileHashMd5;
std::string inFileSize;
};
CreateWmEmbedTaskResult();
explicit CreateWmEmbedTaskResult(const std::string &payload);
~CreateWmEmbedTaskResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEWMEMBEDTASKRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* 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_CSAS_MODEL_CREATEWMEXTRACTTASKREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEWMEXTRACTTASKREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreateWmExtractTaskRequest : public RpcServiceRequest {
public:
CreateWmExtractTaskRequest();
~CreateWmExtractTaskRequest();
bool getVideoIsLong() const;
void setVideoIsLong(bool videoIsLong);
bool getDocumentIsCapture() const;
void setDocumentIsCapture(bool documentIsCapture);
std::string getVideoSpeed() const;
void setVideoSpeed(const std::string &videoSpeed);
std::string getApiType() const;
void setApiType(const std::string &apiType);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getWmType() const;
void setWmType(const std::string &wmType);
int getImageDetectLevel() const;
void setImageDetectLevel(int imageDetectLevel);
std::string getFilename() const;
void setFilename(const std::string &filename);
long getWmInfoSize() const;
void setWmInfoSize(long wmInfoSize);
std::string getFileUrl() const;
void setFileUrl(const std::string &fileUrl);
private:
bool videoIsLong_;
bool documentIsCapture_;
std::string videoSpeed_;
std::string apiType_;
std::string sourceIp_;
std::string wmType_;
int imageDetectLevel_;
std::string filename_;
long wmInfoSize_;
std::string fileUrl_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEWMEXTRACTTASKREQUEST_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_CSAS_MODEL_CREATEWMEXTRACTTASKRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEWMEXTRACTTASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT CreateWmExtractTaskResult : public ServiceResult
{
public:
struct Data
{
std::string taskId;
std::string fileHashMd5;
std::string fileSize;
};
CreateWmExtractTaskResult();
explicit CreateWmExtractTaskResult(const std::string &payload);
~CreateWmExtractTaskResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEWMEXTRACTTASKRESULT_H_

View File

@@ -0,0 +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_CSAS_MODEL_CREATEWMINFOMAPPINGREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEWMINFOMAPPINGREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT CreateWmInfoMappingRequest : public RpcServiceRequest {
public:
CreateWmInfoMappingRequest();
~CreateWmInfoMappingRequest();
long getWmInfoSize() const;
void setWmInfoSize(long wmInfoSize);
std::string getWmInfoBytesB64() const;
void setWmInfoBytesB64(const std::string &wmInfoBytesB64);
std::string getWmType() const;
void setWmType(const std::string &wmType);
private:
long wmInfoSize_;
std::string wmInfoBytesB64_;
std::string wmType_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEWMINFOMAPPINGREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_CSAS_MODEL_CREATEWMINFOMAPPINGRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_CREATEWMINFOMAPPINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT CreateWmInfoMappingResult : public ServiceResult
{
public:
struct Data
{
long wmInfoUint;
};
CreateWmInfoMappingResult();
explicit CreateWmInfoMappingResult(const std::string &payload);
~CreateWmInfoMappingResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_CREATEWMINFOMAPPINGRESULT_H_

View File

@@ -51,6 +51,7 @@ namespace AlibabaCloud
std::string name;
std::string userGroupMode;
std::string applicationType;
std::string deviceAttributeAction;
std::vector<std::string> userGroupIds;
std::string deviceAttributeId;
std::string policyAction;

View File

@@ -0,0 +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_CSAS_MODEL_GETWMEMBEDTASKREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_GETWMEMBEDTASKREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT GetWmEmbedTaskRequest : public RpcServiceRequest {
public:
GetWmEmbedTaskRequest();
~GetWmEmbedTaskRequest();
std::string getApiType() const;
void setApiType(const std::string &apiType);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getTaskId() const;
void setTaskId(const std::string &taskId);
private:
std::string apiType_;
std::string sourceIp_;
std::string taskId_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_GETWMEMBEDTASKREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_CSAS_MODEL_GETWMEMBEDTASKRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_GETWMEMBEDTASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT GetWmEmbedTaskResult : public ServiceResult
{
public:
struct Data
{
std::string fileUrl;
std::string taskId;
long outFileSize;
std::string fileUrlExp;
std::string filename;
std::string taskStatus;
std::string outFileHashMd5;
};
GetWmEmbedTaskResult();
explicit GetWmEmbedTaskResult(const std::string &payload);
~GetWmEmbedTaskResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_GETWMEMBEDTASKRESULT_H_

View File

@@ -0,0 +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_CSAS_MODEL_GETWMEXTRACTTASKREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_GETWMEXTRACTTASKREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT GetWmExtractTaskRequest : public RpcServiceRequest {
public:
GetWmExtractTaskRequest();
~GetWmExtractTaskRequest();
std::string getApiType() const;
void setApiType(const std::string &apiType);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getTaskId() const;
void setTaskId(const std::string &taskId);
private:
std::string apiType_;
std::string sourceIp_;
std::string taskId_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_GETWMEXTRACTTASKREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* 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_CSAS_MODEL_GETWMEXTRACTTASKRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_GETWMEXTRACTTASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT GetWmExtractTaskResult : public ServiceResult
{
public:
struct Data
{
std::string status;
long wmInfoUint;
std::string wmInfoBytesB64;
std::string taskId;
std::string createTime;
long wmInfoSize;
std::string filename;
std::string wmType;
};
GetWmExtractTaskResult();
explicit GetWmExtractTaskResult(const std::string &payload);
~GetWmExtractTaskResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_GETWMEXTRACTTASKRESULT_H_

View File

@@ -51,6 +51,7 @@ namespace AlibabaCloud
std::string name;
std::string userGroupMode;
std::string applicationType;
std::string deviceAttributeAction;
std::vector<std::string> userGroupIds;
std::string deviceAttributeId;
std::string policyAction;

View File

@@ -0,0 +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_CSAS_MODEL_LOOKUPWMINFOMAPPINGREQUEST_H_
#define ALIBABACLOUD_CSAS_MODEL_LOOKUPWMINFOMAPPINGREQUEST_H_
#include <alibabacloud/csas/CsasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Csas {
namespace Model {
class ALIBABACLOUD_CSAS_EXPORT LookupWmInfoMappingRequest : public RpcServiceRequest {
public:
LookupWmInfoMappingRequest();
~LookupWmInfoMappingRequest();
std::string getWmInfoUint() const;
void setWmInfoUint(const std::string &wmInfoUint);
long getWmInfoSize() const;
void setWmInfoSize(long wmInfoSize);
std::string getWmType() const;
void setWmType(const std::string &wmType);
private:
std::string wmInfoUint_;
long wmInfoSize_;
std::string wmType_;
};
} // namespace Model
} // namespace Csas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CSAS_MODEL_LOOKUPWMINFOMAPPINGREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_CSAS_MODEL_LOOKUPWMINFOMAPPINGRESULT_H_
#define ALIBABACLOUD_CSAS_MODEL_LOOKUPWMINFOMAPPINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csas/CsasExport.h>
namespace AlibabaCloud
{
namespace Csas
{
namespace Model
{
class ALIBABACLOUD_CSAS_EXPORT LookupWmInfoMappingResult : public ServiceResult
{
public:
struct Data
{
std::string wmInfoBytesB64;
};
LookupWmInfoMappingResult();
explicit LookupWmInfoMappingResult(const std::string &payload);
~LookupWmInfoMappingResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_CSAS_MODEL_LOOKUPWMINFOMAPPINGRESULT_H_

View File

@@ -54,6 +54,8 @@ public:
void setPolicyAction(const std::string &policyAction);
int getPriority() const;
void setPriority(int priority);
std::string getDeviceAttributeAction() const;
void setDeviceAttributeAction(const std::string &deviceAttributeAction);
std::vector<std::string> getApplicationIds() const;
void setApplicationIds(const std::vector<std::string> &applicationIds);
std::string getUserGroupMode() const;
@@ -75,6 +77,7 @@ private:
std::vector<std::string> userGroupIds_;
std::string policyAction_;
int priority_;
std::string deviceAttributeAction_;
std::vector<std::string> applicationIds_;
std::string userGroupMode_;
std::string modifyType_;

View File

@@ -375,6 +375,150 @@ CsasClient::CreateUserGroupOutcomeCallable CsasClient::createUserGroupCallable(c
return task->get_future();
}
CsasClient::CreateWmBaseImageOutcome CsasClient::createWmBaseImage(const CreateWmBaseImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateWmBaseImageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateWmBaseImageOutcome(CreateWmBaseImageResult(outcome.result()));
else
return CreateWmBaseImageOutcome(outcome.error());
}
void CsasClient::createWmBaseImageAsync(const CreateWmBaseImageRequest& request, const CreateWmBaseImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createWmBaseImage(request), context);
};
asyncExecute(new Runnable(fn));
}
CsasClient::CreateWmBaseImageOutcomeCallable CsasClient::createWmBaseImageCallable(const CreateWmBaseImageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateWmBaseImageOutcome()>>(
[this, request]()
{
return this->createWmBaseImage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CsasClient::CreateWmEmbedTaskOutcome CsasClient::createWmEmbedTask(const CreateWmEmbedTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateWmEmbedTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateWmEmbedTaskOutcome(CreateWmEmbedTaskResult(outcome.result()));
else
return CreateWmEmbedTaskOutcome(outcome.error());
}
void CsasClient::createWmEmbedTaskAsync(const CreateWmEmbedTaskRequest& request, const CreateWmEmbedTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createWmEmbedTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CsasClient::CreateWmEmbedTaskOutcomeCallable CsasClient::createWmEmbedTaskCallable(const CreateWmEmbedTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateWmEmbedTaskOutcome()>>(
[this, request]()
{
return this->createWmEmbedTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CsasClient::CreateWmExtractTaskOutcome CsasClient::createWmExtractTask(const CreateWmExtractTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateWmExtractTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateWmExtractTaskOutcome(CreateWmExtractTaskResult(outcome.result()));
else
return CreateWmExtractTaskOutcome(outcome.error());
}
void CsasClient::createWmExtractTaskAsync(const CreateWmExtractTaskRequest& request, const CreateWmExtractTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createWmExtractTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CsasClient::CreateWmExtractTaskOutcomeCallable CsasClient::createWmExtractTaskCallable(const CreateWmExtractTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateWmExtractTaskOutcome()>>(
[this, request]()
{
return this->createWmExtractTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CsasClient::CreateWmInfoMappingOutcome CsasClient::createWmInfoMapping(const CreateWmInfoMappingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateWmInfoMappingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateWmInfoMappingOutcome(CreateWmInfoMappingResult(outcome.result()));
else
return CreateWmInfoMappingOutcome(outcome.error());
}
void CsasClient::createWmInfoMappingAsync(const CreateWmInfoMappingRequest& request, const CreateWmInfoMappingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createWmInfoMapping(request), context);
};
asyncExecute(new Runnable(fn));
}
CsasClient::CreateWmInfoMappingOutcomeCallable CsasClient::createWmInfoMappingCallable(const CreateWmInfoMappingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateWmInfoMappingOutcome()>>(
[this, request]()
{
return this->createWmInfoMapping(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CsasClient::DeleteClientUserOutcome CsasClient::deleteClientUser(const DeleteClientUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1239,78 @@ CsasClient::GetUserGroupOutcomeCallable CsasClient::getUserGroupCallable(const G
return task->get_future();
}
CsasClient::GetWmEmbedTaskOutcome CsasClient::getWmEmbedTask(const GetWmEmbedTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetWmEmbedTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetWmEmbedTaskOutcome(GetWmEmbedTaskResult(outcome.result()));
else
return GetWmEmbedTaskOutcome(outcome.error());
}
void CsasClient::getWmEmbedTaskAsync(const GetWmEmbedTaskRequest& request, const GetWmEmbedTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getWmEmbedTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CsasClient::GetWmEmbedTaskOutcomeCallable CsasClient::getWmEmbedTaskCallable(const GetWmEmbedTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetWmEmbedTaskOutcome()>>(
[this, request]()
{
return this->getWmEmbedTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CsasClient::GetWmExtractTaskOutcome CsasClient::getWmExtractTask(const GetWmExtractTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetWmExtractTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetWmExtractTaskOutcome(GetWmExtractTaskResult(outcome.result()));
else
return GetWmExtractTaskOutcome(outcome.error());
}
void CsasClient::getWmExtractTaskAsync(const GetWmExtractTaskRequest& request, const GetWmExtractTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getWmExtractTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CsasClient::GetWmExtractTaskOutcomeCallable CsasClient::getWmExtractTaskCallable(const GetWmExtractTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetWmExtractTaskOutcome()>>(
[this, request]()
{
return this->getWmExtractTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CsasClient::ListApplicationsForPrivateAccessPolicyOutcome CsasClient::listApplicationsForPrivateAccessPolicy(const ListApplicationsForPrivateAccessPolicyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2103,6 +2319,42 @@ CsasClient::ListUsersOutcomeCallable CsasClient::listUsersCallable(const ListUse
return task->get_future();
}
CsasClient::LookupWmInfoMappingOutcome CsasClient::lookupWmInfoMapping(const LookupWmInfoMappingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return LookupWmInfoMappingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return LookupWmInfoMappingOutcome(LookupWmInfoMappingResult(outcome.result()));
else
return LookupWmInfoMappingOutcome(outcome.error());
}
void CsasClient::lookupWmInfoMappingAsync(const LookupWmInfoMappingRequest& request, const LookupWmInfoMappingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, lookupWmInfoMapping(request), context);
};
asyncExecute(new Runnable(fn));
}
CsasClient::LookupWmInfoMappingOutcomeCallable CsasClient::lookupWmInfoMappingCallable(const LookupWmInfoMappingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<LookupWmInfoMappingOutcome()>>(
[this, request]()
{
return this->lookupWmInfoMapping(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CsasClient::RevokeUserSessionOutcome CsasClient::revokeUserSession(const RevokeUserSessionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -106,6 +106,15 @@ void CreatePrivateAccessPolicyRequest::setPriority(int priority) {
setBodyParameter(std::string("Priority"), std::to_string(priority));
}
std::string CreatePrivateAccessPolicyRequest::getDeviceAttributeAction() const {
return deviceAttributeAction_;
}
void CreatePrivateAccessPolicyRequest::setDeviceAttributeAction(const std::string &deviceAttributeAction) {
deviceAttributeAction_ = deviceAttributeAction;
setBodyParameter(std::string("DeviceAttributeAction"), deviceAttributeAction);
}
std::vector<CreatePrivateAccessPolicyRequest::std::string> CreatePrivateAccessPolicyRequest::getApplicationIds() const {
return applicationIds_;
}

View File

@@ -0,0 +1,108 @@
/*
* 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/csas/model/CreateWmBaseImageRequest.h>
using AlibabaCloud::Csas::Model::CreateWmBaseImageRequest;
CreateWmBaseImageRequest::CreateWmBaseImageRequest()
: RpcServiceRequest("csas", "2023-01-20", "CreateWmBaseImage") {
setMethod(HttpRequest::Method::Post);
}
CreateWmBaseImageRequest::~CreateWmBaseImageRequest() {}
int CreateWmBaseImageRequest::getScale() const {
return scale_;
}
void CreateWmBaseImageRequest::setScale(int scale) {
scale_ = scale;
setBodyParameter(std::string("Scale"), std::to_string(scale));
}
std::string CreateWmBaseImageRequest::getApiType() const {
return apiType_;
}
void CreateWmBaseImageRequest::setApiType(const std::string &apiType) {
apiType_ = apiType;
setBodyParameter(std::string("ApiType"), apiType);
}
std::string CreateWmBaseImageRequest::getWmInfoUint() const {
return wmInfoUint_;
}
void CreateWmBaseImageRequest::setWmInfoUint(const std::string &wmInfoUint) {
wmInfoUint_ = wmInfoUint;
setBodyParameter(std::string("WmInfoUint"), wmInfoUint);
}
long CreateWmBaseImageRequest::getWmInfoSize() const {
return wmInfoSize_;
}
void CreateWmBaseImageRequest::setWmInfoSize(long wmInfoSize) {
wmInfoSize_ = wmInfoSize;
setBodyParameter(std::string("WmInfoSize"), std::to_string(wmInfoSize));
}
std::string CreateWmBaseImageRequest::getWmInfoBytesB64() const {
return wmInfoBytesB64_;
}
void CreateWmBaseImageRequest::setWmInfoBytesB64(const std::string &wmInfoBytesB64) {
wmInfoBytesB64_ = wmInfoBytesB64;
setBodyParameter(std::string("WmInfoBytesB64"), wmInfoBytesB64);
}
std::string CreateWmBaseImageRequest::getWmType() const {
return wmType_;
}
void CreateWmBaseImageRequest::setWmType(const std::string &wmType) {
wmType_ = wmType;
setBodyParameter(std::string("WmType"), wmType);
}
int CreateWmBaseImageRequest::getWidth() const {
return width_;
}
void CreateWmBaseImageRequest::setWidth(int width) {
width_ = width;
setBodyParameter(std::string("Width"), std::to_string(width));
}
int CreateWmBaseImageRequest::getOpacity() const {
return opacity_;
}
void CreateWmBaseImageRequest::setOpacity(int opacity) {
opacity_ = opacity;
setBodyParameter(std::string("Opacity"), std::to_string(opacity));
}
int CreateWmBaseImageRequest::getHeight() const {
return height_;
}
void CreateWmBaseImageRequest::setHeight(int height) {
height_ = height;
setBodyParameter(std::string("Height"), std::to_string(height));
}

View File

@@ -0,0 +1,56 @@
/*
* 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/csas/model/CreateWmBaseImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Csas;
using namespace AlibabaCloud::Csas::Model;
CreateWmBaseImageResult::CreateWmBaseImageResult() :
ServiceResult()
{}
CreateWmBaseImageResult::CreateWmBaseImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateWmBaseImageResult::~CreateWmBaseImageResult()
{}
void CreateWmBaseImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ImageId"].isNull())
data_.imageId = dataNode["ImageId"].asString();
if(!dataNode["ImageUrl"].isNull())
data_.imageUrl = dataNode["ImageUrl"].asString();
if(!dataNode["ImageUrlExp"].isNull())
data_.imageUrlExp = std::stol(dataNode["ImageUrlExp"].asString());
}
CreateWmBaseImageResult::Data CreateWmBaseImageResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,170 @@
/*
* 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/csas/model/CreateWmEmbedTaskRequest.h>
using AlibabaCloud::Csas::Model::CreateWmEmbedTaskRequest;
CreateWmEmbedTaskRequest::CreateWmEmbedTaskRequest()
: RpcServiceRequest("csas", "2023-01-20", "CreateWmEmbedTask") {
setMethod(HttpRequest::Method::Post);
}
CreateWmEmbedTaskRequest::~CreateWmEmbedTaskRequest() {}
bool CreateWmEmbedTaskRequest::getVideoIsLong() const {
return videoIsLong_;
}
void CreateWmEmbedTaskRequest::setVideoIsLong(bool videoIsLong) {
videoIsLong_ = videoIsLong;
setBodyParameter(std::string("VideoIsLong"), videoIsLong ? "true" : "false");
}
std::string CreateWmEmbedTaskRequest::getApiType() const {
return apiType_;
}
void CreateWmEmbedTaskRequest::setApiType(const std::string &apiType) {
apiType_ = apiType;
setBodyParameter(std::string("ApiType"), apiType);
}
std::string CreateWmEmbedTaskRequest::getSourceIp() const {
return sourceIp_;
}
void CreateWmEmbedTaskRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
long CreateWmEmbedTaskRequest::getImageEmbedLevel() const {
return imageEmbedLevel_;
}
void CreateWmEmbedTaskRequest::setImageEmbedLevel(long imageEmbedLevel) {
imageEmbedLevel_ = imageEmbedLevel;
setBodyParameter(std::string("ImageEmbedLevel"), std::to_string(imageEmbedLevel));
}
std::string CreateWmEmbedTaskRequest::getWmType() const {
return wmType_;
}
void CreateWmEmbedTaskRequest::setWmType(const std::string &wmType) {
wmType_ = wmType;
setBodyParameter(std::string("WmType"), wmType);
}
CreateWmEmbedTaskRequest::DocumentControl CreateWmEmbedTaskRequest::getDocumentControl() const {
return documentControl_;
}
void CreateWmEmbedTaskRequest::setDocumentControl(const CreateWmEmbedTaskRequest::DocumentControl &documentControl) {
documentControl_ = documentControl;
setBodyParameter(std::string("DocumentControl") + ".InvisibleAntiAllCopy", documentControl.invisibleAntiAllCopy ? "true" : "false");
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgAddInvisible", documentControl.backgroundControl.bgAddInvisible ? "true" : "false");
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.Mode", documentControl.backgroundControl.bgVisibleControl.mode);
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.PosX", documentControl.backgroundControl.bgVisibleControl.posX);
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.PosY", documentControl.backgroundControl.bgVisibleControl.posY);
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.VerticalNumber", std::to_string(documentControl.backgroundControl.bgVisibleControl.verticalNumber));
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.HorizontalNumber", std::to_string(documentControl.backgroundControl.bgVisibleControl.horizontalNumber));
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.VisibleText", documentControl.backgroundControl.bgVisibleControl.visibleText);
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.FontSize", std::to_string(documentControl.backgroundControl.bgVisibleControl.fontSize));
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.FontColor", documentControl.backgroundControl.bgVisibleControl.fontColor);
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.Angle", std::to_string(documentControl.backgroundControl.bgVisibleControl.angle));
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.HorizonNumber", std::to_string(documentControl.backgroundControl.bgVisibleControl.horizonNumber));
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.Opacity", std::to_string(documentControl.backgroundControl.bgVisibleControl.opacity));
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgVisibleControl.FontTransparent", documentControl.backgroundControl.bgVisibleControl.fontTransparent);
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgInvisibleControl.InvisibleTransparent", documentControl.backgroundControl.bgInvisibleControl.invisibleTransparent);
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgInvisibleControl.Opacity", std::to_string(documentControl.backgroundControl.bgInvisibleControl.opacity));
setBodyParameter(std::string("DocumentControl") + ".BackgroundControl.BgAddVisible", documentControl.backgroundControl.bgAddVisible ? "true" : "false");
setBodyParameter(std::string("DocumentControl") + ".InvisibleAntiTextCopy", documentControl.invisibleAntiTextCopy ? "true" : "false");
}
long CreateWmEmbedTaskRequest::getImageEmbedJpegQuality() const {
return imageEmbedJpegQuality_;
}
void CreateWmEmbedTaskRequest::setImageEmbedJpegQuality(long imageEmbedJpegQuality) {
imageEmbedJpegQuality_ = imageEmbedJpegQuality;
setBodyParameter(std::string("ImageEmbedJpegQuality"), std::to_string(imageEmbedJpegQuality));
}
long CreateWmEmbedTaskRequest::getWatermarkInfoUint() const {
return watermarkInfoUint_;
}
void CreateWmEmbedTaskRequest::setWatermarkInfoUint(long watermarkInfoUint) {
watermarkInfoUint_ = watermarkInfoUint;
setBodyParameter(std::string("WatermarkInfoUint"), std::to_string(watermarkInfoUint));
}
std::string CreateWmEmbedTaskRequest::getWmInfoUint() const {
return wmInfoUint_;
}
void CreateWmEmbedTaskRequest::setWmInfoUint(const std::string &wmInfoUint) {
wmInfoUint_ = wmInfoUint;
setBodyParameter(std::string("WmInfoUint"), wmInfoUint);
}
std::string CreateWmEmbedTaskRequest::getFilename() const {
return filename_;
}
void CreateWmEmbedTaskRequest::setFilename(const std::string &filename) {
filename_ = filename;
setBodyParameter(std::string("Filename"), filename);
}
long CreateWmEmbedTaskRequest::getWmInfoSize() const {
return wmInfoSize_;
}
void CreateWmEmbedTaskRequest::setWmInfoSize(long wmInfoSize) {
wmInfoSize_ = wmInfoSize;
setBodyParameter(std::string("WmInfoSize"), std::to_string(wmInfoSize));
}
std::string CreateWmEmbedTaskRequest::getWmInfoBytesB64() const {
return wmInfoBytesB64_;
}
void CreateWmEmbedTaskRequest::setWmInfoBytesB64(const std::string &wmInfoBytesB64) {
wmInfoBytesB64_ = wmInfoBytesB64;
setBodyParameter(std::string("WmInfoBytesB64"), wmInfoBytesB64);
}
std::string CreateWmEmbedTaskRequest::getFileUrl() const {
return fileUrl_;
}
void CreateWmEmbedTaskRequest::setFileUrl(const std::string &fileUrl) {
fileUrl_ = fileUrl;
setBodyParameter(std::string("FileUrl"), fileUrl);
}
std::string CreateWmEmbedTaskRequest::getVideoBitrate() const {
return videoBitrate_;
}
void CreateWmEmbedTaskRequest::setVideoBitrate(const std::string &videoBitrate) {
videoBitrate_ = videoBitrate;
setBodyParameter(std::string("VideoBitrate"), videoBitrate);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/csas/model/CreateWmEmbedTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Csas;
using namespace AlibabaCloud::Csas::Model;
CreateWmEmbedTaskResult::CreateWmEmbedTaskResult() :
ServiceResult()
{}
CreateWmEmbedTaskResult::CreateWmEmbedTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateWmEmbedTaskResult::~CreateWmEmbedTaskResult()
{}
void CreateWmEmbedTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TaskId"].isNull())
data_.taskId = dataNode["TaskId"].asString();
if(!dataNode["InFileHashMd5"].isNull())
data_.inFileHashMd5 = dataNode["InFileHashMd5"].asString();
if(!dataNode["InFileSize"].isNull())
data_.inFileSize = dataNode["InFileSize"].asString();
}
CreateWmEmbedTaskResult::Data CreateWmEmbedTaskResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/csas/model/CreateWmExtractTaskRequest.h>
using AlibabaCloud::Csas::Model::CreateWmExtractTaskRequest;
CreateWmExtractTaskRequest::CreateWmExtractTaskRequest()
: RpcServiceRequest("csas", "2023-01-20", "CreateWmExtractTask") {
setMethod(HttpRequest::Method::Post);
}
CreateWmExtractTaskRequest::~CreateWmExtractTaskRequest() {}
bool CreateWmExtractTaskRequest::getVideoIsLong() const {
return videoIsLong_;
}
void CreateWmExtractTaskRequest::setVideoIsLong(bool videoIsLong) {
videoIsLong_ = videoIsLong;
setBodyParameter(std::string("VideoIsLong"), videoIsLong ? "true" : "false");
}
bool CreateWmExtractTaskRequest::getDocumentIsCapture() const {
return documentIsCapture_;
}
void CreateWmExtractTaskRequest::setDocumentIsCapture(bool documentIsCapture) {
documentIsCapture_ = documentIsCapture;
setBodyParameter(std::string("DocumentIsCapture"), documentIsCapture ? "true" : "false");
}
std::string CreateWmExtractTaskRequest::getVideoSpeed() const {
return videoSpeed_;
}
void CreateWmExtractTaskRequest::setVideoSpeed(const std::string &videoSpeed) {
videoSpeed_ = videoSpeed;
setBodyParameter(std::string("VideoSpeed"), videoSpeed);
}
std::string CreateWmExtractTaskRequest::getApiType() const {
return apiType_;
}
void CreateWmExtractTaskRequest::setApiType(const std::string &apiType) {
apiType_ = apiType;
setBodyParameter(std::string("ApiType"), apiType);
}
std::string CreateWmExtractTaskRequest::getSourceIp() const {
return sourceIp_;
}
void CreateWmExtractTaskRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string CreateWmExtractTaskRequest::getWmType() const {
return wmType_;
}
void CreateWmExtractTaskRequest::setWmType(const std::string &wmType) {
wmType_ = wmType;
setBodyParameter(std::string("WmType"), wmType);
}
int CreateWmExtractTaskRequest::getImageDetectLevel() const {
return imageDetectLevel_;
}
void CreateWmExtractTaskRequest::setImageDetectLevel(int imageDetectLevel) {
imageDetectLevel_ = imageDetectLevel;
setBodyParameter(std::string("ImageDetectLevel"), std::to_string(imageDetectLevel));
}
std::string CreateWmExtractTaskRequest::getFilename() const {
return filename_;
}
void CreateWmExtractTaskRequest::setFilename(const std::string &filename) {
filename_ = filename;
setBodyParameter(std::string("Filename"), filename);
}
long CreateWmExtractTaskRequest::getWmInfoSize() const {
return wmInfoSize_;
}
void CreateWmExtractTaskRequest::setWmInfoSize(long wmInfoSize) {
wmInfoSize_ = wmInfoSize;
setBodyParameter(std::string("WmInfoSize"), std::to_string(wmInfoSize));
}
std::string CreateWmExtractTaskRequest::getFileUrl() const {
return fileUrl_;
}
void CreateWmExtractTaskRequest::setFileUrl(const std::string &fileUrl) {
fileUrl_ = fileUrl;
setBodyParameter(std::string("FileUrl"), fileUrl);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/csas/model/CreateWmExtractTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Csas;
using namespace AlibabaCloud::Csas::Model;
CreateWmExtractTaskResult::CreateWmExtractTaskResult() :
ServiceResult()
{}
CreateWmExtractTaskResult::CreateWmExtractTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateWmExtractTaskResult::~CreateWmExtractTaskResult()
{}
void CreateWmExtractTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TaskId"].isNull())
data_.taskId = dataNode["TaskId"].asString();
if(!dataNode["FileHashMd5"].isNull())
data_.fileHashMd5 = dataNode["FileHashMd5"].asString();
if(!dataNode["FileSize"].isNull())
data_.fileSize = dataNode["FileSize"].asString();
}
CreateWmExtractTaskResult::Data CreateWmExtractTaskResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/csas/model/CreateWmInfoMappingRequest.h>
using AlibabaCloud::Csas::Model::CreateWmInfoMappingRequest;
CreateWmInfoMappingRequest::CreateWmInfoMappingRequest()
: RpcServiceRequest("csas", "2023-01-20", "CreateWmInfoMapping") {
setMethod(HttpRequest::Method::Post);
}
CreateWmInfoMappingRequest::~CreateWmInfoMappingRequest() {}
long CreateWmInfoMappingRequest::getWmInfoSize() const {
return wmInfoSize_;
}
void CreateWmInfoMappingRequest::setWmInfoSize(long wmInfoSize) {
wmInfoSize_ = wmInfoSize;
setBodyParameter(std::string("WmInfoSize"), std::to_string(wmInfoSize));
}
std::string CreateWmInfoMappingRequest::getWmInfoBytesB64() const {
return wmInfoBytesB64_;
}
void CreateWmInfoMappingRequest::setWmInfoBytesB64(const std::string &wmInfoBytesB64) {
wmInfoBytesB64_ = wmInfoBytesB64;
setBodyParameter(std::string("WmInfoBytesB64"), wmInfoBytesB64);
}
std::string CreateWmInfoMappingRequest::getWmType() const {
return wmType_;
}
void CreateWmInfoMappingRequest::setWmType(const std::string &wmType) {
wmType_ = wmType;
setBodyParameter(std::string("WmType"), wmType);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/csas/model/CreateWmInfoMappingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Csas;
using namespace AlibabaCloud::Csas::Model;
CreateWmInfoMappingResult::CreateWmInfoMappingResult() :
ServiceResult()
{}
CreateWmInfoMappingResult::CreateWmInfoMappingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateWmInfoMappingResult::~CreateWmInfoMappingResult()
{}
void CreateWmInfoMappingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["WmInfoUint"].isNull())
data_.wmInfoUint = std::stol(dataNode["WmInfoUint"].asString());
}
CreateWmInfoMappingResult::Data CreateWmInfoMappingResult::getData()const
{
return data_;
}

View File

@@ -60,6 +60,8 @@ void GetPrivateAccessPolicyResult::parse(const std::string &payload)
policy_.applicationType = policyNode["ApplicationType"].asString();
if(!policyNode["DeviceAttributeId"].isNull())
policy_.deviceAttributeId = policyNode["DeviceAttributeId"].asString();
if(!policyNode["DeviceAttributeAction"].isNull())
policy_.deviceAttributeAction = policyNode["DeviceAttributeAction"].asString();
auto allCustomUserAttributesNode = policyNode["CustomUserAttributes"]["customUserAttribute"];
for (auto policyNodeCustomUserAttributescustomUserAttribute : allCustomUserAttributesNode)
{

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.
*/
#include <alibabacloud/csas/model/GetWmEmbedTaskRequest.h>
using AlibabaCloud::Csas::Model::GetWmEmbedTaskRequest;
GetWmEmbedTaskRequest::GetWmEmbedTaskRequest()
: RpcServiceRequest("csas", "2023-01-20", "GetWmEmbedTask") {
setMethod(HttpRequest::Method::Get);
}
GetWmEmbedTaskRequest::~GetWmEmbedTaskRequest() {}
std::string GetWmEmbedTaskRequest::getApiType() const {
return apiType_;
}
void GetWmEmbedTaskRequest::setApiType(const std::string &apiType) {
apiType_ = apiType;
setParameter(std::string("ApiType"), apiType);
}
std::string GetWmEmbedTaskRequest::getSourceIp() const {
return sourceIp_;
}
void GetWmEmbedTaskRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string GetWmEmbedTaskRequest::getTaskId() const {
return taskId_;
}
void GetWmEmbedTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setParameter(std::string("TaskId"), taskId);
}

View File

@@ -0,0 +1,64 @@
/*
* 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/csas/model/GetWmEmbedTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Csas;
using namespace AlibabaCloud::Csas::Model;
GetWmEmbedTaskResult::GetWmEmbedTaskResult() :
ServiceResult()
{}
GetWmEmbedTaskResult::GetWmEmbedTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetWmEmbedTaskResult::~GetWmEmbedTaskResult()
{}
void GetWmEmbedTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TaskId"].isNull())
data_.taskId = dataNode["TaskId"].asString();
if(!dataNode["TaskStatus"].isNull())
data_.taskStatus = dataNode["TaskStatus"].asString();
if(!dataNode["FileUrl"].isNull())
data_.fileUrl = dataNode["FileUrl"].asString();
if(!dataNode["FileUrlExp"].isNull())
data_.fileUrlExp = dataNode["FileUrlExp"].asString();
if(!dataNode["Filename"].isNull())
data_.filename = dataNode["Filename"].asString();
if(!dataNode["OutFileHashMd5"].isNull())
data_.outFileHashMd5 = dataNode["OutFileHashMd5"].asString();
if(!dataNode["OutFileSize"].isNull())
data_.outFileSize = std::stol(dataNode["OutFileSize"].asString());
}
GetWmEmbedTaskResult::Data GetWmEmbedTaskResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/csas/model/GetWmExtractTaskRequest.h>
using AlibabaCloud::Csas::Model::GetWmExtractTaskRequest;
GetWmExtractTaskRequest::GetWmExtractTaskRequest()
: RpcServiceRequest("csas", "2023-01-20", "GetWmExtractTask") {
setMethod(HttpRequest::Method::Get);
}
GetWmExtractTaskRequest::~GetWmExtractTaskRequest() {}
std::string GetWmExtractTaskRequest::getApiType() const {
return apiType_;
}
void GetWmExtractTaskRequest::setApiType(const std::string &apiType) {
apiType_ = apiType;
setParameter(std::string("ApiType"), apiType);
}
std::string GetWmExtractTaskRequest::getSourceIp() const {
return sourceIp_;
}
void GetWmExtractTaskRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string GetWmExtractTaskRequest::getTaskId() const {
return taskId_;
}
void GetWmExtractTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setParameter(std::string("TaskId"), taskId);
}

View File

@@ -0,0 +1,66 @@
/*
* 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/csas/model/GetWmExtractTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Csas;
using namespace AlibabaCloud::Csas::Model;
GetWmExtractTaskResult::GetWmExtractTaskResult() :
ServiceResult()
{}
GetWmExtractTaskResult::GetWmExtractTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetWmExtractTaskResult::~GetWmExtractTaskResult()
{}
void GetWmExtractTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["CreateTime"].isNull())
data_.createTime = dataNode["CreateTime"].asString();
if(!dataNode["TaskId"].isNull())
data_.taskId = dataNode["TaskId"].asString();
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!dataNode["Filename"].isNull())
data_.filename = dataNode["Filename"].asString();
if(!dataNode["WmType"].isNull())
data_.wmType = dataNode["WmType"].asString();
if(!dataNode["WmInfoSize"].isNull())
data_.wmInfoSize = std::stol(dataNode["WmInfoSize"].asString());
if(!dataNode["WmInfoUint"].isNull())
data_.wmInfoUint = std::stol(dataNode["WmInfoUint"].asString());
if(!dataNode["WmInfoBytesB64"].isNull())
data_.wmInfoBytesB64 = dataNode["WmInfoBytesB64"].asString();
}
GetWmExtractTaskResult::Data GetWmExtractTaskResult::getData()const
{
return data_;
}

View File

@@ -63,6 +63,8 @@ void ListPrivateAccessPolicesResult::parse(const std::string &payload)
policesObject.applicationType = valuePolicespolicy["ApplicationType"].asString();
if(!valuePolicespolicy["DeviceAttributeId"].isNull())
policesObject.deviceAttributeId = valuePolicespolicy["DeviceAttributeId"].asString();
if(!valuePolicespolicy["DeviceAttributeAction"].isNull())
policesObject.deviceAttributeAction = valuePolicespolicy["DeviceAttributeAction"].asString();
auto allCustomUserAttributesNode = valuePolicespolicy["CustomUserAttributes"]["customUserAttribute"];
for (auto valuePolicespolicyCustomUserAttributescustomUserAttribute : allCustomUserAttributesNode)
{

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.
*/
#include <alibabacloud/csas/model/LookupWmInfoMappingRequest.h>
using AlibabaCloud::Csas::Model::LookupWmInfoMappingRequest;
LookupWmInfoMappingRequest::LookupWmInfoMappingRequest()
: RpcServiceRequest("csas", "2023-01-20", "LookupWmInfoMapping") {
setMethod(HttpRequest::Method::Get);
}
LookupWmInfoMappingRequest::~LookupWmInfoMappingRequest() {}
std::string LookupWmInfoMappingRequest::getWmInfoUint() const {
return wmInfoUint_;
}
void LookupWmInfoMappingRequest::setWmInfoUint(const std::string &wmInfoUint) {
wmInfoUint_ = wmInfoUint;
setParameter(std::string("WmInfoUint"), wmInfoUint);
}
long LookupWmInfoMappingRequest::getWmInfoSize() const {
return wmInfoSize_;
}
void LookupWmInfoMappingRequest::setWmInfoSize(long wmInfoSize) {
wmInfoSize_ = wmInfoSize;
setParameter(std::string("WmInfoSize"), std::to_string(wmInfoSize));
}
std::string LookupWmInfoMappingRequest::getWmType() const {
return wmType_;
}
void LookupWmInfoMappingRequest::setWmType(const std::string &wmType) {
wmType_ = wmType;
setParameter(std::string("WmType"), wmType);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/csas/model/LookupWmInfoMappingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Csas;
using namespace AlibabaCloud::Csas::Model;
LookupWmInfoMappingResult::LookupWmInfoMappingResult() :
ServiceResult()
{}
LookupWmInfoMappingResult::LookupWmInfoMappingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
LookupWmInfoMappingResult::~LookupWmInfoMappingResult()
{}
void LookupWmInfoMappingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["WmInfoBytesB64"].isNull())
data_.wmInfoBytesB64 = dataNode["WmInfoBytesB64"].asString();
}
LookupWmInfoMappingResult::Data LookupWmInfoMappingResult::getData()const
{
return data_;
}

View File

@@ -115,6 +115,15 @@ void UpdatePrivateAccessPolicyRequest::setPriority(int priority) {
setBodyParameter(std::string("Priority"), std::to_string(priority));
}
std::string UpdatePrivateAccessPolicyRequest::getDeviceAttributeAction() const {
return deviceAttributeAction_;
}
void UpdatePrivateAccessPolicyRequest::setDeviceAttributeAction(const std::string &deviceAttributeAction) {
deviceAttributeAction_ = deviceAttributeAction;
setBodyParameter(std::string("DeviceAttributeAction"), deviceAttributeAction);
}
std::vector<UpdatePrivateAccessPolicyRequest::std::string> UpdatePrivateAccessPolicyRequest::getApplicationIds() const {
return applicationIds_;
}