Rebuild sdk (#60)

* rebuild sdk

* fixed ut include Utils.h
This commit is contained in:
Axios
2019-08-14 14:34:09 +08:00
committed by GitHub
parent f3d9843e63
commit c43307bc80
11893 changed files with 462166 additions and 221301 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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/arms/model/CreateAlertContactGroupRequest.h>
using AlibabaCloud::ARMS::Model::CreateAlertContactGroupRequest;
CreateAlertContactGroupRequest::CreateAlertContactGroupRequest() :
RpcServiceRequest("arms", "2019-08-08", "CreateAlertContactGroup")
{}
CreateAlertContactGroupRequest::~CreateAlertContactGroupRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/CreateAlertContactGroupRequest.h>
using AlibabaCloud::ARMS::Model::CreateAlertContactGroupRequest;
CreateAlertContactGroupRequest::CreateAlertContactGroupRequest() :
RpcServiceRequest("arms", "2019-08-08", "CreateAlertContactGroup")
{}
CreateAlertContactGroupRequest::~CreateAlertContactGroupRequest()
{}
std::string CreateAlertContactGroupRequest::getRegionId()const
{
return regionId_;

View File

@@ -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/arms/model/CreateAlertContactGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
CreateAlertContactGroupResult::CreateAlertContactGroupResult() :
ServiceResult()
{}
CreateAlertContactGroupResult::CreateAlertContactGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAlertContactGroupResult::~CreateAlertContactGroupResult()
{}
void CreateAlertContactGroupResult::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/arms/model/CreateAlertContactGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
CreateAlertContactGroupResult::CreateAlertContactGroupResult() :
ServiceResult()
{}
CreateAlertContactGroupResult::CreateAlertContactGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAlertContactGroupResult::~CreateAlertContactGroupResult()
{}
void CreateAlertContactGroupResult::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["ContactGroupId"].isNull())
contactGroupId_ = value["ContactGroupId"].asString();
}
}
std::string CreateAlertContactGroupResult::getContactGroupId()const
{
return contactGroupId_;

View File

@@ -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/arms/model/CreateAlertContactRequest.h>
using AlibabaCloud::ARMS::Model::CreateAlertContactRequest;
CreateAlertContactRequest::CreateAlertContactRequest() :
RpcServiceRequest("arms", "2019-08-08", "CreateAlertContact")
{}
CreateAlertContactRequest::~CreateAlertContactRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/CreateAlertContactRequest.h>
using AlibabaCloud::ARMS::Model::CreateAlertContactRequest;
CreateAlertContactRequest::CreateAlertContactRequest() :
RpcServiceRequest("arms", "2019-08-08", "CreateAlertContact")
{}
CreateAlertContactRequest::~CreateAlertContactRequest()
{}
std::string CreateAlertContactRequest::getContactName()const
{
return contactName_;

View File

@@ -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/arms/model/CreateAlertContactResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
CreateAlertContactResult::CreateAlertContactResult() :
ServiceResult()
{}
CreateAlertContactResult::CreateAlertContactResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAlertContactResult::~CreateAlertContactResult()
{}
void CreateAlertContactResult::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/arms/model/CreateAlertContactResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
CreateAlertContactResult::CreateAlertContactResult() :
ServiceResult()
{}
CreateAlertContactResult::CreateAlertContactResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAlertContactResult::~CreateAlertContactResult()
{}
void CreateAlertContactResult::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["ContactId"].isNull())
contactId_ = value["ContactId"].asString();
}
}
std::string CreateAlertContactResult::getContactId()const
{
return contactId_;

View File

@@ -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/arms/model/CreateRetcodeAppRequest.h>
using AlibabaCloud::ARMS::Model::CreateRetcodeAppRequest;
CreateRetcodeAppRequest::CreateRetcodeAppRequest() :
RpcServiceRequest("arms", "2019-08-08", "CreateRetcodeApp")
{}
CreateRetcodeAppRequest::~CreateRetcodeAppRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/CreateRetcodeAppRequest.h>
using AlibabaCloud::ARMS::Model::CreateRetcodeAppRequest;
CreateRetcodeAppRequest::CreateRetcodeAppRequest() :
RpcServiceRequest("arms", "2019-08-08", "CreateRetcodeApp")
{}
CreateRetcodeAppRequest::~CreateRetcodeAppRequest()
{}
std::string CreateRetcodeAppRequest::getRegionId()const
{
return regionId_;

View File

@@ -1,53 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/CreateRetcodeAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
CreateRetcodeAppResult::CreateRetcodeAppResult() :
ServiceResult()
{}
CreateRetcodeAppResult::CreateRetcodeAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRetcodeAppResult::~CreateRetcodeAppResult()
{}
void CreateRetcodeAppResult::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/arms/model/CreateRetcodeAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
CreateRetcodeAppResult::CreateRetcodeAppResult() :
ServiceResult()
{}
CreateRetcodeAppResult::CreateRetcodeAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRetcodeAppResult::~CreateRetcodeAppResult()
{}
void CreateRetcodeAppResult::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 retcodeAppDataBeanNode = value["RetcodeAppDataBean"];
if(!retcodeAppDataBeanNode["AppId"].isNull())
retcodeAppDataBean_.appId = std::stol(retcodeAppDataBeanNode["AppId"].asString());
if(!retcodeAppDataBeanNode["Pid"].isNull())
retcodeAppDataBean_.pid = retcodeAppDataBeanNode["Pid"].asString();
}
}
CreateRetcodeAppResult::RetcodeAppDataBean CreateRetcodeAppResult::getRetcodeAppDataBean()const
{
return retcodeAppDataBean_;

View File

@@ -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/arms/model/DeleteRetcodeAppRequest.h>
using AlibabaCloud::ARMS::Model::DeleteRetcodeAppRequest;
DeleteRetcodeAppRequest::DeleteRetcodeAppRequest() :
RpcServiceRequest("arms", "2019-08-08", "DeleteRetcodeApp")
{}
DeleteRetcodeAppRequest::~DeleteRetcodeAppRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/DeleteRetcodeAppRequest.h>
using AlibabaCloud::ARMS::Model::DeleteRetcodeAppRequest;
DeleteRetcodeAppRequest::DeleteRetcodeAppRequest() :
RpcServiceRequest("arms", "2019-08-08", "DeleteRetcodeApp")
{}
DeleteRetcodeAppRequest::~DeleteRetcodeAppRequest()
{}
std::string DeleteRetcodeAppRequest::getRegionId()const
{
return regionId_;

View File

@@ -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/arms/model/DeleteRetcodeAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
DeleteRetcodeAppResult::DeleteRetcodeAppResult() :
ServiceResult()
{}
DeleteRetcodeAppResult::DeleteRetcodeAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRetcodeAppResult::~DeleteRetcodeAppResult()
{}
void DeleteRetcodeAppResult::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/arms/model/DeleteRetcodeAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
DeleteRetcodeAppResult::DeleteRetcodeAppResult() :
ServiceResult()
{}
DeleteRetcodeAppResult::DeleteRetcodeAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRetcodeAppResult::~DeleteRetcodeAppResult()
{}
void DeleteRetcodeAppResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
}
std::string DeleteRetcodeAppResult::getData()const
{
return data_;

View File

@@ -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/arms/model/ImportAppAlertRulesRequest.h>
using AlibabaCloud::ARMS::Model::ImportAppAlertRulesRequest;
ImportAppAlertRulesRequest::ImportAppAlertRulesRequest() :
RpcServiceRequest("arms", "2019-08-08", "ImportAppAlertRules")
{}
ImportAppAlertRulesRequest::~ImportAppAlertRulesRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/ImportAppAlertRulesRequest.h>
using AlibabaCloud::ARMS::Model::ImportAppAlertRulesRequest;
ImportAppAlertRulesRequest::ImportAppAlertRulesRequest() :
RpcServiceRequest("arms", "2019-08-08", "ImportAppAlertRules")
{}
ImportAppAlertRulesRequest::~ImportAppAlertRulesRequest()
{}
bool ImportAppAlertRulesRequest::getIsAutoStart()const
{
return isAutoStart_;

View File

@@ -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/arms/model/ImportAppAlertRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
ImportAppAlertRulesResult::ImportAppAlertRulesResult() :
ServiceResult()
{}
ImportAppAlertRulesResult::ImportAppAlertRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ImportAppAlertRulesResult::~ImportAppAlertRulesResult()
{}
void ImportAppAlertRulesResult::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/arms/model/ImportAppAlertRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
ImportAppAlertRulesResult::ImportAppAlertRulesResult() :
ServiceResult()
{}
ImportAppAlertRulesResult::ImportAppAlertRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ImportAppAlertRulesResult::~ImportAppAlertRulesResult()
{}
void ImportAppAlertRulesResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
}
std::string ImportAppAlertRulesResult::getData()const
{
return data_;

View File

@@ -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/arms/model/ListRetcodeAppsRequest.h>
using AlibabaCloud::ARMS::Model::ListRetcodeAppsRequest;
ListRetcodeAppsRequest::ListRetcodeAppsRequest() :
RpcServiceRequest("arms", "2019-08-08", "ListRetcodeApps")
{}
ListRetcodeAppsRequest::~ListRetcodeAppsRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/ListRetcodeAppsRequest.h>
using AlibabaCloud::ARMS::Model::ListRetcodeAppsRequest;
ListRetcodeAppsRequest::ListRetcodeAppsRequest() :
RpcServiceRequest("arms", "2019-08-08", "ListRetcodeApps")
{}
ListRetcodeAppsRequest::~ListRetcodeAppsRequest()
{}
std::string ListRetcodeAppsRequest::getSecurityToken()const
{
return securityToken_;

View File

@@ -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/arms/model/ListRetcodeAppsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
ListRetcodeAppsResult::ListRetcodeAppsResult() :
ServiceResult()
{}
ListRetcodeAppsResult::ListRetcodeAppsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListRetcodeAppsResult::~ListRetcodeAppsResult()
{}
void ListRetcodeAppsResult::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/arms/model/ListRetcodeAppsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
ListRetcodeAppsResult::ListRetcodeAppsResult() :
ServiceResult()
{}
ListRetcodeAppsResult::ListRetcodeAppsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListRetcodeAppsResult::~ListRetcodeAppsResult()
{}
void ListRetcodeAppsResult::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 allRetcodeApps = value["RetcodeApps"]["RetcodeApp"];
for (auto value : allRetcodeApps)
{
@@ -52,9 +55,9 @@ void ListRetcodeAppsResult::parse(const std::string &payload)
retcodeAppsObject.appName = value["AppName"].asString();
retcodeApps_.push_back(retcodeAppsObject);
}
}
}
std::vector<ListRetcodeAppsResult::RetcodeApp> ListRetcodeAppsResult::getRetcodeApps()const
{
return retcodeApps_;

View File

@@ -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/arms/model/ListTraceAppsRequest.h>
using AlibabaCloud::ARMS::Model::ListTraceAppsRequest;
ListTraceAppsRequest::ListTraceAppsRequest() :
RpcServiceRequest("arms", "2019-08-08", "ListTraceApps")
{}
ListTraceAppsRequest::~ListTraceAppsRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/ListTraceAppsRequest.h>
using AlibabaCloud::ARMS::Model::ListTraceAppsRequest;
ListTraceAppsRequest::ListTraceAppsRequest() :
RpcServiceRequest("arms", "2019-08-08", "ListTraceApps")
{}
ListTraceAppsRequest::~ListTraceAppsRequest()
{}
std::string ListTraceAppsRequest::getRegionId()const
{
return regionId_;

View File

@@ -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/arms/model/ListTraceAppsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
ListTraceAppsResult::ListTraceAppsResult() :
ServiceResult()
{}
ListTraceAppsResult::ListTraceAppsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTraceAppsResult::~ListTraceAppsResult()
{}
void ListTraceAppsResult::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/arms/model/ListTraceAppsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
ListTraceAppsResult::ListTraceAppsResult() :
ServiceResult()
{}
ListTraceAppsResult::ListTraceAppsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTraceAppsResult::~ListTraceAppsResult()
{}
void ListTraceAppsResult::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 allTraceApps = value["TraceApps"]["TraceApp"];
for (auto value : allTraceApps)
{
@@ -68,9 +71,9 @@ void ListTraceAppsResult::parse(const std::string &payload)
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
}
std::vector<ListTraceAppsResult::TraceApp> ListTraceAppsResult::getTraceApps()const
{
return traceApps_;

View File

@@ -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/arms/model/QueryDatasetRequest.h>
using AlibabaCloud::ARMS::Model::QueryDatasetRequest;
QueryDatasetRequest::QueryDatasetRequest() :
RpcServiceRequest("arms", "2019-08-08", "QueryDataset")
{}
QueryDatasetRequest::~QueryDatasetRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/QueryDatasetRequest.h>
using AlibabaCloud::ARMS::Model::QueryDatasetRequest;
QueryDatasetRequest::QueryDatasetRequest() :
RpcServiceRequest("arms", "2019-08-08", "QueryDataset")
{}
QueryDatasetRequest::~QueryDatasetRequest()
{}
std::string QueryDatasetRequest::getDateStr()const
{
return dateStr_;

View File

@@ -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/arms/model/QueryDatasetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
QueryDatasetResult::QueryDatasetResult() :
ServiceResult()
{}
QueryDatasetResult::QueryDatasetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDatasetResult::~QueryDatasetResult()
{}
void QueryDatasetResult::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/arms/model/QueryDatasetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
QueryDatasetResult::QueryDatasetResult() :
ServiceResult()
{}
QueryDatasetResult::QueryDatasetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDatasetResult::~QueryDatasetResult()
{}
void QueryDatasetResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
}
std::string QueryDatasetResult::getData()const
{
return data_;

View File

@@ -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/arms/model/QueryMetricRequest.h>
using AlibabaCloud::ARMS::Model::QueryMetricRequest;
QueryMetricRequest::QueryMetricRequest() :
RpcServiceRequest("arms", "2019-08-08", "QueryMetric")
{}
QueryMetricRequest::~QueryMetricRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/QueryMetricRequest.h>
using AlibabaCloud::ARMS::Model::QueryMetricRequest;
QueryMetricRequest::QueryMetricRequest() :
RpcServiceRequest("arms", "2019-08-08", "QueryMetric")
{}
QueryMetricRequest::~QueryMetricRequest()
{}
std::vector<std::string> QueryMetricRequest::getMeasures()const
{
return measures_;

View File

@@ -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/arms/model/QueryMetricResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
QueryMetricResult::QueryMetricResult() :
ServiceResult()
{}
QueryMetricResult::QueryMetricResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMetricResult::~QueryMetricResult()
{}
void QueryMetricResult::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/arms/model/QueryMetricResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
QueryMetricResult::QueryMetricResult() :
ServiceResult()
{}
QueryMetricResult::QueryMetricResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMetricResult::~QueryMetricResult()
{}
void QueryMetricResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
}
std::string QueryMetricResult::getData()const
{
return data_;

View File

@@ -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/arms/model/SearchAlertContactGroupRequest.h>
using AlibabaCloud::ARMS::Model::SearchAlertContactGroupRequest;
SearchAlertContactGroupRequest::SearchAlertContactGroupRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchAlertContactGroup")
{}
SearchAlertContactGroupRequest::~SearchAlertContactGroupRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/SearchAlertContactGroupRequest.h>
using AlibabaCloud::ARMS::Model::SearchAlertContactGroupRequest;
SearchAlertContactGroupRequest::SearchAlertContactGroupRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchAlertContactGroup")
{}
SearchAlertContactGroupRequest::~SearchAlertContactGroupRequest()
{}
std::string SearchAlertContactGroupRequest::getRegionId()const
{
return regionId_;

View File

@@ -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/arms/model/SearchAlertContactGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchAlertContactGroupResult::SearchAlertContactGroupResult() :
ServiceResult()
{}
SearchAlertContactGroupResult::SearchAlertContactGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchAlertContactGroupResult::~SearchAlertContactGroupResult()
{}
void SearchAlertContactGroupResult::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/arms/model/SearchAlertContactGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchAlertContactGroupResult::SearchAlertContactGroupResult() :
ServiceResult()
{}
SearchAlertContactGroupResult::SearchAlertContactGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchAlertContactGroupResult::~SearchAlertContactGroupResult()
{}
void SearchAlertContactGroupResult::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 allContactGroups = value["ContactGroups"]["ContactGroup"];
for (auto value : allContactGroups)
{
@@ -56,9 +59,9 @@ void SearchAlertContactGroupResult::parse(const std::string &payload)
contactGroupsObject.updateTime = std::stol(value["UpdateTime"].asString());
contactGroups_.push_back(contactGroupsObject);
}
}
}
std::vector<SearchAlertContactGroupResult::ContactGroup> SearchAlertContactGroupResult::getContactGroups()const
{
return contactGroups_;

View File

@@ -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/arms/model/SearchAlertContactRequest.h>
using AlibabaCloud::ARMS::Model::SearchAlertContactRequest;
SearchAlertContactRequest::SearchAlertContactRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchAlertContact")
{}
SearchAlertContactRequest::~SearchAlertContactRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/SearchAlertContactRequest.h>
using AlibabaCloud::ARMS::Model::SearchAlertContactRequest;
SearchAlertContactRequest::SearchAlertContactRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchAlertContact")
{}
SearchAlertContactRequest::~SearchAlertContactRequest()
{}
std::string SearchAlertContactRequest::getContactName()const
{
return contactName_;

View File

@@ -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/arms/model/SearchAlertContactResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchAlertContactResult::SearchAlertContactResult() :
ServiceResult()
{}
SearchAlertContactResult::SearchAlertContactResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchAlertContactResult::~SearchAlertContactResult()
{}
void SearchAlertContactResult::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/arms/model/SearchAlertContactResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchAlertContactResult::SearchAlertContactResult() :
ServiceResult()
{}
SearchAlertContactResult::SearchAlertContactResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchAlertContactResult::~SearchAlertContactResult()
{}
void SearchAlertContactResult::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 pageBeanNode = value["PageBean"];
if(!pageBeanNode["TotalCount"].isNull())
pageBean_.totalCount = std::stoi(pageBeanNode["TotalCount"].asString());
@@ -71,9 +74,9 @@ void SearchAlertContactResult::parse(const std::string &payload)
contactObject.systemNoc = value["SystemNoc"].asString() == "true";
pageBean_.contacts.push_back(contactObject);
}
}
}
SearchAlertContactResult::PageBean SearchAlertContactResult::getPageBean()const
{
return pageBean_;

View File

@@ -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/arms/model/SearchRetcodeAppByPageRequest.h>
using AlibabaCloud::ARMS::Model::SearchRetcodeAppByPageRequest;
SearchRetcodeAppByPageRequest::SearchRetcodeAppByPageRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchRetcodeAppByPage")
{}
SearchRetcodeAppByPageRequest::~SearchRetcodeAppByPageRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/SearchRetcodeAppByPageRequest.h>
using AlibabaCloud::ARMS::Model::SearchRetcodeAppByPageRequest;
SearchRetcodeAppByPageRequest::SearchRetcodeAppByPageRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchRetcodeAppByPage")
{}
SearchRetcodeAppByPageRequest::~SearchRetcodeAppByPageRequest()
{}
std::string SearchRetcodeAppByPageRequest::getRegionId()const
{
return regionId_;

View File

@@ -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/arms/model/SearchRetcodeAppByPageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchRetcodeAppByPageResult::SearchRetcodeAppByPageResult() :
ServiceResult()
{}
SearchRetcodeAppByPageResult::SearchRetcodeAppByPageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchRetcodeAppByPageResult::~SearchRetcodeAppByPageResult()
{}
void SearchRetcodeAppByPageResult::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/arms/model/SearchRetcodeAppByPageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchRetcodeAppByPageResult::SearchRetcodeAppByPageResult() :
ServiceResult()
{}
SearchRetcodeAppByPageResult::SearchRetcodeAppByPageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchRetcodeAppByPageResult::~SearchRetcodeAppByPageResult()
{}
void SearchRetcodeAppByPageResult::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 pageBeanNode = value["PageBean"];
if(!pageBeanNode["TotalCount"].isNull())
pageBean_.totalCount = std::stoi(pageBeanNode["TotalCount"].asString());
@@ -69,9 +72,9 @@ void SearchRetcodeAppByPageResult::parse(const std::string &payload)
retcodeAppObject.updateTime = std::stol(value["UpdateTime"].asString());
pageBean_.retcodeApps.push_back(retcodeAppObject);
}
}
}
SearchRetcodeAppByPageResult::PageBean SearchRetcodeAppByPageResult::getPageBean()const
{
return pageBean_;

View File

@@ -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/arms/model/SearchTraceAppByNameRequest.h>
using AlibabaCloud::ARMS::Model::SearchTraceAppByNameRequest;
SearchTraceAppByNameRequest::SearchTraceAppByNameRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByName")
{}
SearchTraceAppByNameRequest::~SearchTraceAppByNameRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/SearchTraceAppByNameRequest.h>
using AlibabaCloud::ARMS::Model::SearchTraceAppByNameRequest;
SearchTraceAppByNameRequest::SearchTraceAppByNameRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByName")
{}
SearchTraceAppByNameRequest::~SearchTraceAppByNameRequest()
{}
std::string SearchTraceAppByNameRequest::getRegionId()const
{
return regionId_;

View File

@@ -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/arms/model/SearchTraceAppByNameResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchTraceAppByNameResult::SearchTraceAppByNameResult() :
ServiceResult()
{}
SearchTraceAppByNameResult::SearchTraceAppByNameResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchTraceAppByNameResult::~SearchTraceAppByNameResult()
{}
void SearchTraceAppByNameResult::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/arms/model/SearchTraceAppByNameResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchTraceAppByNameResult::SearchTraceAppByNameResult() :
ServiceResult()
{}
SearchTraceAppByNameResult::SearchTraceAppByNameResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchTraceAppByNameResult::~SearchTraceAppByNameResult()
{}
void SearchTraceAppByNameResult::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 allTraceApps = value["TraceApps"]["TraceApp"];
for (auto value : allTraceApps)
{
@@ -62,9 +65,9 @@ void SearchTraceAppByNameResult::parse(const std::string &payload)
traceAppsObject.updateTime = std::stol(value["UpdateTime"].asString());
traceApps_.push_back(traceAppsObject);
}
}
}
std::vector<SearchTraceAppByNameResult::TraceApp> SearchTraceAppByNameResult::getTraceApps()const
{
return traceApps_;

View File

@@ -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/arms/model/SearchTraceAppByPageRequest.h>
using AlibabaCloud::ARMS::Model::SearchTraceAppByPageRequest;
SearchTraceAppByPageRequest::SearchTraceAppByPageRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByPage")
{}
SearchTraceAppByPageRequest::~SearchTraceAppByPageRequest()
{}
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/arms/model/SearchTraceAppByPageRequest.h>
using AlibabaCloud::ARMS::Model::SearchTraceAppByPageRequest;
SearchTraceAppByPageRequest::SearchTraceAppByPageRequest() :
RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByPage")
{}
SearchTraceAppByPageRequest::~SearchTraceAppByPageRequest()
{}
std::string SearchTraceAppByPageRequest::getRegionId()const
{
return regionId_;

View File

@@ -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/arms/model/SearchTraceAppByPageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchTraceAppByPageResult::SearchTraceAppByPageResult() :
ServiceResult()
{}
SearchTraceAppByPageResult::SearchTraceAppByPageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchTraceAppByPageResult::~SearchTraceAppByPageResult()
{}
void SearchTraceAppByPageResult::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/arms/model/SearchTraceAppByPageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
SearchTraceAppByPageResult::SearchTraceAppByPageResult() :
ServiceResult()
{}
SearchTraceAppByPageResult::SearchTraceAppByPageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchTraceAppByPageResult::~SearchTraceAppByPageResult()
{}
void SearchTraceAppByPageResult::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 pageBeanNode = value["PageBean"];
if(!pageBeanNode["TotalCount"].isNull())
pageBean_.totalCount = std::stoi(pageBeanNode["TotalCount"].asString());
@@ -69,9 +72,9 @@ void SearchTraceAppByPageResult::parse(const std::string &payload)
traceAppObject.updateTime = std::stol(value["UpdateTime"].asString());
pageBean_.traceApps.push_back(traceAppObject);
}
}
}
SearchTraceAppByPageResult::PageBean SearchTraceAppByPageResult::getPageBean()const
{
return pageBean_;