Generate SDK by new Generator

This commit is contained in:
wb-hx510875
2019-09-18 11:18:56 +08:00
parent be86048a76
commit f3eaf1d292
9054 changed files with 325898 additions and 381375 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -35,13 +35,9 @@ AttachInstancesResult::~AttachInstancesResult()
void AttachInstancesResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,13 +35,9 @@ CreateClusterResult::~CreateClusterResult()
void CreateClusterResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,13 +35,9 @@ DeleteClusterNodesResult::~DeleteClusterNodesResult()
void DeleteClusterNodesResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,13 +35,9 @@ DeleteClusterResult::~DeleteClusterResult()
void DeleteClusterResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,13 +35,9 @@ DescribeClusterUserKubeconfigResult::~DescribeClusterUserKubeconfigResult()
void DescribeClusterUserKubeconfigResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cs/model/DescribeClusterV2UserKubeconfigRequest.h>
using AlibabaCloud::CS::Model::DescribeClusterV2UserKubeconfigRequest;
DescribeClusterV2UserKubeconfigRequest::DescribeClusterV2UserKubeconfigRequest() :
RoaServiceRequest("cs", "2015-12-15")
{}
DescribeClusterV2UserKubeconfigRequest::~DescribeClusterV2UserKubeconfigRequest()
{}
bool DescribeClusterV2UserKubeconfigRequest::getPrivateIpAddress()const
{
return privateIpAddress_;
}
void DescribeClusterV2UserKubeconfigRequest::setPrivateIpAddress(bool privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
setCoreParameter("PrivateIpAddress", privateIpAddress ? "true" : "false");
}
std::string DescribeClusterV2UserKubeconfigRequest::getClusterId()const
{
return clusterId_;
}
void DescribeClusterV2UserKubeconfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cs/model/DescribeClusterV2UserKubeconfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CS;
using namespace AlibabaCloud::CS::Model;
DescribeClusterV2UserKubeconfigResult::DescribeClusterV2UserKubeconfigResult() :
ServiceResult()
{}
DescribeClusterV2UserKubeconfigResult::DescribeClusterV2UserKubeconfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterV2UserKubeconfigResult::~DescribeClusterV2UserKubeconfigResult()
{}
void DescribeClusterV2UserKubeconfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,13 +35,9 @@ DescribeClustersResult::~DescribeClustersResult()
void DescribeClustersResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,13 +35,9 @@ ModifyClusterResult::~ModifyClusterResult()
void ModifyClusterResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,13 +35,9 @@ ScaleClusterResult::~ScaleClusterResult()
void ScaleClusterResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}