File diff suppressed because it is too large
Load Diff
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::CreateConfigRequest;
|
||||
|
||||
CreateConfigRequest::CreateConfigRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateConfig")
|
||||
{}
|
||||
|
||||
CreateConfigRequest::~CreateConfigRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::CreateConfigRequest;
|
||||
|
||||
CreateConfigRequest::CreateConfigRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateConfig")
|
||||
{}
|
||||
|
||||
CreateConfigRequest::~CreateConfigRequest()
|
||||
{}
|
||||
|
||||
std::string CreateConfigRequest::getCode()const
|
||||
{
|
||||
return code_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
CreateConfigResult::CreateConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConfigResult::CreateConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConfigResult::~CreateConfigResult()
|
||||
{}
|
||||
|
||||
void CreateConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
CreateConfigResult::CreateConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConfigResult::CreateConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConfigResult::~CreateConfigResult()
|
||||
{}
|
||||
|
||||
void CreateConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateDataLimitRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::CreateDataLimitRequest;
|
||||
|
||||
CreateDataLimitRequest::CreateDataLimitRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateDataLimit")
|
||||
{}
|
||||
|
||||
CreateDataLimitRequest::~CreateDataLimitRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateDataLimitRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::CreateDataLimitRequest;
|
||||
|
||||
CreateDataLimitRequest::CreateDataLimitRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateDataLimit")
|
||||
{}
|
||||
|
||||
CreateDataLimitRequest::~CreateDataLimitRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDataLimitRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateDataLimitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
CreateDataLimitResult::CreateDataLimitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDataLimitResult::CreateDataLimitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDataLimitResult::~CreateDataLimitResult()
|
||||
{}
|
||||
|
||||
void CreateDataLimitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateDataLimitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
CreateDataLimitResult::CreateDataLimitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDataLimitResult::CreateDataLimitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDataLimitResult::~CreateDataLimitResult()
|
||||
{}
|
||||
|
||||
void CreateDataLimitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::CreateRuleRequest;
|
||||
|
||||
CreateRuleRequest::CreateRuleRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateRule")
|
||||
{}
|
||||
|
||||
CreateRuleRequest::~CreateRuleRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::CreateRuleRequest;
|
||||
|
||||
CreateRuleRequest::CreateRuleRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateRule")
|
||||
{}
|
||||
|
||||
CreateRuleRequest::~CreateRuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
CreateRuleResult::CreateRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRuleResult::CreateRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRuleResult::~CreateRuleResult()
|
||||
{}
|
||||
|
||||
void CreateRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
CreateRuleResult::CreateRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRuleResult::CreateRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRuleResult::~CreateRuleResult()
|
||||
{}
|
||||
|
||||
void CreateRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateUserAuthRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::CreateUserAuthRequest;
|
||||
|
||||
CreateUserAuthRequest::CreateUserAuthRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateUserAuth")
|
||||
{}
|
||||
|
||||
CreateUserAuthRequest::~CreateUserAuthRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateUserAuthRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::CreateUserAuthRequest;
|
||||
|
||||
CreateUserAuthRequest::CreateUserAuthRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateUserAuth")
|
||||
{}
|
||||
|
||||
CreateUserAuthRequest::~CreateUserAuthRequest()
|
||||
{}
|
||||
|
||||
long CreateUserAuthRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateUserAuthResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
CreateUserAuthResult::CreateUserAuthResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserAuthResult::CreateUserAuthResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserAuthResult::~CreateUserAuthResult()
|
||||
{}
|
||||
|
||||
void CreateUserAuthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/CreateUserAuthResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
CreateUserAuthResult::CreateUserAuthResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserAuthResult::CreateUserAuthResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserAuthResult::~CreateUserAuthResult()
|
||||
{}
|
||||
|
||||
void CreateUserAuthResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DeleteDataLimitRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DeleteDataLimitRequest;
|
||||
|
||||
DeleteDataLimitRequest::DeleteDataLimitRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DeleteDataLimit")
|
||||
{}
|
||||
|
||||
DeleteDataLimitRequest::~DeleteDataLimitRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DeleteDataLimitRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DeleteDataLimitRequest;
|
||||
|
||||
DeleteDataLimitRequest::DeleteDataLimitRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DeleteDataLimit")
|
||||
{}
|
||||
|
||||
DeleteDataLimitRequest::~DeleteDataLimitRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDataLimitRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DeleteDataLimitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DeleteDataLimitResult::DeleteDataLimitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDataLimitResult::DeleteDataLimitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDataLimitResult::~DeleteDataLimitResult()
|
||||
{}
|
||||
|
||||
void DeleteDataLimitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DeleteDataLimitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DeleteDataLimitResult::DeleteDataLimitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDataLimitResult::DeleteDataLimitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDataLimitResult::~DeleteDataLimitResult()
|
||||
{}
|
||||
|
||||
void DeleteDataLimitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DeleteRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DeleteRuleRequest;
|
||||
|
||||
DeleteRuleRequest::DeleteRuleRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DeleteRule")
|
||||
{}
|
||||
|
||||
DeleteRuleRequest::~DeleteRuleRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DeleteRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DeleteRuleRequest;
|
||||
|
||||
DeleteRuleRequest::DeleteRuleRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DeleteRule")
|
||||
{}
|
||||
|
||||
DeleteRuleRequest::~DeleteRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DeleteRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DeleteRuleResult::DeleteRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRuleResult::DeleteRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRuleResult::~DeleteRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DeleteRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DeleteRuleResult::DeleteRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRuleResult::DeleteRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRuleResult::~DeleteRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAccountDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeAccountDetailRequest;
|
||||
|
||||
DescribeAccountDetailRequest::DescribeAccountDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAccountDetail")
|
||||
{}
|
||||
|
||||
DescribeAccountDetailRequest::~DescribeAccountDetailRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAccountDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeAccountDetailRequest;
|
||||
|
||||
DescribeAccountDetailRequest::DescribeAccountDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAccountDetail")
|
||||
{}
|
||||
|
||||
DescribeAccountDetailRequest::~DescribeAccountDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAccountDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAccountDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeAccountDetailResult::DescribeAccountDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccountDetailResult::DescribeAccountDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccountDetailResult::~DescribeAccountDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeAccountDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAccountDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeAccountDetailResult::DescribeAccountDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccountDetailResult::DescribeAccountDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccountDetailResult::~DescribeAccountDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeAccountDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["Id"].isNull())
|
||||
account_.id = std::stol(accountNode["Id"].asString());
|
||||
@@ -103,9 +106,9 @@ void DescribeAccountDetailResult::parse(const std::string &payload)
|
||||
account_.eventCount.total.confirmCount = std::stol(totalNode["ConfirmCount"].asString());
|
||||
if(!totalNode["ExcludeCount"].isNull())
|
||||
account_.eventCount.total.excludeCount = std::stol(totalNode["ExcludeCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
DescribeAccountDetailResult::Account DescribeAccountDetailResult::getAccount()const
|
||||
{
|
||||
return account_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeAccountsRequest;
|
||||
|
||||
DescribeAccountsRequest::DescribeAccountsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAccounts")
|
||||
{}
|
||||
|
||||
DescribeAccountsRequest::~DescribeAccountsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeAccountsRequest;
|
||||
|
||||
DescribeAccountsRequest::DescribeAccountsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAccounts")
|
||||
{}
|
||||
|
||||
DescribeAccountsRequest::~DescribeAccountsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAccountsRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccountsResult::~DescribeAccountsResult()
|
||||
{}
|
||||
|
||||
void DescribeAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccountsResult::~DescribeAccountsResult()
|
||||
{}
|
||||
|
||||
void DescribeAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Account"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -100,9 +103,9 @@ void DescribeAccountsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeAccountsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAuthAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeAuthAccountsRequest;
|
||||
|
||||
DescribeAuthAccountsRequest::DescribeAuthAccountsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAuthAccounts")
|
||||
{}
|
||||
|
||||
DescribeAuthAccountsRequest::~DescribeAuthAccountsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAuthAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeAuthAccountsRequest;
|
||||
|
||||
DescribeAuthAccountsRequest::DescribeAuthAccountsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAuthAccounts")
|
||||
{}
|
||||
|
||||
DescribeAuthAccountsRequest::~DescribeAuthAccountsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAuthAccountsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAuthAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeAuthAccountsResult::DescribeAuthAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuthAccountsResult::DescribeAuthAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuthAccountsResult::~DescribeAuthAccountsResult()
|
||||
{}
|
||||
|
||||
void DescribeAuthAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeAuthAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeAuthAccountsResult::DescribeAuthAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuthAccountsResult::DescribeAuthAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuthAccountsResult::~DescribeAuthAccountsResult()
|
||||
{}
|
||||
|
||||
void DescribeAuthAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Account"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -64,9 +67,9 @@ void DescribeAuthAccountsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeAuthAccountsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeCloudDatabasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeCloudDatabasesRequest;
|
||||
|
||||
DescribeCloudDatabasesRequest::DescribeCloudDatabasesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudDatabases")
|
||||
{}
|
||||
|
||||
DescribeCloudDatabasesRequest::~DescribeCloudDatabasesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeCloudDatabasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeCloudDatabasesRequest;
|
||||
|
||||
DescribeCloudDatabasesRequest::DescribeCloudDatabasesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudDatabases")
|
||||
{}
|
||||
|
||||
DescribeCloudDatabasesRequest::~DescribeCloudDatabasesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCloudDatabasesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeCloudDatabasesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeCloudDatabasesResult::DescribeCloudDatabasesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCloudDatabasesResult::DescribeCloudDatabasesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCloudDatabasesResult::~DescribeCloudDatabasesResult()
|
||||
{}
|
||||
|
||||
void DescribeCloudDatabasesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeCloudDatabasesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeCloudDatabasesResult::DescribeCloudDatabasesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCloudDatabasesResult::DescribeCloudDatabasesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCloudDatabasesResult::~DescribeCloudDatabasesResult()
|
||||
{}
|
||||
|
||||
void DescribeCloudDatabasesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCloudDatabaseList = value["CloudDatabaseList"]["CloudDatabase"];
|
||||
for (auto value : allCloudDatabaseList)
|
||||
{
|
||||
@@ -52,9 +55,9 @@ void DescribeCloudDatabasesResult::parse(const std::string &payload)
|
||||
cloudDatabaseListObject.instanceId = value["InstanceId"].asString();
|
||||
cloudDatabaseList_.push_back(cloudDatabaseListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCloudDatabasesResult::CloudDatabase> DescribeCloudDatabasesResult::getCloudDatabaseList()const
|
||||
{
|
||||
return cloudDatabaseList_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeCloudInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeCloudInstancesRequest;
|
||||
|
||||
DescribeCloudInstancesRequest::DescribeCloudInstancesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudInstances")
|
||||
{}
|
||||
|
||||
DescribeCloudInstancesRequest::~DescribeCloudInstancesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeCloudInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeCloudInstancesRequest;
|
||||
|
||||
DescribeCloudInstancesRequest::DescribeCloudInstancesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudInstances")
|
||||
{}
|
||||
|
||||
DescribeCloudInstancesRequest::~DescribeCloudInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCloudInstancesRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeCloudInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeCloudInstancesResult::DescribeCloudInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCloudInstancesResult::DescribeCloudInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCloudInstancesResult::~DescribeCloudInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeCloudInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeCloudInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeCloudInstancesResult::DescribeCloudInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCloudInstancesResult::DescribeCloudInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCloudInstancesResult::~DescribeCloudInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeCloudInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCloudInstanceList = value["CloudInstanceList"]["CloudInstance"];
|
||||
for (auto value : allCloudInstanceList)
|
||||
{
|
||||
@@ -52,9 +55,9 @@ void DescribeCloudInstancesResult::parse(const std::string &payload)
|
||||
cloudInstanceListObject.instanceId = value["InstanceId"].asString();
|
||||
cloudInstanceList_.push_back(cloudInstanceListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCloudInstancesResult::CloudInstance> DescribeCloudInstancesResult::getCloudInstanceList()const
|
||||
{
|
||||
return cloudInstanceList_;
|
||||
|
||||
@@ -1,29 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeColumnsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeColumnsRequest;
|
||||
|
||||
DescribeColumnsRequest::DescribeColumnsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeColumns")
|
||||
{}
|
||||
|
||||
DescribeColumnsRequest::~DescribeColumnsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeColumnsRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeColumnsRequest.h>
|
||||
void DescribeColumnsRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeColumnsRequest;
|
||||
long DescribeColumnsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
DescribeColumnsRequest::DescribeColumnsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeColumns")
|
||||
{}
|
||||
|
||||
DescribeColumnsRequest::~DescribeColumnsRequest()
|
||||
{}
|
||||
void DescribeColumnsRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string DescribeColumnsRequest::getSourceIp()const
|
||||
{
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeColumnsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeColumnsResult::DescribeColumnsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeColumnsResult::DescribeColumnsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeColumnsResult::~DescribeColumnsResult()
|
||||
{}
|
||||
|
||||
void DescribeColumnsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeColumnsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeColumnsResult::DescribeColumnsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeColumnsResult::DescribeColumnsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeColumnsResult::~DescribeColumnsResult()
|
||||
{}
|
||||
|
||||
void DescribeColumnsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Column"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -82,9 +85,9 @@ void DescribeColumnsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeColumnsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeConfigsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeConfigsRequest;
|
||||
|
||||
DescribeConfigsRequest::DescribeConfigsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeConfigs")
|
||||
{}
|
||||
|
||||
DescribeConfigsRequest::~DescribeConfigsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeConfigsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeConfigsRequest;
|
||||
|
||||
DescribeConfigsRequest::DescribeConfigsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeConfigs")
|
||||
{}
|
||||
|
||||
DescribeConfigsRequest::~DescribeConfigsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeConfigsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeConfigsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeConfigsResult::DescribeConfigsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConfigsResult::DescribeConfigsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConfigsResult::~DescribeConfigsResult()
|
||||
{}
|
||||
|
||||
void DescribeConfigsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeConfigsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeConfigsResult::DescribeConfigsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConfigsResult::DescribeConfigsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConfigsResult::~DescribeConfigsResult()
|
||||
{}
|
||||
|
||||
void DescribeConfigsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConfigList = value["ConfigList"]["Config"];
|
||||
for (auto value : allConfigList)
|
||||
{
|
||||
@@ -56,9 +59,9 @@ void DescribeConfigsResult::parse(const std::string &payload)
|
||||
configListObject.defaultValue = value["DefaultValue"].asString();
|
||||
configList_.push_back(configListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeConfigsResult::Config> DescribeConfigsResult::getConfigList()const
|
||||
{
|
||||
return configList_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataAssetsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataAssetsRequest;
|
||||
|
||||
DescribeDataAssetsRequest::DescribeDataAssetsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataAssets")
|
||||
{}
|
||||
|
||||
DescribeDataAssetsRequest::~DescribeDataAssetsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataAssetsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataAssetsRequest;
|
||||
|
||||
DescribeDataAssetsRequest::DescribeDataAssetsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataAssets")
|
||||
{}
|
||||
|
||||
DescribeDataAssetsRequest::~DescribeDataAssetsRequest()
|
||||
{}
|
||||
|
||||
int DescribeDataAssetsRequest::getRangeId()const
|
||||
{
|
||||
return rangeId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataAssetsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataAssetsResult::DescribeDataAssetsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataAssetsResult::DescribeDataAssetsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataAssetsResult::~DescribeDataAssetsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataAssetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataAssetsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataAssetsResult::DescribeDataAssetsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataAssetsResult::DescribeDataAssetsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataAssetsResult::~DescribeDataAssetsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataAssetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Asset"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -92,9 +95,9 @@ void DescribeDataAssetsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataAssetsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataHubConnectorsRequest;
|
||||
|
||||
DescribeDataHubConnectorsRequest::DescribeDataHubConnectorsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubConnectors")
|
||||
{}
|
||||
|
||||
DescribeDataHubConnectorsRequest::~DescribeDataHubConnectorsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataHubConnectorsRequest;
|
||||
|
||||
DescribeDataHubConnectorsRequest::DescribeDataHubConnectorsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubConnectors")
|
||||
{}
|
||||
|
||||
DescribeDataHubConnectorsRequest::~DescribeDataHubConnectorsRequest()
|
||||
{}
|
||||
|
||||
long DescribeDataHubConnectorsRequest::getTopicId()const
|
||||
{
|
||||
return topicId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataHubConnectorsResult::~DescribeDataHubConnectorsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataHubConnectorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataHubConnectorsResult::~DescribeDataHubConnectorsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataHubConnectorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Connector"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -74,9 +77,9 @@ void DescribeDataHubConnectorsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataHubConnectorsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubProjectsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataHubProjectsRequest;
|
||||
|
||||
DescribeDataHubProjectsRequest::DescribeDataHubProjectsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubProjects")
|
||||
{}
|
||||
|
||||
DescribeDataHubProjectsRequest::~DescribeDataHubProjectsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubProjectsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataHubProjectsRequest;
|
||||
|
||||
DescribeDataHubProjectsRequest::DescribeDataHubProjectsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubProjects")
|
||||
{}
|
||||
|
||||
DescribeDataHubProjectsRequest::~DescribeDataHubProjectsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataHubProjectsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubProjectsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataHubProjectsResult::DescribeDataHubProjectsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataHubProjectsResult::DescribeDataHubProjectsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataHubProjectsResult::~DescribeDataHubProjectsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataHubProjectsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubProjectsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataHubProjectsResult::DescribeDataHubProjectsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataHubProjectsResult::DescribeDataHubProjectsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataHubProjectsResult::~DescribeDataHubProjectsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataHubProjectsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Project"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -72,9 +75,9 @@ void DescribeDataHubProjectsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataHubProjectsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataHubSubscriptionsRequest;
|
||||
|
||||
DescribeDataHubSubscriptionsRequest::DescribeDataHubSubscriptionsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubSubscriptions")
|
||||
{}
|
||||
|
||||
DescribeDataHubSubscriptionsRequest::~DescribeDataHubSubscriptionsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataHubSubscriptionsRequest;
|
||||
|
||||
DescribeDataHubSubscriptionsRequest::DescribeDataHubSubscriptionsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubSubscriptions")
|
||||
{}
|
||||
|
||||
DescribeDataHubSubscriptionsRequest::~DescribeDataHubSubscriptionsRequest()
|
||||
{}
|
||||
|
||||
long DescribeDataHubSubscriptionsRequest::getTopicId()const
|
||||
{
|
||||
return topicId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataHubSubscriptionsResult::~DescribeDataHubSubscriptionsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataHubSubscriptionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataHubSubscriptionsResult::~DescribeDataHubSubscriptionsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataHubSubscriptionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Subscription"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -76,9 +79,9 @@ void DescribeDataHubSubscriptionsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataHubSubscriptionsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubTopicsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataHubTopicsRequest;
|
||||
|
||||
DescribeDataHubTopicsRequest::DescribeDataHubTopicsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubTopics")
|
||||
{}
|
||||
|
||||
DescribeDataHubTopicsRequest::~DescribeDataHubTopicsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubTopicsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataHubTopicsRequest;
|
||||
|
||||
DescribeDataHubTopicsRequest::DescribeDataHubTopicsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubTopics")
|
||||
{}
|
||||
|
||||
DescribeDataHubTopicsRequest::~DescribeDataHubTopicsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataHubTopicsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubTopicsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataHubTopicsResult::DescribeDataHubTopicsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataHubTopicsResult::DescribeDataHubTopicsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataHubTopicsResult::~DescribeDataHubTopicsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataHubTopicsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataHubTopicsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataHubTopicsResult::DescribeDataHubTopicsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataHubTopicsResult::DescribeDataHubTopicsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataHubTopicsResult::~DescribeDataHubTopicsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataHubTopicsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Topic"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -70,9 +73,9 @@ void DescribeDataHubTopicsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataHubTopicsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataLimitDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataLimitDetailRequest;
|
||||
|
||||
DescribeDataLimitDetailRequest::DescribeDataLimitDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimitDetail")
|
||||
{}
|
||||
|
||||
DescribeDataLimitDetailRequest::~DescribeDataLimitDetailRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataLimitDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataLimitDetailRequest;
|
||||
|
||||
DescribeDataLimitDetailRequest::DescribeDataLimitDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimitDetail")
|
||||
{}
|
||||
|
||||
DescribeDataLimitDetailRequest::~DescribeDataLimitDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataLimitDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataLimitDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataLimitDetailResult::DescribeDataLimitDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataLimitDetailResult::DescribeDataLimitDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataLimitDetailResult::~DescribeDataLimitDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeDataLimitDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataLimitDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataLimitDetailResult::DescribeDataLimitDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataLimitDetailResult::DescribeDataLimitDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataLimitDetailResult::~DescribeDataLimitDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeDataLimitDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataLimitNode = value["DataLimit"];
|
||||
if(!dataLimitNode["RegionId"].isNull())
|
||||
dataLimit_.regionId = dataLimitNode["RegionId"].asString();
|
||||
@@ -51,8 +54,6 @@ void DescribeDataLimitDetailResult::parse(const std::string &payload)
|
||||
dataLimit_.id = std::stol(dataLimitNode["Id"].asString());
|
||||
if(!dataLimitNode["UserName"].isNull())
|
||||
dataLimit_.userName = dataLimitNode["UserName"].asString();
|
||||
if(!dataLimitNode["Password"].isNull())
|
||||
dataLimit_.password = dataLimitNode["Password"].asString();
|
||||
if(!dataLimitNode["GmtCreate"].isNull())
|
||||
dataLimit_.gmtCreate = std::stol(dataLimitNode["GmtCreate"].asString());
|
||||
if(!dataLimitNode["Connector"].isNull())
|
||||
@@ -61,9 +62,13 @@ void DescribeDataLimitDetailResult::parse(const std::string &payload)
|
||||
dataLimit_.checkStatus = std::stoi(dataLimitNode["CheckStatus"].asString());
|
||||
if(!dataLimitNode["CheckStatusName"].isNull())
|
||||
dataLimit_.checkStatusName = dataLimitNode["CheckStatusName"].asString();
|
||||
|
||||
}
|
||||
|
||||
if(!dataLimitNode["ResourceType"].isNull())
|
||||
dataLimit_.resourceType = std::stol(dataLimitNode["ResourceType"].asString());
|
||||
if(!dataLimitNode["ResourceTypeCode"].isNull())
|
||||
dataLimit_.resourceTypeCode = dataLimitNode["ResourceTypeCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeDataLimitDetailResult::DataLimit DescribeDataLimitDetailResult::getDataLimit()const
|
||||
{
|
||||
return dataLimit_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataLimitsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataLimitsRequest;
|
||||
|
||||
DescribeDataLimitsRequest::DescribeDataLimitsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimits")
|
||||
{}
|
||||
|
||||
DescribeDataLimitsRequest::~DescribeDataLimitsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataLimitsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataLimitsRequest;
|
||||
|
||||
DescribeDataLimitsRequest::DescribeDataLimitsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimits")
|
||||
{}
|
||||
|
||||
DescribeDataLimitsRequest::~DescribeDataLimitsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataLimitsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataLimitsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataLimitsResult::DescribeDataLimitsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataLimitsResult::DescribeDataLimitsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataLimitsResult::~DescribeDataLimitsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataLimitsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDataLimitsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataLimitsResult::DescribeDataLimitsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataLimitsResult::DescribeDataLimitsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataLimitsResult::~DescribeDataLimitsResult()
|
||||
{}
|
||||
|
||||
void DescribeDataLimitsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataLimitList = value["DataLimitList"]["DataLimit"];
|
||||
for (auto value : allDataLimitList)
|
||||
{
|
||||
@@ -62,11 +65,15 @@ void DescribeDataLimitsResult::parse(const std::string &payload)
|
||||
dataLimitListObject.checkStatus = std::stoi(value["CheckStatus"].asString());
|
||||
if(!value["CheckStatusName"].isNull())
|
||||
dataLimitListObject.checkStatusName = value["CheckStatusName"].asString();
|
||||
if(!value["ResourceType"].isNull())
|
||||
dataLimitListObject.resourceType = std::stol(value["ResourceType"].asString());
|
||||
if(!value["ResourceTypeCode"].isNull())
|
||||
dataLimitListObject.resourceTypeCode = value["ResourceTypeCode"].asString();
|
||||
dataLimitList_.push_back(dataLimitListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDataLimitsResult::DataLimit> DescribeDataLimitsResult::getDataLimitList()const
|
||||
{
|
||||
return dataLimitList_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDepartsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDepartsRequest;
|
||||
|
||||
DescribeDepartsRequest::DescribeDepartsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDeparts")
|
||||
{}
|
||||
|
||||
DescribeDepartsRequest::~DescribeDepartsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDepartsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDepartsRequest;
|
||||
|
||||
DescribeDepartsRequest::DescribeDepartsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDeparts")
|
||||
{}
|
||||
|
||||
DescribeDepartsRequest::~DescribeDepartsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDepartsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDepartsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDepartsResult::DescribeDepartsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDepartsResult::DescribeDepartsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDepartsResult::~DescribeDepartsResult()
|
||||
{}
|
||||
|
||||
void DescribeDepartsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeDepartsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDepartsResult::DescribeDepartsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDepartsResult::DescribeDepartsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDepartsResult::~DescribeDepartsResult()
|
||||
{}
|
||||
|
||||
void DescribeDepartsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Depart"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -66,9 +69,9 @@ void DescribeDepartsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeDepartsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeEventDetailRequest;
|
||||
|
||||
DescribeEventDetailRequest::DescribeEventDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeEventDetail")
|
||||
{}
|
||||
|
||||
DescribeEventDetailRequest::~DescribeEventDetailRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeEventDetailRequest;
|
||||
|
||||
DescribeEventDetailRequest::DescribeEventDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeEventDetail")
|
||||
{}
|
||||
|
||||
DescribeEventDetailRequest::~DescribeEventDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEventDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventDetailResult::~DescribeEventDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeEventDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventDetailResult::~DescribeEventDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeEventDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto eventNode = value["Event"];
|
||||
if(!eventNode["Id"].isNull())
|
||||
event_.id = std::stol(eventNode["Id"].asString());
|
||||
@@ -113,9 +116,19 @@ void DescribeEventDetailResult::parse(const std::string &payload)
|
||||
chartItemObject.data.y = dataNode["Y"].asString();
|
||||
event_.detail.chart.push_back(chartItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
auto allResourceInfo = value["ResourceInfo"]["ResourceInfoItem"];
|
||||
for (auto value : allResourceInfo)
|
||||
{
|
||||
Event::Detail::ResourceInfoItem resourceInfoItemObject;
|
||||
if(!value["Label"].isNull())
|
||||
resourceInfoItemObject.label = value["Label"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
resourceInfoItemObject.value = value["Value"].asString();
|
||||
event_.detail.resourceInfo.push_back(resourceInfoItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeEventDetailResult::Event DescribeEventDetailResult::getEvent()const
|
||||
{
|
||||
return event_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventTypesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeEventTypesRequest;
|
||||
|
||||
DescribeEventTypesRequest::DescribeEventTypesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeEventTypes")
|
||||
{}
|
||||
|
||||
DescribeEventTypesRequest::~DescribeEventTypesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventTypesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeEventTypesRequest;
|
||||
|
||||
DescribeEventTypesRequest::DescribeEventTypesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeEventTypes")
|
||||
{}
|
||||
|
||||
DescribeEventTypesRequest::~DescribeEventTypesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEventTypesRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventTypesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeEventTypesResult::DescribeEventTypesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventTypesResult::DescribeEventTypesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventTypesResult::~DescribeEventTypesResult()
|
||||
{}
|
||||
|
||||
void DescribeEventTypesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventTypesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeEventTypesResult::DescribeEventTypesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventTypesResult::DescribeEventTypesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventTypesResult::~DescribeEventTypesResult()
|
||||
{}
|
||||
|
||||
void DescribeEventTypesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEventTypeList = value["EventTypeList"]["EventType"];
|
||||
for (auto value : allEventTypeList)
|
||||
{
|
||||
@@ -70,9 +73,9 @@ void DescribeEventTypesResult::parse(const std::string &payload)
|
||||
}
|
||||
eventTypeList_.push_back(eventTypeListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeEventTypesResult::EventType> DescribeEventTypesResult::getEventTypeList()const
|
||||
{
|
||||
return eventTypeList_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeEventsRequest;
|
||||
|
||||
DescribeEventsRequest::DescribeEventsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeEvents")
|
||||
{}
|
||||
|
||||
DescribeEventsRequest::~DescribeEventsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeEventsRequest;
|
||||
|
||||
DescribeEventsRequest::DescribeEventsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeEvents")
|
||||
{}
|
||||
|
||||
DescribeEventsRequest::~DescribeEventsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEventsRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeEventsResult::DescribeEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventsResult::DescribeEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventsResult::~DescribeEventsResult()
|
||||
{}
|
||||
|
||||
void DescribeEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeEventsResult::DescribeEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventsResult::DescribeEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventsResult::~DescribeEventsResult()
|
||||
{}
|
||||
|
||||
void DescribeEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Event"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -94,9 +97,9 @@ void DescribeEventsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeEventsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeInstancesRequest;
|
||||
|
||||
DescribeInstancesRequest::DescribeInstancesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeInstances")
|
||||
{}
|
||||
|
||||
DescribeInstancesRequest::~DescribeInstancesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeInstancesRequest;
|
||||
|
||||
DescribeInstancesRequest::DescribeInstancesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeInstances")
|
||||
{}
|
||||
|
||||
DescribeInstancesRequest::~DescribeInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeInstancesRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeInstancesResult::DescribeInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstancesResult::DescribeInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstancesResult::~DescribeInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeInstancesResult::DescribeInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstancesResult::DescribeInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstancesResult::~DescribeInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Instance"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -86,9 +89,9 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeOssObjectDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeOssObjectDetailRequest;
|
||||
|
||||
DescribeOssObjectDetailRequest::DescribeOssObjectDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjectDetail")
|
||||
{}
|
||||
|
||||
DescribeOssObjectDetailRequest::~DescribeOssObjectDetailRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeOssObjectDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeOssObjectDetailRequest;
|
||||
|
||||
DescribeOssObjectDetailRequest::DescribeOssObjectDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjectDetail")
|
||||
{}
|
||||
|
||||
DescribeOssObjectDetailRequest::~DescribeOssObjectDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeOssObjectDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeOssObjectDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeOssObjectDetailResult::DescribeOssObjectDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOssObjectDetailResult::DescribeOssObjectDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOssObjectDetailResult::~DescribeOssObjectDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeOssObjectDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeOssObjectDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeOssObjectDetailResult::DescribeOssObjectDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOssObjectDetailResult::DescribeOssObjectDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOssObjectDetailResult::~DescribeOssObjectDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeOssObjectDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto ossObjectDetailNode = value["OssObjectDetail"];
|
||||
if(!ossObjectDetailNode["Name"].isNull())
|
||||
ossObjectDetail_.name = ossObjectDetailNode["Name"].asString();
|
||||
@@ -61,9 +64,9 @@ void DescribeOssObjectDetailResult::parse(const std::string &payload)
|
||||
ruleObject.count = std::stol(value["Count"].asString());
|
||||
ossObjectDetail_.ruleList.push_back(ruleObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
DescribeOssObjectDetailResult::OssObjectDetail DescribeOssObjectDetailResult::getOssObjectDetail()const
|
||||
{
|
||||
return ossObjectDetail_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeOssObjectsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeOssObjectsRequest;
|
||||
|
||||
DescribeOssObjectsRequest::DescribeOssObjectsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjects")
|
||||
{}
|
||||
|
||||
DescribeOssObjectsRequest::~DescribeOssObjectsRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeOssObjectsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeOssObjectsRequest;
|
||||
|
||||
DescribeOssObjectsRequest::DescribeOssObjectsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjects")
|
||||
{}
|
||||
|
||||
DescribeOssObjectsRequest::~DescribeOssObjectsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeOssObjectsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeOssObjectsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeOssObjectsResult::DescribeOssObjectsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOssObjectsResult::DescribeOssObjectsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOssObjectsResult::~DescribeOssObjectsResult()
|
||||
{}
|
||||
|
||||
void DescribeOssObjectsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeOssObjectsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeOssObjectsResult::DescribeOssObjectsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOssObjectsResult::DescribeOssObjectsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOssObjectsResult::~DescribeOssObjectsResult()
|
||||
{}
|
||||
|
||||
void DescribeOssObjectsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Column"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -68,9 +71,9 @@ void DescribeOssObjectsResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeOssObjectsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribePackagesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribePackagesRequest;
|
||||
|
||||
DescribePackagesRequest::DescribePackagesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribePackages")
|
||||
{}
|
||||
|
||||
DescribePackagesRequest::~DescribePackagesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribePackagesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribePackagesRequest;
|
||||
|
||||
DescribePackagesRequest::DescribePackagesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribePackages")
|
||||
{}
|
||||
|
||||
DescribePackagesRequest::~DescribePackagesRequest()
|
||||
{}
|
||||
|
||||
long DescribePackagesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribePackagesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribePackagesResult::DescribePackagesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePackagesResult::DescribePackagesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePackagesResult::~DescribePackagesResult()
|
||||
{}
|
||||
|
||||
void DescribePackagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribePackagesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribePackagesResult::DescribePackagesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePackagesResult::DescribePackagesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePackagesResult::~DescribePackagesResult()
|
||||
{}
|
||||
|
||||
void DescribePackagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Package"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -74,9 +77,9 @@ void DescribePackagesResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribePackagesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribePrivilegesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribePrivilegesRequest;
|
||||
|
||||
DescribePrivilegesRequest::DescribePrivilegesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribePrivileges")
|
||||
{}
|
||||
|
||||
DescribePrivilegesRequest::~DescribePrivilegesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribePrivilegesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribePrivilegesRequest;
|
||||
|
||||
DescribePrivilegesRequest::DescribePrivilegesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribePrivileges")
|
||||
{}
|
||||
|
||||
DescribePrivilegesRequest::~DescribePrivilegesRequest()
|
||||
{}
|
||||
|
||||
long DescribePrivilegesRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribePrivilegesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribePrivilegesResult::DescribePrivilegesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePrivilegesResult::DescribePrivilegesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePrivilegesResult::~DescribePrivilegesResult()
|
||||
{}
|
||||
|
||||
void DescribePrivilegesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribePrivilegesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribePrivilegesResult::DescribePrivilegesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePrivilegesResult::DescribePrivilegesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePrivilegesResult::~DescribePrivilegesResult()
|
||||
{}
|
||||
|
||||
void DescribePrivilegesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Privilege"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -90,9 +93,9 @@ void DescribePrivilegesResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribePrivilegesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeRulesRequest;
|
||||
|
||||
DescribeRulesRequest::DescribeRulesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeRules")
|
||||
{}
|
||||
|
||||
DescribeRulesRequest::~DescribeRulesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeRulesRequest;
|
||||
|
||||
DescribeRulesRequest::DescribeRulesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeRules")
|
||||
{}
|
||||
|
||||
DescribeRulesRequest::~DescribeRulesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRulesRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeRulesResult::DescribeRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRulesResult::DescribeRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRulesResult::~DescribeRulesResult()
|
||||
{}
|
||||
|
||||
void DescribeRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeRulesResult::DescribeRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRulesResult::DescribeRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRulesResult::~DescribeRulesResult()
|
||||
{}
|
||||
|
||||
void DescribeRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Rule"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -84,9 +87,9 @@ void DescribeRulesResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeRulesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,29 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeTablesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeTablesRequest;
|
||||
|
||||
DescribeTablesRequest::DescribeTablesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeTables")
|
||||
{}
|
||||
|
||||
DescribeTablesRequest::~DescribeTablesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTablesRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeTablesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeTablesRequest;
|
||||
|
||||
DescribeTablesRequest::DescribeTablesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeTables")
|
||||
{}
|
||||
|
||||
DescribeTablesRequest::~DescribeTablesRequest()
|
||||
{}
|
||||
void DescribeTablesRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
long DescribeTablesRequest::getProductId()const
|
||||
{
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeTablesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeTablesResult::DescribeTablesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTablesResult::DescribeTablesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTablesResult::~DescribeTablesResult()
|
||||
{}
|
||||
|
||||
void DescribeTablesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeTablesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeTablesResult::DescribeTablesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTablesResult::DescribeTablesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTablesResult::~DescribeTablesResult()
|
||||
{}
|
||||
|
||||
void DescribeTablesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItems = value["Items"]["Table"];
|
||||
for (auto value : allItems)
|
||||
{
|
||||
@@ -80,9 +83,9 @@ void DescribeTablesResult::parse(const std::string &payload)
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int DescribeTablesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeUserStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeUserStatusRequest;
|
||||
|
||||
DescribeUserStatusRequest::DescribeUserStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeUserStatus")
|
||||
{}
|
||||
|
||||
DescribeUserStatusRequest::~DescribeUserStatusRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeUserStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeUserStatusRequest;
|
||||
|
||||
DescribeUserStatusRequest::DescribeUserStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeUserStatus")
|
||||
{}
|
||||
|
||||
DescribeUserStatusRequest::~DescribeUserStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeUserStatusRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeUserStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeUserStatusResult::DescribeUserStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeUserStatusResult::DescribeUserStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeUserStatusResult::~DescribeUserStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeUserStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeUserStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeUserStatusResult::DescribeUserStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeUserStatusResult::DescribeUserStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeUserStatusResult::~DescribeUserStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeUserStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userStatusNode = value["UserStatus"];
|
||||
if(!userStatusNode["Authed"].isNull())
|
||||
userStatus_.authed = userStatusNode["Authed"].asString() == "true";
|
||||
@@ -53,9 +56,27 @@ void DescribeUserStatusResult::parse(const std::string &payload)
|
||||
userStatus_.rdsSet = userStatusNode["RdsSet"].asString() == "true";
|
||||
if(!userStatusNode["AccessKeyId"].isNull())
|
||||
userStatus_.accessKeyId = userStatusNode["AccessKeyId"].asString();
|
||||
|
||||
}
|
||||
|
||||
if(!userStatusNode["Trail"].isNull())
|
||||
userStatus_.trail = userStatusNode["Trail"].asString() == "true";
|
||||
if(!userStatusNode["InstanceStatus"].isNull())
|
||||
userStatus_.instanceStatus = std::stoi(userStatusNode["InstanceStatus"].asString());
|
||||
if(!userStatusNode["InstanceId"].isNull())
|
||||
userStatus_.instanceId = userStatusNode["InstanceId"].asString();
|
||||
if(!userStatusNode["RemainDays"].isNull())
|
||||
userStatus_.remainDays = std::stoi(userStatusNode["RemainDays"].asString());
|
||||
if(!userStatusNode["RenewStatus"].isNull())
|
||||
userStatus_.renewStatus = userStatusNode["RenewStatus"].asString() == "true";
|
||||
if(!userStatusNode["InstanceNum"].isNull())
|
||||
userStatus_.instanceNum = std::stoi(userStatusNode["InstanceNum"].asString());
|
||||
if(!userStatusNode["UseInstanceNum"].isNull())
|
||||
userStatus_.useInstanceNum = std::stoi(userStatusNode["UseInstanceNum"].asString());
|
||||
if(!userStatusNode["OssSize"].isNull())
|
||||
userStatus_.ossSize = std::stol(userStatusNode["OssSize"].asString());
|
||||
if(!userStatusNode["UseOssSize"].isNull())
|
||||
userStatus_.useOssSize = std::stol(userStatusNode["UseOssSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeUserStatusResult::UserStatus DescribeUserStatusResult::getUserStatus()const
|
||||
{
|
||||
return userStatus_;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyDataLimitRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyDataLimitRequest;
|
||||
|
||||
ModifyDataLimitRequest::ModifyDataLimitRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyDataLimit")
|
||||
{}
|
||||
|
||||
ModifyDataLimitRequest::~ModifyDataLimitRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyDataLimitRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyDataLimitRequest;
|
||||
|
||||
ModifyDataLimitRequest::ModifyDataLimitRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyDataLimit")
|
||||
{}
|
||||
|
||||
ModifyDataLimitRequest::~ModifyDataLimitRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDataLimitRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyDataLimitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyDataLimitResult::ModifyDataLimitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDataLimitResult::ModifyDataLimitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDataLimitResult::~ModifyDataLimitResult()
|
||||
{}
|
||||
|
||||
void ModifyDataLimitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyDataLimitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyDataLimitResult::ModifyDataLimitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDataLimitResult::ModifyDataLimitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDataLimitResult::~ModifyDataLimitResult()
|
||||
{}
|
||||
|
||||
void ModifyDataLimitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyDefaultLevelRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyDefaultLevelRequest;
|
||||
|
||||
ModifyDefaultLevelRequest::ModifyDefaultLevelRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyDefaultLevel")
|
||||
{}
|
||||
|
||||
ModifyDefaultLevelRequest::~ModifyDefaultLevelRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyDefaultLevelRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyDefaultLevelRequest;
|
||||
|
||||
ModifyDefaultLevelRequest::ModifyDefaultLevelRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyDefaultLevel")
|
||||
{}
|
||||
|
||||
ModifyDefaultLevelRequest::~ModifyDefaultLevelRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDefaultLevelRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyDefaultLevelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyDefaultLevelResult::ModifyDefaultLevelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDefaultLevelResult::ModifyDefaultLevelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDefaultLevelResult::~ModifyDefaultLevelResult()
|
||||
{}
|
||||
|
||||
void ModifyDefaultLevelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyDefaultLevelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyDefaultLevelResult::ModifyDefaultLevelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDefaultLevelResult::ModifyDefaultLevelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDefaultLevelResult::~ModifyDefaultLevelResult()
|
||||
{}
|
||||
|
||||
void ModifyDefaultLevelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyEventStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyEventStatusRequest;
|
||||
|
||||
ModifyEventStatusRequest::ModifyEventStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyEventStatus")
|
||||
{}
|
||||
|
||||
ModifyEventStatusRequest::~ModifyEventStatusRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyEventStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyEventStatusRequest;
|
||||
|
||||
ModifyEventStatusRequest::ModifyEventStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyEventStatus")
|
||||
{}
|
||||
|
||||
ModifyEventStatusRequest::~ModifyEventStatusRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyEventStatusRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyEventStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyEventStatusResult::ModifyEventStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyEventStatusResult::ModifyEventStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyEventStatusResult::~ModifyEventStatusResult()
|
||||
{}
|
||||
|
||||
void ModifyEventStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyEventStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyEventStatusResult::ModifyEventStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyEventStatusResult::ModifyEventStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyEventStatusResult::~ModifyEventStatusResult()
|
||||
{}
|
||||
|
||||
void ModifyEventStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyEventTypeStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyEventTypeStatusRequest;
|
||||
|
||||
ModifyEventTypeStatusRequest::ModifyEventTypeStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyEventTypeStatus")
|
||||
{}
|
||||
|
||||
ModifyEventTypeStatusRequest::~ModifyEventTypeStatusRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyEventTypeStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyEventTypeStatusRequest;
|
||||
|
||||
ModifyEventTypeStatusRequest::ModifyEventTypeStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyEventTypeStatus")
|
||||
{}
|
||||
|
||||
ModifyEventTypeStatusRequest::~ModifyEventTypeStatusRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyEventTypeStatusRequest::getSubTypeIds()const
|
||||
{
|
||||
return subTypeIds_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyEventTypeStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyEventTypeStatusResult::ModifyEventTypeStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyEventTypeStatusResult::ModifyEventTypeStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyEventTypeStatusResult::~ModifyEventTypeStatusResult()
|
||||
{}
|
||||
|
||||
void ModifyEventTypeStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyEventTypeStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyEventTypeStatusResult::ModifyEventTypeStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyEventTypeStatusResult::ModifyEventTypeStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyEventTypeStatusResult::~ModifyEventTypeStatusResult()
|
||||
{}
|
||||
|
||||
void ModifyEventTypeStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyRuleRequest;
|
||||
|
||||
ModifyRuleRequest::ModifyRuleRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyRule")
|
||||
{}
|
||||
|
||||
ModifyRuleRequest::~ModifyRuleRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyRuleRequest;
|
||||
|
||||
ModifyRuleRequest::ModifyRuleRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyRule")
|
||||
{}
|
||||
|
||||
ModifyRuleRequest::~ModifyRuleRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyRuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyRuleResult::ModifyRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyRuleResult::ModifyRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyRuleResult::~ModifyRuleResult()
|
||||
{}
|
||||
|
||||
void ModifyRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyRuleResult::ModifyRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyRuleResult::ModifyRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyRuleResult::~ModifyRuleResult()
|
||||
{}
|
||||
|
||||
void ModifyRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyRuleStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyRuleStatusRequest;
|
||||
|
||||
ModifyRuleStatusRequest::ModifyRuleStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyRuleStatus")
|
||||
{}
|
||||
|
||||
ModifyRuleStatusRequest::~ModifyRuleStatusRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyRuleStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifyRuleStatusRequest;
|
||||
|
||||
ModifyRuleStatusRequest::ModifyRuleStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyRuleStatus")
|
||||
{}
|
||||
|
||||
ModifyRuleStatusRequest::~ModifyRuleStatusRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyRuleStatusRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
|
||||
@@ -1,45 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyRuleStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyRuleStatusResult::ModifyRuleStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyRuleStatusResult::ModifyRuleStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyRuleStatusResult::~ModifyRuleStatusResult()
|
||||
{}
|
||||
|
||||
void ModifyRuleStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ModifyRuleStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifyRuleStatusResult::ModifyRuleStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyRuleStatusResult::ModifyRuleStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyRuleStatusResult::~ModifyRuleStatusResult()
|
||||
{}
|
||||
|
||||
void ModifyRuleStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ValidateConnectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ValidateConnectorRequest;
|
||||
|
||||
ValidateConnectorRequest::ValidateConnectorRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ValidateConnector")
|
||||
{}
|
||||
|
||||
ValidateConnectorRequest::~ValidateConnectorRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ValidateConnectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ValidateConnectorRequest;
|
||||
|
||||
ValidateConnectorRequest::ValidateConnectorRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ValidateConnector")
|
||||
{}
|
||||
|
||||
ValidateConnectorRequest::~ValidateConnectorRequest()
|
||||
{}
|
||||
|
||||
std::string ValidateConnectorRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
|
||||
@@ -1,50 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ValidateConnectorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ValidateConnectorResult::ValidateConnectorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ValidateConnectorResult::ValidateConnectorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ValidateConnectorResult::~ValidateConnectorResult()
|
||||
{}
|
||||
|
||||
void ValidateConnectorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ValidateConnectorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ValidateConnectorResult::ValidateConnectorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ValidateConnectorResult::ValidateConnectorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ValidateConnectorResult::~ValidateConnectorResult()
|
||||
{}
|
||||
|
||||
void ValidateConnectorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Connected"].isNull())
|
||||
connected_ = value["Connected"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
bool ValidateConnectorResult::getConnected()const
|
||||
{
|
||||
return connected_;
|
||||
|
||||
Reference in New Issue
Block a user