Change Configuration.

This commit is contained in:
sdk-team
2020-10-23 09:52:11 +00:00
parent 8f6d6d4d1d
commit 1908e64fa6
28 changed files with 1363 additions and 15 deletions

View File

@@ -2139,6 +2139,42 @@ VcsClient::ListPersonsOutcomeCallable VcsClient::listPersonsCallable(const ListP
return task->get_future();
}
VcsClient::ListSubscribeDeviceOutcome VcsClient::listSubscribeDevice(const ListSubscribeDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSubscribeDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListSubscribeDeviceOutcome(ListSubscribeDeviceResult(outcome.result()));
else
return ListSubscribeDeviceOutcome(outcome.error());
}
void VcsClient::listSubscribeDeviceAsync(const ListSubscribeDeviceRequest& request, const ListSubscribeDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listSubscribeDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::ListSubscribeDeviceOutcomeCallable VcsClient::listSubscribeDeviceCallable(const ListSubscribeDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListSubscribeDeviceOutcome()>>(
[this, request]()
{
return this->listSubscribeDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::ListUserGroupsOutcome VcsClient::listUserGroups(const ListUserGroupsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2535,6 +2571,78 @@ VcsClient::StopMonitorOutcomeCallable VcsClient::stopMonitorCallable(const StopM
return task->get_future();
}
VcsClient::SubscribeDeviceEventOutcome VcsClient::subscribeDeviceEvent(const SubscribeDeviceEventRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubscribeDeviceEventOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubscribeDeviceEventOutcome(SubscribeDeviceEventResult(outcome.result()));
else
return SubscribeDeviceEventOutcome(outcome.error());
}
void VcsClient::subscribeDeviceEventAsync(const SubscribeDeviceEventRequest& request, const SubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, subscribeDeviceEvent(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::SubscribeDeviceEventOutcomeCallable VcsClient::subscribeDeviceEventCallable(const SubscribeDeviceEventRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubscribeDeviceEventOutcome()>>(
[this, request]()
{
return this->subscribeDeviceEvent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::SubscribeSpaceEventOutcome VcsClient::subscribeSpaceEvent(const SubscribeSpaceEventRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubscribeSpaceEventOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubscribeSpaceEventOutcome(SubscribeSpaceEventResult(outcome.result()));
else
return SubscribeSpaceEventOutcome(outcome.error());
}
void VcsClient::subscribeSpaceEventAsync(const SubscribeSpaceEventRequest& request, const SubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, subscribeSpaceEvent(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::SubscribeSpaceEventOutcomeCallable VcsClient::subscribeSpaceEventCallable(const SubscribeSpaceEventRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubscribeSpaceEventOutcome()>>(
[this, request]()
{
return this->subscribeSpaceEvent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::SyncDeviceTimeOutcome VcsClient::syncDeviceTime(const SyncDeviceTimeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2679,6 +2787,78 @@ VcsClient::UnbindUserOutcomeCallable VcsClient::unbindUserCallable(const UnbindU
return task->get_future();
}
VcsClient::UnsubscribeDeviceEventOutcome VcsClient::unsubscribeDeviceEvent(const UnsubscribeDeviceEventRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UnsubscribeDeviceEventOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UnsubscribeDeviceEventOutcome(UnsubscribeDeviceEventResult(outcome.result()));
else
return UnsubscribeDeviceEventOutcome(outcome.error());
}
void VcsClient::unsubscribeDeviceEventAsync(const UnsubscribeDeviceEventRequest& request, const UnsubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, unsubscribeDeviceEvent(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::UnsubscribeDeviceEventOutcomeCallable VcsClient::unsubscribeDeviceEventCallable(const UnsubscribeDeviceEventRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UnsubscribeDeviceEventOutcome()>>(
[this, request]()
{
return this->unsubscribeDeviceEvent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::UnsubscribeSpaceEventOutcome VcsClient::unsubscribeSpaceEvent(const UnsubscribeSpaceEventRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UnsubscribeSpaceEventOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UnsubscribeSpaceEventOutcome(UnsubscribeSpaceEventResult(outcome.result()));
else
return UnsubscribeSpaceEventOutcome(outcome.error());
}
void VcsClient::unsubscribeSpaceEventAsync(const UnsubscribeSpaceEventRequest& request, const UnsubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, unsubscribeSpaceEvent(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::UnsubscribeSpaceEventOutcomeCallable VcsClient::unsubscribeSpaceEventCallable(const UnsubscribeSpaceEventRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UnsubscribeSpaceEventOutcome()>>(
[this, request]()
{
return this->unsubscribeSpaceEvent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::UpdateCorpOutcome VcsClient::updateCorp(const UpdateCorpRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -93,6 +93,17 @@ void ListPersonTraceDetailsRequest::setPageSize(long pageSize)
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string ListPersonTraceDetailsRequest::getDataSourceId()const
{
return dataSourceId_;
}
void ListPersonTraceDetailsRequest::setDataSourceId(const std::string& dataSourceId)
{
dataSourceId_ = dataSourceId;
setBodyParameter("DataSourceId", dataSourceId);
}
std::string ListPersonTraceDetailsRequest::getPersonId()const
{
return personId_;

View File

@@ -43,14 +43,6 @@ void ListPersonTraceDetailsResult::parse(const std::string &payload)
for (auto valueDataDatas : allDataNode)
{
Datas dataObject;
if(!valueDataDatas["PageNumber"].isNull())
dataObject.pageNumber = std::stol(valueDataDatas["PageNumber"].asString());
if(!valueDataDatas["PageSize"].isNull())
dataObject.pageSize = std::stol(valueDataDatas["PageSize"].asString());
if(!valueDataDatas["TotalCount"].isNull())
dataObject.totalCount = std::stol(valueDataDatas["TotalCount"].asString());
if(!valueDataDatas["TotalPage"].isNull())
dataObject.totalPage = std::stol(valueDataDatas["TotalPage"].asString());
if(!valueDataDatas["TargetPicUrlPath"].isNull())
dataObject.targetPicUrlPath = valueDataDatas["TargetPicUrlPath"].asString();
if(!valueDataDatas["DataSourceId"].isNull())
@@ -79,14 +71,35 @@ void ListPersonTraceDetailsResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListPersonTraceDetailsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListPersonTraceDetailsResult::getMessage()const
{
return message_;
}
long ListPersonTraceDetailsResult::getPageSize()const
{
return pageSize_;
}
long ListPersonTraceDetailsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListPersonTraceDetailsResult::Datas> ListPersonTraceDetailsResult::getData()const
{
return data_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/ListSubscribeDeviceRequest.h>
using AlibabaCloud::Vcs::Model::ListSubscribeDeviceRequest;
ListSubscribeDeviceRequest::ListSubscribeDeviceRequest() :
RpcServiceRequest("vcs", "2020-05-15", "ListSubscribeDevice")
{
setMethod(HttpRequest::Method::Post);
}
ListSubscribeDeviceRequest::~ListSubscribeDeviceRequest()
{}
int ListSubscribeDeviceRequest::getPageSize()const
{
return pageSize_;
}
void ListSubscribeDeviceRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListSubscribeDeviceRequest::getPageNum()const
{
return pageNum_;
}
void ListSubscribeDeviceRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}

View File

@@ -0,0 +1,82 @@
/*
* 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/vcs/model/ListSubscribeDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
ListSubscribeDeviceResult::ListSubscribeDeviceResult() :
ServiceResult()
{}
ListSubscribeDeviceResult::ListSubscribeDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSubscribeDeviceResult::~ListSubscribeDeviceResult()
{}
void ListSubscribeDeviceResult::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["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
auto allSubscribeListNode = dataNode["SubscribeList"]["SubscribeListItem"];
for (auto dataNodeSubscribeListSubscribeListItem : allSubscribeListNode)
{
Data::SubscribeListItem subscribeListItemObject;
if(!dataNodeSubscribeListSubscribeListItem["UserId"].isNull())
subscribeListItemObject.userId = dataNodeSubscribeListSubscribeListItem["UserId"].asString();
if(!dataNodeSubscribeListSubscribeListItem["DeviceId"].isNull())
subscribeListItemObject.deviceId = dataNodeSubscribeListSubscribeListItem["DeviceId"].asString();
if(!dataNodeSubscribeListSubscribeListItem["PushConfig"].isNull())
subscribeListItemObject.pushConfig = dataNodeSubscribeListSubscribeListItem["PushConfig"].asString();
if(!dataNodeSubscribeListSubscribeListItem["CreateTime"].isNull())
subscribeListItemObject.createTime = dataNodeSubscribeListSubscribeListItem["CreateTime"].asString();
if(!dataNodeSubscribeListSubscribeListItem["UpdateTime"].isNull())
subscribeListItemObject.updateTime = dataNodeSubscribeListSubscribeListItem["UpdateTime"].asString();
data_.subscribeList.push_back(subscribeListItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListSubscribeDeviceResult::getMessage()const
{
return message_;
}
ListSubscribeDeviceResult::Data ListSubscribeDeviceResult::getData()const
{
return data_;
}
std::string ListSubscribeDeviceResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/SubscribeDeviceEventRequest.h>
using AlibabaCloud::Vcs::Model::SubscribeDeviceEventRequest;
SubscribeDeviceEventRequest::SubscribeDeviceEventRequest() :
RpcServiceRequest("vcs", "2020-05-15", "SubscribeDeviceEvent")
{
setMethod(HttpRequest::Method::Post);
}
SubscribeDeviceEventRequest::~SubscribeDeviceEventRequest()
{}
std::string SubscribeDeviceEventRequest::getPushConfig()const
{
return pushConfig_;
}
void SubscribeDeviceEventRequest::setPushConfig(const std::string& pushConfig)
{
pushConfig_ = pushConfig;
setParameter("PushConfig", pushConfig);
}
std::string SubscribeDeviceEventRequest::getDeviceId()const
{
return deviceId_;
}
void SubscribeDeviceEventRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/vcs/model/SubscribeDeviceEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
SubscribeDeviceEventResult::SubscribeDeviceEventResult() :
ServiceResult()
{}
SubscribeDeviceEventResult::SubscribeDeviceEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubscribeDeviceEventResult::~SubscribeDeviceEventResult()
{}
void SubscribeDeviceEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SubscribeDeviceEventResult::getMessage()const
{
return message_;
}
std::string SubscribeDeviceEventResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/SubscribeSpaceEventRequest.h>
using AlibabaCloud::Vcs::Model::SubscribeSpaceEventRequest;
SubscribeSpaceEventRequest::SubscribeSpaceEventRequest() :
RpcServiceRequest("vcs", "2020-05-15", "SubscribeSpaceEvent")
{
setMethod(HttpRequest::Method::Post);
}
SubscribeSpaceEventRequest::~SubscribeSpaceEventRequest()
{}
std::string SubscribeSpaceEventRequest::getSpaceId()const
{
return spaceId_;
}
void SubscribeSpaceEventRequest::setSpaceId(const std::string& spaceId)
{
spaceId_ = spaceId;
setParameter("SpaceId", spaceId);
}
std::string SubscribeSpaceEventRequest::getPushConfig()const
{
return pushConfig_;
}
void SubscribeSpaceEventRequest::setPushConfig(const std::string& pushConfig)
{
pushConfig_ = pushConfig;
setParameter("PushConfig", pushConfig);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/vcs/model/SubscribeSpaceEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
SubscribeSpaceEventResult::SubscribeSpaceEventResult() :
ServiceResult()
{}
SubscribeSpaceEventResult::SubscribeSpaceEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubscribeSpaceEventResult::~SubscribeSpaceEventResult()
{}
void SubscribeSpaceEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SubscribeSpaceEventResult::getMessage()const
{
return message_;
}
std::string SubscribeSpaceEventResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/vcs/model/UnsubscribeDeviceEventRequest.h>
using AlibabaCloud::Vcs::Model::UnsubscribeDeviceEventRequest;
UnsubscribeDeviceEventRequest::UnsubscribeDeviceEventRequest() :
RpcServiceRequest("vcs", "2020-05-15", "UnsubscribeDeviceEvent")
{
setMethod(HttpRequest::Method::Post);
}
UnsubscribeDeviceEventRequest::~UnsubscribeDeviceEventRequest()
{}
std::string UnsubscribeDeviceEventRequest::getDeviceId()const
{
return deviceId_;
}
void UnsubscribeDeviceEventRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/vcs/model/UnsubscribeDeviceEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
UnsubscribeDeviceEventResult::UnsubscribeDeviceEventResult() :
ServiceResult()
{}
UnsubscribeDeviceEventResult::UnsubscribeDeviceEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnsubscribeDeviceEventResult::~UnsubscribeDeviceEventResult()
{}
void UnsubscribeDeviceEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string UnsubscribeDeviceEventResult::getMessage()const
{
return message_;
}
std::string UnsubscribeDeviceEventResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/vcs/model/UnsubscribeSpaceEventRequest.h>
using AlibabaCloud::Vcs::Model::UnsubscribeSpaceEventRequest;
UnsubscribeSpaceEventRequest::UnsubscribeSpaceEventRequest() :
RpcServiceRequest("vcs", "2020-05-15", "UnsubscribeSpaceEvent")
{
setMethod(HttpRequest::Method::Post);
}
UnsubscribeSpaceEventRequest::~UnsubscribeSpaceEventRequest()
{}
std::string UnsubscribeSpaceEventRequest::getSpaceId()const
{
return spaceId_;
}
void UnsubscribeSpaceEventRequest::setSpaceId(const std::string& spaceId)
{
spaceId_ = spaceId;
setParameter("SpaceId", spaceId);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/vcs/model/UnsubscribeSpaceEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
UnsubscribeSpaceEventResult::UnsubscribeSpaceEventResult() :
ServiceResult()
{}
UnsubscribeSpaceEventResult::UnsubscribeSpaceEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnsubscribeSpaceEventResult::~UnsubscribeSpaceEventResult()
{}
void UnsubscribeSpaceEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string UnsubscribeSpaceEventResult::getMessage()const
{
return message_;
}
std::string UnsubscribeSpaceEventResult::getCode()const
{
return code_;
}