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

@@ -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_;
}