CreateMigrationJob SDK.
This commit is contained in:
1133
apds/src/ApdsClient.cc
Normal file
1133
apds/src/ApdsClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
46
apds/src/model/CreateFileJobRequest.cc
Normal file
46
apds/src/model/CreateFileJobRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/CreateFileJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::CreateFileJobRequest;
|
||||
|
||||
CreateFileJobRequest::CreateFileJobRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/file-job/create"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFileJobRequest::~CreateFileJobRequest() {}
|
||||
|
||||
std::string CreateFileJobRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateFileJobRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
string CreateFileJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateFileJobRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/CreateFileJobResult.cc
Normal file
72
apds/src/model/CreateFileJobResult.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/apds/model/CreateFileJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
CreateFileJobResult::CreateFileJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFileJobResult::CreateFileJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFileJobResult::~CreateFileJobResult()
|
||||
{}
|
||||
|
||||
void CreateFileJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFileJobResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny CreateFileJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateFileJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateFileJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/CreateMigrationGroupRequest.cc
Normal file
46
apds/src/model/CreateMigrationGroupRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/CreateMigrationGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::CreateMigrationGroupRequest;
|
||||
|
||||
CreateMigrationGroupRequest::CreateMigrationGroupRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-group/save-migration-group"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMigrationGroupRequest::~CreateMigrationGroupRequest() {}
|
||||
|
||||
std::string CreateMigrationGroupRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateMigrationGroupRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
string CreateMigrationGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateMigrationGroupRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/CreateMigrationGroupResult.cc
Normal file
72
apds/src/model/CreateMigrationGroupResult.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/apds/model/CreateMigrationGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
CreateMigrationGroupResult::CreateMigrationGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMigrationGroupResult::CreateMigrationGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMigrationGroupResult::~CreateMigrationGroupResult()
|
||||
{}
|
||||
|
||||
void CreateMigrationGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Error"].isNull())
|
||||
error_ = value["Error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMigrationGroupResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny CreateMigrationGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateMigrationGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateMigrationGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/CreateMigrationJobRequest.cc
Normal file
37
apds/src/model/CreateMigrationJobRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/CreateMigrationJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::CreateMigrationJobRequest;
|
||||
|
||||
CreateMigrationJobRequest::CreateMigrationJobRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-job/create-migration-jobs"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMigrationJobRequest::~CreateMigrationJobRequest() {}
|
||||
|
||||
std::string CreateMigrationJobRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateMigrationJobRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
72
apds/src/model/CreateMigrationJobResult.cc
Normal file
72
apds/src/model/CreateMigrationJobResult.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/apds/model/CreateMigrationJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
CreateMigrationJobResult::CreateMigrationJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMigrationJobResult::CreateMigrationJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMigrationJobResult::~CreateMigrationJobResult()
|
||||
{}
|
||||
|
||||
void CreateMigrationJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Error"].isNull())
|
||||
error_ = value["Error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMigrationJobResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny CreateMigrationJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateMigrationJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateMigrationJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/CreateSurveyJobOfflineRequest.cc
Normal file
46
apds/src/model/CreateSurveyJobOfflineRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/CreateSurveyJobOfflineRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::CreateSurveyJobOfflineRequest;
|
||||
|
||||
CreateSurveyJobOfflineRequest::CreateSurveyJobOfflineRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/winback/add-import-survey-job"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSurveyJobOfflineRequest::~CreateSurveyJobOfflineRequest() {}
|
||||
|
||||
std::string CreateSurveyJobOfflineRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateSurveyJobOfflineRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
string CreateSurveyJobOfflineRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateSurveyJobOfflineRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/CreateSurveyJobOfflineResult.cc
Normal file
72
apds/src/model/CreateSurveyJobOfflineResult.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/apds/model/CreateSurveyJobOfflineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
CreateSurveyJobOfflineResult::CreateSurveyJobOfflineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSurveyJobOfflineResult::CreateSurveyJobOfflineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSurveyJobOfflineResult::~CreateSurveyJobOfflineResult()
|
||||
{}
|
||||
|
||||
void CreateSurveyJobOfflineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateSurveyJobOfflineResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny CreateSurveyJobOfflineResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateSurveyJobOfflineResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSurveyJobOfflineResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/CreateSurveyJobRequest.cc
Normal file
46
apds/src/model/CreateSurveyJobRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/CreateSurveyJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::CreateSurveyJobRequest;
|
||||
|
||||
CreateSurveyJobRequest::CreateSurveyJobRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/winback/add-survey-job"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSurveyJobRequest::~CreateSurveyJobRequest() {}
|
||||
|
||||
std::string CreateSurveyJobRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateSurveyJobRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
string CreateSurveyJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateSurveyJobRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/CreateSurveyJobResult.cc
Normal file
72
apds/src/model/CreateSurveyJobResult.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/apds/model/CreateSurveyJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
CreateSurveyJobResult::CreateSurveyJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSurveyJobResult::CreateSurveyJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSurveyJobResult::~CreateSurveyJobResult()
|
||||
{}
|
||||
|
||||
void CreateSurveyJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateSurveyJobResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny CreateSurveyJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateSurveyJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSurveyJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/DeleteMigrationGroupRequest.cc
Normal file
37
apds/src/model/DeleteMigrationGroupRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/DeleteMigrationGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DeleteMigrationGroupRequest;
|
||||
|
||||
DeleteMigrationGroupRequest::DeleteMigrationGroupRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-group/remove-migration-group"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMigrationGroupRequest::~DeleteMigrationGroupRequest() {}
|
||||
|
||||
integer DeleteMigrationGroupRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteMigrationGroupRequest::setId(integer id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("id"), std::to_string(id));
|
||||
}
|
||||
|
||||
72
apds/src/model/DeleteMigrationGroupResult.cc
Normal file
72
apds/src/model/DeleteMigrationGroupResult.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/apds/model/DeleteMigrationGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DeleteMigrationGroupResult::DeleteMigrationGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMigrationGroupResult::DeleteMigrationGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMigrationGroupResult::~DeleteMigrationGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteMigrationGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteMigrationGroupResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DeleteMigrationGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteMigrationGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteMigrationGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/DeleteMigrationJobRequest.cc
Normal file
37
apds/src/model/DeleteMigrationJobRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/DeleteMigrationJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DeleteMigrationJobRequest;
|
||||
|
||||
DeleteMigrationJobRequest::DeleteMigrationJobRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-job/remove-migration-job"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMigrationJobRequest::~DeleteMigrationJobRequest() {}
|
||||
|
||||
integer DeleteMigrationJobRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteMigrationJobRequest::setId(integer id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("id"), std::to_string(id));
|
||||
}
|
||||
|
||||
72
apds/src/model/DeleteMigrationJobResult.cc
Normal file
72
apds/src/model/DeleteMigrationJobResult.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/apds/model/DeleteMigrationJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DeleteMigrationJobResult::DeleteMigrationJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMigrationJobResult::DeleteMigrationJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMigrationJobResult::~DeleteMigrationJobResult()
|
||||
{}
|
||||
|
||||
void DeleteMigrationJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteMigrationJobResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DeleteMigrationJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteMigrationJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteMigrationJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/DeleteOssFileRequest.cc
Normal file
46
apds/src/model/DeleteOssFileRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/DeleteOssFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DeleteOssFileRequest;
|
||||
|
||||
DeleteOssFileRequest::DeleteOssFileRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/file-job/delete-file"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteOssFileRequest::~DeleteOssFileRequest() {}
|
||||
|
||||
string DeleteOssFileRequest::getObjectName() const {
|
||||
return objectName_;
|
||||
}
|
||||
|
||||
void DeleteOssFileRequest::setObjectName(string objectName) {
|
||||
objectName_ = objectName;
|
||||
setParameter(std::string("objectName"), std::to_string(objectName));
|
||||
}
|
||||
|
||||
string DeleteOssFileRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteOssFileRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/DeleteOssFileResult.cc
Normal file
72
apds/src/model/DeleteOssFileResult.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/apds/model/DeleteOssFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DeleteOssFileResult::DeleteOssFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteOssFileResult::DeleteOssFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteOssFileResult::~DeleteOssFileResult()
|
||||
{}
|
||||
|
||||
void DeleteOssFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteOssFileResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DeleteOssFileResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteOssFileResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteOssFileResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/DeleteSurveyJobRequest.cc
Normal file
37
apds/src/model/DeleteSurveyJobRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/DeleteSurveyJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DeleteSurveyJobRequest;
|
||||
|
||||
DeleteSurveyJobRequest::DeleteSurveyJobRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/winback/delete-survey-job"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSurveyJobRequest::~DeleteSurveyJobRequest() {}
|
||||
|
||||
integer DeleteSurveyJobRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteSurveyJobRequest::setId(integer id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("id"), std::to_string(id));
|
||||
}
|
||||
|
||||
72
apds/src/model/DeleteSurveyJobResult.cc
Normal file
72
apds/src/model/DeleteSurveyJobResult.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/apds/model/DeleteSurveyJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DeleteSurveyJobResult::DeleteSurveyJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSurveyJobResult::DeleteSurveyJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSurveyJobResult::~DeleteSurveyJobResult()
|
||||
{}
|
||||
|
||||
void DeleteSurveyJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSurveyJobResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DeleteSurveyJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteSurveyJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSurveyJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/DeleteSurveyResourcesRequest.cc
Normal file
37
apds/src/model/DeleteSurveyResourcesRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/DeleteSurveyResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DeleteSurveyResourcesRequest;
|
||||
|
||||
DeleteSurveyResourcesRequest::DeleteSurveyResourcesRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/confirm-resource/destroy"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSurveyResourcesRequest::~DeleteSurveyResourcesRequest() {}
|
||||
|
||||
string DeleteSurveyResourcesRequest::getIds() const {
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void DeleteSurveyResourcesRequest::setIds(string ids) {
|
||||
ids_ = ids;
|
||||
setParameter(std::string("ids"), std::to_string(ids));
|
||||
}
|
||||
|
||||
72
apds/src/model/DeleteSurveyResourcesResult.cc
Normal file
72
apds/src/model/DeleteSurveyResourcesResult.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/apds/model/DeleteSurveyResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DeleteSurveyResourcesResult::DeleteSurveyResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSurveyResourcesResult::DeleteSurveyResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSurveyResourcesResult::~DeleteSurveyResourcesResult()
|
||||
{}
|
||||
|
||||
void DeleteSurveyResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Error"].isNull())
|
||||
error_ = value["Error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSurveyResourcesResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DeleteSurveyResourcesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteSurveyResourcesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSurveyResourcesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
28
apds/src/model/DescribeMigrationJobConfigRequest.cc
Normal file
28
apds/src/model/DescribeMigrationJobConfigRequest.cc
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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/apds/model/DescribeMigrationJobConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DescribeMigrationJobConfigRequest;
|
||||
|
||||
DescribeMigrationJobConfigRequest::DescribeMigrationJobConfigRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-job/describe-migration-job-config"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMigrationJobConfigRequest::~DescribeMigrationJobConfigRequest() {}
|
||||
|
||||
72
apds/src/model/DescribeMigrationJobConfigResult.cc
Normal file
72
apds/src/model/DescribeMigrationJobConfigResult.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/apds/model/DescribeMigrationJobConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DescribeMigrationJobConfigResult::DescribeMigrationJobConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMigrationJobConfigResult::DescribeMigrationJobConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMigrationJobConfigResult::~DescribeMigrationJobConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeMigrationJobConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeMigrationJobConfigResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DescribeMigrationJobConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrationJobConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeMigrationJobConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/DescribeMigrationJobCountRequest.cc
Normal file
37
apds/src/model/DescribeMigrationJobCountRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/DescribeMigrationJobCountRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DescribeMigrationJobCountRequest;
|
||||
|
||||
DescribeMigrationJobCountRequest::DescribeMigrationJobCountRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-job/count-migration-jobs"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMigrationJobCountRequest::~DescribeMigrationJobCountRequest() {}
|
||||
|
||||
std::string DescribeMigrationJobCountRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void DescribeMigrationJobCountRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
72
apds/src/model/DescribeMigrationJobCountResult.cc
Normal file
72
apds/src/model/DescribeMigrationJobCountResult.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/apds/model/DescribeMigrationJobCountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DescribeMigrationJobCountResult::DescribeMigrationJobCountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMigrationJobCountResult::DescribeMigrationJobCountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMigrationJobCountResult::~DescribeMigrationJobCountResult()
|
||||
{}
|
||||
|
||||
void DescribeMigrationJobCountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeMigrationJobCountResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DescribeMigrationJobCountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrationJobCountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeMigrationJobCountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
82
apds/src/model/DescribeOssStsRequest.cc
Normal file
82
apds/src/model/DescribeOssStsRequest.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/apds/model/DescribeOssStsRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DescribeOssStsRequest;
|
||||
|
||||
DescribeOssStsRequest::DescribeOssStsRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/file-job/sts"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeOssStsRequest::~DescribeOssStsRequest() {}
|
||||
|
||||
string DescribeOssStsRequest::getCloudType() const {
|
||||
return cloudType_;
|
||||
}
|
||||
|
||||
void DescribeOssStsRequest::setCloudType(string cloudType) {
|
||||
cloudType_ = cloudType;
|
||||
setParameter(std::string("cloudType"), std::to_string(cloudType));
|
||||
}
|
||||
|
||||
string DescribeOssStsRequest::getAk() const {
|
||||
return ak_;
|
||||
}
|
||||
|
||||
void DescribeOssStsRequest::setAk(string ak) {
|
||||
ak_ = ak;
|
||||
setParameter(std::string("ak"), std::to_string(ak));
|
||||
}
|
||||
|
||||
string DescribeOssStsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeOssStsRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
string DescribeOssStsRequest::getSk() const {
|
||||
return sk_;
|
||||
}
|
||||
|
||||
void DescribeOssStsRequest::setSk(string sk) {
|
||||
sk_ = sk;
|
||||
setParameter(std::string("sk"), std::to_string(sk));
|
||||
}
|
||||
|
||||
string DescribeOssStsRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void DescribeOssStsRequest::setTenantId(string tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("tenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
string DescribeOssStsRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeOssStsRequest::setRegion(string region) {
|
||||
region_ = region;
|
||||
setParameter(std::string("region"), std::to_string(region));
|
||||
}
|
||||
|
||||
72
apds/src/model/DescribeOssStsResult.cc
Normal file
72
apds/src/model/DescribeOssStsResult.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/apds/model/DescribeOssStsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DescribeOssStsResult::DescribeOssStsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOssStsResult::DescribeOssStsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOssStsResult::~DescribeOssStsResult()
|
||||
{}
|
||||
|
||||
void DescribeOssStsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeOssStsResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DescribeOssStsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeOssStsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeOssStsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/DescribeSummaryByStatusAndGroupRequest.cc
Normal file
37
apds/src/model/DescribeSummaryByStatusAndGroupRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/DescribeSummaryByStatusAndGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DescribeSummaryByStatusAndGroupRequest;
|
||||
|
||||
DescribeSummaryByStatusAndGroupRequest::DescribeSummaryByStatusAndGroupRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/summary/summary-by-status-and-region"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSummaryByStatusAndGroupRequest::~DescribeSummaryByStatusAndGroupRequest() {}
|
||||
|
||||
string DescribeSummaryByStatusAndGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSummaryByStatusAndGroupRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/DescribeSummaryByStatusAndGroupResult.cc
Normal file
72
apds/src/model/DescribeSummaryByStatusAndGroupResult.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/apds/model/DescribeSummaryByStatusAndGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DescribeSummaryByStatusAndGroupResult::DescribeSummaryByStatusAndGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSummaryByStatusAndGroupResult::DescribeSummaryByStatusAndGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSummaryByStatusAndGroupResult::~DescribeSummaryByStatusAndGroupResult()
|
||||
{}
|
||||
|
||||
void DescribeSummaryByStatusAndGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Error"].isNull())
|
||||
error_ = value["Error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSummaryByStatusAndGroupResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DescribeSummaryByStatusAndGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeSummaryByStatusAndGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeSummaryByStatusAndGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/DescribeSummaryByStatusRequest.cc
Normal file
37
apds/src/model/DescribeSummaryByStatusRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/DescribeSummaryByStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DescribeSummaryByStatusRequest;
|
||||
|
||||
DescribeSummaryByStatusRequest::DescribeSummaryByStatusRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/summary/summary-by-status"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSummaryByStatusRequest::~DescribeSummaryByStatusRequest() {}
|
||||
|
||||
string DescribeSummaryByStatusRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSummaryByStatusRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/DescribeSummaryByStatusResult.cc
Normal file
72
apds/src/model/DescribeSummaryByStatusResult.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/apds/model/DescribeSummaryByStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DescribeSummaryByStatusResult::DescribeSummaryByStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSummaryByStatusResult::DescribeSummaryByStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSummaryByStatusResult::~DescribeSummaryByStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeSummaryByStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Error"].isNull())
|
||||
error_ = value["Error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSummaryByStatusResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DescribeSummaryByStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeSummaryByStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeSummaryByStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/DescribeSurveyJobCountRequest.cc
Normal file
37
apds/src/model/DescribeSurveyJobCountRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/DescribeSurveyJobCountRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DescribeSurveyJobCountRequest;
|
||||
|
||||
DescribeSurveyJobCountRequest::DescribeSurveyJobCountRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/winback/count-survey-job"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSurveyJobCountRequest::~DescribeSurveyJobCountRequest() {}
|
||||
|
||||
string DescribeSurveyJobCountRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSurveyJobCountRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/DescribeSurveyJobCountResult.cc
Normal file
72
apds/src/model/DescribeSurveyJobCountResult.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/apds/model/DescribeSurveyJobCountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DescribeSurveyJobCountResult::DescribeSurveyJobCountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSurveyJobCountResult::DescribeSurveyJobCountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSurveyJobCountResult::~DescribeSurveyJobCountResult()
|
||||
{}
|
||||
|
||||
void DescribeSurveyJobCountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSurveyJobCountResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DescribeSurveyJobCountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeSurveyJobCountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeSurveyJobCountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/DescribeSurveyJobRequest.cc
Normal file
46
apds/src/model/DescribeSurveyJobRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/DescribeSurveyJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DescribeSurveyJobRequest;
|
||||
|
||||
DescribeSurveyJobRequest::DescribeSurveyJobRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/winback/query-survey-job"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSurveyJobRequest::~DescribeSurveyJobRequest() {}
|
||||
|
||||
string DescribeSurveyJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSurveyJobRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
integer DescribeSurveyJobRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DescribeSurveyJobRequest::setId(integer id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("id"), std::to_string(id));
|
||||
}
|
||||
|
||||
72
apds/src/model/DescribeSurveyJobResult.cc
Normal file
72
apds/src/model/DescribeSurveyJobResult.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/apds/model/DescribeSurveyJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DescribeSurveyJobResult::DescribeSurveyJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSurveyJobResult::DescribeSurveyJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSurveyJobResult::~DescribeSurveyJobResult()
|
||||
{}
|
||||
|
||||
void DescribeSurveyJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSurveyJobResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DescribeSurveyJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeSurveyJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeSurveyJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
28
apds/src/model/DescribeSurveyResourceTagRequest.cc
Normal file
28
apds/src/model/DescribeSurveyResourceTagRequest.cc
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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/apds/model/DescribeSurveyResourceTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DescribeSurveyResourceTagRequest;
|
||||
|
||||
DescribeSurveyResourceTagRequest::DescribeSurveyResourceTagRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/confirm-resource/get-resource-tag"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSurveyResourceTagRequest::~DescribeSurveyResourceTagRequest() {}
|
||||
|
||||
72
apds/src/model/DescribeSurveyResourceTagResult.cc
Normal file
72
apds/src/model/DescribeSurveyResourceTagResult.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/apds/model/DescribeSurveyResourceTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DescribeSurveyResourceTagResult::DescribeSurveyResourceTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSurveyResourceTagResult::DescribeSurveyResourceTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSurveyResourceTagResult::~DescribeSurveyResourceTagResult()
|
||||
{}
|
||||
|
||||
void DescribeSurveyResourceTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Error"].isNull())
|
||||
error_ = value["Error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSurveyResourceTagResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DescribeSurveyResourceTagResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeSurveyResourceTagResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeSurveyResourceTagResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/DescribeSurveyTemplateRequest.cc
Normal file
37
apds/src/model/DescribeSurveyTemplateRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/DescribeSurveyTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::DescribeSurveyTemplateRequest;
|
||||
|
||||
DescribeSurveyTemplateRequest::DescribeSurveyTemplateRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/survey-template/list"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSurveyTemplateRequest::~DescribeSurveyTemplateRequest() {}
|
||||
|
||||
string DescribeSurveyTemplateRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeSurveyTemplateRequest::setResourceType(string resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("resourceType"), std::to_string(resourceType));
|
||||
}
|
||||
|
||||
72
apds/src/model/DescribeSurveyTemplateResult.cc
Normal file
72
apds/src/model/DescribeSurveyTemplateResult.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/apds/model/DescribeSurveyTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
DescribeSurveyTemplateResult::DescribeSurveyTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSurveyTemplateResult::DescribeSurveyTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSurveyTemplateResult::~DescribeSurveyTemplateResult()
|
||||
{}
|
||||
|
||||
void DescribeSurveyTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSurveyTemplateResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny DescribeSurveyTemplateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeSurveyTemplateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeSurveyTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/ListMigrationJobsRequest.cc
Normal file
37
apds/src/model/ListMigrationJobsRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/ListMigrationJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::ListMigrationJobsRequest;
|
||||
|
||||
ListMigrationJobsRequest::ListMigrationJobsRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-job/describe-migration-jobs"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMigrationJobsRequest::~ListMigrationJobsRequest() {}
|
||||
|
||||
std::string ListMigrationJobsRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void ListMigrationJobsRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
72
apds/src/model/ListMigrationJobsResult.cc
Normal file
72
apds/src/model/ListMigrationJobsResult.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/apds/model/ListMigrationJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
ListMigrationJobsResult::ListMigrationJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMigrationJobsResult::ListMigrationJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMigrationJobsResult::~ListMigrationJobsResult()
|
||||
{}
|
||||
|
||||
void ListMigrationJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListMigrationJobsResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny ListMigrationJobsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListMigrationJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListMigrationJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
82
apds/src/model/ListRegionsRequest.cc
Normal file
82
apds/src/model/ListRegionsRequest.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/apds/model/ListRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::ListRegionsRequest;
|
||||
|
||||
ListRegionsRequest::ListRegionsRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/winback/query-region"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListRegionsRequest::~ListRegionsRequest() {}
|
||||
|
||||
string ListRegionsRequest::getCloudType() const {
|
||||
return cloudType_;
|
||||
}
|
||||
|
||||
void ListRegionsRequest::setCloudType(string cloudType) {
|
||||
cloudType_ = cloudType;
|
||||
setParameter(std::string("cloudType"), std::to_string(cloudType));
|
||||
}
|
||||
|
||||
string ListRegionsRequest::getAk() const {
|
||||
return ak_;
|
||||
}
|
||||
|
||||
void ListRegionsRequest::setAk(string ak) {
|
||||
ak_ = ak;
|
||||
setParameter(std::string("ak"), std::to_string(ak));
|
||||
}
|
||||
|
||||
string ListRegionsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListRegionsRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
string ListRegionsRequest::getSk() const {
|
||||
return sk_;
|
||||
}
|
||||
|
||||
void ListRegionsRequest::setSk(string sk) {
|
||||
sk_ = sk;
|
||||
setParameter(std::string("sk"), std::to_string(sk));
|
||||
}
|
||||
|
||||
string ListRegionsRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void ListRegionsRequest::setTenantId(string tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setParameter(std::string("tenantId"), std::to_string(tenantId));
|
||||
}
|
||||
|
||||
string ListRegionsRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void ListRegionsRequest::setRegion(string region) {
|
||||
region_ = region;
|
||||
setParameter(std::string("region"), std::to_string(region));
|
||||
}
|
||||
|
||||
72
apds/src/model/ListRegionsResult.cc
Normal file
72
apds/src/model/ListRegionsResult.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/apds/model/ListRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
ListRegionsResult::ListRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRegionsResult::ListRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRegionsResult::~ListRegionsResult()
|
||||
{}
|
||||
|
||||
void ListRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListRegionsResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny ListRegionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListRegionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListRegionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/ListSurveyJobDownLoadJobsRequest.cc
Normal file
46
apds/src/model/ListSurveyJobDownLoadJobsRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/ListSurveyJobDownLoadJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::ListSurveyJobDownLoadJobsRequest;
|
||||
|
||||
ListSurveyJobDownLoadJobsRequest::ListSurveyJobDownLoadJobsRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/file-job/list"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSurveyJobDownLoadJobsRequest::~ListSurveyJobDownLoadJobsRequest() {}
|
||||
|
||||
std::string ListSurveyJobDownLoadJobsRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void ListSurveyJobDownLoadJobsRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
string ListSurveyJobDownLoadJobsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListSurveyJobDownLoadJobsRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/ListSurveyJobDownLoadJobsResult.cc
Normal file
72
apds/src/model/ListSurveyJobDownLoadJobsResult.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/apds/model/ListSurveyJobDownLoadJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
ListSurveyJobDownLoadJobsResult::ListSurveyJobDownLoadJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSurveyJobDownLoadJobsResult::ListSurveyJobDownLoadJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSurveyJobDownLoadJobsResult::~ListSurveyJobDownLoadJobsResult()
|
||||
{}
|
||||
|
||||
void ListSurveyJobDownLoadJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSurveyJobDownLoadJobsResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny ListSurveyJobDownLoadJobsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSurveyJobDownLoadJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSurveyJobDownLoadJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/ListSurveyJobsRequest.cc
Normal file
46
apds/src/model/ListSurveyJobsRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/ListSurveyJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::ListSurveyJobsRequest;
|
||||
|
||||
ListSurveyJobsRequest::ListSurveyJobsRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/winback/query-survey-jobs"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSurveyJobsRequest::~ListSurveyJobsRequest() {}
|
||||
|
||||
std::string ListSurveyJobsRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void ListSurveyJobsRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
string ListSurveyJobsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListSurveyJobsRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/ListSurveyJobsResult.cc
Normal file
72
apds/src/model/ListSurveyJobsResult.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/apds/model/ListSurveyJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
ListSurveyJobsResult::ListSurveyJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSurveyJobsResult::ListSurveyJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSurveyJobsResult::~ListSurveyJobsResult()
|
||||
{}
|
||||
|
||||
void ListSurveyJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSurveyJobsResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny ListSurveyJobsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSurveyJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSurveyJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/ListSurveyResourceByMigrationGroupsRequest.cc
Normal file
37
apds/src/model/ListSurveyResourceByMigrationGroupsRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/ListSurveyResourceByMigrationGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::ListSurveyResourceByMigrationGroupsRequest;
|
||||
|
||||
ListSurveyResourceByMigrationGroupsRequest::ListSurveyResourceByMigrationGroupsRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-group/get-survey-resource"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSurveyResourceByMigrationGroupsRequest::~ListSurveyResourceByMigrationGroupsRequest() {}
|
||||
|
||||
std::string ListSurveyResourceByMigrationGroupsRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void ListSurveyResourceByMigrationGroupsRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
72
apds/src/model/ListSurveyResourceByMigrationGroupsResult.cc
Normal file
72
apds/src/model/ListSurveyResourceByMigrationGroupsResult.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/apds/model/ListSurveyResourceByMigrationGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
ListSurveyResourceByMigrationGroupsResult::ListSurveyResourceByMigrationGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSurveyResourceByMigrationGroupsResult::ListSurveyResourceByMigrationGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSurveyResourceByMigrationGroupsResult::~ListSurveyResourceByMigrationGroupsResult()
|
||||
{}
|
||||
|
||||
void ListSurveyResourceByMigrationGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Error"].isNull())
|
||||
error_ = value["Error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSurveyResourceByMigrationGroupsResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny ListSurveyResourceByMigrationGroupsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSurveyResourceByMigrationGroupsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSurveyResourceByMigrationGroupsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/ListSurveyResourceConnectionsRequest.cc
Normal file
46
apds/src/model/ListSurveyResourceConnectionsRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/ListSurveyResourceConnectionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::ListSurveyResourceConnectionsRequest;
|
||||
|
||||
ListSurveyResourceConnectionsRequest::ListSurveyResourceConnectionsRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/resource-connects"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSurveyResourceConnectionsRequest::~ListSurveyResourceConnectionsRequest() {}
|
||||
|
||||
std::string ListSurveyResourceConnectionsRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void ListSurveyResourceConnectionsRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
string ListSurveyResourceConnectionsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListSurveyResourceConnectionsRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/ListSurveyResourceConnectionsResult.cc
Normal file
72
apds/src/model/ListSurveyResourceConnectionsResult.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/apds/model/ListSurveyResourceConnectionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
ListSurveyResourceConnectionsResult::ListSurveyResourceConnectionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSurveyResourceConnectionsResult::ListSurveyResourceConnectionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSurveyResourceConnectionsResult::~ListSurveyResourceConnectionsResult()
|
||||
{}
|
||||
|
||||
void ListSurveyResourceConnectionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Error"].isNull())
|
||||
error_ = value["Error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSurveyResourceConnectionsResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny ListSurveyResourceConnectionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSurveyResourceConnectionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSurveyResourceConnectionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
apds/src/model/ListSurveyResourceTypesRequest.cc
Normal file
73
apds/src/model/ListSurveyResourceTypesRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/apds/model/ListSurveyResourceTypesRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::ListSurveyResourceTypesRequest;
|
||||
|
||||
ListSurveyResourceTypesRequest::ListSurveyResourceTypesRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/winback/query-resource-type"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSurveyResourceTypesRequest::~ListSurveyResourceTypesRequest() {}
|
||||
|
||||
string ListSurveyResourceTypesRequest::getCloudType() const {
|
||||
return cloudType_;
|
||||
}
|
||||
|
||||
void ListSurveyResourceTypesRequest::setCloudType(string cloudType) {
|
||||
cloudType_ = cloudType;
|
||||
setParameter(std::string("cloudType"), std::to_string(cloudType));
|
||||
}
|
||||
|
||||
string ListSurveyResourceTypesRequest::getAk() const {
|
||||
return ak_;
|
||||
}
|
||||
|
||||
void ListSurveyResourceTypesRequest::setAk(string ak) {
|
||||
ak_ = ak;
|
||||
setParameter(std::string("ak"), std::to_string(ak));
|
||||
}
|
||||
|
||||
string ListSurveyResourceTypesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListSurveyResourceTypesRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
string ListSurveyResourceTypesRequest::getSk() const {
|
||||
return sk_;
|
||||
}
|
||||
|
||||
void ListSurveyResourceTypesRequest::setSk(string sk) {
|
||||
sk_ = sk;
|
||||
setParameter(std::string("sk"), std::to_string(sk));
|
||||
}
|
||||
|
||||
string ListSurveyResourceTypesRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void ListSurveyResourceTypesRequest::setRegion(string region) {
|
||||
region_ = region;
|
||||
setParameter(std::string("region"), std::to_string(region));
|
||||
}
|
||||
|
||||
72
apds/src/model/ListSurveyResourceTypesResult.cc
Normal file
72
apds/src/model/ListSurveyResourceTypesResult.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/apds/model/ListSurveyResourceTypesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
ListSurveyResourceTypesResult::ListSurveyResourceTypesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSurveyResourceTypesResult::ListSurveyResourceTypesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSurveyResourceTypesResult::~ListSurveyResourceTypesResult()
|
||||
{}
|
||||
|
||||
void ListSurveyResourceTypesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSurveyResourceTypesResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny ListSurveyResourceTypesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSurveyResourceTypesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSurveyResourceTypesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/ListSurveyResourcesDetailRequest.cc
Normal file
46
apds/src/model/ListSurveyResourcesDetailRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/ListSurveyResourcesDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::ListSurveyResourcesDetailRequest;
|
||||
|
||||
ListSurveyResourcesDetailRequest::ListSurveyResourcesDetailRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/survey-detail/query"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSurveyResourcesDetailRequest::~ListSurveyResourcesDetailRequest() {}
|
||||
|
||||
std::string ListSurveyResourcesDetailRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void ListSurveyResourcesDetailRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
string ListSurveyResourcesDetailRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListSurveyResourcesDetailRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/ListSurveyResourcesDetailResult.cc
Normal file
72
apds/src/model/ListSurveyResourcesDetailResult.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/apds/model/ListSurveyResourcesDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
ListSurveyResourcesDetailResult::ListSurveyResourcesDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSurveyResourcesDetailResult::ListSurveyResourcesDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSurveyResourcesDetailResult::~ListSurveyResourcesDetailResult()
|
||||
{}
|
||||
|
||||
void ListSurveyResourcesDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListSurveyResourcesDetailResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny ListSurveyResourcesDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSurveyResourcesDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSurveyResourcesDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
apds/src/model/RecoverMigrationJobRequest.cc
Normal file
37
apds/src/model/RecoverMigrationJobRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/apds/model/RecoverMigrationJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::RecoverMigrationJobRequest;
|
||||
|
||||
RecoverMigrationJobRequest::RecoverMigrationJobRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-job/recover-migration-job"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RecoverMigrationJobRequest::~RecoverMigrationJobRequest() {}
|
||||
|
||||
integer RecoverMigrationJobRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void RecoverMigrationJobRequest::setId(integer id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("id"), std::to_string(id));
|
||||
}
|
||||
|
||||
72
apds/src/model/RecoverMigrationJobResult.cc
Normal file
72
apds/src/model/RecoverMigrationJobResult.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/apds/model/RecoverMigrationJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
RecoverMigrationJobResult::RecoverMigrationJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RecoverMigrationJobResult::RecoverMigrationJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RecoverMigrationJobResult::~RecoverMigrationJobResult()
|
||||
{}
|
||||
|
||||
void RecoverMigrationJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RecoverMigrationJobResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny RecoverMigrationJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string RecoverMigrationJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RecoverMigrationJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
apds/src/model/StopSyncMigrationJobRequest.cc
Normal file
46
apds/src/model/StopSyncMigrationJobRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/apds/model/StopSyncMigrationJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::StopSyncMigrationJobRequest;
|
||||
|
||||
StopSyncMigrationJobRequest::StopSyncMigrationJobRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-job/unsync-migration-job"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopSyncMigrationJobRequest::~StopSyncMigrationJobRequest() {}
|
||||
|
||||
string StopSyncMigrationJobRequest::getJobType() const {
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void StopSyncMigrationJobRequest::setJobType(string jobType) {
|
||||
jobType_ = jobType;
|
||||
setParameter(std::string("jobType"), std::to_string(jobType));
|
||||
}
|
||||
|
||||
string StopSyncMigrationJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StopSyncMigrationJobRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/StopSyncMigrationJobResult.cc
Normal file
72
apds/src/model/StopSyncMigrationJobResult.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/apds/model/StopSyncMigrationJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
StopSyncMigrationJobResult::StopSyncMigrationJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopSyncMigrationJobResult::StopSyncMigrationJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopSyncMigrationJobResult::~StopSyncMigrationJobResult()
|
||||
{}
|
||||
|
||||
void StopSyncMigrationJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopSyncMigrationJobResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny StopSyncMigrationJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StopSyncMigrationJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool StopSyncMigrationJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
55
apds/src/model/SyncMigrationJobRequest.cc
Normal file
55
apds/src/model/SyncMigrationJobRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/apds/model/SyncMigrationJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Apds::Model::SyncMigrationJobRequest;
|
||||
|
||||
SyncMigrationJobRequest::SyncMigrationJobRequest()
|
||||
: RoaServiceRequest("apds", "2022-03-31") {
|
||||
setResourcePath("/okss-services/migration-job/sync-migration-job"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SyncMigrationJobRequest::~SyncMigrationJobRequest() {}
|
||||
|
||||
string SyncMigrationJobRequest::getRegions() const {
|
||||
return regions_;
|
||||
}
|
||||
|
||||
void SyncMigrationJobRequest::setRegions(string regions) {
|
||||
regions_ = regions;
|
||||
setParameter(std::string("regions"), std::to_string(regions));
|
||||
}
|
||||
|
||||
string SyncMigrationJobRequest::getJobType() const {
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void SyncMigrationJobRequest::setJobType(string jobType) {
|
||||
jobType_ = jobType;
|
||||
setParameter(std::string("jobType"), std::to_string(jobType));
|
||||
}
|
||||
|
||||
string SyncMigrationJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SyncMigrationJobRequest::setRegionId(string regionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("regionId"), std::to_string(regionId));
|
||||
}
|
||||
|
||||
72
apds/src/model/SyncMigrationJobResult.cc
Normal file
72
apds/src/model/SyncMigrationJobResult.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/apds/model/SyncMigrationJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Apds;
|
||||
using namespace AlibabaCloud::Apds::Model;
|
||||
|
||||
SyncMigrationJobResult::SyncMigrationJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SyncMigrationJobResult::SyncMigrationJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SyncMigrationJobResult::~SyncMigrationJobResult()
|
||||
{}
|
||||
|
||||
void SyncMigrationJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["error"].isNull())
|
||||
error_ = value["error"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SyncMigrationJobResult::getError()const
|
||||
{
|
||||
return error_;
|
||||
}
|
||||
|
||||
ObjectOfAny SyncMigrationJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SyncMigrationJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SyncMigrationJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user