Supported Open Api.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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");
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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()
|
||||
{}
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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()
|
||||
{}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ModifyVirtualClusterForSparkRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::ModifyVirtualClusterForSparkRequest;
|
||||
|
||||
ModifyVirtualClusterForSparkRequest::ModifyVirtualClusterForSparkRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "ModifyVirtualClusterForSpark")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyVirtualClusterForSparkRequest::~ModifyVirtualClusterForSparkRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyVirtualClusterForSparkRequest::getDefaultExecutorSpecName()const
|
||||
{
|
||||
return defaultExecutorSpecName_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterForSparkRequest::setDefaultExecutorSpecName(const std::string& defaultExecutorSpecName)
|
||||
{
|
||||
defaultExecutorSpecName_ = defaultExecutorSpecName;
|
||||
setBodyParameter("DefaultExecutorSpecName", defaultExecutorSpecName);
|
||||
}
|
||||
|
||||
float ModifyVirtualClusterForSparkRequest::getMaxMemory()const
|
||||
{
|
||||
return maxMemory_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterForSparkRequest::setMaxMemory(float maxMemory)
|
||||
{
|
||||
maxMemory_ = maxMemory;
|
||||
setBodyParameter("MaxMemory", std::to_string(maxMemory));
|
||||
}
|
||||
|
||||
std::string ModifyVirtualClusterForSparkRequest::getSparkModuleReleaseName()const
|
||||
{
|
||||
return sparkModuleReleaseName_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterForSparkRequest::setSparkModuleReleaseName(const std::string& sparkModuleReleaseName)
|
||||
{
|
||||
sparkModuleReleaseName_ = sparkModuleReleaseName;
|
||||
setBodyParameter("SparkModuleReleaseName", sparkModuleReleaseName);
|
||||
}
|
||||
|
||||
std::string ModifyVirtualClusterForSparkRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterForSparkRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
long ModifyVirtualClusterForSparkRequest::getDefaultExecutorNumbers()const
|
||||
{
|
||||
return defaultExecutorNumbers_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterForSparkRequest::setDefaultExecutorNumbers(long defaultExecutorNumbers)
|
||||
{
|
||||
defaultExecutorNumbers_ = defaultExecutorNumbers;
|
||||
setBodyParameter("DefaultExecutorNumbers", std::to_string(defaultExecutorNumbers));
|
||||
}
|
||||
|
||||
float ModifyVirtualClusterForSparkRequest::getMaxCpu()const
|
||||
{
|
||||
return maxCpu_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterForSparkRequest::setMaxCpu(float maxCpu)
|
||||
{
|
||||
maxCpu_ = maxCpu;
|
||||
setBodyParameter("MaxCpu", std::to_string(maxCpu));
|
||||
}
|
||||
|
||||
std::string ModifyVirtualClusterForSparkRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterForSparkRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ModifyVirtualClusterForSparkRequest::getDefaultDriverSpecName()const
|
||||
{
|
||||
return defaultDriverSpecName_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterForSparkRequest::setDefaultDriverSpecName(const std::string& defaultDriverSpecName)
|
||||
{
|
||||
defaultDriverSpecName_ = defaultDriverSpecName;
|
||||
setBodyParameter("DefaultDriverSpecName", defaultDriverSpecName);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ModifyVirtualClusterForSparkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
ModifyVirtualClusterForSparkResult::ModifyVirtualClusterForSparkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyVirtualClusterForSparkResult::ModifyVirtualClusterForSparkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyVirtualClusterForSparkResult::~ModifyVirtualClusterForSparkResult()
|
||||
{}
|
||||
|
||||
void ModifyVirtualClusterForSparkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ModifyVirtualClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::ModifyVirtualClusterRequest;
|
||||
|
||||
ModifyVirtualClusterRequest::ModifyVirtualClusterRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "ModifyVirtualCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyVirtualClusterRequest::~ModifyVirtualClusterRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyVirtualClusterRequest::getDefaultExecutorSpecName()const
|
||||
{
|
||||
return defaultExecutorSpecName_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterRequest::setDefaultExecutorSpecName(const std::string& defaultExecutorSpecName)
|
||||
{
|
||||
defaultExecutorSpecName_ = defaultExecutorSpecName;
|
||||
setBodyParameter("DefaultExecutorSpecName", defaultExecutorSpecName);
|
||||
}
|
||||
|
||||
std::string ModifyVirtualClusterRequest::getSparkModuleReleaseName()const
|
||||
{
|
||||
return sparkModuleReleaseName_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterRequest::setSparkModuleReleaseName(const std::string& sparkModuleReleaseName)
|
||||
{
|
||||
sparkModuleReleaseName_ = sparkModuleReleaseName;
|
||||
setBodyParameter("SparkModuleReleaseName", sparkModuleReleaseName);
|
||||
}
|
||||
|
||||
std::string ModifyVirtualClusterRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
long ModifyVirtualClusterRequest::getDefaultExecutorNumbers()const
|
||||
{
|
||||
return defaultExecutorNumbers_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterRequest::setDefaultExecutorNumbers(long defaultExecutorNumbers)
|
||||
{
|
||||
defaultExecutorNumbers_ = defaultExecutorNumbers;
|
||||
setBodyParameter("DefaultExecutorNumbers", std::to_string(defaultExecutorNumbers));
|
||||
}
|
||||
|
||||
std::string ModifyVirtualClusterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ModifyVirtualClusterRequest::getDefaultDriverSpecName()const
|
||||
{
|
||||
return defaultDriverSpecName_;
|
||||
}
|
||||
|
||||
void ModifyVirtualClusterRequest::setDefaultDriverSpecName(const std::string& defaultDriverSpecName)
|
||||
{
|
||||
defaultDriverSpecName_ = defaultDriverSpecName;
|
||||
setBodyParameter("DefaultDriverSpecName", defaultDriverSpecName);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ModifyVirtualClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
ModifyVirtualClusterResult::ModifyVirtualClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyVirtualClusterResult::ModifyVirtualClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyVirtualClusterResult::~ModifyVirtualClusterResult()
|
||||
{}
|
||||
|
||||
void ModifyVirtualClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/OpenDataLakeAnalyticsServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::OpenDataLakeAnalyticsServiceRequest;
|
||||
|
||||
OpenDataLakeAnalyticsServiceRequest::OpenDataLakeAnalyticsServiceRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "OpenDataLakeAnalyticsService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenDataLakeAnalyticsServiceRequest::~OpenDataLakeAnalyticsServiceRequest()
|
||||
{}
|
||||
|
||||
std::string OpenDataLakeAnalyticsServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void OpenDataLakeAnalyticsServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string OpenDataLakeAnalyticsServiceRequest::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
void OpenDataLakeAnalyticsServiceRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/QueryDataSourceDefRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::QueryDataSourceDefRequest;
|
||||
|
||||
QueryDataSourceDefRequest::QueryDataSourceDefRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryDataSourceDef")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryDataSourceDefRequest::~QueryDataSourceDefRequest()
|
||||
{}
|
||||
|
||||
std::string QueryDataSourceDefRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void QueryDataSourceDefRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/QueryDataSourceDefResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
QueryDataSourceDefResult::QueryDataSourceDefResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDataSourceDefResult::QueryDataSourceDefResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDataSourceDefResult::~QueryDataSourceDefResult()
|
||||
{}
|
||||
|
||||
void QueryDataSourceDefResult::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["dataSourceName"].isNull())
|
||||
regionListObject.dataSourceName = valueRegionListRegionListItem["dataSourceName"].asString();
|
||||
if(!valueRegionListRegionListItem["roleArn"].isNull())
|
||||
regionListObject.roleArn = valueRegionListRegionListItem["roleArn"].asString();
|
||||
if(!valueRegionListRegionListItem["authorizedURL"].isNull())
|
||||
regionListObject.authorizedURL = valueRegionListRegionListItem["authorizedURL"].asString();
|
||||
regionList_.push_back(regionListObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryDataSourceDefResult::RegionListItem> QueryDataSourceDefResult::getRegionList()const
|
||||
{
|
||||
return regionList_;
|
||||
}
|
||||
|
||||
std::string QueryDataSourceDefResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/QueryDiscountListRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::QueryDiscountListRequest;
|
||||
|
||||
QueryDiscountListRequest::QueryDiscountListRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryDiscountList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryDiscountListRequest::~QueryDiscountListRequest()
|
||||
{}
|
||||
|
||||
std::string QueryDiscountListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void QueryDiscountListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int QueryDiscountListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryDiscountListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int QueryDiscountListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void QueryDiscountListRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
@@ -1,113 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/QueryDiscountListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
QueryDiscountListResult::QueryDiscountListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDiscountListResult::QueryDiscountListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDiscountListResult::~QueryDiscountListResult()
|
||||
{}
|
||||
|
||||
void QueryDiscountListResult::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["PlanID"].isNull())
|
||||
dataObject.planID = valueDataDataItem["PlanID"].asString();
|
||||
if(!valueDataDataItem["GmtCreate"].isNull())
|
||||
dataObject.gmtCreate = valueDataDataItem["GmtCreate"].asString();
|
||||
if(!valueDataDataItem["GmtCreateValue"].isNull())
|
||||
dataObject.gmtCreateValue = std::stol(valueDataDataItem["GmtCreateValue"].asString());
|
||||
if(!valueDataDataItem["DiscountType"].isNull())
|
||||
dataObject.discountType = valueDataDataItem["DiscountType"].asString();
|
||||
if(!valueDataDataItem["DiscountConfig"].isNull())
|
||||
dataObject.discountConfig = valueDataDataItem["DiscountConfig"].asString();
|
||||
if(!valueDataDataItem["PayType"].isNull())
|
||||
dataObject.payType = std::stoi(valueDataDataItem["PayType"].asString());
|
||||
if(!valueDataDataItem["PayAmount"].isNull())
|
||||
dataObject.payAmount = valueDataDataItem["PayAmount"].asString();
|
||||
if(!valueDataDataItem["Weight"].isNull())
|
||||
dataObject.weight = std::stoi(valueDataDataItem["Weight"].asString());
|
||||
if(!valueDataDataItem["Stacked"].isNull())
|
||||
dataObject.stacked = std::stoi(valueDataDataItem["Stacked"].asString());
|
||||
if(!valueDataDataItem["UsageBytes"].isNull())
|
||||
dataObject.usageBytes = std::stol(valueDataDataItem["UsageBytes"].asString());
|
||||
if(!valueDataDataItem["EffectiveStartTime"].isNull())
|
||||
dataObject.effectiveStartTime = valueDataDataItem["EffectiveStartTime"].asString();
|
||||
if(!valueDataDataItem["EffectiveStartTimeValue"].isNull())
|
||||
dataObject.effectiveStartTimeValue = std::stol(valueDataDataItem["EffectiveStartTimeValue"].asString());
|
||||
if(!valueDataDataItem["EffectiveEndTime"].isNull())
|
||||
dataObject.effectiveEndTime = valueDataDataItem["EffectiveEndTime"].asString();
|
||||
if(!valueDataDataItem["EffectiveEndTimeValue"].isNull())
|
||||
dataObject.effectiveEndTimeValue = std::stol(valueDataDataItem["EffectiveEndTimeValue"].asString());
|
||||
if(!valueDataDataItem["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataDataItem["Status"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int QueryDiscountListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int QueryDiscountListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int QueryDiscountListResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<QueryDiscountListResult::DataItem> QueryDiscountListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryDiscountListResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/QueryServiceAccountListRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::QueryServiceAccountListRequest;
|
||||
|
||||
QueryServiceAccountListRequest::QueryServiceAccountListRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryServiceAccountList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryServiceAccountListRequest::~QueryServiceAccountListRequest()
|
||||
{}
|
||||
|
||||
std::string QueryServiceAccountListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void QueryServiceAccountListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/QueryServiceAccountListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
QueryServiceAccountListResult::QueryServiceAccountListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryServiceAccountListResult::QueryServiceAccountListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryServiceAccountListResult::~QueryServiceAccountListResult()
|
||||
{}
|
||||
|
||||
void QueryServiceAccountListResult::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["UserName"].isNull())
|
||||
dataObject.userName = valueDataDataItem["UserName"].asString();
|
||||
if(!valueDataDataItem["Role"].isNull())
|
||||
dataObject.role = valueDataDataItem["Role"].asString();
|
||||
if(!valueDataDataItem["ShortName"].isNull())
|
||||
dataObject.shortName = valueDataDataItem["ShortName"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryServiceAccountListResult::DataItem> QueryServiceAccountListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryServiceAccountListResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/QueryTaskSumRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::QueryTaskSumRequest;
|
||||
|
||||
QueryTaskSumRequest::QueryTaskSumRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryTaskSum")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryTaskSumRequest::~QueryTaskSumRequest()
|
||||
{}
|
||||
|
||||
std::string QueryTaskSumRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void QueryTaskSumRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string QueryTaskSumRequest::getTwoDaysAgoBeginTs()const
|
||||
{
|
||||
return twoDaysAgoBeginTs_;
|
||||
}
|
||||
|
||||
void QueryTaskSumRequest::setTwoDaysAgoBeginTs(const std::string& twoDaysAgoBeginTs)
|
||||
{
|
||||
twoDaysAgoBeginTs_ = twoDaysAgoBeginTs;
|
||||
setBodyParameter("TwoDaysAgoBeginTs", twoDaysAgoBeginTs);
|
||||
}
|
||||
|
||||
std::string QueryTaskSumRequest::getYesterdayBeginTs()const
|
||||
{
|
||||
return yesterdayBeginTs_;
|
||||
}
|
||||
|
||||
void QueryTaskSumRequest::setYesterdayBeginTs(const std::string& yesterdayBeginTs)
|
||||
{
|
||||
yesterdayBeginTs_ = yesterdayBeginTs;
|
||||
setBodyParameter("YesterdayBeginTs", yesterdayBeginTs);
|
||||
}
|
||||
|
||||
std::string QueryTaskSumRequest::getTodayBeginTs()const
|
||||
{
|
||||
return todayBeginTs_;
|
||||
}
|
||||
|
||||
void QueryTaskSumRequest::setTodayBeginTs(const std::string& todayBeginTs)
|
||||
{
|
||||
todayBeginTs_ = todayBeginTs;
|
||||
setBodyParameter("TodayBeginTs", todayBeginTs);
|
||||
}
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/QueryTaskSumResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
QueryTaskSumResult::QueryTaskSumResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryTaskSumResult::QueryTaskSumResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryTaskSumResult::~QueryTaskSumResult()
|
||||
{}
|
||||
|
||||
void QueryTaskSumResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto queryTaskSumInfoNode = value["QueryTaskSumInfo"];
|
||||
if(!queryTaskSumInfoNode["Uid"].isNull())
|
||||
queryTaskSumInfo_.uid = queryTaskSumInfoNode["Uid"].asString();
|
||||
if(!queryTaskSumInfoNode["ScannedDataBytesGbToday"].isNull())
|
||||
queryTaskSumInfo_.scannedDataBytesGbToday = queryTaskSumInfoNode["ScannedDataBytesGbToday"].asString();
|
||||
if(!queryTaskSumInfoNode["TotalStmtCountToday"].isNull())
|
||||
queryTaskSumInfo_.totalStmtCountToday = queryTaskSumInfoNode["TotalStmtCountToday"].asString();
|
||||
if(!queryTaskSumInfoNode["TotalChargedStmtCountToday"].isNull())
|
||||
queryTaskSumInfo_.totalChargedStmtCountToday = queryTaskSumInfoNode["TotalChargedStmtCountToday"].asString();
|
||||
if(!queryTaskSumInfoNode["ScannedDataBytesTodayIncr"].isNull())
|
||||
queryTaskSumInfo_.scannedDataBytesTodayIncr = queryTaskSumInfoNode["ScannedDataBytesTodayIncr"].asString();
|
||||
if(!queryTaskSumInfoNode["TotalStmtCountTodayIncr"].isNull())
|
||||
queryTaskSumInfo_.totalStmtCountTodayIncr = queryTaskSumInfoNode["TotalStmtCountTodayIncr"].asString();
|
||||
if(!queryTaskSumInfoNode["TotalChargedStmtCountTodayIncr"].isNull())
|
||||
queryTaskSumInfo_.totalChargedStmtCountTodayIncr = queryTaskSumInfoNode["TotalChargedStmtCountTodayIncr"].asString();
|
||||
if(!queryTaskSumInfoNode["ScannedDataBytesGbYesterday"].isNull())
|
||||
queryTaskSumInfo_.scannedDataBytesGbYesterday = queryTaskSumInfoNode["ScannedDataBytesGbYesterday"].asString();
|
||||
if(!queryTaskSumInfoNode["TotalStmtCountYesterday"].isNull())
|
||||
queryTaskSumInfo_.totalStmtCountYesterday = queryTaskSumInfoNode["TotalStmtCountYesterday"].asString();
|
||||
if(!queryTaskSumInfoNode["TotalChargedStmtCountYesterday"].isNull())
|
||||
queryTaskSumInfo_.totalChargedStmtCountYesterday = queryTaskSumInfoNode["TotalChargedStmtCountYesterday"].asString();
|
||||
if(!queryTaskSumInfoNode["ScannedDataBytesYesterdayIncr"].isNull())
|
||||
queryTaskSumInfo_.scannedDataBytesYesterdayIncr = queryTaskSumInfoNode["ScannedDataBytesYesterdayIncr"].asString();
|
||||
if(!queryTaskSumInfoNode["TotalStmtCountYesterdayIncr"].isNull())
|
||||
queryTaskSumInfo_.totalStmtCountYesterdayIncr = queryTaskSumInfoNode["TotalStmtCountYesterdayIncr"].asString();
|
||||
if(!queryTaskSumInfoNode["TotalChargedStmtCountYesterdayIncr"].isNull())
|
||||
queryTaskSumInfo_.totalChargedStmtCountYesterdayIncr = queryTaskSumInfoNode["TotalChargedStmtCountYesterdayIncr"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
QueryTaskSumResult::QueryTaskSumInfo QueryTaskSumResult::getQueryTaskSumInfo()const
|
||||
{
|
||||
return queryTaskSumInfo_;
|
||||
}
|
||||
|
||||
std::string QueryTaskSumResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/SetCapacityLimitPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::SetCapacityLimitPolicyRequest;
|
||||
|
||||
SetCapacityLimitPolicyRequest::SetCapacityLimitPolicyRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "SetCapacityLimitPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetCapacityLimitPolicyRequest::~SetCapacityLimitPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string SetCapacityLimitPolicyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SetCapacityLimitPolicyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SetCapacityLimitPolicyRequest::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void SetCapacityLimitPolicyRequest::setPolicy(const std::string& policy)
|
||||
{
|
||||
policy_ = policy;
|
||||
setBodyParameter("Policy", policy);
|
||||
}
|
||||
|
||||
std::string SetCapacityLimitPolicyRequest::getExternalBizAliyunUid()const
|
||||
{
|
||||
return externalBizAliyunUid_;
|
||||
}
|
||||
|
||||
void SetCapacityLimitPolicyRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid)
|
||||
{
|
||||
externalBizAliyunUid_ = externalBizAliyunUid;
|
||||
setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/SetCapacityLimitPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
SetCapacityLimitPolicyResult::SetCapacityLimitPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetCapacityLimitPolicyResult::SetCapacityLimitPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetCapacityLimitPolicyResult::~SetCapacityLimitPolicyResult()
|
||||
{}
|
||||
|
||||
void SetCapacityLimitPolicyResult::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 SetCapacityLimitPolicyResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/SetRelationWithBizRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::SetRelationWithBizRequest;
|
||||
|
||||
SetRelationWithBizRequest::SetRelationWithBizRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "SetRelationWithBiz")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetRelationWithBizRequest::~SetRelationWithBizRequest()
|
||||
{}
|
||||
|
||||
std::string SetRelationWithBizRequest::getExternalUid()const
|
||||
{
|
||||
return externalUid_;
|
||||
}
|
||||
|
||||
void SetRelationWithBizRequest::setExternalUid(const std::string& externalUid)
|
||||
{
|
||||
externalUid_ = externalUid;
|
||||
setBodyParameter("ExternalUid", externalUid);
|
||||
}
|
||||
|
||||
std::string SetRelationWithBizRequest::getExternalAliyunUid()const
|
||||
{
|
||||
return externalAliyunUid_;
|
||||
}
|
||||
|
||||
void SetRelationWithBizRequest::setExternalAliyunUid(const std::string& externalAliyunUid)
|
||||
{
|
||||
externalAliyunUid_ = externalAliyunUid;
|
||||
setBodyParameter("ExternalAliyunUid", externalAliyunUid);
|
||||
}
|
||||
|
||||
std::string SetRelationWithBizRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SetRelationWithBizRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SetRelationWithBizRequest::getExternalBizAliyunUid()const
|
||||
{
|
||||
return externalBizAliyunUid_;
|
||||
}
|
||||
|
||||
void SetRelationWithBizRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid)
|
||||
{
|
||||
externalBizAliyunUid_ = externalBizAliyunUid;
|
||||
setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/SetRelationWithBizResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
SetRelationWithBizResult::SetRelationWithBizResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetRelationWithBizResult::SetRelationWithBizResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetRelationWithBizResult::~SetRelationWithBizResult()
|
||||
{}
|
||||
|
||||
void SetRelationWithBizResult::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 SetRelationWithBizResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/SetTrafficLimitPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::SetTrafficLimitPolicyRequest;
|
||||
|
||||
SetTrafficLimitPolicyRequest::SetTrafficLimitPolicyRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "SetTrafficLimitPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetTrafficLimitPolicyRequest::~SetTrafficLimitPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string SetTrafficLimitPolicyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SetTrafficLimitPolicyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SetTrafficLimitPolicyRequest::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void SetTrafficLimitPolicyRequest::setPolicy(const std::string& policy)
|
||||
{
|
||||
policy_ = policy;
|
||||
setBodyParameter("Policy", policy);
|
||||
}
|
||||
|
||||
std::string SetTrafficLimitPolicyRequest::getExternalBizAliyunUid()const
|
||||
{
|
||||
return externalBizAliyunUid_;
|
||||
}
|
||||
|
||||
void SetTrafficLimitPolicyRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid)
|
||||
{
|
||||
externalBizAliyunUid_ = externalBizAliyunUid;
|
||||
setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/SetTrafficLimitPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
SetTrafficLimitPolicyResult::SetTrafficLimitPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetTrafficLimitPolicyResult::SetTrafficLimitPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetTrafficLimitPolicyResult::~SetTrafficLimitPolicyResult()
|
||||
{}
|
||||
|
||||
void SetTrafficLimitPolicyResult::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 SetTrafficLimitPolicyResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/StartVirtualClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::StartVirtualClusterRequest;
|
||||
|
||||
StartVirtualClusterRequest::StartVirtualClusterRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "StartVirtualCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartVirtualClusterRequest::~StartVirtualClusterRequest()
|
||||
{}
|
||||
|
||||
std::string StartVirtualClusterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void StartVirtualClusterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/StartVirtualClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
StartVirtualClusterResult::StartVirtualClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartVirtualClusterResult::StartVirtualClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartVirtualClusterResult::~StartVirtualClusterResult()
|
||||
{}
|
||||
|
||||
void StartVirtualClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/StopVirtualClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::StopVirtualClusterRequest;
|
||||
|
||||
StopVirtualClusterRequest::StopVirtualClusterRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "StopVirtualCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopVirtualClusterRequest::~StopVirtualClusterRequest()
|
||||
{}
|
||||
|
||||
std::string StopVirtualClusterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void StopVirtualClusterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/StopVirtualClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
StopVirtualClusterResult::StopVirtualClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopVirtualClusterResult::StopVirtualClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopVirtualClusterResult::~StopVirtualClusterResult()
|
||||
{}
|
||||
|
||||
void StopVirtualClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
84
openanalytics-open/src/model/UpgradeInstanceRequest.cc
Normal file
84
openanalytics-open/src/model/UpgradeInstanceRequest.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/UpgradeInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Openanalytics_open::Model::UpgradeInstanceRequest;
|
||||
|
||||
UpgradeInstanceRequest::UpgradeInstanceRequest() :
|
||||
RpcServiceRequest("openanalytics-open", "2018-06-19", "UpgradeInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpgradeInstanceRequest::~UpgradeInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string UpgradeInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpgradeInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setBodyParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpgradeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpgradeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UpgradeInstanceRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void UpgradeInstanceRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setBodyParameter("ChargeType", chargeType);
|
||||
}
|
||||
|
||||
std::string UpgradeInstanceRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void UpgradeInstanceRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setBodyParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
std::string UpgradeInstanceRequest::getComponent()const
|
||||
{
|
||||
return component_;
|
||||
}
|
||||
|
||||
void UpgradeInstanceRequest::setComponent(const std::string& component)
|
||||
{
|
||||
component_ = component;
|
||||
setBodyParameter("Component", component);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceResult.h>
|
||||
#include <alibabacloud/openanalytics-open/model/UpgradeInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Openanalytics_open;
|
||||
using namespace AlibabaCloud::Openanalytics_open::Model;
|
||||
|
||||
OpenDataLakeAnalyticsServiceResult::OpenDataLakeAnalyticsServiceResult() :
|
||||
UpgradeInstanceResult::UpgradeInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenDataLakeAnalyticsServiceResult::OpenDataLakeAnalyticsServiceResult(const std::string &payload) :
|
||||
UpgradeInstanceResult::UpgradeInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenDataLakeAnalyticsServiceResult::~OpenDataLakeAnalyticsServiceResult()
|
||||
UpgradeInstanceResult::~UpgradeInstanceResult()
|
||||
{}
|
||||
|
||||
void OpenDataLakeAnalyticsServiceResult::parse(const std::string &payload)
|
||||
void UpgradeInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -50,22 +50,22 @@ void OpenDataLakeAnalyticsServiceResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string OpenDataLakeAnalyticsServiceResult::getErrorInfo()const
|
||||
std::string UpgradeInstanceResult::getErrorInfo()const
|
||||
{
|
||||
return errorInfo_;
|
||||
}
|
||||
|
||||
std::string OpenDataLakeAnalyticsServiceResult::getErrorCode()const
|
||||
std::string UpgradeInstanceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool OpenDataLakeAnalyticsServiceResult::getSuccess()const
|
||||
bool UpgradeInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string OpenDataLakeAnalyticsServiceResult::getResult()const
|
||||
std::string UpgradeInstanceResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
Reference in New Issue
Block a user