Support OpenAPI.
This commit is contained in:
117
openanalytics-open/src/model/AddAccountRequest.cc
Normal file
117
openanalytics-open/src/model/AddAccountRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/AddAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::AddAccountRequest;
|
||||
|
||||
AddAccountRequest::AddAccountRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "AddAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddAccountRequest::~AddAccountRequest()
|
||||
{}
|
||||
|
||||
std::string AddAccountRequest::getRamUid()const
|
||||
{
|
||||
return ramUid_;
|
||||
}
|
||||
|
||||
void AddAccountRequest::setRamUid(const std::string& ramUid)
|
||||
{
|
||||
ramUid_ = ramUid;
|
||||
setBodyParameter("RamUid", ramUid);
|
||||
}
|
||||
|
||||
bool AddAccountRequest::getIsShort()const
|
||||
{
|
||||
return isShort_;
|
||||
}
|
||||
|
||||
void AddAccountRequest::setIsShort(bool isShort)
|
||||
{
|
||||
isShort_ = isShort;
|
||||
setBodyParameter("IsShort", isShort ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddAccountRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void AddAccountRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setBodyParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string AddAccountRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void AddAccountRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setBodyParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string AddAccountRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void AddAccountRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setBodyParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string AddAccountRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddAccountRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool AddAccountRequest::getEnableKMS()const
|
||||
{
|
||||
return enableKMS_;
|
||||
}
|
||||
|
||||
void AddAccountRequest::setEnableKMS(bool enableKMS)
|
||||
{
|
||||
enableKMS_ = enableKMS;
|
||||
setBodyParameter("EnableKMS", enableKMS ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AddAccountRequest::getUseRandomPassword()const
|
||||
{
|
||||
return useRandomPassword_;
|
||||
}
|
||||
|
||||
void AddAccountRequest::setUseRandomPassword(bool useRandomPassword)
|
||||
{
|
||||
useRandomPassword_ = useRandomPassword;
|
||||
setBodyParameter("UseRandomPassword", useRandomPassword ? "true" : "false");
|
||||
}
|
||||
|
||||
61
openanalytics-open/src/model/AddAccountResult.cc
Normal file
61
openanalytics-open/src/model/AddAccountResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/AddAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
AddAccountResult::AddAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddAccountResult::AddAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddAccountResult::~AddAccountResult()
|
||||
{}
|
||||
|
||||
void AddAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["UserName"].isNull())
|
||||
account_.userName = accountNode["UserName"].asString();
|
||||
if(!accountNode["Password"].isNull())
|
||||
account_.password = accountNode["Password"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
AddAccountResult::Account AddAccountResult::getAccount()const
|
||||
{
|
||||
return account_;
|
||||
}
|
||||
|
||||
std::string AddAccountResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
95
openanalytics-open/src/model/AddEndPointRequest.cc
Normal file
95
openanalytics-open/src/model/AddEndPointRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/AddEndPointRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::AddEndPointRequest;
|
||||
|
||||
AddEndPointRequest::AddEndPointRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "AddEndPoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddEndPointRequest::~AddEndPointRequest()
|
||||
{}
|
||||
|
||||
std::string AddEndPointRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void AddEndPointRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setBodyParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string AddEndPointRequest::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
void AddEndPointRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setBodyParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
std::string AddEndPointRequest::getVswitch()const
|
||||
{
|
||||
return vswitch_;
|
||||
}
|
||||
|
||||
void AddEndPointRequest::setVswitch(const std::string& vswitch)
|
||||
{
|
||||
vswitch_ = vswitch;
|
||||
setBodyParameter("Vswitch", vswitch);
|
||||
}
|
||||
|
||||
std::string AddEndPointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddEndPointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddEndPointRequest::getZone()const
|
||||
{
|
||||
return zone_;
|
||||
}
|
||||
|
||||
void AddEndPointRequest::setZone(const std::string& zone)
|
||||
{
|
||||
zone_ = zone;
|
||||
setBodyParameter("Zone", zone);
|
||||
}
|
||||
|
||||
std::string AddEndPointRequest::getVpcID()const
|
||||
{
|
||||
return vpcID_;
|
||||
}
|
||||
|
||||
void AddEndPointRequest::setVpcID(const std::string& vpcID)
|
||||
{
|
||||
vpcID_ = vpcID;
|
||||
setBodyParameter("VpcID", vpcID);
|
||||
}
|
||||
|
||||
79
openanalytics-open/src/model/AddEndPointResult.cc
Normal file
79
openanalytics-open/src/model/AddEndPointResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/AddEndPointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
AddEndPointResult::AddEndPointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddEndPointResult::AddEndPointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddEndPointResult::~AddEndPointResult()
|
||||
{}
|
||||
|
||||
void AddEndPointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto endPointInfoNode = value["EndPointInfo"];
|
||||
if(!endPointInfoNode["domainURL"].isNull())
|
||||
endPointInfo_.domainURL = endPointInfoNode["domainURL"].asString();
|
||||
if(!endPointInfoNode["host"].isNull())
|
||||
endPointInfo_.host = endPointInfoNode["host"].asString();
|
||||
if(!endPointInfoNode["port"].isNull())
|
||||
endPointInfo_.port = endPointInfoNode["port"].asString();
|
||||
if(!endPointInfoNode["networkType"].isNull())
|
||||
endPointInfo_.networkType = endPointInfoNode["networkType"].asString();
|
||||
if(!endPointInfoNode["vpcID"].isNull())
|
||||
endPointInfo_.vpcID = endPointInfoNode["vpcID"].asString();
|
||||
if(!endPointInfoNode["vSwitch"].isNull())
|
||||
endPointInfo_.vSwitch = endPointInfoNode["vSwitch"].asString();
|
||||
if(!endPointInfoNode["zone"].isNull())
|
||||
endPointInfo_.zone = endPointInfoNode["zone"].asString();
|
||||
if(!endPointInfoNode["allowIP"].isNull())
|
||||
endPointInfo_.allowIP = endPointInfoNode["allowIP"].asString();
|
||||
if(!endPointInfoNode["endPointID"].isNull())
|
||||
endPointInfo_.endPointID = endPointInfoNode["endPointID"].asString();
|
||||
if(!endPointInfoNode["status"].isNull())
|
||||
endPointInfo_.status = endPointInfoNode["status"].asString();
|
||||
if(!endPointInfoNode["product"].isNull())
|
||||
endPointInfo_.product = endPointInfoNode["product"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
AddEndPointResult::EndPointInfo AddEndPointResult::getEndPointInfo()const
|
||||
{
|
||||
return endPointInfo_;
|
||||
}
|
||||
|
||||
std::string AddEndPointResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
40
openanalytics-open/src/model/AddPartitionsRequest.cc
Normal file
40
openanalytics-open/src/model/AddPartitionsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/AddPartitionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::AddPartitionsRequest;
|
||||
|
||||
AddPartitionsRequest::AddPartitionsRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "AddPartitions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPartitionsRequest::~AddPartitionsRequest()
|
||||
{}
|
||||
|
||||
Array AddPartitionsRequest::getPartition()const
|
||||
{
|
||||
return partition_;
|
||||
}
|
||||
|
||||
void AddPartitionsRequest::setPartition(const Array& partition)
|
||||
{
|
||||
partition_ = partition;
|
||||
setParameter("Partition", std::to_string(partition));
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/AddPartitionsResult.cc
Normal file
72
openanalytics-open/src/model/AddPartitionsResult.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/openanalytics-open/model/AddPartitionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
AddPartitionsResult::AddPartitionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddPartitionsResult::AddPartitionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddPartitionsResult::~AddPartitionsResult()
|
||||
{}
|
||||
|
||||
void AddPartitionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AddPartitionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long AddPartitionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddPartitionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddPartitionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
openanalytics-open/src/model/AlterDatabaseRequest.cc
Normal file
84
openanalytics-open/src/model/AlterDatabaseRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/AlterDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::AlterDatabaseRequest;
|
||||
|
||||
AlterDatabaseRequest::AlterDatabaseRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "AlterDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AlterDatabaseRequest::~AlterDatabaseRequest()
|
||||
{}
|
||||
|
||||
std::string AlterDatabaseRequest::getOldDbName()const
|
||||
{
|
||||
return oldDbName_;
|
||||
}
|
||||
|
||||
void AlterDatabaseRequest::setOldDbName(const std::string& oldDbName)
|
||||
{
|
||||
oldDbName_ = oldDbName;
|
||||
setParameter("OldDbName", oldDbName);
|
||||
}
|
||||
|
||||
std::string AlterDatabaseRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AlterDatabaseRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string AlterDatabaseRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void AlterDatabaseRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string AlterDatabaseRequest::getLocationUri()const
|
||||
{
|
||||
return locationUri_;
|
||||
}
|
||||
|
||||
void AlterDatabaseRequest::setLocationUri(const std::string& locationUri)
|
||||
{
|
||||
locationUri_ = locationUri;
|
||||
setParameter("LocationUri", locationUri);
|
||||
}
|
||||
|
||||
std::string AlterDatabaseRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void AlterDatabaseRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/AlterDatabaseResult.cc
Normal file
72
openanalytics-open/src/model/AlterDatabaseResult.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/openanalytics-open/model/AlterDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
AlterDatabaseResult::AlterDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AlterDatabaseResult::AlterDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AlterDatabaseResult::~AlterDatabaseResult()
|
||||
{}
|
||||
|
||||
void AlterDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AlterDatabaseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AlterDatabaseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AlterDatabaseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AlterDatabaseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
openanalytics-open/src/model/AlterTableRequest.cc
Normal file
95
openanalytics-open/src/model/AlterTableRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/AlterTableRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::AlterTableRequest;
|
||||
|
||||
AlterTableRequest::AlterTableRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "AlterTable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AlterTableRequest::~AlterTableRequest()
|
||||
{}
|
||||
|
||||
std::string AlterTableRequest::getNewTableName()const
|
||||
{
|
||||
return newTableName_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setNewTableName(const std::string& newTableName)
|
||||
{
|
||||
newTableName_ = newTableName;
|
||||
setParameter("NewTableName", newTableName);
|
||||
}
|
||||
|
||||
Array AlterTableRequest::getCol()const
|
||||
{
|
||||
return col_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setCol(const Array& col)
|
||||
{
|
||||
col_ = col;
|
||||
setParameter("Col", std::to_string(col));
|
||||
}
|
||||
|
||||
std::string AlterTableRequest::getOldTableName()const
|
||||
{
|
||||
return oldTableName_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setOldTableName(const std::string& oldTableName)
|
||||
{
|
||||
oldTableName_ = oldTableName;
|
||||
setParameter("OldTableName", oldTableName);
|
||||
}
|
||||
|
||||
std::string AlterTableRequest::getOldDbName()const
|
||||
{
|
||||
return oldDbName_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setOldDbName(const std::string& oldDbName)
|
||||
{
|
||||
oldDbName_ = oldDbName;
|
||||
setParameter("OldDbName", oldDbName);
|
||||
}
|
||||
|
||||
std::string AlterTableRequest::getNewDbName()const
|
||||
{
|
||||
return newDbName_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setNewDbName(const std::string& newDbName)
|
||||
{
|
||||
newDbName_ = newDbName;
|
||||
setParameter("NewDbName", newDbName);
|
||||
}
|
||||
|
||||
std::string AlterTableRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/AlterTableResult.cc
Normal file
72
openanalytics-open/src/model/AlterTableResult.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/openanalytics-open/model/AlterTableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
AlterTableResult::AlterTableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AlterTableResult::AlterTableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AlterTableResult::~AlterTableResult()
|
||||
{}
|
||||
|
||||
void AlterTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AlterTableResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool AlterTableResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AlterTableResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AlterTableResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::BindingRamUidToDlaAccountRequest;
|
||||
|
||||
BindingRamUidToDlaAccountRequest::BindingRamUidToDlaAccountRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "BindingRamUidToDlaAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindingRamUidToDlaAccountRequest::~BindingRamUidToDlaAccountRequest()
|
||||
{}
|
||||
|
||||
std::string BindingRamUidToDlaAccountRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void BindingRamUidToDlaAccountRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string BindingRamUidToDlaAccountRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void BindingRamUidToDlaAccountRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setBodyParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string BindingRamUidToDlaAccountRequest::getRamUid()const
|
||||
{
|
||||
return ramUid_;
|
||||
}
|
||||
|
||||
void BindingRamUidToDlaAccountRequest::setRamUid(const std::string& ramUid)
|
||||
{
|
||||
ramUid_ = ramUid;
|
||||
setBodyParameter("RamUid", ramUid);
|
||||
}
|
||||
|
||||
bool BindingRamUidToDlaAccountRequest::getIsShort()const
|
||||
{
|
||||
return isShort_;
|
||||
}
|
||||
|
||||
void BindingRamUidToDlaAccountRequest::setIsShort(bool isShort)
|
||||
{
|
||||
isShort_ = isShort;
|
||||
setBodyParameter("IsShort", isShort ? "true" : "false");
|
||||
}
|
||||
|
||||
bool BindingRamUidToDlaAccountRequest::getIsServiceUser()const
|
||||
{
|
||||
return isServiceUser_;
|
||||
}
|
||||
|
||||
void BindingRamUidToDlaAccountRequest::setIsServiceUser(bool isServiceUser)
|
||||
{
|
||||
isServiceUser_ = isServiceUser;
|
||||
setBodyParameter("IsServiceUser", isServiceUser ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
BindingRamUidToDlaAccountResult::BindingRamUidToDlaAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindingRamUidToDlaAccountResult::BindingRamUidToDlaAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindingRamUidToDlaAccountResult::~BindingRamUidToDlaAccountResult()
|
||||
{}
|
||||
|
||||
void BindingRamUidToDlaAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BindingRamUidToDlaAccountResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
73
openanalytics-open/src/model/CreateDatabaseRequest.cc
Normal file
73
openanalytics-open/src/model/CreateDatabaseRequest.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/openanalytics-open/model/CreateDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::CreateDatabaseRequest;
|
||||
|
||||
CreateDatabaseRequest::CreateDatabaseRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "CreateDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDatabaseRequest::~CreateDatabaseRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDatabaseRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateDatabaseRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateDatabaseRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateDatabaseRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateDatabaseRequest::getLocationUri()const
|
||||
{
|
||||
return locationUri_;
|
||||
}
|
||||
|
||||
void CreateDatabaseRequest::setLocationUri(const std::string& locationUri)
|
||||
{
|
||||
locationUri_ = locationUri;
|
||||
setParameter("LocationUri", locationUri);
|
||||
}
|
||||
|
||||
std::string CreateDatabaseRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateDatabaseRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/CreateDatabaseResult.cc
Normal file
72
openanalytics-open/src/model/CreateDatabaseResult.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/openanalytics-open/model/CreateDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
CreateDatabaseResult::CreateDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDatabaseResult::CreateDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDatabaseResult::~CreateDatabaseResult()
|
||||
{}
|
||||
|
||||
void CreateDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDatabaseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long CreateDatabaseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateDatabaseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateDatabaseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
openanalytics-open/src/model/CreateInstanceRequest.cc
Normal file
73
openanalytics-open/src/model/CreateInstanceRequest.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/openanalytics-open/model/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "CreateInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceRequest::~CreateInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setBodyParameter("ChargeType", chargeType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setBodyParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getComponent()const
|
||||
{
|
||||
return component_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setComponent(const std::string& component)
|
||||
{
|
||||
component_ = component;
|
||||
setBodyParameter("Component", component);
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/CreateInstanceResult.cc
Normal file
72
openanalytics-open/src/model/CreateInstanceResult.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/openanalytics-open/model/CreateInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInstanceResult::~CreateInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorInfo"].isNull())
|
||||
errorInfo_ = value["ErrorInfo"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getErrorInfo()const
|
||||
{
|
||||
return errorInfo_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CreateInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::CreateServiceLinkedRoleRequest;
|
||||
|
||||
CreateServiceLinkedRoleRequest::CreateServiceLinkedRoleRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "CreateServiceLinkedRole")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceLinkedRoleRequest::~CreateServiceLinkedRoleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateServiceLinkedRoleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateServiceLinkedRoleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateServiceLinkedRoleResult::~CreateServiceLinkedRoleResult()
|
||||
{}
|
||||
|
||||
void CreateServiceLinkedRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Arn"].isNull())
|
||||
dataObject.arn = valueDataDataItem["Arn"].asString();
|
||||
if(!valueDataDataItem["AssumeRolePolicyDocument"].isNull())
|
||||
dataObject.assumeRolePolicyDocument = valueDataDataItem["AssumeRolePolicyDocument"].asString();
|
||||
if(!valueDataDataItem["CreateDate"].isNull())
|
||||
dataObject.createDate = valueDataDataItem["CreateDate"].asString();
|
||||
if(!valueDataDataItem["Description"].isNull())
|
||||
dataObject.description = valueDataDataItem["Description"].asString();
|
||||
if(!valueDataDataItem["IsServiceLinkRole"].isNull())
|
||||
dataObject.isServiceLinkRole = valueDataDataItem["IsServiceLinkRole"].asString() == "true";
|
||||
if(!valueDataDataItem["RoleId"].isNull())
|
||||
dataObject.roleId = valueDataDataItem["RoleId"].asString();
|
||||
if(!valueDataDataItem["RoleName"].isNull())
|
||||
dataObject.roleName = valueDataDataItem["RoleName"].asString();
|
||||
if(!valueDataDataItem["RolePrincipalName"].isNull())
|
||||
dataObject.rolePrincipalName = valueDataDataItem["RolePrincipalName"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<CreateServiceLinkedRoleResult::DataItem> CreateServiceLinkedRoleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateServiceLinkedRoleResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
117
openanalytics-open/src/model/CreateTableRequest.cc
Normal file
117
openanalytics-open/src/model/CreateTableRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/CreateTableRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::CreateTableRequest;
|
||||
|
||||
CreateTableRequest::CreateTableRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "CreateTable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTableRequest::~CreateTableRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTableRequest::getTableType()const
|
||||
{
|
||||
return tableType_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setTableType(const std::string& tableType)
|
||||
{
|
||||
tableType_ = tableType;
|
||||
setParameter("TableType", tableType);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getViewOriginalText()const
|
||||
{
|
||||
return viewOriginalText_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setViewOriginalText(const std::string& viewOriginalText)
|
||||
{
|
||||
viewOriginalText_ = viewOriginalText;
|
||||
setParameter("ViewOriginalText", viewOriginalText);
|
||||
}
|
||||
|
||||
Struct CreateTableRequest::getStorageDescriptor()const
|
||||
{
|
||||
return storageDescriptor_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setStorageDescriptor(const Struct& storageDescriptor)
|
||||
{
|
||||
storageDescriptor_ = storageDescriptor;
|
||||
setParameter("StorageDescriptor", std::to_string(storageDescriptor));
|
||||
}
|
||||
|
||||
Array CreateTableRequest::getPartitionKeys()const
|
||||
{
|
||||
return partitionKeys_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setPartitionKeys(const Array& partitionKeys)
|
||||
{
|
||||
partitionKeys_ = partitionKeys;
|
||||
setParameter("PartitionKeys", std::to_string(partitionKeys));
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getViewExpandedText()const
|
||||
{
|
||||
return viewExpandedText_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setViewExpandedText(const std::string& viewExpandedText)
|
||||
{
|
||||
viewExpandedText_ = viewExpandedText;
|
||||
setParameter("ViewExpandedText", viewExpandedText);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/CreateTableResult.cc
Normal file
72
openanalytics-open/src/model/CreateTableResult.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/openanalytics-open/model/CreateTableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
CreateTableResult::CreateTableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTableResult::CreateTableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTableResult::~CreateTableResult()
|
||||
{}
|
||||
|
||||
void CreateTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTableResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long CreateTableResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateTableResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateTableResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
openanalytics-open/src/model/CreateUserNetConfigRequest.cc
Normal file
62
openanalytics-open/src/model/CreateUserNetConfigRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/CreateUserNetConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::CreateUserNetConfigRequest;
|
||||
|
||||
CreateUserNetConfigRequest::CreateUserNetConfigRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "CreateUserNetConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUserNetConfigRequest::~CreateUserNetConfigRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUserNetConfigRequest::getSwitchId()const
|
||||
{
|
||||
return switchId_;
|
||||
}
|
||||
|
||||
void CreateUserNetConfigRequest::setSwitchId(const std::string& switchId)
|
||||
{
|
||||
switchId_ = switchId;
|
||||
setBodyParameter("SwitchId", switchId);
|
||||
}
|
||||
|
||||
std::string CreateUserNetConfigRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreateUserNetConfigRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setBodyParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
std::string CreateUserNetConfigRequest::getVcName()const
|
||||
{
|
||||
return vcName_;
|
||||
}
|
||||
|
||||
void CreateUserNetConfigRequest::setVcName(const std::string& vcName)
|
||||
{
|
||||
vcName_ = vcName;
|
||||
setBodyParameter("VcName", vcName);
|
||||
}
|
||||
|
||||
44
openanalytics-open/src/model/CreateUserNetConfigResult.cc
Normal file
44
openanalytics-open/src/model/CreateUserNetConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/CreateUserNetConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
CreateUserNetConfigResult::CreateUserNetConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserNetConfigResult::CreateUserNetConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserNetConfigResult::~CreateUserNetConfigResult()
|
||||
{}
|
||||
|
||||
void CreateUserNetConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::CreateVirtualClusterForSparkRequest;
|
||||
|
||||
CreateVirtualClusterForSparkRequest::CreateVirtualClusterForSparkRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "CreateVirtualClusterForSpark")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVirtualClusterForSparkRequest::~CreateVirtualClusterForSparkRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVirtualClusterForSparkRequest::getDefaultExecutorSpecName()const
|
||||
{
|
||||
return defaultExecutorSpecName_;
|
||||
}
|
||||
|
||||
void CreateVirtualClusterForSparkRequest::setDefaultExecutorSpecName(const std::string& defaultExecutorSpecName)
|
||||
{
|
||||
defaultExecutorSpecName_ = defaultExecutorSpecName;
|
||||
setBodyParameter("DefaultExecutorSpecName", defaultExecutorSpecName);
|
||||
}
|
||||
|
||||
float CreateVirtualClusterForSparkRequest::getMaxMemory()const
|
||||
{
|
||||
return maxMemory_;
|
||||
}
|
||||
|
||||
void CreateVirtualClusterForSparkRequest::setMaxMemory(float maxMemory)
|
||||
{
|
||||
maxMemory_ = maxMemory;
|
||||
setBodyParameter("MaxMemory", std::to_string(maxMemory));
|
||||
}
|
||||
|
||||
std::string CreateVirtualClusterForSparkRequest::getSparkModuleReleaseName()const
|
||||
{
|
||||
return sparkModuleReleaseName_;
|
||||
}
|
||||
|
||||
void CreateVirtualClusterForSparkRequest::setSparkModuleReleaseName(const std::string& sparkModuleReleaseName)
|
||||
{
|
||||
sparkModuleReleaseName_ = sparkModuleReleaseName;
|
||||
setBodyParameter("SparkModuleReleaseName", sparkModuleReleaseName);
|
||||
}
|
||||
|
||||
std::string CreateVirtualClusterForSparkRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateVirtualClusterForSparkRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
long CreateVirtualClusterForSparkRequest::getDefaultExecutorNumbers()const
|
||||
{
|
||||
return defaultExecutorNumbers_;
|
||||
}
|
||||
|
||||
void CreateVirtualClusterForSparkRequest::setDefaultExecutorNumbers(long defaultExecutorNumbers)
|
||||
{
|
||||
defaultExecutorNumbers_ = defaultExecutorNumbers;
|
||||
setBodyParameter("DefaultExecutorNumbers", std::to_string(defaultExecutorNumbers));
|
||||
}
|
||||
|
||||
float CreateVirtualClusterForSparkRequest::getMaxCpu()const
|
||||
{
|
||||
return maxCpu_;
|
||||
}
|
||||
|
||||
void CreateVirtualClusterForSparkRequest::setMaxCpu(float maxCpu)
|
||||
{
|
||||
maxCpu_ = maxCpu;
|
||||
setBodyParameter("MaxCpu", std::to_string(maxCpu));
|
||||
}
|
||||
|
||||
std::string CreateVirtualClusterForSparkRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateVirtualClusterForSparkRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateVirtualClusterForSparkRequest::getDefaultDriverSpecName()const
|
||||
{
|
||||
return defaultDriverSpecName_;
|
||||
}
|
||||
|
||||
void CreateVirtualClusterForSparkRequest::setDefaultDriverSpecName(const std::string& defaultDriverSpecName)
|
||||
{
|
||||
defaultDriverSpecName_ = defaultDriverSpecName;
|
||||
setBodyParameter("DefaultDriverSpecName", defaultDriverSpecName);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/CreateVirtualClusterForSparkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
CreateVirtualClusterForSparkResult::CreateVirtualClusterForSparkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVirtualClusterForSparkResult::CreateVirtualClusterForSparkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVirtualClusterForSparkResult::~CreateVirtualClusterForSparkResult()
|
||||
{}
|
||||
|
||||
void CreateVirtualClusterForSparkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
openanalytics-open/src/model/DecodeStsTokenRequest.cc
Normal file
62
openanalytics-open/src/model/DecodeStsTokenRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DecodeStsTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DecodeStsTokenRequest;
|
||||
|
||||
DecodeStsTokenRequest::DecodeStsTokenRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DecodeStsToken")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DecodeStsTokenRequest::~DecodeStsTokenRequest()
|
||||
{}
|
||||
|
||||
std::string DecodeStsTokenRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DecodeStsTokenRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DecodeStsTokenRequest::getAccessKey()const
|
||||
{
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void DecodeStsTokenRequest::setAccessKey(const std::string& accessKey)
|
||||
{
|
||||
accessKey_ = accessKey;
|
||||
setParameter("AccessKey", accessKey);
|
||||
}
|
||||
|
||||
std::string DecodeStsTokenRequest::getToken()const
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
void DecodeStsTokenRequest::setToken(const std::string& token)
|
||||
{
|
||||
token_ = token;
|
||||
setParameter("Token", token);
|
||||
}
|
||||
|
||||
85
openanalytics-open/src/model/DecodeStsTokenResult.cc
Normal file
85
openanalytics-open/src/model/DecodeStsTokenResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/DecodeStsTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DecodeStsTokenResult::DecodeStsTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DecodeStsTokenResult::DecodeStsTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DecodeStsTokenResult::~DecodeStsTokenResult()
|
||||
{}
|
||||
|
||||
void DecodeStsTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AccountUid"].isNull())
|
||||
data_.accountUid = std::stol(dataNode["AccountUid"].asString());
|
||||
if(!dataNode["AccountBid"].isNull())
|
||||
data_.accountBid = std::stol(dataNode["AccountBid"].asString());
|
||||
if(!dataNode["GrantorId"].isNull())
|
||||
data_.grantorId = std::stol(dataNode["GrantorId"].asString());
|
||||
if(!dataNode["TokenPrincipalId"].isNull())
|
||||
data_.tokenPrincipalId = dataNode["TokenPrincipalId"].asString();
|
||||
if(!dataNode["TokenPrincipalName"].isNull())
|
||||
data_.tokenPrincipalName = dataNode["TokenPrincipalName"].asString();
|
||||
if(!dataNode["MfaAuthenticated"].isNull())
|
||||
data_.mfaAuthenticated = dataNode["MfaAuthenticated"].asString() == "true";
|
||||
if(!dataNode["RoleId"].isNull())
|
||||
data_.roleId = std::stol(dataNode["RoleId"].asString());
|
||||
if(!dataNode["AkProxy"].isNull())
|
||||
data_.akProxy = dataNode["AkProxy"].asString();
|
||||
if(!dataNode["ProxyTrustTransportInfo"].isNull())
|
||||
data_.proxyTrustTransportInfo = dataNode["ProxyTrustTransportInfo"].asString() == "true";
|
||||
if(!dataNode["Policy"].isNull())
|
||||
data_.policy = dataNode["Policy"].asString();
|
||||
if(!dataNode["RoleName"].isNull())
|
||||
data_.roleName = dataNode["RoleName"].asString();
|
||||
if(!dataNode["PlayerUid"].isNull())
|
||||
data_.playerUid = dataNode["PlayerUid"].asString();
|
||||
if(!dataNode["ExpireDate"].isNull())
|
||||
data_.expireDate = std::stol(dataNode["ExpireDate"].asString());
|
||||
if(!dataNode["TokenType"].isNull())
|
||||
data_.tokenType = dataNode["TokenType"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
DecodeStsTokenResult::Data DecodeStsTokenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DecodeStsTokenResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
73
openanalytics-open/src/model/DeleteAccountRequest.cc
Normal file
73
openanalytics-open/src/model/DeleteAccountRequest.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/openanalytics-open/model/DeleteAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DeleteAccountRequest;
|
||||
|
||||
DeleteAccountRequest::DeleteAccountRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DeleteAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAccountRequest::~DeleteAccountRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAccountRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteAccountRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteAccountRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void DeleteAccountRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setBodyParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
bool DeleteAccountRequest::getIsShort()const
|
||||
{
|
||||
return isShort_;
|
||||
}
|
||||
|
||||
void DeleteAccountRequest::setIsShort(bool isShort)
|
||||
{
|
||||
isShort_ = isShort;
|
||||
setBodyParameter("IsShort", isShort ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteAccountRequest::getIsServiceUser()const
|
||||
{
|
||||
return isServiceUser_;
|
||||
}
|
||||
|
||||
void DeleteAccountRequest::setIsServiceUser(bool isServiceUser)
|
||||
{
|
||||
isServiceUser_ = isServiceUser;
|
||||
setBodyParameter("IsServiceUser", isServiceUser ? "true" : "false");
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/DeleteAccountResult.cc
Normal file
51
openanalytics-open/src/model/DeleteAccountResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DeleteAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DeleteAccountResult::DeleteAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAccountResult::DeleteAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAccountResult::~DeleteAccountResult()
|
||||
{}
|
||||
|
||||
void DeleteAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAccountResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
40
openanalytics-open/src/model/DeleteUserNetConfigRequest.cc
Normal file
40
openanalytics-open/src/model/DeleteUserNetConfigRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DeleteUserNetConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DeleteUserNetConfigRequest;
|
||||
|
||||
DeleteUserNetConfigRequest::DeleteUserNetConfigRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DeleteUserNetConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserNetConfigRequest::~DeleteUserNetConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteUserNetConfigRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteUserNetConfigRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
44
openanalytics-open/src/model/DeleteUserNetConfigResult.cc
Normal file
44
openanalytics-open/src/model/DeleteUserNetConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/DeleteUserNetConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DeleteUserNetConfigResult::DeleteUserNetConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUserNetConfigResult::DeleteUserNetConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUserNetConfigResult::~DeleteUserNetConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteUserNetConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/DescribeCapacityRequest.cc
Normal file
51
openanalytics-open/src/model/DescribeCapacityRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DescribeCapacityRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DescribeCapacityRequest;
|
||||
|
||||
DescribeCapacityRequest::DescribeCapacityRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeCapacity")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCapacityRequest::~DescribeCapacityRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCapacityRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCapacityRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeCapacityRequest::getExternalBizAliyunId()const
|
||||
{
|
||||
return externalBizAliyunId_;
|
||||
}
|
||||
|
||||
void DescribeCapacityRequest::setExternalBizAliyunId(const std::string& externalBizAliyunId)
|
||||
{
|
||||
externalBizAliyunId_ = externalBizAliyunId;
|
||||
setBodyParameter("ExternalBizAliyunId", externalBizAliyunId);
|
||||
}
|
||||
|
||||
58
openanalytics-open/src/model/DescribeCapacityResult.cc
Normal file
58
openanalytics-open/src/model/DescribeCapacityResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DescribeCapacityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DescribeCapacityResult::DescribeCapacityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCapacityResult::DescribeCapacityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCapacityResult::~DescribeCapacityResult()
|
||||
{}
|
||||
|
||||
void DescribeCapacityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["Storage"].isNull())
|
||||
storage_ = std::stoi(value["Storage"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCapacityResult::getStorage()const
|
||||
{
|
||||
return storage_;
|
||||
}
|
||||
|
||||
std::string DescribeCapacityResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DescribeDataLakeAnalyticsServiceRequest;
|
||||
|
||||
DescribeDataLakeAnalyticsServiceRequest::DescribeDataLakeAnalyticsServiceRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeDataLakeAnalyticsService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataLakeAnalyticsServiceRequest::~DescribeDataLakeAnalyticsServiceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataLakeAnalyticsServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDataLakeAnalyticsServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDataLakeAnalyticsServiceRequest::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
void DescribeDataLakeAnalyticsServiceRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
@@ -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/openanalytics-open/model/DescribeDataLakeAnalyticsServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DescribeDataLakeAnalyticsServiceResult::DescribeDataLakeAnalyticsServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataLakeAnalyticsServiceResult::DescribeDataLakeAnalyticsServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataLakeAnalyticsServiceResult::~DescribeDataLakeAnalyticsServiceResult()
|
||||
{}
|
||||
|
||||
void DescribeDataLakeAnalyticsServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorInfo"].isNull())
|
||||
errorInfo_ = value["ErrorInfo"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDataLakeAnalyticsServiceResult::getErrorInfo()const
|
||||
{
|
||||
return errorInfo_;
|
||||
}
|
||||
|
||||
std::string DescribeDataLakeAnalyticsServiceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool DescribeDataLakeAnalyticsServiceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeDataLakeAnalyticsServiceResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
29
openanalytics-open/src/model/DescribeRegionListRequest.cc
Normal file
29
openanalytics-open/src/model/DescribeRegionListRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/DescribeRegionListRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DescribeRegionListRequest;
|
||||
|
||||
DescribeRegionListRequest::DescribeRegionListRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeRegionList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionListRequest::~DescribeRegionListRequest()
|
||||
{}
|
||||
|
||||
64
openanalytics-open/src/model/DescribeRegionListResult.cc
Normal file
64
openanalytics-open/src/model/DescribeRegionListResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DescribeRegionListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DescribeRegionListResult::DescribeRegionListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionListResult::DescribeRegionListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionListResult::~DescribeRegionListResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionListNode = value["RegionList"]["RegionListItem"];
|
||||
for (auto valueRegionListRegionListItem : allRegionListNode)
|
||||
{
|
||||
RegionListItem regionListObject;
|
||||
if(!valueRegionListRegionListItem["regionID"].isNull())
|
||||
regionListObject.regionID = valueRegionListRegionListItem["regionID"].asString();
|
||||
regionList_.push_back(regionListObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionListResult::RegionListItem> DescribeRegionListResult::getRegionList()const
|
||||
{
|
||||
return regionList_;
|
||||
}
|
||||
|
||||
std::string DescribeRegionListResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DescribeVirtualClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DescribeVirtualClusterRequest;
|
||||
|
||||
DescribeVirtualClusterRequest::DescribeVirtualClusterRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeVirtualCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeVirtualClusterRequest::~DescribeVirtualClusterRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVirtualClusterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeVirtualClusterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
83
openanalytics-open/src/model/DescribeVirtualClusterResult.cc
Normal file
83
openanalytics-open/src/model/DescribeVirtualClusterResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DescribeVirtualClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DescribeVirtualClusterResult::DescribeVirtualClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVirtualClusterResult::DescribeVirtualClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVirtualClusterResult::~DescribeVirtualClusterResult()
|
||||
{}
|
||||
|
||||
void DescribeVirtualClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
if(!valueDataDataItem["Type"].isNull())
|
||||
dataObject.type = valueDataDataItem["Type"].asString();
|
||||
if(!valueDataDataItem["Status"].isNull())
|
||||
dataObject.status = valueDataDataItem["Status"].asString();
|
||||
if(!valueDataDataItem["CreatorId"].isNull())
|
||||
dataObject.creatorId = valueDataDataItem["CreatorId"].asString();
|
||||
if(!valueDataDataItem["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataDataItem["CreateTime"].asString();
|
||||
if(!valueDataDataItem["SparkEngineModuleName"].isNull())
|
||||
dataObject.sparkEngineModuleName = valueDataDataItem["SparkEngineModuleName"].asString();
|
||||
if(!valueDataDataItem["DefaultExecutorSpecName"].isNull())
|
||||
dataObject.defaultExecutorSpecName = valueDataDataItem["DefaultExecutorSpecName"].asString();
|
||||
if(!valueDataDataItem["DefaultDriverSpecName"].isNull())
|
||||
dataObject.defaultDriverSpecName = valueDataDataItem["DefaultDriverSpecName"].asString();
|
||||
if(!valueDataDataItem["DefaultExecutorNumbers"].isNull())
|
||||
dataObject.defaultExecutorNumbers = std::stol(valueDataDataItem["DefaultExecutorNumbers"].asString());
|
||||
if(!valueDataDataItem["SparkVersionDescription"].isNull())
|
||||
dataObject.sparkVersionDescription = valueDataDataItem["SparkVersionDescription"].asString();
|
||||
if(!valueDataDataItem["MaxCpu"].isNull())
|
||||
dataObject.maxCpu = std::stof(valueDataDataItem["MaxCpu"].asString());
|
||||
if(!valueDataDataItem["MaxMemory"].isNull())
|
||||
dataObject.maxMemory = std::stof(valueDataDataItem["MaxMemory"].asString());
|
||||
if(!valueDataDataItem["MaxCpuLimit"].isNull())
|
||||
dataObject.maxCpuLimit = std::stof(valueDataDataItem["MaxCpuLimit"].asString());
|
||||
if(!valueDataDataItem["MaxMemoryLimit"].isNull())
|
||||
dataObject.maxMemoryLimit = std::stof(valueDataDataItem["MaxMemoryLimit"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeVirtualClusterResult::DataItem> DescribeVirtualClusterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Request.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DescribeVirtualClusterV2Request;
|
||||
|
||||
DescribeVirtualClusterV2Request::DescribeVirtualClusterV2Request() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeVirtualClusterV2")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeVirtualClusterV2Request::~DescribeVirtualClusterV2Request()
|
||||
{}
|
||||
|
||||
std::string DescribeVirtualClusterV2Request::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeVirtualClusterV2Request::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Result.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DescribeVirtualClusterV2Result::DescribeVirtualClusterV2Result() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVirtualClusterV2Result::DescribeVirtualClusterV2Result(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVirtualClusterV2Result::~DescribeVirtualClusterV2Result()
|
||||
{}
|
||||
|
||||
void DescribeVirtualClusterV2Result::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
if(!valueDataDataItem["Type"].isNull())
|
||||
dataObject.type = valueDataDataItem["Type"].asString();
|
||||
if(!valueDataDataItem["Status"].isNull())
|
||||
dataObject.status = valueDataDataItem["Status"].asString();
|
||||
if(!valueDataDataItem["CreatorId"].isNull())
|
||||
dataObject.creatorId = valueDataDataItem["CreatorId"].asString();
|
||||
if(!valueDataDataItem["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataDataItem["CreateTime"].asString();
|
||||
if(!valueDataDataItem["MaxCpu"].isNull())
|
||||
dataObject.maxCpu = std::stof(valueDataDataItem["MaxCpu"].asString());
|
||||
if(!valueDataDataItem["ChargeType"].isNull())
|
||||
dataObject.chargeType = valueDataDataItem["ChargeType"].asString();
|
||||
if(!valueDataDataItem["MinCpu"].isNull())
|
||||
dataObject.minCpu = valueDataDataItem["MinCpu"].asString();
|
||||
auto allUserNetWorkConfigListNode = valueDataDataItem["UserNetWorkConfigList"]["UserNetWorkConfigListItem"];
|
||||
for (auto valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem : allUserNetWorkConfigListNode)
|
||||
{
|
||||
DataItem::UserNetWorkConfigListItem userNetWorkConfigListObject;
|
||||
if(!valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["SwitchId"].isNull())
|
||||
userNetWorkConfigListObject.switchId = valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["SwitchId"].asString();
|
||||
if(!valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["SecurityGroupId"].isNull())
|
||||
userNetWorkConfigListObject.securityGroupId = valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["SecurityGroupId"].asString();
|
||||
if(!valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["Id"].isNull())
|
||||
userNetWorkConfigListObject.id = std::stol(valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["Id"].asString());
|
||||
dataObject.userNetWorkConfigList.push_back(userNetWorkConfigListObject);
|
||||
}
|
||||
auto sparkEngineConfigNode = value["SparkEngineConfig"];
|
||||
if(!sparkEngineConfigNode["SparkModuleReleaseName"].isNull())
|
||||
dataObject.sparkEngineConfig.sparkModuleReleaseName = sparkEngineConfigNode["SparkModuleReleaseName"].asString();
|
||||
if(!sparkEngineConfigNode["DefaultExecutorSpecName"].isNull())
|
||||
dataObject.sparkEngineConfig.defaultExecutorSpecName = sparkEngineConfigNode["DefaultExecutorSpecName"].asString();
|
||||
if(!sparkEngineConfigNode["DefaultDriverSpecName"].isNull())
|
||||
dataObject.sparkEngineConfig.defaultDriverSpecName = sparkEngineConfigNode["DefaultDriverSpecName"].asString();
|
||||
if(!sparkEngineConfigNode["DefaultExecutorNumbers"].isNull())
|
||||
dataObject.sparkEngineConfig.defaultExecutorNumbers = std::stol(sparkEngineConfigNode["DefaultExecutorNumbers"].asString());
|
||||
if(!sparkEngineConfigNode["SparkVersionDescription"].isNull())
|
||||
dataObject.sparkEngineConfig.sparkVersionDescription = sparkEngineConfigNode["SparkVersionDescription"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeVirtualClusterV2Result::DataItem> DescribeVirtualClusterV2Result::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
40
openanalytics-open/src/model/DestroyVirtualClusterRequest.cc
Normal file
40
openanalytics-open/src/model/DestroyVirtualClusterRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DestroyVirtualClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DestroyVirtualClusterRequest;
|
||||
|
||||
DestroyVirtualClusterRequest::DestroyVirtualClusterRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "DestroyVirtualCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DestroyVirtualClusterRequest::~DestroyVirtualClusterRequest()
|
||||
{}
|
||||
|
||||
std::string DestroyVirtualClusterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DestroyVirtualClusterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
44
openanalytics-open/src/model/DestroyVirtualClusterResult.cc
Normal file
44
openanalytics-open/src/model/DestroyVirtualClusterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/DestroyVirtualClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DestroyVirtualClusterResult::DestroyVirtualClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DestroyVirtualClusterResult::DestroyVirtualClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DestroyVirtualClusterResult::~DestroyVirtualClusterResult()
|
||||
{}
|
||||
|
||||
void DestroyVirtualClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/DropDatabaseRequest.cc
Normal file
51
openanalytics-open/src/model/DropDatabaseRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DropDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DropDatabaseRequest;
|
||||
|
||||
DropDatabaseRequest::DropDatabaseRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "DropDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DropDatabaseRequest::~DropDatabaseRequest()
|
||||
{}
|
||||
|
||||
bool DropDatabaseRequest::getCascade()const
|
||||
{
|
||||
return cascade_;
|
||||
}
|
||||
|
||||
void DropDatabaseRequest::setCascade(bool cascade)
|
||||
{
|
||||
cascade_ = cascade;
|
||||
setParameter("Cascade", cascade ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DropDatabaseRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DropDatabaseRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/DropDatabaseResult.cc
Normal file
72
openanalytics-open/src/model/DropDatabaseResult.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/openanalytics-open/model/DropDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DropDatabaseResult::DropDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DropDatabaseResult::DropDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DropDatabaseResult::~DropDatabaseResult()
|
||||
{}
|
||||
|
||||
void DropDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DropDatabaseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DropDatabaseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DropDatabaseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DropDatabaseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
openanalytics-open/src/model/DropPartitionRequest.cc
Normal file
62
openanalytics-open/src/model/DropPartitionRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DropPartitionRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DropPartitionRequest;
|
||||
|
||||
DropPartitionRequest::DropPartitionRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "DropPartition")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DropPartitionRequest::~DropPartitionRequest()
|
||||
{}
|
||||
|
||||
std::string DropPartitionRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DropPartitionRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
Array DropPartitionRequest::getPartValues()const
|
||||
{
|
||||
return partValues_;
|
||||
}
|
||||
|
||||
void DropPartitionRequest::setPartValues(const Array& partValues)
|
||||
{
|
||||
partValues_ = partValues;
|
||||
setParameter("PartValues", std::to_string(partValues));
|
||||
}
|
||||
|
||||
std::string DropPartitionRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void DropPartitionRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/DropPartitionResult.cc
Normal file
72
openanalytics-open/src/model/DropPartitionResult.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/openanalytics-open/model/DropPartitionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DropPartitionResult::DropPartitionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DropPartitionResult::DropPartitionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DropPartitionResult::~DropPartitionResult()
|
||||
{}
|
||||
|
||||
void DropPartitionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DropPartitionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DropPartitionResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DropPartitionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DropPartitionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/DropTableRequest.cc
Normal file
51
openanalytics-open/src/model/DropTableRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/DropTableRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::DropTableRequest;
|
||||
|
||||
DropTableRequest::DropTableRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "DropTable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DropTableRequest::~DropTableRequest()
|
||||
{}
|
||||
|
||||
std::string DropTableRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DropTableRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DropTableRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void DropTableRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/DropTableResult.cc
Normal file
72
openanalytics-open/src/model/DropTableResult.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/openanalytics-open/model/DropTableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
DropTableResult::DropTableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DropTableResult::DropTableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DropTableResult::~DropTableResult()
|
||||
{}
|
||||
|
||||
void DropTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DropTableResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DropTableResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DropTableResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DropTableResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::ForbidAutomaticMetaSyncAsIntegrationAccountRequest;
|
||||
|
||||
ForbidAutomaticMetaSyncAsIntegrationAccountRequest::ForbidAutomaticMetaSyncAsIntegrationAccountRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "ForbidAutomaticMetaSyncAsIntegrationAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ForbidAutomaticMetaSyncAsIntegrationAccountRequest::~ForbidAutomaticMetaSyncAsIntegrationAccountRequest()
|
||||
{}
|
||||
|
||||
std::string ForbidAutomaticMetaSyncAsIntegrationAccountRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ForbidAutomaticMetaSyncAsIntegrationAccountRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
ForbidAutomaticMetaSyncAsIntegrationAccountResult::ForbidAutomaticMetaSyncAsIntegrationAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ForbidAutomaticMetaSyncAsIntegrationAccountResult::ForbidAutomaticMetaSyncAsIntegrationAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ForbidAutomaticMetaSyncAsIntegrationAccountResult::~ForbidAutomaticMetaSyncAsIntegrationAccountResult()
|
||||
{}
|
||||
|
||||
void ForbidAutomaticMetaSyncAsIntegrationAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HasUpdated"].isNull())
|
||||
hasUpdated_ = value["HasUpdated"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool ForbidAutomaticMetaSyncAsIntegrationAccountResult::getHasUpdated()const
|
||||
{
|
||||
return hasUpdated_;
|
||||
}
|
||||
|
||||
29
openanalytics-open/src/model/GetAllDatabasesRequest.cc
Normal file
29
openanalytics-open/src/model/GetAllDatabasesRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/GetAllDatabasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetAllDatabasesRequest;
|
||||
|
||||
GetAllDatabasesRequest::GetAllDatabasesRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "GetAllDatabases")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAllDatabasesRequest::~GetAllDatabasesRequest()
|
||||
{}
|
||||
|
||||
73
openanalytics-open/src/model/GetAllDatabasesResult.cc
Normal file
73
openanalytics-open/src/model/GetAllDatabasesResult.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/openanalytics-open/model/GetAllDatabasesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetAllDatabasesResult::GetAllDatabasesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAllDatabasesResult::GetAllDatabasesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAllDatabasesResult::~GetAllDatabasesResult()
|
||||
{}
|
||||
|
||||
void GetAllDatabasesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetAllDatabasesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetAllDatabasesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetAllDatabasesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetAllDatabasesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
openanalytics-open/src/model/GetAllTablesRequest.cc
Normal file
40
openanalytics-open/src/model/GetAllTablesRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetAllTablesRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetAllTablesRequest;
|
||||
|
||||
GetAllTablesRequest::GetAllTablesRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "GetAllTables")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAllTablesRequest::~GetAllTablesRequest()
|
||||
{}
|
||||
|
||||
std::string GetAllTablesRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void GetAllTablesRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
73
openanalytics-open/src/model/GetAllTablesResult.cc
Normal file
73
openanalytics-open/src/model/GetAllTablesResult.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/openanalytics-open/model/GetAllTablesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetAllTablesResult::GetAllTablesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAllTablesResult::GetAllTablesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAllTablesResult::~GetAllTablesResult()
|
||||
{}
|
||||
|
||||
void GetAllTablesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["TableLists"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetAllTablesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetAllTablesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetAllTablesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetAllTablesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
openanalytics-open/src/model/GetAllowIPRequest.cc
Normal file
62
openanalytics-open/src/model/GetAllowIPRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetAllowIPRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetAllowIPRequest;
|
||||
|
||||
GetAllowIPRequest::GetAllowIPRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetAllowIP")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAllowIPRequest::~GetAllowIPRequest()
|
||||
{}
|
||||
|
||||
std::string GetAllowIPRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setNetworkType(const std::string& networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setBodyParameter("NetworkType", networkType);
|
||||
}
|
||||
|
||||
std::string GetAllowIPRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void GetAllowIPRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setBodyParameter("Product", product);
|
||||
}
|
||||
|
||||
58
openanalytics-open/src/model/GetAllowIPResult.cc
Normal file
58
openanalytics-open/src/model/GetAllowIPResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetAllowIPResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetAllowIPResult::GetAllowIPResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAllowIPResult::GetAllowIPResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAllowIPResult::~GetAllowIPResult()
|
||||
{}
|
||||
|
||||
void GetAllowIPResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["AllowIP"].isNull())
|
||||
allowIP_ = value["AllowIP"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAllowIPResult::getAllowIP()const
|
||||
{
|
||||
return allowIP_;
|
||||
}
|
||||
|
||||
std::string GetAllowIPResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
40
openanalytics-open/src/model/GetConsolePermissionRequest.cc
Normal file
40
openanalytics-open/src/model/GetConsolePermissionRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetConsolePermissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetConsolePermissionRequest;
|
||||
|
||||
GetConsolePermissionRequest::GetConsolePermissionRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetConsolePermission")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetConsolePermissionRequest::~GetConsolePermissionRequest()
|
||||
{}
|
||||
|
||||
std::string GetConsolePermissionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetConsolePermissionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
58
openanalytics-open/src/model/GetConsolePermissionResult.cc
Normal file
58
openanalytics-open/src/model/GetConsolePermissionResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetConsolePermissionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetConsolePermissionResult::GetConsolePermissionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetConsolePermissionResult::GetConsolePermissionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetConsolePermissionResult::~GetConsolePermissionResult()
|
||||
{}
|
||||
|
||||
void GetConsolePermissionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetConsolePermissionResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GetConsolePermissionResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
73
openanalytics-open/src/model/GetDLAServiceStatusRequest.cc
Normal file
73
openanalytics-open/src/model/GetDLAServiceStatusRequest.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/openanalytics-open/model/GetDLAServiceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetDLAServiceStatusRequest;
|
||||
|
||||
GetDLAServiceStatusRequest::GetDLAServiceStatusRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetDLAServiceStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDLAServiceStatusRequest::~GetDLAServiceStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetDLAServiceStatusRequest::getExternalUid()const
|
||||
{
|
||||
return externalUid_;
|
||||
}
|
||||
|
||||
void GetDLAServiceStatusRequest::setExternalUid(const std::string& externalUid)
|
||||
{
|
||||
externalUid_ = externalUid;
|
||||
setBodyParameter("ExternalUid", externalUid);
|
||||
}
|
||||
|
||||
std::string GetDLAServiceStatusRequest::getExternalAliyunUid()const
|
||||
{
|
||||
return externalAliyunUid_;
|
||||
}
|
||||
|
||||
void GetDLAServiceStatusRequest::setExternalAliyunUid(const std::string& externalAliyunUid)
|
||||
{
|
||||
externalAliyunUid_ = externalAliyunUid;
|
||||
setBodyParameter("ExternalAliyunUid", externalAliyunUid);
|
||||
}
|
||||
|
||||
std::string GetDLAServiceStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetDLAServiceStatusRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetDLAServiceStatusRequest::getExternalBizAliyunUid()const
|
||||
{
|
||||
return externalBizAliyunUid_;
|
||||
}
|
||||
|
||||
void GetDLAServiceStatusRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid)
|
||||
{
|
||||
externalBizAliyunUid_ = externalBizAliyunUid;
|
||||
setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid);
|
||||
}
|
||||
|
||||
63
openanalytics-open/src/model/GetDLAServiceStatusResult.cc
Normal file
63
openanalytics-open/src/model/GetDLAServiceStatusResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetDLAServiceStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetDLAServiceStatusResult::GetDLAServiceStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDLAServiceStatusResult::GetDLAServiceStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDLAServiceStatusResult::~GetDLAServiceStatusResult()
|
||||
{}
|
||||
|
||||
void GetDLAServiceStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userDLAServiceStatusNode = value["UserDLAServiceStatus"];
|
||||
if(!userDLAServiceStatusNode["IsServiceReady"].isNull())
|
||||
userDLAServiceStatus_.isServiceReady = userDLAServiceStatusNode["IsServiceReady"].asString() == "true";
|
||||
if(!userDLAServiceStatusNode["IsOSSOpen"].isNull())
|
||||
userDLAServiceStatus_.isOSSOpen = userDLAServiceStatusNode["IsOSSOpen"].asString() == "true";
|
||||
if(!userDLAServiceStatusNode["IsDLAAccountReady"].isNull())
|
||||
userDLAServiceStatus_.isDLAAccountReady = userDLAServiceStatusNode["IsDLAAccountReady"].asString() == "true";
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetDLAServiceStatusResult::UserDLAServiceStatus GetDLAServiceStatusResult::getUserDLAServiceStatus()const
|
||||
{
|
||||
return userDLAServiceStatus_;
|
||||
}
|
||||
|
||||
std::string GetDLAServiceStatusResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
40
openanalytics-open/src/model/GetDatabaseRequest.cc
Normal file
40
openanalytics-open/src/model/GetDatabaseRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetDatabaseRequest;
|
||||
|
||||
GetDatabaseRequest::GetDatabaseRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "GetDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDatabaseRequest::~GetDatabaseRequest()
|
||||
{}
|
||||
|
||||
std::string GetDatabaseRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetDatabaseRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
83
openanalytics-open/src/model/GetDatabaseResult.cc
Normal file
83
openanalytics-open/src/model/GetDatabaseResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetDatabaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetDatabaseResult::GetDatabaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDatabaseResult::GetDatabaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDatabaseResult::~GetDatabaseResult()
|
||||
{}
|
||||
|
||||
void GetDatabaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto databaseModelNode = value["DatabaseModel"];
|
||||
if(!databaseModelNode["TenantId"].isNull())
|
||||
databaseModel_.tenantId = databaseModelNode["TenantId"].asString();
|
||||
if(!databaseModelNode["OwnerName"].isNull())
|
||||
databaseModel_.ownerName = databaseModelNode["OwnerName"].asString();
|
||||
if(!databaseModelNode["LocationUri"].isNull())
|
||||
databaseModel_.locationUri = databaseModelNode["LocationUri"].asString();
|
||||
if(!databaseModelNode["Parameters"].isNull())
|
||||
databaseModel_.parameters = databaseModelNode["Parameters"].asString();
|
||||
if(!databaseModelNode["Description"].isNull())
|
||||
databaseModel_.description = databaseModelNode["Description"].asString();
|
||||
if(!databaseModelNode["Name"].isNull())
|
||||
databaseModel_.name = databaseModelNode["Name"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
GetDatabaseResult::DatabaseModel GetDatabaseResult::getDatabaseModel()const
|
||||
{
|
||||
return databaseModel_;
|
||||
}
|
||||
|
||||
std::string GetDatabaseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetDatabaseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetDatabaseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/GetEndPointByDomainRequest.cc
Normal file
51
openanalytics-open/src/model/GetEndPointByDomainRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetEndPointByDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetEndPointByDomainRequest;
|
||||
|
||||
GetEndPointByDomainRequest::GetEndPointByDomainRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetEndPointByDomain")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetEndPointByDomainRequest::~GetEndPointByDomainRequest()
|
||||
{}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainRequest::getDomainURL()const
|
||||
{
|
||||
return domainURL_;
|
||||
}
|
||||
|
||||
void GetEndPointByDomainRequest::setDomainURL(const std::string& domainURL)
|
||||
{
|
||||
domainURL_ = domainURL;
|
||||
setBodyParameter("DomainURL", domainURL);
|
||||
}
|
||||
|
||||
79
openanalytics-open/src/model/GetEndPointByDomainResult.cc
Normal file
79
openanalytics-open/src/model/GetEndPointByDomainResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/GetEndPointByDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetEndPointByDomainResult::GetEndPointByDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetEndPointByDomainResult::GetEndPointByDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetEndPointByDomainResult::~GetEndPointByDomainResult()
|
||||
{}
|
||||
|
||||
void GetEndPointByDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto endPointInfoNode = value["EndPointInfo"];
|
||||
if(!endPointInfoNode["endPointID"].isNull())
|
||||
endPointInfo_.endPointID = endPointInfoNode["endPointID"].asString();
|
||||
if(!endPointInfoNode["domainURL"].isNull())
|
||||
endPointInfo_.domainURL = endPointInfoNode["domainURL"].asString();
|
||||
if(!endPointInfoNode["host"].isNull())
|
||||
endPointInfo_.host = endPointInfoNode["host"].asString();
|
||||
if(!endPointInfoNode["port"].isNull())
|
||||
endPointInfo_.port = endPointInfoNode["port"].asString();
|
||||
if(!endPointInfoNode["networkType"].isNull())
|
||||
endPointInfo_.networkType = endPointInfoNode["networkType"].asString();
|
||||
if(!endPointInfoNode["vpcID"].isNull())
|
||||
endPointInfo_.vpcID = endPointInfoNode["vpcID"].asString();
|
||||
if(!endPointInfoNode["vSwitch"].isNull())
|
||||
endPointInfo_.vSwitch = endPointInfoNode["vSwitch"].asString();
|
||||
if(!endPointInfoNode["zone"].isNull())
|
||||
endPointInfo_.zone = endPointInfoNode["zone"].asString();
|
||||
if(!endPointInfoNode["allowIP"].isNull())
|
||||
endPointInfo_.allowIP = endPointInfoNode["allowIP"].asString();
|
||||
if(!endPointInfoNode["cloudInstanceID"].isNull())
|
||||
endPointInfo_.cloudInstanceID = endPointInfoNode["cloudInstanceID"].asString();
|
||||
if(!endPointInfoNode["product"].isNull())
|
||||
endPointInfo_.product = endPointInfoNode["product"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetEndPointByDomainResult::EndPointInfo GetEndPointByDomainResult::getEndPointInfo()const
|
||||
{
|
||||
return endPointInfo_;
|
||||
}
|
||||
|
||||
std::string GetEndPointByDomainResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/GetEndPointRequest.cc
Normal file
51
openanalytics-open/src/model/GetEndPointRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetEndPointRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetEndPointRequest;
|
||||
|
||||
GetEndPointRequest::GetEndPointRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetEndPoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetEndPointRequest::~GetEndPointRequest()
|
||||
{}
|
||||
|
||||
std::string GetEndPointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetEndPointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetEndPointRequest::getEndPointID()const
|
||||
{
|
||||
return endPointID_;
|
||||
}
|
||||
|
||||
void GetEndPointRequest::setEndPointID(const std::string& endPointID)
|
||||
{
|
||||
endPointID_ = endPointID;
|
||||
setBodyParameter("EndPointID", endPointID);
|
||||
}
|
||||
|
||||
79
openanalytics-open/src/model/GetEndPointResult.cc
Normal file
79
openanalytics-open/src/model/GetEndPointResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/GetEndPointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetEndPointResult::GetEndPointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetEndPointResult::GetEndPointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetEndPointResult::~GetEndPointResult()
|
||||
{}
|
||||
|
||||
void GetEndPointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto endPointInfoNode = value["EndPointInfo"];
|
||||
if(!endPointInfoNode["endPointID"].isNull())
|
||||
endPointInfo_.endPointID = endPointInfoNode["endPointID"].asString();
|
||||
if(!endPointInfoNode["domainURL"].isNull())
|
||||
endPointInfo_.domainURL = endPointInfoNode["domainURL"].asString();
|
||||
if(!endPointInfoNode["host"].isNull())
|
||||
endPointInfo_.host = endPointInfoNode["host"].asString();
|
||||
if(!endPointInfoNode["port"].isNull())
|
||||
endPointInfo_.port = endPointInfoNode["port"].asString();
|
||||
if(!endPointInfoNode["networkType"].isNull())
|
||||
endPointInfo_.networkType = endPointInfoNode["networkType"].asString();
|
||||
if(!endPointInfoNode["vpcID"].isNull())
|
||||
endPointInfo_.vpcID = endPointInfoNode["vpcID"].asString();
|
||||
if(!endPointInfoNode["vSwitch"].isNull())
|
||||
endPointInfo_.vSwitch = endPointInfoNode["vSwitch"].asString();
|
||||
if(!endPointInfoNode["zone"].isNull())
|
||||
endPointInfo_.zone = endPointInfoNode["zone"].asString();
|
||||
if(!endPointInfoNode["allowIP"].isNull())
|
||||
endPointInfo_.allowIP = endPointInfoNode["allowIP"].asString();
|
||||
if(!endPointInfoNode["status"].isNull())
|
||||
endPointInfo_.status = endPointInfoNode["status"].asString();
|
||||
if(!endPointInfoNode["product"].isNull())
|
||||
endPointInfo_.product = endPointInfoNode["product"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetEndPointResult::EndPointInfo GetEndPointResult::getEndPointInfo()const
|
||||
{
|
||||
return endPointInfo_;
|
||||
}
|
||||
|
||||
std::string GetEndPointResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/GetJobDetailRequest.cc
Normal file
51
openanalytics-open/src/model/GetJobDetailRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetJobDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetJobDetailRequest;
|
||||
|
||||
GetJobDetailRequest::GetJobDetailRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetJobDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetJobDetailRequest::~GetJobDetailRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobDetailRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void GetJobDetailRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setBodyParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string GetJobDetailRequest::getVcName()const
|
||||
{
|
||||
return vcName_;
|
||||
}
|
||||
|
||||
void GetJobDetailRequest::setVcName(const std::string& vcName)
|
||||
{
|
||||
vcName_ = vcName;
|
||||
setBodyParameter("VcName", vcName);
|
||||
}
|
||||
|
||||
80
openanalytics-open/src/model/GetJobDetailResult.cc
Normal file
80
openanalytics-open/src/model/GetJobDetailResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/GetJobDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetJobDetailResult::GetJobDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobDetailResult::GetJobDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobDetailResult::~GetJobDetailResult()
|
||||
{}
|
||||
|
||||
void GetJobDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobDetailNode = value["JobDetail"];
|
||||
if(!jobDetailNode["JobId"].isNull())
|
||||
jobDetail_.jobId = jobDetailNode["JobId"].asString();
|
||||
if(!jobDetailNode["JobName"].isNull())
|
||||
jobDetail_.jobName = jobDetailNode["JobName"].asString();
|
||||
if(!jobDetailNode["Status"].isNull())
|
||||
jobDetail_.status = jobDetailNode["Status"].asString();
|
||||
if(!jobDetailNode["Detail"].isNull())
|
||||
jobDetail_.detail = jobDetailNode["Detail"].asString();
|
||||
if(!jobDetailNode["SparkUI"].isNull())
|
||||
jobDetail_.sparkUI = jobDetailNode["SparkUI"].asString();
|
||||
if(!jobDetailNode["CreateTime"].isNull())
|
||||
jobDetail_.createTime = jobDetailNode["CreateTime"].asString();
|
||||
if(!jobDetailNode["UpdateTime"].isNull())
|
||||
jobDetail_.updateTime = jobDetailNode["UpdateTime"].asString();
|
||||
if(!jobDetailNode["SubmitTime"].isNull())
|
||||
jobDetail_.submitTime = jobDetailNode["SubmitTime"].asString();
|
||||
if(!jobDetailNode["CreateTimeValue"].isNull())
|
||||
jobDetail_.createTimeValue = jobDetailNode["CreateTimeValue"].asString();
|
||||
if(!jobDetailNode["UpdateTimeValue"].isNull())
|
||||
jobDetail_.updateTimeValue = jobDetailNode["UpdateTimeValue"].asString();
|
||||
if(!jobDetailNode["SubmitTimeValue"].isNull())
|
||||
jobDetail_.submitTimeValue = jobDetailNode["SubmitTimeValue"].asString();
|
||||
if(!jobDetailNode["VcName"].isNull())
|
||||
jobDetail_.vcName = jobDetailNode["VcName"].asString();
|
||||
if(!jobDetailNode["DriverResourceSpec"].isNull())
|
||||
jobDetail_.driverResourceSpec = jobDetailNode["DriverResourceSpec"].asString();
|
||||
if(!jobDetailNode["ExecutorResourceSpec"].isNull())
|
||||
jobDetail_.executorResourceSpec = jobDetailNode["ExecutorResourceSpec"].asString();
|
||||
if(!jobDetailNode["ExecutorInstances"].isNull())
|
||||
jobDetail_.executorInstances = jobDetailNode["ExecutorInstances"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetJobDetailResult::JobDetail GetJobDetailResult::getJobDetail()const
|
||||
{
|
||||
return jobDetail_;
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/GetJobLogRequest.cc
Normal file
51
openanalytics-open/src/model/GetJobLogRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetJobLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetJobLogRequest;
|
||||
|
||||
GetJobLogRequest::GetJobLogRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetJobLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetJobLogRequest::~GetJobLogRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobLogRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void GetJobLogRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setBodyParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string GetJobLogRequest::getVcName()const
|
||||
{
|
||||
return vcName_;
|
||||
}
|
||||
|
||||
void GetJobLogRequest::setVcName(const std::string& vcName)
|
||||
{
|
||||
vcName_ = vcName;
|
||||
setBodyParameter("VcName", vcName);
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/GetJobLogResult.cc
Normal file
51
openanalytics-open/src/model/GetJobLogResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetJobLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetJobLogResult::GetJobLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobLogResult::GetJobLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobLogResult::~GetJobLogResult()
|
||||
{}
|
||||
|
||||
void GetJobLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetJobLogResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/GetJobStatusRequest.cc
Normal file
51
openanalytics-open/src/model/GetJobStatusRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetJobStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetJobStatusRequest;
|
||||
|
||||
GetJobStatusRequest::GetJobStatusRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetJobStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetJobStatusRequest::~GetJobStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobStatusRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void GetJobStatusRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setBodyParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string GetJobStatusRequest::getVcName()const
|
||||
{
|
||||
return vcName_;
|
||||
}
|
||||
|
||||
void GetJobStatusRequest::setVcName(const std::string& vcName)
|
||||
{
|
||||
vcName_ = vcName;
|
||||
setBodyParameter("VcName", vcName);
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/GetJobStatusResult.cc
Normal file
51
openanalytics-open/src/model/GetJobStatusResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetJobStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetJobStatusResult::GetJobStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobStatusResult::GetJobStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobStatusResult::~GetJobStatusResult()
|
||||
{}
|
||||
|
||||
void GetJobStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetJobStatusResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
62
openanalytics-open/src/model/GetPartitionRequest.cc
Normal file
62
openanalytics-open/src/model/GetPartitionRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetPartitionRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetPartitionRequest;
|
||||
|
||||
GetPartitionRequest::GetPartitionRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "GetPartition")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPartitionRequest::~GetPartitionRequest()
|
||||
{}
|
||||
|
||||
std::string GetPartitionRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void GetPartitionRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
Array GetPartitionRequest::getValues()const
|
||||
{
|
||||
return values_;
|
||||
}
|
||||
|
||||
void GetPartitionRequest::setValues(const Array& values)
|
||||
{
|
||||
values_ = values;
|
||||
setParameter("Values", std::to_string(values));
|
||||
}
|
||||
|
||||
std::string GetPartitionRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void GetPartitionRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
110
openanalytics-open/src/model/GetPartitionResult.cc
Normal file
110
openanalytics-open/src/model/GetPartitionResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetPartitionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetPartitionResult::GetPartitionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPartitionResult::GetPartitionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPartitionResult::~GetPartitionResult()
|
||||
{}
|
||||
|
||||
void GetPartitionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto partitionModelNode = value["PartitionModel"];
|
||||
if(!partitionModelNode["TableName"].isNull())
|
||||
partitionModel_.tableName = partitionModelNode["TableName"].asString();
|
||||
if(!partitionModelNode["Parameters"].isNull())
|
||||
partitionModel_.parameters = partitionModelNode["Parameters"].asString();
|
||||
if(!partitionModelNode["CreateTime"].isNull())
|
||||
partitionModel_.createTime = std::stol(partitionModelNode["CreateTime"].asString());
|
||||
if(!partitionModelNode["DbName"].isNull())
|
||||
partitionModel_.dbName = partitionModelNode["DbName"].asString();
|
||||
auto storageDescriptorModelNode = partitionModelNode["StorageDescriptorModel"];
|
||||
if(!storageDescriptorModelNode["Parameters"].isNull())
|
||||
partitionModel_.storageDescriptorModel.parameters = storageDescriptorModelNode["Parameters"].asString();
|
||||
if(!storageDescriptorModelNode["InputFormat"].isNull())
|
||||
partitionModel_.storageDescriptorModel.inputFormat = storageDescriptorModelNode["InputFormat"].asString();
|
||||
if(!storageDescriptorModelNode["OutputFormat"].isNull())
|
||||
partitionModel_.storageDescriptorModel.outputFormat = storageDescriptorModelNode["OutputFormat"].asString();
|
||||
if(!storageDescriptorModelNode["Location"].isNull())
|
||||
partitionModel_.storageDescriptorModel.location = storageDescriptorModelNode["Location"].asString();
|
||||
auto allColsNode = storageDescriptorModelNode["Cols"]["FieldSchemaModel"];
|
||||
for (auto storageDescriptorModelNodeColsFieldSchemaModel : allColsNode)
|
||||
{
|
||||
PartitionModel::StorageDescriptorModel::FieldSchemaModel fieldSchemaModelObject;
|
||||
if(!storageDescriptorModelNodeColsFieldSchemaModel["Comment"].isNull())
|
||||
fieldSchemaModelObject.comment = storageDescriptorModelNodeColsFieldSchemaModel["Comment"].asString();
|
||||
if(!storageDescriptorModelNodeColsFieldSchemaModel["Type"].isNull())
|
||||
fieldSchemaModelObject.type = storageDescriptorModelNodeColsFieldSchemaModel["Type"].asString();
|
||||
if(!storageDescriptorModelNodeColsFieldSchemaModel["Name"].isNull())
|
||||
fieldSchemaModelObject.name = storageDescriptorModelNodeColsFieldSchemaModel["Name"].asString();
|
||||
partitionModel_.storageDescriptorModel.cols.push_back(fieldSchemaModelObject);
|
||||
}
|
||||
auto serDeInfoModelNode = storageDescriptorModelNode["SerDeInfoModel"];
|
||||
if(!serDeInfoModelNode["SerializationLib"].isNull())
|
||||
partitionModel_.storageDescriptorModel.serDeInfoModel.serializationLib = serDeInfoModelNode["SerializationLib"].asString();
|
||||
if(!serDeInfoModelNode["Parameters"].isNull())
|
||||
partitionModel_.storageDescriptorModel.serDeInfoModel.parameters = serDeInfoModelNode["Parameters"].asString();
|
||||
if(!serDeInfoModelNode["Name"].isNull())
|
||||
partitionModel_.storageDescriptorModel.serDeInfoModel.name = serDeInfoModelNode["Name"].asString();
|
||||
auto allValues = partitionModelNode["Values"]["Values"];
|
||||
for (auto value : allValues)
|
||||
partitionModel_.values.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetPartitionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetPartitionResult::PartitionModel GetPartitionResult::getPartitionModel()const
|
||||
{
|
||||
return partitionModel_;
|
||||
}
|
||||
|
||||
std::string GetPartitionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetPartitionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
openanalytics-open/src/model/GetPartitionsRequest.cc
Normal file
62
openanalytics-open/src/model/GetPartitionsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetPartitionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetPartitionsRequest;
|
||||
|
||||
GetPartitionsRequest::GetPartitionsRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "GetPartitions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPartitionsRequest::~GetPartitionsRequest()
|
||||
{}
|
||||
|
||||
std::string GetPartitionsRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void GetPartitionsRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
int GetPartitionsRequest::getMaxParts()const
|
||||
{
|
||||
return maxParts_;
|
||||
}
|
||||
|
||||
void GetPartitionsRequest::setMaxParts(int maxParts)
|
||||
{
|
||||
maxParts_ = maxParts;
|
||||
setParameter("MaxParts", std::to_string(maxParts));
|
||||
}
|
||||
|
||||
std::string GetPartitionsRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void GetPartitionsRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
115
openanalytics-open/src/model/GetPartitionsResult.cc
Normal file
115
openanalytics-open/src/model/GetPartitionsResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/GetPartitionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetPartitionsResult::GetPartitionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPartitionsResult::GetPartitionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPartitionsResult::~GetPartitionsResult()
|
||||
{}
|
||||
|
||||
void GetPartitionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPartitionsNode = value["Partitions"]["PartitionModel"];
|
||||
for (auto valuePartitionsPartitionModel : allPartitionsNode)
|
||||
{
|
||||
PartitionModel partitionsObject;
|
||||
if(!valuePartitionsPartitionModel["TableName"].isNull())
|
||||
partitionsObject.tableName = valuePartitionsPartitionModel["TableName"].asString();
|
||||
if(!valuePartitionsPartitionModel["Parameters"].isNull())
|
||||
partitionsObject.parameters = valuePartitionsPartitionModel["Parameters"].asString();
|
||||
if(!valuePartitionsPartitionModel["CreateTime"].isNull())
|
||||
partitionsObject.createTime = std::stol(valuePartitionsPartitionModel["CreateTime"].asString());
|
||||
if(!valuePartitionsPartitionModel["DbName"].isNull())
|
||||
partitionsObject.dbName = valuePartitionsPartitionModel["DbName"].asString();
|
||||
auto storageDescriptorModelNode = value["StorageDescriptorModel"];
|
||||
if(!storageDescriptorModelNode["Parameters"].isNull())
|
||||
partitionsObject.storageDescriptorModel.parameters = storageDescriptorModelNode["Parameters"].asString();
|
||||
if(!storageDescriptorModelNode["InputFormat"].isNull())
|
||||
partitionsObject.storageDescriptorModel.inputFormat = storageDescriptorModelNode["InputFormat"].asString();
|
||||
if(!storageDescriptorModelNode["OutputFormat"].isNull())
|
||||
partitionsObject.storageDescriptorModel.outputFormat = storageDescriptorModelNode["OutputFormat"].asString();
|
||||
if(!storageDescriptorModelNode["Location"].isNull())
|
||||
partitionsObject.storageDescriptorModel.location = storageDescriptorModelNode["Location"].asString();
|
||||
auto allColsNode = storageDescriptorModelNode["Cols"]["FieldSchemaModel"];
|
||||
for (auto storageDescriptorModelNodeColsFieldSchemaModel : allColsNode)
|
||||
{
|
||||
PartitionModel::StorageDescriptorModel::FieldSchemaModel fieldSchemaModelObject;
|
||||
if(!storageDescriptorModelNodeColsFieldSchemaModel["Comment"].isNull())
|
||||
fieldSchemaModelObject.comment = storageDescriptorModelNodeColsFieldSchemaModel["Comment"].asString();
|
||||
if(!storageDescriptorModelNodeColsFieldSchemaModel["Type"].isNull())
|
||||
fieldSchemaModelObject.type = storageDescriptorModelNodeColsFieldSchemaModel["Type"].asString();
|
||||
if(!storageDescriptorModelNodeColsFieldSchemaModel["Name"].isNull())
|
||||
fieldSchemaModelObject.name = storageDescriptorModelNodeColsFieldSchemaModel["Name"].asString();
|
||||
partitionsObject.storageDescriptorModel.cols.push_back(fieldSchemaModelObject);
|
||||
}
|
||||
auto serDeInfoModelNode = storageDescriptorModelNode["SerDeInfoModel"];
|
||||
if(!serDeInfoModelNode["SerializationLib"].isNull())
|
||||
partitionsObject.storageDescriptorModel.serDeInfoModel.serializationLib = serDeInfoModelNode["SerializationLib"].asString();
|
||||
if(!serDeInfoModelNode["Parameters"].isNull())
|
||||
partitionsObject.storageDescriptorModel.serDeInfoModel.parameters = serDeInfoModelNode["Parameters"].asString();
|
||||
if(!serDeInfoModelNode["Name"].isNull())
|
||||
partitionsObject.storageDescriptorModel.serDeInfoModel.name = serDeInfoModelNode["Name"].asString();
|
||||
auto allValues = value["Values"]["Values"];
|
||||
for (auto value : allValues)
|
||||
partitionsObject.values.push_back(value.asString());
|
||||
partitions_.push_back(partitionsObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetPartitionsResult::PartitionModel> GetPartitionsResult::getPartitions()const
|
||||
{
|
||||
return partitions_;
|
||||
}
|
||||
|
||||
std::string GetPartitionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetPartitionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetPartitionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
openanalytics-open/src/model/GetRegionStatusRequest.cc
Normal file
73
openanalytics-open/src/model/GetRegionStatusRequest.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/openanalytics-open/model/GetRegionStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetRegionStatusRequest;
|
||||
|
||||
GetRegionStatusRequest::GetRegionStatusRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetRegionStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRegionStatusRequest::~GetRegionStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetRegionStatusRequest::getExternalUid()const
|
||||
{
|
||||
return externalUid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setExternalUid(const std::string& externalUid)
|
||||
{
|
||||
externalUid_ = externalUid;
|
||||
setBodyParameter("ExternalUid", externalUid);
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getExternalAliyunUid()const
|
||||
{
|
||||
return externalAliyunUid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setExternalAliyunUid(const std::string& externalAliyunUid)
|
||||
{
|
||||
externalAliyunUid_ = externalAliyunUid;
|
||||
setBodyParameter("ExternalAliyunUid", externalAliyunUid);
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetRegionStatusRequest::getExternalBizAliyunUid()const
|
||||
{
|
||||
return externalBizAliyunUid_;
|
||||
}
|
||||
|
||||
void GetRegionStatusRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid)
|
||||
{
|
||||
externalBizAliyunUid_ = externalBizAliyunUid;
|
||||
setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid);
|
||||
}
|
||||
|
||||
58
openanalytics-open/src/model/GetRegionStatusResult.cc
Normal file
58
openanalytics-open/src/model/GetRegionStatusResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetRegionStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetRegionStatusResult::GetRegionStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRegionStatusResult::GetRegionStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRegionStatusResult::~GetRegionStatusResult()
|
||||
{}
|
||||
|
||||
void GetRegionStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetRegionStatusResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string GetRegionStatusResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetServiceLinkedRoleStatusRequest;
|
||||
|
||||
GetServiceLinkedRoleStatusRequest::GetServiceLinkedRoleStatusRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "GetServiceLinkedRoleStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetServiceLinkedRoleStatusRequest::~GetServiceLinkedRoleStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetServiceLinkedRoleStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetServiceLinkedRoleStatusRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetServiceLinkedRoleStatusResult::GetServiceLinkedRoleStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceLinkedRoleStatusResult::GetServiceLinkedRoleStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceLinkedRoleStatusResult::~GetServiceLinkedRoleStatusResult()
|
||||
{}
|
||||
|
||||
void GetServiceLinkedRoleStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["HasCreated"].isNull())
|
||||
hasCreated_ = value["HasCreated"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool GetServiceLinkedRoleStatusResult::getHasCreated()const
|
||||
{
|
||||
return hasCreated_;
|
||||
}
|
||||
|
||||
std::string GetServiceLinkedRoleStatusResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/GetTableRequest.cc
Normal file
51
openanalytics-open/src/model/GetTableRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GetTableRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GetTableRequest;
|
||||
|
||||
GetTableRequest::GetTableRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "GetTable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTableRequest::~GetTableRequest()
|
||||
{}
|
||||
|
||||
std::string GetTableRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void GetTableRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string GetTableRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void GetTableRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
129
openanalytics-open/src/model/GetTableResult.cc
Normal file
129
openanalytics-open/src/model/GetTableResult.cc
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/GetTableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GetTableResult::GetTableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTableResult::GetTableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTableResult::~GetTableResult()
|
||||
{}
|
||||
|
||||
void GetTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto tableNode = value["Table"];
|
||||
if(!tableNode["TableName"].isNull())
|
||||
table_.tableName = tableNode["TableName"].asString();
|
||||
if(!tableNode["ViewOriginalText"].isNull())
|
||||
table_.viewOriginalText = tableNode["ViewOriginalText"].asString();
|
||||
if(!tableNode["Owner"].isNull())
|
||||
table_.owner = tableNode["Owner"].asString();
|
||||
if(!tableNode["TableType"].isNull())
|
||||
table_.tableType = tableNode["TableType"].asString();
|
||||
if(!tableNode["Parameters"].isNull())
|
||||
table_.parameters = tableNode["Parameters"].asString();
|
||||
if(!tableNode["ViewExpandedText"].isNull())
|
||||
table_.viewExpandedText = tableNode["ViewExpandedText"].asString();
|
||||
if(!tableNode["CreateTime"].isNull())
|
||||
table_.createTime = std::stol(tableNode["CreateTime"].asString());
|
||||
if(!tableNode["DbName"].isNull())
|
||||
table_.dbName = tableNode["DbName"].asString();
|
||||
if(!tableNode["LastAccessTime"].isNull())
|
||||
table_.lastAccessTime = std::stol(tableNode["LastAccessTime"].asString());
|
||||
auto allPartitionKeysNode = tableNode["PartitionKeys"]["PartitionKeysItem"];
|
||||
for (auto tableNodePartitionKeysPartitionKeysItem : allPartitionKeysNode)
|
||||
{
|
||||
Table::PartitionKeysItem partitionKeysItemObject;
|
||||
if(!tableNodePartitionKeysPartitionKeysItem["Comment"].isNull())
|
||||
partitionKeysItemObject.comment = tableNodePartitionKeysPartitionKeysItem["Comment"].asString();
|
||||
if(!tableNodePartitionKeysPartitionKeysItem["Type"].isNull())
|
||||
partitionKeysItemObject.type = tableNodePartitionKeysPartitionKeysItem["Type"].asString();
|
||||
if(!tableNodePartitionKeysPartitionKeysItem["Name"].isNull())
|
||||
partitionKeysItemObject.name = tableNodePartitionKeysPartitionKeysItem["Name"].asString();
|
||||
table_.partitionKeys.push_back(partitionKeysItemObject);
|
||||
}
|
||||
auto storageDescriptorNode = tableNode["StorageDescriptor"];
|
||||
if(!storageDescriptorNode["Parameters"].isNull())
|
||||
table_.storageDescriptor.parameters = storageDescriptorNode["Parameters"].asString();
|
||||
if(!storageDescriptorNode["InputFormat"].isNull())
|
||||
table_.storageDescriptor.inputFormat = storageDescriptorNode["InputFormat"].asString();
|
||||
if(!storageDescriptorNode["OutputFormat"].isNull())
|
||||
table_.storageDescriptor.outputFormat = storageDescriptorNode["OutputFormat"].asString();
|
||||
if(!storageDescriptorNode["Location"].isNull())
|
||||
table_.storageDescriptor.location = storageDescriptorNode["Location"].asString();
|
||||
auto allColsNode = storageDescriptorNode["Cols"]["ColsItem"];
|
||||
for (auto storageDescriptorNodeColsColsItem : allColsNode)
|
||||
{
|
||||
Table::StorageDescriptor::ColsItem colsItemObject;
|
||||
if(!storageDescriptorNodeColsColsItem["Comment"].isNull())
|
||||
colsItemObject.comment = storageDescriptorNodeColsColsItem["Comment"].asString();
|
||||
if(!storageDescriptorNodeColsColsItem["Type"].isNull())
|
||||
colsItemObject.type = storageDescriptorNodeColsColsItem["Type"].asString();
|
||||
if(!storageDescriptorNodeColsColsItem["Name"].isNull())
|
||||
colsItemObject.name = storageDescriptorNodeColsColsItem["Name"].asString();
|
||||
table_.storageDescriptor.cols.push_back(colsItemObject);
|
||||
}
|
||||
auto serDeInfoNode = storageDescriptorNode["SerDeInfo"];
|
||||
if(!serDeInfoNode["SerializationLib"].isNull())
|
||||
table_.storageDescriptor.serDeInfo.serializationLib = serDeInfoNode["SerializationLib"].asString();
|
||||
if(!serDeInfoNode["Parameters"].isNull())
|
||||
table_.storageDescriptor.serDeInfo.parameters = serDeInfoNode["Parameters"].asString();
|
||||
if(!serDeInfoNode["Name"].isNull())
|
||||
table_.storageDescriptor.serDeInfo.name = serDeInfoNode["Name"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
GetTableResult::Table GetTableResult::getTable()const
|
||||
{
|
||||
return table_;
|
||||
}
|
||||
|
||||
std::string GetTableResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetTableResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetTableResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
openanalytics-open/src/model/GrantPrivilegesRequest.cc
Normal file
40
openanalytics-open/src/model/GrantPrivilegesRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/GrantPrivilegesRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::GrantPrivilegesRequest;
|
||||
|
||||
GrantPrivilegesRequest::GrantPrivilegesRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2020-09-28", "GrantPrivileges")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GrantPrivilegesRequest::~GrantPrivilegesRequest()
|
||||
{}
|
||||
|
||||
Struct GrantPrivilegesRequest::getPrivilegeBag()const
|
||||
{
|
||||
return privilegeBag_;
|
||||
}
|
||||
|
||||
void GrantPrivilegesRequest::setPrivilegeBag(const Struct& privilegeBag)
|
||||
{
|
||||
privilegeBag_ = privilegeBag;
|
||||
setParameter("PrivilegeBag", std::to_string(privilegeBag));
|
||||
}
|
||||
|
||||
72
openanalytics-open/src/model/GrantPrivilegesResult.cc
Normal file
72
openanalytics-open/src/model/GrantPrivilegesResult.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/openanalytics-open/model/GrantPrivilegesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
GrantPrivilegesResult::GrantPrivilegesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GrantPrivilegesResult::GrantPrivilegesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GrantPrivilegesResult::~GrantPrivilegesResult()
|
||||
{}
|
||||
|
||||
void GrantPrivilegesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GrantPrivilegesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool GrantPrivilegesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GrantPrivilegesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GrantPrivilegesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
openanalytics-open/src/model/InitializeDLAServiceRequest.cc
Normal file
106
openanalytics-open/src/model/InitializeDLAServiceRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/InitializeDLAServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::InitializeDLAServiceRequest;
|
||||
|
||||
InitializeDLAServiceRequest::InitializeDLAServiceRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "InitializeDLAService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InitializeDLAServiceRequest::~InitializeDLAServiceRequest()
|
||||
{}
|
||||
|
||||
std::string InitializeDLAServiceRequest::getExternalUid()const
|
||||
{
|
||||
return externalUid_;
|
||||
}
|
||||
|
||||
void InitializeDLAServiceRequest::setExternalUid(const std::string& externalUid)
|
||||
{
|
||||
externalUid_ = externalUid;
|
||||
setBodyParameter("ExternalUid", externalUid);
|
||||
}
|
||||
|
||||
std::string InitializeDLAServiceRequest::getInitPassword()const
|
||||
{
|
||||
return initPassword_;
|
||||
}
|
||||
|
||||
void InitializeDLAServiceRequest::setInitPassword(const std::string& initPassword)
|
||||
{
|
||||
initPassword_ = initPassword;
|
||||
setBodyParameter("InitPassword", initPassword);
|
||||
}
|
||||
|
||||
std::string InitializeDLAServiceRequest::getExternalAliyunUid()const
|
||||
{
|
||||
return externalAliyunUid_;
|
||||
}
|
||||
|
||||
void InitializeDLAServiceRequest::setExternalAliyunUid(const std::string& externalAliyunUid)
|
||||
{
|
||||
externalAliyunUid_ = externalAliyunUid;
|
||||
setBodyParameter("ExternalAliyunUid", externalAliyunUid);
|
||||
}
|
||||
|
||||
std::string InitializeDLAServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void InitializeDLAServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool InitializeDLAServiceRequest::getUseRandomPassword()const
|
||||
{
|
||||
return useRandomPassword_;
|
||||
}
|
||||
|
||||
void InitializeDLAServiceRequest::setUseRandomPassword(bool useRandomPassword)
|
||||
{
|
||||
useRandomPassword_ = useRandomPassword;
|
||||
setBodyParameter("UseRandomPassword", useRandomPassword ? "true" : "false");
|
||||
}
|
||||
|
||||
bool InitializeDLAServiceRequest::getEnableKMS()const
|
||||
{
|
||||
return enableKMS_;
|
||||
}
|
||||
|
||||
void InitializeDLAServiceRequest::setEnableKMS(bool enableKMS)
|
||||
{
|
||||
enableKMS_ = enableKMS;
|
||||
setBodyParameter("EnableKMS", enableKMS ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string InitializeDLAServiceRequest::getExternalBizAliyunUid()const
|
||||
{
|
||||
return externalBizAliyunUid_;
|
||||
}
|
||||
|
||||
void InitializeDLAServiceRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid)
|
||||
{
|
||||
externalBizAliyunUid_ = externalBizAliyunUid;
|
||||
setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid);
|
||||
}
|
||||
|
||||
61
openanalytics-open/src/model/InitializeDLAServiceResult.cc
Normal file
61
openanalytics-open/src/model/InitializeDLAServiceResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/InitializeDLAServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
InitializeDLAServiceResult::InitializeDLAServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InitializeDLAServiceResult::InitializeDLAServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InitializeDLAServiceResult::~InitializeDLAServiceResult()
|
||||
{}
|
||||
|
||||
void InitializeDLAServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountInfoNode = value["AccountInfo"];
|
||||
if(!accountInfoNode["UserName"].isNull())
|
||||
accountInfo_.userName = accountInfoNode["UserName"].asString();
|
||||
if(!accountInfoNode["Password"].isNull())
|
||||
accountInfo_.password = accountInfoNode["Password"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string InitializeDLAServiceResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
InitializeDLAServiceResult::AccountInfo InitializeDLAServiceResult::getAccountInfo()const
|
||||
{
|
||||
return accountInfo_;
|
||||
}
|
||||
|
||||
106
openanalytics-open/src/model/InitializeRegionRequest.cc
Normal file
106
openanalytics-open/src/model/InitializeRegionRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/InitializeRegionRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::InitializeRegionRequest;
|
||||
|
||||
InitializeRegionRequest::InitializeRegionRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "InitializeRegion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InitializeRegionRequest::~InitializeRegionRequest()
|
||||
{}
|
||||
|
||||
std::string InitializeRegionRequest::getExternalUid()const
|
||||
{
|
||||
return externalUid_;
|
||||
}
|
||||
|
||||
void InitializeRegionRequest::setExternalUid(const std::string& externalUid)
|
||||
{
|
||||
externalUid_ = externalUid;
|
||||
setBodyParameter("ExternalUid", externalUid);
|
||||
}
|
||||
|
||||
std::string InitializeRegionRequest::getInitPassword()const
|
||||
{
|
||||
return initPassword_;
|
||||
}
|
||||
|
||||
void InitializeRegionRequest::setInitPassword(const std::string& initPassword)
|
||||
{
|
||||
initPassword_ = initPassword;
|
||||
setBodyParameter("InitPassword", initPassword);
|
||||
}
|
||||
|
||||
std::string InitializeRegionRequest::getExternalAliyunUid()const
|
||||
{
|
||||
return externalAliyunUid_;
|
||||
}
|
||||
|
||||
void InitializeRegionRequest::setExternalAliyunUid(const std::string& externalAliyunUid)
|
||||
{
|
||||
externalAliyunUid_ = externalAliyunUid;
|
||||
setBodyParameter("ExternalAliyunUid", externalAliyunUid);
|
||||
}
|
||||
|
||||
std::string InitializeRegionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void InitializeRegionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool InitializeRegionRequest::getUseRandomPassword()const
|
||||
{
|
||||
return useRandomPassword_;
|
||||
}
|
||||
|
||||
void InitializeRegionRequest::setUseRandomPassword(bool useRandomPassword)
|
||||
{
|
||||
useRandomPassword_ = useRandomPassword;
|
||||
setBodyParameter("UseRandomPassword", useRandomPassword ? "true" : "false");
|
||||
}
|
||||
|
||||
bool InitializeRegionRequest::getEnableKMS()const
|
||||
{
|
||||
return enableKMS_;
|
||||
}
|
||||
|
||||
void InitializeRegionRequest::setEnableKMS(bool enableKMS)
|
||||
{
|
||||
enableKMS_ = enableKMS;
|
||||
setBodyParameter("EnableKMS", enableKMS ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string InitializeRegionRequest::getExternalBizAliyunUid()const
|
||||
{
|
||||
return externalBizAliyunUid_;
|
||||
}
|
||||
|
||||
void InitializeRegionRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid)
|
||||
{
|
||||
externalBizAliyunUid_ = externalBizAliyunUid;
|
||||
setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid);
|
||||
}
|
||||
|
||||
61
openanalytics-open/src/model/InitializeRegionResult.cc
Normal file
61
openanalytics-open/src/model/InitializeRegionResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/InitializeRegionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
InitializeRegionResult::InitializeRegionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InitializeRegionResult::InitializeRegionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InitializeRegionResult::~InitializeRegionResult()
|
||||
{}
|
||||
|
||||
void InitializeRegionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["UserName"].isNull())
|
||||
account_.userName = accountNode["UserName"].asString();
|
||||
if(!accountNode["Password"].isNull())
|
||||
account_.password = accountNode["Password"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
InitializeRegionResult::Account InitializeRegionResult::getAccount()const
|
||||
{
|
||||
return account_;
|
||||
}
|
||||
|
||||
std::string InitializeRegionResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/KillSparkJobRequest.cc
Normal file
51
openanalytics-open/src/model/KillSparkJobRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/KillSparkJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::KillSparkJobRequest;
|
||||
|
||||
KillSparkJobRequest::KillSparkJobRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "KillSparkJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
KillSparkJobRequest::~KillSparkJobRequest()
|
||||
{}
|
||||
|
||||
std::string KillSparkJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void KillSparkJobRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setBodyParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string KillSparkJobRequest::getVcName()const
|
||||
{
|
||||
return vcName_;
|
||||
}
|
||||
|
||||
void KillSparkJobRequest::setVcName(const std::string& vcName)
|
||||
{
|
||||
vcName_ = vcName;
|
||||
setBodyParameter("VcName", vcName);
|
||||
}
|
||||
|
||||
51
openanalytics-open/src/model/KillSparkJobResult.cc
Normal file
51
openanalytics-open/src/model/KillSparkJobResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/KillSparkJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
KillSparkJobResult::KillSparkJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
KillSparkJobResult::KillSparkJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
KillSparkJobResult::~KillSparkJobResult()
|
||||
{}
|
||||
|
||||
void KillSparkJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string KillSparkJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::ListAlreadyBingingRamUidRequest;
|
||||
|
||||
ListAlreadyBingingRamUidRequest::ListAlreadyBingingRamUidRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "ListAlreadyBingingRamUid")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAlreadyBingingRamUidRequest::~ListAlreadyBingingRamUidRequest()
|
||||
{}
|
||||
|
||||
std::string ListAlreadyBingingRamUidRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListAlreadyBingingRamUidRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/ListAlreadyBingingRamUidResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
ListAlreadyBingingRamUidResult::ListAlreadyBingingRamUidResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAlreadyBingingRamUidResult::ListAlreadyBingingRamUidResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAlreadyBingingRamUidResult::~ListAlreadyBingingRamUidResult()
|
||||
{}
|
||||
|
||||
void ListAlreadyBingingRamUidResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> ListAlreadyBingingRamUidResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAlreadyBingingRamUidResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
29
openanalytics-open/src/model/ListModulesReleaseRequest.cc
Normal file
29
openanalytics-open/src/model/ListModulesReleaseRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/ListModulesReleaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::ListModulesReleaseRequest;
|
||||
|
||||
ListModulesReleaseRequest::ListModulesReleaseRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "ListModulesRelease")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListModulesReleaseRequest::~ListModulesReleaseRequest()
|
||||
{}
|
||||
|
||||
63
openanalytics-open/src/model/ListModulesReleaseResult.cc
Normal file
63
openanalytics-open/src/model/ListModulesReleaseResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/ListModulesReleaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
ListModulesReleaseResult::ListModulesReleaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListModulesReleaseResult::ListModulesReleaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListModulesReleaseResult::~ListModulesReleaseResult()
|
||||
{}
|
||||
|
||||
void ListModulesReleaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
if(!valueDataDataItem["Type"].isNull())
|
||||
dataObject.type = valueDataDataItem["Type"].asString();
|
||||
if(!valueDataDataItem["Description"].isNull())
|
||||
dataObject.description = valueDataDataItem["Description"].asString();
|
||||
if(!valueDataDataItem["Version"].isNull())
|
||||
dataObject.version = valueDataDataItem["Version"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListModulesReleaseResult::DataItem> ListModulesReleaseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
40
openanalytics-open/src/model/ListResourcesSpecRequest.cc
Normal file
40
openanalytics-open/src/model/ListResourcesSpecRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/ListResourcesSpecRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::ListResourcesSpecRequest;
|
||||
|
||||
ListResourcesSpecRequest::ListResourcesSpecRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "ListResourcesSpec")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListResourcesSpecRequest::~ListResourcesSpecRequest()
|
||||
{}
|
||||
|
||||
std::string ListResourcesSpecRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListResourcesSpecRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
59
openanalytics-open/src/model/ListResourcesSpecResult.cc
Normal file
59
openanalytics-open/src/model/ListResourcesSpecResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/openanalytics-open/model/ListResourcesSpecResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
ListResourcesSpecResult::ListResourcesSpecResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListResourcesSpecResult::ListResourcesSpecResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListResourcesSpecResult::~ListResourcesSpecResult()
|
||||
{}
|
||||
|
||||
void ListResourcesSpecResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
if(!valueDataDataItem["Description"].isNull())
|
||||
dataObject.description = valueDataDataItem["Description"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListResourcesSpecResult::DataItem> ListResourcesSpecResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
62
openanalytics-open/src/model/ListSparkJobRequest.cc
Normal file
62
openanalytics-open/src/model/ListSparkJobRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/ListSparkJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::ListSparkJobRequest;
|
||||
|
||||
ListSparkJobRequest::ListSparkJobRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "ListSparkJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSparkJobRequest::~ListSparkJobRequest()
|
||||
{}
|
||||
|
||||
int ListSparkJobRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListSparkJobRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListSparkJobRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListSparkJobRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListSparkJobRequest::getVcName()const
|
||||
{
|
||||
return vcName_;
|
||||
}
|
||||
|
||||
void ListSparkJobRequest::setVcName(const std::string& vcName)
|
||||
{
|
||||
vcName_ = vcName;
|
||||
setParameter("VcName", vcName);
|
||||
}
|
||||
|
||||
92
openanalytics-open/src/model/ListSparkJobResult.cc
Normal file
92
openanalytics-open/src/model/ListSparkJobResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/ListSparkJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
ListSparkJobResult::ListSparkJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSparkJobResult::ListSparkJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSparkJobResult::~ListSparkJobResult()
|
||||
{}
|
||||
|
||||
void ListSparkJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataResultNode = value["DataResult"];
|
||||
if(!dataResultNode["PageNumber"].isNull())
|
||||
dataResult_.pageNumber = dataResultNode["PageNumber"].asString();
|
||||
if(!dataResultNode["PageSize"].isNull())
|
||||
dataResult_.pageSize = dataResultNode["PageSize"].asString();
|
||||
if(!dataResultNode["TotalCount"].isNull())
|
||||
dataResult_.totalCount = dataResultNode["TotalCount"].asString();
|
||||
auto allJobListNode = dataResultNode["JobList"]["Data"];
|
||||
for (auto dataResultNodeJobListData : allJobListNode)
|
||||
{
|
||||
DataResult::Data dataObject;
|
||||
if(!dataResultNodeJobListData["CreateTime"].isNull())
|
||||
dataObject.createTime = dataResultNodeJobListData["CreateTime"].asString();
|
||||
if(!dataResultNodeJobListData["CreateTimeValue"].isNull())
|
||||
dataObject.createTimeValue = dataResultNodeJobListData["CreateTimeValue"].asString();
|
||||
if(!dataResultNodeJobListData["Detail"].isNull())
|
||||
dataObject.detail = dataResultNodeJobListData["Detail"].asString();
|
||||
if(!dataResultNodeJobListData["DriverResourceSpec"].isNull())
|
||||
dataObject.driverResourceSpec = dataResultNodeJobListData["DriverResourceSpec"].asString();
|
||||
if(!dataResultNodeJobListData["ExecutorInstances"].isNull())
|
||||
dataObject.executorInstances = dataResultNodeJobListData["ExecutorInstances"].asString();
|
||||
if(!dataResultNodeJobListData["ExecutorResourceSpec"].isNull())
|
||||
dataObject.executorResourceSpec = dataResultNodeJobListData["ExecutorResourceSpec"].asString();
|
||||
if(!dataResultNodeJobListData["JobId"].isNull())
|
||||
dataObject.jobId = dataResultNodeJobListData["JobId"].asString();
|
||||
if(!dataResultNodeJobListData["JobName"].isNull())
|
||||
dataObject.jobName = dataResultNodeJobListData["JobName"].asString();
|
||||
if(!dataResultNodeJobListData["SparkUI"].isNull())
|
||||
dataObject.sparkUI = dataResultNodeJobListData["SparkUI"].asString();
|
||||
if(!dataResultNodeJobListData["Status"].isNull())
|
||||
dataObject.status = dataResultNodeJobListData["Status"].asString();
|
||||
if(!dataResultNodeJobListData["SubmitTime"].isNull())
|
||||
dataObject.submitTime = dataResultNodeJobListData["SubmitTime"].asString();
|
||||
if(!dataResultNodeJobListData["SubmitTimeValue"].isNull())
|
||||
dataObject.submitTimeValue = dataResultNodeJobListData["SubmitTimeValue"].asString();
|
||||
if(!dataResultNodeJobListData["UpdateTime"].isNull())
|
||||
dataObject.updateTime = dataResultNodeJobListData["UpdateTime"].asString();
|
||||
if(!dataResultNodeJobListData["UpdateTimeValue"].isNull())
|
||||
dataObject.updateTimeValue = dataResultNodeJobListData["UpdateTimeValue"].asString();
|
||||
if(!dataResultNodeJobListData["VcName"].isNull())
|
||||
dataObject.vcName = dataResultNodeJobListData["VcName"].asString();
|
||||
dataResult_.jobList.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListSparkJobResult::DataResult ListSparkJobResult::getDataResult()const
|
||||
{
|
||||
return dataResult_;
|
||||
}
|
||||
|
||||
40
openanalytics-open/src/model/ListVirtualClustersRequest.cc
Normal file
40
openanalytics-open/src/model/ListVirtualClustersRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/ListVirtualClustersRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::ListVirtualClustersRequest;
|
||||
|
||||
ListVirtualClustersRequest::ListVirtualClustersRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "ListVirtualClusters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListVirtualClustersRequest::~ListVirtualClustersRequest()
|
||||
{}
|
||||
|
||||
std::string ListVirtualClustersRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListVirtualClustersRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
73
openanalytics-open/src/model/ListVirtualClustersResult.cc
Normal file
73
openanalytics-open/src/model/ListVirtualClustersResult.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/openanalytics-open/model/ListVirtualClustersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
ListVirtualClustersResult::ListVirtualClustersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVirtualClustersResult::ListVirtualClustersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVirtualClustersResult::~ListVirtualClustersResult()
|
||||
{}
|
||||
|
||||
void ListVirtualClustersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataDataItem["CreateTime"].asString();
|
||||
if(!valueDataDataItem["CreatorId"].isNull())
|
||||
dataObject.creatorId = valueDataDataItem["CreatorId"].asString();
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
if(!valueDataDataItem["Status"].isNull())
|
||||
dataObject.status = valueDataDataItem["Status"].asString();
|
||||
if(!valueDataDataItem["Type"].isNull())
|
||||
dataObject.type = valueDataDataItem["Type"].asString();
|
||||
if(!valueDataDataItem["InstanceId"].isNull())
|
||||
dataObject.instanceId = valueDataDataItem["InstanceId"].asString();
|
||||
if(!valueDataDataItem["MinCpu"].isNull())
|
||||
dataObject.minCpu = valueDataDataItem["MinCpu"].asString();
|
||||
if(!valueDataDataItem["MaxCpu"].isNull())
|
||||
dataObject.maxCpu = valueDataDataItem["MaxCpu"].asString();
|
||||
if(!valueDataDataItem["ChargeType"].isNull())
|
||||
dataObject.chargeType = valueDataDataItem["ChargeType"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListVirtualClustersResult::DataItem> ListVirtualClustersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user