Release CustomizeClassifyImage.
This commit is contained in:
1853
viapi-regen/src/Viapi-regenClient.cc
Normal file
1853
viapi-regen/src/Viapi-regenClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
63
viapi-regen/src/model/CreateDatasetRequest.cc
Normal file
63
viapi-regen/src/model/CreateDatasetRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateDatasetRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::CreateDatasetRequest;
|
||||
|
||||
CreateDatasetRequest::CreateDatasetRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "CreateDataset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDatasetRequest::~CreateDatasetRequest() {}
|
||||
|
||||
std::string CreateDatasetRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateDatasetRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateDatasetRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateDatasetRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setBodyParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string CreateDatasetRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateDatasetRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
long CreateDatasetRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void CreateDatasetRequest::setWorkspaceId(long workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
72
viapi-regen/src/model/CreateDatasetResult.cc
Normal file
72
viapi-regen/src/model/CreateDatasetResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateDatasetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
CreateDatasetResult::CreateDatasetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDatasetResult::CreateDatasetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDatasetResult::~CreateDatasetResult()
|
||||
{}
|
||||
|
||||
void CreateDatasetResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDatasetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateDatasetResult::Data CreateDatasetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateDatasetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
108
viapi-regen/src/model/CreateLabelsetRequest.cc
Normal file
108
viapi-regen/src/model/CreateLabelsetRequest.cc
Normal 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/viapi-regen/model/CreateLabelsetRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::CreateLabelsetRequest;
|
||||
|
||||
CreateLabelsetRequest::CreateLabelsetRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "CreateLabelset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLabelsetRequest::~CreateLabelsetRequest() {}
|
||||
|
||||
std::string CreateLabelsetRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateLabelsetRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateLabelsetRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateLabelsetRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setBodyParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
long CreateLabelsetRequest::getPreLabelId() const {
|
||||
return preLabelId_;
|
||||
}
|
||||
|
||||
void CreateLabelsetRequest::setPreLabelId(long preLabelId) {
|
||||
preLabelId_ = preLabelId;
|
||||
setBodyParameter(std::string("PreLabelId"), std::to_string(preLabelId));
|
||||
}
|
||||
|
||||
std::string CreateLabelsetRequest::getTagUserList() const {
|
||||
return tagUserList_;
|
||||
}
|
||||
|
||||
void CreateLabelsetRequest::setTagUserList(const std::string &tagUserList) {
|
||||
tagUserList_ = tagUserList;
|
||||
setBodyParameter(std::string("TagUserList"), tagUserList);
|
||||
}
|
||||
|
||||
std::string CreateLabelsetRequest::getUserOssUrl() const {
|
||||
return userOssUrl_;
|
||||
}
|
||||
|
||||
void CreateLabelsetRequest::setUserOssUrl(const std::string &userOssUrl) {
|
||||
userOssUrl_ = userOssUrl;
|
||||
setBodyParameter(std::string("UserOssUrl"), userOssUrl);
|
||||
}
|
||||
|
||||
std::string CreateLabelsetRequest::getObjectKey() const {
|
||||
return objectKey_;
|
||||
}
|
||||
|
||||
void CreateLabelsetRequest::setObjectKey(const std::string &objectKey) {
|
||||
objectKey_ = objectKey;
|
||||
setBodyParameter(std::string("ObjectKey"), objectKey);
|
||||
}
|
||||
|
||||
std::string CreateLabelsetRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateLabelsetRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
long CreateLabelsetRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void CreateLabelsetRequest::setDatasetId(long datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setBodyParameter(std::string("DatasetId"), std::to_string(datasetId));
|
||||
}
|
||||
|
||||
std::string CreateLabelsetRequest::getTagSettings() const {
|
||||
return tagSettings_;
|
||||
}
|
||||
|
||||
void CreateLabelsetRequest::setTagSettings(const std::string &tagSettings) {
|
||||
tagSettings_ = tagSettings;
|
||||
setBodyParameter(std::string("TagSettings"), tagSettings);
|
||||
}
|
||||
|
||||
76
viapi-regen/src/model/CreateLabelsetResult.cc
Normal file
76
viapi-regen/src/model/CreateLabelsetResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateLabelsetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
CreateLabelsetResult::CreateLabelsetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateLabelsetResult::CreateLabelsetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateLabelsetResult::~CreateLabelsetResult()
|
||||
{}
|
||||
|
||||
void CreateLabelsetResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["LabelType"].isNull())
|
||||
data_.labelType = dataNode["LabelType"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateLabelsetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateLabelsetResult::Data CreateLabelsetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateLabelsetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
72
viapi-regen/src/model/CreateServiceRequest.cc
Normal file
72
viapi-regen/src/model/CreateServiceRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::CreateServiceRequest;
|
||||
|
||||
CreateServiceRequest::CreateServiceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "CreateService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceRequest::~CreateServiceRequest() {}
|
||||
|
||||
std::string CreateServiceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
long CreateServiceRequest::getTrainTaskId() const {
|
||||
return trainTaskId_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setTrainTaskId(long trainTaskId) {
|
||||
trainTaskId_ = trainTaskId;
|
||||
setBodyParameter(std::string("TrainTaskId"), std::to_string(trainTaskId));
|
||||
}
|
||||
|
||||
std::string CreateServiceRequest::getAuthorizationType() const {
|
||||
return authorizationType_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setAuthorizationType(const std::string &authorizationType) {
|
||||
authorizationType_ = authorizationType;
|
||||
setBodyParameter(std::string("AuthorizationType"), authorizationType);
|
||||
}
|
||||
|
||||
std::string CreateServiceRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateServiceRequest::getAuthorizedAccount() const {
|
||||
return authorizedAccount_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setAuthorizedAccount(const std::string &authorizedAccount) {
|
||||
authorizedAccount_ = authorizedAccount;
|
||||
setBodyParameter(std::string("AuthorizedAccount"), authorizedAccount);
|
||||
}
|
||||
|
||||
78
viapi-regen/src/model/CreateServiceResult.cc
Normal file
78
viapi-regen/src/model/CreateServiceResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
CreateServiceResult::CreateServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateServiceResult::CreateServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateServiceResult::~CreateServiceResult()
|
||||
{}
|
||||
|
||||
void CreateServiceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["ServiceName"].isNull())
|
||||
data_.serviceName = dataNode["ServiceName"].asString();
|
||||
if(!dataNode["ServiceDescription"].isNull())
|
||||
data_.serviceDescription = dataNode["ServiceDescription"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["AuthorizationType"].isNull())
|
||||
data_.authorizationType = dataNode["AuthorizationType"].asString();
|
||||
if(!dataNode["AuthorizedAccount"].isNull())
|
||||
data_.authorizedAccount = dataNode["AuthorizedAccount"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateServiceResult::Data CreateServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/CreateTagTaskRequest.cc
Normal file
36
viapi-regen/src/model/CreateTagTaskRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateTagTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::CreateTagTaskRequest;
|
||||
|
||||
CreateTagTaskRequest::CreateTagTaskRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "CreateTagTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTagTaskRequest::~CreateTagTaskRequest() {}
|
||||
|
||||
long CreateTagTaskRequest::getLabelsetId() const {
|
||||
return labelsetId_;
|
||||
}
|
||||
|
||||
void CreateTagTaskRequest::setLabelsetId(long labelsetId) {
|
||||
labelsetId_ = labelsetId;
|
||||
setBodyParameter(std::string("LabelsetId"), std::to_string(labelsetId));
|
||||
}
|
||||
|
||||
76
viapi-regen/src/model/CreateTagTaskResult.cc
Normal file
76
viapi-regen/src/model/CreateTagTaskResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateTagTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
CreateTagTaskResult::CreateTagTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTagTaskResult::CreateTagTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTagTaskResult::~CreateTagTaskResult()
|
||||
{}
|
||||
|
||||
void CreateTagTaskResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["LabelType"].isNull())
|
||||
data_.labelType = dataNode["LabelType"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTagTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateTagTaskResult::Data CreateTagTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateTagTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
99
viapi-regen/src/model/CreateTrainTaskRequest.cc
Normal file
99
viapi-regen/src/model/CreateTrainTaskRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateTrainTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::CreateTrainTaskRequest;
|
||||
|
||||
CreateTrainTaskRequest::CreateTrainTaskRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "CreateTrainTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTrainTaskRequest::~CreateTrainTaskRequest() {}
|
||||
|
||||
std::string CreateTrainTaskRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateTrainTaskRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateTrainTaskRequest::getTrainMode() const {
|
||||
return trainMode_;
|
||||
}
|
||||
|
||||
void CreateTrainTaskRequest::setTrainMode(const std::string &trainMode) {
|
||||
trainMode_ = trainMode;
|
||||
setBodyParameter(std::string("TrainMode"), trainMode);
|
||||
}
|
||||
|
||||
long CreateTrainTaskRequest::getPreTrainTaskId() const {
|
||||
return preTrainTaskId_;
|
||||
}
|
||||
|
||||
void CreateTrainTaskRequest::setPreTrainTaskId(long preTrainTaskId) {
|
||||
preTrainTaskId_ = preTrainTaskId;
|
||||
setBodyParameter(std::string("PreTrainTaskId"), std::to_string(preTrainTaskId));
|
||||
}
|
||||
|
||||
std::string CreateTrainTaskRequest::getAdvancedParameters() const {
|
||||
return advancedParameters_;
|
||||
}
|
||||
|
||||
void CreateTrainTaskRequest::setAdvancedParameters(const std::string &advancedParameters) {
|
||||
advancedParameters_ = advancedParameters;
|
||||
setBodyParameter(std::string("AdvancedParameters"), advancedParameters);
|
||||
}
|
||||
|
||||
long CreateTrainTaskRequest::getLabelId() const {
|
||||
return labelId_;
|
||||
}
|
||||
|
||||
void CreateTrainTaskRequest::setLabelId(long labelId) {
|
||||
labelId_ = labelId;
|
||||
setBodyParameter(std::string("LabelId"), std::to_string(labelId));
|
||||
}
|
||||
|
||||
std::string CreateTrainTaskRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateTrainTaskRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
long CreateTrainTaskRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void CreateTrainTaskRequest::setDatasetId(long datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setBodyParameter(std::string("DatasetId"), std::to_string(datasetId));
|
||||
}
|
||||
|
||||
long CreateTrainTaskRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void CreateTrainTaskRequest::setWorkspaceId(long workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
94
viapi-regen/src/model/CreateTrainTaskResult.cc
Normal file
94
viapi-regen/src/model/CreateTrainTaskResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateTrainTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
CreateTrainTaskResult::CreateTrainTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTrainTaskResult::CreateTrainTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTrainTaskResult::~CreateTrainTaskResult()
|
||||
{}
|
||||
|
||||
void CreateTrainTaskResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["TaskName"].isNull())
|
||||
data_.taskName = dataNode["TaskName"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["DatasetId"].isNull())
|
||||
data_.datasetId = std::stol(dataNode["DatasetId"].asString());
|
||||
if(!dataNode["DatasetName"].isNull())
|
||||
data_.datasetName = dataNode["DatasetName"].asString();
|
||||
if(!dataNode["LabelId"].isNull())
|
||||
data_.labelId = std::stol(dataNode["LabelId"].asString());
|
||||
if(!dataNode["LabelName"].isNull())
|
||||
data_.labelName = dataNode["LabelName"].asString();
|
||||
if(!dataNode["TrainMode"].isNull())
|
||||
data_.trainMode = dataNode["TrainMode"].asString();
|
||||
if(!dataNode["RelyOnTaskId"].isNull())
|
||||
data_.relyOnTaskId = std::stol(dataNode["RelyOnTaskId"].asString());
|
||||
if(!dataNode["RelyOnTaskName"].isNull())
|
||||
data_.relyOnTaskName = dataNode["RelyOnTaskName"].asString();
|
||||
if(!dataNode["AdvancedParameters"].isNull())
|
||||
data_.advancedParameters = dataNode["AdvancedParameters"].asString();
|
||||
if(!dataNode["TrainStatus"].isNull())
|
||||
data_.trainStatus = dataNode["TrainStatus"].asString();
|
||||
if(!dataNode["ModelId"].isNull())
|
||||
data_.modelId = std::stol(dataNode["ModelId"].asString());
|
||||
if(!dataNode["ModelEffect"].isNull())
|
||||
data_.modelEffect = dataNode["ModelEffect"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTrainTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateTrainTaskResult::Data CreateTrainTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateTrainTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
viapi-regen/src/model/CreateWorkspaceRequest.cc
Normal file
54
viapi-regen/src/model/CreateWorkspaceRequest.cc
Normal 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/viapi-regen/model/CreateWorkspaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::CreateWorkspaceRequest;
|
||||
|
||||
CreateWorkspaceRequest::CreateWorkspaceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "CreateWorkspace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWorkspaceRequest::~CreateWorkspaceRequest() {}
|
||||
|
||||
std::string CreateWorkspaceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateWorkspaceRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateWorkspaceRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateWorkspaceRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setBodyParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string CreateWorkspaceRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateWorkspaceRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
74
viapi-regen/src/model/CreateWorkspaceResult.cc
Normal file
74
viapi-regen/src/model/CreateWorkspaceResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CreateWorkspaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
CreateWorkspaceResult::CreateWorkspaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateWorkspaceResult::CreateWorkspaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateWorkspaceResult::~CreateWorkspaceResult()
|
||||
{}
|
||||
|
||||
void CreateWorkspaceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["Type"].isNull())
|
||||
data_.type = dataNode["Type"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateWorkspaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateWorkspaceResult::Data CreateWorkspaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateWorkspaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
viapi-regen/src/model/CustomizeClassifyImageRequest.cc
Normal file
45
viapi-regen/src/model/CustomizeClassifyImageRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CustomizeClassifyImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::CustomizeClassifyImageRequest;
|
||||
|
||||
CustomizeClassifyImageRequest::CustomizeClassifyImageRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "CustomizeClassifyImage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CustomizeClassifyImageRequest::~CustomizeClassifyImageRequest() {}
|
||||
|
||||
std::string CustomizeClassifyImageRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void CustomizeClassifyImageRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string CustomizeClassifyImageRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void CustomizeClassifyImageRequest::setServiceId(const std::string &serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setBodyParameter(std::string("ServiceId"), serviceId);
|
||||
}
|
||||
|
||||
68
viapi-regen/src/model/CustomizeClassifyImageResult.cc
Normal file
68
viapi-regen/src/model/CustomizeClassifyImageResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CustomizeClassifyImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
CustomizeClassifyImageResult::CustomizeClassifyImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CustomizeClassifyImageResult::CustomizeClassifyImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CustomizeClassifyImageResult::~CustomizeClassifyImageResult()
|
||||
{}
|
||||
|
||||
void CustomizeClassifyImageResult::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["Category"].isNull())
|
||||
data_.category = dataNode["Category"].asString();
|
||||
if(!dataNode["Score"].isNull())
|
||||
data_.score = std::stof(dataNode["Score"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CustomizeClassifyImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CustomizeClassifyImageResult::Data CustomizeClassifyImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CustomizeClassifyImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
viapi-regen/src/model/CustomizeDetectImageRequest.cc
Normal file
45
viapi-regen/src/model/CustomizeDetectImageRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CustomizeDetectImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::CustomizeDetectImageRequest;
|
||||
|
||||
CustomizeDetectImageRequest::CustomizeDetectImageRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "CustomizeDetectImage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CustomizeDetectImageRequest::~CustomizeDetectImageRequest() {}
|
||||
|
||||
std::string CustomizeDetectImageRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void CustomizeDetectImageRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string CustomizeDetectImageRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void CustomizeDetectImageRequest::setServiceId(const std::string &serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setBodyParameter(std::string("ServiceId"), serviceId);
|
||||
}
|
||||
|
||||
83
viapi-regen/src/model/CustomizeDetectImageResult.cc
Normal file
83
viapi-regen/src/model/CustomizeDetectImageResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CustomizeDetectImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
CustomizeDetectImageResult::CustomizeDetectImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CustomizeDetectImageResult::CustomizeDetectImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CustomizeDetectImageResult::~CustomizeDetectImageResult()
|
||||
{}
|
||||
|
||||
void CustomizeDetectImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allElementsNode = dataNode["Elements"]["elementsItem"];
|
||||
for (auto dataNodeElementselementsItem : allElementsNode)
|
||||
{
|
||||
Data::ElementsItem elementsItemObject;
|
||||
if(!dataNodeElementselementsItem["Score"].isNull())
|
||||
elementsItemObject.score = std::stof(dataNodeElementselementsItem["Score"].asString());
|
||||
if(!dataNodeElementselementsItem["Category"].isNull())
|
||||
elementsItemObject.category = dataNodeElementselementsItem["Category"].asString();
|
||||
auto boxesNode = value["Boxes"];
|
||||
if(!boxesNode["X"].isNull())
|
||||
elementsItemObject.boxes.x = std::stof(boxesNode["X"].asString());
|
||||
if(!boxesNode["Y"].isNull())
|
||||
elementsItemObject.boxes.y = std::stof(boxesNode["Y"].asString());
|
||||
if(!boxesNode["Width"].isNull())
|
||||
elementsItemObject.boxes.width = std::stof(boxesNode["Width"].asString());
|
||||
if(!boxesNode["Height"].isNull())
|
||||
elementsItemObject.boxes.height = std::stof(boxesNode["Height"].asString());
|
||||
data_.elements.push_back(elementsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CustomizeDetectImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CustomizeDetectImageResult::Data CustomizeDetectImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CustomizeDetectImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CustomizeInstanceSegmentImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::CustomizeInstanceSegmentImageRequest;
|
||||
|
||||
CustomizeInstanceSegmentImageRequest::CustomizeInstanceSegmentImageRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "CustomizeInstanceSegmentImage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CustomizeInstanceSegmentImageRequest::~CustomizeInstanceSegmentImageRequest() {}
|
||||
|
||||
std::string CustomizeInstanceSegmentImageRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void CustomizeInstanceSegmentImageRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string CustomizeInstanceSegmentImageRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void CustomizeInstanceSegmentImageRequest::setServiceId(const std::string &serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setBodyParameter(std::string("ServiceId"), serviceId);
|
||||
}
|
||||
|
||||
99
viapi-regen/src/model/CustomizeInstanceSegmentImageResult.cc
Normal file
99
viapi-regen/src/model/CustomizeInstanceSegmentImageResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/CustomizeInstanceSegmentImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
CustomizeInstanceSegmentImageResult::CustomizeInstanceSegmentImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CustomizeInstanceSegmentImageResult::CustomizeInstanceSegmentImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CustomizeInstanceSegmentImageResult::~CustomizeInstanceSegmentImageResult()
|
||||
{}
|
||||
|
||||
void CustomizeInstanceSegmentImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allElementsNode = dataNode["Elements"]["elementsItem"];
|
||||
for (auto dataNodeElementselementsItem : allElementsNode)
|
||||
{
|
||||
Data::ElementsItem elementsItemObject;
|
||||
if(!dataNodeElementselementsItem["Score"].isNull())
|
||||
elementsItemObject.score = std::stof(dataNodeElementselementsItem["Score"].asString());
|
||||
if(!dataNodeElementselementsItem["Category"].isNull())
|
||||
elementsItemObject.category = dataNodeElementselementsItem["Category"].asString();
|
||||
auto allContoursNode = dataNodeElementselementsItem["Contours"]["contoursItem"];
|
||||
for (auto dataNodeElementselementsItemContourscontoursItem : allContoursNode)
|
||||
{
|
||||
Data::ElementsItem::ContoursItem contoursObject;
|
||||
if(!dataNodeElementselementsItemContourscontoursItem["X"].isNull())
|
||||
contoursObject.x = std::stoi(dataNodeElementselementsItemContourscontoursItem["X"].asString());
|
||||
if(!dataNodeElementselementsItemContourscontoursItem["Y"].isNull())
|
||||
contoursObject.y = std::stoi(dataNodeElementselementsItemContourscontoursItem["Y"].asString());
|
||||
elementsItemObject.contours.push_back(contoursObject);
|
||||
}
|
||||
auto boxesNode = value["Boxes"];
|
||||
if(!boxesNode["X"].isNull())
|
||||
elementsItemObject.boxes.x = std::stoi(boxesNode["X"].asString());
|
||||
if(!boxesNode["Y"].isNull())
|
||||
elementsItemObject.boxes.y = std::stoi(boxesNode["Y"].asString());
|
||||
if(!boxesNode["Width"].isNull())
|
||||
elementsItemObject.boxes.width = std::stoi(boxesNode["Width"].asString());
|
||||
if(!boxesNode["Height"].isNull())
|
||||
elementsItemObject.boxes.height = std::stoi(boxesNode["Height"].asString());
|
||||
auto maskNode = value["Mask"];
|
||||
if(!maskNode["Counts"].isNull())
|
||||
elementsItemObject.mask.counts = maskNode["Counts"].asString();
|
||||
auto allSizes = maskNode["Sizes"]["sizes"];
|
||||
for (auto value : allSizes)
|
||||
elementsItemObject.mask.sizes.push_back(value.asString());
|
||||
data_.elements.push_back(elementsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CustomizeInstanceSegmentImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CustomizeInstanceSegmentImageResult::Data CustomizeInstanceSegmentImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CustomizeInstanceSegmentImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
viapi-regen/src/model/DebugServiceRequest.cc
Normal file
45
viapi-regen/src/model/DebugServiceRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DebugServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DebugServiceRequest;
|
||||
|
||||
DebugServiceRequest::DebugServiceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DebugService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DebugServiceRequest::~DebugServiceRequest() {}
|
||||
|
||||
std::string DebugServiceRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
void DebugServiceRequest::setParam(const std::string ¶m) {
|
||||
param_ = param;
|
||||
setBodyParameter(std::string("Param"), param);
|
||||
}
|
||||
|
||||
long DebugServiceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DebugServiceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
65
viapi-regen/src/model/DebugServiceResult.cc
Normal file
65
viapi-regen/src/model/DebugServiceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DebugServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DebugServiceResult::DebugServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DebugServiceResult::DebugServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DebugServiceResult::~DebugServiceResult()
|
||||
{}
|
||||
|
||||
void DebugServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DebugServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DebugServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DebugServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
viapi-regen/src/model/DeleteDataReflowDataRequest.cc
Normal file
45
viapi-regen/src/model/DeleteDataReflowDataRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteDataReflowDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DeleteDataReflowDataRequest;
|
||||
|
||||
DeleteDataReflowDataRequest::DeleteDataReflowDataRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteDataReflowData") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDataReflowDataRequest::~DeleteDataReflowDataRequest() {}
|
||||
|
||||
long DeleteDataReflowDataRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteDataReflowDataRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long DeleteDataReflowDataRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void DeleteDataReflowDataRequest::setServiceId(long serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setBodyParameter(std::string("ServiceId"), std::to_string(serviceId));
|
||||
}
|
||||
|
||||
72
viapi-regen/src/model/DeleteDataReflowDataResult.cc
Normal file
72
viapi-regen/src/model/DeleteDataReflowDataResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteDataReflowDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DeleteDataReflowDataResult::DeleteDataReflowDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDataReflowDataResult::DeleteDataReflowDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDataReflowDataResult::~DeleteDataReflowDataResult()
|
||||
{}
|
||||
|
||||
void DeleteDataReflowDataResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["ServiceId"].isNull())
|
||||
data_.serviceId = std::stol(dataNode["ServiceId"].asString());
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = std::stol(dataNode["GmtModified"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteDataReflowDataResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteDataReflowDataResult::Data DeleteDataReflowDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteDataReflowDataResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/DeleteDatasetRequest.cc
Normal file
36
viapi-regen/src/model/DeleteDatasetRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteDatasetRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DeleteDatasetRequest;
|
||||
|
||||
DeleteDatasetRequest::DeleteDatasetRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteDataset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDatasetRequest::~DeleteDatasetRequest() {}
|
||||
|
||||
long DeleteDatasetRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteDatasetRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
72
viapi-regen/src/model/DeleteDatasetResult.cc
Normal file
72
viapi-regen/src/model/DeleteDatasetResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteDatasetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DeleteDatasetResult::DeleteDatasetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDatasetResult::DeleteDatasetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDatasetResult::~DeleteDatasetResult()
|
||||
{}
|
||||
|
||||
void DeleteDatasetResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteDatasetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteDatasetResult::Data DeleteDatasetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteDatasetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
viapi-regen/src/model/DeleteLabelsetDataRequest.cc
Normal file
45
viapi-regen/src/model/DeleteLabelsetDataRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteLabelsetDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DeleteLabelsetDataRequest;
|
||||
|
||||
DeleteLabelsetDataRequest::DeleteLabelsetDataRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteLabelsetData") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLabelsetDataRequest::~DeleteLabelsetDataRequest() {}
|
||||
|
||||
long DeleteLabelsetDataRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteLabelsetDataRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long DeleteLabelsetDataRequest::getLabelId() const {
|
||||
return labelId_;
|
||||
}
|
||||
|
||||
void DeleteLabelsetDataRequest::setLabelId(long labelId) {
|
||||
labelId_ = labelId;
|
||||
setBodyParameter(std::string("LabelId"), std::to_string(labelId));
|
||||
}
|
||||
|
||||
78
viapi-regen/src/model/DeleteLabelsetDataResult.cc
Normal file
78
viapi-regen/src/model/DeleteLabelsetDataResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteLabelsetDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DeleteLabelsetDataResult::DeleteLabelsetDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLabelsetDataResult::DeleteLabelsetDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLabelsetDataResult::~DeleteLabelsetDataResult()
|
||||
{}
|
||||
|
||||
void DeleteLabelsetDataResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["LabelType"].isNull())
|
||||
data_.labelType = dataNode["LabelType"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteLabelsetDataResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteLabelsetDataResult::Data DeleteLabelsetDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteLabelsetDataResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/DeleteLabelsetRequest.cc
Normal file
36
viapi-regen/src/model/DeleteLabelsetRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteLabelsetRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DeleteLabelsetRequest;
|
||||
|
||||
DeleteLabelsetRequest::DeleteLabelsetRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteLabelset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLabelsetRequest::~DeleteLabelsetRequest() {}
|
||||
|
||||
long DeleteLabelsetRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteLabelsetRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
76
viapi-regen/src/model/DeleteLabelsetResult.cc
Normal file
76
viapi-regen/src/model/DeleteLabelsetResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteLabelsetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DeleteLabelsetResult::DeleteLabelsetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLabelsetResult::DeleteLabelsetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLabelsetResult::~DeleteLabelsetResult()
|
||||
{}
|
||||
|
||||
void DeleteLabelsetResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["LabelType"].isNull())
|
||||
data_.labelType = dataNode["LabelType"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteLabelsetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteLabelsetResult::Data DeleteLabelsetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteLabelsetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/DeleteServiceRequest.cc
Normal file
36
viapi-regen/src/model/DeleteServiceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DeleteServiceRequest;
|
||||
|
||||
DeleteServiceRequest::DeleteServiceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteServiceRequest::~DeleteServiceRequest() {}
|
||||
|
||||
long DeleteServiceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
66
viapi-regen/src/model/DeleteServiceResult.cc
Normal file
66
viapi-regen/src/model/DeleteServiceResult.cc
Normal 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/viapi-regen/model/DeleteServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DeleteServiceResult::DeleteServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceResult::DeleteServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceResult::~DeleteServiceResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteServiceResult::Data DeleteServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/DeleteTrainTaskRequest.cc
Normal file
36
viapi-regen/src/model/DeleteTrainTaskRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteTrainTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DeleteTrainTaskRequest;
|
||||
|
||||
DeleteTrainTaskRequest::DeleteTrainTaskRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteTrainTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTrainTaskRequest::~DeleteTrainTaskRequest() {}
|
||||
|
||||
long DeleteTrainTaskRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteTrainTaskRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
88
viapi-regen/src/model/DeleteTrainTaskResult.cc
Normal file
88
viapi-regen/src/model/DeleteTrainTaskResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteTrainTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DeleteTrainTaskResult::DeleteTrainTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTrainTaskResult::DeleteTrainTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTrainTaskResult::~DeleteTrainTaskResult()
|
||||
{}
|
||||
|
||||
void DeleteTrainTaskResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["TaskName"].isNull())
|
||||
data_.taskName = dataNode["TaskName"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["DatasetId"].isNull())
|
||||
data_.datasetId = std::stol(dataNode["DatasetId"].asString());
|
||||
if(!dataNode["DatasetName"].isNull())
|
||||
data_.datasetName = dataNode["DatasetName"].asString();
|
||||
if(!dataNode["LabelId"].isNull())
|
||||
data_.labelId = std::stol(dataNode["LabelId"].asString());
|
||||
if(!dataNode["LabelName"].isNull())
|
||||
data_.labelName = dataNode["LabelName"].asString();
|
||||
if(!dataNode["TrainMode"].isNull())
|
||||
data_.trainMode = dataNode["TrainMode"].asString();
|
||||
if(!dataNode["TrainStatus"].isNull())
|
||||
data_.trainStatus = dataNode["TrainStatus"].asString();
|
||||
if(!dataNode["ModelId"].isNull())
|
||||
data_.modelId = std::stol(dataNode["ModelId"].asString());
|
||||
if(!dataNode["ModelEffect"].isNull())
|
||||
data_.modelEffect = dataNode["ModelEffect"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteTrainTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteTrainTaskResult::Data DeleteTrainTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteTrainTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/DeleteWorkspaceRequest.cc
Normal file
36
viapi-regen/src/model/DeleteWorkspaceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteWorkspaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DeleteWorkspaceRequest;
|
||||
|
||||
DeleteWorkspaceRequest::DeleteWorkspaceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteWorkspace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteWorkspaceRequest::~DeleteWorkspaceRequest() {}
|
||||
|
||||
long DeleteWorkspaceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteWorkspaceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
74
viapi-regen/src/model/DeleteWorkspaceResult.cc
Normal file
74
viapi-regen/src/model/DeleteWorkspaceResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DeleteWorkspaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DeleteWorkspaceResult::DeleteWorkspaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteWorkspaceResult::DeleteWorkspaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteWorkspaceResult::~DeleteWorkspaceResult()
|
||||
{}
|
||||
|
||||
void DeleteWorkspaceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["Type"].isNull())
|
||||
data_.type = dataNode["Type"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteWorkspaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteWorkspaceResult::Data DeleteWorkspaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteWorkspaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/DisableDataReflowRequest.cc
Normal file
36
viapi-regen/src/model/DisableDataReflowRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DisableDataReflowRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DisableDataReflowRequest;
|
||||
|
||||
DisableDataReflowRequest::DisableDataReflowRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DisableDataReflow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableDataReflowRequest::~DisableDataReflowRequest() {}
|
||||
|
||||
long DisableDataReflowRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void DisableDataReflowRequest::setServiceId(long serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setBodyParameter(std::string("ServiceId"), std::to_string(serviceId));
|
||||
}
|
||||
|
||||
68
viapi-regen/src/model/DisableDataReflowResult.cc
Normal file
68
viapi-regen/src/model/DisableDataReflowResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DisableDataReflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DisableDataReflowResult::DisableDataReflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableDataReflowResult::DisableDataReflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableDataReflowResult::~DisableDataReflowResult()
|
||||
{}
|
||||
|
||||
void DisableDataReflowResult::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["ServiceId"].isNull())
|
||||
data_.serviceId = std::stol(dataNode["ServiceId"].asString());
|
||||
if(!dataNode["EnableDataReflowFlag"].isNull())
|
||||
data_.enableDataReflowFlag = dataNode["EnableDataReflowFlag"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DisableDataReflowResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DisableDataReflowResult::Data DisableDataReflowResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DisableDataReflowResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
viapi-regen/src/model/DownloadFileNameListRequest.cc
Normal file
45
viapi-regen/src/model/DownloadFileNameListRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DownloadFileNameListRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DownloadFileNameListRequest;
|
||||
|
||||
DownloadFileNameListRequest::DownloadFileNameListRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DownloadFileNameList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadFileNameListRequest::~DownloadFileNameListRequest() {}
|
||||
|
||||
std::string DownloadFileNameListRequest::getIdentity() const {
|
||||
return identity_;
|
||||
}
|
||||
|
||||
void DownloadFileNameListRequest::setIdentity(const std::string &identity) {
|
||||
identity_ = identity;
|
||||
setBodyParameter(std::string("Identity"), identity);
|
||||
}
|
||||
|
||||
long DownloadFileNameListRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void DownloadFileNameListRequest::setDatasetId(long datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setBodyParameter(std::string("DatasetId"), std::to_string(datasetId));
|
||||
}
|
||||
|
||||
66
viapi-regen/src/model/DownloadFileNameListResult.cc
Normal file
66
viapi-regen/src/model/DownloadFileNameListResult.cc
Normal 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/viapi-regen/model/DownloadFileNameListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DownloadFileNameListResult::DownloadFileNameListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DownloadFileNameListResult::DownloadFileNameListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DownloadFileNameListResult::~DownloadFileNameListResult()
|
||||
{}
|
||||
|
||||
void DownloadFileNameListResult::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["OssHttpUrl"].isNull())
|
||||
data_.ossHttpUrl = dataNode["OssHttpUrl"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DownloadFileNameListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DownloadFileNameListResult::Data DownloadFileNameListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DownloadFileNameListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/DownloadLabelFileRequest.cc
Normal file
36
viapi-regen/src/model/DownloadLabelFileRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/DownloadLabelFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::DownloadLabelFileRequest;
|
||||
|
||||
DownloadLabelFileRequest::DownloadLabelFileRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "DownloadLabelFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadLabelFileRequest::~DownloadLabelFileRequest() {}
|
||||
|
||||
long DownloadLabelFileRequest::getLabelId() const {
|
||||
return labelId_;
|
||||
}
|
||||
|
||||
void DownloadLabelFileRequest::setLabelId(long labelId) {
|
||||
labelId_ = labelId;
|
||||
setBodyParameter(std::string("LabelId"), std::to_string(labelId));
|
||||
}
|
||||
|
||||
66
viapi-regen/src/model/DownloadLabelFileResult.cc
Normal file
66
viapi-regen/src/model/DownloadLabelFileResult.cc
Normal 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/viapi-regen/model/DownloadLabelFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
DownloadLabelFileResult::DownloadLabelFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DownloadLabelFileResult::DownloadLabelFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DownloadLabelFileResult::~DownloadLabelFileResult()
|
||||
{}
|
||||
|
||||
void DownloadLabelFileResult::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["OssHttpUrl"].isNull())
|
||||
data_.ossHttpUrl = dataNode["OssHttpUrl"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DownloadLabelFileResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DownloadLabelFileResult::Data DownloadLabelFileResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DownloadLabelFileResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
viapi-regen/src/model/EnableDataReflowRequest.cc
Normal file
54
viapi-regen/src/model/EnableDataReflowRequest.cc
Normal 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/viapi-regen/model/EnableDataReflowRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::EnableDataReflowRequest;
|
||||
|
||||
EnableDataReflowRequest::EnableDataReflowRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "EnableDataReflow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableDataReflowRequest::~EnableDataReflowRequest() {}
|
||||
|
||||
long EnableDataReflowRequest::getDataReflowRate() const {
|
||||
return dataReflowRate_;
|
||||
}
|
||||
|
||||
void EnableDataReflowRequest::setDataReflowRate(long dataReflowRate) {
|
||||
dataReflowRate_ = dataReflowRate;
|
||||
setBodyParameter(std::string("DataReflowRate"), std::to_string(dataReflowRate));
|
||||
}
|
||||
|
||||
std::string EnableDataReflowRequest::getDataReflowOssPath() const {
|
||||
return dataReflowOssPath_;
|
||||
}
|
||||
|
||||
void EnableDataReflowRequest::setDataReflowOssPath(const std::string &dataReflowOssPath) {
|
||||
dataReflowOssPath_ = dataReflowOssPath;
|
||||
setBodyParameter(std::string("DataReflowOssPath"), dataReflowOssPath);
|
||||
}
|
||||
|
||||
long EnableDataReflowRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void EnableDataReflowRequest::setServiceId(long serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setBodyParameter(std::string("ServiceId"), std::to_string(serviceId));
|
||||
}
|
||||
|
||||
72
viapi-regen/src/model/EnableDataReflowResult.cc
Normal file
72
viapi-regen/src/model/EnableDataReflowResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/EnableDataReflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
EnableDataReflowResult::EnableDataReflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableDataReflowResult::EnableDataReflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableDataReflowResult::~EnableDataReflowResult()
|
||||
{}
|
||||
|
||||
void EnableDataReflowResult::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["ServiceId"].isNull())
|
||||
data_.serviceId = std::stol(dataNode["ServiceId"].asString());
|
||||
if(!dataNode["EnableDataReflowFlag"].isNull())
|
||||
data_.enableDataReflowFlag = dataNode["EnableDataReflowFlag"].asString() == "true";
|
||||
if(!dataNode["DataReflowRate"].isNull())
|
||||
data_.dataReflowRate = std::stol(dataNode["DataReflowRate"].asString());
|
||||
if(!dataNode["DataReflowOssPath"].isNull())
|
||||
data_.dataReflowOssPath = dataNode["DataReflowOssPath"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string EnableDataReflowResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
EnableDataReflowResult::Data EnableDataReflowResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string EnableDataReflowResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
81
viapi-regen/src/model/ExportDataReflowDataListRequest.cc
Normal file
81
viapi-regen/src/model/ExportDataReflowDataListRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ExportDataReflowDataListRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::ExportDataReflowDataListRequest;
|
||||
|
||||
ExportDataReflowDataListRequest::ExportDataReflowDataListRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "ExportDataReflowDataList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExportDataReflowDataListRequest::~ExportDataReflowDataListRequest() {}
|
||||
|
||||
std::string ExportDataReflowDataListRequest::getFileType() const {
|
||||
return fileType_;
|
||||
}
|
||||
|
||||
void ExportDataReflowDataListRequest::setFileType(const std::string &fileType) {
|
||||
fileType_ = fileType;
|
||||
setBodyParameter(std::string("FileType"), fileType);
|
||||
}
|
||||
|
||||
long ExportDataReflowDataListRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ExportDataReflowDataListRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string ExportDataReflowDataListRequest::getImageName() const {
|
||||
return imageName_;
|
||||
}
|
||||
|
||||
void ExportDataReflowDataListRequest::setImageName(const std::string &imageName) {
|
||||
imageName_ = imageName;
|
||||
setBodyParameter(std::string("ImageName"), imageName);
|
||||
}
|
||||
|
||||
long ExportDataReflowDataListRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ExportDataReflowDataListRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
long ExportDataReflowDataListRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void ExportDataReflowDataListRequest::setServiceId(long serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setBodyParameter(std::string("ServiceId"), std::to_string(serviceId));
|
||||
}
|
||||
|
||||
std::string ExportDataReflowDataListRequest::getCategory() const {
|
||||
return category_;
|
||||
}
|
||||
|
||||
void ExportDataReflowDataListRequest::setCategory(const std::string &category) {
|
||||
category_ = category;
|
||||
setBodyParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
66
viapi-regen/src/model/ExportDataReflowDataListResult.cc
Normal file
66
viapi-regen/src/model/ExportDataReflowDataListResult.cc
Normal 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/viapi-regen/model/ExportDataReflowDataListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
ExportDataReflowDataListResult::ExportDataReflowDataListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExportDataReflowDataListResult::ExportDataReflowDataListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExportDataReflowDataListResult::~ExportDataReflowDataListResult()
|
||||
{}
|
||||
|
||||
void ExportDataReflowDataListResult::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["OssHttpUrl"].isNull())
|
||||
data_.ossHttpUrl = dataNode["OssHttpUrl"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ExportDataReflowDataListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ExportDataReflowDataListResult::Data ExportDataReflowDataListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ExportDataReflowDataListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/GetDatasetRequest.cc
Normal file
36
viapi-regen/src/model/GetDatasetRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetDatasetRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetDatasetRequest;
|
||||
|
||||
GetDatasetRequest::GetDatasetRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetDataset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDatasetRequest::~GetDatasetRequest() {}
|
||||
|
||||
long GetDatasetRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetDatasetRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
78
viapi-regen/src/model/GetDatasetResult.cc
Normal file
78
viapi-regen/src/model/GetDatasetResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetDatasetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetDatasetResult::GetDatasetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDatasetResult::GetDatasetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDatasetResult::~GetDatasetResult()
|
||||
{}
|
||||
|
||||
void GetDatasetResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["OwnerType"].isNull())
|
||||
data_.ownerType = dataNode["OwnerType"].asString();
|
||||
if(!dataNode["OssUrl"].isNull())
|
||||
data_.ossUrl = dataNode["OssUrl"].asString();
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetDatasetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetDatasetResult::Data GetDatasetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetDatasetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetDiffCountLabelsetAndDatasetRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetDiffCountLabelsetAndDatasetRequest;
|
||||
|
||||
GetDiffCountLabelsetAndDatasetRequest::GetDiffCountLabelsetAndDatasetRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetDiffCountLabelsetAndDataset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDiffCountLabelsetAndDatasetRequest::~GetDiffCountLabelsetAndDatasetRequest() {}
|
||||
|
||||
long GetDiffCountLabelsetAndDatasetRequest::getLabelsetId() const {
|
||||
return labelsetId_;
|
||||
}
|
||||
|
||||
void GetDiffCountLabelsetAndDatasetRequest::setLabelsetId(long labelsetId) {
|
||||
labelsetId_ = labelsetId;
|
||||
setBodyParameter(std::string("LabelsetId"), std::to_string(labelsetId));
|
||||
}
|
||||
|
||||
@@ -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/viapi-regen/model/GetDiffCountLabelsetAndDatasetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetDiffCountLabelsetAndDatasetResult::GetDiffCountLabelsetAndDatasetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDiffCountLabelsetAndDatasetResult::GetDiffCountLabelsetAndDatasetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDiffCountLabelsetAndDatasetResult::~GetDiffCountLabelsetAndDatasetResult()
|
||||
{}
|
||||
|
||||
void GetDiffCountLabelsetAndDatasetResult::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["DiffCount"].isNull())
|
||||
data_.diffCount = std::stol(dataNode["DiffCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetDiffCountLabelsetAndDatasetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetDiffCountLabelsetAndDatasetResult::Data GetDiffCountLabelsetAndDatasetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetDiffCountLabelsetAndDatasetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/GetLabelDetailRequest.cc
Normal file
36
viapi-regen/src/model/GetLabelDetailRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetLabelDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetLabelDetailRequest;
|
||||
|
||||
GetLabelDetailRequest::GetLabelDetailRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetLabelDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetLabelDetailRequest::~GetLabelDetailRequest() {}
|
||||
|
||||
long GetLabelDetailRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetLabelDetailRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
66
viapi-regen/src/model/GetLabelDetailResult.cc
Normal file
66
viapi-regen/src/model/GetLabelDetailResult.cc
Normal 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/viapi-regen/model/GetLabelDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetLabelDetailResult::GetLabelDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetLabelDetailResult::GetLabelDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetLabelDetailResult::~GetLabelDetailResult()
|
||||
{}
|
||||
|
||||
void GetLabelDetailResult::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["LabelInfo"].isNull())
|
||||
data_.labelInfo = dataNode["LabelInfo"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetLabelDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetLabelDetailResult::Data GetLabelDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetLabelDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/GetLabelsetRequest.cc
Normal file
36
viapi-regen/src/model/GetLabelsetRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetLabelsetRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetLabelsetRequest;
|
||||
|
||||
GetLabelsetRequest::GetLabelsetRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetLabelset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetLabelsetRequest::~GetLabelsetRequest() {}
|
||||
|
||||
long GetLabelsetRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetLabelsetRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
84
viapi-regen/src/model/GetLabelsetResult.cc
Normal file
84
viapi-regen/src/model/GetLabelsetResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetLabelsetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetLabelsetResult::GetLabelsetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetLabelsetResult::GetLabelsetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetLabelsetResult::~GetLabelsetResult()
|
||||
{}
|
||||
|
||||
void GetLabelsetResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["LabelType"].isNull())
|
||||
data_.labelType = dataNode["LabelType"].asString();
|
||||
if(!dataNode["TagUserList"].isNull())
|
||||
data_.tagUserList = dataNode["TagUserList"].asString();
|
||||
if(!dataNode["Tags"].isNull())
|
||||
data_.tags = dataNode["Tags"].asString();
|
||||
if(!dataNode["SubTaskPackageSize"].isNull())
|
||||
data_.subTaskPackageSize = dataNode["SubTaskPackageSize"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetLabelsetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetLabelsetResult::Data GetLabelsetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetLabelsetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/GetServiceRequest.cc
Normal file
36
viapi-regen/src/model/GetServiceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetServiceRequest;
|
||||
|
||||
GetServiceRequest::GetServiceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetServiceRequest::~GetServiceRequest() {}
|
||||
|
||||
long GetServiceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
95
viapi-regen/src/model/GetServiceResult.cc
Normal file
95
viapi-regen/src/model/GetServiceResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetServiceResult::GetServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceResult::GetServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceResult::~GetServiceResult()
|
||||
{}
|
||||
|
||||
void GetServiceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["ServiceName"].isNull())
|
||||
data_.serviceName = dataNode["ServiceName"].asString();
|
||||
if(!dataNode["ServiceDescription"].isNull())
|
||||
data_.serviceDescription = dataNode["ServiceDescription"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["ServiceId"].isNull())
|
||||
data_.serviceId = dataNode["ServiceId"].asString();
|
||||
if(!dataNode["InputParams"].isNull())
|
||||
data_.inputParams = dataNode["InputParams"].asString();
|
||||
if(!dataNode["OutputParams"].isNull())
|
||||
data_.outputParams = dataNode["OutputParams"].asString();
|
||||
if(!dataNode["Errorcodes"].isNull())
|
||||
data_.errorcodes = dataNode["Errorcodes"].asString();
|
||||
if(!dataNode["InputExample"].isNull())
|
||||
data_.inputExample = dataNode["InputExample"].asString();
|
||||
if(!dataNode["OutputExample"].isNull())
|
||||
data_.outputExample = dataNode["OutputExample"].asString();
|
||||
auto dataReflowInfoNode = dataNode["DataReflowInfo"];
|
||||
if(!dataReflowInfoNode["DataReflowCount"].isNull())
|
||||
data_.dataReflowInfo.dataReflowCount = std::stol(dataReflowInfoNode["DataReflowCount"].asString());
|
||||
if(!dataReflowInfoNode["DataReflowRate"].isNull())
|
||||
data_.dataReflowInfo.dataReflowRate = std::stol(dataReflowInfoNode["DataReflowRate"].asString());
|
||||
if(!dataReflowInfoNode["DataReflowOssPath"].isNull())
|
||||
data_.dataReflowInfo.dataReflowOssPath = dataReflowInfoNode["DataReflowOssPath"].asString();
|
||||
if(!dataReflowInfoNode["EnableDataReflowFlag"].isNull())
|
||||
data_.dataReflowInfo.enableDataReflowFlag = dataReflowInfoNode["EnableDataReflowFlag"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetServiceResult::Data GetServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/GetTrainModelRequest.cc
Normal file
36
viapi-regen/src/model/GetTrainModelRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetTrainModelRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetTrainModelRequest;
|
||||
|
||||
GetTrainModelRequest::GetTrainModelRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetTrainModel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTrainModelRequest::~GetTrainModelRequest() {}
|
||||
|
||||
long GetTrainModelRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetTrainModelRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
66
viapi-regen/src/model/GetTrainModelResult.cc
Normal file
66
viapi-regen/src/model/GetTrainModelResult.cc
Normal 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/viapi-regen/model/GetTrainModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetTrainModelResult::GetTrainModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTrainModelResult::GetTrainModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTrainModelResult::~GetTrainModelResult()
|
||||
{}
|
||||
|
||||
void GetTrainModelResult::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["SimpleEvaluate"].isNull())
|
||||
data_.simpleEvaluate = std::stol(dataNode["SimpleEvaluate"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTrainModelResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTrainModelResult::Data GetTrainModelResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetTrainModelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/GetTrainTaskEstimatedTimeRequest.cc
Normal file
36
viapi-regen/src/model/GetTrainTaskEstimatedTimeRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetTrainTaskEstimatedTimeRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetTrainTaskEstimatedTimeRequest;
|
||||
|
||||
GetTrainTaskEstimatedTimeRequest::GetTrainTaskEstimatedTimeRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetTrainTaskEstimatedTime") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTrainTaskEstimatedTimeRequest::~GetTrainTaskEstimatedTimeRequest() {}
|
||||
|
||||
long GetTrainTaskEstimatedTimeRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetTrainTaskEstimatedTimeRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
66
viapi-regen/src/model/GetTrainTaskEstimatedTimeResult.cc
Normal file
66
viapi-regen/src/model/GetTrainTaskEstimatedTimeResult.cc
Normal 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/viapi-regen/model/GetTrainTaskEstimatedTimeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetTrainTaskEstimatedTimeResult::GetTrainTaskEstimatedTimeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTrainTaskEstimatedTimeResult::GetTrainTaskEstimatedTimeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTrainTaskEstimatedTimeResult::~GetTrainTaskEstimatedTimeResult()
|
||||
{}
|
||||
|
||||
void GetTrainTaskEstimatedTimeResult::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["EstimatedTime"].isNull())
|
||||
data_.estimatedTime = dataNode["EstimatedTime"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTrainTaskEstimatedTimeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTrainTaskEstimatedTimeResult::Data GetTrainTaskEstimatedTimeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetTrainTaskEstimatedTimeResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/GetTrainTaskRequest.cc
Normal file
36
viapi-regen/src/model/GetTrainTaskRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetTrainTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetTrainTaskRequest;
|
||||
|
||||
GetTrainTaskRequest::GetTrainTaskRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetTrainTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTrainTaskRequest::~GetTrainTaskRequest() {}
|
||||
|
||||
long GetTrainTaskRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetTrainTaskRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
92
viapi-regen/src/model/GetTrainTaskResult.cc
Normal file
92
viapi-regen/src/model/GetTrainTaskResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetTrainTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetTrainTaskResult::GetTrainTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTrainTaskResult::GetTrainTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTrainTaskResult::~GetTrainTaskResult()
|
||||
{}
|
||||
|
||||
void GetTrainTaskResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["TaskName"].isNull())
|
||||
data_.taskName = dataNode["TaskName"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["DatasetId"].isNull())
|
||||
data_.datasetId = std::stol(dataNode["DatasetId"].asString());
|
||||
if(!dataNode["DatasetName"].isNull())
|
||||
data_.datasetName = dataNode["DatasetName"].asString();
|
||||
if(!dataNode["LabelId"].isNull())
|
||||
data_.labelId = std::stol(dataNode["LabelId"].asString());
|
||||
if(!dataNode["LabelName"].isNull())
|
||||
data_.labelName = dataNode["LabelName"].asString();
|
||||
if(!dataNode["TrainMode"].isNull())
|
||||
data_.trainMode = dataNode["TrainMode"].asString();
|
||||
if(!dataNode["TrainStatus"].isNull())
|
||||
data_.trainStatus = dataNode["TrainStatus"].asString();
|
||||
if(!dataNode["ModelId"].isNull())
|
||||
data_.modelId = std::stol(dataNode["ModelId"].asString());
|
||||
if(!dataNode["ModelEffect"].isNull())
|
||||
data_.modelEffect = dataNode["ModelEffect"].asString();
|
||||
if(!dataNode["FailureReason"].isNull())
|
||||
data_.failureReason = dataNode["FailureReason"].asString();
|
||||
if(!dataNode["TrainUseTime"].isNull())
|
||||
data_.trainUseTime = std::stol(dataNode["TrainUseTime"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTrainTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTrainTaskResult::Data GetTrainTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetTrainTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
viapi-regen/src/model/GetUploadPolicyRequest.cc
Normal file
54
viapi-regen/src/model/GetUploadPolicyRequest.cc
Normal 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/viapi-regen/model/GetUploadPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetUploadPolicyRequest;
|
||||
|
||||
GetUploadPolicyRequest::GetUploadPolicyRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetUploadPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUploadPolicyRequest::~GetUploadPolicyRequest() {}
|
||||
|
||||
std::string GetUploadPolicyRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void GetUploadPolicyRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setBodyParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
long GetUploadPolicyRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetUploadPolicyRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string GetUploadPolicyRequest::getFileName() const {
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void GetUploadPolicyRequest::setFileName(const std::string &fileName) {
|
||||
fileName_ = fileName;
|
||||
setBodyParameter(std::string("FileName"), fileName);
|
||||
}
|
||||
|
||||
82
viapi-regen/src/model/GetUploadPolicyResult.cc
Normal file
82
viapi-regen/src/model/GetUploadPolicyResult.cc
Normal 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/viapi-regen/model/GetUploadPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetUploadPolicyResult::GetUploadPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUploadPolicyResult::GetUploadPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUploadPolicyResult::~GetUploadPolicyResult()
|
||||
{}
|
||||
|
||||
void GetUploadPolicyResult::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["AccessId"].isNull())
|
||||
data_.accessId = dataNode["AccessId"].asString();
|
||||
if(!dataNode["Policy"].isNull())
|
||||
data_.policy = dataNode["Policy"].asString();
|
||||
if(!dataNode["Signature"].isNull())
|
||||
data_.signature = dataNode["Signature"].asString();
|
||||
if(!dataNode["ObjectKey"].isNull())
|
||||
data_.objectKey = dataNode["ObjectKey"].asString();
|
||||
if(!dataNode["FileName"].isNull())
|
||||
data_.fileName = dataNode["FileName"].asString();
|
||||
if(!dataNode["BucketName"].isNull())
|
||||
data_.bucketName = dataNode["BucketName"].asString();
|
||||
if(!dataNode["Endpoint"].isNull())
|
||||
data_.endpoint = dataNode["Endpoint"].asString();
|
||||
if(!dataNode["OriginalFilename"].isNull())
|
||||
data_.originalFilename = dataNode["OriginalFilename"].asString();
|
||||
if(!dataNode["SignedHttpUrl"].isNull())
|
||||
data_.signedHttpUrl = dataNode["SignedHttpUrl"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetUploadPolicyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetUploadPolicyResult::Data GetUploadPolicyResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetUploadPolicyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/GetWorkspaceRequest.cc
Normal file
36
viapi-regen/src/model/GetWorkspaceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetWorkspaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::GetWorkspaceRequest;
|
||||
|
||||
GetWorkspaceRequest::GetWorkspaceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetWorkspace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetWorkspaceRequest::~GetWorkspaceRequest() {}
|
||||
|
||||
long GetWorkspaceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetWorkspaceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
74
viapi-regen/src/model/GetWorkspaceResult.cc
Normal file
74
viapi-regen/src/model/GetWorkspaceResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/GetWorkspaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
GetWorkspaceResult::GetWorkspaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetWorkspaceResult::GetWorkspaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetWorkspaceResult::~GetWorkspaceResult()
|
||||
{}
|
||||
|
||||
void GetWorkspaceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["Type"].isNull())
|
||||
data_.type = dataNode["Type"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetWorkspaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetWorkspaceResult::Data GetWorkspaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetWorkspaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
90
viapi-regen/src/model/ListDataReflowDatasRequest.cc
Normal file
90
viapi-regen/src/model/ListDataReflowDatasRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListDataReflowDatasRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::ListDataReflowDatasRequest;
|
||||
|
||||
ListDataReflowDatasRequest::ListDataReflowDatasRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "ListDataReflowDatas") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDataReflowDatasRequest::~ListDataReflowDatasRequest() {}
|
||||
|
||||
long ListDataReflowDatasRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListDataReflowDatasRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string ListDataReflowDatasRequest::getImageName() const {
|
||||
return imageName_;
|
||||
}
|
||||
|
||||
void ListDataReflowDatasRequest::setImageName(const std::string &imageName) {
|
||||
imageName_ = imageName;
|
||||
setBodyParameter(std::string("ImageName"), imageName);
|
||||
}
|
||||
|
||||
long ListDataReflowDatasRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDataReflowDatasRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListDataReflowDatasRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListDataReflowDatasRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
long ListDataReflowDatasRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListDataReflowDatasRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long ListDataReflowDatasRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void ListDataReflowDatasRequest::setServiceId(long serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setBodyParameter(std::string("ServiceId"), std::to_string(serviceId));
|
||||
}
|
||||
|
||||
std::string ListDataReflowDatasRequest::getCategory() const {
|
||||
return category_;
|
||||
}
|
||||
|
||||
void ListDataReflowDatasRequest::setCategory(const std::string &category) {
|
||||
category_ = category;
|
||||
setBodyParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
75
viapi-regen/src/model/ListDataReflowDatasResult.cc
Normal file
75
viapi-regen/src/model/ListDataReflowDatasResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListDataReflowDatasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
ListDataReflowDatasResult::ListDataReflowDatasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDataReflowDatasResult::ListDataReflowDatasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDataReflowDatasResult::~ListDataReflowDatasResult()
|
||||
{}
|
||||
|
||||
void ListDataReflowDatasResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stol(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stol(dataNode["TotalPage"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
auto allElements = dataNode["Elements"]["element"];
|
||||
for (auto value : allElements)
|
||||
data_.elements.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListDataReflowDatasResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListDataReflowDatasResult::Data ListDataReflowDatasResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDataReflowDatasResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
viapi-regen/src/model/ListDatasetDatasRequest.cc
Normal file
63
viapi-regen/src/model/ListDatasetDatasRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListDatasetDatasRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::ListDatasetDatasRequest;
|
||||
|
||||
ListDatasetDatasRequest::ListDatasetDatasRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "ListDatasetDatas") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDatasetDatasRequest::~ListDatasetDatasRequest() {}
|
||||
|
||||
std::string ListDatasetDatasRequest::getIdentity() const {
|
||||
return identity_;
|
||||
}
|
||||
|
||||
void ListDatasetDatasRequest::setIdentity(const std::string &identity) {
|
||||
identity_ = identity;
|
||||
setBodyParameter(std::string("Identity"), identity);
|
||||
}
|
||||
|
||||
long ListDatasetDatasRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDatasetDatasRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListDatasetDatasRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListDatasetDatasRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long ListDatasetDatasRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void ListDatasetDatasRequest::setDatasetId(long datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setBodyParameter(std::string("DatasetId"), std::to_string(datasetId));
|
||||
}
|
||||
|
||||
75
viapi-regen/src/model/ListDatasetDatasResult.cc
Normal file
75
viapi-regen/src/model/ListDatasetDatasResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListDatasetDatasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
ListDatasetDatasResult::ListDatasetDatasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDatasetDatasResult::ListDatasetDatasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDatasetDatasResult::~ListDatasetDatasResult()
|
||||
{}
|
||||
|
||||
void ListDatasetDatasResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stol(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stol(dataNode["TotalPage"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
auto allElements = dataNode["Elements"]["element"];
|
||||
for (auto value : allElements)
|
||||
data_.elements.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListDatasetDatasResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListDatasetDatasResult::Data ListDatasetDatasResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDatasetDatasResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
viapi-regen/src/model/ListDatasetsRequest.cc
Normal file
54
viapi-regen/src/model/ListDatasetsRequest.cc
Normal 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/viapi-regen/model/ListDatasetsRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::ListDatasetsRequest;
|
||||
|
||||
ListDatasetsRequest::ListDatasetsRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "ListDatasets") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDatasetsRequest::~ListDatasetsRequest() {}
|
||||
|
||||
long ListDatasetsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDatasetsRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListDatasetsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListDatasetsRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long ListDatasetsRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListDatasetsRequest::setWorkspaceId(long workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
75
viapi-regen/src/model/ListDatasetsResult.cc
Normal file
75
viapi-regen/src/model/ListDatasetsResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListDatasetsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
ListDatasetsResult::ListDatasetsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDatasetsResult::ListDatasetsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDatasetsResult::~ListDatasetsResult()
|
||||
{}
|
||||
|
||||
void ListDatasetsResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stol(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stol(dataNode["TotalPage"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
auto allElements = dataNode["Elements"]["element"];
|
||||
for (auto value : allElements)
|
||||
data_.elements.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListDatasetsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListDatasetsResult::Data ListDatasetsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDatasetsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
81
viapi-regen/src/model/ListLabelsetDatasRequest.cc
Normal file
81
viapi-regen/src/model/ListLabelsetDatasRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListLabelsetDatasRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::ListLabelsetDatasRequest;
|
||||
|
||||
ListLabelsetDatasRequest::ListLabelsetDatasRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "ListLabelsetDatas") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListLabelsetDatasRequest::~ListLabelsetDatasRequest() {}
|
||||
|
||||
long ListLabelsetDatasRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListLabelsetDatasRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListLabelsetDatasRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void ListLabelsetDatasRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setBodyParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
long ListLabelsetDatasRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListLabelsetDatasRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long ListLabelsetDatasRequest::getLabelId() const {
|
||||
return labelId_;
|
||||
}
|
||||
|
||||
void ListLabelsetDatasRequest::setLabelId(long labelId) {
|
||||
labelId_ = labelId;
|
||||
setBodyParameter(std::string("LabelId"), std::to_string(labelId));
|
||||
}
|
||||
|
||||
std::string ListLabelsetDatasRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListLabelsetDatasRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListLabelsetDatasRequest::getOperation() const {
|
||||
return operation_;
|
||||
}
|
||||
|
||||
void ListLabelsetDatasRequest::setOperation(const std::string &operation) {
|
||||
operation_ = operation;
|
||||
setBodyParameter(std::string("Operation"), operation);
|
||||
}
|
||||
|
||||
75
viapi-regen/src/model/ListLabelsetDatasResult.cc
Normal file
75
viapi-regen/src/model/ListLabelsetDatasResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListLabelsetDatasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
ListLabelsetDatasResult::ListLabelsetDatasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListLabelsetDatasResult::ListLabelsetDatasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListLabelsetDatasResult::~ListLabelsetDatasResult()
|
||||
{}
|
||||
|
||||
void ListLabelsetDatasResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stol(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stol(dataNode["TotalPage"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
auto allElements = dataNode["Elements"]["element"];
|
||||
for (auto value : allElements)
|
||||
data_.elements.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListLabelsetDatasResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListLabelsetDatasResult::Data ListLabelsetDatasResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListLabelsetDatasResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
viapi-regen/src/model/ListLabelsetsRequest.cc
Normal file
63
viapi-regen/src/model/ListLabelsetsRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListLabelsetsRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::ListLabelsetsRequest;
|
||||
|
||||
ListLabelsetsRequest::ListLabelsetsRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "ListLabelsets") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListLabelsetsRequest::~ListLabelsetsRequest() {}
|
||||
|
||||
long ListLabelsetsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListLabelsetsRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListLabelsetsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListLabelsetsRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long ListLabelsetsRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void ListLabelsetsRequest::setDatasetId(long datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setBodyParameter(std::string("DatasetId"), std::to_string(datasetId));
|
||||
}
|
||||
|
||||
std::string ListLabelsetsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListLabelsetsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
75
viapi-regen/src/model/ListLabelsetsResult.cc
Normal file
75
viapi-regen/src/model/ListLabelsetsResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListLabelsetsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
ListLabelsetsResult::ListLabelsetsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListLabelsetsResult::ListLabelsetsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListLabelsetsResult::~ListLabelsetsResult()
|
||||
{}
|
||||
|
||||
void ListLabelsetsResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stol(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stol(dataNode["TotalPage"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
auto allElements = dataNode["Elements"]["element"];
|
||||
for (auto value : allElements)
|
||||
data_.elements.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListLabelsetsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListLabelsetsResult::Data ListLabelsetsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListLabelsetsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
72
viapi-regen/src/model/ListServicesRequest.cc
Normal file
72
viapi-regen/src/model/ListServicesRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::ListServicesRequest;
|
||||
|
||||
ListServicesRequest::ListServicesRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "ListServices") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListServicesRequest::~ListServicesRequest() {}
|
||||
|
||||
long ListServicesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListServicesRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long ListServicesRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long ListServicesRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setName(long name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), std::to_string(name));
|
||||
}
|
||||
|
||||
long ListServicesRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setWorkspaceId(long workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
75
viapi-regen/src/model/ListServicesResult.cc
Normal file
75
viapi-regen/src/model/ListServicesResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListServicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
ListServicesResult::ListServicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListServicesResult::ListServicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListServicesResult::~ListServicesResult()
|
||||
{}
|
||||
|
||||
void ListServicesResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stol(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stol(dataNode["TotalPage"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
auto allElements = dataNode["Elements"]["element"];
|
||||
for (auto value : allElements)
|
||||
data_.elements.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListServicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListServicesResult::Data ListServicesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListServicesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
viapi-regen/src/model/ListTrainTasksRequest.cc
Normal file
63
viapi-regen/src/model/ListTrainTasksRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListTrainTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::ListTrainTasksRequest;
|
||||
|
||||
ListTrainTasksRequest::ListTrainTasksRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "ListTrainTasks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTrainTasksRequest::~ListTrainTasksRequest() {}
|
||||
|
||||
long ListTrainTasksRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListTrainTasksRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListTrainTasksRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListTrainTasksRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListTrainTasksRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListTrainTasksRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
long ListTrainTasksRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListTrainTasksRequest::setWorkspaceId(long workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
75
viapi-regen/src/model/ListTrainTasksResult.cc
Normal file
75
viapi-regen/src/model/ListTrainTasksResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListTrainTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
ListTrainTasksResult::ListTrainTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTrainTasksResult::ListTrainTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTrainTasksResult::~ListTrainTasksResult()
|
||||
{}
|
||||
|
||||
void ListTrainTasksResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stol(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stol(dataNode["TotalPage"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
auto allElements = dataNode["Elements"]["element"];
|
||||
for (auto value : allElements)
|
||||
data_.elements.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTrainTasksResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListTrainTasksResult::Data ListTrainTasksResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListTrainTasksResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
viapi-regen/src/model/ListWorkspacesRequest.cc
Normal file
54
viapi-regen/src/model/ListWorkspacesRequest.cc
Normal 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/viapi-regen/model/ListWorkspacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::ListWorkspacesRequest;
|
||||
|
||||
ListWorkspacesRequest::ListWorkspacesRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "ListWorkspaces") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListWorkspacesRequest::~ListWorkspacesRequest() {}
|
||||
|
||||
long ListWorkspacesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListWorkspacesRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListWorkspacesRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListWorkspacesRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListWorkspacesRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListWorkspacesRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
88
viapi-regen/src/model/ListWorkspacesResult.cc
Normal file
88
viapi-regen/src/model/ListWorkspacesResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/ListWorkspacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
ListWorkspacesResult::ListWorkspacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListWorkspacesResult::ListWorkspacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListWorkspacesResult::~ListWorkspacesResult()
|
||||
{}
|
||||
|
||||
void ListWorkspacesResult::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["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stol(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stol(dataNode["TotalPage"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
auto allElementsNode = dataNode["Elements"]["element"];
|
||||
for (auto dataNodeElementselement : allElementsNode)
|
||||
{
|
||||
Data::Element elementObject;
|
||||
if(!dataNodeElementselement["Id"].isNull())
|
||||
elementObject.id = std::stol(dataNodeElementselement["Id"].asString());
|
||||
if(!dataNodeElementselement["GmtCreate"].isNull())
|
||||
elementObject.gmtCreate = std::stol(dataNodeElementselement["GmtCreate"].asString());
|
||||
if(!dataNodeElementselement["Name"].isNull())
|
||||
elementObject.name = dataNodeElementselement["Name"].asString();
|
||||
if(!dataNodeElementselement["Description"].isNull())
|
||||
elementObject.description = dataNodeElementselement["Description"].asString();
|
||||
if(!dataNodeElementselement["Type"].isNull())
|
||||
elementObject.type = dataNodeElementselement["Type"].asString();
|
||||
data_.elements.push_back(elementObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListWorkspacesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListWorkspacesResult::Data ListWorkspacesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListWorkspacesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
viapi-regen/src/model/SetDatasetUserOssPathRequest.cc
Normal file
45
viapi-regen/src/model/SetDatasetUserOssPathRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/SetDatasetUserOssPathRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::SetDatasetUserOssPathRequest;
|
||||
|
||||
SetDatasetUserOssPathRequest::SetDatasetUserOssPathRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "SetDatasetUserOssPath") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetDatasetUserOssPathRequest::~SetDatasetUserOssPathRequest() {}
|
||||
|
||||
std::string SetDatasetUserOssPathRequest::getUserOssUrl() const {
|
||||
return userOssUrl_;
|
||||
}
|
||||
|
||||
void SetDatasetUserOssPathRequest::setUserOssUrl(const std::string &userOssUrl) {
|
||||
userOssUrl_ = userOssUrl;
|
||||
setBodyParameter(std::string("UserOssUrl"), userOssUrl);
|
||||
}
|
||||
|
||||
long SetDatasetUserOssPathRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void SetDatasetUserOssPathRequest::setDatasetId(long datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setBodyParameter(std::string("DatasetId"), std::to_string(datasetId));
|
||||
}
|
||||
|
||||
68
viapi-regen/src/model/SetDatasetUserOssPathResult.cc
Normal file
68
viapi-regen/src/model/SetDatasetUserOssPathResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/SetDatasetUserOssPathResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
SetDatasetUserOssPathResult::SetDatasetUserOssPathResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetDatasetUserOssPathResult::SetDatasetUserOssPathResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetDatasetUserOssPathResult::~SetDatasetUserOssPathResult()
|
||||
{}
|
||||
|
||||
void SetDatasetUserOssPathResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["OssUrl"].isNull())
|
||||
data_.ossUrl = dataNode["OssUrl"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SetDatasetUserOssPathResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SetDatasetUserOssPathResult::Data SetDatasetUserOssPathResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SetDatasetUserOssPathResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/StartServiceRequest.cc
Normal file
36
viapi-regen/src/model/StartServiceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/StartServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::StartServiceRequest;
|
||||
|
||||
StartServiceRequest::StartServiceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "StartService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartServiceRequest::~StartServiceRequest() {}
|
||||
|
||||
long StartServiceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void StartServiceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
74
viapi-regen/src/model/StartServiceResult.cc
Normal file
74
viapi-regen/src/model/StartServiceResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/StartServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
StartServiceResult::StartServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartServiceResult::StartServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartServiceResult::~StartServiceResult()
|
||||
{}
|
||||
|
||||
void StartServiceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["ServiceName"].isNull())
|
||||
data_.serviceName = dataNode["ServiceName"].asString();
|
||||
if(!dataNode["ServiceDescription"].isNull())
|
||||
data_.serviceDescription = dataNode["ServiceDescription"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
StartServiceResult::Data StartServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StartServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
viapi-regen/src/model/StartTrainTaskRequest.cc
Normal file
54
viapi-regen/src/model/StartTrainTaskRequest.cc
Normal 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/viapi-regen/model/StartTrainTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::StartTrainTaskRequest;
|
||||
|
||||
StartTrainTaskRequest::StartTrainTaskRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "StartTrainTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartTrainTaskRequest::~StartTrainTaskRequest() {}
|
||||
|
||||
long StartTrainTaskRequest::getRelyOnTaskId() const {
|
||||
return relyOnTaskId_;
|
||||
}
|
||||
|
||||
void StartTrainTaskRequest::setRelyOnTaskId(long relyOnTaskId) {
|
||||
relyOnTaskId_ = relyOnTaskId;
|
||||
setBodyParameter(std::string("RelyOnTaskId"), std::to_string(relyOnTaskId));
|
||||
}
|
||||
|
||||
bool StartTrainTaskRequest::getForceStartFlag() const {
|
||||
return forceStartFlag_;
|
||||
}
|
||||
|
||||
void StartTrainTaskRequest::setForceStartFlag(bool forceStartFlag) {
|
||||
forceStartFlag_ = forceStartFlag;
|
||||
setBodyParameter(std::string("ForceStartFlag"), forceStartFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
long StartTrainTaskRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void StartTrainTaskRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
90
viapi-regen/src/model/StartTrainTaskResult.cc
Normal file
90
viapi-regen/src/model/StartTrainTaskResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/StartTrainTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
StartTrainTaskResult::StartTrainTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartTrainTaskResult::StartTrainTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartTrainTaskResult::~StartTrainTaskResult()
|
||||
{}
|
||||
|
||||
void StartTrainTaskResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["CheckResult"].isNull())
|
||||
data_.checkResult = dataNode["CheckResult"].asString();
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["TaskName"].isNull())
|
||||
data_.taskName = dataNode["TaskName"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["DatasetId"].isNull())
|
||||
data_.datasetId = std::stol(dataNode["DatasetId"].asString());
|
||||
if(!dataNode["DatasetName"].isNull())
|
||||
data_.datasetName = dataNode["DatasetName"].asString();
|
||||
if(!dataNode["LabelId"].isNull())
|
||||
data_.labelId = std::stol(dataNode["LabelId"].asString());
|
||||
if(!dataNode["LabelName"].isNull())
|
||||
data_.labelName = dataNode["LabelName"].asString();
|
||||
if(!dataNode["TrainMode"].isNull())
|
||||
data_.trainMode = dataNode["TrainMode"].asString();
|
||||
if(!dataNode["TrainStatus"].isNull())
|
||||
data_.trainStatus = dataNode["TrainStatus"].asString();
|
||||
if(!dataNode["ModelId"].isNull())
|
||||
data_.modelId = std::stol(dataNode["ModelId"].asString());
|
||||
if(!dataNode["ModelEffect"].isNull())
|
||||
data_.modelEffect = dataNode["ModelEffect"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartTrainTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
StartTrainTaskResult::Data StartTrainTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StartTrainTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/StopServiceRequest.cc
Normal file
36
viapi-regen/src/model/StopServiceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/StopServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::StopServiceRequest;
|
||||
|
||||
StopServiceRequest::StopServiceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "StopService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopServiceRequest::~StopServiceRequest() {}
|
||||
|
||||
long StopServiceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void StopServiceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
74
viapi-regen/src/model/StopServiceResult.cc
Normal file
74
viapi-regen/src/model/StopServiceResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/StopServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
StopServiceResult::StopServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopServiceResult::StopServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopServiceResult::~StopServiceResult()
|
||||
{}
|
||||
|
||||
void StopServiceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["ServiceName"].isNull())
|
||||
data_.serviceName = dataNode["ServiceName"].asString();
|
||||
if(!dataNode["ServiceDescription"].isNull())
|
||||
data_.serviceDescription = dataNode["ServiceDescription"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
StopServiceResult::Data StopServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StopServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
viapi-regen/src/model/StopTrainTaskRequest.cc
Normal file
36
viapi-regen/src/model/StopTrainTaskRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/StopTrainTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::StopTrainTaskRequest;
|
||||
|
||||
StopTrainTaskRequest::StopTrainTaskRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "StopTrainTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopTrainTaskRequest::~StopTrainTaskRequest() {}
|
||||
|
||||
long StopTrainTaskRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void StopTrainTaskRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
88
viapi-regen/src/model/StopTrainTaskResult.cc
Normal file
88
viapi-regen/src/model/StopTrainTaskResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/StopTrainTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
StopTrainTaskResult::StopTrainTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopTrainTaskResult::StopTrainTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopTrainTaskResult::~StopTrainTaskResult()
|
||||
{}
|
||||
|
||||
void StopTrainTaskResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["TaskName"].isNull())
|
||||
data_.taskName = dataNode["TaskName"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["DatasetId"].isNull())
|
||||
data_.datasetId = std::stol(dataNode["DatasetId"].asString());
|
||||
if(!dataNode["DatasetName"].isNull())
|
||||
data_.datasetName = dataNode["DatasetName"].asString();
|
||||
if(!dataNode["LabelId"].isNull())
|
||||
data_.labelId = std::stol(dataNode["LabelId"].asString());
|
||||
if(!dataNode["LabelName"].isNull())
|
||||
data_.labelName = dataNode["LabelName"].asString();
|
||||
if(!dataNode["TrainMode"].isNull())
|
||||
data_.trainMode = dataNode["TrainMode"].asString();
|
||||
if(!dataNode["TrainStatus"].isNull())
|
||||
data_.trainStatus = dataNode["TrainStatus"].asString();
|
||||
if(!dataNode["ModelId"].isNull())
|
||||
data_.modelId = std::stol(dataNode["ModelId"].asString());
|
||||
if(!dataNode["ModelEffect"].isNull())
|
||||
data_.modelEffect = dataNode["ModelEffect"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopTrainTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
StopTrainTaskResult::Data StopTrainTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StopTrainTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
viapi-regen/src/model/UpdateDatasetRequest.cc
Normal file
54
viapi-regen/src/model/UpdateDatasetRequest.cc
Normal 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/viapi-regen/model/UpdateDatasetRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::UpdateDatasetRequest;
|
||||
|
||||
UpdateDatasetRequest::UpdateDatasetRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateDataset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateDatasetRequest::~UpdateDatasetRequest() {}
|
||||
|
||||
std::string UpdateDatasetRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateDatasetRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
long UpdateDatasetRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateDatasetRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string UpdateDatasetRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateDatasetRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
72
viapi-regen/src/model/UpdateDatasetResult.cc
Normal file
72
viapi-regen/src/model/UpdateDatasetResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/UpdateDatasetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
UpdateDatasetResult::UpdateDatasetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateDatasetResult::UpdateDatasetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateDatasetResult::~UpdateDatasetResult()
|
||||
{}
|
||||
|
||||
void UpdateDatasetResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateDatasetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
UpdateDatasetResult::Data UpdateDatasetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateDatasetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
81
viapi-regen/src/model/UpdateLabelsetRequest.cc
Normal file
81
viapi-regen/src/model/UpdateLabelsetRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/UpdateLabelsetRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::UpdateLabelsetRequest;
|
||||
|
||||
UpdateLabelsetRequest::UpdateLabelsetRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateLabelset") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateLabelsetRequest::~UpdateLabelsetRequest() {}
|
||||
|
||||
std::string UpdateLabelsetRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateLabelsetRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
long UpdateLabelsetRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateLabelsetRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string UpdateLabelsetRequest::getTagUserList() const {
|
||||
return tagUserList_;
|
||||
}
|
||||
|
||||
void UpdateLabelsetRequest::setTagUserList(const std::string &tagUserList) {
|
||||
tagUserList_ = tagUserList;
|
||||
setBodyParameter(std::string("TagUserList"), tagUserList);
|
||||
}
|
||||
|
||||
std::string UpdateLabelsetRequest::getUserOssUrl() const {
|
||||
return userOssUrl_;
|
||||
}
|
||||
|
||||
void UpdateLabelsetRequest::setUserOssUrl(const std::string &userOssUrl) {
|
||||
userOssUrl_ = userOssUrl;
|
||||
setBodyParameter(std::string("UserOssUrl"), userOssUrl);
|
||||
}
|
||||
|
||||
std::string UpdateLabelsetRequest::getObjectKey() const {
|
||||
return objectKey_;
|
||||
}
|
||||
|
||||
void UpdateLabelsetRequest::setObjectKey(const std::string &objectKey) {
|
||||
objectKey_ = objectKey;
|
||||
setBodyParameter(std::string("ObjectKey"), objectKey);
|
||||
}
|
||||
|
||||
std::string UpdateLabelsetRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateLabelsetRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
72
viapi-regen/src/model/UpdateLabelsetResult.cc
Normal file
72
viapi-regen/src/model/UpdateLabelsetResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/UpdateLabelsetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
UpdateLabelsetResult::UpdateLabelsetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateLabelsetResult::UpdateLabelsetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateLabelsetResult::~UpdateLabelsetResult()
|
||||
{}
|
||||
|
||||
void UpdateLabelsetResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = std::stol(dataNode["Name"].asString());
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = std::stol(dataNode["Description"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateLabelsetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
UpdateLabelsetResult::Data UpdateLabelsetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateLabelsetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
72
viapi-regen/src/model/UpdateServiceRequest.cc
Normal file
72
viapi-regen/src/model/UpdateServiceRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/UpdateServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::UpdateServiceRequest;
|
||||
|
||||
UpdateServiceRequest::UpdateServiceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateServiceRequest::~UpdateServiceRequest() {}
|
||||
|
||||
std::string UpdateServiceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
long UpdateServiceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getAuthorizationType() const {
|
||||
return authorizationType_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setAuthorizationType(const std::string &authorizationType) {
|
||||
authorizationType_ = authorizationType;
|
||||
setBodyParameter(std::string("AuthorizationType"), authorizationType);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getAuthorizedAccount() const {
|
||||
return authorizedAccount_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setAuthorizedAccount(const std::string &authorizedAccount) {
|
||||
authorizedAccount_ = authorizedAccount;
|
||||
setBodyParameter(std::string("AuthorizedAccount"), authorizedAccount);
|
||||
}
|
||||
|
||||
76
viapi-regen/src/model/UpdateServiceResult.cc
Normal file
76
viapi-regen/src/model/UpdateServiceResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/UpdateServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
UpdateServiceResult::UpdateServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateServiceResult::UpdateServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateServiceResult::~UpdateServiceResult()
|
||||
{}
|
||||
|
||||
void UpdateServiceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["ServiceName"].isNull())
|
||||
data_.serviceName = dataNode["ServiceName"].asString();
|
||||
if(!dataNode["ServiceDescription"].isNull())
|
||||
data_.serviceDescription = dataNode["ServiceDescription"].asString();
|
||||
if(!dataNode["AuthorizationType"].isNull())
|
||||
data_.authorizationType = dataNode["AuthorizationType"].asString();
|
||||
if(!dataNode["AuthorizedAccount"].isNull())
|
||||
data_.authorizedAccount = dataNode["AuthorizedAccount"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
UpdateServiceResult::Data UpdateServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
108
viapi-regen/src/model/UpdateTrainTaskRequest.cc
Normal file
108
viapi-regen/src/model/UpdateTrainTaskRequest.cc
Normal 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/viapi-regen/model/UpdateTrainTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::UpdateTrainTaskRequest;
|
||||
|
||||
UpdateTrainTaskRequest::UpdateTrainTaskRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateTrainTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateTrainTaskRequest::~UpdateTrainTaskRequest() {}
|
||||
|
||||
std::string UpdateTrainTaskRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateTrainTaskRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateTrainTaskRequest::getTrainMode() const {
|
||||
return trainMode_;
|
||||
}
|
||||
|
||||
void UpdateTrainTaskRequest::setTrainMode(const std::string &trainMode) {
|
||||
trainMode_ = trainMode;
|
||||
setBodyParameter(std::string("TrainMode"), trainMode);
|
||||
}
|
||||
|
||||
long UpdateTrainTaskRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateTrainTaskRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long UpdateTrainTaskRequest::getPreTrainTaskId() const {
|
||||
return preTrainTaskId_;
|
||||
}
|
||||
|
||||
void UpdateTrainTaskRequest::setPreTrainTaskId(long preTrainTaskId) {
|
||||
preTrainTaskId_ = preTrainTaskId;
|
||||
setBodyParameter(std::string("PreTrainTaskId"), std::to_string(preTrainTaskId));
|
||||
}
|
||||
|
||||
bool UpdateTrainTaskRequest::getPreTrainTaskFlag() const {
|
||||
return preTrainTaskFlag_;
|
||||
}
|
||||
|
||||
void UpdateTrainTaskRequest::setPreTrainTaskFlag(bool preTrainTaskFlag) {
|
||||
preTrainTaskFlag_ = preTrainTaskFlag;
|
||||
setBodyParameter(std::string("PreTrainTaskFlag"), preTrainTaskFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateTrainTaskRequest::getAdvancedParameters() const {
|
||||
return advancedParameters_;
|
||||
}
|
||||
|
||||
void UpdateTrainTaskRequest::setAdvancedParameters(const std::string &advancedParameters) {
|
||||
advancedParameters_ = advancedParameters;
|
||||
setBodyParameter(std::string("AdvancedParameters"), advancedParameters);
|
||||
}
|
||||
|
||||
long UpdateTrainTaskRequest::getLabelId() const {
|
||||
return labelId_;
|
||||
}
|
||||
|
||||
void UpdateTrainTaskRequest::setLabelId(long labelId) {
|
||||
labelId_ = labelId;
|
||||
setBodyParameter(std::string("LabelId"), std::to_string(labelId));
|
||||
}
|
||||
|
||||
std::string UpdateTrainTaskRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateTrainTaskRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
long UpdateTrainTaskRequest::getDatasetId() const {
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void UpdateTrainTaskRequest::setDatasetId(long datasetId) {
|
||||
datasetId_ = datasetId;
|
||||
setBodyParameter(std::string("DatasetId"), std::to_string(datasetId));
|
||||
}
|
||||
|
||||
90
viapi-regen/src/model/UpdateTrainTaskResult.cc
Normal file
90
viapi-regen/src/model/UpdateTrainTaskResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/viapi-regen/model/UpdateTrainTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Viapi_regen;
|
||||
using namespace AlibabaCloud::Viapi_regen::Model;
|
||||
|
||||
UpdateTrainTaskResult::UpdateTrainTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateTrainTaskResult::UpdateTrainTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateTrainTaskResult::~UpdateTrainTaskResult()
|
||||
{}
|
||||
|
||||
void UpdateTrainTaskResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["TaskName"].isNull())
|
||||
data_.taskName = dataNode["TaskName"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["DatasetId"].isNull())
|
||||
data_.datasetId = std::stol(dataNode["DatasetId"].asString());
|
||||
if(!dataNode["DatasetName"].isNull())
|
||||
data_.datasetName = dataNode["DatasetName"].asString();
|
||||
if(!dataNode["LabelId"].isNull())
|
||||
data_.labelId = std::stol(dataNode["LabelId"].asString());
|
||||
if(!dataNode["LabelName"].isNull())
|
||||
data_.labelName = dataNode["LabelName"].asString();
|
||||
if(!dataNode["TrainMode"].isNull())
|
||||
data_.trainMode = dataNode["TrainMode"].asString();
|
||||
if(!dataNode["AdvancedParameters"].isNull())
|
||||
data_.advancedParameters = dataNode["AdvancedParameters"].asString();
|
||||
if(!dataNode["TrainStatus"].isNull())
|
||||
data_.trainStatus = dataNode["TrainStatus"].asString();
|
||||
if(!dataNode["ModelId"].isNull())
|
||||
data_.modelId = std::stol(dataNode["ModelId"].asString());
|
||||
if(!dataNode["ModelEffect"].isNull())
|
||||
data_.modelEffect = dataNode["ModelEffect"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateTrainTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
UpdateTrainTaskResult::Data UpdateTrainTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateTrainTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
viapi-regen/src/model/UpdateWorkspaceRequest.cc
Normal file
54
viapi-regen/src/model/UpdateWorkspaceRequest.cc
Normal 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/viapi-regen/model/UpdateWorkspaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Viapi_regen::Model::UpdateWorkspaceRequest;
|
||||
|
||||
UpdateWorkspaceRequest::UpdateWorkspaceRequest()
|
||||
: RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateWorkspace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateWorkspaceRequest::~UpdateWorkspaceRequest() {}
|
||||
|
||||
std::string UpdateWorkspaceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateWorkspaceRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
long UpdateWorkspaceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateWorkspaceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string UpdateWorkspaceRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateWorkspaceRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user