Offline remote write related APIs.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -46,11 +46,25 @@ void AddAliClusterIdsToPrometheusGlobalViewResult::parse(const std::string &payl
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!dataNode["Info"].isNull())
|
||||
data_.info = dataNode["Info"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddAliClusterIdsToPrometheusGlobalViewResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddAliClusterIdsToPrometheusGlobalViewResult::Data AddAliClusterIdsToPrometheusGlobalViewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddAliClusterIdsToPrometheusGlobalViewResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,11 +41,25 @@ void AddIntegrationResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddIntegrationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddIntegrationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddIntegrationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,11 +46,25 @@ void AddPrometheusGlobalViewByAliClusterIdsResult::parse(const std::string &payl
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!dataNode["Info"].isNull())
|
||||
data_.info = dataNode["Info"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddPrometheusGlobalViewByAliClusterIdsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddPrometheusGlobalViewByAliClusterIdsResult::Data AddPrometheusGlobalViewByAliClusterIdsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddPrometheusGlobalViewByAliClusterIdsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ AddPrometheusGlobalViewRequest::AddPrometheusGlobalViewRequest()
|
||||
|
||||
AddPrometheusGlobalViewRequest::~AddPrometheusGlobalViewRequest() {}
|
||||
|
||||
std::string AddPrometheusGlobalViewRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void AddPrometheusGlobalViewRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AddPrometheusGlobalViewRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,20 @@ void AddPrometheusGlobalViewRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<AddPrometheusGlobalViewRequest::Tag> AddPrometheusGlobalViewRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void AddPrometheusGlobalViewRequest::setTag(const std::vector<AddPrometheusGlobalViewRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddPrometheusGlobalViewRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
@@ -44,13 +44,32 @@ void AddPrometheusGlobalViewResult::parse(const std::string &payload)
|
||||
data_.success = dataNode["Success"].asString() == "true";
|
||||
if(!dataNode["Msg"].isNull())
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!dataNode["Info"].isNull())
|
||||
data_.info = dataNode["Info"].asString();
|
||||
auto infoNode = dataNode["Info"];
|
||||
if(!infoNode["RegionId"].isNull())
|
||||
data_.info.regionId = infoNode["RegionId"].asString();
|
||||
if(!infoNode["GlobalViewClusterId"].isNull())
|
||||
data_.info.globalViewClusterId = infoNode["GlobalViewClusterId"].asString();
|
||||
if(!infoNode["FailedInstances"].isNull())
|
||||
data_.info.failedInstances = infoNode["FailedInstances"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddPrometheusGlobalViewResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddPrometheusGlobalViewResult::Data AddPrometheusGlobalViewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddPrometheusGlobalViewResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,11 +41,32 @@ void AddPrometheusInstanceResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AddPrometheusInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddPrometheusInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddPrometheusInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddPrometheusInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
63
arms/src/model/AddPrometheusIntegrationRequest.cc
Normal file
63
arms/src/model/AddPrometheusIntegrationRequest.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/AddPrometheusIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddPrometheusIntegrationRequest;
|
||||
|
||||
AddPrometheusIntegrationRequest::AddPrometheusIntegrationRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AddPrometheusIntegration") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPrometheusIntegrationRequest::~AddPrometheusIntegrationRequest() {}
|
||||
|
||||
std::string AddPrometheusIntegrationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddPrometheusIntegrationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string AddPrometheusIntegrationRequest::getIntegrationType() const {
|
||||
return integrationType_;
|
||||
}
|
||||
|
||||
void AddPrometheusIntegrationRequest::setIntegrationType(const std::string &integrationType) {
|
||||
integrationType_ = integrationType;
|
||||
setParameter(std::string("IntegrationType"), integrationType);
|
||||
}
|
||||
|
||||
std::string AddPrometheusIntegrationRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
void AddPrometheusIntegrationRequest::setParam(const std::string ¶m) {
|
||||
param_ = param;
|
||||
setParameter(std::string("Param"), param);
|
||||
}
|
||||
|
||||
std::string AddPrometheusIntegrationRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddPrometheusIntegrationRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
68
arms/src/model/AddPrometheusIntegrationResult.cc
Normal file
68
arms/src/model/AddPrometheusIntegrationResult.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/AddPrometheusIntegrationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddPrometheusIntegrationResult::AddPrometheusIntegrationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddPrometheusIntegrationResult::AddPrometheusIntegrationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddPrometheusIntegrationResult::~AddPrometheusIntegrationResult()
|
||||
{}
|
||||
|
||||
void AddPrometheusIntegrationResult::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["InstanceId"].isNull())
|
||||
data_.instanceId = std::stol(dataNode["InstanceId"].asString());
|
||||
if(!dataNode["InstanceName"].isNull())
|
||||
data_.instanceName = dataNode["InstanceName"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddPrometheusIntegrationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddPrometheusIntegrationResult::Data AddPrometheusIntegrationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddPrometheusIntegrationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -41,11 +41,25 @@ void AddRecordingRuleResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddRecordingRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddRecordingRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddRecordingRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
81
arms/src/model/AddTagToFlinkClusterRequest.cc
Normal file
81
arms/src/model/AddTagToFlinkClusterRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddTagToFlinkClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddTagToFlinkClusterRequest;
|
||||
|
||||
AddTagToFlinkClusterRequest::AddTagToFlinkClusterRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "AddTagToFlinkCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddTagToFlinkClusterRequest::~AddTagToFlinkClusterRequest() {}
|
||||
|
||||
std::string AddTagToFlinkClusterRequest::getFlinkWorkSpaceName() const {
|
||||
return flinkWorkSpaceName_;
|
||||
}
|
||||
|
||||
void AddTagToFlinkClusterRequest::setFlinkWorkSpaceName(const std::string &flinkWorkSpaceName) {
|
||||
flinkWorkSpaceName_ = flinkWorkSpaceName;
|
||||
setParameter(std::string("FlinkWorkSpaceName"), flinkWorkSpaceName);
|
||||
}
|
||||
|
||||
std::string AddTagToFlinkClusterRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddTagToFlinkClusterRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string AddTagToFlinkClusterRequest::getTargetUserId() const {
|
||||
return targetUserId_;
|
||||
}
|
||||
|
||||
void AddTagToFlinkClusterRequest::setTargetUserId(const std::string &targetUserId) {
|
||||
targetUserId_ = targetUserId;
|
||||
setParameter(std::string("TargetUserId"), targetUserId);
|
||||
}
|
||||
|
||||
std::string AddTagToFlinkClusterRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void AddTagToFlinkClusterRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AddTagToFlinkClusterRequest::getFlinkWorkSpaceId() const {
|
||||
return flinkWorkSpaceId_;
|
||||
}
|
||||
|
||||
void AddTagToFlinkClusterRequest::setFlinkWorkSpaceId(const std::string &flinkWorkSpaceId) {
|
||||
flinkWorkSpaceId_ = flinkWorkSpaceId;
|
||||
setParameter(std::string("FlinkWorkSpaceId"), flinkWorkSpaceId);
|
||||
}
|
||||
|
||||
std::string AddTagToFlinkClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddTagToFlinkClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
65
arms/src/model/AddTagToFlinkClusterResult.cc
Normal file
65
arms/src/model/AddTagToFlinkClusterResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/AddTagToFlinkClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddTagToFlinkClusterResult::AddTagToFlinkClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddTagToFlinkClusterResult::AddTagToFlinkClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddTagToFlinkClusterResult::~AddTagToFlinkClusterResult()
|
||||
{}
|
||||
|
||||
void AddTagToFlinkClusterResult::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["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddTagToFlinkClusterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddTagToFlinkClusterResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddTagToFlinkClusterResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -46,11 +46,25 @@ void AppendInstancesToPrometheusGlobalViewResult::parse(const std::string &paylo
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!dataNode["Info"].isNull())
|
||||
data_.info = dataNode["Info"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AppendInstancesToPrometheusGlobalViewResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AppendInstancesToPrometheusGlobalViewResult::Data AppendInstancesToPrometheusGlobalViewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AppendInstancesToPrometheusGlobalViewResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
63
arms/src/model/BindPrometheusGrafanaInstanceRequest.cc
Normal file
63
arms/src/model/BindPrometheusGrafanaInstanceRequest.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/BindPrometheusGrafanaInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::BindPrometheusGrafanaInstanceRequest;
|
||||
|
||||
BindPrometheusGrafanaInstanceRequest::BindPrometheusGrafanaInstanceRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "BindPrometheusGrafanaInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindPrometheusGrafanaInstanceRequest::~BindPrometheusGrafanaInstanceRequest() {}
|
||||
|
||||
std::string BindPrometheusGrafanaInstanceRequest::getGrafanaInstanceId() const {
|
||||
return grafanaInstanceId_;
|
||||
}
|
||||
|
||||
void BindPrometheusGrafanaInstanceRequest::setGrafanaInstanceId(const std::string &grafanaInstanceId) {
|
||||
grafanaInstanceId_ = grafanaInstanceId;
|
||||
setParameter(std::string("GrafanaInstanceId"), grafanaInstanceId);
|
||||
}
|
||||
|
||||
std::string BindPrometheusGrafanaInstanceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void BindPrometheusGrafanaInstanceRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string BindPrometheusGrafanaInstanceRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void BindPrometheusGrafanaInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string BindPrometheusGrafanaInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void BindPrometheusGrafanaInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
65
arms/src/model/BindPrometheusGrafanaInstanceResult.cc
Normal file
65
arms/src/model/BindPrometheusGrafanaInstanceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/BindPrometheusGrafanaInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
BindPrometheusGrafanaInstanceResult::BindPrometheusGrafanaInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindPrometheusGrafanaInstanceResult::BindPrometheusGrafanaInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindPrometheusGrafanaInstanceResult::~BindPrometheusGrafanaInstanceResult()
|
||||
{}
|
||||
|
||||
void BindPrometheusGrafanaInstanceResult::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() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string BindPrometheusGrafanaInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool BindPrometheusGrafanaInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int BindPrometheusGrafanaInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
72
arms/src/model/BlockAlarmNotificationRequest.cc
Normal file
72
arms/src/model/BlockAlarmNotificationRequest.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/BlockAlarmNotificationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::BlockAlarmNotificationRequest;
|
||||
|
||||
BlockAlarmNotificationRequest::BlockAlarmNotificationRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "BlockAlarmNotification") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BlockAlarmNotificationRequest::~BlockAlarmNotificationRequest() {}
|
||||
|
||||
std::string BlockAlarmNotificationRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void BlockAlarmNotificationRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
long BlockAlarmNotificationRequest::getTimeout() const {
|
||||
return timeout_;
|
||||
}
|
||||
|
||||
void BlockAlarmNotificationRequest::setTimeout(long timeout) {
|
||||
timeout_ = timeout;
|
||||
setParameter(std::string("Timeout"), std::to_string(timeout));
|
||||
}
|
||||
|
||||
std::string BlockAlarmNotificationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void BlockAlarmNotificationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long BlockAlarmNotificationRequest::getHandlerId() const {
|
||||
return handlerId_;
|
||||
}
|
||||
|
||||
void BlockAlarmNotificationRequest::setHandlerId(long handlerId) {
|
||||
handlerId_ = handlerId;
|
||||
setParameter(std::string("HandlerId"), std::to_string(handlerId));
|
||||
}
|
||||
|
||||
long BlockAlarmNotificationRequest::getAlarmId() const {
|
||||
return alarmId_;
|
||||
}
|
||||
|
||||
void BlockAlarmNotificationRequest::setAlarmId(long alarmId) {
|
||||
alarmId_ = alarmId;
|
||||
setParameter(std::string("AlarmId"), std::to_string(alarmId));
|
||||
}
|
||||
|
||||
72
arms/src/model/BlockAlarmNotificationResult.cc
Normal file
72
arms/src/model/BlockAlarmNotificationResult.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/BlockAlarmNotificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
BlockAlarmNotificationResult::BlockAlarmNotificationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BlockAlarmNotificationResult::BlockAlarmNotificationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BlockAlarmNotificationResult::~BlockAlarmNotificationResult()
|
||||
{}
|
||||
|
||||
void BlockAlarmNotificationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BlockAlarmNotificationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long BlockAlarmNotificationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BlockAlarmNotificationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
bool BlockAlarmNotificationResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
72
arms/src/model/ChangeAlarmSeverityRequest.cc
Normal file
72
arms/src/model/ChangeAlarmSeverityRequest.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/ChangeAlarmSeverityRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ChangeAlarmSeverityRequest;
|
||||
|
||||
ChangeAlarmSeverityRequest::ChangeAlarmSeverityRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "ChangeAlarmSeverity") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeAlarmSeverityRequest::~ChangeAlarmSeverityRequest() {}
|
||||
|
||||
std::string ChangeAlarmSeverityRequest::getSeverity() const {
|
||||
return severity_;
|
||||
}
|
||||
|
||||
void ChangeAlarmSeverityRequest::setSeverity(const std::string &severity) {
|
||||
severity_ = severity;
|
||||
setParameter(std::string("Severity"), severity);
|
||||
}
|
||||
|
||||
std::string ChangeAlarmSeverityRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void ChangeAlarmSeverityRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string ChangeAlarmSeverityRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ChangeAlarmSeverityRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long ChangeAlarmSeverityRequest::getHandlerId() const {
|
||||
return handlerId_;
|
||||
}
|
||||
|
||||
void ChangeAlarmSeverityRequest::setHandlerId(long handlerId) {
|
||||
handlerId_ = handlerId;
|
||||
setParameter(std::string("HandlerId"), std::to_string(handlerId));
|
||||
}
|
||||
|
||||
long ChangeAlarmSeverityRequest::getAlarmId() const {
|
||||
return alarmId_;
|
||||
}
|
||||
|
||||
void ChangeAlarmSeverityRequest::setAlarmId(long alarmId) {
|
||||
alarmId_ = alarmId;
|
||||
setParameter(std::string("AlarmId"), std::to_string(alarmId));
|
||||
}
|
||||
|
||||
72
arms/src/model/ChangeAlarmSeverityResult.cc
Normal file
72
arms/src/model/ChangeAlarmSeverityResult.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/ChangeAlarmSeverityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ChangeAlarmSeverityResult::ChangeAlarmSeverityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeAlarmSeverityResult::ChangeAlarmSeverityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeAlarmSeverityResult::~ChangeAlarmSeverityResult()
|
||||
{}
|
||||
|
||||
void ChangeAlarmSeverityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeAlarmSeverityResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ChangeAlarmSeverityResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ChangeAlarmSeverityResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
bool ChangeAlarmSeverityResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
63
arms/src/model/ChangeResourceGroupRequest.cc
Normal file
63
arms/src/model/ChangeResourceGroupRequest.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/ChangeResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ChangeResourceGroupRequest;
|
||||
|
||||
ChangeResourceGroupRequest::ChangeResourceGroupRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "ChangeResourceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getNewResourceGroupId() const {
|
||||
return newResourceGroupId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) {
|
||||
newResourceGroupId_ = newResourceGroupId;
|
||||
setParameter(std::string("NewResourceGroupId"), newResourceGroupId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
68
arms/src/model/ChangeResourceGroupResult.cc
Normal file
68
arms/src/model/ChangeResourceGroupResult.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/ChangeResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ChangeResourceGroupResult::ChangeResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeResourceGroupResult::~ChangeResourceGroupResult()
|
||||
{}
|
||||
|
||||
void ChangeResourceGroupResult::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["ResourceId"].isNull())
|
||||
data_.resourceId = dataNode["ResourceId"].asString();
|
||||
if(!dataNode["ResourceGroupId"].isNull())
|
||||
data_.resourceGroupId = dataNode["ResourceGroupId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ChangeResourceGroupResult::Data ChangeResourceGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
arms/src/model/CheckCommercialStatusRequest.cc
Normal file
45
arms/src/model/CheckCommercialStatusRequest.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/CheckCommercialStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CheckCommercialStatusRequest;
|
||||
|
||||
CheckCommercialStatusRequest::CheckCommercialStatusRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CheckCommercialStatus") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CheckCommercialStatusRequest::~CheckCommercialStatusRequest() {}
|
||||
|
||||
std::string CheckCommercialStatusRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckCommercialStatusRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CheckCommercialStatusRequest::getService() const {
|
||||
return service_;
|
||||
}
|
||||
|
||||
void CheckCommercialStatusRequest::setService(const std::string &service) {
|
||||
service_ = service;
|
||||
setParameter(std::string("Service"), service);
|
||||
}
|
||||
|
||||
51
arms/src/model/CheckCommercialStatusResult.cc
Normal file
51
arms/src/model/CheckCommercialStatusResult.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/CheckCommercialStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CheckCommercialStatusResult::CheckCommercialStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckCommercialStatusResult::CheckCommercialStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckCommercialStatusResult::~CheckCommercialStatusResult()
|
||||
{}
|
||||
|
||||
void CheckCommercialStatusResult::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 CheckCommercialStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
63
arms/src/model/ClaimAlarmRequest.cc
Normal file
63
arms/src/model/ClaimAlarmRequest.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/ClaimAlarmRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ClaimAlarmRequest;
|
||||
|
||||
ClaimAlarmRequest::ClaimAlarmRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "ClaimAlarm") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ClaimAlarmRequest::~ClaimAlarmRequest() {}
|
||||
|
||||
std::string ClaimAlarmRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void ClaimAlarmRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string ClaimAlarmRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ClaimAlarmRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long ClaimAlarmRequest::getHandlerId() const {
|
||||
return handlerId_;
|
||||
}
|
||||
|
||||
void ClaimAlarmRequest::setHandlerId(long handlerId) {
|
||||
handlerId_ = handlerId;
|
||||
setParameter(std::string("HandlerId"), std::to_string(handlerId));
|
||||
}
|
||||
|
||||
long ClaimAlarmRequest::getAlarmId() const {
|
||||
return alarmId_;
|
||||
}
|
||||
|
||||
void ClaimAlarmRequest::setAlarmId(long alarmId) {
|
||||
alarmId_ = alarmId;
|
||||
setParameter(std::string("AlarmId"), std::to_string(alarmId));
|
||||
}
|
||||
|
||||
72
arms/src/model/ClaimAlarmResult.cc
Normal file
72
arms/src/model/ClaimAlarmResult.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/ClaimAlarmResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ClaimAlarmResult::ClaimAlarmResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ClaimAlarmResult::ClaimAlarmResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ClaimAlarmResult::~ClaimAlarmResult()
|
||||
{}
|
||||
|
||||
void ClaimAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ClaimAlarmResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ClaimAlarmResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ClaimAlarmResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
bool ClaimAlarmResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
72
arms/src/model/CloseAlarmRequest.cc
Normal file
72
arms/src/model/CloseAlarmRequest.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/CloseAlarmRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CloseAlarmRequest;
|
||||
|
||||
CloseAlarmRequest::CloseAlarmRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CloseAlarm") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloseAlarmRequest::~CloseAlarmRequest() {}
|
||||
|
||||
std::string CloseAlarmRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CloseAlarmRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string CloseAlarmRequest::getSolution() const {
|
||||
return solution_;
|
||||
}
|
||||
|
||||
void CloseAlarmRequest::setSolution(const std::string &solution) {
|
||||
solution_ = solution;
|
||||
setParameter(std::string("Solution"), solution);
|
||||
}
|
||||
|
||||
std::string CloseAlarmRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CloseAlarmRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long CloseAlarmRequest::getHandlerId() const {
|
||||
return handlerId_;
|
||||
}
|
||||
|
||||
void CloseAlarmRequest::setHandlerId(long handlerId) {
|
||||
handlerId_ = handlerId;
|
||||
setParameter(std::string("HandlerId"), std::to_string(handlerId));
|
||||
}
|
||||
|
||||
long CloseAlarmRequest::getAlarmId() const {
|
||||
return alarmId_;
|
||||
}
|
||||
|
||||
void CloseAlarmRequest::setAlarmId(long alarmId) {
|
||||
alarmId_ = alarmId;
|
||||
setParameter(std::string("AlarmId"), std::to_string(alarmId));
|
||||
}
|
||||
|
||||
72
arms/src/model/CloseAlarmResult.cc
Normal file
72
arms/src/model/CloseAlarmResult.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/CloseAlarmResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CloseAlarmResult::CloseAlarmResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CloseAlarmResult::CloseAlarmResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CloseAlarmResult::~CloseAlarmResult()
|
||||
{}
|
||||
|
||||
void CloseAlarmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CloseAlarmResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long CloseAlarmResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CloseAlarmResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
bool CloseAlarmResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -52,3 +52,12 @@ void ConfigAppRequest::setEnable(const std::string &enable) {
|
||||
setParameter(std::string("Enable"), enable);
|
||||
}
|
||||
|
||||
std::string ConfigAppRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ConfigAppRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,15 @@ void CreateAlertContactRequest::setContactName(const std::string &contactName) {
|
||||
setParameter(std::string("ContactName"), contactName);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
72
arms/src/model/CreateEnvCustomJobRequest.cc
Normal file
72
arms/src/model/CreateEnvCustomJobRequest.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/CreateEnvCustomJobRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateEnvCustomJobRequest;
|
||||
|
||||
CreateEnvCustomJobRequest::CreateEnvCustomJobRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateEnvCustomJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEnvCustomJobRequest::~CreateEnvCustomJobRequest() {}
|
||||
|
||||
std::string CreateEnvCustomJobRequest::getAliyunLang() const {
|
||||
return aliyunLang_;
|
||||
}
|
||||
|
||||
void CreateEnvCustomJobRequest::setAliyunLang(const std::string &aliyunLang) {
|
||||
aliyunLang_ = aliyunLang;
|
||||
setParameter(std::string("AliyunLang"), aliyunLang);
|
||||
}
|
||||
|
||||
std::string CreateEnvCustomJobRequest::getConfigYaml() const {
|
||||
return configYaml_;
|
||||
}
|
||||
|
||||
void CreateEnvCustomJobRequest::setConfigYaml(const std::string &configYaml) {
|
||||
configYaml_ = configYaml;
|
||||
setBodyParameter(std::string("ConfigYaml"), configYaml);
|
||||
}
|
||||
|
||||
std::string CreateEnvCustomJobRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void CreateEnvCustomJobRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string CreateEnvCustomJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateEnvCustomJobRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateEnvCustomJobRequest::getCustomJobName() const {
|
||||
return customJobName_;
|
||||
}
|
||||
|
||||
void CreateEnvCustomJobRequest::setCustomJobName(const std::string &customJobName) {
|
||||
customJobName_ = customJobName;
|
||||
setParameter(std::string("CustomJobName"), customJobName);
|
||||
}
|
||||
|
||||
65
arms/src/model/CreateEnvCustomJobResult.cc
Normal file
65
arms/src/model/CreateEnvCustomJobResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateEnvCustomJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateEnvCustomJobResult::CreateEnvCustomJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEnvCustomJobResult::CreateEnvCustomJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEnvCustomJobResult::~CreateEnvCustomJobResult()
|
||||
{}
|
||||
|
||||
void CreateEnvCustomJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEnvCustomJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateEnvCustomJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateEnvCustomJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
72
arms/src/model/CreateEnvPodMonitorRequest.cc
Normal file
72
arms/src/model/CreateEnvPodMonitorRequest.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/CreateEnvPodMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateEnvPodMonitorRequest;
|
||||
|
||||
CreateEnvPodMonitorRequest::CreateEnvPodMonitorRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateEnvPodMonitor") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEnvPodMonitorRequest::~CreateEnvPodMonitorRequest() {}
|
||||
|
||||
bool CreateEnvPodMonitorRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateEnvPodMonitorRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateEnvPodMonitorRequest::getAliyunLang() const {
|
||||
return aliyunLang_;
|
||||
}
|
||||
|
||||
void CreateEnvPodMonitorRequest::setAliyunLang(const std::string &aliyunLang) {
|
||||
aliyunLang_ = aliyunLang;
|
||||
setParameter(std::string("AliyunLang"), aliyunLang);
|
||||
}
|
||||
|
||||
std::string CreateEnvPodMonitorRequest::getConfigYaml() const {
|
||||
return configYaml_;
|
||||
}
|
||||
|
||||
void CreateEnvPodMonitorRequest::setConfigYaml(const std::string &configYaml) {
|
||||
configYaml_ = configYaml;
|
||||
setBodyParameter(std::string("ConfigYaml"), configYaml);
|
||||
}
|
||||
|
||||
std::string CreateEnvPodMonitorRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void CreateEnvPodMonitorRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string CreateEnvPodMonitorRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateEnvPodMonitorRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
72
arms/src/model/CreateEnvPodMonitorResult.cc
Normal file
72
arms/src/model/CreateEnvPodMonitorResult.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/CreateEnvPodMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateEnvPodMonitorResult::CreateEnvPodMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEnvPodMonitorResult::CreateEnvPodMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEnvPodMonitorResult::~CreateEnvPodMonitorResult()
|
||||
{}
|
||||
|
||||
void CreateEnvPodMonitorResult::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["MatchedMsg"].isNull())
|
||||
data_.matchedMsg = dataNode["MatchedMsg"].asString();
|
||||
if(!dataNode["Namespace"].isNull())
|
||||
data_._namespace = dataNode["Namespace"].asString();
|
||||
if(!dataNode["PodMonitorName"].isNull())
|
||||
data_.podMonitorName = dataNode["PodMonitorName"].asString();
|
||||
if(!dataNode["MatchedTargetCount"].isNull())
|
||||
data_.matchedTargetCount = dataNode["MatchedTargetCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEnvPodMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateEnvPodMonitorResult::Data CreateEnvPodMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateEnvPodMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
72
arms/src/model/CreateEnvServiceMonitorRequest.cc
Normal file
72
arms/src/model/CreateEnvServiceMonitorRequest.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/CreateEnvServiceMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateEnvServiceMonitorRequest;
|
||||
|
||||
CreateEnvServiceMonitorRequest::CreateEnvServiceMonitorRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateEnvServiceMonitor") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEnvServiceMonitorRequest::~CreateEnvServiceMonitorRequest() {}
|
||||
|
||||
bool CreateEnvServiceMonitorRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateEnvServiceMonitorRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateEnvServiceMonitorRequest::getAliyunLang() const {
|
||||
return aliyunLang_;
|
||||
}
|
||||
|
||||
void CreateEnvServiceMonitorRequest::setAliyunLang(const std::string &aliyunLang) {
|
||||
aliyunLang_ = aliyunLang;
|
||||
setParameter(std::string("AliyunLang"), aliyunLang);
|
||||
}
|
||||
|
||||
std::string CreateEnvServiceMonitorRequest::getConfigYaml() const {
|
||||
return configYaml_;
|
||||
}
|
||||
|
||||
void CreateEnvServiceMonitorRequest::setConfigYaml(const std::string &configYaml) {
|
||||
configYaml_ = configYaml;
|
||||
setBodyParameter(std::string("ConfigYaml"), configYaml);
|
||||
}
|
||||
|
||||
std::string CreateEnvServiceMonitorRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void CreateEnvServiceMonitorRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string CreateEnvServiceMonitorRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateEnvServiceMonitorRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
72
arms/src/model/CreateEnvServiceMonitorResult.cc
Normal file
72
arms/src/model/CreateEnvServiceMonitorResult.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/CreateEnvServiceMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateEnvServiceMonitorResult::CreateEnvServiceMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEnvServiceMonitorResult::CreateEnvServiceMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEnvServiceMonitorResult::~CreateEnvServiceMonitorResult()
|
||||
{}
|
||||
|
||||
void CreateEnvServiceMonitorResult::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["MatchedMsg"].isNull())
|
||||
data_.matchedMsg = dataNode["MatchedMsg"].asString();
|
||||
if(!dataNode["Namespace"].isNull())
|
||||
data_._namespace = dataNode["Namespace"].asString();
|
||||
if(!dataNode["ServiceMonitorName"].isNull())
|
||||
data_.serviceMonitorName = dataNode["ServiceMonitorName"].asString();
|
||||
if(!dataNode["MatchedTargetCount"].isNull())
|
||||
data_.matchedTargetCount = std::stoi(dataNode["MatchedTargetCount"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEnvServiceMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateEnvServiceMonitorResult::Data CreateEnvServiceMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateEnvServiceMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
149
arms/src/model/CreateEnvironmentRequest.cc
Normal file
149
arms/src/model/CreateEnvironmentRequest.cc
Normal file
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateEnvironmentRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateEnvironmentRequest;
|
||||
|
||||
CreateEnvironmentRequest::CreateEnvironmentRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateEnvironment") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEnvironmentRequest::~CreateEnvironmentRequest() {}
|
||||
|
||||
std::string CreateEnvironmentRequest::getAliyunLang() const {
|
||||
return aliyunLang_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setAliyunLang(const std::string &aliyunLang) {
|
||||
aliyunLang_ = aliyunLang;
|
||||
setParameter(std::string("AliyunLang"), aliyunLang);
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getEnvironmentName() const {
|
||||
return environmentName_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setEnvironmentName(const std::string &environmentName) {
|
||||
environmentName_ = environmentName;
|
||||
setParameter(std::string("EnvironmentName"), environmentName);
|
||||
}
|
||||
|
||||
bool CreateEnvironmentRequest::getInitEnvironment() const {
|
||||
return initEnvironment_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setInitEnvironment(bool initEnvironment) {
|
||||
initEnvironment_ = initEnvironment;
|
||||
setParameter(std::string("InitEnvironment"), initEnvironment ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getPrometheusInstanceId() const {
|
||||
return prometheusInstanceId_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setPrometheusInstanceId(const std::string &prometheusInstanceId) {
|
||||
prometheusInstanceId_ = prometheusInstanceId;
|
||||
setParameter(std::string("PrometheusInstanceId"), prometheusInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getEnvironmentSubType() const {
|
||||
return environmentSubType_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setEnvironmentSubType(const std::string &environmentSubType) {
|
||||
environmentSubType_ = environmentSubType;
|
||||
setParameter(std::string("EnvironmentSubType"), environmentSubType);
|
||||
}
|
||||
|
||||
std::vector<CreateEnvironmentRequest::Tags> CreateEnvironmentRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setTags(const std::vector<CreateEnvironmentRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
auto tagsObj = tags.at(dep1);
|
||||
std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagsObjStr + ".Value", tagsObj.value);
|
||||
setParameter(tagsObjStr + ".Key", tagsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getGrafanaWorkspaceId() const {
|
||||
return grafanaWorkspaceId_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setGrafanaWorkspaceId(const std::string &grafanaWorkspaceId) {
|
||||
grafanaWorkspaceId_ = grafanaWorkspaceId;
|
||||
setParameter(std::string("GrafanaWorkspaceId"), grafanaWorkspaceId);
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getEnvironmentType() const {
|
||||
return environmentType_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setEnvironmentType(const std::string &environmentType) {
|
||||
environmentType_ = environmentType;
|
||||
setParameter(std::string("EnvironmentType"), environmentType);
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getManagedType() const {
|
||||
return managedType_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setManagedType(const std::string &managedType) {
|
||||
managedType_ = managedType;
|
||||
setParameter(std::string("ManagedType"), managedType);
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getBindResourceId() const {
|
||||
return bindResourceId_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setBindResourceId(const std::string &bindResourceId) {
|
||||
bindResourceId_ = bindResourceId;
|
||||
setParameter(std::string("BindResourceId"), bindResourceId);
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentRequest::getFeePackage() const {
|
||||
return feePackage_;
|
||||
}
|
||||
|
||||
void CreateEnvironmentRequest::setFeePackage(const std::string &feePackage) {
|
||||
feePackage_ = feePackage;
|
||||
setParameter(std::string("FeePackage"), feePackage);
|
||||
}
|
||||
|
||||
65
arms/src/model/CreateEnvironmentResult.cc
Normal file
65
arms/src/model/CreateEnvironmentResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateEnvironmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateEnvironmentResult::CreateEnvironmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEnvironmentResult::CreateEnvironmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEnvironmentResult::~CreateEnvironmentResult()
|
||||
{}
|
||||
|
||||
void CreateEnvironmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateEnvironmentResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateEnvironmentResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
111
arms/src/model/CreateGrafanaWorkspaceRequest.cc
Normal file
111
arms/src/model/CreateGrafanaWorkspaceRequest.cc
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateGrafanaWorkspaceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateGrafanaWorkspaceRequest;
|
||||
|
||||
CreateGrafanaWorkspaceRequest::CreateGrafanaWorkspaceRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateGrafanaWorkspace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateGrafanaWorkspaceRequest::~CreateGrafanaWorkspaceRequest() {}
|
||||
|
||||
std::string CreateGrafanaWorkspaceRequest::getAliyunLang() const {
|
||||
return aliyunLang_;
|
||||
}
|
||||
|
||||
void CreateGrafanaWorkspaceRequest::setAliyunLang(const std::string &aliyunLang) {
|
||||
aliyunLang_ = aliyunLang;
|
||||
setParameter(std::string("AliyunLang"), aliyunLang);
|
||||
}
|
||||
|
||||
std::string CreateGrafanaWorkspaceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateGrafanaWorkspaceRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateGrafanaWorkspaceRequest::getGrafanaWorkspaceName() const {
|
||||
return grafanaWorkspaceName_;
|
||||
}
|
||||
|
||||
void CreateGrafanaWorkspaceRequest::setGrafanaWorkspaceName(const std::string &grafanaWorkspaceName) {
|
||||
grafanaWorkspaceName_ = grafanaWorkspaceName;
|
||||
setParameter(std::string("GrafanaWorkspaceName"), grafanaWorkspaceName);
|
||||
}
|
||||
|
||||
std::vector<CreateGrafanaWorkspaceRequest::Tags> CreateGrafanaWorkspaceRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateGrafanaWorkspaceRequest::setTags(const std::vector<CreateGrafanaWorkspaceRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Value", tags[dep1].value);
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Key", tags[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateGrafanaWorkspaceRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateGrafanaWorkspaceRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateGrafanaWorkspaceRequest::getGrafanaVersion() const {
|
||||
return grafanaVersion_;
|
||||
}
|
||||
|
||||
void CreateGrafanaWorkspaceRequest::setGrafanaVersion(const std::string &grafanaVersion) {
|
||||
grafanaVersion_ = grafanaVersion;
|
||||
setParameter(std::string("GrafanaVersion"), grafanaVersion);
|
||||
}
|
||||
|
||||
std::string CreateGrafanaWorkspaceRequest::getPassword() const {
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateGrafanaWorkspaceRequest::setPassword(const std::string &password) {
|
||||
password_ = password;
|
||||
setParameter(std::string("Password"), password);
|
||||
}
|
||||
|
||||
std::string CreateGrafanaWorkspaceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateGrafanaWorkspaceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateGrafanaWorkspaceRequest::getGrafanaWorkspaceEdition() const {
|
||||
return grafanaWorkspaceEdition_;
|
||||
}
|
||||
|
||||
void CreateGrafanaWorkspaceRequest::setGrafanaWorkspaceEdition(const std::string &grafanaWorkspaceEdition) {
|
||||
grafanaWorkspaceEdition_ = grafanaWorkspaceEdition;
|
||||
setParameter(std::string("GrafanaWorkspaceEdition"), grafanaWorkspaceEdition);
|
||||
}
|
||||
|
||||
141
arms/src/model/CreateGrafanaWorkspaceResult.cc
Normal file
141
arms/src/model/CreateGrafanaWorkspaceResult.cc
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateGrafanaWorkspaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateGrafanaWorkspaceResult::CreateGrafanaWorkspaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateGrafanaWorkspaceResult::CreateGrafanaWorkspaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateGrafanaWorkspaceResult::~CreateGrafanaWorkspaceResult()
|
||||
{}
|
||||
|
||||
void CreateGrafanaWorkspaceResult::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["status"].isNull())
|
||||
data_.status = dataNode["status"].asString();
|
||||
if(!dataNode["description"].isNull())
|
||||
data_.description = dataNode["description"].asString();
|
||||
if(!dataNode["grafanaWorkspaceEdition"].isNull())
|
||||
data_.grafanaWorkspaceEdition = dataNode["grafanaWorkspaceEdition"].asString();
|
||||
if(!dataNode["endTime"].isNull())
|
||||
data_.endTime = std::stof(dataNode["endTime"].asString());
|
||||
if(!dataNode["grafanaWorkspaceId"].isNull())
|
||||
data_.grafanaWorkspaceId = dataNode["grafanaWorkspaceId"].asString();
|
||||
if(!dataNode["grafanaWorkspaceIp"].isNull())
|
||||
data_.grafanaWorkspaceIp = dataNode["grafanaWorkspaceIp"].asString();
|
||||
if(!dataNode["snatIp"].isNull())
|
||||
data_.snatIp = dataNode["snatIp"].asString();
|
||||
if(!dataNode["grafanaWorkspaceDomain"].isNull())
|
||||
data_.grafanaWorkspaceDomain = dataNode["grafanaWorkspaceDomain"].asString();
|
||||
if(!dataNode["grafanaWorkspaceDomainStatus"].isNull())
|
||||
data_.grafanaWorkspaceDomainStatus = dataNode["grafanaWorkspaceDomainStatus"].asString();
|
||||
if(!dataNode["commercial"].isNull())
|
||||
data_.commercial = dataNode["commercial"].asString() == "true";
|
||||
if(!dataNode["grafanaWorkspaceName"].isNull())
|
||||
data_.grafanaWorkspaceName = dataNode["grafanaWorkspaceName"].asString();
|
||||
if(!dataNode["grafanaVersion"].isNull())
|
||||
data_.grafanaVersion = dataNode["grafanaVersion"].asString();
|
||||
if(!dataNode["gmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stof(dataNode["gmtCreate"].asString());
|
||||
if(!dataNode["userId"].isNull())
|
||||
data_.userId = dataNode["userId"].asString();
|
||||
if(!dataNode["maxAccount"].isNull())
|
||||
data_.maxAccount = dataNode["maxAccount"].asString();
|
||||
if(!dataNode["regionId"].isNull())
|
||||
data_.regionId = dataNode["regionId"].asString();
|
||||
if(!dataNode["protocol"].isNull())
|
||||
data_.protocol = dataNode["protocol"].asString();
|
||||
if(!dataNode["shareSynced"].isNull())
|
||||
data_.shareSynced = dataNode["shareSynced"].asString() == "true";
|
||||
if(!dataNode["ntmId"].isNull())
|
||||
data_.ntmId = dataNode["ntmId"].asString();
|
||||
if(!dataNode["personalDomain"].isNull())
|
||||
data_.personalDomain = dataNode["personalDomain"].asString();
|
||||
if(!dataNode["personalDomainPrefix"].isNull())
|
||||
data_.personalDomainPrefix = dataNode["personalDomainPrefix"].asString();
|
||||
if(!dataNode["resourceGroupId"].isNull())
|
||||
data_.resourceGroupId = dataNode["resourceGroupId"].asString();
|
||||
if(!dataNode["deployType"].isNull())
|
||||
data_.deployType = dataNode["deployType"].asString();
|
||||
if(!dataNode["privateIp"].isNull())
|
||||
data_.privateIp = dataNode["privateIp"].asString();
|
||||
if(!dataNode["privateDomain"].isNull())
|
||||
data_.privateDomain = dataNode["privateDomain"].asString();
|
||||
auto alltagsNode = dataNode["tags"]["tagsItem"];
|
||||
for (auto dataNodetagstagsItem : alltagsNode)
|
||||
{
|
||||
Data::TagsItem tagsItemObject;
|
||||
if(!dataNodetagstagsItem["key"].isNull())
|
||||
tagsItemObject.key = dataNodetagstagsItem["key"].asString();
|
||||
if(!dataNodetagstagsItem["value"].isNull())
|
||||
tagsItemObject.value = dataNodetagstagsItem["value"].asString();
|
||||
data_.tags.push_back(tagsItemObject);
|
||||
}
|
||||
auto allUpgradeVersion = dataNode["upgradeVersion"]["null"];
|
||||
for (auto value : allUpgradeVersion)
|
||||
data_.upgradeVersion.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateGrafanaWorkspaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateGrafanaWorkspaceResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
CreateGrafanaWorkspaceResult::Data CreateGrafanaWorkspaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateGrafanaWorkspaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateGrafanaWorkspaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ CreateIntegrationRequest::CreateIntegrationRequest()
|
||||
|
||||
CreateIntegrationRequest::~CreateIntegrationRequest() {}
|
||||
|
||||
std::string CreateIntegrationRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateIntegrationRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
bool CreateIntegrationRequest::getAutoRecover() const {
|
||||
return autoRecover_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void CreateIntegrationRequest::setRecoverTime(long recoverTime) {
|
||||
setBodyParameter(std::string("RecoverTime"), std::to_string(recoverTime));
|
||||
}
|
||||
|
||||
std::string CreateIntegrationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateIntegrationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateIntegrationRequest::getIntegrationName() const {
|
||||
return integrationName_;
|
||||
}
|
||||
@@ -52,15 +70,6 @@ void CreateIntegrationRequest::setIntegrationName(const std::string &integration
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,15 @@ void CreateOrUpdateAlertRuleRequest::setAnnotations(const std::string &annotatio
|
||||
setBodyParameter(std::string("Annotations"), annotations);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getDataConfig() const {
|
||||
return dataConfig_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setDataConfig(const std::string &dataConfig) {
|
||||
dataConfig_ = dataConfig;
|
||||
setBodyParameter(std::string("DataConfig"), dataConfig);
|
||||
}
|
||||
|
||||
long CreateOrUpdateAlertRuleRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
@@ -70,6 +79,15 @@ void CreateOrUpdateAlertRuleRequest::setDuration(long duration) {
|
||||
setBodyParameter(std::string("Duration"), std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAutoAddTargetConfig() const {
|
||||
return autoAddTargetConfig_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAutoAddTargetConfig(const std::string &autoAddTargetConfig) {
|
||||
autoAddTargetConfig_ = autoAddTargetConfig;
|
||||
setBodyParameter(std::string("AutoAddTargetConfig"), autoAddTargetConfig);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -88,6 +106,38 @@ void CreateOrUpdateAlertRuleRequest::setMetricsKey(const std::string &metricsKey
|
||||
setBodyParameter(std::string("MetricsKey"), metricsKey);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAlertPiplines() const {
|
||||
return alertPiplines_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setAlertPiplines(const std::string &alertPiplines) {
|
||||
alertPiplines_ = alertPiplines;
|
||||
setBodyParameter(std::string("AlertPiplines"), alertPiplines);
|
||||
}
|
||||
|
||||
std::vector<CreateOrUpdateAlertRuleRequest::MarkTags> CreateOrUpdateAlertRuleRequest::getMarkTags() const {
|
||||
return markTags_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setMarkTags(const std::vector<CreateOrUpdateAlertRuleRequest::MarkTags> &markTags) {
|
||||
markTags_ = markTags;
|
||||
for(int dep1 = 0; dep1 != markTags.size(); dep1++) {
|
||||
auto markTagsObj = markTags.at(dep1);
|
||||
std::string markTagsObjStr = std::string("MarkTags") + "." + std::to_string(dep1 + 1);
|
||||
setBodyParameter(markTagsObjStr + ".Value", markTagsObj.value);
|
||||
setBodyParameter(markTagsObjStr + ".Key", markTagsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getNotice() const {
|
||||
return notice_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setNotice(const std::string ¬ice) {
|
||||
notice_ = notice;
|
||||
setBodyParameter(std::string("Notice"), notice);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAlertRuleContent() const {
|
||||
return alertRuleContent_;
|
||||
}
|
||||
@@ -106,6 +156,15 @@ void CreateOrUpdateAlertRuleRequest::setPromQL(const std::string &promQL) {
|
||||
setBodyParameter(std::string("PromQL"), promQL);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getProduct() const {
|
||||
return product_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setProduct(const std::string &product) {
|
||||
product_ = product;
|
||||
setBodyParameter(std::string("Product"), product);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getLevel() const {
|
||||
return level_;
|
||||
}
|
||||
@@ -151,6 +210,24 @@ void CreateOrUpdateAlertRuleRequest::setMessage(const std::string &message) {
|
||||
setBodyParameter(std::string("Message"), message);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getDurationCompareType() const {
|
||||
return durationCompareType_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setDurationCompareType(const std::string &durationCompareType) {
|
||||
durationCompareType_ = durationCompareType;
|
||||
setBodyParameter(std::string("DurationCompareType"), durationCompareType);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getNotifyStrategy() const {
|
||||
return notifyStrategy_;
|
||||
}
|
||||
@@ -169,6 +246,29 @@ void CreateOrUpdateAlertRuleRequest::setLabels(const std::string &labels) {
|
||||
setBodyParameter(std::string("Labels"), labels);
|
||||
}
|
||||
|
||||
std::vector<CreateOrUpdateAlertRuleRequest::Tags> CreateOrUpdateAlertRuleRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setTags(const std::vector<CreateOrUpdateAlertRuleRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
auto tagsObj = tags.at(dep1);
|
||||
std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1);
|
||||
setBodyParameter(tagsObjStr + ".Value", tagsObj.value);
|
||||
setBodyParameter(tagsObjStr + ".Key", tagsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getNotifyMode() const {
|
||||
return notifyMode_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAlertRuleRequest::setNotifyMode(const std::string ¬ifyMode) {
|
||||
notifyMode_ = notifyMode;
|
||||
setBodyParameter(std::string("NotifyMode"), notifyMode);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAlertRuleRequest::getAlertType() const {
|
||||
return alertType_;
|
||||
}
|
||||
|
||||
@@ -78,6 +78,8 @@ void CreateOrUpdateAlertRuleResult::parse(const std::string &payload)
|
||||
alertRule_.level = alertRuleNode["Level"].asString();
|
||||
if(!alertRuleNode["Message"].isNull())
|
||||
alertRule_.message = alertRuleNode["Message"].asString();
|
||||
if(!alertRuleNode["NotifyMode"].isNull())
|
||||
alertRule_.notifyMode = alertRuleNode["NotifyMode"].asString();
|
||||
auto allLabelsNode = alertRuleNode["Labels"]["labelsItem"];
|
||||
for (auto alertRuleNodeLabelslabelsItem : allLabelsNode)
|
||||
{
|
||||
@@ -98,6 +100,16 @@ void CreateOrUpdateAlertRuleResult::parse(const std::string &payload)
|
||||
annotationsItemObject.value = alertRuleNodeAnnotationsannotationsItem["Value"].asString();
|
||||
alertRule_.annotations.push_back(annotationsItemObject);
|
||||
}
|
||||
auto allTagsNode = alertRuleNode["Tags"]["Tag"];
|
||||
for (auto alertRuleNodeTagsTag : allTagsNode)
|
||||
{
|
||||
AlertRule::Tag tagObject;
|
||||
if(!alertRuleNodeTagsTag["Key"].isNull())
|
||||
tagObject.key = alertRuleNodeTagsTag["Key"].asString();
|
||||
if(!alertRuleNodeTagsTag["Value"].isNull())
|
||||
tagObject.value = alertRuleNodeTagsTag["Value"].asString();
|
||||
alertRule_.tags.push_back(tagObject);
|
||||
}
|
||||
auto alertRuleContentNode = alertRuleNode["AlertRuleContent"];
|
||||
if(!alertRuleContentNode["Condition"].isNull())
|
||||
alertRule_.alertRuleContent.condition = alertRuleContentNode["Condition"].asString();
|
||||
|
||||
@@ -61,6 +61,15 @@ void CreateOrUpdateContactRequest::setProxyUserId(const std::string &proxyUserId
|
||||
setBodyParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactRequest::getCorpUserId() const {
|
||||
return corpUserId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setCorpUserId(const std::string &corpUserId) {
|
||||
corpUserId_ = corpUserId;
|
||||
setBodyParameter(std::string("CorpUserId"), corpUserId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactRequest::getContactName() const {
|
||||
return contactName_;
|
||||
}
|
||||
@@ -70,6 +79,24 @@ void CreateOrUpdateContactRequest::setContactName(const std::string &contactName
|
||||
setBodyParameter(std::string("ContactName"), contactName);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactRequest::getDingRobotUrl() const {
|
||||
return dingRobotUrl_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setDingRobotUrl(const std::string &dingRobotUrl) {
|
||||
dingRobotUrl_ = dingRobotUrl;
|
||||
setParameter(std::string("DingRobotUrl"), dingRobotUrl);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateContactRequest::getPhone() const {
|
||||
return phone_;
|
||||
}
|
||||
@@ -88,3 +115,12 @@ void CreateOrUpdateContactRequest::setEmail(const std::string &email) {
|
||||
setBodyParameter(std::string("Email"), email);
|
||||
}
|
||||
|
||||
bool CreateOrUpdateContactRequest::getIsEmailVerify() const {
|
||||
return isEmailVerify_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateContactRequest::setIsEmailVerify(bool isEmailVerify) {
|
||||
isEmailVerify_ = isEmailVerify;
|
||||
setBodyParameter(std::string("IsEmailVerify"), isEmailVerify ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,10 @@ void CreateOrUpdateContactResult::parse(const std::string &payload)
|
||||
alertContact_.isVerify = alertContactNode["IsVerify"].asString() == "true";
|
||||
if(!alertContactNode["ReissueSendNotice"].isNull())
|
||||
alertContact_.reissueSendNotice = std::stol(alertContactNode["ReissueSendNotice"].asString());
|
||||
if(!alertContactNode["isEmailVerify"].isNull())
|
||||
alertContact_.isEmailVerify = alertContactNode["isEmailVerify"].asString() == "true";
|
||||
if(!alertContactNode["DingRobotUrl"].isNull())
|
||||
alertContact_.dingRobotUrl = alertContactNode["DingRobotUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -25,24 +25,6 @@ CreateOrUpdateNotificationPolicyRequest::CreateOrUpdateNotificationPolicyRequest
|
||||
|
||||
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_;
|
||||
}
|
||||
@@ -52,13 +34,13 @@ void CreateOrUpdateNotificationPolicyRequest::setIntegrationId(long integrationI
|
||||
setBodyParameter(std::string("IntegrationId"), std::to_string(integrationId));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getMatchingRules() const {
|
||||
return matchingRules_;
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getAreaCodes() const {
|
||||
return areaCodes_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setMatchingRules(const std::string &matchingRules) {
|
||||
matchingRules_ = matchingRules;
|
||||
setBodyParameter(std::string("MatchingRules"), matchingRules);
|
||||
void CreateOrUpdateNotificationPolicyRequest::setAreaCodes(const std::string &areaCodes) {
|
||||
areaCodes_ = areaCodes;
|
||||
setBodyParameter(std::string("AreaCodes"), areaCodes);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getGroupRule() const {
|
||||
@@ -88,15 +70,6 @@ void CreateOrUpdateNotificationPolicyRequest::setRepeat(bool 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_;
|
||||
}
|
||||
@@ -115,13 +88,13 @@ void CreateOrUpdateNotificationPolicyRequest::setNotifyRule(const std::string &n
|
||||
setBodyParameter(std::string("NotifyRule"), notifyRule);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getNotifyTemplate() const {
|
||||
return notifyTemplate_;
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getState() const {
|
||||
return state_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setNotifyTemplate(const std::string ¬ifyTemplate) {
|
||||
notifyTemplate_ = notifyTemplate;
|
||||
setBodyParameter(std::string("NotifyTemplate"), notifyTemplate);
|
||||
void CreateOrUpdateNotificationPolicyRequest::setState(const std::string &state) {
|
||||
state_ = state;
|
||||
setBodyParameter(std::string("State"), state);
|
||||
}
|
||||
|
||||
long CreateOrUpdateNotificationPolicyRequest::getRepeatInterval() const {
|
||||
@@ -133,3 +106,66 @@ void CreateOrUpdateNotificationPolicyRequest::setRepeatInterval(long repeatInter
|
||||
setBodyParameter(std::string("RepeatInterval"), std::to_string(repeatInterval));
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setBodyParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getMatchingRules() const {
|
||||
return matchingRules_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setMatchingRules(const std::string &matchingRules) {
|
||||
matchingRules_ = matchingRules;
|
||||
setBodyParameter(std::string("MatchingRules"), matchingRules);
|
||||
}
|
||||
|
||||
bool CreateOrUpdateNotificationPolicyRequest::getDirectedMode() const {
|
||||
return directedMode_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setDirectedMode(bool directedMode) {
|
||||
directedMode_ = directedMode;
|
||||
setBodyParameter(std::string("DirectedMode"), directedMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateNotificationPolicyRequest::getNotifyTemplate() const {
|
||||
return notifyTemplate_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateNotificationPolicyRequest::setNotifyTemplate(const std::string ¬ifyTemplate) {
|
||||
notifyTemplate_ = notifyTemplate;
|
||||
setBodyParameter(std::string("NotifyTemplate"), notifyTemplate);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,10 @@ void CreateOrUpdateNotificationPolicyResult::parse(const std::string &payload)
|
||||
notificationPolicy_.repeatInterval = std::stol(notificationPolicyNode["RepeatInterval"].asString());
|
||||
if(!notificationPolicyNode["IntegrationId"].isNull())
|
||||
notificationPolicy_.integrationId = std::stol(notificationPolicyNode["IntegrationId"].asString());
|
||||
if(!notificationPolicyNode["DirectedMode"].isNull())
|
||||
notificationPolicy_.directedMode = notificationPolicyNode["DirectedMode"].asString() == "true";
|
||||
if(!notificationPolicyNode["State"].isNull())
|
||||
notificationPolicy_.state = notificationPolicyNode["State"].asString();
|
||||
auto allMatchingRulesNode = notificationPolicyNode["MatchingRules"]["matchingRulesItem"];
|
||||
for (auto notificationPolicyNodeMatchingRulesmatchingRulesItem : allMatchingRulesNode)
|
||||
{
|
||||
@@ -95,6 +99,9 @@ void CreateOrUpdateNotificationPolicyResult::parse(const std::string &payload)
|
||||
notifyObjectsItemObject.notifyObjectId = std::stol(notifyRuleNodeNotifyObjectsnotifyObjectsItem["NotifyObjectId"].asString());
|
||||
if(!notifyRuleNodeNotifyObjectsnotifyObjectsItem["NotifyObjectName"].isNull())
|
||||
notifyObjectsItemObject.notifyObjectName = notifyRuleNodeNotifyObjectsnotifyObjectsItem["NotifyObjectName"].asString();
|
||||
auto allNotifyChannels1 = value["NotifyChannels"]["notifyChannels"];
|
||||
for (auto value : allNotifyChannels1)
|
||||
notifyObjectsItemObject.notifyChannels1.push_back(value.asString());
|
||||
notificationPolicy_.notifyRule.notifyObjects.push_back(notifyObjectsItemObject);
|
||||
}
|
||||
auto allNotifyChannels = notifyRuleNode["NotifyChannels"]["notifyChannels"];
|
||||
|
||||
@@ -25,6 +25,33 @@ CreateOrUpdateSilencePolicyRequest::CreateOrUpdateSilencePolicyRequest()
|
||||
|
||||
CreateOrUpdateSilencePolicyRequest::~CreateOrUpdateSilencePolicyRequest() {}
|
||||
|
||||
std::string CreateOrUpdateSilencePolicyRequest::getProxyUserId() const {
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSilencePolicyRequest::setProxyUserId(const std::string &proxyUserId) {
|
||||
proxyUserId_ = proxyUserId;
|
||||
setBodyParameter(std::string("ProxyUserId"), proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSilencePolicyRequest::getMatchingRules() const {
|
||||
return matchingRules_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSilencePolicyRequest::setMatchingRules(const std::string &matchingRules) {
|
||||
matchingRules_ = matchingRules;
|
||||
setBodyParameter(std::string("MatchingRules"), matchingRules);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSilencePolicyRequest::getAreaCodes() const {
|
||||
return areaCodes_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSilencePolicyRequest::setAreaCodes(const std::string &areaCodes) {
|
||||
areaCodes_ = areaCodes;
|
||||
setBodyParameter(std::string("AreaCodes"), areaCodes);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSilencePolicyRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -52,12 +79,12 @@ void CreateOrUpdateSilencePolicyRequest::setId(long id) {
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSilencePolicyRequest::getMatchingRules() const {
|
||||
return matchingRules_;
|
||||
std::string CreateOrUpdateSilencePolicyRequest::getState() const {
|
||||
return state_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSilencePolicyRequest::setMatchingRules(const std::string &matchingRules) {
|
||||
matchingRules_ = matchingRules;
|
||||
setBodyParameter(std::string("MatchingRules"), matchingRules);
|
||||
void CreateOrUpdateSilencePolicyRequest::setState(const std::string &state) {
|
||||
state_ = state;
|
||||
setBodyParameter(std::string("State"), state);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@ void CreateOrUpdateSilencePolicyResult::parse(const std::string &payload)
|
||||
silencePolicy_.id = std::stol(silencePolicyNode["Id"].asString());
|
||||
if(!silencePolicyNode["Name"].isNull())
|
||||
silencePolicy_.name = silencePolicyNode["Name"].asString();
|
||||
if(!silencePolicyNode["State"].isNull())
|
||||
silencePolicy_.state = silencePolicyNode["State"].asString();
|
||||
auto allMatchingRulesNode = silencePolicyNode["MatchingRules"]["matchingRulesItem"];
|
||||
for (auto silencePolicyNodeMatchingRulesmatchingRulesItem : allMatchingRulesNode)
|
||||
{
|
||||
|
||||
@@ -115,6 +115,20 @@ void CreatePrometheusAlertRuleRequest::setLabels(const std::string &labels) {
|
||||
setParameter(std::string("Labels"), labels);
|
||||
}
|
||||
|
||||
std::vector<CreatePrometheusAlertRuleRequest::Tags> CreatePrometheusAlertRuleRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreatePrometheusAlertRuleRequest::setTags(const std::vector<CreatePrometheusAlertRuleRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
auto tagsObj = tags.at(dep1);
|
||||
std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagsObjStr + ".Value", tagsObj.value);
|
||||
setParameter(tagsObjStr + ".Key", tagsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
|
||||
@@ -80,11 +80,32 @@ void CreatePrometheusAlertRuleResult::parse(const std::string &payload)
|
||||
annotationObject.value = prometheusAlertRuleNodeAnnotationsAnnotation["Value"].asString();
|
||||
prometheusAlertRule_.annotations.push_back(annotationObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePrometheusAlertRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreatePrometheusAlertRuleResult::PrometheusAlertRule CreatePrometheusAlertRuleResult::getPrometheusAlertRule()const
|
||||
{
|
||||
return prometheusAlertRule_;
|
||||
}
|
||||
|
||||
long CreatePrometheusAlertRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreatePrometheusAlertRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
176
arms/src/model/CreatePrometheusInstanceRequest.cc
Normal file
176
arms/src/model/CreatePrometheusInstanceRequest.cc
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreatePrometheusInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreatePrometheusInstanceRequest;
|
||||
|
||||
CreatePrometheusInstanceRequest::CreatePrometheusInstanceRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreatePrometheusInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePrometheusInstanceRequest::~CreatePrometheusInstanceRequest() {}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getGrafanaInstanceId() const {
|
||||
return grafanaInstanceId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setGrafanaInstanceId(const std::string &grafanaInstanceId) {
|
||||
grafanaInstanceId_ = grafanaInstanceId;
|
||||
setParameter(std::string("GrafanaInstanceId"), grafanaInstanceId);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setSecurityGroupId(const std::string &securityGroupId) {
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getStsToken() const {
|
||||
return stsToken_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setStsToken(const std::string &stsToken) {
|
||||
stsToken_ = stsToken;
|
||||
setParameter(std::string("StsToken"), stsToken);
|
||||
}
|
||||
|
||||
int CreatePrometheusInstanceRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setDuration(int duration) {
|
||||
duration_ = duration;
|
||||
setParameter(std::string("Duration"), std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getSubClustersJson() const {
|
||||
return subClustersJson_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setSubClustersJson(const std::string &subClustersJson) {
|
||||
subClustersJson_ = subClustersJson;
|
||||
setParameter(std::string("SubClustersJson"), subClustersJson);
|
||||
}
|
||||
|
||||
bool CreatePrometheusInstanceRequest::getAllSubClustersSuccess() const {
|
||||
return allSubClustersSuccess_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setAllSubClustersSuccess(bool allSubClustersSuccess) {
|
||||
allSubClustersSuccess_ = allSubClustersSuccess;
|
||||
setParameter(std::string("AllSubClustersSuccess"), allSubClustersSuccess ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::vector<CreatePrometheusInstanceRequest::Tags> CreatePrometheusInstanceRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setTags(const std::vector<CreatePrometheusInstanceRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
auto tagsObj = tags.at(dep1);
|
||||
std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagsObjStr + ".Value", tagsObj.value);
|
||||
setParameter(tagsObjStr + ".Key", tagsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getClusterType() const {
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setClusterType(const std::string &clusterType) {
|
||||
clusterType_ = clusterType;
|
||||
setParameter(std::string("ClusterType"), clusterType);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getParamJson() const {
|
||||
return paramJson_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setParamJson(const std::string ¶mJson) {
|
||||
paramJson_ = paramJson;
|
||||
setParameter(std::string("ParamJson"), paramJson);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
int CreatePrometheusInstanceRequest::getArchiveDuration() const {
|
||||
return archiveDuration_;
|
||||
}
|
||||
|
||||
void CreatePrometheusInstanceRequest::setArchiveDuration(int archiveDuration) {
|
||||
archiveDuration_ = archiveDuration;
|
||||
setParameter(std::string("ArchiveDuration"), std::to_string(archiveDuration));
|
||||
}
|
||||
|
||||
65
arms/src/model/CreatePrometheusInstanceResult.cc
Normal file
65
arms/src/model/CreatePrometheusInstanceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreatePrometheusInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreatePrometheusInstanceResult::CreatePrometheusInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePrometheusInstanceResult::CreatePrometheusInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePrometheusInstanceResult::~CreatePrometheusInstanceResult()
|
||||
{}
|
||||
|
||||
void CreatePrometheusInstanceResult::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();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreatePrometheusInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
72
arms/src/model/CreatePrometheusMonitoringRequest.cc
Normal file
72
arms/src/model/CreatePrometheusMonitoringRequest.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/CreatePrometheusMonitoringRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreatePrometheusMonitoringRequest;
|
||||
|
||||
CreatePrometheusMonitoringRequest::CreatePrometheusMonitoringRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreatePrometheusMonitoring") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePrometheusMonitoringRequest::~CreatePrometheusMonitoringRequest() {}
|
||||
|
||||
std::string CreatePrometheusMonitoringRequest::getConfigYaml() const {
|
||||
return configYaml_;
|
||||
}
|
||||
|
||||
void CreatePrometheusMonitoringRequest::setConfigYaml(const std::string &configYaml) {
|
||||
configYaml_ = configYaml;
|
||||
setBodyParameter(std::string("ConfigYaml"), configYaml);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusMonitoringRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusMonitoringRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusMonitoringRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreatePrometheusMonitoringRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusMonitoringRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePrometheusMonitoringRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreatePrometheusMonitoringRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreatePrometheusMonitoringRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
65
arms/src/model/CreatePrometheusMonitoringResult.cc
Normal file
65
arms/src/model/CreatePrometheusMonitoringResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreatePrometheusMonitoringResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreatePrometheusMonitoringResult::CreatePrometheusMonitoringResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePrometheusMonitoringResult::CreatePrometheusMonitoringResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePrometheusMonitoringResult::~CreatePrometheusMonitoringResult()
|
||||
{}
|
||||
|
||||
void CreatePrometheusMonitoringResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePrometheusMonitoringResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreatePrometheusMonitoringResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreatePrometheusMonitoringResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ CreateRetcodeAppRequest::CreateRetcodeAppRequest()
|
||||
|
||||
CreateRetcodeAppRequest::~CreateRetcodeAppRequest() {}
|
||||
|
||||
std::string CreateRetcodeAppRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateRetcodeAppRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateRetcodeAppRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -52,3 +61,17 @@ void CreateRetcodeAppRequest::setRetcodeAppType(const std::string &retcodeAppTyp
|
||||
setParameter(std::string("RetcodeAppType"), retcodeAppType);
|
||||
}
|
||||
|
||||
std::vector<CreateRetcodeAppRequest::Tags> CreateRetcodeAppRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateRetcodeAppRequest::setTags(const std::vector<CreateRetcodeAppRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
auto tagsObj = tags.at(dep1);
|
||||
std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagsObjStr + ".Value", tagsObj.value);
|
||||
setParameter(tagsObjStr + ".Key", tagsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,26 @@ void CreateRetcodeAppResult::parse(const std::string &payload)
|
||||
retcodeAppDataBean_.pid = retcodeAppDataBeanNode["Pid"].asString();
|
||||
if(!retcodeAppDataBeanNode["AppId"].isNull())
|
||||
retcodeAppDataBean_.appId = std::stol(retcodeAppDataBeanNode["AppId"].asString());
|
||||
if(!retcodeAppDataBeanNode["ResourceGroupId"].isNull())
|
||||
retcodeAppDataBean_.resourceGroupId = retcodeAppDataBeanNode["ResourceGroupId"].asString();
|
||||
auto allTagsNode = retcodeAppDataBeanNode["Tags"]["TagsItem"];
|
||||
for (auto retcodeAppDataBeanNodeTagsTagsItem : allTagsNode)
|
||||
{
|
||||
RetcodeAppDataBean::TagsItem tagsItemObject;
|
||||
if(!retcodeAppDataBeanNodeTagsTagsItem["Key"].isNull())
|
||||
tagsItemObject.key = retcodeAppDataBeanNodeTagsTagsItem["Key"].asString();
|
||||
if(!retcodeAppDataBeanNodeTagsTagsItem["Value"].isNull())
|
||||
tagsItemObject.value = retcodeAppDataBeanNodeTagsTagsItem["Value"].asString();
|
||||
retcodeAppDataBean_.tags.push_back(tagsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -52,3 +72,23 @@ CreateRetcodeAppResult::RetcodeAppDataBean CreateRetcodeAppResult::getRetcodeApp
|
||||
return retcodeAppDataBean_;
|
||||
}
|
||||
|
||||
std::string CreateRetcodeAppResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateRetcodeAppResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateRetcodeAppResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateRetcodeAppResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
120
arms/src/model/CreateRumAppRequest.cc
Normal file
120
arms/src/model/CreateRumAppRequest.cc
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateRumAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateRumAppRequest;
|
||||
|
||||
CreateRumAppRequest::CreateRumAppRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateRumApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRumAppRequest::~CreateRumAppRequest() {}
|
||||
|
||||
std::string CreateRumAppRequest::getPackageName() const {
|
||||
return packageName_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setPackageName(const std::string &packageName) {
|
||||
packageName_ = packageName;
|
||||
setParameter(std::string("PackageName"), packageName);
|
||||
}
|
||||
|
||||
std::string CreateRumAppRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateRumAppRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string CreateRumAppRequest::getSiteType() const {
|
||||
return siteType_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setSiteType(const std::string &siteType) {
|
||||
siteType_ = siteType;
|
||||
setParameter(std::string("SiteType"), siteType);
|
||||
}
|
||||
|
||||
std::string CreateRumAppRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateRumAppRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string CreateRumAppRequest::getAppGroup() const {
|
||||
return appGroup_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setAppGroup(const std::string &appGroup) {
|
||||
appGroup_ = appGroup;
|
||||
setParameter(std::string("AppGroup"), appGroup);
|
||||
}
|
||||
|
||||
std::string CreateRumAppRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateRumAppRequest::getNickName() const {
|
||||
return nickName_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setNickName(const std::string &nickName) {
|
||||
nickName_ = nickName;
|
||||
setParameter(std::string("NickName"), nickName);
|
||||
}
|
||||
|
||||
std::vector<CreateRumAppRequest::Tag> CreateRumAppRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateRumAppRequest::setTag(const std::vector<CreateRumAppRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
91
arms/src/model/CreateRumAppResult.cc
Normal file
91
arms/src/model/CreateRumAppResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateRumAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateRumAppResult::CreateRumAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRumAppResult::CreateRumAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRumAppResult::~CreateRumAppResult()
|
||||
{}
|
||||
|
||||
void CreateRumAppResult::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["Pid"].isNull())
|
||||
data_.pid = dataNode["Pid"].asString();
|
||||
if(!dataNode["Endpoint"].isNull())
|
||||
data_.endpoint = dataNode["Endpoint"].asString();
|
||||
if(!dataNode["CdnDomain"].isNull())
|
||||
data_.cdnDomain = dataNode["CdnDomain"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRumAppResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateRumAppResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
int CreateRumAppResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
CreateRumAppResult::Data CreateRumAppResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateRumAppResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateRumAppResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
99
arms/src/model/CreateRumUploadFileUrlRequest.cc
Normal file
99
arms/src/model/CreateRumUploadFileUrlRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateRumUploadFileUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateRumUploadFileUrlRequest;
|
||||
|
||||
CreateRumUploadFileUrlRequest::CreateRumUploadFileUrlRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateRumUploadFileUrl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRumUploadFileUrlRequest::~CreateRumUploadFileUrlRequest() {}
|
||||
|
||||
std::string CreateRumUploadFileUrlRequest::getSourcemapType() const {
|
||||
return sourcemapType_;
|
||||
}
|
||||
|
||||
void CreateRumUploadFileUrlRequest::setSourcemapType(const std::string &sourcemapType) {
|
||||
sourcemapType_ = sourcemapType;
|
||||
setParameter(std::string("SourcemapType"), sourcemapType);
|
||||
}
|
||||
|
||||
std::string CreateRumUploadFileUrlRequest::getPid() const {
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void CreateRumUploadFileUrlRequest::setPid(const std::string &pid) {
|
||||
pid_ = pid;
|
||||
setParameter(std::string("Pid"), pid);
|
||||
}
|
||||
|
||||
std::string CreateRumUploadFileUrlRequest::getUuid() const {
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void CreateRumUploadFileUrlRequest::setUuid(const std::string &uuid) {
|
||||
uuid_ = uuid;
|
||||
setParameter(std::string("Uuid"), uuid);
|
||||
}
|
||||
|
||||
std::string CreateRumUploadFileUrlRequest::getContentType() const {
|
||||
return contentType_;
|
||||
}
|
||||
|
||||
void CreateRumUploadFileUrlRequest::setContentType(const std::string &contentType) {
|
||||
contentType_ = contentType;
|
||||
setParameter(std::string("ContentType"), contentType);
|
||||
}
|
||||
|
||||
std::string CreateRumUploadFileUrlRequest::getVersionId() const {
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void CreateRumUploadFileUrlRequest::setVersionId(const std::string &versionId) {
|
||||
versionId_ = versionId;
|
||||
setParameter(std::string("VersionId"), versionId);
|
||||
}
|
||||
|
||||
std::string CreateRumUploadFileUrlRequest::getFileName() const {
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void CreateRumUploadFileUrlRequest::setFileName(const std::string &fileName) {
|
||||
fileName_ = fileName;
|
||||
setParameter(std::string("FileName"), fileName);
|
||||
}
|
||||
|
||||
std::string CreateRumUploadFileUrlRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateRumUploadFileUrlRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string CreateRumUploadFileUrlRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateRumUploadFileUrlRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
79
arms/src/model/CreateRumUploadFileUrlResult.cc
Normal file
79
arms/src/model/CreateRumUploadFileUrlResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateRumUploadFileUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateRumUploadFileUrlResult::CreateRumUploadFileUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRumUploadFileUrlResult::CreateRumUploadFileUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRumUploadFileUrlResult::~CreateRumUploadFileUrlResult()
|
||||
{}
|
||||
|
||||
void CreateRumUploadFileUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRumUploadFileUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateRumUploadFileUrlResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateRumUploadFileUrlResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateRumUploadFileUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateRumUploadFileUrlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
250
arms/src/model/CreateTimingSyntheticTaskRequest.cc
Normal file
250
arms/src/model/CreateTimingSyntheticTaskRequest.cc
Normal file
@@ -0,0 +1,250 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateTimingSyntheticTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateTimingSyntheticTaskRequest;
|
||||
|
||||
CreateTimingSyntheticTaskRequest::CreateTimingSyntheticTaskRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "CreateTimingSyntheticTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTimingSyntheticTaskRequest::~CreateTimingSyntheticTaskRequest() {}
|
||||
|
||||
std::vector<CreateTimingSyntheticTaskRequest::AvailableAssertions> CreateTimingSyntheticTaskRequest::getAvailableAssertions() const {
|
||||
return availableAssertions_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setAvailableAssertions(const std::vector<CreateTimingSyntheticTaskRequest::AvailableAssertions> &availableAssertions) {
|
||||
availableAssertions_ = availableAssertions;
|
||||
for(int dep1 = 0; dep1 != availableAssertions.size(); dep1++) {
|
||||
setParameter(std::string("AvailableAssertions") + "." + std::to_string(dep1 + 1) + ".Expect", availableAssertions[dep1].expect);
|
||||
setParameter(std::string("AvailableAssertions") + "." + std::to_string(dep1 + 1) + ".Type", availableAssertions[dep1].type);
|
||||
setParameter(std::string("AvailableAssertions") + "." + std::to_string(dep1 + 1) + ".Operator", availableAssertions[dep1]._operator);
|
||||
setParameter(std::string("AvailableAssertions") + "." + std::to_string(dep1 + 1) + ".Target", availableAssertions[dep1].target);
|
||||
}
|
||||
}
|
||||
|
||||
int CreateTimingSyntheticTaskRequest::getTaskType() const {
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setTaskType(int taskType) {
|
||||
taskType_ = taskType;
|
||||
setParameter(std::string("TaskType"), std::to_string(taskType));
|
||||
}
|
||||
|
||||
CreateTimingSyntheticTaskRequest::CommonSetting CreateTimingSyntheticTaskRequest::getCommonSetting() const {
|
||||
return commonSetting_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setCommonSetting(const CreateTimingSyntheticTaskRequest::CommonSetting &commonSetting) {
|
||||
commonSetting_ = commonSetting;
|
||||
for(auto const &iter1 : commonSetting.customPrometheusSetting.prometheusLabels) {
|
||||
setParameter(std::string("CommonSetting") + ".CustomPrometheusSetting.PrometheusLabels." + iter1.first, iter1.second);
|
||||
}
|
||||
setParameter(std::string("CommonSetting") + ".CustomPrometheusSetting.PrometheusClusterRegion", commonSetting.customPrometheusSetting.prometheusClusterRegion);
|
||||
setParameter(std::string("CommonSetting") + ".CustomPrometheusSetting.PrometheusClusterId", commonSetting.customPrometheusSetting.prometheusClusterId);
|
||||
for(int dep1 = 0; dep1 != commonSetting.customHost.hosts.size(); dep1++) {
|
||||
setParameter(std::string("CommonSetting") + ".CustomHost.Hosts." + std::to_string(dep1 + 1) + ".Domain", commonSetting.customHost.hosts[dep1].domain);
|
||||
setParameter(std::string("CommonSetting") + ".CustomHost.Hosts." + std::to_string(dep1 + 1) + ".IpType", std::to_string(commonSetting.customHost.hosts[dep1].ipType));
|
||||
for(int dep2 = 0; dep2 != commonSetting.customHost.hosts[dep1].ips.size(); dep2++) {
|
||||
setParameter(std::string("CommonSetting") + ".CustomHost.Hosts." + std::to_string(dep1 + 1) + ".Ips." + std::to_string(dep2 + 1), commonSetting.customHost.hosts[dep1].ips[dep2]);
|
||||
}
|
||||
}
|
||||
setParameter(std::string("CommonSetting") + ".CustomHost.SelectType", std::to_string(commonSetting.customHost.selectType));
|
||||
setParameter(std::string("CommonSetting") + ".XtraceRegion", commonSetting.xtraceRegion);
|
||||
setParameter(std::string("CommonSetting") + ".IpType", std::to_string(commonSetting.ipType));
|
||||
setParameter(std::string("CommonSetting") + ".IsOpenTrace", commonSetting.isOpenTrace ? "true" : "false");
|
||||
setParameter(std::string("CommonSetting") + ".TraceClientType", std::to_string(commonSetting.traceClientType));
|
||||
setParameter(std::string("CommonSetting") + ".CustomVPCSetting.VSwitchId", commonSetting.customVPCSetting.vSwitchId);
|
||||
setParameter(std::string("CommonSetting") + ".CustomVPCSetting.SecureGroupId", commonSetting.customVPCSetting.secureGroupId);
|
||||
setParameter(std::string("CommonSetting") + ".CustomVPCSetting.RegionId", commonSetting.customVPCSetting.regionId);
|
||||
setParameter(std::string("CommonSetting") + ".CustomVPCSetting.VpcId", commonSetting.customVPCSetting.vpcId);
|
||||
setParameter(std::string("CommonSetting") + ".MonitorSamples", std::to_string(commonSetting.monitorSamples));
|
||||
}
|
||||
|
||||
int CreateTimingSyntheticTaskRequest::getMonitorCategory() const {
|
||||
return monitorCategory_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setMonitorCategory(int monitorCategory) {
|
||||
monitorCategory_ = monitorCategory;
|
||||
setParameter(std::string("MonitorCategory"), std::to_string(monitorCategory));
|
||||
}
|
||||
|
||||
std::string CreateTimingSyntheticTaskRequest::getFrequency() const {
|
||||
return frequency_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setFrequency(const std::string &frequency) {
|
||||
frequency_ = frequency;
|
||||
setParameter(std::string("Frequency"), frequency);
|
||||
}
|
||||
|
||||
std::vector<CreateTimingSyntheticTaskRequest::Tags> CreateTimingSyntheticTaskRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setTags(const std::vector<CreateTimingSyntheticTaskRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Value", tags[dep1].value);
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Key", tags[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateTimingSyntheticTaskRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
CreateTimingSyntheticTaskRequest::MonitorConf CreateTimingSyntheticTaskRequest::getMonitorConf() const {
|
||||
return monitorConf_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setMonitorConf(const CreateTimingSyntheticTaskRequest::MonitorConf &monitorConf) {
|
||||
monitorConf_ = monitorConf;
|
||||
setParameter(std::string("MonitorConf") + ".NetICMP.TracertTimeout", std::to_string(monitorConf.netICMP.tracertTimeout));
|
||||
setParameter(std::string("MonitorConf") + ".NetICMP.Interval", std::to_string(monitorConf.netICMP.interval));
|
||||
setParameter(std::string("MonitorConf") + ".NetICMP.SplitPackage", monitorConf.netICMP.splitPackage ? "true" : "false");
|
||||
setParameter(std::string("MonitorConf") + ".NetICMP.PackageSize", std::to_string(monitorConf.netICMP.packageSize));
|
||||
setParameter(std::string("MonitorConf") + ".NetICMP.TracertEnable", monitorConf.netICMP.tracertEnable ? "true" : "false");
|
||||
setParameter(std::string("MonitorConf") + ".NetICMP.TargetUrl", monitorConf.netICMP.targetUrl);
|
||||
setParameter(std::string("MonitorConf") + ".NetICMP.Timeout", std::to_string(monitorConf.netICMP.timeout));
|
||||
setParameter(std::string("MonitorConf") + ".NetICMP.PackageNum", std::to_string(monitorConf.netICMP.packageNum));
|
||||
setParameter(std::string("MonitorConf") + ".NetICMP.TracertNumMax", std::to_string(monitorConf.netICMP.tracertNumMax));
|
||||
setParameter(std::string("MonitorConf") + ".ApiHTTP.ConnectTimeout", std::to_string(monitorConf.apiHTTP.connectTimeout));
|
||||
setParameter(std::string("MonitorConf") + ".ApiHTTP.RequestBody.Type", monitorConf.apiHTTP.requestBody.type);
|
||||
setParameter(std::string("MonitorConf") + ".ApiHTTP.RequestBody.Content", monitorConf.apiHTTP.requestBody.content);
|
||||
setParameter(std::string("MonitorConf") + ".ApiHTTP.Method", monitorConf.apiHTTP.method);
|
||||
setParameter(std::string("MonitorConf") + ".ApiHTTP.CheckCert", monitorConf.apiHTTP.checkCert ? "true" : "false");
|
||||
setParameter(std::string("MonitorConf") + ".ApiHTTP.ProtocolAlpnProtocol", std::to_string(monitorConf.apiHTTP.protocolAlpnProtocol));
|
||||
for(auto const &iter1 : monitorConf.apiHTTP.requestHeaders) {
|
||||
setParameter(std::string("MonitorConf") + ".ApiHTTP.RequestHeaders." + iter1.first, iter1.second);
|
||||
}
|
||||
setParameter(std::string("MonitorConf") + ".ApiHTTP.TargetUrl", monitorConf.apiHTTP.targetUrl);
|
||||
setParameter(std::string("MonitorConf") + ".ApiHTTP.Timeout", std::to_string(monitorConf.apiHTTP.timeout));
|
||||
setParameter(std::string("MonitorConf") + ".Website.FlowHijackJumpTimes", std::to_string(monitorConf.website.flowHijackJumpTimes));
|
||||
setParameter(std::string("MonitorConf") + ".Website.DNSHijackWhitelist", monitorConf.website.dNSHijackWhitelist);
|
||||
setParameter(std::string("MonitorConf") + ".Website.SlowElementThreshold", std::to_string(monitorConf.website.slowElementThreshold));
|
||||
setParameter(std::string("MonitorConf") + ".Website.VerifyStringBlacklist", monitorConf.website.verifyStringBlacklist);
|
||||
setParameter(std::string("MonitorConf") + ".Website.CustomHeader", std::to_string(monitorConf.website.customHeader));
|
||||
setParameter(std::string("MonitorConf") + ".Website.WaitCompletionTime", std::to_string(monitorConf.website.waitCompletionTime));
|
||||
setParameter(std::string("MonitorConf") + ".Website.DisableCompression", std::to_string(monitorConf.website.disableCompression));
|
||||
setParameter(std::string("MonitorConf") + ".Website.MonitorTimeout", std::to_string(monitorConf.website.monitorTimeout));
|
||||
setParameter(std::string("MonitorConf") + ".Website.VerifyStringWhitelist", monitorConf.website.verifyStringWhitelist);
|
||||
for(auto const &iter1 : monitorConf.website.customHeaderContent) {
|
||||
setParameter(std::string("MonitorConf") + ".Website.CustomHeaderContent." + iter1.first, iter1.second);
|
||||
}
|
||||
setParameter(std::string("MonitorConf") + ".Website.FilterInvalidIP", std::to_string(monitorConf.website.filterInvalidIP));
|
||||
setParameter(std::string("MonitorConf") + ".Website.DisableCache", std::to_string(monitorConf.website.disableCache));
|
||||
setParameter(std::string("MonitorConf") + ".Website.PageTamper", monitorConf.website.pageTamper);
|
||||
setParameter(std::string("MonitorConf") + ".Website.FlowHijackLogo", monitorConf.website.flowHijackLogo);
|
||||
setParameter(std::string("MonitorConf") + ".Website.AutomaticScrolling", std::to_string(monitorConf.website.automaticScrolling));
|
||||
setParameter(std::string("MonitorConf") + ".Website.TargetUrl", monitorConf.website.targetUrl);
|
||||
setParameter(std::string("MonitorConf") + ".Website.Redirection", std::to_string(monitorConf.website.redirection));
|
||||
setParameter(std::string("MonitorConf") + ".Website.IgnoreCertificateError", std::to_string(monitorConf.website.ignoreCertificateError));
|
||||
setParameter(std::string("MonitorConf") + ".Website.ElementBlacklist", monitorConf.website.elementBlacklist);
|
||||
setParameter(std::string("MonitorConf") + ".Stream.PlayerType", std::to_string(monitorConf.stream.playerType));
|
||||
setParameter(std::string("MonitorConf") + ".Stream.StreamType", std::to_string(monitorConf.stream.streamType));
|
||||
setParameter(std::string("MonitorConf") + ".Stream.StreamAddressType", std::to_string(monitorConf.stream.streamAddressType));
|
||||
for(auto const &iter1 : monitorConf.stream.customHeaderContent) {
|
||||
setParameter(std::string("MonitorConf") + ".Stream.CustomHeaderContent." + iter1.first, iter1.second);
|
||||
}
|
||||
setParameter(std::string("MonitorConf") + ".Stream.StreamMonitorTimeout", std::to_string(monitorConf.stream.streamMonitorTimeout));
|
||||
setParameter(std::string("MonitorConf") + ".Stream.WhiteList", monitorConf.stream.whiteList);
|
||||
setParameter(std::string("MonitorConf") + ".Stream.TargetUrl", monitorConf.stream.targetUrl);
|
||||
setParameter(std::string("MonitorConf") + ".NetDNS.NsServer", monitorConf.netDNS.nsServer);
|
||||
setParameter(std::string("MonitorConf") + ".NetDNS.QueryMethod", std::to_string(monitorConf.netDNS.queryMethod));
|
||||
setParameter(std::string("MonitorConf") + ".NetDNS.TargetUrl", monitorConf.netDNS.targetUrl);
|
||||
setParameter(std::string("MonitorConf") + ".NetDNS.DnsServerIpType", std::to_string(monitorConf.netDNS.dnsServerIpType));
|
||||
setParameter(std::string("MonitorConf") + ".NetDNS.Timeout", std::to_string(monitorConf.netDNS.timeout));
|
||||
setParameter(std::string("MonitorConf") + ".NetTCP.ConnectTimes", std::to_string(monitorConf.netTCP.connectTimes));
|
||||
setParameter(std::string("MonitorConf") + ".NetTCP.TracertTimeout", std::to_string(monitorConf.netTCP.tracertTimeout));
|
||||
setParameter(std::string("MonitorConf") + ".NetTCP.Interval", std::to_string(monitorConf.netTCP.interval));
|
||||
setParameter(std::string("MonitorConf") + ".NetTCP.TracertEnable", monitorConf.netTCP.tracertEnable ? "true" : "false");
|
||||
setParameter(std::string("MonitorConf") + ".NetTCP.TargetUrl", monitorConf.netTCP.targetUrl);
|
||||
setParameter(std::string("MonitorConf") + ".NetTCP.Timeout", std::to_string(monitorConf.netTCP.timeout));
|
||||
setParameter(std::string("MonitorConf") + ".NetTCP.TracertNumMax", std::to_string(monitorConf.netTCP.tracertNumMax));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.IgnoreCertificateUntrustworthyError", std::to_string(monitorConf.fileDownload.ignoreCertificateUntrustworthyError));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.ConnectionTimeout", std::to_string(monitorConf.fileDownload.connectionTimeout));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.IgnoreCertificateCanceledError", std::to_string(monitorConf.fileDownload.ignoreCertificateCanceledError));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.IgnoreCertificateOutOfDateError", std::to_string(monitorConf.fileDownload.ignoreCertificateOutOfDateError));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.DownloadKernel", std::to_string(monitorConf.fileDownload.downloadKernel));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.WhiteList", monitorConf.fileDownload.whiteList);
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.IgnoreCertificateAuthError", std::to_string(monitorConf.fileDownload.ignoreCertificateAuthError));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.MonitorTimeout", std::to_string(monitorConf.fileDownload.monitorTimeout));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.ValidateKeywords", monitorConf.fileDownload.validateKeywords);
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.IgnoreInvalidHostError", std::to_string(monitorConf.fileDownload.ignoreInvalidHostError));
|
||||
for(auto const &iter1 : monitorConf.fileDownload.customHeaderContent) {
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.CustomHeaderContent." + iter1.first, iter1.second);
|
||||
}
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.TransmissionSize", std::to_string(monitorConf.fileDownload.transmissionSize));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.IgnoreCertificateUsingError", std::to_string(monitorConf.fileDownload.ignoreCertificateUsingError));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.QuickProtocol", std::to_string(monitorConf.fileDownload.quickProtocol));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.IgnoreCertificateStatusError", std::to_string(monitorConf.fileDownload.ignoreCertificateStatusError));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.TargetUrl", monitorConf.fileDownload.targetUrl);
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.Redirection", std::to_string(monitorConf.fileDownload.redirection));
|
||||
setParameter(std::string("MonitorConf") + ".FileDownload.VerifyWay", std::to_string(monitorConf.fileDownload.verifyWay));
|
||||
}
|
||||
|
||||
std::string CreateTimingSyntheticTaskRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
CreateTimingSyntheticTaskRequest::CustomPeriod CreateTimingSyntheticTaskRequest::getCustomPeriod() const {
|
||||
return customPeriod_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setCustomPeriod(const CreateTimingSyntheticTaskRequest::CustomPeriod &customPeriod) {
|
||||
customPeriod_ = customPeriod;
|
||||
setParameter(std::string("CustomPeriod") + ".EndHour", std::to_string(customPeriod.endHour));
|
||||
setParameter(std::string("CustomPeriod") + ".StartHour", std::to_string(customPeriod.startHour));
|
||||
}
|
||||
|
||||
std::string CreateTimingSyntheticTaskRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::vector<CreateTimingSyntheticTaskRequest::Monitors> CreateTimingSyntheticTaskRequest::getMonitors() const {
|
||||
return monitors_;
|
||||
}
|
||||
|
||||
void CreateTimingSyntheticTaskRequest::setMonitors(const std::vector<CreateTimingSyntheticTaskRequest::Monitors> &monitors) {
|
||||
monitors_ = monitors;
|
||||
for(int dep1 = 0; dep1 != monitors.size(); dep1++) {
|
||||
setParameter(std::string("Monitors") + "." + std::to_string(dep1 + 1) + ".ClientType", std::to_string(monitors[dep1].clientType));
|
||||
setParameter(std::string("Monitors") + "." + std::to_string(dep1 + 1) + ".CityCode", monitors[dep1].cityCode);
|
||||
setParameter(std::string("Monitors") + "." + std::to_string(dep1 + 1) + ".OperatorCode", monitors[dep1].operatorCode);
|
||||
}
|
||||
}
|
||||
|
||||
75
arms/src/model/CreateTimingSyntheticTaskResult.cc
Normal file
75
arms/src/model/CreateTimingSyntheticTaskResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateTimingSyntheticTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateTimingSyntheticTaskResult::CreateTimingSyntheticTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTimingSyntheticTaskResult::CreateTimingSyntheticTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTimingSyntheticTaskResult::~CreateTimingSyntheticTaskResult()
|
||||
{}
|
||||
|
||||
void CreateTimingSyntheticTaskResult::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["TaskId"].isNull())
|
||||
data_.taskId = dataNode["TaskId"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTimingSyntheticTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateTimingSyntheticTaskResult::Data CreateTimingSyntheticTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
long CreateTimingSyntheticTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateTimingSyntheticTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
arms/src/model/DeleteAddonReleaseRequest.cc
Normal file
72
arms/src/model/DeleteAddonReleaseRequest.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/DeleteAddonReleaseRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAddonReleaseRequest;
|
||||
|
||||
DeleteAddonReleaseRequest::DeleteAddonReleaseRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteAddonRelease") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAddonReleaseRequest::~DeleteAddonReleaseRequest() {}
|
||||
|
||||
std::string DeleteAddonReleaseRequest::getReleaseName() const {
|
||||
return releaseName_;
|
||||
}
|
||||
|
||||
void DeleteAddonReleaseRequest::setReleaseName(const std::string &releaseName) {
|
||||
releaseName_ = releaseName;
|
||||
setParameter(std::string("ReleaseName"), releaseName);
|
||||
}
|
||||
|
||||
std::string DeleteAddonReleaseRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void DeleteAddonReleaseRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string DeleteAddonReleaseRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteAddonReleaseRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteAddonReleaseRequest::getAddonName() const {
|
||||
return addonName_;
|
||||
}
|
||||
|
||||
void DeleteAddonReleaseRequest::setAddonName(const std::string &addonName) {
|
||||
addonName_ = addonName;
|
||||
setParameter(std::string("AddonName"), addonName);
|
||||
}
|
||||
|
||||
bool DeleteAddonReleaseRequest::getForce() const {
|
||||
return force_;
|
||||
}
|
||||
|
||||
void DeleteAddonReleaseRequest::setForce(bool force) {
|
||||
force_ = force;
|
||||
setParameter(std::string("Force"), force ? "true" : "false");
|
||||
}
|
||||
|
||||
72
arms/src/model/DeleteAddonReleaseResult.cc
Normal file
72
arms/src/model/DeleteAddonReleaseResult.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/DeleteAddonReleaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteAddonReleaseResult::DeleteAddonReleaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAddonReleaseResult::DeleteAddonReleaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAddonReleaseResult::~DeleteAddonReleaseResult()
|
||||
{}
|
||||
|
||||
void DeleteAddonReleaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAddonReleaseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteAddonReleaseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteAddonReleaseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteAddonReleaseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
44
arms/src/model/DeleteAppListRequest.cc
Normal file
44
arms/src/model/DeleteAppListRequest.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/DeleteAppListRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAppListRequest;
|
||||
|
||||
DeleteAppListRequest::DeleteAppListRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteAppList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAppListRequest::~DeleteAppListRequest() {}
|
||||
|
||||
std::string DeleteAppListRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteAppListRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteAppListRequest::getPids() const {
|
||||
return pids_;
|
||||
}
|
||||
|
||||
void DeleteAppListRequest::setPids(const std::vector<std::string> &pids) {
|
||||
pids_ = pids;
|
||||
}
|
||||
|
||||
72
arms/src/model/DeleteAppListResult.cc
Normal file
72
arms/src/model/DeleteAppListResult.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/DeleteAppListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteAppListResult::DeleteAppListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAppListResult::DeleteAppListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAppListResult::~DeleteAppListResult()
|
||||
{}
|
||||
|
||||
void DeleteAppListResult::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();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAppListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteAppListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
long DeleteAppListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteAppListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
arms/src/model/DeleteEnvCustomJobRequest.cc
Normal file
54
arms/src/model/DeleteEnvCustomJobRequest.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/DeleteEnvCustomJobRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteEnvCustomJobRequest;
|
||||
|
||||
DeleteEnvCustomJobRequest::DeleteEnvCustomJobRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteEnvCustomJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEnvCustomJobRequest::~DeleteEnvCustomJobRequest() {}
|
||||
|
||||
std::string DeleteEnvCustomJobRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void DeleteEnvCustomJobRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string DeleteEnvCustomJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteEnvCustomJobRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteEnvCustomJobRequest::getCustomJobName() const {
|
||||
return customJobName_;
|
||||
}
|
||||
|
||||
void DeleteEnvCustomJobRequest::setCustomJobName(const std::string &customJobName) {
|
||||
customJobName_ = customJobName;
|
||||
setParameter(std::string("CustomJobName"), customJobName);
|
||||
}
|
||||
|
||||
65
arms/src/model/DeleteEnvCustomJobResult.cc
Normal file
65
arms/src/model/DeleteEnvCustomJobResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteEnvCustomJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteEnvCustomJobResult::DeleteEnvCustomJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEnvCustomJobResult::DeleteEnvCustomJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEnvCustomJobResult::~DeleteEnvCustomJobResult()
|
||||
{}
|
||||
|
||||
void DeleteEnvCustomJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEnvCustomJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteEnvCustomJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteEnvCustomJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
arms/src/model/DeleteEnvPodMonitorRequest.cc
Normal file
63
arms/src/model/DeleteEnvPodMonitorRequest.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/DeleteEnvPodMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteEnvPodMonitorRequest;
|
||||
|
||||
DeleteEnvPodMonitorRequest::DeleteEnvPodMonitorRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteEnvPodMonitor") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEnvPodMonitorRequest::~DeleteEnvPodMonitorRequest() {}
|
||||
|
||||
std::string DeleteEnvPodMonitorRequest::getPodMonitorName() const {
|
||||
return podMonitorName_;
|
||||
}
|
||||
|
||||
void DeleteEnvPodMonitorRequest::setPodMonitorName(const std::string &podMonitorName) {
|
||||
podMonitorName_ = podMonitorName;
|
||||
setParameter(std::string("PodMonitorName"), podMonitorName);
|
||||
}
|
||||
|
||||
std::string DeleteEnvPodMonitorRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void DeleteEnvPodMonitorRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string DeleteEnvPodMonitorRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteEnvPodMonitorRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteEnvPodMonitorRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DeleteEnvPodMonitorRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
65
arms/src/model/DeleteEnvPodMonitorResult.cc
Normal file
65
arms/src/model/DeleteEnvPodMonitorResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteEnvPodMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteEnvPodMonitorResult::DeleteEnvPodMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEnvPodMonitorResult::DeleteEnvPodMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEnvPodMonitorResult::~DeleteEnvPodMonitorResult()
|
||||
{}
|
||||
|
||||
void DeleteEnvPodMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEnvPodMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteEnvPodMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteEnvPodMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
arms/src/model/DeleteEnvServiceMonitorRequest.cc
Normal file
63
arms/src/model/DeleteEnvServiceMonitorRequest.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/DeleteEnvServiceMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteEnvServiceMonitorRequest;
|
||||
|
||||
DeleteEnvServiceMonitorRequest::DeleteEnvServiceMonitorRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteEnvServiceMonitor") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEnvServiceMonitorRequest::~DeleteEnvServiceMonitorRequest() {}
|
||||
|
||||
std::string DeleteEnvServiceMonitorRequest::getServiceMonitorName() const {
|
||||
return serviceMonitorName_;
|
||||
}
|
||||
|
||||
void DeleteEnvServiceMonitorRequest::setServiceMonitorName(const std::string &serviceMonitorName) {
|
||||
serviceMonitorName_ = serviceMonitorName;
|
||||
setParameter(std::string("ServiceMonitorName"), serviceMonitorName);
|
||||
}
|
||||
|
||||
std::string DeleteEnvServiceMonitorRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void DeleteEnvServiceMonitorRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string DeleteEnvServiceMonitorRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteEnvServiceMonitorRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteEnvServiceMonitorRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DeleteEnvServiceMonitorRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
65
arms/src/model/DeleteEnvServiceMonitorResult.cc
Normal file
65
arms/src/model/DeleteEnvServiceMonitorResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteEnvServiceMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteEnvServiceMonitorResult::DeleteEnvServiceMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEnvServiceMonitorResult::DeleteEnvServiceMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEnvServiceMonitorResult::~DeleteEnvServiceMonitorResult()
|
||||
{}
|
||||
|
||||
void DeleteEnvServiceMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEnvServiceMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteEnvServiceMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteEnvServiceMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
arms/src/model/DeleteEnvironmentFeatureRequest.cc
Normal file
54
arms/src/model/DeleteEnvironmentFeatureRequest.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/DeleteEnvironmentFeatureRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteEnvironmentFeatureRequest;
|
||||
|
||||
DeleteEnvironmentFeatureRequest::DeleteEnvironmentFeatureRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteEnvironmentFeature") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEnvironmentFeatureRequest::~DeleteEnvironmentFeatureRequest() {}
|
||||
|
||||
std::string DeleteEnvironmentFeatureRequest::getFeatureName() const {
|
||||
return featureName_;
|
||||
}
|
||||
|
||||
void DeleteEnvironmentFeatureRequest::setFeatureName(const std::string &featureName) {
|
||||
featureName_ = featureName;
|
||||
setParameter(std::string("FeatureName"), featureName);
|
||||
}
|
||||
|
||||
std::string DeleteEnvironmentFeatureRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void DeleteEnvironmentFeatureRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string DeleteEnvironmentFeatureRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteEnvironmentFeatureRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
72
arms/src/model/DeleteEnvironmentFeatureResult.cc
Normal file
72
arms/src/model/DeleteEnvironmentFeatureResult.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/DeleteEnvironmentFeatureResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteEnvironmentFeatureResult::DeleteEnvironmentFeatureResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEnvironmentFeatureResult::DeleteEnvironmentFeatureResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEnvironmentFeatureResult::~DeleteEnvironmentFeatureResult()
|
||||
{}
|
||||
|
||||
void DeleteEnvironmentFeatureResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEnvironmentFeatureResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteEnvironmentFeatureResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteEnvironmentFeatureResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteEnvironmentFeatureResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
arms/src/model/DeleteEnvironmentRequest.cc
Normal file
54
arms/src/model/DeleteEnvironmentRequest.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/DeleteEnvironmentRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteEnvironmentRequest;
|
||||
|
||||
DeleteEnvironmentRequest::DeleteEnvironmentRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteEnvironment") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEnvironmentRequest::~DeleteEnvironmentRequest() {}
|
||||
|
||||
bool DeleteEnvironmentRequest::getDeletePromInstance() const {
|
||||
return deletePromInstance_;
|
||||
}
|
||||
|
||||
void DeleteEnvironmentRequest::setDeletePromInstance(bool deletePromInstance) {
|
||||
deletePromInstance_ = deletePromInstance;
|
||||
setParameter(std::string("DeletePromInstance"), deletePromInstance ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteEnvironmentRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void DeleteEnvironmentRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string DeleteEnvironmentRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteEnvironmentRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
65
arms/src/model/DeleteEnvironmentResult.cc
Normal file
65
arms/src/model/DeleteEnvironmentResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteEnvironmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteEnvironmentResult::DeleteEnvironmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEnvironmentResult::DeleteEnvironmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEnvironmentResult::~DeleteEnvironmentResult()
|
||||
{}
|
||||
|
||||
void DeleteEnvironmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEnvironmentResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteEnvironmentResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteEnvironmentResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -41,11 +41,25 @@ void DeleteGrafanaResourceResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaResourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteGrafanaResourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
45
arms/src/model/DeleteGrafanaWorkspaceRequest.cc
Normal file
45
arms/src/model/DeleteGrafanaWorkspaceRequest.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/DeleteGrafanaWorkspaceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteGrafanaWorkspaceRequest;
|
||||
|
||||
DeleteGrafanaWorkspaceRequest::DeleteGrafanaWorkspaceRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteGrafanaWorkspace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGrafanaWorkspaceRequest::~DeleteGrafanaWorkspaceRequest() {}
|
||||
|
||||
std::string DeleteGrafanaWorkspaceRequest::getGrafanaWorkspaceId() const {
|
||||
return grafanaWorkspaceId_;
|
||||
}
|
||||
|
||||
void DeleteGrafanaWorkspaceRequest::setGrafanaWorkspaceId(const std::string &grafanaWorkspaceId) {
|
||||
grafanaWorkspaceId_ = grafanaWorkspaceId;
|
||||
setParameter(std::string("GrafanaWorkspaceId"), grafanaWorkspaceId);
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaWorkspaceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteGrafanaWorkspaceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
79
arms/src/model/DeleteGrafanaWorkspaceResult.cc
Normal file
79
arms/src/model/DeleteGrafanaWorkspaceResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteGrafanaWorkspaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteGrafanaWorkspaceResult::DeleteGrafanaWorkspaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteGrafanaWorkspaceResult::DeleteGrafanaWorkspaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteGrafanaWorkspaceResult::~DeleteGrafanaWorkspaceResult()
|
||||
{}
|
||||
|
||||
void DeleteGrafanaWorkspaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaWorkspaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteGrafanaWorkspaceResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
bool DeleteGrafanaWorkspaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteGrafanaWorkspaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteGrafanaWorkspaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -41,11 +41,25 @@ void DeleteIntegrationResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteIntegrationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteIntegrationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteIntegrationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,3 +34,12 @@ void DeletePrometheusAlertRuleRequest::setAlertId(long alertId) {
|
||||
setParameter(std::string("AlertId"), std::to_string(alertId));
|
||||
}
|
||||
|
||||
std::string DeletePrometheusAlertRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusAlertRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,9 +41,23 @@ void DeletePrometheusAlertRuleResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeletePrometheusAlertRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long DeletePrometheusAlertRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeletePrometheusAlertRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
|
||||
@@ -41,11 +41,25 @@ void DeletePrometheusGlobalViewResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeletePrometheusGlobalViewResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeletePrometheusGlobalViewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeletePrometheusGlobalViewResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
63
arms/src/model/DeletePrometheusIntegrationRequest.cc
Normal file
63
arms/src/model/DeletePrometheusIntegrationRequest.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/DeletePrometheusIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeletePrometheusIntegrationRequest;
|
||||
|
||||
DeletePrometheusIntegrationRequest::DeletePrometheusIntegrationRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeletePrometheusIntegration") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrometheusIntegrationRequest::~DeletePrometheusIntegrationRequest() {}
|
||||
|
||||
long DeletePrometheusIntegrationRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusIntegrationRequest::setInstanceId(long instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string DeletePrometheusIntegrationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusIntegrationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeletePrometheusIntegrationRequest::getIntegrationType() const {
|
||||
return integrationType_;
|
||||
}
|
||||
|
||||
void DeletePrometheusIntegrationRequest::setIntegrationType(const std::string &integrationType) {
|
||||
integrationType_ = integrationType;
|
||||
setParameter(std::string("IntegrationType"), integrationType);
|
||||
}
|
||||
|
||||
std::string DeletePrometheusIntegrationRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusIntegrationRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
65
arms/src/model/DeletePrometheusIntegrationResult.cc
Normal file
65
arms/src/model/DeletePrometheusIntegrationResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeletePrometheusIntegrationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeletePrometheusIntegrationResult::DeletePrometheusIntegrationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePrometheusIntegrationResult::DeletePrometheusIntegrationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePrometheusIntegrationResult::~DeletePrometheusIntegrationResult()
|
||||
{}
|
||||
|
||||
void DeletePrometheusIntegrationResult::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();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeletePrometheusIntegrationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeletePrometheusIntegrationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeletePrometheusIntegrationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
arms/src/model/DeletePrometheusMonitoringRequest.cc
Normal file
63
arms/src/model/DeletePrometheusMonitoringRequest.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/DeletePrometheusMonitoringRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeletePrometheusMonitoringRequest;
|
||||
|
||||
DeletePrometheusMonitoringRequest::DeletePrometheusMonitoringRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeletePrometheusMonitoring") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrometheusMonitoringRequest::~DeletePrometheusMonitoringRequest() {}
|
||||
|
||||
std::string DeletePrometheusMonitoringRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusMonitoringRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeletePrometheusMonitoringRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeletePrometheusMonitoringRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DeletePrometheusMonitoringRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeletePrometheusMonitoringRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string DeletePrometheusMonitoringRequest::getMonitoringName() const {
|
||||
return monitoringName_;
|
||||
}
|
||||
|
||||
void DeletePrometheusMonitoringRequest::setMonitoringName(const std::string &monitoringName) {
|
||||
monitoringName_ = monitoringName;
|
||||
setParameter(std::string("MonitoringName"), monitoringName);
|
||||
}
|
||||
|
||||
65
arms/src/model/DeletePrometheusMonitoringResult.cc
Normal file
65
arms/src/model/DeletePrometheusMonitoringResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeletePrometheusMonitoringResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeletePrometheusMonitoringResult::DeletePrometheusMonitoringResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePrometheusMonitoringResult::DeletePrometheusMonitoringResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePrometheusMonitoringResult::~DeletePrometheusMonitoringResult()
|
||||
{}
|
||||
|
||||
void DeletePrometheusMonitoringResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeletePrometheusMonitoringResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeletePrometheusMonitoringResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeletePrometheusMonitoringResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DeleteRetcodeAppRequest::DeleteRetcodeAppRequest()
|
||||
|
||||
DeleteRetcodeAppRequest::~DeleteRetcodeAppRequest() {}
|
||||
|
||||
std::string DeleteRetcodeAppRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DeleteRetcodeAppRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string DeleteRetcodeAppRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,3 +52,12 @@ void DeleteRetcodeAppRequest::setAppId(const std::string &appId) {
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string DeleteRetcodeAppRequest::getPid() const {
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void DeleteRetcodeAppRequest::setPid(const std::string &pid) {
|
||||
pid_ = pid;
|
||||
setParameter(std::string("Pid"), pid);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,11 +41,32 @@ void DeleteRetcodeAppResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteRetcodeAppResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteRetcodeAppResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteRetcodeAppResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteRetcodeAppResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
54
arms/src/model/DeleteRumAppRequest.cc
Normal file
54
arms/src/model/DeleteRumAppRequest.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/DeleteRumAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteRumAppRequest;
|
||||
|
||||
DeleteRumAppRequest::DeleteRumAppRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteRumApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRumAppRequest::~DeleteRumAppRequest() {}
|
||||
|
||||
std::string DeleteRumAppRequest::getAppGroup() const {
|
||||
return appGroup_;
|
||||
}
|
||||
|
||||
void DeleteRumAppRequest::setAppGroup(const std::string &appGroup) {
|
||||
appGroup_ = appGroup;
|
||||
setParameter(std::string("AppGroup"), appGroup);
|
||||
}
|
||||
|
||||
std::string DeleteRumAppRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRumAppRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteRumAppRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteRumAppRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
86
arms/src/model/DeleteRumAppResult.cc
Normal file
86
arms/src/model/DeleteRumAppResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteRumAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteRumAppResult::DeleteRumAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRumAppResult::DeleteRumAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRumAppResult::~DeleteRumAppResult()
|
||||
{}
|
||||
|
||||
void DeleteRumAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteRumAppResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteRumAppResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
int DeleteRumAppResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
int DeleteRumAppResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteRumAppResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DeleteRumAppResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
72
arms/src/model/DeleteRumUploadFileRequest.cc
Normal file
72
arms/src/model/DeleteRumUploadFileRequest.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/DeleteRumUploadFileRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteRumUploadFileRequest;
|
||||
|
||||
DeleteRumUploadFileRequest::DeleteRumUploadFileRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteRumUploadFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRumUploadFileRequest::~DeleteRumUploadFileRequest() {}
|
||||
|
||||
std::string DeleteRumUploadFileRequest::getVersionId() const {
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void DeleteRumUploadFileRequest::setVersionId(const std::string &versionId) {
|
||||
versionId_ = versionId;
|
||||
setParameter(std::string("VersionId"), versionId);
|
||||
}
|
||||
|
||||
std::string DeleteRumUploadFileRequest::getFileName() const {
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void DeleteRumUploadFileRequest::setFileName(const std::string &fileName) {
|
||||
fileName_ = fileName;
|
||||
setParameter(std::string("FileName"), fileName);
|
||||
}
|
||||
|
||||
std::string DeleteRumUploadFileRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteRumUploadFileRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteRumUploadFileRequest::getPid() const {
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void DeleteRumUploadFileRequest::setPid(const std::string &pid) {
|
||||
pid_ = pid;
|
||||
setParameter(std::string("Pid"), pid);
|
||||
}
|
||||
|
||||
std::string DeleteRumUploadFileRequest::getUuid() const {
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DeleteRumUploadFileRequest::setUuid(const std::string &uuid) {
|
||||
uuid_ = uuid;
|
||||
setParameter(std::string("Uuid"), uuid);
|
||||
}
|
||||
|
||||
79
arms/src/model/DeleteRumUploadFileResult.cc
Normal file
79
arms/src/model/DeleteRumUploadFileResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteRumUploadFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteRumUploadFileResult::DeleteRumUploadFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRumUploadFileResult::DeleteRumUploadFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRumUploadFileResult::~DeleteRumUploadFileResult()
|
||||
{}
|
||||
|
||||
void DeleteRumUploadFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteRumUploadFileResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteRumUploadFileResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteRumUploadFileResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteRumUploadFileResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteRumUploadFileResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
arms/src/model/DeleteTimingSyntheticTaskRequest.cc
Normal file
54
arms/src/model/DeleteTimingSyntheticTaskRequest.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/DeleteTimingSyntheticTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteTimingSyntheticTaskRequest;
|
||||
|
||||
DeleteTimingSyntheticTaskRequest::DeleteTimingSyntheticTaskRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DeleteTimingSyntheticTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTimingSyntheticTaskRequest::~DeleteTimingSyntheticTaskRequest() {}
|
||||
|
||||
std::string DeleteTimingSyntheticTaskRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteTimingSyntheticTaskRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteTimingSyntheticTaskRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTimingSyntheticTaskRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTimingSyntheticTaskRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DeleteTimingSyntheticTaskRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
65
arms/src/model/DeleteTimingSyntheticTaskResult.cc
Normal file
65
arms/src/model/DeleteTimingSyntheticTaskResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteTimingSyntheticTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteTimingSyntheticTaskResult::DeleteTimingSyntheticTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTimingSyntheticTaskResult::DeleteTimingSyntheticTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTimingSyntheticTaskResult::~DeleteTimingSyntheticTaskResult()
|
||||
{}
|
||||
|
||||
void DeleteTimingSyntheticTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteTimingSyntheticTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DeleteTimingSyntheticTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
long DeleteTimingSyntheticTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,19 @@ DeleteTraceAppRequest::DeleteTraceAppRequest()
|
||||
|
||||
DeleteTraceAppRequest::~DeleteTraceAppRequest() {}
|
||||
|
||||
DeleteTraceAppRequest::DeleteReason DeleteTraceAppRequest::getDeleteReason() const {
|
||||
return deleteReason_;
|
||||
}
|
||||
|
||||
void DeleteTraceAppRequest::setDeleteReason(const DeleteTraceAppRequest::DeleteReason &deleteReason) {
|
||||
deleteReason_ = deleteReason;
|
||||
setParameter(std::string("DeleteReason") + ".Remark", deleteReason.remark);
|
||||
for(int dep1 = 0; dep1 != deleteReason.reasonIds.size(); dep1++) {
|
||||
setParameter(std::string("DeleteReason") + ".ReasonIds." + std::to_string(dep1 + 1) + ".Name", deleteReason.reasonIds[dep1].name);
|
||||
setParameter(std::string("DeleteReason") + ".ReasonIds." + std::to_string(dep1 + 1) + ".Id", std::to_string(deleteReason.reasonIds[dep1].id));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteTraceAppRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -41,11 +41,32 @@ void DeleteTraceAppResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteTraceAppResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteTraceAppResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
long DeleteTraceAppResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteTraceAppResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
54
arms/src/model/DescribeAddonReleaseRequest.cc
Normal file
54
arms/src/model/DescribeAddonReleaseRequest.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/DescribeAddonReleaseRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DescribeAddonReleaseRequest;
|
||||
|
||||
DescribeAddonReleaseRequest::DescribeAddonReleaseRequest()
|
||||
: RpcServiceRequest("arms", "2019-08-08", "DescribeAddonRelease") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAddonReleaseRequest::~DescribeAddonReleaseRequest() {}
|
||||
|
||||
std::string DescribeAddonReleaseRequest::getReleaseName() const {
|
||||
return releaseName_;
|
||||
}
|
||||
|
||||
void DescribeAddonReleaseRequest::setReleaseName(const std::string &releaseName) {
|
||||
releaseName_ = releaseName;
|
||||
setParameter(std::string("ReleaseName"), releaseName);
|
||||
}
|
||||
|
||||
std::string DescribeAddonReleaseRequest::getEnvironmentId() const {
|
||||
return environmentId_;
|
||||
}
|
||||
|
||||
void DescribeAddonReleaseRequest::setEnvironmentId(const std::string &environmentId) {
|
||||
environmentId_ = environmentId;
|
||||
setParameter(std::string("EnvironmentId"), environmentId);
|
||||
}
|
||||
|
||||
std::string DescribeAddonReleaseRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAddonReleaseRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
128
arms/src/model/DescribeAddonReleaseResult.cc
Normal file
128
arms/src/model/DescribeAddonReleaseResult.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeAddonReleaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DescribeAddonReleaseResult::DescribeAddonReleaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAddonReleaseResult::DescribeAddonReleaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAddonReleaseResult::~DescribeAddonReleaseResult()
|
||||
{}
|
||||
|
||||
void DescribeAddonReleaseResult::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["Config"].isNull())
|
||||
data_.config = dataNode["Config"].asString();
|
||||
auto releaseNode = dataNode["Release"];
|
||||
if(!releaseNode["AddonName"].isNull())
|
||||
data_.release.addonName = releaseNode["AddonName"].asString();
|
||||
if(!releaseNode["AlertRuleCount"].isNull())
|
||||
data_.release.alertRuleCount = std::stol(releaseNode["AlertRuleCount"].asString());
|
||||
if(!releaseNode["CreateTime"].isNull())
|
||||
data_.release.createTime = releaseNode["CreateTime"].asString();
|
||||
if(!releaseNode["DashboardCount"].isNull())
|
||||
data_.release.dashboardCount = std::stol(releaseNode["DashboardCount"].asString());
|
||||
if(!releaseNode["ExporterCount"].isNull())
|
||||
data_.release.exporterCount = std::stol(releaseNode["ExporterCount"].asString());
|
||||
if(!releaseNode["HaveConfig"].isNull())
|
||||
data_.release.haveConfig = releaseNode["HaveConfig"].asString() == "true";
|
||||
if(!releaseNode["InstallUserId"].isNull())
|
||||
data_.release.installUserId = releaseNode["InstallUserId"].asString();
|
||||
if(!releaseNode["Language"].isNull())
|
||||
data_.release.language = releaseNode["Language"].asString();
|
||||
if(!releaseNode["ReleaseId"].isNull())
|
||||
data_.release.releaseId = releaseNode["ReleaseId"].asString();
|
||||
if(!releaseNode["ReleaseName"].isNull())
|
||||
data_.release.releaseName = releaseNode["ReleaseName"].asString();
|
||||
if(!releaseNode["Scene"].isNull())
|
||||
data_.release.scene = releaseNode["Scene"].asString();
|
||||
if(!releaseNode["Status"].isNull())
|
||||
data_.release.status = releaseNode["Status"].asString();
|
||||
if(!releaseNode["UpdateTime"].isNull())
|
||||
data_.release.updateTime = releaseNode["UpdateTime"].asString();
|
||||
if(!releaseNode["UserID"].isNull())
|
||||
data_.release.userID = releaseNode["UserID"].asString();
|
||||
if(!releaseNode["Version"].isNull())
|
||||
data_.release.version = releaseNode["Version"].asString();
|
||||
if(!releaseNode["EnvironmentId"].isNull())
|
||||
data_.release.environmentId = releaseNode["EnvironmentId"].asString();
|
||||
if(!releaseNode["RegionId"].isNull())
|
||||
data_.release.regionId = releaseNode["RegionId"].asString();
|
||||
if(!releaseNode["Managed"].isNull())
|
||||
data_.release.managed = releaseNode["Managed"].asString() == "true";
|
||||
auto allConditionsNode = releaseNode["Conditions"]["conditionsItem"];
|
||||
for (auto releaseNodeConditionsconditionsItem : allConditionsNode)
|
||||
{
|
||||
Data::Release::ConditionsItem conditionsItemObject;
|
||||
if(!releaseNodeConditionsconditionsItem["FirstTransitionTime"].isNull())
|
||||
conditionsItemObject.firstTransitionTime = releaseNodeConditionsconditionsItem["FirstTransitionTime"].asString();
|
||||
if(!releaseNodeConditionsconditionsItem["LastTransitionTime"].isNull())
|
||||
conditionsItemObject.lastTransitionTime = releaseNodeConditionsconditionsItem["LastTransitionTime"].asString();
|
||||
if(!releaseNodeConditionsconditionsItem["Message"].isNull())
|
||||
conditionsItemObject.message = releaseNodeConditionsconditionsItem["Message"].asString();
|
||||
if(!releaseNodeConditionsconditionsItem["Reason"].isNull())
|
||||
conditionsItemObject.reason = releaseNodeConditionsconditionsItem["Reason"].asString();
|
||||
if(!releaseNodeConditionsconditionsItem["Status"].isNull())
|
||||
conditionsItemObject.status = releaseNodeConditionsconditionsItem["Status"].asString();
|
||||
if(!releaseNodeConditionsconditionsItem["Type"].isNull())
|
||||
conditionsItemObject.type = releaseNodeConditionsconditionsItem["Type"].asString();
|
||||
data_.release.conditions.push_back(conditionsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAddonReleaseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeAddonReleaseResult::Data DescribeAddonReleaseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeAddonReleaseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string DescribeAddonReleaseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -25,15 +25,6 @@ DescribeContactGroupsRequest::DescribeContactGroupsRequest()
|
||||
|
||||
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_;
|
||||
}
|
||||
@@ -43,15 +34,6 @@ void DescribeContactGroupsRequest::setIsDetail(bool 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_;
|
||||
}
|
||||
@@ -61,3 +43,48 @@ void DescribeContactGroupsRequest::setContactGroupName(const std::string &contac
|
||||
setParameter(std::string("ContactGroupName"), contactGroupName);
|
||||
}
|
||||
|
||||
std::string DescribeContactGroupsRequest::getVerbose() const {
|
||||
return verbose_;
|
||||
}
|
||||
|
||||
void DescribeContactGroupsRequest::setVerbose(const std::string &verbose) {
|
||||
verbose_ = verbose;
|
||||
setParameter(std::string("Verbose"), verbose);
|
||||
}
|
||||
|
||||
long DescribeContactGroupsRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void DescribeContactGroupsRequest::setSize(long size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
std::string DescribeContactGroupsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeContactGroupsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeContactGroupsRequest::getGroupIds() const {
|
||||
return groupIds_;
|
||||
}
|
||||
|
||||
void DescribeContactGroupsRequest::setGroupIds(const std::string &groupIds) {
|
||||
groupIds_ = groupIds;
|
||||
setParameter(std::string("GroupIds"), groupIds);
|
||||
}
|
||||
|
||||
long DescribeContactGroupsRequest::getPage() const {
|
||||
return page_;
|
||||
}
|
||||
|
||||
void DescribeContactGroupsRequest::setPage(long page) {
|
||||
page_ = page;
|
||||
setParameter(std::string("Page"), std::to_string(page));
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user