Update sdk.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/AddAliClusterIdsToPrometheusGlobalViewRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddAliClusterIdsToPrometheusGlobalViewRequest;
|
||||
|
||||
AddAliClusterIdsToPrometheusGlobalViewRequest::AddAliClusterIdsToPrometheusGlobalViewRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AddAliClusterIdsToPrometheusGlobalView") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddAliClusterIdsToPrometheusGlobalViewRequest::~AddAliClusterIdsToPrometheusGlobalViewRequest() {}
|
||||
|
||||
std::string AddAliClusterIdsToPrometheusGlobalViewRequest::getGlobalViewClusterId() const {
|
||||
return globalViewClusterId_;
|
||||
}
|
||||
|
||||
void AddAliClusterIdsToPrometheusGlobalViewRequest::setGlobalViewClusterId(const std::string &globalViewClusterId) {
|
||||
globalViewClusterId_ = globalViewClusterId;
|
||||
setParameter(std::string("GlobalViewClusterId"), globalViewClusterId);
|
||||
}
|
||||
|
||||
std::string AddAliClusterIdsToPrometheusGlobalViewRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddAliClusterIdsToPrometheusGlobalViewRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AddAliClusterIdsToPrometheusGlobalViewRequest::getClusterIds() const {
|
||||
return clusterIds_;
|
||||
}
|
||||
|
||||
void AddAliClusterIdsToPrometheusGlobalViewRequest::setClusterIds(const std::string &clusterIds) {
|
||||
clusterIds_ = clusterIds;
|
||||
setParameter(std::string("ClusterIds"), clusterIds);
|
||||
}
|
||||
|
||||
std::string AddAliClusterIdsToPrometheusGlobalViewRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void AddAliClusterIdsToPrometheusGlobalViewRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
@@ -0,0 +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/AddAliClusterIdsToPrometheusGlobalViewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddAliClusterIdsToPrometheusGlobalViewResult::AddAliClusterIdsToPrometheusGlobalViewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddAliClusterIdsToPrometheusGlobalViewResult::AddAliClusterIdsToPrometheusGlobalViewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddAliClusterIdsToPrometheusGlobalViewResult::~AddAliClusterIdsToPrometheusGlobalViewResult()
|
||||
{}
|
||||
|
||||
void AddAliClusterIdsToPrometheusGlobalViewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Success"].isNull())
|
||||
data_.success = dataNode["Success"].asString() == "true";
|
||||
if(!dataNode["Msg"].isNull())
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!dataNode["Info"].isNull())
|
||||
data_.info = dataNode["Info"].asString();
|
||||
|
||||
}
|
||||
|
||||
AddAliClusterIdsToPrometheusGlobalViewResult::Data AddAliClusterIdsToPrometheusGlobalViewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddGrafanaRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddGrafanaRequest;
|
||||
|
||||
AddGrafanaRequest::AddGrafanaRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "AddGrafana")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddGrafanaRequest::~AddGrafanaRequest()
|
||||
{}
|
||||
|
||||
std::string AddGrafanaRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/AddGrafanaRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddGrafanaRequest;
|
||||
|
||||
AddGrafanaRequest::AddGrafanaRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AddGrafana") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
AddGrafanaRequest::~AddGrafanaRequest() {}
|
||||
|
||||
std::string AddGrafanaRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string AddGrafanaRequest::getIntegration()const
|
||||
{
|
||||
return integration_;
|
||||
void AddGrafanaRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setIntegration(const std::string& integration)
|
||||
{
|
||||
integration_ = integration;
|
||||
setParameter("Integration", integration);
|
||||
std::string AddGrafanaRequest::getIntegration() const {
|
||||
return integration_;
|
||||
}
|
||||
|
||||
std::string AddGrafanaRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
void AddGrafanaRequest::setIntegration(const std::string &integration) {
|
||||
integration_ = integration;
|
||||
setParameter(std::string("Integration"), integration);
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
std::string AddGrafanaRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddIntegrationRequest;
|
||||
|
||||
AddIntegrationRequest::AddIntegrationRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "AddIntegration")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddIntegrationRequest::~AddIntegrationRequest()
|
||||
{}
|
||||
|
||||
std::string AddIntegrationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/AddIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddIntegrationRequest;
|
||||
|
||||
AddIntegrationRequest::AddIntegrationRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AddIntegration") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
AddIntegrationRequest::~AddIntegrationRequest() {}
|
||||
|
||||
std::string AddIntegrationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string AddIntegrationRequest::getIntegration()const
|
||||
{
|
||||
return integration_;
|
||||
void AddIntegrationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setIntegration(const std::string& integration)
|
||||
{
|
||||
integration_ = integration;
|
||||
setParameter("Integration", integration);
|
||||
std::string AddIntegrationRequest::getIntegration() const {
|
||||
return integration_;
|
||||
}
|
||||
|
||||
std::string AddIntegrationRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
void AddIntegrationRequest::setIntegration(const std::string &integration) {
|
||||
integration_ = integration;
|
||||
setParameter(std::string("Integration"), integration);
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
std::string AddIntegrationRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/AddPrometheusGlobalViewByAliClusterIdsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddPrometheusGlobalViewByAliClusterIdsRequest;
|
||||
|
||||
AddPrometheusGlobalViewByAliClusterIdsRequest::AddPrometheusGlobalViewByAliClusterIdsRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AddPrometheusGlobalViewByAliClusterIds") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPrometheusGlobalViewByAliClusterIdsRequest::~AddPrometheusGlobalViewByAliClusterIdsRequest() {}
|
||||
|
||||
std::string AddPrometheusGlobalViewByAliClusterIdsRequest::getProductCode() const {
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void AddPrometheusGlobalViewByAliClusterIdsRequest::setProductCode(const std::string &productCode) {
|
||||
productCode_ = productCode;
|
||||
setParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
std::string AddPrometheusGlobalViewByAliClusterIdsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddPrometheusGlobalViewByAliClusterIdsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AddPrometheusGlobalViewByAliClusterIdsRequest::getClusterIds() const {
|
||||
return clusterIds_;
|
||||
}
|
||||
|
||||
void AddPrometheusGlobalViewByAliClusterIdsRequest::setClusterIds(const std::string &clusterIds) {
|
||||
clusterIds_ = clusterIds;
|
||||
setParameter(std::string("ClusterIds"), clusterIds);
|
||||
}
|
||||
|
||||
std::string AddPrometheusGlobalViewByAliClusterIdsRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void AddPrometheusGlobalViewByAliClusterIdsRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
@@ -0,0 +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/AddPrometheusGlobalViewByAliClusterIdsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddPrometheusGlobalViewByAliClusterIdsResult::AddPrometheusGlobalViewByAliClusterIdsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddPrometheusGlobalViewByAliClusterIdsResult::AddPrometheusGlobalViewByAliClusterIdsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddPrometheusGlobalViewByAliClusterIdsResult::~AddPrometheusGlobalViewByAliClusterIdsResult()
|
||||
{}
|
||||
|
||||
void AddPrometheusGlobalViewByAliClusterIdsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Success"].isNull())
|
||||
data_.success = dataNode["Success"].asString() == "true";
|
||||
if(!dataNode["Msg"].isNull())
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!dataNode["Info"].isNull())
|
||||
data_.info = dataNode["Info"].asString();
|
||||
|
||||
}
|
||||
|
||||
AddPrometheusGlobalViewByAliClusterIdsResult::Data AddPrometheusGlobalViewByAliClusterIdsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
54
arms/src/model/AddPrometheusGlobalViewRequest.cc
Normal file
54
arms/src/model/AddPrometheusGlobalViewRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddPrometheusGlobalViewRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddPrometheusGlobalViewRequest;
|
||||
|
||||
AddPrometheusGlobalViewRequest::AddPrometheusGlobalViewRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AddPrometheusGlobalView") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPrometheusGlobalViewRequest::~AddPrometheusGlobalViewRequest() {}
|
||||
|
||||
std::string AddPrometheusGlobalViewRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddPrometheusGlobalViewRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AddPrometheusGlobalViewRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void AddPrometheusGlobalViewRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
std::string AddPrometheusGlobalViewRequest::getClusters() const {
|
||||
return clusters_;
|
||||
}
|
||||
|
||||
void AddPrometheusGlobalViewRequest::setClusters(const std::string &clusters) {
|
||||
clusters_ = clusters;
|
||||
setParameter(std::string("Clusters"), clusters);
|
||||
}
|
||||
|
||||
56
arms/src/model/AddPrometheusGlobalViewResult.cc
Normal file
56
arms/src/model/AddPrometheusGlobalViewResult.cc
Normal file
@@ -0,0 +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/AddPrometheusGlobalViewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddPrometheusGlobalViewResult::AddPrometheusGlobalViewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddPrometheusGlobalViewResult::AddPrometheusGlobalViewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddPrometheusGlobalViewResult::~AddPrometheusGlobalViewResult()
|
||||
{}
|
||||
|
||||
void AddPrometheusGlobalViewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Success"].isNull())
|
||||
data_.success = dataNode["Success"].asString() == "true";
|
||||
if(!dataNode["Msg"].isNull())
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!dataNode["Info"].isNull())
|
||||
data_.info = dataNode["Info"].asString();
|
||||
|
||||
}
|
||||
|
||||
AddPrometheusGlobalViewResult::Data AddPrometheusGlobalViewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
54
arms/src/model/AddPrometheusInstanceRequest.cc
Normal file
54
arms/src/model/AddPrometheusInstanceRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddPrometheusInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddPrometheusInstanceRequest;
|
||||
|
||||
AddPrometheusInstanceRequest::AddPrometheusInstanceRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AddPrometheusInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPrometheusInstanceRequest::~AddPrometheusInstanceRequest() {}
|
||||
|
||||
std::string AddPrometheusInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddPrometheusInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AddPrometheusInstanceRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddPrometheusInstanceRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string AddPrometheusInstanceRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void AddPrometheusInstanceRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ImportPrometheusRulesResult.h>
|
||||
#include <alibabacloud/arms/model/AddPrometheusInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ImportPrometheusRulesResult::ImportPrometheusRulesResult() :
|
||||
AddPrometheusInstanceResult::AddPrometheusInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ImportPrometheusRulesResult::ImportPrometheusRulesResult(const std::string &payload) :
|
||||
AddPrometheusInstanceResult::AddPrometheusInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ImportPrometheusRulesResult::~ImportPrometheusRulesResult()
|
||||
AddPrometheusInstanceResult::~AddPrometheusInstanceResult()
|
||||
{}
|
||||
|
||||
void ImportPrometheusRulesResult::parse(const std::string &payload)
|
||||
void AddPrometheusInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -44,7 +44,7 @@ void ImportPrometheusRulesResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string ImportPrometheusRulesResult::getData()const
|
||||
std::string AddPrometheusInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
54
arms/src/model/AddRecordingRuleRequest.cc
Normal file
54
arms/src/model/AddRecordingRuleRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddRecordingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddRecordingRuleRequest;
|
||||
|
||||
AddRecordingRuleRequest::AddRecordingRuleRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AddRecordingRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddRecordingRuleRequest::~AddRecordingRuleRequest() {}
|
||||
|
||||
std::string AddRecordingRuleRequest::getRuleYaml() const {
|
||||
return ruleYaml_;
|
||||
}
|
||||
|
||||
void AddRecordingRuleRequest::setRuleYaml(const std::string &ruleYaml) {
|
||||
ruleYaml_ = ruleYaml;
|
||||
setParameter(std::string("RuleYaml"), ruleYaml);
|
||||
}
|
||||
|
||||
std::string AddRecordingRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddRecordingRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AddRecordingRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddRecordingRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
51
arms/src/model/AddRecordingRuleResult.cc
Normal file
51
arms/src/model/AddRecordingRuleResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/AddRecordingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddRecordingRuleResult::AddRecordingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddRecordingRuleResult::AddRecordingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddRecordingRuleResult::~AddRecordingRuleResult()
|
||||
{}
|
||||
|
||||
void AddRecordingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddRecordingRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/AppendInstancesToPrometheusGlobalViewRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AppendInstancesToPrometheusGlobalViewRequest;
|
||||
|
||||
AppendInstancesToPrometheusGlobalViewRequest::AppendInstancesToPrometheusGlobalViewRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AppendInstancesToPrometheusGlobalView") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AppendInstancesToPrometheusGlobalViewRequest::~AppendInstancesToPrometheusGlobalViewRequest() {}
|
||||
|
||||
std::string AppendInstancesToPrometheusGlobalViewRequest::getGlobalViewClusterId() const {
|
||||
return globalViewClusterId_;
|
||||
}
|
||||
|
||||
void AppendInstancesToPrometheusGlobalViewRequest::setGlobalViewClusterId(const std::string &globalViewClusterId) {
|
||||
globalViewClusterId_ = globalViewClusterId;
|
||||
setParameter(std::string("GlobalViewClusterId"), globalViewClusterId);
|
||||
}
|
||||
|
||||
std::string AppendInstancesToPrometheusGlobalViewRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AppendInstancesToPrometheusGlobalViewRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AppendInstancesToPrometheusGlobalViewRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void AppendInstancesToPrometheusGlobalViewRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
std::string AppendInstancesToPrometheusGlobalViewRequest::getClusters() const {
|
||||
return clusters_;
|
||||
}
|
||||
|
||||
void AppendInstancesToPrometheusGlobalViewRequest::setClusters(const std::string &clusters) {
|
||||
clusters_ = clusters;
|
||||
setParameter(std::string("Clusters"), clusters);
|
||||
}
|
||||
|
||||
@@ -0,0 +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/AppendInstancesToPrometheusGlobalViewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AppendInstancesToPrometheusGlobalViewResult::AppendInstancesToPrometheusGlobalViewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AppendInstancesToPrometheusGlobalViewResult::AppendInstancesToPrometheusGlobalViewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AppendInstancesToPrometheusGlobalViewResult::~AppendInstancesToPrometheusGlobalViewResult()
|
||||
{}
|
||||
|
||||
void AppendInstancesToPrometheusGlobalViewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Success"].isNull())
|
||||
data_.success = dataNode["Success"].asString() == "true";
|
||||
if(!dataNode["Msg"].isNull())
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!dataNode["Info"].isNull())
|
||||
data_.info = dataNode["Info"].asString();
|
||||
|
||||
}
|
||||
|
||||
AppendInstancesToPrometheusGlobalViewResult::Data AppendInstancesToPrometheusGlobalViewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,150 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ApplyScenarioRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ApplyScenarioRequest;
|
||||
|
||||
ApplyScenarioRequest::ApplyScenarioRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ApplyScenario")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyScenarioRequest::~ApplyScenarioRequest()
|
||||
{}
|
||||
|
||||
bool ApplyScenarioRequest::getSnForce()const
|
||||
{
|
||||
return snForce_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ApplyScenarioRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ApplyScenarioRequest;
|
||||
|
||||
ApplyScenarioRequest::ApplyScenarioRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "ApplyScenario") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSnForce(bool snForce)
|
||||
{
|
||||
snForce_ = snForce;
|
||||
setParameter("SnForce", snForce ? "true" : "false");
|
||||
ApplyScenarioRequest::~ApplyScenarioRequest() {}
|
||||
|
||||
bool ApplyScenarioRequest::getSnForce() const {
|
||||
return snForce_;
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getSign()const
|
||||
{
|
||||
return sign_;
|
||||
void ApplyScenarioRequest::setSnForce(bool snForce) {
|
||||
snForce_ = snForce;
|
||||
setParameter(std::string("SnForce"), snForce ? "true" : "false");
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSign(const std::string& sign)
|
||||
{
|
||||
sign_ = sign;
|
||||
setParameter("Sign", sign);
|
||||
std::string ApplyScenarioRequest::getSign() const {
|
||||
return sign_;
|
||||
}
|
||||
|
||||
bool ApplyScenarioRequest::getSnStat()const
|
||||
{
|
||||
return snStat_;
|
||||
void ApplyScenarioRequest::setSign(const std::string &sign) {
|
||||
sign_ = sign;
|
||||
setParameter(std::string("Sign"), sign);
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSnStat(bool snStat)
|
||||
{
|
||||
snStat_ = snStat;
|
||||
setParameter("SnStat", snStat ? "true" : "false");
|
||||
bool ApplyScenarioRequest::getSnStat() const {
|
||||
return snStat_;
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ApplyScenarioRequest::setSnStat(bool snStat) {
|
||||
snStat_ = snStat;
|
||||
setParameter(std::string("SnStat"), snStat ? "true" : "false");
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ApplyScenarioRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getScenario()const
|
||||
{
|
||||
return scenario_;
|
||||
void ApplyScenarioRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setScenario(const std::string& scenario)
|
||||
{
|
||||
scenario_ = scenario;
|
||||
setParameter("Scenario", scenario);
|
||||
std::string ApplyScenarioRequest::getScenario() const {
|
||||
return scenario_;
|
||||
}
|
||||
|
||||
bool ApplyScenarioRequest::getSnDump()const
|
||||
{
|
||||
return snDump_;
|
||||
void ApplyScenarioRequest::setScenario(const std::string &scenario) {
|
||||
scenario_ = scenario;
|
||||
setParameter(std::string("Scenario"), scenario);
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSnDump(bool snDump)
|
||||
{
|
||||
snDump_ = snDump;
|
||||
setParameter("SnDump", snDump ? "true" : "false");
|
||||
bool ApplyScenarioRequest::getSnDump() const {
|
||||
return snDump_;
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void ApplyScenarioRequest::setSnDump(bool snDump) {
|
||||
snDump_ = snDump;
|
||||
setParameter(std::string("SnDump"), snDump ? "true" : "false");
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string ApplyScenarioRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void ApplyScenarioRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string ApplyScenarioRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
bool ApplyScenarioRequest::getSnTransfer()const
|
||||
{
|
||||
return snTransfer_;
|
||||
void ApplyScenarioRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setSnTransfer(bool snTransfer)
|
||||
{
|
||||
snTransfer_ = snTransfer;
|
||||
setParameter("SnTransfer", snTransfer ? "true" : "false");
|
||||
bool ApplyScenarioRequest::getSnTransfer() const {
|
||||
return snTransfer_;
|
||||
}
|
||||
|
||||
bool ApplyScenarioRequest::getUpdateOption()const
|
||||
{
|
||||
return updateOption_;
|
||||
void ApplyScenarioRequest::setSnTransfer(bool snTransfer) {
|
||||
snTransfer_ = snTransfer;
|
||||
setParameter(std::string("SnTransfer"), snTransfer ? "true" : "false");
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setUpdateOption(bool updateOption)
|
||||
{
|
||||
updateOption_ = updateOption;
|
||||
setParameter("UpdateOption", updateOption ? "true" : "false");
|
||||
bool ApplyScenarioRequest::getUpdateOption() const {
|
||||
return updateOption_;
|
||||
}
|
||||
|
||||
std::string ApplyScenarioRequest::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
void ApplyScenarioRequest::setUpdateOption(bool updateOption) {
|
||||
updateOption_ = updateOption;
|
||||
setParameter(std::string("UpdateOption"), updateOption ? "true" : "false");
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setConfig(const std::string& config)
|
||||
{
|
||||
config_ = config;
|
||||
setParameter("Config", config);
|
||||
std::string ApplyScenarioRequest::getConfig() const {
|
||||
return config_;
|
||||
}
|
||||
|
||||
void ApplyScenarioRequest::setConfig(const std::string &config) {
|
||||
config_ = config;
|
||||
setParameter(std::string("Config"), config);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CheckDataConsistencyRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CheckDataConsistencyRequest;
|
||||
|
||||
CheckDataConsistencyRequest::CheckDataConsistencyRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CheckDataConsistency")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckDataConsistencyRequest::~CheckDataConsistencyRequest()
|
||||
{}
|
||||
|
||||
long CheckDataConsistencyRequest::getCurrentTimestamp()const
|
||||
{
|
||||
return currentTimestamp_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setCurrentTimestamp(long currentTimestamp)
|
||||
{
|
||||
currentTimestamp_ = currentTimestamp;
|
||||
setParameter("CurrentTimestamp", std::to_string(currentTimestamp));
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CheckServiceLinkedRoleForDeletingRequest;
|
||||
|
||||
CheckServiceLinkedRoleForDeletingRequest::CheckServiceLinkedRoleForDeletingRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CheckServiceLinkedRoleForDeleting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingRequest::~CheckServiceLinkedRoleForDeletingRequest()
|
||||
{}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getSPIRegionId()const
|
||||
{
|
||||
return sPIRegionId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setSPIRegionId(const std::string& sPIRegionId)
|
||||
{
|
||||
sPIRegionId_ = sPIRegionId;
|
||||
setParameter("SPIRegionId", sPIRegionId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setRoleArn(const std::string& roleArn)
|
||||
{
|
||||
roleArn_ = roleArn;
|
||||
setParameter("RoleArn", roleArn);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getDeletionTaskId()const
|
||||
{
|
||||
return deletionTaskId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setDeletionTaskId(const std::string& deletionTaskId)
|
||||
{
|
||||
deletionTaskId_ = deletionTaskId;
|
||||
setParameter("DeletionTaskId", deletionTaskId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::CheckServiceLinkedRoleForDeletingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::CheckServiceLinkedRoleForDeletingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::~CheckServiceLinkedRoleForDeletingResult()
|
||||
{}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRoleUsagesNode = value["RoleUsages"]["RoleUsagesItem"];
|
||||
for (auto valueRoleUsagesRoleUsagesItem : allRoleUsagesNode)
|
||||
{
|
||||
RoleUsagesItem roleUsagesObject;
|
||||
if(!valueRoleUsagesRoleUsagesItem["Region"].isNull())
|
||||
roleUsagesObject.region = valueRoleUsagesRoleUsagesItem["Region"].asString();
|
||||
auto allResources = value["Resources"]["Resources"];
|
||||
for (auto value : allResources)
|
||||
roleUsagesObject.resources.push_back(value.asString());
|
||||
roleUsages_.push_back(roleUsagesObject);
|
||||
}
|
||||
if(!value["Deletable"].isNull())
|
||||
deletable_ = value["Deletable"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckServiceLinkedRoleForDeletingResult::getDeletable()const
|
||||
{
|
||||
return deletable_;
|
||||
}
|
||||
|
||||
std::vector<CheckServiceLinkedRoleForDeletingResult::RoleUsagesItem> CheckServiceLinkedRoleForDeletingResult::getRoleUsages()const
|
||||
{
|
||||
return roleUsages_;
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckServiceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CheckServiceStatusRequest;
|
||||
|
||||
CheckServiceStatusRequest::CheckServiceStatusRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CheckServiceStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckServiceStatusRequest::~CheckServiceStatusRequest()
|
||||
{}
|
||||
|
||||
std::string CheckServiceStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CheckServiceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CheckServiceStatusRequest;
|
||||
|
||||
CheckServiceStatusRequest::CheckServiceStatusRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CheckServiceStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CheckServiceStatusRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
CheckServiceStatusRequest::~CheckServiceStatusRequest() {}
|
||||
|
||||
std::string CheckServiceStatusRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CheckServiceStatusRequest::getSvcCode()const
|
||||
{
|
||||
return svcCode_;
|
||||
void CheckServiceStatusRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CheckServiceStatusRequest::setSvcCode(const std::string& svcCode)
|
||||
{
|
||||
svcCode_ = svcCode;
|
||||
setParameter("SvcCode", svcCode);
|
||||
std::string CheckServiceStatusRequest::getSvcCode() const {
|
||||
return svcCode_;
|
||||
}
|
||||
|
||||
void CheckServiceStatusRequest::setSvcCode(const std::string &svcCode) {
|
||||
svcCode_ = svcCode;
|
||||
setParameter(std::string("SvcCode"), svcCode);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ConfigAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ConfigAppRequest;
|
||||
|
||||
ConfigAppRequest::ConfigAppRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ConfigApp")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigAppRequest::~ConfigAppRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigAppRequest::getAppIds()const
|
||||
{
|
||||
return appIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ConfigAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ConfigAppRequest;
|
||||
|
||||
ConfigAppRequest::ConfigAppRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "ConfigApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ConfigAppRequest::setAppIds(const std::string& appIds)
|
||||
{
|
||||
appIds_ = appIds;
|
||||
setParameter("AppIds", appIds);
|
||||
ConfigAppRequest::~ConfigAppRequest() {}
|
||||
|
||||
std::string ConfigAppRequest::getAppIds() const {
|
||||
return appIds_;
|
||||
}
|
||||
|
||||
std::string ConfigAppRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ConfigAppRequest::setAppIds(const std::string &appIds) {
|
||||
appIds_ = appIds;
|
||||
setParameter(std::string("AppIds"), appIds);
|
||||
}
|
||||
|
||||
void ConfigAppRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ConfigAppRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ConfigAppRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
void ConfigAppRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ConfigAppRequest::setEnable(const std::string& enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", enable);
|
||||
std::string ConfigAppRequest::getEnable() const {
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void ConfigAppRequest::setEnable(const std::string &enable) {
|
||||
enable_ = enable;
|
||||
setParameter(std::string("Enable"), enable);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateAlertContactGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateAlertContactGroupRequest;
|
||||
|
||||
CreateAlertContactGroupRequest::CreateAlertContactGroupRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateAlertContactGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAlertContactGroupRequest::~CreateAlertContactGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAlertContactGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateAlertContactGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateAlertContactGroupRequest;
|
||||
|
||||
CreateAlertContactGroupRequest::CreateAlertContactGroupRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateAlertContactGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateAlertContactGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
CreateAlertContactGroupRequest::~CreateAlertContactGroupRequest() {}
|
||||
|
||||
std::string CreateAlertContactGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreateAlertContactGroupRequest::getContactGroupName()const
|
||||
{
|
||||
return contactGroupName_;
|
||||
void CreateAlertContactGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreateAlertContactGroupRequest::setContactGroupName(const std::string& contactGroupName)
|
||||
{
|
||||
contactGroupName_ = contactGroupName;
|
||||
setParameter("ContactGroupName", contactGroupName);
|
||||
std::string CreateAlertContactGroupRequest::getContactGroupName() const {
|
||||
return contactGroupName_;
|
||||
}
|
||||
|
||||
std::string CreateAlertContactGroupRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void CreateAlertContactGroupRequest::setContactGroupName(const std::string &contactGroupName) {
|
||||
contactGroupName_ = contactGroupName;
|
||||
setParameter(std::string("ContactGroupName"), contactGroupName);
|
||||
}
|
||||
|
||||
void CreateAlertContactGroupRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string CreateAlertContactGroupRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
std::string CreateAlertContactGroupRequest::getContactIds()const
|
||||
{
|
||||
return contactIds_;
|
||||
void CreateAlertContactGroupRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
void CreateAlertContactGroupRequest::setContactIds(const std::string& contactIds)
|
||||
{
|
||||
contactIds_ = contactIds;
|
||||
setParameter("ContactIds", contactIds);
|
||||
std::string CreateAlertContactGroupRequest::getContactIds() const {
|
||||
return contactIds_;
|
||||
}
|
||||
|
||||
void CreateAlertContactGroupRequest::setContactIds(const std::string &contactIds) {
|
||||
contactIds_ = contactIds;
|
||||
setParameter(std::string("ContactIds"), contactIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAlertContactRequest::~CreateAlertContactRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAlertContactRequest::getPhoneNum()const
|
||||
{
|
||||
return phoneNum_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateAlertContactRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateAlertContactRequest;
|
||||
|
||||
CreateAlertContactRequest::CreateAlertContactRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateAlertContact") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setPhoneNum(const std::string& phoneNum)
|
||||
{
|
||||
phoneNum_ = phoneNum;
|
||||
setParameter("PhoneNum", phoneNum);
|
||||
CreateAlertContactRequest::~CreateAlertContactRequest() {}
|
||||
|
||||
std::string CreateAlertContactRequest::getPhoneNum() const {
|
||||
return phoneNum_;
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void CreateAlertContactRequest::setPhoneNum(const std::string &phoneNum) {
|
||||
phoneNum_ = phoneNum;
|
||||
setParameter(std::string("PhoneNum"), phoneNum);
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string CreateAlertContactRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getContactName()const
|
||||
{
|
||||
return contactName_;
|
||||
void CreateAlertContactRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setParameter("ContactName", contactName);
|
||||
std::string CreateAlertContactRequest::getContactName() const {
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CreateAlertContactRequest::setContactName(const std::string &contactName) {
|
||||
contactName_ = contactName;
|
||||
setParameter(std::string("ContactName"), contactName);
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CreateAlertContactRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getDingRobotWebhookUrl()const
|
||||
{
|
||||
return dingRobotWebhookUrl_;
|
||||
void CreateAlertContactRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setDingRobotWebhookUrl(const std::string& dingRobotWebhookUrl)
|
||||
{
|
||||
dingRobotWebhookUrl_ = dingRobotWebhookUrl;
|
||||
setParameter("DingRobotWebhookUrl", dingRobotWebhookUrl);
|
||||
std::string CreateAlertContactRequest::getDingRobotWebhookUrl() const {
|
||||
return dingRobotWebhookUrl_;
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getEmail()const
|
||||
{
|
||||
return email_;
|
||||
void CreateAlertContactRequest::setDingRobotWebhookUrl(const std::string &dingRobotWebhookUrl) {
|
||||
dingRobotWebhookUrl_ = dingRobotWebhookUrl;
|
||||
setParameter(std::string("DingRobotWebhookUrl"), dingRobotWebhookUrl);
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setParameter("Email", email);
|
||||
std::string CreateAlertContactRequest::getEmail() const {
|
||||
return email_;
|
||||
}
|
||||
|
||||
bool CreateAlertContactRequest::getSystemNoc()const
|
||||
{
|
||||
return systemNoc_;
|
||||
void CreateAlertContactRequest::setEmail(const std::string &email) {
|
||||
email_ = email;
|
||||
setParameter(std::string("Email"), email);
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setSystemNoc(bool systemNoc)
|
||||
{
|
||||
systemNoc_ = systemNoc;
|
||||
setParameter("SystemNoc", systemNoc ? "true" : "false");
|
||||
bool CreateAlertContactRequest::getSystemNoc() const {
|
||||
return systemNoc_;
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setSystemNoc(bool systemNoc) {
|
||||
systemNoc_ = systemNoc;
|
||||
setParameter(std::string("SystemNoc"), systemNoc ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,150 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateAlertTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateAlertTemplateRequest;
|
||||
|
||||
CreateAlertTemplateRequest::CreateAlertTemplateRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateAlertTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAlertTemplateRequest::~CreateAlertTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getTemplateProvider()const
|
||||
{
|
||||
return templateProvider_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setTemplateProvider(const std::string& templateProvider)
|
||||
{
|
||||
templateProvider_ = templateProvider;
|
||||
setParameter("TemplateProvider", templateProvider);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getAnnotations()const
|
||||
{
|
||||
return annotations_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setAnnotations(const std::string& annotations)
|
||||
{
|
||||
annotations_ = annotations;
|
||||
setParameter("Annotations", annotations);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getRule()const
|
||||
{
|
||||
return rule_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setRule(const std::string& rule)
|
||||
{
|
||||
rule_ = rule;
|
||||
setParameter("Rule", rule);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setMessage(const std::string& message)
|
||||
{
|
||||
message_ = message;
|
||||
setParameter("Message", message);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getParentId()const
|
||||
{
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setParentId(const std::string& parentId)
|
||||
{
|
||||
parentId_ = parentId;
|
||||
setParameter("ParentId", parentId);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getLabels()const
|
||||
{
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setLabels(const std::string& labels)
|
||||
{
|
||||
labels_ = labels;
|
||||
setParameter("Labels", labels);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateAlertTemplateRequest::getMatchExpressions()const
|
||||
{
|
||||
return matchExpressions_;
|
||||
}
|
||||
|
||||
void CreateAlertTemplateRequest::setMatchExpressions(const std::string& matchExpressions)
|
||||
{
|
||||
matchExpressions_ = matchExpressions;
|
||||
setParameter("MatchExpressions", matchExpressions);
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateAlertTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateAlertTemplateResult::CreateAlertTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAlertTemplateResult::CreateAlertTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAlertTemplateResult::~CreateAlertTemplateResult()
|
||||
{}
|
||||
|
||||
void CreateAlertTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alertTemplateNode = value["AlertTemplate"];
|
||||
if(!alertTemplateNode["Id"].isNull())
|
||||
alertTemplate_.id = std::stoi(alertTemplateNode["Id"].asString());
|
||||
if(!alertTemplateNode["ParentId"].isNull())
|
||||
alertTemplate_.parentId = std::stoi(alertTemplateNode["ParentId"].asString());
|
||||
if(!alertTemplateNode["Name"].isNull())
|
||||
alertTemplate_.name = alertTemplateNode["Name"].asString();
|
||||
if(!alertTemplateNode["Message"].isNull())
|
||||
alertTemplate_.message = alertTemplateNode["Message"].asString();
|
||||
if(!alertTemplateNode["AlertProvider"].isNull())
|
||||
alertTemplate_.alertProvider = alertTemplateNode["AlertProvider"].asString();
|
||||
if(!alertTemplateNode["TemplateProvider"].isNull())
|
||||
alertTemplate_.templateProvider = alertTemplateNode["TemplateProvider"].asString();
|
||||
if(!alertTemplateNode["Type"].isNull())
|
||||
alertTemplate_.type = alertTemplateNode["Type"].asString();
|
||||
if(!alertTemplateNode["Labels"].isNull())
|
||||
alertTemplate_.labels = alertTemplateNode["Labels"].asString();
|
||||
if(!alertTemplateNode["Annotations"].isNull())
|
||||
alertTemplate_.annotations = alertTemplateNode["Annotations"].asString();
|
||||
if(!alertTemplateNode["Rule"].isNull())
|
||||
alertTemplate_.rule = alertTemplateNode["Rule"].asString();
|
||||
if(!alertTemplateNode["UserId"].isNull())
|
||||
alertTemplate_.userId = alertTemplateNode["UserId"].asString();
|
||||
if(!alertTemplateNode["Status"].isNull())
|
||||
alertTemplate_.status = alertTemplateNode["Status"].asString() == "true";
|
||||
if(!alertTemplateNode["Public"].isNull())
|
||||
alertTemplate_._public = alertTemplateNode["Public"].asString() == "true";
|
||||
auto labelMatchExpressionGridNode = alertTemplateNode["LabelMatchExpressionGrid"];
|
||||
auto allLabelMatchExpressionGroupsNode = labelMatchExpressionGridNode["LabelMatchExpressionGroups"]["LabelMatchExpressionGroup"];
|
||||
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup : allLabelMatchExpressionGroupsNode)
|
||||
{
|
||||
AlertTemplate::LabelMatchExpressionGrid::LabelMatchExpressionGroup labelMatchExpressionGroupObject;
|
||||
auto allLabelMatchExpressionsNode = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroup["LabelMatchExpressions"]["LabelMatchExpression"];
|
||||
for (auto labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression : allLabelMatchExpressionsNode)
|
||||
{
|
||||
AlertTemplate::LabelMatchExpressionGrid::LabelMatchExpressionGroup::LabelMatchExpression labelMatchExpressionsObject;
|
||||
if(!labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Key"].isNull())
|
||||
labelMatchExpressionsObject.key = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Key"].asString();
|
||||
if(!labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Value"].isNull())
|
||||
labelMatchExpressionsObject.value = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Value"].asString();
|
||||
if(!labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Operator"].isNull())
|
||||
labelMatchExpressionsObject._operator = labelMatchExpressionGridNodeLabelMatchExpressionGroupsLabelMatchExpressionGroupLabelMatchExpressionsLabelMatchExpression["Operator"].asString();
|
||||
labelMatchExpressionGroupObject.labelMatchExpressions.push_back(labelMatchExpressionsObject);
|
||||
}
|
||||
alertTemplate_.labelMatchExpressionGrid.labelMatchExpressionGroups.push_back(labelMatchExpressionGroupObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreateAlertTemplateResult::AlertTemplate CreateAlertTemplateResult::getAlertTemplate()const
|
||||
{
|
||||
return alertTemplate_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateDispatchRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateDispatchRuleRequest;
|
||||
|
||||
CreateDispatchRuleRequest::CreateDispatchRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateDispatchRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDispatchRuleRequest::~CreateDispatchRuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDispatchRuleRequest::getDispatchRule()const
|
||||
{
|
||||
return dispatchRule_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateDispatchRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateDispatchRuleRequest;
|
||||
|
||||
CreateDispatchRuleRequest::CreateDispatchRuleRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateDispatchRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDispatchRuleRequest::setDispatchRule(const std::string& dispatchRule)
|
||||
{
|
||||
dispatchRule_ = dispatchRule;
|
||||
setParameter("DispatchRule", dispatchRule);
|
||||
CreateDispatchRuleRequest::~CreateDispatchRuleRequest() {}
|
||||
|
||||
std::string CreateDispatchRuleRequest::getDispatchRule() const {
|
||||
return dispatchRule_;
|
||||
}
|
||||
|
||||
std::string CreateDispatchRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CreateDispatchRuleRequest::setDispatchRule(const std::string &dispatchRule) {
|
||||
dispatchRule_ = dispatchRule;
|
||||
setParameter(std::string("DispatchRule"), dispatchRule);
|
||||
}
|
||||
|
||||
void CreateDispatchRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CreateDispatchRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreateDispatchRuleRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void CreateDispatchRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreateDispatchRuleRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string CreateDispatchRuleRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateDispatchRuleRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
|
||||
72
arms/src/model/CreateIntegrationRequest.cc
Normal file
72
arms/src/model/CreateIntegrationRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateIntegrationRequest;
|
||||
|
||||
CreateIntegrationRequest::CreateIntegrationRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateIntegration") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIntegrationRequest::~CreateIntegrationRequest() {}
|
||||
|
||||
bool CreateIntegrationRequest::getAutoRecover() const {
|
||||
return autoRecover_;
|
||||
}
|
||||
|
||||
void CreateIntegrationRequest::setAutoRecover(bool autoRecover) {
|
||||
autoRecover_ = autoRecover;
|
||||
setBodyParameter(std::string("AutoRecover"), autoRecover ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateIntegrationRequest::getRecoverTime() const {
|
||||
return recoverTime_;
|
||||
}
|
||||
|
||||
void CreateIntegrationRequest::setRecoverTime(long recoverTime) {
|
||||
recoverTime_ = recoverTime;
|
||||
setBodyParameter(std::string("RecoverTime"), std::to_string(recoverTime));
|
||||
}
|
||||
|
||||
std::string CreateIntegrationRequest::getIntegrationName() const {
|
||||
return integrationName_;
|
||||
}
|
||||
|
||||
void CreateIntegrationRequest::setIntegrationName(const std::string &integrationName) {
|
||||
integrationName_ = integrationName;
|
||||
setBodyParameter(std::string("IntegrationName"), integrationName);
|
||||
}
|
||||
|
||||
std::string CreateIntegrationRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateIntegrationRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateIntegrationRequest::getIntegrationProductType() const {
|
||||
return integrationProductType_;
|
||||
}
|
||||
|
||||
void CreateIntegrationRequest::setIntegrationProductType(const std::string &integrationProductType) {
|
||||
integrationProductType_ = integrationProductType;
|
||||
setBodyParameter(std::string("IntegrationProductType"), integrationProductType);
|
||||
}
|
||||
|
||||
62
arms/src/model/CreateIntegrationResult.cc
Normal file
62
arms/src/model/CreateIntegrationResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateIntegrationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateIntegrationResult::CreateIntegrationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIntegrationResult::CreateIntegrationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIntegrationResult::~CreateIntegrationResult()
|
||||
{}
|
||||
|
||||
void CreateIntegrationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto integrationNode = value["Integration"];
|
||||
if(!integrationNode["IntegrationId"].isNull())
|
||||
integration_.integrationId = std::stol(integrationNode["IntegrationId"].asString());
|
||||
if(!integrationNode["IntegrationName"].isNull())
|
||||
integration_.integrationName = integrationNode["IntegrationName"].asString();
|
||||
if(!integrationNode["IntegrationProductType"].isNull())
|
||||
integration_.integrationProductType = integrationNode["IntegrationProductType"].asString();
|
||||
if(!integrationNode["Description"].isNull())
|
||||
integration_.description = integrationNode["Description"].asString();
|
||||
if(!integrationNode["AutoRecover"].isNull())
|
||||
integration_.autoRecover = integrationNode["AutoRecover"].asString() == "true";
|
||||
if(!integrationNode["RecoverTime"].isNull())
|
||||
integration_.recoverTime = std::stol(integrationNode["RecoverTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
CreateIntegrationResult::Integration CreateIntegrationResult::getIntegration()const
|
||||
{
|
||||
return integration_;
|
||||
}
|
||||
|
||||
216
arms/src/model/CreateOrUpdateAlertRuleRequest.cc
Normal file
216
arms/src/model/CreateOrUpdateAlertRuleRequest.cc
Normal file
@@ -0,0 +1,216 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateOrUpdateAlertRuleRequest;
|
||||
|
||||
CreateOrUpdateAlertRuleRequest::CreateOrUpdateAlertRuleRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateOrUpdateAlertRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateAlertRuleRequest::~CreateOrUpdateAlertRuleRequest() {}
|
||||
|
||||
long CreateOrUpdateAlertRuleRequest::getAlertGroup() const {
|
||||
return alertGroup_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAlertGroup(long alertGroup) {
|
||||
alertGroup_ = alertGroup;
|
||||
setBodyParameter(std::string("AlertGroup"), std::to_string(alertGroup));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAlertName() const {
|
||||
return alertName_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAlertName(const std::string &alertName) {
|
||||
alertName_ = alertName;
|
||||
setBodyParameter(std::string("AlertName"), alertName);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAlertStatus() const {
|
||||
return alertStatus_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAlertStatus(const std::string &alertStatus) {
|
||||
alertStatus_ = alertStatus;
|
||||
setBodyParameter(std::string("AlertStatus"), alertStatus);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAnnotations() const {
|
||||
return annotations_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAnnotations(const std::string &annotations) {
|
||||
annotations_ = annotations;
|
||||
setBodyParameter(std::string("Annotations"), annotations);
|
||||
}
|
||||
|
||||
long CreateOrUpdateAlertRuleRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setDuration(long duration) {
|
||||
duration_ = duration;
|
||||
setBodyParameter(std::string("Duration"), std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getMetricsKey() const {
|
||||
return metricsKey_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setMetricsKey(const std::string &metricsKey) {
|
||||
metricsKey_ = metricsKey;
|
||||
setBodyParameter(std::string("MetricsKey"), metricsKey);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAlertRuleContent() const {
|
||||
return alertRuleContent_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAlertRuleContent(const std::string &alertRuleContent) {
|
||||
alertRuleContent_ = alertRuleContent;
|
||||
setBodyParameter(std::string("AlertRuleContent"), alertRuleContent);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getPromQL() const {
|
||||
return promQL_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setPromQL(const std::string &promQL) {
|
||||
promQL_ = promQL;
|
||||
setBodyParameter(std::string("PromQL"), promQL);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getLevel() const {
|
||||
return level_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setLevel(const std::string &level) {
|
||||
level_ = level;
|
||||
setBodyParameter(std::string("Level"), level);
|
||||
}
|
||||
|
||||
bool CreateOrUpdateAlertRuleRequest::getAutoAddNewApplication() const {
|
||||
return autoAddNewApplication_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAutoAddNewApplication(bool autoAddNewApplication) {
|
||||
autoAddNewApplication_ = autoAddNewApplication;
|
||||
setBodyParameter(std::string("AutoAddNewApplication"), autoAddNewApplication ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getFilters() const {
|
||||
return filters_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setFilters(const std::string &filters) {
|
||||
filters_ = filters;
|
||||
setBodyParameter(std::string("Filters"), filters);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getMessage() const {
|
||||
return message_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setMessage(const std::string &message) {
|
||||
message_ = message;
|
||||
setBodyParameter(std::string("Message"), message);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getNotifyStrategy() const {
|
||||
return notifyStrategy_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setNotifyStrategy(const std::string ¬ifyStrategy) {
|
||||
notifyStrategy_ = notifyStrategy;
|
||||
setBodyParameter(std::string("NotifyStrategy"), notifyStrategy);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getLabels() const {
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setLabels(const std::string &labels) {
|
||||
labels_ = labels;
|
||||
setBodyParameter(std::string("Labels"), labels);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAlertType() const {
|
||||
return alertType_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAlertType(const std::string &alertType) {
|
||||
alertType_ = alertType;
|
||||
setBodyParameter(std::string("AlertType"), alertType);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAlertCheckType() const {
|
||||
return alertCheckType_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAlertCheckType(const std::string &alertCheckType) {
|
||||
alertCheckType_ = alertCheckType;
|
||||
setBodyParameter(std::string("AlertCheckType"), alertCheckType);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getMetricsType() const {
|
||||
return metricsType_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setMetricsType(const std::string &metricsType) {
|
||||
metricsType_ = metricsType;
|
||||
setBodyParameter(std::string("MetricsType"), metricsType);
|
||||
}
|
||||
|
||||
long CreateOrUpdateAlertRuleRequest::getAlertId() const {
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAlertId(long alertId) {
|
||||
alertId_ = alertId;
|
||||
setBodyParameter(std::string("AlertId"), std::to_string(alertId));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getPids() const {
|
||||
return pids_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setPids(const std::string &pids) {
|
||||
pids_ = pids;
|
||||
setBodyParameter(std::string("Pids"), pids);
|
||||
}
|
||||
|
||||
166
arms/src/model/CreateOrUpdateAlertRuleResult.cc
Normal file
166
arms/src/model/CreateOrUpdateAlertRuleResult.cc
Normal file
@@ -0,0 +1,166 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateAlertRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateOrUpdateAlertRuleResult::CreateOrUpdateAlertRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateAlertRuleResult::CreateOrUpdateAlertRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateAlertRuleResult::~CreateOrUpdateAlertRuleResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateAlertRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alertRuleNode = value["AlertRule"];
|
||||
if(!alertRuleNode["AlertId"].isNull())
|
||||
alertRule_.alertId = std::stof(alertRuleNode["AlertId"].asString());
|
||||
if(!alertRuleNode["AlertName"].isNull())
|
||||
alertRule_.alertName = alertRuleNode["AlertName"].asString();
|
||||
if(!alertRuleNode["UserId"].isNull())
|
||||
alertRule_.userId = alertRuleNode["UserId"].asString();
|
||||
if(!alertRuleNode["RegionId"].isNull())
|
||||
alertRule_.regionId = alertRuleNode["RegionId"].asString();
|
||||
if(!alertRuleNode["AlertType"].isNull())
|
||||
alertRule_.alertType = alertRuleNode["AlertType"].asString();
|
||||
if(!alertRuleNode["AlertStatus"].isNull())
|
||||
alertRule_.alertStatus = alertRuleNode["AlertStatus"].asString();
|
||||
if(!alertRuleNode["CreatedTime"].isNull())
|
||||
alertRule_.createdTime = std::stol(alertRuleNode["CreatedTime"].asString());
|
||||
if(!alertRuleNode["UpdatedTime"].isNull())
|
||||
alertRule_.updatedTime = std::stol(alertRuleNode["UpdatedTime"].asString());
|
||||
if(!alertRuleNode["Extend"].isNull())
|
||||
alertRule_.extend = alertRuleNode["Extend"].asString();
|
||||
if(!alertRuleNode["NotifyStrategy"].isNull())
|
||||
alertRule_.notifyStrategy = alertRuleNode["NotifyStrategy"].asString();
|
||||
if(!alertRuleNode["AutoAddNewApplication"].isNull())
|
||||
alertRule_.autoAddNewApplication = alertRuleNode["AutoAddNewApplication"].asString() == "true";
|
||||
if(!alertRuleNode["MetricsType"].isNull())
|
||||
alertRule_.metricsType = alertRuleNode["MetricsType"].asString();
|
||||
if(!alertRuleNode["AlertCheckType"].isNull())
|
||||
alertRule_.alertCheckType = alertRuleNode["AlertCheckType"].asString();
|
||||
if(!alertRuleNode["ClusterId"].isNull())
|
||||
alertRule_.clusterId = alertRuleNode["ClusterId"].asString();
|
||||
if(!alertRuleNode["AlertGroup"].isNull())
|
||||
alertRule_.alertGroup = std::stol(alertRuleNode["AlertGroup"].asString());
|
||||
if(!alertRuleNode["PromQL"].isNull())
|
||||
alertRule_.promQL = alertRuleNode["PromQL"].asString();
|
||||
if(!alertRuleNode["Duration"].isNull())
|
||||
alertRule_.duration = alertRuleNode["Duration"].asString();
|
||||
if(!alertRuleNode["Level"].isNull())
|
||||
alertRule_.level = alertRuleNode["Level"].asString();
|
||||
if(!alertRuleNode["Message"].isNull())
|
||||
alertRule_.message = alertRuleNode["Message"].asString();
|
||||
auto allLabelsNode = alertRuleNode["Labels"]["labelsItem"];
|
||||
for (auto alertRuleNodeLabelslabelsItem : allLabelsNode)
|
||||
{
|
||||
AlertRule::LabelsItem labelsItemObject;
|
||||
if(!alertRuleNodeLabelslabelsItem["Name"].isNull())
|
||||
labelsItemObject.name = alertRuleNodeLabelslabelsItem["Name"].asString();
|
||||
if(!alertRuleNodeLabelslabelsItem["Value"].isNull())
|
||||
labelsItemObject.value = alertRuleNodeLabelslabelsItem["Value"].asString();
|
||||
alertRule_.labels.push_back(labelsItemObject);
|
||||
}
|
||||
auto allAnnotationsNode = alertRuleNode["Annotations"]["annotationsItem"];
|
||||
for (auto alertRuleNodeAnnotationsannotationsItem : allAnnotationsNode)
|
||||
{
|
||||
AlertRule::AnnotationsItem annotationsItemObject;
|
||||
if(!alertRuleNodeAnnotationsannotationsItem["Name"].isNull())
|
||||
annotationsItemObject.name = alertRuleNodeAnnotationsannotationsItem["Name"].asString();
|
||||
if(!alertRuleNodeAnnotationsannotationsItem["Value"].isNull())
|
||||
annotationsItemObject.value = alertRuleNodeAnnotationsannotationsItem["Value"].asString();
|
||||
alertRule_.annotations.push_back(annotationsItemObject);
|
||||
}
|
||||
auto alertRuleContentNode = alertRuleNode["AlertRuleContent"];
|
||||
if(!alertRuleContentNode["Condition"].isNull())
|
||||
alertRule_.alertRuleContent.condition = alertRuleContentNode["Condition"].asString();
|
||||
auto allAlertRuleItemsNode = alertRuleContentNode["AlertRuleItems"]["alertRuleItemsItem"];
|
||||
for (auto alertRuleContentNodeAlertRuleItemsalertRuleItemsItem : allAlertRuleItemsNode)
|
||||
{
|
||||
AlertRule::AlertRuleContent::AlertRuleItemsItem alertRuleItemsItemObject;
|
||||
if(!alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["N"].isNull())
|
||||
alertRuleItemsItemObject.n = std::stof(alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["N"].asString());
|
||||
if(!alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["MetricKey"].isNull())
|
||||
alertRuleItemsItemObject.metricKey = alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["MetricKey"].asString();
|
||||
if(!alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["Aggregate"].isNull())
|
||||
alertRuleItemsItemObject.aggregate = alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["Aggregate"].asString();
|
||||
if(!alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["Operator"].isNull())
|
||||
alertRuleItemsItemObject._operator = alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["Operator"].asString();
|
||||
if(!alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["Value"].isNull())
|
||||
alertRuleItemsItemObject.value = alertRuleContentNodeAlertRuleItemsalertRuleItemsItem["Value"].asString();
|
||||
alertRule_.alertRuleContent.alertRuleItems.push_back(alertRuleItemsItemObject);
|
||||
}
|
||||
auto filtersNode = alertRuleNode["Filters"];
|
||||
auto allDimFiltersNode = filtersNode["DimFilters"]["dimFiltersItem"];
|
||||
for (auto filtersNodeDimFiltersdimFiltersItem : allDimFiltersNode)
|
||||
{
|
||||
AlertRule::Filters::DimFiltersItem dimFiltersItemObject;
|
||||
if(!filtersNodeDimFiltersdimFiltersItem["FilterKey"].isNull())
|
||||
dimFiltersItemObject.filterKey = filtersNodeDimFiltersdimFiltersItem["FilterKey"].asString();
|
||||
if(!filtersNodeDimFiltersdimFiltersItem["FilterOpt"].isNull())
|
||||
dimFiltersItemObject.filterOpt = filtersNodeDimFiltersdimFiltersItem["FilterOpt"].asString();
|
||||
auto allFilterValues = value["FilterValues"]["filterValues"];
|
||||
for (auto value : allFilterValues)
|
||||
dimFiltersItemObject.filterValues.push_back(value.asString());
|
||||
alertRule_.filters.dimFilters.push_back(dimFiltersItemObject);
|
||||
}
|
||||
auto allCustomSLSFiltersNode = filtersNode["CustomSLSFilters"]["customSLSFiltersItem"];
|
||||
for (auto filtersNodeCustomSLSFilterscustomSLSFiltersItem : allCustomSLSFiltersNode)
|
||||
{
|
||||
AlertRule::Filters::CustomSLSFiltersItem customSLSFiltersItemObject;
|
||||
if(!filtersNodeCustomSLSFilterscustomSLSFiltersItem["Key"].isNull())
|
||||
customSLSFiltersItemObject.key = filtersNodeCustomSLSFilterscustomSLSFiltersItem["Key"].asString();
|
||||
if(!filtersNodeCustomSLSFilterscustomSLSFiltersItem["Opt"].isNull())
|
||||
customSLSFiltersItemObject.opt = filtersNodeCustomSLSFilterscustomSLSFiltersItem["Opt"].asString();
|
||||
if(!filtersNodeCustomSLSFilterscustomSLSFiltersItem["Value"].isNull())
|
||||
customSLSFiltersItemObject.value = filtersNodeCustomSLSFilterscustomSLSFiltersItem["Value"].asString();
|
||||
if(!filtersNodeCustomSLSFilterscustomSLSFiltersItem["T"].isNull())
|
||||
customSLSFiltersItemObject.t = filtersNodeCustomSLSFilterscustomSLSFiltersItem["T"].asString();
|
||||
if(!filtersNodeCustomSLSFilterscustomSLSFiltersItem["Show"].isNull())
|
||||
customSLSFiltersItemObject.show = filtersNodeCustomSLSFilterscustomSLSFiltersItem["Show"].asString() == "true";
|
||||
alertRule_.filters.customSLSFilters.push_back(customSLSFiltersItemObject);
|
||||
}
|
||||
auto allCustomSLSGroupByDimensions = filtersNode["CustomSLSGroupByDimensions"]["customSLSGroupByDimensions"];
|
||||
for (auto value : allCustomSLSGroupByDimensions)
|
||||
alertRule_.filters.customSLSGroupByDimensions.push_back(value.asString());
|
||||
auto allCustomSLSWheres = filtersNode["CustomSLSWheres"]["customSLSWheres"];
|
||||
for (auto value : allCustomSLSWheres)
|
||||
alertRule_.filters.customSLSWheres.push_back(value.asString());
|
||||
auto allPids = alertRuleNode["Pids"]["pids"];
|
||||
for (auto value : allPids)
|
||||
alertRule_.pids.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
CreateOrUpdateAlertRuleResult::AlertRule CreateOrUpdateAlertRuleResult::getAlertRule()const
|
||||
{
|
||||
return alertRule_;
|
||||
}
|
||||
|
||||
63
arms/src/model/CreateOrUpdateContactGroupRequest.cc
Normal file
63
arms/src/model/CreateOrUpdateContactGroupRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateOrUpdateContactGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateOrUpdateContactGroupRequest;
|
||||
|
||||
CreateOrUpdateContactGroupRequest::CreateOrUpdateContactGroupRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateOrUpdateContactGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateContactGroupRequest::~CreateOrUpdateContactGroupRequest() {}
|
||||
|
||||
long CreateOrUpdateContactGroupRequest::getContactGroupId() const {
|
||||
return contactGroupId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactGroupRequest::setContactGroupId(long contactGroupId) {
|
||||
contactGroupId_ = contactGroupId;
|
||||
setBodyParameter(std::string("ContactGroupId"), std::to_string(contactGroupId));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactGroupRequest::getContactGroupName() const {
|
||||
return contactGroupName_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactGroupRequest::setContactGroupName(const std::string &contactGroupName) {
|
||||
contactGroupName_ = contactGroupName;
|
||||
setBodyParameter(std::string("ContactGroupName"), contactGroupName);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactGroupRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactGroupRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setBodyParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactGroupRequest::getContactIds() const {
|
||||
return contactIds_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactGroupRequest::setContactIds(const std::string &contactIds) {
|
||||
contactIds_ = contactIds;
|
||||
setBodyParameter(std::string("ContactIds"), contactIds);
|
||||
}
|
||||
|
||||
56
arms/src/model/CreateOrUpdateContactGroupResult.cc
Normal file
56
arms/src/model/CreateOrUpdateContactGroupResult.cc
Normal file
@@ -0,0 +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/CreateOrUpdateContactGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateOrUpdateContactGroupResult::CreateOrUpdateContactGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateContactGroupResult::CreateOrUpdateContactGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateContactGroupResult::~CreateOrUpdateContactGroupResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateContactGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alertContactGroupNode = value["AlertContactGroup"];
|
||||
if(!alertContactGroupNode["ContactGroupId"].isNull())
|
||||
alertContactGroup_.contactGroupId = std::stof(alertContactGroupNode["ContactGroupId"].asString());
|
||||
if(!alertContactGroupNode["ContactGroupName"].isNull())
|
||||
alertContactGroup_.contactGroupName = alertContactGroupNode["ContactGroupName"].asString();
|
||||
if(!alertContactGroupNode["ContactIds"].isNull())
|
||||
alertContactGroup_.contactIds = alertContactGroupNode["ContactIds"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateOrUpdateContactGroupResult::AlertContactGroup CreateOrUpdateContactGroupResult::getAlertContactGroup()const
|
||||
{
|
||||
return alertContactGroup_;
|
||||
}
|
||||
|
||||
90
arms/src/model/CreateOrUpdateContactRequest.cc
Normal file
90
arms/src/model/CreateOrUpdateContactRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateContactRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateOrUpdateContactRequest;
|
||||
|
||||
CreateOrUpdateContactRequest::CreateOrUpdateContactRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateOrUpdateContact") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateContactRequest::~CreateOrUpdateContactRequest() {}
|
||||
|
||||
long CreateOrUpdateContactRequest::getContactId() const {
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setContactId(long contactId) {
|
||||
contactId_ = contactId;
|
||||
setBodyParameter(std::string("ContactId"), std::to_string(contactId));
|
||||
}
|
||||
|
||||
long CreateOrUpdateContactRequest::getReissueSendNotice() const {
|
||||
return reissueSendNotice_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setReissueSendNotice(long reissueSendNotice) {
|
||||
reissueSendNotice_ = reissueSendNotice;
|
||||
setBodyParameter(std::string("ReissueSendNotice"), std::to_string(reissueSendNotice));
|
||||
}
|
||||
|
||||
bool CreateOrUpdateContactRequest::getIsVerify() const {
|
||||
return isVerify_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setIsVerify(bool isVerify) {
|
||||
isVerify_ = isVerify;
|
||||
setBodyParameter(std::string("IsVerify"), isVerify ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setBodyParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactRequest::getContactName() const {
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setContactName(const std::string &contactName) {
|
||||
contactName_ = contactName;
|
||||
setBodyParameter(std::string("ContactName"), contactName);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactRequest::getPhone() const {
|
||||
return phone_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setPhone(const std::string &phone) {
|
||||
phone_ = phone;
|
||||
setBodyParameter(std::string("Phone"), phone);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactRequest::getEmail() const {
|
||||
return email_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setEmail(const std::string &email) {
|
||||
email_ = email;
|
||||
setBodyParameter(std::string("Email"), email);
|
||||
}
|
||||
|
||||
62
arms/src/model/CreateOrUpdateContactResult.cc
Normal file
62
arms/src/model/CreateOrUpdateContactResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateOrUpdateContactResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateOrUpdateContactResult::CreateOrUpdateContactResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateContactResult::CreateOrUpdateContactResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateContactResult::~CreateOrUpdateContactResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateContactResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alertContactNode = value["AlertContact"];
|
||||
if(!alertContactNode["ContactId"].isNull())
|
||||
alertContact_.contactId = std::stof(alertContactNode["ContactId"].asString());
|
||||
if(!alertContactNode["ContactName"].isNull())
|
||||
alertContact_.contactName = alertContactNode["ContactName"].asString();
|
||||
if(!alertContactNode["Phone"].isNull())
|
||||
alertContact_.phone = alertContactNode["Phone"].asString();
|
||||
if(!alertContactNode["Email"].isNull())
|
||||
alertContact_.email = alertContactNode["Email"].asString();
|
||||
if(!alertContactNode["IsVerify"].isNull())
|
||||
alertContact_.isVerify = alertContactNode["IsVerify"].asString() == "true";
|
||||
if(!alertContactNode["ReissueSendNotice"].isNull())
|
||||
alertContact_.reissueSendNotice = std::stol(alertContactNode["ReissueSendNotice"].asString());
|
||||
|
||||
}
|
||||
|
||||
CreateOrUpdateContactResult::AlertContact CreateOrUpdateContactResult::getAlertContact()const
|
||||
{
|
||||
return alertContact_;
|
||||
}
|
||||
|
||||
108
arms/src/model/CreateOrUpdateEventBridgeIntegrationRequest.cc
Normal file
108
arms/src/model/CreateOrUpdateEventBridgeIntegrationRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateEventBridgeIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateOrUpdateEventBridgeIntegrationRequest;
|
||||
|
||||
CreateOrUpdateEventBridgeIntegrationRequest::CreateOrUpdateEventBridgeIntegrationRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateOrUpdateEventBridgeIntegration") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateEventBridgeIntegrationRequest::~CreateOrUpdateEventBridgeIntegrationRequest() {}
|
||||
|
||||
std::string CreateOrUpdateEventBridgeIntegrationRequest::getAccessSecret() const {
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationRequest::setAccessSecret(const std::string &accessSecret) {
|
||||
accessSecret_ = accessSecret;
|
||||
setBodyParameter(std::string("AccessSecret"), accessSecret);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateEventBridgeIntegrationRequest::getEventBusRegionId() const {
|
||||
return eventBusRegionId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationRequest::setEventBusRegionId(const std::string &eventBusRegionId) {
|
||||
eventBusRegionId_ = eventBusRegionId;
|
||||
setBodyParameter(std::string("EventBusRegionId"), eventBusRegionId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateEventBridgeIntegrationRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateEventBridgeIntegrationRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setBodyParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateEventBridgeIntegrationRequest::getEventBusName() const {
|
||||
return eventBusName_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationRequest::setEventBusName(const std::string &eventBusName) {
|
||||
eventBusName_ = eventBusName;
|
||||
setBodyParameter(std::string("EventBusName"), eventBusName);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateEventBridgeIntegrationRequest::getEndpoint() const {
|
||||
return endpoint_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationRequest::setEndpoint(const std::string &endpoint) {
|
||||
endpoint_ = endpoint;
|
||||
setBodyParameter(std::string("Endpoint"), endpoint);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateEventBridgeIntegrationRequest::getAccessKey() const {
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationRequest::setAccessKey(const std::string &accessKey) {
|
||||
accessKey_ = accessKey;
|
||||
setBodyParameter(std::string("AccessKey"), accessKey);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateEventBridgeIntegrationRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
long CreateOrUpdateEventBridgeIntegrationRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
68
arms/src/model/CreateOrUpdateEventBridgeIntegrationResult.cc
Normal file
68
arms/src/model/CreateOrUpdateEventBridgeIntegrationResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateEventBridgeIntegrationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateOrUpdateEventBridgeIntegrationResult::CreateOrUpdateEventBridgeIntegrationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateEventBridgeIntegrationResult::CreateOrUpdateEventBridgeIntegrationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateEventBridgeIntegrationResult::~CreateOrUpdateEventBridgeIntegrationResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateEventBridgeIntegrationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto eventBridgeIntegrationNode = value["EventBridgeIntegration"];
|
||||
if(!eventBridgeIntegrationNode["Id"].isNull())
|
||||
eventBridgeIntegration_.id = std::stol(eventBridgeIntegrationNode["Id"].asString());
|
||||
if(!eventBridgeIntegrationNode["Name"].isNull())
|
||||
eventBridgeIntegration_.name = eventBridgeIntegrationNode["Name"].asString();
|
||||
if(!eventBridgeIntegrationNode["Description"].isNull())
|
||||
eventBridgeIntegration_.description = eventBridgeIntegrationNode["Description"].asString();
|
||||
if(!eventBridgeIntegrationNode["Endpoint"].isNull())
|
||||
eventBridgeIntegration_.endpoint = eventBridgeIntegrationNode["Endpoint"].asString();
|
||||
if(!eventBridgeIntegrationNode["AccessKey"].isNull())
|
||||
eventBridgeIntegration_.accessKey = eventBridgeIntegrationNode["AccessKey"].asString();
|
||||
if(!eventBridgeIntegrationNode["AccessSecret"].isNull())
|
||||
eventBridgeIntegration_.accessSecret = eventBridgeIntegrationNode["AccessSecret"].asString();
|
||||
if(!eventBridgeIntegrationNode["EventBusName"].isNull())
|
||||
eventBridgeIntegration_.eventBusName = eventBridgeIntegrationNode["EventBusName"].asString();
|
||||
if(!eventBridgeIntegrationNode["Source"].isNull())
|
||||
eventBridgeIntegration_.source = eventBridgeIntegrationNode["Source"].asString();
|
||||
if(!eventBridgeIntegrationNode["EventBusRegionId"].isNull())
|
||||
eventBridgeIntegration_.eventBusRegionId = eventBridgeIntegrationNode["EventBusRegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateOrUpdateEventBridgeIntegrationResult::EventBridgeIntegration CreateOrUpdateEventBridgeIntegrationResult::getEventBridgeIntegration()const
|
||||
{
|
||||
return eventBridgeIntegration_;
|
||||
}
|
||||
|
||||
126
arms/src/model/CreateOrUpdateIMRobotRequest.cc
Normal file
126
arms/src/model/CreateOrUpdateIMRobotRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateIMRobotRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateOrUpdateIMRobotRequest;
|
||||
|
||||
CreateOrUpdateIMRobotRequest::CreateOrUpdateIMRobotRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateOrUpdateIMRobot") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateIMRobotRequest::~CreateOrUpdateIMRobotRequest() {}
|
||||
|
||||
bool CreateOrUpdateIMRobotRequest::getDailyNoc() const {
|
||||
return dailyNoc_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setDailyNoc(bool dailyNoc) {
|
||||
dailyNoc_ = dailyNoc;
|
||||
setBodyParameter(std::string("DailyNoc"), dailyNoc ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateIMRobotRequest::getRobotAddress() const {
|
||||
return robotAddress_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setRobotAddress(const std::string &robotAddress) {
|
||||
robotAddress_ = robotAddress;
|
||||
setBodyParameter(std::string("RobotAddress"), robotAddress);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateIMRobotRequest::getDingSignKey() const {
|
||||
return dingSignKey_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setDingSignKey(const std::string &dingSignKey) {
|
||||
dingSignKey_ = dingSignKey;
|
||||
setBodyParameter(std::string("DingSignKey"), dingSignKey);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateIMRobotRequest::getRobotName() const {
|
||||
return robotName_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setRobotName(const std::string &robotName) {
|
||||
robotName_ = robotName;
|
||||
setBodyParameter(std::string("RobotName"), robotName);
|
||||
}
|
||||
|
||||
long CreateOrUpdateIMRobotRequest::getRobotId() const {
|
||||
return robotId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setRobotId(long robotId) {
|
||||
robotId_ = robotId;
|
||||
setBodyParameter(std::string("RobotId"), std::to_string(robotId));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateIMRobotRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setBodyParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateIMRobotRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setBodyParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateIMRobotRequest::getDailyNocTime() const {
|
||||
return dailyNocTime_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setDailyNocTime(const std::string &dailyNocTime) {
|
||||
dailyNocTime_ = dailyNocTime;
|
||||
setBodyParameter(std::string("DailyNocTime"), dailyNocTime);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateIMRobotRequest::getToken() const {
|
||||
return token_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setToken(const std::string &token) {
|
||||
token_ = token;
|
||||
setBodyParameter(std::string("Token"), token);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateIMRobotRequest::getCardTemplate() const {
|
||||
return cardTemplate_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setCardTemplate(const std::string &cardTemplate) {
|
||||
cardTemplate_ = cardTemplate;
|
||||
setBodyParameter(std::string("CardTemplate"), cardTemplate);
|
||||
}
|
||||
|
||||
bool CreateOrUpdateIMRobotRequest::getEnableOutgoing() const {
|
||||
return enableOutgoing_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateIMRobotRequest::setEnableOutgoing(bool enableOutgoing) {
|
||||
enableOutgoing_ = enableOutgoing;
|
||||
setBodyParameter(std::string("EnableOutgoing"), enableOutgoing ? "true" : "false");
|
||||
}
|
||||
|
||||
68
arms/src/model/CreateOrUpdateIMRobotResult.cc
Normal file
68
arms/src/model/CreateOrUpdateIMRobotResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateIMRobotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateOrUpdateIMRobotResult::CreateOrUpdateIMRobotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateIMRobotResult::CreateOrUpdateIMRobotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateIMRobotResult::~CreateOrUpdateIMRobotResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateIMRobotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alertRobotNode = value["AlertRobot"];
|
||||
if(!alertRobotNode["RobotId"].isNull())
|
||||
alertRobot_.robotId = std::stof(alertRobotNode["RobotId"].asString());
|
||||
if(!alertRobotNode["RobotName"].isNull())
|
||||
alertRobot_.robotName = alertRobotNode["RobotName"].asString();
|
||||
if(!alertRobotNode["Type"].isNull())
|
||||
alertRobot_.type = alertRobotNode["Type"].asString();
|
||||
if(!alertRobotNode["RobotAddress"].isNull())
|
||||
alertRobot_.robotAddress = alertRobotNode["RobotAddress"].asString();
|
||||
if(!alertRobotNode["DailyNoc"].isNull())
|
||||
alertRobot_.dailyNoc = alertRobotNode["DailyNoc"].asString() == "true";
|
||||
if(!alertRobotNode["DailyNocTime"].isNull())
|
||||
alertRobot_.dailyNocTime = alertRobotNode["DailyNocTime"].asString();
|
||||
if(!alertRobotNode["Token"].isNull())
|
||||
alertRobot_.token = alertRobotNode["Token"].asString();
|
||||
if(!alertRobotNode["EnableOutgoing"].isNull())
|
||||
alertRobot_.enableOutgoing = alertRobotNode["EnableOutgoing"].asString() == "true";
|
||||
if(!alertRobotNode["CardTemplate"].isNull())
|
||||
alertRobot_.cardTemplate = alertRobotNode["CardTemplate"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateOrUpdateIMRobotResult::AlertRobot CreateOrUpdateIMRobotResult::getAlertRobot()const
|
||||
{
|
||||
return alertRobot_;
|
||||
}
|
||||
|
||||
135
arms/src/model/CreateOrUpdateNotificationPolicyRequest.cc
Normal file
135
arms/src/model/CreateOrUpdateNotificationPolicyRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateNotificationPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateOrUpdateNotificationPolicyRequest;
|
||||
|
||||
CreateOrUpdateNotificationPolicyRequest::CreateOrUpdateNotificationPolicyRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateOrUpdateNotificationPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateNotificationPolicyRequest::~CreateOrUpdateNotificationPolicyRequest() {}
|
||||
|
||||
long CreateOrUpdateNotificationPolicyRequest::getEscalationPolicyId() const {
|
||||
return escalationPolicyId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setEscalationPolicyId(long escalationPolicyId) {
|
||||
escalationPolicyId_ = escalationPolicyId;
|
||||
setBodyParameter(std::string("EscalationPolicyId"), std::to_string(escalationPolicyId));
|
||||
}
|
||||
|
||||
bool CreateOrUpdateNotificationPolicyRequest::getSendRecoverMessage() const {
|
||||
return sendRecoverMessage_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setSendRecoverMessage(bool sendRecoverMessage) {
|
||||
sendRecoverMessage_ = sendRecoverMessage;
|
||||
setBodyParameter(std::string("SendRecoverMessage"), sendRecoverMessage ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateOrUpdateNotificationPolicyRequest::getIntegrationId() const {
|
||||
return integrationId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setIntegrationId(long integrationId) {
|
||||
integrationId_ = integrationId;
|
||||
setBodyParameter(std::string("IntegrationId"), std::to_string(integrationId));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getMatchingRules() const {
|
||||
return matchingRules_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setMatchingRules(const std::string &matchingRules) {
|
||||
matchingRules_ = matchingRules;
|
||||
setBodyParameter(std::string("MatchingRules"), matchingRules);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getGroupRule() const {
|
||||
return groupRule_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setGroupRule(const std::string &groupRule) {
|
||||
groupRule_ = groupRule;
|
||||
setBodyParameter(std::string("GroupRule"), groupRule);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool CreateOrUpdateNotificationPolicyRequest::getRepeat() const {
|
||||
return repeat_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setRepeat(bool repeat) {
|
||||
repeat_ = repeat;
|
||||
setBodyParameter(std::string("Repeat"), repeat ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
long CreateOrUpdateNotificationPolicyRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getNotifyRule() const {
|
||||
return notifyRule_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setNotifyRule(const std::string ¬ifyRule) {
|
||||
notifyRule_ = notifyRule;
|
||||
setBodyParameter(std::string("NotifyRule"), notifyRule);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getNotifyTemplate() const {
|
||||
return notifyTemplate_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setNotifyTemplate(const std::string ¬ifyTemplate) {
|
||||
notifyTemplate_ = notifyTemplate;
|
||||
setBodyParameter(std::string("NotifyTemplate"), notifyTemplate);
|
||||
}
|
||||
|
||||
long CreateOrUpdateNotificationPolicyRequest::getRepeatInterval() const {
|
||||
return repeatInterval_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setRepeatInterval(long repeatInterval) {
|
||||
repeatInterval_ = repeatInterval;
|
||||
setBodyParameter(std::string("RepeatInterval"), std::to_string(repeatInterval));
|
||||
}
|
||||
|
||||
129
arms/src/model/CreateOrUpdateNotificationPolicyResult.cc
Normal file
129
arms/src/model/CreateOrUpdateNotificationPolicyResult.cc
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateOrUpdateNotificationPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateOrUpdateNotificationPolicyResult::CreateOrUpdateNotificationPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateNotificationPolicyResult::CreateOrUpdateNotificationPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateNotificationPolicyResult::~CreateOrUpdateNotificationPolicyResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto notificationPolicyNode = value["NotificationPolicy"];
|
||||
if(!notificationPolicyNode["Id"].isNull())
|
||||
notificationPolicy_.id = std::stol(notificationPolicyNode["Id"].asString());
|
||||
if(!notificationPolicyNode["Name"].isNull())
|
||||
notificationPolicy_.name = notificationPolicyNode["Name"].asString();
|
||||
if(!notificationPolicyNode["SendRecoverMessage"].isNull())
|
||||
notificationPolicy_.sendRecoverMessage = notificationPolicyNode["SendRecoverMessage"].asString() == "true";
|
||||
if(!notificationPolicyNode["EscalationPolicyId"].isNull())
|
||||
notificationPolicy_.escalationPolicyId = std::stol(notificationPolicyNode["EscalationPolicyId"].asString());
|
||||
if(!notificationPolicyNode["Repeat"].isNull())
|
||||
notificationPolicy_.repeat = notificationPolicyNode["Repeat"].asString() == "true";
|
||||
if(!notificationPolicyNode["RepeatInterval"].isNull())
|
||||
notificationPolicy_.repeatInterval = std::stol(notificationPolicyNode["RepeatInterval"].asString());
|
||||
if(!notificationPolicyNode["IntegrationId"].isNull())
|
||||
notificationPolicy_.integrationId = std::stol(notificationPolicyNode["IntegrationId"].asString());
|
||||
auto allMatchingRulesNode = notificationPolicyNode["MatchingRules"]["matchingRulesItem"];
|
||||
for (auto notificationPolicyNodeMatchingRulesmatchingRulesItem : allMatchingRulesNode)
|
||||
{
|
||||
NotificationPolicy::MatchingRulesItem matchingRulesItemObject;
|
||||
auto allMatchingConditionsNode = notificationPolicyNodeMatchingRulesmatchingRulesItem["MatchingConditions"]["matchingConditionsItem"];
|
||||
for (auto notificationPolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem : allMatchingConditionsNode)
|
||||
{
|
||||
NotificationPolicy::MatchingRulesItem::MatchingConditionsItem matchingConditionsObject;
|
||||
if(!notificationPolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Key"].isNull())
|
||||
matchingConditionsObject.key = notificationPolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Key"].asString();
|
||||
if(!notificationPolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Value"].isNull())
|
||||
matchingConditionsObject.value = notificationPolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Value"].asString();
|
||||
if(!notificationPolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Operator"].isNull())
|
||||
matchingConditionsObject._operator = notificationPolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Operator"].asString();
|
||||
matchingRulesItemObject.matchingConditions.push_back(matchingConditionsObject);
|
||||
}
|
||||
notificationPolicy_.matchingRules.push_back(matchingRulesItemObject);
|
||||
}
|
||||
auto groupRuleNode = notificationPolicyNode["GroupRule"];
|
||||
if(!groupRuleNode["GroupWait"].isNull())
|
||||
notificationPolicy_.groupRule.groupWait = std::stol(groupRuleNode["GroupWait"].asString());
|
||||
if(!groupRuleNode["GroupInterval"].isNull())
|
||||
notificationPolicy_.groupRule.groupInterval = std::stol(groupRuleNode["GroupInterval"].asString());
|
||||
auto allGroupingFields = groupRuleNode["GroupingFields"]["groupingFields"];
|
||||
for (auto value : allGroupingFields)
|
||||
notificationPolicy_.groupRule.groupingFields.push_back(value.asString());
|
||||
auto notifyRuleNode = notificationPolicyNode["NotifyRule"];
|
||||
if(!notifyRuleNode["NotifyStartTime"].isNull())
|
||||
notificationPolicy_.notifyRule.notifyStartTime = notifyRuleNode["NotifyStartTime"].asString();
|
||||
if(!notifyRuleNode["NotifyEndTime"].isNull())
|
||||
notificationPolicy_.notifyRule.notifyEndTime = notifyRuleNode["NotifyEndTime"].asString();
|
||||
auto allNotifyObjectsNode = notifyRuleNode["NotifyObjects"]["notifyObjectsItem"];
|
||||
for (auto notifyRuleNodeNotifyObjectsnotifyObjectsItem : allNotifyObjectsNode)
|
||||
{
|
||||
NotificationPolicy::NotifyRule::NotifyObjectsItem notifyObjectsItemObject;
|
||||
if(!notifyRuleNodeNotifyObjectsnotifyObjectsItem["NotifyObjectType"].isNull())
|
||||
notifyObjectsItemObject.notifyObjectType = notifyRuleNodeNotifyObjectsnotifyObjectsItem["NotifyObjectType"].asString();
|
||||
if(!notifyRuleNodeNotifyObjectsnotifyObjectsItem["NotifyObjectId"].isNull())
|
||||
notifyObjectsItemObject.notifyObjectId = std::stol(notifyRuleNodeNotifyObjectsnotifyObjectsItem["NotifyObjectId"].asString());
|
||||
if(!notifyRuleNodeNotifyObjectsnotifyObjectsItem["NotifyObjectName"].isNull())
|
||||
notifyObjectsItemObject.notifyObjectName = notifyRuleNodeNotifyObjectsnotifyObjectsItem["NotifyObjectName"].asString();
|
||||
notificationPolicy_.notifyRule.notifyObjects.push_back(notifyObjectsItemObject);
|
||||
}
|
||||
auto allNotifyChannels = notifyRuleNode["NotifyChannels"]["notifyChannels"];
|
||||
for (auto value : allNotifyChannels)
|
||||
notificationPolicy_.notifyRule.notifyChannels.push_back(value.asString());
|
||||
auto notifyTemplateNode = notificationPolicyNode["NotifyTemplate"];
|
||||
if(!notifyTemplateNode["EmailTitle"].isNull())
|
||||
notificationPolicy_.notifyTemplate.emailTitle = notifyTemplateNode["EmailTitle"].asString();
|
||||
if(!notifyTemplateNode["EmailContent"].isNull())
|
||||
notificationPolicy_.notifyTemplate.emailContent = notifyTemplateNode["EmailContent"].asString();
|
||||
if(!notifyTemplateNode["EmailRecoverTitle"].isNull())
|
||||
notificationPolicy_.notifyTemplate.emailRecoverTitle = notifyTemplateNode["EmailRecoverTitle"].asString();
|
||||
if(!notifyTemplateNode["EmailRecoverContent"].isNull())
|
||||
notificationPolicy_.notifyTemplate.emailRecoverContent = notifyTemplateNode["EmailRecoverContent"].asString();
|
||||
if(!notifyTemplateNode["SmsContent"].isNull())
|
||||
notificationPolicy_.notifyTemplate.smsContent = notifyTemplateNode["SmsContent"].asString();
|
||||
if(!notifyTemplateNode["SmsRecoverContent"].isNull())
|
||||
notificationPolicy_.notifyTemplate.smsRecoverContent = notifyTemplateNode["SmsRecoverContent"].asString();
|
||||
if(!notifyTemplateNode["TtsContent"].isNull())
|
||||
notificationPolicy_.notifyTemplate.ttsContent = notifyTemplateNode["TtsContent"].asString();
|
||||
if(!notifyTemplateNode["TtsRecoverContent"].isNull())
|
||||
notificationPolicy_.notifyTemplate.ttsRecoverContent = notifyTemplateNode["TtsRecoverContent"].asString();
|
||||
if(!notifyTemplateNode["RobotContent"].isNull())
|
||||
notificationPolicy_.notifyTemplate.robotContent = notifyTemplateNode["RobotContent"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateOrUpdateNotificationPolicyResult::NotificationPolicy CreateOrUpdateNotificationPolicyResult::getNotificationPolicy()const
|
||||
{
|
||||
return notificationPolicy_;
|
||||
}
|
||||
|
||||
63
arms/src/model/CreateOrUpdateSilencePolicyRequest.cc
Normal file
63
arms/src/model/CreateOrUpdateSilencePolicyRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateOrUpdateSilencePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateOrUpdateSilencePolicyRequest;
|
||||
|
||||
CreateOrUpdateSilencePolicyRequest::CreateOrUpdateSilencePolicyRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateOrUpdateSilencePolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateSilencePolicyRequest::~CreateOrUpdateSilencePolicyRequest() {}
|
||||
|
||||
std::string CreateOrUpdateSilencePolicyRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSilencePolicyRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSilencePolicyRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSilencePolicyRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
long CreateOrUpdateSilencePolicyRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSilencePolicyRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSilencePolicyRequest::getMatchingRules() const {
|
||||
return matchingRules_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSilencePolicyRequest::setMatchingRules(const std::string &matchingRules) {
|
||||
matchingRules_ = matchingRules;
|
||||
setBodyParameter(std::string("MatchingRules"), matchingRules);
|
||||
}
|
||||
|
||||
72
arms/src/model/CreateOrUpdateSilencePolicyResult.cc
Normal file
72
arms/src/model/CreateOrUpdateSilencePolicyResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateOrUpdateSilencePolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateOrUpdateSilencePolicyResult::CreateOrUpdateSilencePolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateSilencePolicyResult::CreateOrUpdateSilencePolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateSilencePolicyResult::~CreateOrUpdateSilencePolicyResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateSilencePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto silencePolicyNode = value["SilencePolicy"];
|
||||
if(!silencePolicyNode["Id"].isNull())
|
||||
silencePolicy_.id = std::stol(silencePolicyNode["Id"].asString());
|
||||
if(!silencePolicyNode["Name"].isNull())
|
||||
silencePolicy_.name = silencePolicyNode["Name"].asString();
|
||||
auto allMatchingRulesNode = silencePolicyNode["MatchingRules"]["matchingRulesItem"];
|
||||
for (auto silencePolicyNodeMatchingRulesmatchingRulesItem : allMatchingRulesNode)
|
||||
{
|
||||
SilencePolicy::MatchingRulesItem matchingRulesItemObject;
|
||||
auto allMatchingConditionsNode = silencePolicyNodeMatchingRulesmatchingRulesItem["MatchingConditions"]["matchingConditionsItem"];
|
||||
for (auto silencePolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem : allMatchingConditionsNode)
|
||||
{
|
||||
SilencePolicy::MatchingRulesItem::MatchingConditionsItem matchingConditionsObject;
|
||||
if(!silencePolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Key"].isNull())
|
||||
matchingConditionsObject.key = silencePolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Key"].asString();
|
||||
if(!silencePolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Value"].isNull())
|
||||
matchingConditionsObject.value = silencePolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Value"].asString();
|
||||
if(!silencePolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Operator"].isNull())
|
||||
matchingConditionsObject._operator = silencePolicyNodeMatchingRulesmatchingRulesItemMatchingConditionsmatchingConditionsItem["Operator"].asString();
|
||||
matchingRulesItemObject.matchingConditions.push_back(matchingConditionsObject);
|
||||
}
|
||||
silencePolicy_.matchingRules.push_back(matchingRulesItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreateOrUpdateSilencePolicyResult::SilencePolicy CreateOrUpdateSilencePolicyResult::getSilencePolicy()const
|
||||
{
|
||||
return silencePolicy_;
|
||||
}
|
||||
|
||||
108
arms/src/model/CreateOrUpdateWebhookContactRequest.cc
Normal file
108
arms/src/model/CreateOrUpdateWebhookContactRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateWebhookContactRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateOrUpdateWebhookContactRequest;
|
||||
|
||||
CreateOrUpdateWebhookContactRequest::CreateOrUpdateWebhookContactRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateOrUpdateWebhookContact") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateWebhookContactRequest::~CreateOrUpdateWebhookContactRequest() {}
|
||||
|
||||
long CreateOrUpdateWebhookContactRequest::getWebhookId() const {
|
||||
return webhookId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateWebhookContactRequest::setWebhookId(long webhookId) {
|
||||
webhookId_ = webhookId;
|
||||
setBodyParameter(std::string("WebhookId"), std::to_string(webhookId));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateWebhookContactRequest::getMethod() const {
|
||||
return method_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateWebhookContactRequest::setMethod(const std::string &method) {
|
||||
method_ = method;
|
||||
setBodyParameter(std::string("Method"), method);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateWebhookContactRequest::getWebhookName() const {
|
||||
return webhookName_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateWebhookContactRequest::setWebhookName(const std::string &webhookName) {
|
||||
webhookName_ = webhookName;
|
||||
setBodyParameter(std::string("WebhookName"), webhookName);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateWebhookContactRequest::getBizParams() const {
|
||||
return bizParams_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateWebhookContactRequest::setBizParams(const std::string &bizParams) {
|
||||
bizParams_ = bizParams;
|
||||
setBodyParameter(std::string("BizParams"), bizParams);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateWebhookContactRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateWebhookContactRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("Body"), body);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateWebhookContactRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateWebhookContactRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setBodyParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateWebhookContactRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateWebhookContactRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setBodyParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateWebhookContactRequest::getBizHeaders() const {
|
||||
return bizHeaders_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateWebhookContactRequest::setBizHeaders(const std::string &bizHeaders) {
|
||||
bizHeaders_ = bizHeaders;
|
||||
setBodyParameter(std::string("BizHeaders"), bizHeaders);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateWebhookContactRequest::getRecoverBody() const {
|
||||
return recoverBody_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateWebhookContactRequest::setRecoverBody(const std::string &recoverBody) {
|
||||
recoverBody_ = recoverBody;
|
||||
setBodyParameter(std::string("RecoverBody"), recoverBody);
|
||||
}
|
||||
|
||||
67
arms/src/model/CreateOrUpdateWebhookContactResult.cc
Normal file
67
arms/src/model/CreateOrUpdateWebhookContactResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrUpdateWebhookContactResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateOrUpdateWebhookContactResult::CreateOrUpdateWebhookContactResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateWebhookContactResult::CreateOrUpdateWebhookContactResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateWebhookContactResult::~CreateOrUpdateWebhookContactResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateWebhookContactResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto webhookContactNode = value["WebhookContact"];
|
||||
if(!webhookContactNode["WebhookId"].isNull())
|
||||
webhookContact_.webhookId = std::stof(webhookContactNode["WebhookId"].asString());
|
||||
if(!webhookContactNode["WebhookName"].isNull())
|
||||
webhookContact_.webhookName = webhookContactNode["WebhookName"].asString();
|
||||
auto webhookNode = webhookContactNode["Webhook"];
|
||||
if(!webhookNode["Method"].isNull())
|
||||
webhookContact_.webhook.method = webhookNode["Method"].asString();
|
||||
if(!webhookNode["Url"].isNull())
|
||||
webhookContact_.webhook.url = webhookNode["Url"].asString();
|
||||
if(!webhookNode["BizHeaders"].isNull())
|
||||
webhookContact_.webhook.bizHeaders = webhookNode["BizHeaders"].asString();
|
||||
if(!webhookNode["BizParams"].isNull())
|
||||
webhookContact_.webhook.bizParams = webhookNode["BizParams"].asString();
|
||||
if(!webhookNode["Body"].isNull())
|
||||
webhookContact_.webhook.body = webhookNode["Body"].asString();
|
||||
if(!webhookNode["RecoverBody"].isNull())
|
||||
webhookContact_.webhook.recoverBody = webhookNode["RecoverBody"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateOrUpdateWebhookContactResult::WebhookContact CreateOrUpdateWebhookContactResult::getWebhookContact()const
|
||||
{
|
||||
return webhookContact_;
|
||||
}
|
||||
|
||||
@@ -1,172 +1,144 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreatePrometheusAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreatePrometheusAlertRuleRequest;
|
||||
|
||||
CreatePrometheusAlertRuleRequest::CreatePrometheusAlertRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreatePrometheusAlertRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePrometheusAlertRuleRequest::~CreatePrometheusAlertRuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreatePrometheusAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreatePrometheusAlertRuleRequest;
|
||||
|
||||
CreatePrometheusAlertRuleRequest::CreatePrometheusAlertRuleRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreatePrometheusAlertRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
CreatePrometheusAlertRuleRequest::~CreatePrometheusAlertRuleRequest() {}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getProductCode() const {
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getExpression()const
|
||||
{
|
||||
return expression_;
|
||||
void CreatePrometheusAlertRuleRequest::setProductCode(const std::string &productCode) {
|
||||
productCode_ = productCode;
|
||||
setParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setExpression(const std::string& expression)
|
||||
{
|
||||
expression_ = expression;
|
||||
setParameter("Expression", expression);
|
||||
std::string CreatePrometheusAlertRuleRequest::getExpression() const {
|
||||
return expression_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getAlertName()const
|
||||
{
|
||||
return alertName_;
|
||||
void CreatePrometheusAlertRuleRequest::setExpression(const std::string &expression) {
|
||||
expression_ = expression;
|
||||
setParameter(std::string("Expression"), expression);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = alertName;
|
||||
setParameter("AlertName", alertName);
|
||||
std::string CreatePrometheusAlertRuleRequest::getAlertName() const {
|
||||
return alertName_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getAnnotations()const
|
||||
{
|
||||
return annotations_;
|
||||
void CreatePrometheusAlertRuleRequest::setAlertName(const std::string &alertName) {
|
||||
alertName_ = alertName;
|
||||
setParameter(std::string("AlertName"), alertName);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setAnnotations(const std::string& annotations)
|
||||
{
|
||||
annotations_ = annotations;
|
||||
setParameter("Annotations", annotations);
|
||||
std::string CreatePrometheusAlertRuleRequest::getAnnotations() const {
|
||||
return annotations_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
void CreatePrometheusAlertRuleRequest::setAnnotations(const std::string &annotations) {
|
||||
annotations_ = annotations;
|
||||
setParameter(std::string("Annotations"), annotations);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
std::string CreatePrometheusAlertRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
long CreatePrometheusAlertRuleRequest::getDispatchRuleId()const
|
||||
{
|
||||
return dispatchRuleId_;
|
||||
void CreatePrometheusAlertRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setDispatchRuleId(long dispatchRuleId)
|
||||
{
|
||||
dispatchRuleId_ = dispatchRuleId;
|
||||
setParameter("DispatchRuleId", std::to_string(dispatchRuleId));
|
||||
long CreatePrometheusAlertRuleRequest::getDispatchRuleId() const {
|
||||
return dispatchRuleId_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void CreatePrometheusAlertRuleRequest::setDispatchRuleId(long dispatchRuleId) {
|
||||
dispatchRuleId_ = dispatchRuleId;
|
||||
setParameter(std::string("DispatchRuleId"), std::to_string(dispatchRuleId));
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string CreatePrometheusAlertRuleRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void CreatePrometheusAlertRuleRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
std::string CreatePrometheusAlertRuleRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
void CreatePrometheusAlertRuleRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setMessage(const std::string& message)
|
||||
{
|
||||
message_ = message;
|
||||
setParameter("Message", message);
|
||||
std::string CreatePrometheusAlertRuleRequest::getMessage() const {
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getLabels()const
|
||||
{
|
||||
return labels_;
|
||||
void CreatePrometheusAlertRuleRequest::setMessage(const std::string &message) {
|
||||
message_ = message;
|
||||
setParameter(std::string("Message"), message);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setLabels(const std::string& labels)
|
||||
{
|
||||
labels_ = labels;
|
||||
setParameter("Labels", labels);
|
||||
std::string CreatePrometheusAlertRuleRequest::getLabels() const {
|
||||
return labels_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
void CreatePrometheusAlertRuleRequest::setLabels(const std::string &labels) {
|
||||
labels_ = labels;
|
||||
setParameter(std::string("Labels"), labels);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", duration);
|
||||
std::string CreatePrometheusAlertRuleRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CreatePrometheusAlertRuleRequest::setDuration(const std::string &duration) {
|
||||
duration_ = duration;
|
||||
setParameter(std::string("Duration"), duration);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CreatePrometheusAlertRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getNotifyType()const
|
||||
{
|
||||
return notifyType_;
|
||||
void CreatePrometheusAlertRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setNotifyType(const std::string& notifyType)
|
||||
{
|
||||
notifyType_ = notifyType;
|
||||
setParameter("NotifyType", notifyType);
|
||||
std::string CreatePrometheusAlertRuleRequest::getNotifyType() const {
|
||||
return notifyType_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setNotifyType(const std::string ¬ifyType) {
|
||||
notifyType_ = notifyType;
|
||||
setParameter(std::string("NotifyType"), notifyType);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void CreatePrometheusAlertRuleResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto prometheusAlertRuleNode = value["PrometheusAlertRule"];
|
||||
if(!prometheusAlertRuleNode["AlertId"].isNull())
|
||||
prometheusAlertRule_.alertId = std::stol(prometheusAlertRuleNode["AlertId"].asString());
|
||||
if(!prometheusAlertRuleNode["AlertName"].isNull())
|
||||
prometheusAlertRule_.alertName = prometheusAlertRuleNode["AlertName"].asString();
|
||||
if(!prometheusAlertRuleNode["Message"].isNull())
|
||||
prometheusAlertRule_.message = prometheusAlertRuleNode["Message"].asString();
|
||||
if(!prometheusAlertRuleNode["Type"].isNull())
|
||||
prometheusAlertRule_.type = prometheusAlertRuleNode["Type"].asString();
|
||||
if(!prometheusAlertRuleNode["Expression"].isNull())
|
||||
prometheusAlertRule_.expression = prometheusAlertRuleNode["Expression"].asString();
|
||||
if(!prometheusAlertRuleNode["Duration"].isNull())
|
||||
prometheusAlertRule_.duration = prometheusAlertRuleNode["Duration"].asString();
|
||||
if(!prometheusAlertRuleNode["ClusterId"].isNull())
|
||||
prometheusAlertRule_.clusterId = prometheusAlertRuleNode["ClusterId"].asString();
|
||||
if(!prometheusAlertRuleNode["Status"].isNull())
|
||||
prometheusAlertRule_.status = std::stoi(prometheusAlertRuleNode["Status"].asString());
|
||||
if(!prometheusAlertRuleNode["DispatchRuleId"].isNull())
|
||||
prometheusAlertRule_.dispatchRuleId = std::stol(prometheusAlertRuleNode["DispatchRuleId"].asString());
|
||||
if(!prometheusAlertRuleNode["Type"].isNull())
|
||||
prometheusAlertRule_.type = prometheusAlertRuleNode["Type"].asString();
|
||||
if(!prometheusAlertRuleNode["NotifyType"].isNull())
|
||||
prometheusAlertRule_.notifyType = prometheusAlertRuleNode["NotifyType"].asString();
|
||||
if(!prometheusAlertRuleNode["Expression"].isNull())
|
||||
prometheusAlertRule_.expression = prometheusAlertRuleNode["Expression"].asString();
|
||||
if(!prometheusAlertRuleNode["Message"].isNull())
|
||||
prometheusAlertRule_.message = prometheusAlertRuleNode["Message"].asString();
|
||||
if(!prometheusAlertRuleNode["Duration"].isNull())
|
||||
prometheusAlertRule_.duration = prometheusAlertRuleNode["Duration"].asString();
|
||||
if(!prometheusAlertRuleNode["DispatchRuleId"].isNull())
|
||||
prometheusAlertRule_.dispatchRuleId = std::stol(prometheusAlertRuleNode["DispatchRuleId"].asString());
|
||||
if(!prometheusAlertRuleNode["AlertName"].isNull())
|
||||
prometheusAlertRule_.alertName = prometheusAlertRuleNode["AlertName"].asString();
|
||||
if(!prometheusAlertRuleNode["AlertId"].isNull())
|
||||
prometheusAlertRule_.alertId = std::stol(prometheusAlertRuleNode["AlertId"].asString());
|
||||
if(!prometheusAlertRuleNode["ClusterId"].isNull())
|
||||
prometheusAlertRule_.clusterId = prometheusAlertRuleNode["ClusterId"].asString();
|
||||
auto allLabelsNode = prometheusAlertRuleNode["Labels"]["Label"];
|
||||
for (auto prometheusAlertRuleNodeLabelsLabel : allLabelsNode)
|
||||
{
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRetcodeAppRequest::~CreateRetcodeAppRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRetcodeAppRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateRetcodeAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateRetcodeAppRequest;
|
||||
|
||||
CreateRetcodeAppRequest::CreateRetcodeAppRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateRetcodeApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateRetcodeAppRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
CreateRetcodeAppRequest::~CreateRetcodeAppRequest() {}
|
||||
|
||||
std::string CreateRetcodeAppRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreateRetcodeAppRequest::getRetcodeAppName()const
|
||||
{
|
||||
return retcodeAppName_;
|
||||
void CreateRetcodeAppRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreateRetcodeAppRequest::setRetcodeAppName(const std::string& retcodeAppName)
|
||||
{
|
||||
retcodeAppName_ = retcodeAppName;
|
||||
setParameter("RetcodeAppName", retcodeAppName);
|
||||
std::string CreateRetcodeAppRequest::getRetcodeAppName() const {
|
||||
return retcodeAppName_;
|
||||
}
|
||||
|
||||
std::string CreateRetcodeAppRequest::getRetcodeAppType()const
|
||||
{
|
||||
return retcodeAppType_;
|
||||
void CreateRetcodeAppRequest::setRetcodeAppName(const std::string &retcodeAppName) {
|
||||
retcodeAppName_ = retcodeAppName;
|
||||
setParameter(std::string("RetcodeAppName"), retcodeAppName);
|
||||
}
|
||||
|
||||
void CreateRetcodeAppRequest::setRetcodeAppType(const std::string& retcodeAppType)
|
||||
{
|
||||
retcodeAppType_ = retcodeAppType;
|
||||
setParameter("RetcodeAppType", retcodeAppType);
|
||||
std::string CreateRetcodeAppRequest::getRetcodeAppType() const {
|
||||
return retcodeAppType_;
|
||||
}
|
||||
|
||||
void CreateRetcodeAppRequest::setRetcodeAppType(const std::string &retcodeAppType) {
|
||||
retcodeAppType_ = retcodeAppType;
|
||||
setParameter(std::string("RetcodeAppType"), retcodeAppType);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void CreateRetcodeAppResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
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();
|
||||
if(!retcodeAppDataBeanNode["AppId"].isNull())
|
||||
retcodeAppDataBean_.appId = std::stol(retcodeAppDataBeanNode["AppId"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
265
arms/src/model/CreateSyntheticTaskRequest.cc
Normal file
265
arms/src/model/CreateSyntheticTaskRequest.cc
Normal file
@@ -0,0 +1,265 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateSyntheticTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateSyntheticTaskRequest;
|
||||
|
||||
CreateSyntheticTaskRequest::CreateSyntheticTaskRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateSyntheticTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSyntheticTaskRequest::~CreateSyntheticTaskRequest() {}
|
||||
|
||||
long CreateSyntheticTaskRequest::getTaskType() const {
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setTaskType(long taskType) {
|
||||
taskType_ = taskType;
|
||||
setParameter(std::string("TaskType"), std::to_string(taskType));
|
||||
}
|
||||
|
||||
std::string CreateSyntheticTaskRequest::getIntervalType() const {
|
||||
return intervalType_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setIntervalType(const std::string &intervalType) {
|
||||
intervalType_ = intervalType;
|
||||
setParameter(std::string("IntervalType"), intervalType);
|
||||
}
|
||||
|
||||
bool CreateSyntheticTaskRequest::getUpdateTask() const {
|
||||
return updateTask_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setUpdateTask(bool updateTask) {
|
||||
updateTask_ = updateTask;
|
||||
setParameter(std::string("UpdateTask"), updateTask ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateSyntheticTaskRequest::getTaskName() const {
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setTaskName(const std::string &taskName) {
|
||||
taskName_ = taskName;
|
||||
setParameter(std::string("TaskName"), taskName);
|
||||
}
|
||||
|
||||
std::vector<CreateSyntheticTaskRequest::MonitorList> CreateSyntheticTaskRequest::getMonitorList() const {
|
||||
return monitorList_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setMonitorList(const std::vector<CreateSyntheticTaskRequest::MonitorList> &monitorList) {
|
||||
monitorList_ = monitorList;
|
||||
for(int dep1 = 0; dep1 != monitorList.size(); dep1++) {
|
||||
setParameter(std::string("MonitorList") + "." + std::to_string(dep1 + 1) + ".NetServiceId", std::to_string(monitorList[dep1].netServiceId));
|
||||
setParameter(std::string("MonitorList") + "." + std::to_string(dep1 + 1) + ".MonitorType", std::to_string(monitorList[dep1].monitorType));
|
||||
setParameter(std::string("MonitorList") + "." + std::to_string(dep1 + 1) + ".CityCode", std::to_string(monitorList[dep1].cityCode));
|
||||
}
|
||||
}
|
||||
|
||||
long CreateSyntheticTaskRequest::getIpType() const {
|
||||
return ipType_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setIpType(long ipType) {
|
||||
ipType_ = ipType;
|
||||
setParameter(std::string("IpType"), std::to_string(ipType));
|
||||
}
|
||||
|
||||
std::string CreateSyntheticTaskRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
std::string CreateSyntheticTaskRequest::getIntervalTime() const {
|
||||
return intervalTime_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setIntervalTime(const std::string &intervalTime) {
|
||||
intervalTime_ = intervalTime;
|
||||
setParameter(std::string("IntervalTime"), intervalTime);
|
||||
}
|
||||
|
||||
CreateSyntheticTaskRequest::CommonParam CreateSyntheticTaskRequest::getCommonParam() const {
|
||||
return commonParam_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setCommonParam(const CreateSyntheticTaskRequest::CommonParam &commonParam) {
|
||||
commonParam_ = commonParam;
|
||||
setParameter(std::string("CommonParam") + ".AlertNotifierId", commonParam.alertNotifierId);
|
||||
setParameter(std::string("CommonParam") + ".AlertPolicyId", commonParam.alertPolicyId);
|
||||
for(int dep1 = 0; dep1 != commonParam.alertList.size(); dep1++) {
|
||||
setParameter(std::string("CommonParam") + ".AlertList." + std::to_string(dep1 + 1) + ".IsCritical", std::to_string(commonParam.alertList[dep1].isCritical));
|
||||
setParameter(std::string("CommonParam") + ".AlertList." + std::to_string(dep1 + 1) + ".Name", commonParam.alertList[dep1].name);
|
||||
setParameter(std::string("CommonParam") + ".AlertList." + std::to_string(dep1 + 1) + ".SeriousAlert", commonParam.alertList[dep1].seriousAlert);
|
||||
setParameter(std::string("CommonParam") + ".AlertList." + std::to_string(dep1 + 1) + ".GeneralAlert", commonParam.alertList[dep1].generalAlert);
|
||||
setParameter(std::string("CommonParam") + ".AlertList." + std::to_string(dep1 + 1) + ".Symbols", std::to_string(commonParam.alertList[dep1].symbols));
|
||||
}
|
||||
setParameter(std::string("CommonParam") + ".AlarmFlag", commonParam.alarmFlag);
|
||||
setParameter(std::string("CommonParam") + ".StartExecutionTime", std::to_string(commonParam.startExecutionTime));
|
||||
setParameter(std::string("CommonParam") + ".MonitorSamples", std::to_string(commonParam.monitorSamples));
|
||||
}
|
||||
|
||||
CreateSyntheticTaskRequest::ExtendInterval CreateSyntheticTaskRequest::getExtendInterval() const {
|
||||
return extendInterval_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setExtendInterval(const CreateSyntheticTaskRequest::ExtendInterval &extendInterval) {
|
||||
extendInterval_ = extendInterval;
|
||||
setParameter(std::string("ExtendInterval") + ".StartMinute", std::to_string(extendInterval.startMinute));
|
||||
setParameter(std::string("ExtendInterval") + ".EndHour", std::to_string(extendInterval.endHour));
|
||||
setParameter(std::string("ExtendInterval") + ".EndMinute", std::to_string(extendInterval.endMinute));
|
||||
setParameter(std::string("ExtendInterval") + ".StartHour", std::to_string(extendInterval.startHour));
|
||||
setParameter(std::string("ExtendInterval") + ".EndTime", extendInterval.endTime);
|
||||
for(int dep1 = 0; dep1 != extendInterval.days.size(); dep1++) {
|
||||
setParameter(std::string("ExtendInterval") + ".Days." + std::to_string(dep1 + 1), std::to_string(extendInterval.days[dep1]));
|
||||
}
|
||||
setParameter(std::string("ExtendInterval") + ".StartTime", extendInterval.startTime);
|
||||
}
|
||||
|
||||
CreateSyntheticTaskRequest::Navigation CreateSyntheticTaskRequest::getNavigation() const {
|
||||
return navigation_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setNavigation(const CreateSyntheticTaskRequest::Navigation &navigation) {
|
||||
navigation_ = navigation;
|
||||
setParameter(std::string("Navigation") + ".ExecuteActiveX", std::to_string(navigation.executeActiveX));
|
||||
setParameter(std::string("Navigation") + ".NavCustomHostIp", navigation.navCustomHostIp);
|
||||
setParameter(std::string("Navigation") + ".NavReturnElement", std::to_string(navigation.navReturnElement));
|
||||
setParameter(std::string("Navigation") + ".QUICVersion", std::to_string(navigation.qUICVersion));
|
||||
setParameter(std::string("Navigation") + ".SlowElementThreshold", std::to_string(navigation.slowElementThreshold));
|
||||
setParameter(std::string("Navigation") + ".WaitCompletionTime", std::to_string(navigation.waitCompletionTime));
|
||||
setParameter(std::string("Navigation") + ".QUICDomain", navigation.qUICDomain);
|
||||
setParameter(std::string("Navigation") + ".NavCustomHeaderContent", navigation.navCustomHeaderContent);
|
||||
setParameter(std::string("Navigation") + ".ResponseHeader", std::to_string(navigation.responseHeader));
|
||||
setParameter(std::string("Navigation") + ".VerifyStringWhiteList", navigation.verifyStringWhiteList);
|
||||
setParameter(std::string("Navigation") + ".MonitorTimeout", navigation.monitorTimeout);
|
||||
setParameter(std::string("Navigation") + ".FilterInvalidIP", std::to_string(navigation.filterInvalidIP));
|
||||
setParameter(std::string("Navigation") + ".FlowHijackLogo", navigation.flowHijackLogo);
|
||||
setParameter(std::string("Navigation") + ".NavDisableCache", std::to_string(navigation.navDisableCache));
|
||||
setParameter(std::string("Navigation") + ".ElementBlacklist", navigation.elementBlacklist);
|
||||
setParameter(std::string("Navigation") + ".FlowHijackJumpTimes", std::to_string(navigation.flowHijackJumpTimes));
|
||||
setParameter(std::string("Navigation") + ".ExecuteScript", std::to_string(navigation.executeScript));
|
||||
setParameter(std::string("Navigation") + ".NavDisableCompression", navigation.navDisableCompression);
|
||||
setParameter(std::string("Navigation") + ".DNSHijackWhiteList", navigation.dNSHijackWhiteList);
|
||||
setParameter(std::string("Navigation") + ".ProcessName", navigation.processName);
|
||||
setParameter(std::string("Navigation") + ".VerifyStringBlacklist", navigation.verifyStringBlacklist);
|
||||
setParameter(std::string("Navigation") + ".NavAutomaticScrolling", navigation.navAutomaticScrolling);
|
||||
setParameter(std::string("Navigation") + ".NavRedirection", std::to_string(navigation.navRedirection));
|
||||
setParameter(std::string("Navigation") + ".NavCustomHeader", navigation.navCustomHeader);
|
||||
setParameter(std::string("Navigation") + ".ExecuteApplication", std::to_string(navigation.executeApplication));
|
||||
setParameter(std::string("Navigation") + ".NavCustomHost", std::to_string(navigation.navCustomHost));
|
||||
setParameter(std::string("Navigation") + ".NavIgnoreCertificateError", std::to_string(navigation.navIgnoreCertificateError));
|
||||
setParameter(std::string("Navigation") + ".PageTamper", navigation.pageTamper);
|
||||
setParameter(std::string("Navigation") + ".RequestHeader", std::to_string(navigation.requestHeader));
|
||||
}
|
||||
|
||||
CreateSyntheticTaskRequest::Download CreateSyntheticTaskRequest::getDownload() const {
|
||||
return download_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setDownload(const CreateSyntheticTaskRequest::Download &download) {
|
||||
download_ = download;
|
||||
setParameter(std::string("Download") + ".DownloadIgnoreCertificateError", download.downloadIgnoreCertificateError);
|
||||
setParameter(std::string("Download") + ".DownloadCustomHost", std::to_string(download.downloadCustomHost));
|
||||
setParameter(std::string("Download") + ".ConnectionTimeout", std::to_string(download.connectionTimeout));
|
||||
setParameter(std::string("Download") + ".DownloadKernel", std::to_string(download.downloadKernel));
|
||||
setParameter(std::string("Download") + ".WhiteList", download.whiteList);
|
||||
setParameter(std::string("Download") + ".DownloadRedirection", std::to_string(download.downloadRedirection));
|
||||
setParameter(std::string("Download") + ".MonitorTimeout", std::to_string(download.monitorTimeout));
|
||||
setParameter(std::string("Download") + ".ValidateKeywords", download.validateKeywords);
|
||||
setParameter(std::string("Download") + ".DownloadTransmissionSize", std::to_string(download.downloadTransmissionSize));
|
||||
setParameter(std::string("Download") + ".QuickProtocol", download.quickProtocol);
|
||||
setParameter(std::string("Download") + ".DownloadCustomHeaderContent", download.downloadCustomHeaderContent);
|
||||
setParameter(std::string("Download") + ".VerifyWay", std::to_string(download.verifyWay));
|
||||
setParameter(std::string("Download") + ".DownloadCustomHostIp", download.downloadCustomHostIp);
|
||||
}
|
||||
|
||||
CreateSyntheticTaskRequest::Protocol CreateSyntheticTaskRequest::getProtocol() const {
|
||||
return protocol_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setProtocol(const CreateSyntheticTaskRequest::Protocol &protocol) {
|
||||
protocol_ = protocol;
|
||||
setParameter(std::string("Protocol") + ".ReceivedDataSize", std::to_string(protocol.receivedDataSize));
|
||||
setParameter(std::string("Protocol") + ".ProtocolMonitorTimeout", protocol.protocolMonitorTimeout);
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Method", protocol.requestContent.method);
|
||||
for(int dep1 = 0; dep1 != protocol.requestContent.header.size(); dep1++) {
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Header." + std::to_string(dep1 + 1) + ".Value", protocol.requestContent.header[dep1].value);
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Header." + std::to_string(dep1 + 1) + ".Key", protocol.requestContent.header[dep1].key);
|
||||
}
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Body.Mode", protocol.requestContent.body.mode);
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Body.Raw", protocol.requestContent.body.raw);
|
||||
for(int dep1 = 0; dep1 != protocol.requestContent.body.urlEncoding.size(); dep1++) {
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Body.UrlEncoding." + std::to_string(dep1 + 1) + ".Value", protocol.requestContent.body.urlEncoding[dep1].value);
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Body.UrlEncoding." + std::to_string(dep1 + 1) + ".Key", protocol.requestContent.body.urlEncoding[dep1].key);
|
||||
}
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Body.Language", protocol.requestContent.body.language);
|
||||
for(int dep1 = 0; dep1 != protocol.requestContent.body.formData.size(); dep1++) {
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Body.FormData." + std::to_string(dep1 + 1) + ".Value", protocol.requestContent.body.formData[dep1].value);
|
||||
setParameter(std::string("Protocol") + ".RequestContent.Body.FormData." + std::to_string(dep1 + 1) + ".Key", protocol.requestContent.body.formData[dep1].key);
|
||||
}
|
||||
setParameter(std::string("Protocol") + ".ProtocolConnectionTime", std::to_string(protocol.protocolConnectionTime));
|
||||
setParameter(std::string("Protocol") + ".CharacterEncoding", std::to_string(protocol.characterEncoding));
|
||||
setParameter(std::string("Protocol") + ".VerifyContent", protocol.verifyContent);
|
||||
setParameter(std::string("Protocol") + ".CustomHost", std::to_string(protocol.customHost));
|
||||
setParameter(std::string("Protocol") + ".ProtocolConnectionTimeout", std::to_string(protocol.protocolConnectionTimeout));
|
||||
setParameter(std::string("Protocol") + ".CustomHostIp", protocol.customHostIp);
|
||||
setParameter(std::string("Protocol") + ".VerifyWay", std::to_string(protocol.verifyWay));
|
||||
}
|
||||
|
||||
std::string CreateSyntheticTaskRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
CreateSyntheticTaskRequest::Net CreateSyntheticTaskRequest::getNet() const {
|
||||
return net_;
|
||||
}
|
||||
|
||||
void CreateSyntheticTaskRequest::setNet(const CreateSyntheticTaskRequest::Net &net) {
|
||||
net_ = net;
|
||||
setParameter(std::string("Net") + ".NetICMPTimeout", std::to_string(net.netICMPTimeout));
|
||||
setParameter(std::string("Net") + ".NetTraceRouteTimeout", std::to_string(net.netTraceRouteTimeout));
|
||||
setParameter(std::string("Net") + ".NetICMPActive", std::to_string(net.netICMPActive));
|
||||
setParameter(std::string("Net") + ".NetICMPDataCut", std::to_string(net.netICMPDataCut));
|
||||
setParameter(std::string("Net") + ".NetICMPNum", std::to_string(net.netICMPNum));
|
||||
setParameter(std::string("Net") + ".NetDNSTimeout", std::to_string(net.netDNSTimeout));
|
||||
setParameter(std::string("Net") + ".NetDNSQueryMethod", std::to_string(net.netDNSQueryMethod));
|
||||
setParameter(std::string("Net") + ".WhiteList", net.whiteList);
|
||||
setParameter(std::string("Net") + ".NetDNSNs", net.netDNSNs);
|
||||
setParameter(std::string("Net") + ".NetDNSServer", std::to_string(net.netDNSServer));
|
||||
setParameter(std::string("Net") + ".NetTraceRouteSwitch", std::to_string(net.netTraceRouteSwitch));
|
||||
setParameter(std::string("Net") + ".NetDigSwitch", std::to_string(net.netDigSwitch));
|
||||
setParameter(std::string("Net") + ".NetICMPInterval", std::to_string(net.netICMPInterval));
|
||||
setParameter(std::string("Net") + ".NetDNSSwitch", std::to_string(net.netDNSSwitch));
|
||||
setParameter(std::string("Net") + ".NetTraceRouteNum", std::to_string(net.netTraceRouteNum));
|
||||
setParameter(std::string("Net") + ".NetICMPSwitch", std::to_string(net.netICMPSwitch));
|
||||
setParameter(std::string("Net") + ".NetICMPSize", std::to_string(net.netICMPSize));
|
||||
}
|
||||
|
||||
@@ -14,38 +14,53 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/SendCustomIncidentsResult.h>
|
||||
#include <alibabacloud/arms/model/CreateSyntheticTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SendCustomIncidentsResult::SendCustomIncidentsResult() :
|
||||
CreateSyntheticTaskResult::CreateSyntheticTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendCustomIncidentsResult::SendCustomIncidentsResult(const std::string &payload) :
|
||||
CreateSyntheticTaskResult::CreateSyntheticTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendCustomIncidentsResult::~SendCustomIncidentsResult()
|
||||
CreateSyntheticTaskResult::~CreateSyntheticTaskResult()
|
||||
{}
|
||||
|
||||
void SendCustomIncidentsResult::parse(const std::string &payload)
|
||||
void CreateSyntheticTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TaskId"].isNull())
|
||||
data_.taskId = std::stol(dataNode["TaskId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Msg"].isNull())
|
||||
msg_ = value["Msg"].asString();
|
||||
|
||||
}
|
||||
|
||||
bool SendCustomIncidentsResult::getSuccess()const
|
||||
std::string CreateSyntheticTaskResult::getMsg()const
|
||||
{
|
||||
return success_;
|
||||
return msg_;
|
||||
}
|
||||
|
||||
CreateSyntheticTaskResult::Data CreateSyntheticTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateSyntheticTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,117 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateWebhookRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateWebhookRequest;
|
||||
|
||||
CreateWebhookRequest::CreateWebhookRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateWebhook")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWebhookRequest::~CreateWebhookRequest()
|
||||
{}
|
||||
|
||||
std::string CreateWebhookRequest::getHttpHeaders()const
|
||||
{
|
||||
return httpHeaders_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateWebhookRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateWebhookRequest;
|
||||
|
||||
CreateWebhookRequest::CreateWebhookRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateWebhook") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setHttpHeaders(const std::string& httpHeaders)
|
||||
{
|
||||
httpHeaders_ = httpHeaders;
|
||||
setParameter("HttpHeaders", httpHeaders);
|
||||
CreateWebhookRequest::~CreateWebhookRequest() {}
|
||||
|
||||
std::string CreateWebhookRequest::getHttpHeaders() const {
|
||||
return httpHeaders_;
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getMethod()const
|
||||
{
|
||||
return method_;
|
||||
void CreateWebhookRequest::setHttpHeaders(const std::string &httpHeaders) {
|
||||
httpHeaders_ = httpHeaders;
|
||||
setParameter(std::string("HttpHeaders"), httpHeaders);
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setMethod(const std::string& method)
|
||||
{
|
||||
method_ = method;
|
||||
setParameter("Method", method);
|
||||
std::string CreateWebhookRequest::getMethod() const {
|
||||
return method_;
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getHttpParams()const
|
||||
{
|
||||
return httpParams_;
|
||||
void CreateWebhookRequest::setMethod(const std::string &method) {
|
||||
method_ = method;
|
||||
setParameter(std::string("Method"), method);
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setHttpParams(const std::string& httpParams)
|
||||
{
|
||||
httpParams_ = httpParams;
|
||||
setParameter("HttpParams", httpParams);
|
||||
std::string CreateWebhookRequest::getHttpParams() const {
|
||||
return httpParams_;
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void CreateWebhookRequest::setHttpParams(const std::string &httpParams) {
|
||||
httpParams_ = httpParams;
|
||||
setParameter(std::string("HttpParams"), httpParams);
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string CreateWebhookRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
void CreateWebhookRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
std::string CreateWebhookRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
void CreateWebhookRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setParameter(std::string("Body"), body);
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setParameter("Url", url);
|
||||
std::string CreateWebhookRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getContactName()const
|
||||
{
|
||||
return contactName_;
|
||||
void CreateWebhookRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setParameter("ContactName", contactName);
|
||||
std::string CreateWebhookRequest::getContactName() const {
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CreateWebhookRequest::setContactName(const std::string &contactName) {
|
||||
contactName_ = contactName;
|
||||
setParameter(std::string("ContactName"), contactName);
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CreateWebhookRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateWebhookRequest::getRecoverBody() const {
|
||||
return recoverBody_;
|
||||
}
|
||||
|
||||
void CreateWebhookRequest::setRecoverBody(const std::string &recoverBody) {
|
||||
recoverBody_ = recoverBody;
|
||||
setParameter(std::string("RecoverBody"), recoverBody);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CreateWehookRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateWehookRequest;
|
||||
|
||||
CreateWehookRequest::CreateWehookRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateWehook")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWehookRequest::~CreateWehookRequest()
|
||||
{}
|
||||
|
||||
std::string CreateWehookRequest::getHttpHeaders()const
|
||||
{
|
||||
return httpHeaders_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setHttpHeaders(const std::string& httpHeaders)
|
||||
{
|
||||
httpHeaders_ = httpHeaders;
|
||||
setParameter("HttpHeaders", httpHeaders);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getMethod()const
|
||||
{
|
||||
return method_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setMethod(const std::string& method)
|
||||
{
|
||||
method_ = method;
|
||||
setParameter("Method", method);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getHttpParams()const
|
||||
{
|
||||
return httpParams_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setHttpParams(const std::string& httpParams)
|
||||
{
|
||||
httpParams_ = httpParams;
|
||||
setParameter("HttpParams", httpParams);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setParameter("Url", url);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getContactName()const
|
||||
{
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
45
arms/src/model/DelAuthTokenRequest.cc
Normal file
45
arms/src/model/DelAuthTokenRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DelAuthTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DelAuthTokenRequest;
|
||||
|
||||
DelAuthTokenRequest::DelAuthTokenRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DelAuthToken") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DelAuthTokenRequest::~DelAuthTokenRequest() {}
|
||||
|
||||
std::string DelAuthTokenRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DelAuthTokenRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DelAuthTokenRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DelAuthTokenRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/QueryDatasetResult.h>
|
||||
#include <alibabacloud/arms/model/DelAuthTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
QueryDatasetResult::QueryDatasetResult() :
|
||||
DelAuthTokenResult::DelAuthTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDatasetResult::QueryDatasetResult(const std::string &payload) :
|
||||
DelAuthTokenResult::DelAuthTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDatasetResult::~QueryDatasetResult()
|
||||
DelAuthTokenResult::~DelAuthTokenResult()
|
||||
{}
|
||||
|
||||
void QueryDatasetResult::parse(const std::string &payload)
|
||||
void DelAuthTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -44,7 +44,7 @@ void QueryDatasetResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string QueryDatasetResult::getData()const
|
||||
std::string DelAuthTokenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteAlertContactGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertContactGroupRequest;
|
||||
|
||||
DeleteAlertContactGroupRequest::DeleteAlertContactGroupRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteAlertContactGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAlertContactGroupRequest::~DeleteAlertContactGroupRequest()
|
||||
{}
|
||||
|
||||
long DeleteAlertContactGroupRequest::getContactGroupId()const
|
||||
{
|
||||
return contactGroupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteAlertContactGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertContactGroupRequest;
|
||||
|
||||
DeleteAlertContactGroupRequest::DeleteAlertContactGroupRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteAlertContactGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteAlertContactGroupRequest::setContactGroupId(long contactGroupId)
|
||||
{
|
||||
contactGroupId_ = contactGroupId;
|
||||
setParameter("ContactGroupId", std::to_string(contactGroupId));
|
||||
DeleteAlertContactGroupRequest::~DeleteAlertContactGroupRequest() {}
|
||||
|
||||
long DeleteAlertContactGroupRequest::getContactGroupId() const {
|
||||
return contactGroupId_;
|
||||
}
|
||||
|
||||
std::string DeleteAlertContactGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void DeleteAlertContactGroupRequest::setContactGroupId(long contactGroupId) {
|
||||
contactGroupId_ = contactGroupId;
|
||||
setParameter(std::string("ContactGroupId"), std::to_string(contactGroupId));
|
||||
}
|
||||
|
||||
void DeleteAlertContactGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string DeleteAlertContactGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DeleteAlertContactGroupRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void DeleteAlertContactGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteAlertContactGroupRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string DeleteAlertContactGroupRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DeleteAlertContactGroupRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteAlertContactRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertContactRequest;
|
||||
|
||||
DeleteAlertContactRequest::DeleteAlertContactRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteAlertContact")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAlertContactRequest::~DeleteAlertContactRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAlertContactRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteAlertContactRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertContactRequest;
|
||||
|
||||
DeleteAlertContactRequest::DeleteAlertContactRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteAlertContact") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteAlertContactRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteAlertContactRequest::~DeleteAlertContactRequest() {}
|
||||
|
||||
std::string DeleteAlertContactRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
long DeleteAlertContactRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
void DeleteAlertContactRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteAlertContactRequest::setContactId(long contactId)
|
||||
{
|
||||
contactId_ = contactId;
|
||||
setParameter("ContactId", std::to_string(contactId));
|
||||
long DeleteAlertContactRequest::getContactId() const {
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
std::string DeleteAlertContactRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void DeleteAlertContactRequest::setContactId(long contactId) {
|
||||
contactId_ = contactId;
|
||||
setParameter(std::string("ContactId"), std::to_string(contactId));
|
||||
}
|
||||
|
||||
void DeleteAlertContactRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string DeleteAlertContactRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DeleteAlertContactRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetArmsConsoleUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetArmsConsoleUrlRequest;
|
||||
|
||||
GetArmsConsoleUrlRequest::GetArmsConsoleUrlRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetArmsConsoleUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetArmsConsoleUrlRequest::~GetArmsConsoleUrlRequest()
|
||||
{}
|
||||
|
||||
std::string GetArmsConsoleUrlRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertRuleRequest;
|
||||
|
||||
DeleteAlertRuleRequest::DeleteAlertRuleRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteAlertRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetArmsConsoleUrlRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteAlertRuleRequest::~DeleteAlertRuleRequest() {}
|
||||
|
||||
long DeleteAlertRuleRequest::getAlertId() const {
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void DeleteAlertRuleRequest::setAlertId(long alertId) {
|
||||
alertId_ = alertId;
|
||||
setParameter(std::string("AlertId"), std::to_string(alertId));
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/SendMseIncidentResult.h>
|
||||
#include <alibabacloud/arms/model/DeleteAlertRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SendMseIncidentResult::SendMseIncidentResult() :
|
||||
DeleteAlertRuleResult::DeleteAlertRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendMseIncidentResult::SendMseIncidentResult(const std::string &payload) :
|
||||
DeleteAlertRuleResult::DeleteAlertRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendMseIncidentResult::~SendMseIncidentResult()
|
||||
DeleteAlertRuleResult::~DeleteAlertRuleResult()
|
||||
{}
|
||||
|
||||
void SendMseIncidentResult::parse(const std::string &payload)
|
||||
void DeleteAlertRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool SendMseIncidentResult::getSuccess()const
|
||||
bool DeleteAlertRuleResult::getIsSuccess()const
|
||||
{
|
||||
return success_;
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteAlertRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertRulesRequest;
|
||||
|
||||
DeleteAlertRulesRequest::DeleteAlertRulesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteAlertRules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAlertRulesRequest::~DeleteAlertRulesRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAlertRulesRequest::getAlertIds()const
|
||||
{
|
||||
return alertIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteAlertRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertRulesRequest;
|
||||
|
||||
DeleteAlertRulesRequest::DeleteAlertRulesRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteAlertRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteAlertRulesRequest::setAlertIds(const std::string& alertIds)
|
||||
{
|
||||
alertIds_ = alertIds;
|
||||
setParameter("AlertIds", alertIds);
|
||||
DeleteAlertRulesRequest::~DeleteAlertRulesRequest() {}
|
||||
|
||||
std::string DeleteAlertRulesRequest::getAlertIds() const {
|
||||
return alertIds_;
|
||||
}
|
||||
|
||||
std::string DeleteAlertRulesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void DeleteAlertRulesRequest::setAlertIds(const std::string &alertIds) {
|
||||
alertIds_ = alertIds;
|
||||
setParameter(std::string("AlertIds"), alertIds);
|
||||
}
|
||||
|
||||
void DeleteAlertRulesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string DeleteAlertRulesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DeleteAlertRulesRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void DeleteAlertRulesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteAlertRulesRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string DeleteAlertRulesRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DeleteAlertRulesRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteAlertTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertTemplateRequest;
|
||||
|
||||
DeleteAlertTemplateRequest::DeleteAlertTemplateRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteAlertTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAlertTemplateRequest::~DeleteAlertTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAlertTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteAlertTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DeleteAlertTemplateRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteAlertTemplateRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DeleteAlertTemplateRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DeleteAlertTemplateRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
45
arms/src/model/DeleteCmsExporterRequest.cc
Normal file
45
arms/src/model/DeleteCmsExporterRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteCmsExporterRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteCmsExporterRequest;
|
||||
|
||||
DeleteCmsExporterRequest::DeleteCmsExporterRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteCmsExporter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteCmsExporterRequest::~DeleteCmsExporterRequest() {}
|
||||
|
||||
std::string DeleteCmsExporterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteCmsExporterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteCmsExporterRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteCmsExporterRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteCmsExporterResult.cc
Normal file
51
arms/src/model/DeleteCmsExporterResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteCmsExporterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteCmsExporterResult::DeleteCmsExporterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCmsExporterResult::DeleteCmsExporterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCmsExporterResult::~DeleteCmsExporterResult()
|
||||
{}
|
||||
|
||||
void DeleteCmsExporterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteCmsExporterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
36
arms/src/model/DeleteContactGroupRequest.cc
Normal file
36
arms/src/model/DeleteContactGroupRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteContactGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteContactGroupRequest;
|
||||
|
||||
DeleteContactGroupRequest::DeleteContactGroupRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteContactGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteContactGroupRequest::~DeleteContactGroupRequest() {}
|
||||
|
||||
long DeleteContactGroupRequest::getContactGroupId() const {
|
||||
return contactGroupId_;
|
||||
}
|
||||
|
||||
void DeleteContactGroupRequest::setContactGroupId(long contactGroupId) {
|
||||
contactGroupId_ = contactGroupId;
|
||||
setParameter(std::string("ContactGroupId"), std::to_string(contactGroupId));
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteContactGroupResult.cc
Normal file
51
arms/src/model/DeleteContactGroupResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteContactGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteContactGroupResult::DeleteContactGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteContactGroupResult::DeleteContactGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteContactGroupResult::~DeleteContactGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteContactGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteContactGroupResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeTraceLocationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribeTraceLocationRequest;
|
||||
|
||||
DescribeTraceLocationRequest::DescribeTraceLocationRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DescribeTraceLocation")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTraceLocationRequest::~DescribeTraceLocationRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTraceLocationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteContactRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteContactRequest;
|
||||
|
||||
DeleteContactRequest::DeleteContactRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteContact") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeTraceLocationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteContactRequest::~DeleteContactRequest() {}
|
||||
|
||||
long DeleteContactRequest::getContactId() const {
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
void DeleteContactRequest::setContactId(long contactId) {
|
||||
contactId_ = contactId;
|
||||
setParameter(std::string("ContactId"), std::to_string(contactId));
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/OpenArmsServiceResult.h>
|
||||
#include <alibabacloud/arms/model/DeleteContactResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
OpenArmsServiceResult::OpenArmsServiceResult() :
|
||||
DeleteContactResult::DeleteContactResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenArmsServiceResult::OpenArmsServiceResult(const std::string &payload) :
|
||||
DeleteContactResult::DeleteContactResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenArmsServiceResult::~OpenArmsServiceResult()
|
||||
DeleteContactResult::~DeleteContactResult()
|
||||
{}
|
||||
|
||||
void OpenArmsServiceResult::parse(const std::string &payload)
|
||||
void DeleteContactResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string OpenArmsServiceResult::getOrderId()const
|
||||
bool DeleteContactResult::getIsSuccess()const
|
||||
{
|
||||
return orderId_;
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteDispatchRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteDispatchRuleRequest;
|
||||
|
||||
DeleteDispatchRuleRequest::DeleteDispatchRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteDispatchRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDispatchRuleRequest::~DeleteDispatchRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDispatchRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteDispatchRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteDispatchRuleRequest;
|
||||
|
||||
DeleteDispatchRuleRequest::DeleteDispatchRuleRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteDispatchRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDispatchRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteDispatchRuleRequest::~DeleteDispatchRuleRequest() {}
|
||||
|
||||
std::string DeleteDispatchRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DeleteDispatchRuleRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
void DeleteDispatchRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteDispatchRuleRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
std::string DeleteDispatchRuleRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string DeleteDispatchRuleRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void DeleteDispatchRuleRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
void DeleteDispatchRuleRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string DeleteDispatchRuleRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DeleteDispatchRuleRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
|
||||
36
arms/src/model/DeleteEventBridgeIntegrationRequest.cc
Normal file
36
arms/src/model/DeleteEventBridgeIntegrationRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteEventBridgeIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteEventBridgeIntegrationRequest;
|
||||
|
||||
DeleteEventBridgeIntegrationRequest::DeleteEventBridgeIntegrationRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteEventBridgeIntegration") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEventBridgeIntegrationRequest::~DeleteEventBridgeIntegrationRequest() {}
|
||||
|
||||
long DeleteEventBridgeIntegrationRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteEventBridgeIntegrationRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CheckDataConsistencyResult.h>
|
||||
#include <alibabacloud/arms/model/DeleteEventBridgeIntegrationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CheckDataConsistencyResult::CheckDataConsistencyResult() :
|
||||
DeleteEventBridgeIntegrationResult::DeleteEventBridgeIntegrationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDataConsistencyResult::CheckDataConsistencyResult(const std::string &payload) :
|
||||
DeleteEventBridgeIntegrationResult::DeleteEventBridgeIntegrationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDataConsistencyResult::~CheckDataConsistencyResult()
|
||||
DeleteEventBridgeIntegrationResult::~DeleteEventBridgeIntegrationResult()
|
||||
{}
|
||||
|
||||
void CheckDataConsistencyResult::parse(const std::string &payload)
|
||||
void DeleteEventBridgeIntegrationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsDataConsistency"].isNull())
|
||||
isDataConsistency_ = value["IsDataConsistency"].asString() == "true";
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckDataConsistencyResult::getIsDataConsistency()const
|
||||
bool DeleteEventBridgeIntegrationResult::getIsSuccess()const
|
||||
{
|
||||
return isDataConsistency_;
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteGrafanaResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteGrafanaResourceRequest;
|
||||
|
||||
DeleteGrafanaResourceRequest::DeleteGrafanaResourceRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteGrafanaResource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGrafanaResourceRequest::~DeleteGrafanaResourceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteGrafanaResourceRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteGrafanaResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteGrafanaResourceRequest;
|
||||
|
||||
DeleteGrafanaResourceRequest::DeleteGrafanaResourceRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteGrafanaResource") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteGrafanaResourceRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setBodyParameter("ClusterName", clusterName);
|
||||
DeleteGrafanaResourceRequest::~DeleteGrafanaResourceRequest() {}
|
||||
|
||||
std::string DeleteGrafanaResourceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaResourceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
void DeleteGrafanaResourceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteGrafanaResourceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter("ClusterId", clusterId);
|
||||
std::string DeleteGrafanaResourceRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaResourceRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void DeleteGrafanaResourceRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setBodyParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
void DeleteGrafanaResourceRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
std::string DeleteGrafanaResourceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteGrafanaResourceRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ListPromClustersRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListPromClustersRequest;
|
||||
|
||||
ListPromClustersRequest::ListPromClustersRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListPromClusters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPromClustersRequest::~ListPromClustersRequest()
|
||||
{}
|
||||
|
||||
std::string ListPromClustersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteIMRobotRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteIMRobotRequest;
|
||||
|
||||
DeleteIMRobotRequest::DeleteIMRobotRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteIMRobot") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListPromClustersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteIMRobotRequest::~DeleteIMRobotRequest() {}
|
||||
|
||||
long DeleteIMRobotRequest::getRobotId() const {
|
||||
return robotId_;
|
||||
}
|
||||
|
||||
void DeleteIMRobotRequest::setRobotId(long robotId) {
|
||||
robotId_ = robotId;
|
||||
setParameter(std::string("RobotId"), std::to_string(robotId));
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteIMRobotResult.cc
Normal file
51
arms/src/model/DeleteIMRobotResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteIMRobotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteIMRobotResult::DeleteIMRobotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIMRobotResult::DeleteIMRobotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIMRobotResult::~DeleteIMRobotResult()
|
||||
{}
|
||||
|
||||
void DeleteIMRobotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteIMRobotResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
54
arms/src/model/DeleteIntegrationRequest.cc
Normal file
54
arms/src/model/DeleteIntegrationRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteIntegrationRequest;
|
||||
|
||||
DeleteIntegrationRequest::DeleteIntegrationRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteIntegration") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteIntegrationRequest::~DeleteIntegrationRequest() {}
|
||||
|
||||
std::string DeleteIntegrationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteIntegrationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteIntegrationRequest::getIntegration() const {
|
||||
return integration_;
|
||||
}
|
||||
|
||||
void DeleteIntegrationRequest::setIntegration(const std::string &integration) {
|
||||
integration_ = integration;
|
||||
setParameter(std::string("Integration"), integration);
|
||||
}
|
||||
|
||||
std::string DeleteIntegrationRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteIntegrationRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteIntegrationResult.cc
Normal file
51
arms/src/model/DeleteIntegrationResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteIntegrationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteIntegrationResult::DeleteIntegrationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIntegrationResult::DeleteIntegrationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIntegrationResult::~DeleteIntegrationResult()
|
||||
{}
|
||||
|
||||
void DeleteIntegrationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteIntegrationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
36
arms/src/model/DeleteIntegrationsRequest.cc
Normal file
36
arms/src/model/DeleteIntegrationsRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteIntegrationsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteIntegrationsRequest;
|
||||
|
||||
DeleteIntegrationsRequest::DeleteIntegrationsRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteIntegrations") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteIntegrationsRequest::~DeleteIntegrationsRequest() {}
|
||||
|
||||
long DeleteIntegrationsRequest::getIntegrationId() const {
|
||||
return integrationId_;
|
||||
}
|
||||
|
||||
void DeleteIntegrationsRequest::setIntegrationId(long integrationId) {
|
||||
integrationId_ = integrationId;
|
||||
setParameter(std::string("IntegrationId"), std::to_string(integrationId));
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteIntegrationsResult.cc
Normal file
51
arms/src/model/DeleteIntegrationsResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteIntegrationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteIntegrationsResult::DeleteIntegrationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIntegrationsResult::DeleteIntegrationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIntegrationsResult::~DeleteIntegrationsResult()
|
||||
{}
|
||||
|
||||
void DeleteIntegrationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteIntegrationsResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
36
arms/src/model/DeleteNotificationPolicyRequest.cc
Normal file
36
arms/src/model/DeleteNotificationPolicyRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteNotificationPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteNotificationPolicyRequest;
|
||||
|
||||
DeleteNotificationPolicyRequest::DeleteNotificationPolicyRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteNotificationPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNotificationPolicyRequest::~DeleteNotificationPolicyRequest() {}
|
||||
|
||||
long DeleteNotificationPolicyRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteNotificationPolicyRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteNotificationPolicyResult.cc
Normal file
51
arms/src/model/DeleteNotificationPolicyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteNotificationPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteNotificationPolicyResult::DeleteNotificationPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNotificationPolicyResult::DeleteNotificationPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNotificationPolicyResult::~DeleteNotificationPolicyResult()
|
||||
{}
|
||||
|
||||
void DeleteNotificationPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteNotificationPolicyResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeletePrometheusAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeletePrometheusAlertRuleRequest;
|
||||
|
||||
DeletePrometheusAlertRuleRequest::DeletePrometheusAlertRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeletePrometheusAlertRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrometheusAlertRuleRequest::~DeletePrometheusAlertRuleRequest()
|
||||
{}
|
||||
|
||||
long DeletePrometheusAlertRuleRequest::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeletePrometheusAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeletePrometheusAlertRuleRequest;
|
||||
|
||||
DeletePrometheusAlertRuleRequest::DeletePrometheusAlertRuleRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeletePrometheusAlertRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeletePrometheusAlertRuleRequest::setAlertId(long alertId)
|
||||
{
|
||||
alertId_ = alertId;
|
||||
setParameter("AlertId", std::to_string(alertId));
|
||||
DeletePrometheusAlertRuleRequest::~DeletePrometheusAlertRuleRequest() {}
|
||||
|
||||
long DeletePrometheusAlertRuleRequest::getAlertId() const {
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusAlertRuleRequest::setAlertId(long alertId) {
|
||||
alertId_ = alertId;
|
||||
setParameter(std::string("AlertId"), std::to_string(alertId));
|
||||
}
|
||||
|
||||
|
||||
45
arms/src/model/DeletePrometheusGlobalViewRequest.cc
Normal file
45
arms/src/model/DeletePrometheusGlobalViewRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeletePrometheusGlobalViewRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeletePrometheusGlobalViewRequest;
|
||||
|
||||
DeletePrometheusGlobalViewRequest::DeletePrometheusGlobalViewRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeletePrometheusGlobalView") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrometheusGlobalViewRequest::~DeletePrometheusGlobalViewRequest() {}
|
||||
|
||||
std::string DeletePrometheusGlobalViewRequest::getGlobalViewClusterId() const {
|
||||
return globalViewClusterId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusGlobalViewRequest::setGlobalViewClusterId(const std::string &globalViewClusterId) {
|
||||
globalViewClusterId_ = globalViewClusterId;
|
||||
setParameter(std::string("GlobalViewClusterId"), globalViewClusterId);
|
||||
}
|
||||
|
||||
std::string DeletePrometheusGlobalViewRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusGlobalViewRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
51
arms/src/model/DeletePrometheusGlobalViewResult.cc
Normal file
51
arms/src/model/DeletePrometheusGlobalViewResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeletePrometheusGlobalViewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeletePrometheusGlobalViewResult::DeletePrometheusGlobalViewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePrometheusGlobalViewResult::DeletePrometheusGlobalViewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePrometheusGlobalViewResult::~DeletePrometheusGlobalViewResult()
|
||||
{}
|
||||
|
||||
void DeletePrometheusGlobalViewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeletePrometheusGlobalViewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRetcodeAppRequest::~DeleteRetcodeAppRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRetcodeAppRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteRetcodeAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteRetcodeAppRequest;
|
||||
|
||||
DeleteRetcodeAppRequest::DeleteRetcodeAppRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteRetcodeApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteRetcodeAppRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteRetcodeAppRequest::~DeleteRetcodeAppRequest() {}
|
||||
|
||||
std::string DeleteRetcodeAppRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DeleteRetcodeAppRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void DeleteRetcodeAppRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteRetcodeAppRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string DeleteRetcodeAppRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteRetcodeAppRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteScenarioRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteScenarioRequest;
|
||||
|
||||
DeleteScenarioRequest::DeleteScenarioRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteScenario")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteScenarioRequest::~DeleteScenarioRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteScenarioRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteScenarioRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteScenarioRequest;
|
||||
|
||||
DeleteScenarioRequest::DeleteScenarioRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteScenario") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteScenarioRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteScenarioRequest::~DeleteScenarioRequest() {}
|
||||
|
||||
std::string DeleteScenarioRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
long DeleteScenarioRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
void DeleteScenarioRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteScenarioRequest::setScenarioId(long scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", std::to_string(scenarioId));
|
||||
long DeleteScenarioRequest::getScenarioId() const {
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void DeleteScenarioRequest::setScenarioId(long scenarioId) {
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter(std::string("ScenarioId"), std::to_string(scenarioId));
|
||||
}
|
||||
|
||||
|
||||
36
arms/src/model/DeleteSilencePolicyRequest.cc
Normal file
36
arms/src/model/DeleteSilencePolicyRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteSilencePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteSilencePolicyRequest;
|
||||
|
||||
DeleteSilencePolicyRequest::DeleteSilencePolicyRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteSilencePolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSilencePolicyRequest::~DeleteSilencePolicyRequest() {}
|
||||
|
||||
long DeleteSilencePolicyRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteSilencePolicyRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/EnableAlertTemplateResult.h>
|
||||
#include <alibabacloud/arms/model/DeleteSilencePolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
EnableAlertTemplateResult::EnableAlertTemplateResult() :
|
||||
DeleteSilencePolicyResult::DeleteSilencePolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableAlertTemplateResult::EnableAlertTemplateResult(const std::string &payload) :
|
||||
DeleteSilencePolicyResult::DeleteSilencePolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableAlertTemplateResult::~EnableAlertTemplateResult()
|
||||
DeleteSilencePolicyResult::~DeleteSilencePolicyResult()
|
||||
{}
|
||||
|
||||
void EnableAlertTemplateResult::parse(const std::string &payload)
|
||||
void DeleteSilencePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool EnableAlertTemplateResult::getSuccess()const
|
||||
bool DeleteSilencePolicyResult::getIsSuccess()const
|
||||
{
|
||||
return success_;
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
56
arms/src/model/DeleteSourceMapRequest.cc
Normal file
56
arms/src/model/DeleteSourceMapRequest.cc
Normal file
@@ -0,0 +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/DeleteSourceMapRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteSourceMapRequest;
|
||||
|
||||
DeleteSourceMapRequest::DeleteSourceMapRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteSourceMap") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSourceMapRequest::~DeleteSourceMapRequest() {}
|
||||
|
||||
std::vector<DeleteSourceMapRequest::std::string> DeleteSourceMapRequest::getFidList() const {
|
||||
return fidList_;
|
||||
}
|
||||
|
||||
void DeleteSourceMapRequest::setFidList(const std::vector<DeleteSourceMapRequest::std::string> &fidList) {
|
||||
fidList_ = fidList;
|
||||
for(int dep1 = 0; dep1 != fidList.size(); dep1++) {
|
||||
setParameter(std::string("FidList") + "." + std::to_string(dep1 + 1), fidList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteSourceMapRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteSourceMapRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteSourceMapRequest::getPid() const {
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void DeleteSourceMapRequest::setPid(const std::string &pid) {
|
||||
pid_ = pid;
|
||||
setParameter(std::string("Pid"), pid);
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteSourceMapResult.cc
Normal file
51
arms/src/model/DeleteSourceMapResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteSourceMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteSourceMapResult::DeleteSourceMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSourceMapResult::DeleteSourceMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSourceMapResult::~DeleteSourceMapResult()
|
||||
{}
|
||||
|
||||
void DeleteSourceMapResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSourceMapResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
44
arms/src/model/DeleteSyntheticTaskRequest.cc
Normal file
44
arms/src/model/DeleteSyntheticTaskRequest.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteSyntheticTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteSyntheticTaskRequest;
|
||||
|
||||
DeleteSyntheticTaskRequest::DeleteSyntheticTaskRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteSyntheticTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSyntheticTaskRequest::~DeleteSyntheticTaskRequest() {}
|
||||
|
||||
std::string DeleteSyntheticTaskRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteSyntheticTaskRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteSyntheticTaskRequest::getTaskIds() const {
|
||||
return taskIds_;
|
||||
}
|
||||
|
||||
void DeleteSyntheticTaskRequest::setTaskIds(const std::vector<std::string> &taskIds) {
|
||||
taskIds_ = taskIds;
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteAlertTemplateResult.h>
|
||||
#include <alibabacloud/arms/model/DeleteSyntheticTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteAlertTemplateResult::DeleteAlertTemplateResult() :
|
||||
DeleteSyntheticTaskResult::DeleteSyntheticTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAlertTemplateResult::DeleteAlertTemplateResult(const std::string &payload) :
|
||||
DeleteSyntheticTaskResult::DeleteSyntheticTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAlertTemplateResult::~DeleteAlertTemplateResult()
|
||||
DeleteSyntheticTaskResult::~DeleteSyntheticTaskResult()
|
||||
{}
|
||||
|
||||
void DeleteAlertTemplateResult::parse(const std::string &payload)
|
||||
void DeleteSyntheticTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
}
|
||||
|
||||
bool DeleteAlertTemplateResult::getSuccess()const
|
||||
std::string DeleteSyntheticTaskResult::getResult()const
|
||||
{
|
||||
return success_;
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteTraceAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteTraceAppRequest;
|
||||
|
||||
DeleteTraceAppRequest::DeleteTraceAppRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteTraceApp")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTraceAppRequest::~DeleteTraceAppRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTraceAppRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DeleteTraceAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteTraceAppRequest;
|
||||
|
||||
DeleteTraceAppRequest::DeleteTraceAppRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteTraceApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteTraceAppRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteTraceAppRequest::~DeleteTraceAppRequest() {}
|
||||
|
||||
std::string DeleteTraceAppRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DeleteTraceAppRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void DeleteTraceAppRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteTraceAppRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string DeleteTraceAppRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string DeleteTraceAppRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
void DeleteTraceAppRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void DeleteTraceAppRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
std::string DeleteTraceAppRequest::getPid() const {
|
||||
return pid_;
|
||||
}
|
||||
|
||||
std::string DeleteTraceAppRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void DeleteTraceAppRequest::setPid(const std::string &pid) {
|
||||
pid_ = pid;
|
||||
setParameter(std::string("Pid"), pid);
|
||||
}
|
||||
|
||||
void DeleteTraceAppRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
std::string DeleteTraceAppRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeleteTraceAppRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
|
||||
36
arms/src/model/DeleteWebhookContactRequest.cc
Normal file
36
arms/src/model/DeleteWebhookContactRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteWebhookContactRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteWebhookContactRequest;
|
||||
|
||||
DeleteWebhookContactRequest::DeleteWebhookContactRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteWebhookContact") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteWebhookContactRequest::~DeleteWebhookContactRequest() {}
|
||||
|
||||
long DeleteWebhookContactRequest::getWebhookId() const {
|
||||
return webhookId_;
|
||||
}
|
||||
|
||||
void DeleteWebhookContactRequest::setWebhookId(long webhookId) {
|
||||
webhookId_ = webhookId;
|
||||
setParameter(std::string("WebhookId"), std::to_string(webhookId));
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DisableAlertTemplateResult.h>
|
||||
#include <alibabacloud/arms/model/DeleteWebhookContactResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DisableAlertTemplateResult::DisableAlertTemplateResult() :
|
||||
DeleteWebhookContactResult::DeleteWebhookContactResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableAlertTemplateResult::DisableAlertTemplateResult(const std::string &payload) :
|
||||
DeleteWebhookContactResult::DeleteWebhookContactResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableAlertTemplateResult::~DisableAlertTemplateResult()
|
||||
DeleteWebhookContactResult::~DeleteWebhookContactResult()
|
||||
{}
|
||||
|
||||
void DisableAlertTemplateResult::parse(const std::string &payload)
|
||||
void DeleteWebhookContactResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DisableAlertTemplateResult::getSuccess()const
|
||||
bool DeleteWebhookContactResult::getIsSuccess()const
|
||||
{
|
||||
return success_;
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
63
arms/src/model/DescribeContactGroupsRequest.cc
Normal file
63
arms/src/model/DescribeContactGroupsRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribeContactGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribeContactGroupsRequest;
|
||||
|
||||
DescribeContactGroupsRequest::DescribeContactGroupsRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DescribeContactGroups") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeContactGroupsRequest::~DescribeContactGroupsRequest() {}
|
||||
|
||||
long DescribeContactGroupsRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void DescribeContactGroupsRequest::setSize(long size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
bool DescribeContactGroupsRequest::getIsDetail() const {
|
||||
return isDetail_;
|
||||
}
|
||||
|
||||
void DescribeContactGroupsRequest::setIsDetail(bool isDetail) {
|
||||
isDetail_ = isDetail;
|
||||
setParameter(std::string("IsDetail"), isDetail ? "true" : "false");
|
||||
}
|
||||
|
||||
long DescribeContactGroupsRequest::getPage() const {
|
||||
return page_;
|
||||
}
|
||||
|
||||
void DescribeContactGroupsRequest::setPage(long page) {
|
||||
page_ = page;
|
||||
setParameter(std::string("Page"), std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeContactGroupsRequest::getContactGroupName() const {
|
||||
return contactGroupName_;
|
||||
}
|
||||
|
||||
void DescribeContactGroupsRequest::setContactGroupName(const std::string &contactGroupName) {
|
||||
contactGroupName_ = contactGroupName;
|
||||
setParameter(std::string("ContactGroupName"), contactGroupName);
|
||||
}
|
||||
|
||||
80
arms/src/model/DescribeContactGroupsResult.cc
Normal file
80
arms/src/model/DescribeContactGroupsResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribeContactGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DescribeContactGroupsResult::DescribeContactGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeContactGroupsResult::DescribeContactGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeContactGroupsResult::~DescribeContactGroupsResult()
|
||||
{}
|
||||
|
||||
void DescribeContactGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto pageBeanNode = value["PageBean"];
|
||||
if(!pageBeanNode["Total"].isNull())
|
||||
pageBean_.total = std::stol(pageBeanNode["Total"].asString());
|
||||
if(!pageBeanNode["Page"].isNull())
|
||||
pageBean_.page = std::stol(pageBeanNode["Page"].asString());
|
||||
if(!pageBeanNode["Size"].isNull())
|
||||
pageBean_.size = std::stol(pageBeanNode["Size"].asString());
|
||||
auto allAlertContactGroupsNode = pageBeanNode["AlertContactGroups"]["contactGroups"];
|
||||
for (auto pageBeanNodeAlertContactGroupscontactGroups : allAlertContactGroupsNode)
|
||||
{
|
||||
PageBean::ContactGroups contactGroupsObject;
|
||||
if(!pageBeanNodeAlertContactGroupscontactGroups["ContactGroupId"].isNull())
|
||||
contactGroupsObject.contactGroupId = std::stof(pageBeanNodeAlertContactGroupscontactGroups["ContactGroupId"].asString());
|
||||
if(!pageBeanNodeAlertContactGroupscontactGroups["ContactGroupName"].isNull())
|
||||
contactGroupsObject.contactGroupName = pageBeanNodeAlertContactGroupscontactGroups["ContactGroupName"].asString();
|
||||
auto allContactsNode = pageBeanNodeAlertContactGroupscontactGroups["Contacts"]["contactsItem"];
|
||||
for (auto pageBeanNodeAlertContactGroupscontactGroupsContactscontactsItem : allContactsNode)
|
||||
{
|
||||
PageBean::ContactGroups::ContactsItem contactsObject;
|
||||
if(!pageBeanNodeAlertContactGroupscontactGroupsContactscontactsItem["ContactId"].isNull())
|
||||
contactsObject.contactId = std::stof(pageBeanNodeAlertContactGroupscontactGroupsContactscontactsItem["ContactId"].asString());
|
||||
if(!pageBeanNodeAlertContactGroupscontactGroupsContactscontactsItem["ContactName"].isNull())
|
||||
contactsObject.contactName = pageBeanNodeAlertContactGroupscontactGroupsContactscontactsItem["ContactName"].asString();
|
||||
if(!pageBeanNodeAlertContactGroupscontactGroupsContactscontactsItem["Phone"].isNull())
|
||||
contactsObject.phone = pageBeanNodeAlertContactGroupscontactGroupsContactscontactsItem["Phone"].asString();
|
||||
if(!pageBeanNodeAlertContactGroupscontactGroupsContactscontactsItem["Email"].isNull())
|
||||
contactsObject.email = pageBeanNodeAlertContactGroupscontactGroupsContactscontactsItem["Email"].asString();
|
||||
contactGroupsObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
pageBean_.alertContactGroups.push_back(contactGroupsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeContactGroupsResult::PageBean DescribeContactGroupsResult::getPageBean()const
|
||||
{
|
||||
return pageBean_;
|
||||
}
|
||||
|
||||
72
arms/src/model/DescribeContactsRequest.cc
Normal file
72
arms/src/model/DescribeContactsRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribeContactsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribeContactsRequest;
|
||||
|
||||
DescribeContactsRequest::DescribeContactsRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DescribeContacts") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeContactsRequest::~DescribeContactsRequest() {}
|
||||
|
||||
std::string DescribeContactsRequest::getContactName() const {
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
void DescribeContactsRequest::setContactName(const std::string &contactName) {
|
||||
contactName_ = contactName;
|
||||
setParameter(std::string("ContactName"), contactName);
|
||||
}
|
||||
|
||||
long DescribeContactsRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void DescribeContactsRequest::setSize(long size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
std::string DescribeContactsRequest::getPhone() const {
|
||||
return phone_;
|
||||
}
|
||||
|
||||
void DescribeContactsRequest::setPhone(const std::string &phone) {
|
||||
phone_ = phone;
|
||||
setParameter(std::string("Phone"), phone);
|
||||
}
|
||||
|
||||
long DescribeContactsRequest::getPage() const {
|
||||
return page_;
|
||||
}
|
||||
|
||||
void DescribeContactsRequest::setPage(long page) {
|
||||
page_ = page;
|
||||
setParameter(std::string("Page"), std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeContactsRequest::getEmail() const {
|
||||
return email_;
|
||||
}
|
||||
|
||||
void DescribeContactsRequest::setEmail(const std::string &email) {
|
||||
email_ = email;
|
||||
setParameter(std::string("Email"), email);
|
||||
}
|
||||
|
||||
74
arms/src/model/DescribeContactsResult.cc
Normal file
74
arms/src/model/DescribeContactsResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeContactsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DescribeContactsResult::DescribeContactsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeContactsResult::DescribeContactsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeContactsResult::~DescribeContactsResult()
|
||||
{}
|
||||
|
||||
void DescribeContactsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto pageBeanNode = value["PageBean"];
|
||||
if(!pageBeanNode["Total"].isNull())
|
||||
pageBean_.total = std::stol(pageBeanNode["Total"].asString());
|
||||
if(!pageBeanNode["Page"].isNull())
|
||||
pageBean_.page = std::stol(pageBeanNode["Page"].asString());
|
||||
if(!pageBeanNode["Size"].isNull())
|
||||
pageBean_.size = std::stol(pageBeanNode["Size"].asString());
|
||||
auto allAlertContactsNode = pageBeanNode["AlertContacts"]["contacts"];
|
||||
for (auto pageBeanNodeAlertContactscontacts : allAlertContactsNode)
|
||||
{
|
||||
PageBean::Contacts contactsObject;
|
||||
if(!pageBeanNodeAlertContactscontacts["ContactId"].isNull())
|
||||
contactsObject.contactId = std::stof(pageBeanNodeAlertContactscontacts["ContactId"].asString());
|
||||
if(!pageBeanNodeAlertContactscontacts["ContactName"].isNull())
|
||||
contactsObject.contactName = pageBeanNodeAlertContactscontacts["ContactName"].asString();
|
||||
if(!pageBeanNodeAlertContactscontacts["Phone"].isNull())
|
||||
contactsObject.phone = pageBeanNodeAlertContactscontacts["Phone"].asString();
|
||||
if(!pageBeanNodeAlertContactscontacts["Email"].isNull())
|
||||
contactsObject.email = pageBeanNodeAlertContactscontacts["Email"].asString();
|
||||
if(!pageBeanNodeAlertContactscontacts["IsVerify"].isNull())
|
||||
contactsObject.isVerify = pageBeanNodeAlertContactscontacts["IsVerify"].asString() == "true";
|
||||
if(!pageBeanNodeAlertContactscontacts["ReissueSendNotice"].isNull())
|
||||
contactsObject.reissueSendNotice = std::stol(pageBeanNodeAlertContactscontacts["ReissueSendNotice"].asString());
|
||||
pageBean_.alertContacts.push_back(contactsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeContactsResult::PageBean DescribeContactsResult::getPageBean()const
|
||||
{
|
||||
return pageBean_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeDispatchRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribeDispatchRuleRequest;
|
||||
|
||||
DescribeDispatchRuleRequest::DescribeDispatchRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DescribeDispatchRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDispatchRuleRequest::~DescribeDispatchRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDispatchRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/DescribeDispatchRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribeDispatchRuleRequest;
|
||||
|
||||
DescribeDispatchRuleRequest::DescribeDispatchRuleRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DescribeDispatchRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeDispatchRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DescribeDispatchRuleRequest::~DescribeDispatchRuleRequest() {}
|
||||
|
||||
std::string DescribeDispatchRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeDispatchRuleRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
void DescribeDispatchRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DescribeDispatchRuleRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
std::string DescribeDispatchRuleRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string DescribeDispatchRuleRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
void DescribeDispatchRuleRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
void DescribeDispatchRuleRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
std::string DescribeDispatchRuleRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DescribeDispatchRuleRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void DescribeDispatchRuleResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dispatchRuleNode = value["DispatchRule"];
|
||||
if(!dispatchRuleNode["RuleId"].isNull())
|
||||
dispatchRule_.ruleId = std::stol(dispatchRuleNode["RuleId"].asString());
|
||||
if(!dispatchRuleNode["Name"].isNull())
|
||||
dispatchRule_.name = dispatchRuleNode["Name"].asString();
|
||||
if(!dispatchRuleNode["State"].isNull())
|
||||
dispatchRule_.state = dispatchRuleNode["State"].asString();
|
||||
if(!dispatchRuleNode["DispatchType"].isNull())
|
||||
dispatchRule_.dispatchType = dispatchRuleNode["DispatchType"].asString();
|
||||
if(!dispatchRuleNode["IsRecover"].isNull())
|
||||
dispatchRule_.isRecover = dispatchRuleNode["IsRecover"].asString() == "true";
|
||||
if(!dispatchRuleNode["DispatchType"].isNull())
|
||||
dispatchRule_.dispatchType = dispatchRuleNode["DispatchType"].asString();
|
||||
if(!dispatchRuleNode["State"].isNull())
|
||||
dispatchRule_.state = dispatchRuleNode["State"].asString();
|
||||
if(!dispatchRuleNode["RuleId"].isNull())
|
||||
dispatchRule_.ruleId = std::stol(dispatchRuleNode["RuleId"].asString());
|
||||
auto allGroupRulesNode = dispatchRuleNode["GroupRules"]["GroupRule"];
|
||||
for (auto dispatchRuleNodeGroupRulesGroupRule : allGroupRulesNode)
|
||||
{
|
||||
DispatchRule::GroupRule groupRuleObject;
|
||||
if(!dispatchRuleNodeGroupRulesGroupRule["RepeatInterval"].isNull())
|
||||
groupRuleObject.repeatInterval = std::stol(dispatchRuleNodeGroupRulesGroupRule["RepeatInterval"].asString());
|
||||
if(!dispatchRuleNodeGroupRulesGroupRule["GroupId"].isNull())
|
||||
groupRuleObject.groupId = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupId"].asString());
|
||||
if(!dispatchRuleNodeGroupRulesGroupRule["GroupWaitTime"].isNull())
|
||||
groupRuleObject.groupWaitTime = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupWaitTime"].asString());
|
||||
if(!dispatchRuleNodeGroupRulesGroupRule["GroupInterval"].isNull())
|
||||
groupRuleObject.groupInterval = std::stol(dispatchRuleNodeGroupRulesGroupRule["GroupInterval"].asString());
|
||||
if(!dispatchRuleNodeGroupRulesGroupRule["RepeatInterval"].isNull())
|
||||
groupRuleObject.repeatInterval = std::stol(dispatchRuleNodeGroupRulesGroupRule["RepeatInterval"].asString());
|
||||
auto allGroupingFields = value["GroupingFields"]["GroupingField"];
|
||||
for (auto value : allGroupingFields)
|
||||
groupRuleObject.groupingFields.push_back(value.asString());
|
||||
@@ -75,12 +75,12 @@ void DescribeDispatchRuleResult::parse(const std::string &payload)
|
||||
for (auto dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject : allNotifyObjectsNode)
|
||||
{
|
||||
DispatchRule::NotifyRule::NotifyObject notifyObjectsObject;
|
||||
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyObjectId"].isNull())
|
||||
notifyObjectsObject.notifyObjectId = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyObjectId"].asString();
|
||||
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyType"].isNull())
|
||||
notifyObjectsObject.notifyType = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyType"].asString();
|
||||
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["Name"].isNull())
|
||||
notifyObjectsObject.name = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["Name"].asString();
|
||||
if(!dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyObjectId"].isNull())
|
||||
notifyObjectsObject.notifyObjectId = dispatchRuleNodeNotifyRulesNotifyRuleNotifyObjectsNotifyObject["NotifyObjectId"].asString();
|
||||
notifyRuleObject.notifyObjects.push_back(notifyObjectsObject);
|
||||
}
|
||||
auto allNotifyChannels = value["NotifyChannels"]["NotifyChannel"];
|
||||
|
||||
54
arms/src/model/DescribeIMRobotsRequest.cc
Normal file
54
arms/src/model/DescribeIMRobotsRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeIMRobotsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribeIMRobotsRequest;
|
||||
|
||||
DescribeIMRobotsRequest::DescribeIMRobotsRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DescribeIMRobots") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeIMRobotsRequest::~DescribeIMRobotsRequest() {}
|
||||
|
||||
long DescribeIMRobotsRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void DescribeIMRobotsRequest::setSize(long size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
std::string DescribeIMRobotsRequest::getRobotName() const {
|
||||
return robotName_;
|
||||
}
|
||||
|
||||
void DescribeIMRobotsRequest::setRobotName(const std::string &robotName) {
|
||||
robotName_ = robotName;
|
||||
setParameter(std::string("RobotName"), robotName);
|
||||
}
|
||||
|
||||
long DescribeIMRobotsRequest::getPage() const {
|
||||
return page_;
|
||||
}
|
||||
|
||||
void DescribeIMRobotsRequest::setPage(long page) {
|
||||
page_ = page;
|
||||
setParameter(std::string("Page"), std::to_string(page));
|
||||
}
|
||||
|
||||
74
arms/src/model/DescribeIMRobotsResult.cc
Normal file
74
arms/src/model/DescribeIMRobotsResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeIMRobotsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DescribeIMRobotsResult::DescribeIMRobotsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIMRobotsResult::DescribeIMRobotsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIMRobotsResult::~DescribeIMRobotsResult()
|
||||
{}
|
||||
|
||||
void DescribeIMRobotsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto pageBeanNode = value["PageBean"];
|
||||
if(!pageBeanNode["Total"].isNull())
|
||||
pageBean_.total = std::stol(pageBeanNode["Total"].asString());
|
||||
if(!pageBeanNode["Page"].isNull())
|
||||
pageBean_.page = std::stol(pageBeanNode["Page"].asString());
|
||||
if(!pageBeanNode["Size"].isNull())
|
||||
pageBean_.size = std::stol(pageBeanNode["Size"].asString());
|
||||
auto allAlertIMRobotsNode = pageBeanNode["AlertIMRobots"]["IMRobots"];
|
||||
for (auto pageBeanNodeAlertIMRobotsIMRobots : allAlertIMRobotsNode)
|
||||
{
|
||||
PageBean::IMRobots iMRobotsObject;
|
||||
if(!pageBeanNodeAlertIMRobotsIMRobots["RobotId"].isNull())
|
||||
iMRobotsObject.robotId = std::stof(pageBeanNodeAlertIMRobotsIMRobots["RobotId"].asString());
|
||||
if(!pageBeanNodeAlertIMRobotsIMRobots["Type"].isNull())
|
||||
iMRobotsObject.type = pageBeanNodeAlertIMRobotsIMRobots["Type"].asString();
|
||||
if(!pageBeanNodeAlertIMRobotsIMRobots["RobotName"].isNull())
|
||||
iMRobotsObject.robotName = pageBeanNodeAlertIMRobotsIMRobots["RobotName"].asString();
|
||||
if(!pageBeanNodeAlertIMRobotsIMRobots["RobotAddr"].isNull())
|
||||
iMRobotsObject.robotAddr = pageBeanNodeAlertIMRobotsIMRobots["RobotAddr"].asString();
|
||||
if(!pageBeanNodeAlertIMRobotsIMRobots["DailyNoc"].isNull())
|
||||
iMRobotsObject.dailyNoc = pageBeanNodeAlertIMRobotsIMRobots["DailyNoc"].asString() == "true";
|
||||
if(!pageBeanNodeAlertIMRobotsIMRobots["DailyNocTime"].isNull())
|
||||
iMRobotsObject.dailyNocTime = pageBeanNodeAlertIMRobotsIMRobots["DailyNocTime"].asString();
|
||||
pageBean_.alertIMRobots.push_back(iMRobotsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeIMRobotsResult::PageBean DescribeIMRobotsResult::getPageBean()const
|
||||
{
|
||||
return pageBean_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user