Supported API for GTM.
This commit is contained in:
@@ -663,6 +663,78 @@ AlidnsClient::CopyGtmConfigOutcomeCallable AlidnsClient::copyGtmConfigCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::CreatePdnsAppKeyOutcome AlidnsClient::createPdnsAppKey(const CreatePdnsAppKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreatePdnsAppKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreatePdnsAppKeyOutcome(CreatePdnsAppKeyResult(outcome.result()));
|
||||
else
|
||||
return CreatePdnsAppKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::createPdnsAppKeyAsync(const CreatePdnsAppKeyRequest& request, const CreatePdnsAppKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createPdnsAppKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::CreatePdnsAppKeyOutcomeCallable AlidnsClient::createPdnsAppKeyCallable(const CreatePdnsAppKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreatePdnsAppKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createPdnsAppKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::CreatePdnsUdpIpSegmentOutcome AlidnsClient::createPdnsUdpIpSegment(const CreatePdnsUdpIpSegmentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreatePdnsUdpIpSegmentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreatePdnsUdpIpSegmentOutcome(CreatePdnsUdpIpSegmentResult(outcome.result()));
|
||||
else
|
||||
return CreatePdnsUdpIpSegmentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::createPdnsUdpIpSegmentAsync(const CreatePdnsUdpIpSegmentRequest& request, const CreatePdnsUdpIpSegmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createPdnsUdpIpSegment(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::CreatePdnsUdpIpSegmentOutcomeCallable AlidnsClient::createPdnsUdpIpSegmentCallable(const CreatePdnsUdpIpSegmentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreatePdnsUdpIpSegmentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createPdnsUdpIpSegment(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DeleteCustomLinesOutcome AlidnsClient::deleteCustomLines(const DeleteCustomLinesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3075,6 +3147,402 @@ AlidnsClient::DescribeInstanceDomainsOutcomeCallable AlidnsClient::describeInsta
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsAccountSummaryOutcome AlidnsClient::describePdnsAccountSummary(const DescribePdnsAccountSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsAccountSummaryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsAccountSummaryOutcome(DescribePdnsAccountSummaryResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsAccountSummaryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsAccountSummaryAsync(const DescribePdnsAccountSummaryRequest& request, const DescribePdnsAccountSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsAccountSummary(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsAccountSummaryOutcomeCallable AlidnsClient::describePdnsAccountSummaryCallable(const DescribePdnsAccountSummaryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsAccountSummaryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsAccountSummary(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsAppKeyOutcome AlidnsClient::describePdnsAppKey(const DescribePdnsAppKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsAppKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsAppKeyOutcome(DescribePdnsAppKeyResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsAppKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsAppKeyAsync(const DescribePdnsAppKeyRequest& request, const DescribePdnsAppKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsAppKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsAppKeyOutcomeCallable AlidnsClient::describePdnsAppKeyCallable(const DescribePdnsAppKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsAppKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsAppKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsAppKeysOutcome AlidnsClient::describePdnsAppKeys(const DescribePdnsAppKeysRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsAppKeysOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsAppKeysOutcome(DescribePdnsAppKeysResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsAppKeysOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsAppKeysAsync(const DescribePdnsAppKeysRequest& request, const DescribePdnsAppKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsAppKeys(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsAppKeysOutcomeCallable AlidnsClient::describePdnsAppKeysCallable(const DescribePdnsAppKeysRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsAppKeysOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsAppKeys(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsOperateLogsOutcome AlidnsClient::describePdnsOperateLogs(const DescribePdnsOperateLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsOperateLogsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsOperateLogsOutcome(DescribePdnsOperateLogsResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsOperateLogsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsOperateLogsAsync(const DescribePdnsOperateLogsRequest& request, const DescribePdnsOperateLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsOperateLogs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsOperateLogsOutcomeCallable AlidnsClient::describePdnsOperateLogsCallable(const DescribePdnsOperateLogsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsOperateLogsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsOperateLogs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsRequestStatisticOutcome AlidnsClient::describePdnsRequestStatistic(const DescribePdnsRequestStatisticRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsRequestStatisticOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsRequestStatisticOutcome(DescribePdnsRequestStatisticResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsRequestStatisticOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsRequestStatisticAsync(const DescribePdnsRequestStatisticRequest& request, const DescribePdnsRequestStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsRequestStatistic(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsRequestStatisticOutcomeCallable AlidnsClient::describePdnsRequestStatisticCallable(const DescribePdnsRequestStatisticRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsRequestStatisticOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsRequestStatistic(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsRequestStatisticsOutcome AlidnsClient::describePdnsRequestStatistics(const DescribePdnsRequestStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsRequestStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsRequestStatisticsOutcome(DescribePdnsRequestStatisticsResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsRequestStatisticsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsRequestStatisticsAsync(const DescribePdnsRequestStatisticsRequest& request, const DescribePdnsRequestStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsRequestStatistics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsRequestStatisticsOutcomeCallable AlidnsClient::describePdnsRequestStatisticsCallable(const DescribePdnsRequestStatisticsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsRequestStatisticsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsRequestStatistics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsThreatLogsOutcome AlidnsClient::describePdnsThreatLogs(const DescribePdnsThreatLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsThreatLogsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsThreatLogsOutcome(DescribePdnsThreatLogsResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsThreatLogsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsThreatLogsAsync(const DescribePdnsThreatLogsRequest& request, const DescribePdnsThreatLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsThreatLogs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsThreatLogsOutcomeCallable AlidnsClient::describePdnsThreatLogsCallable(const DescribePdnsThreatLogsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsThreatLogsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsThreatLogs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsThreatStatisticOutcome AlidnsClient::describePdnsThreatStatistic(const DescribePdnsThreatStatisticRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsThreatStatisticOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsThreatStatisticOutcome(DescribePdnsThreatStatisticResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsThreatStatisticOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsThreatStatisticAsync(const DescribePdnsThreatStatisticRequest& request, const DescribePdnsThreatStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsThreatStatistic(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsThreatStatisticOutcomeCallable AlidnsClient::describePdnsThreatStatisticCallable(const DescribePdnsThreatStatisticRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsThreatStatisticOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsThreatStatistic(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsThreatStatisticsOutcome AlidnsClient::describePdnsThreatStatistics(const DescribePdnsThreatStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsThreatStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsThreatStatisticsOutcome(DescribePdnsThreatStatisticsResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsThreatStatisticsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsThreatStatisticsAsync(const DescribePdnsThreatStatisticsRequest& request, const DescribePdnsThreatStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsThreatStatistics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsThreatStatisticsOutcomeCallable AlidnsClient::describePdnsThreatStatisticsCallable(const DescribePdnsThreatStatisticsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsThreatStatisticsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsThreatStatistics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsUdpIpSegmentsOutcome AlidnsClient::describePdnsUdpIpSegments(const DescribePdnsUdpIpSegmentsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsUdpIpSegmentsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsUdpIpSegmentsOutcome(DescribePdnsUdpIpSegmentsResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsUdpIpSegmentsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsUdpIpSegmentsAsync(const DescribePdnsUdpIpSegmentsRequest& request, const DescribePdnsUdpIpSegmentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsUdpIpSegments(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsUdpIpSegmentsOutcomeCallable AlidnsClient::describePdnsUdpIpSegmentsCallable(const DescribePdnsUdpIpSegmentsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsUdpIpSegmentsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsUdpIpSegments(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsUserInfoOutcome AlidnsClient::describePdnsUserInfo(const DescribePdnsUserInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePdnsUserInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePdnsUserInfoOutcome(DescribePdnsUserInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribePdnsUserInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describePdnsUserInfoAsync(const DescribePdnsUserInfoRequest& request, const DescribePdnsUserInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePdnsUserInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribePdnsUserInfoOutcomeCallable AlidnsClient::describePdnsUserInfoCallable(const DescribePdnsUserInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePdnsUserInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePdnsUserInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeRecordLogsOutcome AlidnsClient::describeRecordLogs(const DescribeRecordLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3615,6 +4083,42 @@ AlidnsClient::OperateBatchDomainOutcomeCallable AlidnsClient::operateBatchDomain
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::PausePdnsServiceOutcome AlidnsClient::pausePdnsService(const PausePdnsServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PausePdnsServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PausePdnsServiceOutcome(PausePdnsServiceResult(outcome.result()));
|
||||
else
|
||||
return PausePdnsServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::pausePdnsServiceAsync(const PausePdnsServiceRequest& request, const PausePdnsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, pausePdnsService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::PausePdnsServiceOutcomeCallable AlidnsClient::pausePdnsServiceCallable(const PausePdnsServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PausePdnsServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->pausePdnsService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::PreviewGtmRecoveryPlanOutcome AlidnsClient::previewGtmRecoveryPlan(const PreviewGtmRecoveryPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3651,6 +4155,114 @@ AlidnsClient::PreviewGtmRecoveryPlanOutcomeCallable AlidnsClient::previewGtmReco
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::RemovePdnsAppKeyOutcome AlidnsClient::removePdnsAppKey(const RemovePdnsAppKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemovePdnsAppKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RemovePdnsAppKeyOutcome(RemovePdnsAppKeyResult(outcome.result()));
|
||||
else
|
||||
return RemovePdnsAppKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::removePdnsAppKeyAsync(const RemovePdnsAppKeyRequest& request, const RemovePdnsAppKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, removePdnsAppKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::RemovePdnsAppKeyOutcomeCallable AlidnsClient::removePdnsAppKeyCallable(const RemovePdnsAppKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RemovePdnsAppKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->removePdnsAppKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::RemovePdnsUdpIpSegmentOutcome AlidnsClient::removePdnsUdpIpSegment(const RemovePdnsUdpIpSegmentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemovePdnsUdpIpSegmentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RemovePdnsUdpIpSegmentOutcome(RemovePdnsUdpIpSegmentResult(outcome.result()));
|
||||
else
|
||||
return RemovePdnsUdpIpSegmentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::removePdnsUdpIpSegmentAsync(const RemovePdnsUdpIpSegmentRequest& request, const RemovePdnsUdpIpSegmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, removePdnsUdpIpSegment(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::RemovePdnsUdpIpSegmentOutcomeCallable AlidnsClient::removePdnsUdpIpSegmentCallable(const RemovePdnsUdpIpSegmentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RemovePdnsUdpIpSegmentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->removePdnsUdpIpSegment(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::ResumePdnsServiceOutcome AlidnsClient::resumePdnsService(const ResumePdnsServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ResumePdnsServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ResumePdnsServiceOutcome(ResumePdnsServiceResult(outcome.result()));
|
||||
else
|
||||
return ResumePdnsServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::resumePdnsServiceAsync(const ResumePdnsServiceRequest& request, const ResumePdnsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, resumePdnsService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::ResumePdnsServiceOutcomeCallable AlidnsClient::resumePdnsServiceCallable(const ResumePdnsServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ResumePdnsServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->resumePdnsService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::RetrieveDomainOutcome AlidnsClient::retrieveDomain(const RetrieveDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4155,6 +4767,42 @@ AlidnsClient::UntagResourcesOutcomeCallable AlidnsClient::untagResourcesCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::UpdateAppKeyStateOutcome AlidnsClient::updateAppKeyState(const UpdateAppKeyStateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAppKeyStateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAppKeyStateOutcome(UpdateAppKeyStateResult(outcome.result()));
|
||||
else
|
||||
return UpdateAppKeyStateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::updateAppKeyStateAsync(const UpdateAppKeyStateRequest& request, const UpdateAppKeyStateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAppKeyState(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::UpdateAppKeyStateOutcomeCallable AlidnsClient::updateAppKeyStateCallable(const UpdateAppKeyStateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAppKeyStateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAppKeyState(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::UpdateCustomLineOutcome AlidnsClient::updateCustomLine(const UpdateCustomLineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4767,3 +5415,75 @@ AlidnsClient::UpdateGtmRecoveryPlanOutcomeCallable AlidnsClient::updateGtmRecove
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::ValidateDnsGtmCnameRrCanUseOutcome AlidnsClient::validateDnsGtmCnameRrCanUse(const ValidateDnsGtmCnameRrCanUseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ValidateDnsGtmCnameRrCanUseOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ValidateDnsGtmCnameRrCanUseOutcome(ValidateDnsGtmCnameRrCanUseResult(outcome.result()));
|
||||
else
|
||||
return ValidateDnsGtmCnameRrCanUseOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::validateDnsGtmCnameRrCanUseAsync(const ValidateDnsGtmCnameRrCanUseRequest& request, const ValidateDnsGtmCnameRrCanUseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, validateDnsGtmCnameRrCanUse(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::ValidateDnsGtmCnameRrCanUseOutcomeCallable AlidnsClient::validateDnsGtmCnameRrCanUseCallable(const ValidateDnsGtmCnameRrCanUseRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ValidateDnsGtmCnameRrCanUseOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->validateDnsGtmCnameRrCanUse(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::ValidatePdnsUdpIpSegmentOutcome AlidnsClient::validatePdnsUdpIpSegment(const ValidatePdnsUdpIpSegmentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ValidatePdnsUdpIpSegmentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ValidatePdnsUdpIpSegmentOutcome(ValidatePdnsUdpIpSegmentResult(outcome.result()));
|
||||
else
|
||||
return ValidatePdnsUdpIpSegmentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::validatePdnsUdpIpSegmentAsync(const ValidatePdnsUdpIpSegmentRequest& request, const ValidatePdnsUdpIpSegmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, validatePdnsUdpIpSegment(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::ValidatePdnsUdpIpSegmentOutcomeCallable AlidnsClient::validatePdnsUdpIpSegmentCallable(const ValidatePdnsUdpIpSegmentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ValidatePdnsUdpIpSegmentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->validatePdnsUdpIpSegment(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
40
alidns/src/model/CreatePdnsAppKeyRequest.cc
Normal file
40
alidns/src/model/CreatePdnsAppKeyRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/CreatePdnsAppKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::CreatePdnsAppKeyRequest;
|
||||
|
||||
CreatePdnsAppKeyRequest::CreatePdnsAppKeyRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "CreatePdnsAppKey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePdnsAppKeyRequest::~CreatePdnsAppKeyRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePdnsAppKeyRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreatePdnsAppKeyRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
alidns/src/model/CreatePdnsAppKeyResult.cc
Normal file
44
alidns/src/model/CreatePdnsAppKeyResult.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/alidns/model/CreatePdnsAppKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
CreatePdnsAppKeyResult::CreatePdnsAppKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePdnsAppKeyResult::CreatePdnsAppKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePdnsAppKeyResult::~CreatePdnsAppKeyResult()
|
||||
{}
|
||||
|
||||
void CreatePdnsAppKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
alidns/src/model/CreatePdnsUdpIpSegmentRequest.cc
Normal file
62
alidns/src/model/CreatePdnsUdpIpSegmentRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/CreatePdnsUdpIpSegmentRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::CreatePdnsUdpIpSegmentRequest;
|
||||
|
||||
CreatePdnsUdpIpSegmentRequest::CreatePdnsUdpIpSegmentRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "CreatePdnsUdpIpSegment")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePdnsUdpIpSegmentRequest::~CreatePdnsUdpIpSegmentRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePdnsUdpIpSegmentRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void CreatePdnsUdpIpSegmentRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string CreatePdnsUdpIpSegmentRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreatePdnsUdpIpSegmentRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreatePdnsUdpIpSegmentRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreatePdnsUdpIpSegmentRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
51
alidns/src/model/CreatePdnsUdpIpSegmentResult.cc
Normal file
51
alidns/src/model/CreatePdnsUdpIpSegmentResult.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/alidns/model/CreatePdnsUdpIpSegmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
CreatePdnsUdpIpSegmentResult::CreatePdnsUdpIpSegmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePdnsUdpIpSegmentResult::CreatePdnsUdpIpSegmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePdnsUdpIpSegmentResult::~CreatePdnsUdpIpSegmentResult()
|
||||
{}
|
||||
|
||||
void CreatePdnsUdpIpSegmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ValidMessage"].isNull())
|
||||
validMessage_ = value["ValidMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePdnsUdpIpSegmentResult::getValidMessage()const
|
||||
{
|
||||
return validMessage_;
|
||||
}
|
||||
|
||||
@@ -40,74 +40,80 @@ void DescribeDnsGtmInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configNode = value["Config"];
|
||||
if(!configNode["InstanceName"].isNull())
|
||||
config_.instanceName = configNode["InstanceName"].asString();
|
||||
if(!configNode["CnameType"].isNull())
|
||||
config_.cnameType = configNode["CnameType"].asString();
|
||||
if(!configNode["PublicUserDomainName"].isNull())
|
||||
config_.publicUserDomainName = configNode["PublicUserDomainName"].asString();
|
||||
if(!configNode["PublicCnameMode"].isNull())
|
||||
config_.publicCnameMode = configNode["PublicCnameMode"].asString();
|
||||
if(!configNode["PubicZoneName"].isNull())
|
||||
config_.pubicZoneName = configNode["PubicZoneName"].asString();
|
||||
if(!configNode["Ttl"].isNull())
|
||||
config_.ttl = std::stoi(configNode["Ttl"].asString());
|
||||
if(!configNode["StrategyMode"].isNull())
|
||||
config_.strategyMode = configNode["StrategyMode"].asString();
|
||||
if(!configNode["AlertGroup"].isNull())
|
||||
config_.alertGroup = configNode["AlertGroup"].asString();
|
||||
if(!configNode["CnameType"].isNull())
|
||||
config_.cnameType = configNode["CnameType"].asString();
|
||||
if(!configNode["StrategyMode"].isNull())
|
||||
config_.strategyMode = configNode["StrategyMode"].asString();
|
||||
if(!configNode["InstanceName"].isNull())
|
||||
config_.instanceName = configNode["InstanceName"].asString();
|
||||
if(!configNode["PublicCnameMode"].isNull())
|
||||
config_.publicCnameMode = configNode["PublicCnameMode"].asString();
|
||||
if(!configNode["PublicUserDomainName"].isNull())
|
||||
config_.publicUserDomainName = configNode["PublicUserDomainName"].asString();
|
||||
if(!configNode["PubicZoneName"].isNull())
|
||||
config_.pubicZoneName = configNode["PubicZoneName"].asString();
|
||||
if(!configNode["PublicRr"].isNull())
|
||||
config_.publicRr = configNode["PublicRr"].asString();
|
||||
auto allAlertConfigNode = configNode["AlertConfig"]["AlertConfigItem"];
|
||||
for (auto configNodeAlertConfigAlertConfigItem : allAlertConfigNode)
|
||||
{
|
||||
Config::AlertConfigItem alertConfigItemObject;
|
||||
if(!configNodeAlertConfigAlertConfigItem["NoticeType"].isNull())
|
||||
alertConfigItemObject.noticeType = configNodeAlertConfigAlertConfigItem["NoticeType"].asString();
|
||||
if(!configNodeAlertConfigAlertConfigItem["SmsNotice"].isNull())
|
||||
alertConfigItemObject.smsNotice = configNodeAlertConfigAlertConfigItem["SmsNotice"].asString() == "true";
|
||||
if(!configNodeAlertConfigAlertConfigItem["NoticeType"].isNull())
|
||||
alertConfigItemObject.noticeType = configNodeAlertConfigAlertConfigItem["NoticeType"].asString();
|
||||
if(!configNodeAlertConfigAlertConfigItem["EmailNotice"].isNull())
|
||||
alertConfigItemObject.emailNotice = configNodeAlertConfigAlertConfigItem["EmailNotice"].asString() == "true";
|
||||
if(!configNodeAlertConfigAlertConfigItem["DingtalkNotice"].isNull())
|
||||
alertConfigItemObject.dingtalkNotice = configNodeAlertConfigAlertConfigItem["DingtalkNotice"].asString() == "true";
|
||||
config_.alertConfig.push_back(alertConfigItemObject);
|
||||
}
|
||||
auto usedQuotaNode = value["UsedQuota"];
|
||||
if(!usedQuotaNode["EmailUsedCount"].isNull())
|
||||
usedQuota_.emailUsedCount = std::stoi(usedQuotaNode["EmailUsedCount"].asString());
|
||||
if(!usedQuotaNode["TaskUsedCount"].isNull())
|
||||
usedQuota_.taskUsedCount = std::stoi(usedQuotaNode["TaskUsedCount"].asString());
|
||||
if(!usedQuotaNode["SmsUsedCount"].isNull())
|
||||
usedQuota_.smsUsedCount = std::stoi(usedQuotaNode["SmsUsedCount"].asString());
|
||||
if(!usedQuotaNode["EmailUsedCount"].isNull())
|
||||
usedQuota_.emailUsedCount = std::stoi(usedQuotaNode["EmailUsedCount"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["VersionCode"].isNull())
|
||||
versionCode_ = value["VersionCode"].asString();
|
||||
if(!value["SmsQuota"].isNull())
|
||||
smsQuota_ = std::stoi(value["SmsQuota"].asString());
|
||||
if(!value["TaskQuota"].isNull())
|
||||
taskQuota_ = std::stoi(value["TaskQuota"].asString());
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["CreateTimestamp"].isNull())
|
||||
createTimestamp_ = std::stol(value["CreateTimestamp"].asString());
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!usedQuotaNode["DingtalkUsedCount"].isNull())
|
||||
usedQuota_.dingtalkUsedCount = std::stoi(usedQuotaNode["DingtalkUsedCount"].asString());
|
||||
if(!value["ExpireTimestamp"].isNull())
|
||||
expireTimestamp_ = std::stol(value["ExpireTimestamp"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["TaskQuota"].isNull())
|
||||
taskQuota_ = std::stoi(value["TaskQuota"].asString());
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["SmsQuota"].isNull())
|
||||
smsQuota_ = std::stoi(value["SmsQuota"].asString());
|
||||
if(!value["VersionCode"].isNull())
|
||||
versionCode_ = value["VersionCode"].asString();
|
||||
if(!value["PaymentType"].isNull())
|
||||
paymentType_ = value["PaymentType"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["CreateTimestamp"].isNull())
|
||||
createTimestamp_ = std::stol(value["CreateTimestamp"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDnsGtmInstanceResult::getVersionCode()const
|
||||
{
|
||||
return versionCode_;
|
||||
}
|
||||
|
||||
long DescribeDnsGtmInstanceResult::getExpireTimestamp()const
|
||||
{
|
||||
return expireTimestamp_;
|
||||
}
|
||||
|
||||
std::string DescribeDnsGtmInstanceResult::getVersionCode()const
|
||||
{
|
||||
return versionCode_;
|
||||
}
|
||||
|
||||
std::string DescribeDnsGtmInstanceResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
|
||||
@@ -43,72 +43,78 @@ void DescribeDnsGtmInstancesResult::parse(const std::string &payload)
|
||||
for (auto valueGtmInstancesGtmInstance : allGtmInstancesNode)
|
||||
{
|
||||
GtmInstance gtmInstancesObject;
|
||||
if(!valueGtmInstancesGtmInstance["InstanceId"].isNull())
|
||||
gtmInstancesObject.instanceId = valueGtmInstancesGtmInstance["InstanceId"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["VersionCode"].isNull())
|
||||
gtmInstancesObject.versionCode = valueGtmInstancesGtmInstance["VersionCode"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["SmsQuota"].isNull())
|
||||
gtmInstancesObject.smsQuota = std::stoi(valueGtmInstancesGtmInstance["SmsQuota"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["CreateTime"].isNull())
|
||||
gtmInstancesObject.createTime = valueGtmInstancesGtmInstance["CreateTime"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["CreateTimestamp"].isNull())
|
||||
gtmInstancesObject.createTimestamp = std::stol(valueGtmInstancesGtmInstance["CreateTimestamp"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["ExpireTime"].isNull())
|
||||
gtmInstancesObject.expireTime = valueGtmInstancesGtmInstance["ExpireTime"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["ExpireTimestamp"].isNull())
|
||||
gtmInstancesObject.expireTimestamp = std::stol(valueGtmInstancesGtmInstance["ExpireTimestamp"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["TaskQuota"].isNull())
|
||||
gtmInstancesObject.taskQuota = std::stoi(valueGtmInstancesGtmInstance["TaskQuota"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["ResourceGroupId"].isNull())
|
||||
gtmInstancesObject.resourceGroupId = valueGtmInstancesGtmInstance["ResourceGroupId"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["PaymentType"].isNull())
|
||||
gtmInstancesObject.paymentType = valueGtmInstancesGtmInstance["PaymentType"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["ExpireTime"].isNull())
|
||||
gtmInstancesObject.expireTime = valueGtmInstancesGtmInstance["ExpireTime"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["CreateTime"].isNull())
|
||||
gtmInstancesObject.createTime = valueGtmInstancesGtmInstance["CreateTime"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["SmsQuota"].isNull())
|
||||
gtmInstancesObject.smsQuota = std::stoi(valueGtmInstancesGtmInstance["SmsQuota"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["InstanceId"].isNull())
|
||||
gtmInstancesObject.instanceId = valueGtmInstancesGtmInstance["InstanceId"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["ExpireTimestamp"].isNull())
|
||||
gtmInstancesObject.expireTimestamp = std::stol(valueGtmInstancesGtmInstance["ExpireTimestamp"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["ResourceGroupId"].isNull())
|
||||
gtmInstancesObject.resourceGroupId = valueGtmInstancesGtmInstance["ResourceGroupId"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["VersionCode"].isNull())
|
||||
gtmInstancesObject.versionCode = valueGtmInstancesGtmInstance["VersionCode"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["TaskQuota"].isNull())
|
||||
gtmInstancesObject.taskQuota = std::stoi(valueGtmInstancesGtmInstance["TaskQuota"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["CreateTimestamp"].isNull())
|
||||
gtmInstancesObject.createTimestamp = std::stol(valueGtmInstancesGtmInstance["CreateTimestamp"].asString());
|
||||
auto configNode = value["Config"];
|
||||
if(!configNode["InstanceName"].isNull())
|
||||
gtmInstancesObject.config.instanceName = configNode["InstanceName"].asString();
|
||||
if(!configNode["CnameType"].isNull())
|
||||
gtmInstancesObject.config.cnameType = configNode["CnameType"].asString();
|
||||
if(!configNode["PublicUserDomainName"].isNull())
|
||||
gtmInstancesObject.config.publicUserDomainName = configNode["PublicUserDomainName"].asString();
|
||||
if(!configNode["PublicCnameMode"].isNull())
|
||||
gtmInstancesObject.config.publicCnameMode = configNode["PublicCnameMode"].asString();
|
||||
if(!configNode["PublicZoneName"].isNull())
|
||||
gtmInstancesObject.config.publicZoneName = configNode["PublicZoneName"].asString();
|
||||
if(!configNode["Ttl"].isNull())
|
||||
gtmInstancesObject.config.ttl = std::stoi(configNode["Ttl"].asString());
|
||||
if(!configNode["AlertGroup"].isNull())
|
||||
gtmInstancesObject.config.alertGroup = configNode["AlertGroup"].asString();
|
||||
if(!configNode["PublicZoneName"].isNull())
|
||||
gtmInstancesObject.config.publicZoneName = configNode["PublicZoneName"].asString();
|
||||
if(!configNode["CnameType"].isNull())
|
||||
gtmInstancesObject.config.cnameType = configNode["CnameType"].asString();
|
||||
if(!configNode["StrategyMode"].isNull())
|
||||
gtmInstancesObject.config.strategyMode = configNode["StrategyMode"].asString();
|
||||
if(!configNode["InstanceName"].isNull())
|
||||
gtmInstancesObject.config.instanceName = configNode["InstanceName"].asString();
|
||||
if(!configNode["PublicCnameMode"].isNull())
|
||||
gtmInstancesObject.config.publicCnameMode = configNode["PublicCnameMode"].asString();
|
||||
if(!configNode["PublicUserDomainName"].isNull())
|
||||
gtmInstancesObject.config.publicUserDomainName = configNode["PublicUserDomainName"].asString();
|
||||
if(!configNode["PublicRr"].isNull())
|
||||
gtmInstancesObject.config.publicRr = configNode["PublicRr"].asString();
|
||||
auto allAlertConfigNode = configNode["AlertConfig"]["AlertConfigItem"];
|
||||
for (auto configNodeAlertConfigAlertConfigItem : allAlertConfigNode)
|
||||
{
|
||||
GtmInstance::Config::AlertConfigItem alertConfigItemObject;
|
||||
if(!configNodeAlertConfigAlertConfigItem["NoticeType"].isNull())
|
||||
alertConfigItemObject.noticeType = configNodeAlertConfigAlertConfigItem["NoticeType"].asString();
|
||||
if(!configNodeAlertConfigAlertConfigItem["SmsNotice"].isNull())
|
||||
alertConfigItemObject.smsNotice = configNodeAlertConfigAlertConfigItem["SmsNotice"].asString();
|
||||
if(!configNodeAlertConfigAlertConfigItem["NoticeType"].isNull())
|
||||
alertConfigItemObject.noticeType = configNodeAlertConfigAlertConfigItem["NoticeType"].asString();
|
||||
if(!configNodeAlertConfigAlertConfigItem["EmailNotice"].isNull())
|
||||
alertConfigItemObject.emailNotice = configNodeAlertConfigAlertConfigItem["EmailNotice"].asString();
|
||||
if(!configNodeAlertConfigAlertConfigItem["DingtalkNotice"].isNull())
|
||||
alertConfigItemObject.dingtalkNotice = configNodeAlertConfigAlertConfigItem["DingtalkNotice"].asString();
|
||||
gtmInstancesObject.config.alertConfig.push_back(alertConfigItemObject);
|
||||
}
|
||||
auto usedQuotaNode = value["UsedQuota"];
|
||||
if(!usedQuotaNode["EmailUsedCount"].isNull())
|
||||
gtmInstancesObject.usedQuota.emailUsedCount = std::stoi(usedQuotaNode["EmailUsedCount"].asString());
|
||||
if(!usedQuotaNode["TaskUsedCount"].isNull())
|
||||
gtmInstancesObject.usedQuota.taskUsedCount = std::stoi(usedQuotaNode["TaskUsedCount"].asString());
|
||||
if(!usedQuotaNode["SmsUsedCount"].isNull())
|
||||
gtmInstancesObject.usedQuota.smsUsedCount = std::stoi(usedQuotaNode["SmsUsedCount"].asString());
|
||||
if(!usedQuotaNode["EmailUsedCount"].isNull())
|
||||
gtmInstancesObject.usedQuota.emailUsedCount = std::stoi(usedQuotaNode["EmailUsedCount"].asString());
|
||||
if(!usedQuotaNode["DingtalkUsedCount"].isNull())
|
||||
gtmInstancesObject.usedQuota.dingtalkUsedCount = std::stoi(usedQuotaNode["DingtalkUsedCount"].asString());
|
||||
gtmInstances_.push_back(gtmInstancesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalItems"].isNull())
|
||||
totalItems_ = std::stoi(value["TotalItems"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalPages"].isNull())
|
||||
totalPages_ = std::stoi(value["TotalPages"].asString());
|
||||
if(!value["TotalItems"].isNull())
|
||||
totalItems_ = std::stoi(value["TotalItems"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,36 +39,38 @@ void DescribeGtmInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ExpireTimestamp"].isNull())
|
||||
expireTimestamp_ = std::stol(value["ExpireTimestamp"].asString());
|
||||
if(!value["UserDomainName"].isNull())
|
||||
userDomainName_ = value["UserDomainName"].asString();
|
||||
if(!value["LbaStrategy"].isNull())
|
||||
lbaStrategy_ = value["LbaStrategy"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["CnameMode"].isNull())
|
||||
cnameMode_ = value["CnameMode"].asString();
|
||||
if(!value["Ttl"].isNull())
|
||||
ttl_ = std::stoi(value["Ttl"].asString());
|
||||
if(!value["Cname"].isNull())
|
||||
cname_ = value["Cname"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
instanceName_ = value["InstanceName"].asString();
|
||||
if(!value["VersionCode"].isNull())
|
||||
versionCode_ = value["VersionCode"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["ExpireTimestamp"].isNull())
|
||||
expireTimestamp_ = std::stol(value["ExpireTimestamp"].asString());
|
||||
if(!value["Cname"].isNull())
|
||||
cname_ = value["Cname"].asString();
|
||||
if(!value["UserDomainName"].isNull())
|
||||
userDomainName_ = value["UserDomainName"].asString();
|
||||
if(!value["Ttl"].isNull())
|
||||
ttl_ = std::stoi(value["Ttl"].asString());
|
||||
if(!value["LbaStrategy"].isNull())
|
||||
lbaStrategy_ = value["LbaStrategy"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["CreateTimestamp"].isNull())
|
||||
createTimestamp_ = std::stol(value["CreateTimestamp"].asString());
|
||||
if(!value["AlertGroup"].isNull())
|
||||
alertGroup_ = value["AlertGroup"].asString();
|
||||
if(!value["CnameMode"].isNull())
|
||||
cnameMode_ = value["CnameMode"].asString();
|
||||
if(!value["AccessStrategyNum"].isNull())
|
||||
accessStrategyNum_ = std::stoi(value["AccessStrategyNum"].asString());
|
||||
if(!value["AddressPoolNum"].isNull())
|
||||
addressPoolNum_ = std::stoi(value["AddressPoolNum"].asString());
|
||||
if(!value["AccessStrategyNum"].isNull())
|
||||
accessStrategyNum_ = std::stoi(value["AccessStrategyNum"].asString());
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["CreateTimestamp"].isNull())
|
||||
createTimestamp_ = std::stol(value["CreateTimestamp"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -87,6 +89,11 @@ std::string DescribeGtmInstanceResult::getLbaStrategy()const
|
||||
return lbaStrategy_;
|
||||
}
|
||||
|
||||
std::string DescribeGtmInstanceResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeGtmInstanceResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
@@ -102,16 +109,16 @@ std::string DescribeGtmInstanceResult::getCnameMode()const
|
||||
return cnameMode_;
|
||||
}
|
||||
|
||||
std::string DescribeGtmInstanceResult::getCname()const
|
||||
{
|
||||
return cname_;
|
||||
}
|
||||
|
||||
int DescribeGtmInstanceResult::getTtl()const
|
||||
{
|
||||
return ttl_;
|
||||
}
|
||||
|
||||
std::string DescribeGtmInstanceResult::getCname()const
|
||||
{
|
||||
return cname_;
|
||||
}
|
||||
|
||||
std::string DescribeGtmInstanceResult::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
|
||||
@@ -43,46 +43,48 @@ void DescribeGtmInstancesResult::parse(const std::string &payload)
|
||||
for (auto valueGtmInstancesGtmInstance : allGtmInstancesNode)
|
||||
{
|
||||
GtmInstance gtmInstancesObject;
|
||||
if(!valueGtmInstancesGtmInstance["InstanceId"].isNull())
|
||||
gtmInstancesObject.instanceId = valueGtmInstancesGtmInstance["InstanceId"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["InstanceName"].isNull())
|
||||
gtmInstancesObject.instanceName = valueGtmInstancesGtmInstance["InstanceName"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["Cname"].isNull())
|
||||
gtmInstancesObject.cname = valueGtmInstancesGtmInstance["Cname"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["UserDomainName"].isNull())
|
||||
gtmInstancesObject.userDomainName = valueGtmInstancesGtmInstance["UserDomainName"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["VersionCode"].isNull())
|
||||
gtmInstancesObject.versionCode = valueGtmInstancesGtmInstance["VersionCode"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["Ttl"].isNull())
|
||||
gtmInstancesObject.ttl = std::stoi(valueGtmInstancesGtmInstance["Ttl"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["LbaStrategy"].isNull())
|
||||
gtmInstancesObject.lbaStrategy = valueGtmInstancesGtmInstance["LbaStrategy"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["CreateTime"].isNull())
|
||||
gtmInstancesObject.createTime = valueGtmInstancesGtmInstance["CreateTime"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["CreateTimestamp"].isNull())
|
||||
gtmInstancesObject.createTimestamp = std::stol(valueGtmInstancesGtmInstance["CreateTimestamp"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["ExpireTime"].isNull())
|
||||
gtmInstancesObject.expireTime = valueGtmInstancesGtmInstance["ExpireTime"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["ExpireTimestamp"].isNull())
|
||||
gtmInstancesObject.expireTimestamp = std::stol(valueGtmInstancesGtmInstance["ExpireTimestamp"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["AlertGroup"].isNull())
|
||||
gtmInstancesObject.alertGroup = valueGtmInstancesGtmInstance["AlertGroup"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["CnameMode"].isNull())
|
||||
gtmInstancesObject.cnameMode = valueGtmInstancesGtmInstance["CnameMode"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["AccessStrategyNum"].isNull())
|
||||
gtmInstancesObject.accessStrategyNum = std::stoi(valueGtmInstancesGtmInstance["AccessStrategyNum"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["CreateTime"].isNull())
|
||||
gtmInstancesObject.createTime = valueGtmInstancesGtmInstance["CreateTime"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["CnameMode"].isNull())
|
||||
gtmInstancesObject.cnameMode = valueGtmInstancesGtmInstance["CnameMode"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["InstanceId"].isNull())
|
||||
gtmInstancesObject.instanceId = valueGtmInstancesGtmInstance["InstanceId"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["ExpireTimestamp"].isNull())
|
||||
gtmInstancesObject.expireTimestamp = std::stol(valueGtmInstancesGtmInstance["ExpireTimestamp"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["Ttl"].isNull())
|
||||
gtmInstancesObject.ttl = std::stoi(valueGtmInstancesGtmInstance["Ttl"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["AlertGroup"].isNull())
|
||||
gtmInstancesObject.alertGroup = valueGtmInstancesGtmInstance["AlertGroup"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["AddressPoolNum"].isNull())
|
||||
gtmInstancesObject.addressPoolNum = std::stoi(valueGtmInstancesGtmInstance["AddressPoolNum"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["InstanceName"].isNull())
|
||||
gtmInstancesObject.instanceName = valueGtmInstancesGtmInstance["InstanceName"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["LbaStrategy"].isNull())
|
||||
gtmInstancesObject.lbaStrategy = valueGtmInstancesGtmInstance["LbaStrategy"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["Cname"].isNull())
|
||||
gtmInstancesObject.cname = valueGtmInstancesGtmInstance["Cname"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["VersionCode"].isNull())
|
||||
gtmInstancesObject.versionCode = valueGtmInstancesGtmInstance["VersionCode"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["UserDomainName"].isNull())
|
||||
gtmInstancesObject.userDomainName = valueGtmInstancesGtmInstance["UserDomainName"].asString();
|
||||
if(!valueGtmInstancesGtmInstance["CreateTimestamp"].isNull())
|
||||
gtmInstancesObject.createTimestamp = std::stol(valueGtmInstancesGtmInstance["CreateTimestamp"].asString());
|
||||
if(!valueGtmInstancesGtmInstance["ResourceGroupId"].isNull())
|
||||
gtmInstancesObject.resourceGroupId = valueGtmInstancesGtmInstance["ResourceGroupId"].asString();
|
||||
gtmInstances_.push_back(gtmInstancesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalItems"].isNull())
|
||||
totalItems_ = std::stoi(value["TotalItems"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalPages"].isNull())
|
||||
totalPages_ = std::stoi(value["TotalPages"].asString());
|
||||
if(!value["TotalItems"].isNull())
|
||||
totalItems_ = std::stoi(value["TotalItems"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
62
alidns/src/model/DescribePdnsAccountSummaryRequest.cc
Normal file
62
alidns/src/model/DescribePdnsAccountSummaryRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsAccountSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsAccountSummaryRequest;
|
||||
|
||||
DescribePdnsAccountSummaryRequest::DescribePdnsAccountSummaryRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsAccountSummary")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsAccountSummaryRequest::~DescribePdnsAccountSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsAccountSummaryRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsAccountSummaryRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
std::string DescribePdnsAccountSummaryRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsAccountSummaryRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string DescribePdnsAccountSummaryRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsAccountSummaryRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
64
alidns/src/model/DescribePdnsAccountSummaryResult.cc
Normal file
64
alidns/src/model/DescribePdnsAccountSummaryResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsAccountSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsAccountSummaryResult::DescribePdnsAccountSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsAccountSummaryResult::DescribePdnsAccountSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsAccountSummaryResult::~DescribePdnsAccountSummaryResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsAccountSummaryResult::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["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["ThreatCount"].isNull())
|
||||
data_.threatCount = std::stol(dataNode["ThreatCount"].asString());
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = std::stol(dataNode["UserId"].asString());
|
||||
if(!dataNode["HttpsCount"].isNull())
|
||||
data_.httpsCount = std::stol(dataNode["HttpsCount"].asString());
|
||||
if(!dataNode["HttpCount"].isNull())
|
||||
data_.httpCount = std::stol(dataNode["HttpCount"].asString());
|
||||
if(!dataNode["SubDomainCount"].isNull())
|
||||
data_.subDomainCount = std::stol(dataNode["SubDomainCount"].asString());
|
||||
if(!dataNode["DomainCount"].isNull())
|
||||
data_.domainCount = std::stol(dataNode["DomainCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribePdnsAccountSummaryResult::Data DescribePdnsAccountSummaryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
51
alidns/src/model/DescribePdnsAppKeyRequest.cc
Normal file
51
alidns/src/model/DescribePdnsAppKeyRequest.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/alidns/model/DescribePdnsAppKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsAppKeyRequest;
|
||||
|
||||
DescribePdnsAppKeyRequest::DescribePdnsAppKeyRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsAppKey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsAppKeyRequest::~DescribePdnsAppKeyRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsAppKeyRequest::getAppKeyId()const
|
||||
{
|
||||
return appKeyId_;
|
||||
}
|
||||
|
||||
void DescribePdnsAppKeyRequest::setAppKeyId(const std::string& appKeyId)
|
||||
{
|
||||
appKeyId_ = appKeyId;
|
||||
setParameter("AppKeyId", appKeyId);
|
||||
}
|
||||
|
||||
std::string DescribePdnsAppKeyRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsAppKeyRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
58
alidns/src/model/DescribePdnsAppKeyResult.cc
Normal file
58
alidns/src/model/DescribePdnsAppKeyResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsAppKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsAppKeyResult::DescribePdnsAppKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsAppKeyResult::DescribePdnsAppKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsAppKeyResult::~DescribePdnsAppKeyResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsAppKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto appKeyNode = value["AppKey"];
|
||||
if(!appKeyNode["State"].isNull())
|
||||
appKey_.state = appKeyNode["State"].asString();
|
||||
if(!appKeyNode["AppKeyId"].isNull())
|
||||
appKey_.appKeyId = appKeyNode["AppKeyId"].asString();
|
||||
if(!appKeyNode["CreateDate"].isNull())
|
||||
appKey_.createDate = appKeyNode["CreateDate"].asString();
|
||||
if(!appKeyNode["AppKeySecret"].isNull())
|
||||
appKey_.appKeySecret = appKeyNode["AppKeySecret"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribePdnsAppKeyResult::AppKey DescribePdnsAppKeyResult::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
40
alidns/src/model/DescribePdnsAppKeysRequest.cc
Normal file
40
alidns/src/model/DescribePdnsAppKeysRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsAppKeysRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsAppKeysRequest;
|
||||
|
||||
DescribePdnsAppKeysRequest::DescribePdnsAppKeysRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsAppKeys")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsAppKeysRequest::~DescribePdnsAppKeysRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsAppKeysRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsAppKeysRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
61
alidns/src/model/DescribePdnsAppKeysResult.cc
Normal file
61
alidns/src/model/DescribePdnsAppKeysResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsAppKeysResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsAppKeysResult::DescribePdnsAppKeysResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsAppKeysResult::DescribePdnsAppKeysResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsAppKeysResult::~DescribePdnsAppKeysResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsAppKeysResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAppKeysNode = value["AppKeys"]["AppKey"];
|
||||
for (auto valueAppKeysAppKey : allAppKeysNode)
|
||||
{
|
||||
AppKey appKeysObject;
|
||||
if(!valueAppKeysAppKey["State"].isNull())
|
||||
appKeysObject.state = valueAppKeysAppKey["State"].asString();
|
||||
if(!valueAppKeysAppKey["AppKeyId"].isNull())
|
||||
appKeysObject.appKeyId = valueAppKeysAppKey["AppKeyId"].asString();
|
||||
if(!valueAppKeysAppKey["CreateDate"].isNull())
|
||||
appKeysObject.createDate = valueAppKeysAppKey["CreateDate"].asString();
|
||||
appKeys_.push_back(appKeysObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribePdnsAppKeysResult::AppKey> DescribePdnsAppKeysResult::getAppKeys()const
|
||||
{
|
||||
return appKeys_;
|
||||
}
|
||||
|
||||
106
alidns/src/model/DescribePdnsOperateLogsRequest.cc
Normal file
106
alidns/src/model/DescribePdnsOperateLogsRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsOperateLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsOperateLogsRequest;
|
||||
|
||||
DescribePdnsOperateLogsRequest::DescribePdnsOperateLogsRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsOperateLogs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsOperateLogsRequest::~DescribePdnsOperateLogsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsOperateLogsRequest::getActionType()const
|
||||
{
|
||||
return actionType_;
|
||||
}
|
||||
|
||||
void DescribePdnsOperateLogsRequest::setActionType(const std::string& actionType)
|
||||
{
|
||||
actionType_ = actionType;
|
||||
setParameter("ActionType", actionType);
|
||||
}
|
||||
|
||||
std::string DescribePdnsOperateLogsRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsOperateLogsRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
long DescribePdnsOperateLogsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribePdnsOperateLogsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribePdnsOperateLogsRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsOperateLogsRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
long DescribePdnsOperateLogsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePdnsOperateLogsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePdnsOperateLogsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsOperateLogsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribePdnsOperateLogsRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void DescribePdnsOperateLogsRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
84
alidns/src/model/DescribePdnsOperateLogsResult.cc
Normal file
84
alidns/src/model/DescribePdnsOperateLogsResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsOperateLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsOperateLogsResult::DescribePdnsOperateLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsOperateLogsResult::DescribePdnsOperateLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsOperateLogsResult::~DescribePdnsOperateLogsResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsOperateLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLogsNode = value["Logs"]["Log"];
|
||||
for (auto valueLogsLog : allLogsNode)
|
||||
{
|
||||
Log logsObject;
|
||||
if(!valueLogsLog["OperateTime"].isNull())
|
||||
logsObject.operateTime = valueLogsLog["OperateTime"].asString();
|
||||
if(!valueLogsLog["Action"].isNull())
|
||||
logsObject.action = valueLogsLog["Action"].asString();
|
||||
if(!valueLogsLog["Type"].isNull())
|
||||
logsObject.type = valueLogsLog["Type"].asString();
|
||||
if(!valueLogsLog["content"].isNull())
|
||||
logsObject.content = valueLogsLog["content"].asString();
|
||||
logs_.push_back(logsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribePdnsOperateLogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribePdnsOperateLogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribePdnsOperateLogsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribePdnsOperateLogsResult::Log> DescribePdnsOperateLogsResult::getLogs()const
|
||||
{
|
||||
return logs_;
|
||||
}
|
||||
|
||||
95
alidns/src/model/DescribePdnsRequestStatisticRequest.cc
Normal file
95
alidns/src/model/DescribePdnsRequestStatisticRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsRequestStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsRequestStatisticRequest;
|
||||
|
||||
DescribePdnsRequestStatisticRequest::DescribePdnsRequestStatisticRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsRequestStatistic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsRequestStatisticRequest::~DescribePdnsRequestStatisticRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsRequestStatisticRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticRequest::getSubDomain()const
|
||||
{
|
||||
return subDomain_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticRequest::setSubDomain(const std::string& subDomain)
|
||||
{
|
||||
subDomain_ = subDomain;
|
||||
setParameter("SubDomain", subDomain);
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
81
alidns/src/model/DescribePdnsRequestStatisticResult.cc
Normal file
81
alidns/src/model/DescribePdnsRequestStatisticResult.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/alidns/model/DescribePdnsRequestStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsRequestStatisticResult::DescribePdnsRequestStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsRequestStatisticResult::DescribePdnsRequestStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsRequestStatisticResult::~DescribePdnsRequestStatisticResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsRequestStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["StatisticItem"];
|
||||
for (auto valueDataStatisticItem : allDataNode)
|
||||
{
|
||||
StatisticItem dataObject;
|
||||
if(!valueDataStatisticItem["UdpTotalCount"].isNull())
|
||||
dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString());
|
||||
if(!valueDataStatisticItem["IpCount"].isNull())
|
||||
dataObject.ipCount = std::stol(valueDataStatisticItem["IpCount"].asString());
|
||||
if(!valueDataStatisticItem["TotalCount"].isNull())
|
||||
dataObject.totalCount = std::stol(valueDataStatisticItem["TotalCount"].asString());
|
||||
if(!valueDataStatisticItem["V4HttpCount"].isNull())
|
||||
dataObject.v4HttpCount = std::stol(valueDataStatisticItem["V4HttpCount"].asString());
|
||||
if(!valueDataStatisticItem["V6HttpCount"].isNull())
|
||||
dataObject.v6HttpCount = std::stol(valueDataStatisticItem["V6HttpCount"].asString());
|
||||
if(!valueDataStatisticItem["V4Count"].isNull())
|
||||
dataObject.v4Count = std::stol(valueDataStatisticItem["V4Count"].asString());
|
||||
if(!valueDataStatisticItem["HttpsCount"].isNull())
|
||||
dataObject.httpsCount = std::stol(valueDataStatisticItem["HttpsCount"].asString());
|
||||
if(!valueDataStatisticItem["HttpCount"].isNull())
|
||||
dataObject.httpCount = std::stol(valueDataStatisticItem["HttpCount"].asString());
|
||||
if(!valueDataStatisticItem["V4HttpsCount"].isNull())
|
||||
dataObject.v4HttpsCount = std::stol(valueDataStatisticItem["V4HttpsCount"].asString());
|
||||
if(!valueDataStatisticItem["Timestamp"].isNull())
|
||||
dataObject.timestamp = std::stol(valueDataStatisticItem["Timestamp"].asString());
|
||||
if(!valueDataStatisticItem["V6HttpsCount"].isNull())
|
||||
dataObject.v6HttpsCount = std::stol(valueDataStatisticItem["V6HttpsCount"].asString());
|
||||
if(!valueDataStatisticItem["DohTotalCount"].isNull())
|
||||
dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString());
|
||||
if(!valueDataStatisticItem["V6Count"].isNull())
|
||||
dataObject.v6Count = std::stol(valueDataStatisticItem["V6Count"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribePdnsRequestStatisticResult::StatisticItem> DescribePdnsRequestStatisticResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
128
alidns/src/model/DescribePdnsRequestStatisticsRequest.cc
Normal file
128
alidns/src/model/DescribePdnsRequestStatisticsRequest.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/alidns/model/DescribePdnsRequestStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsRequestStatisticsRequest;
|
||||
|
||||
DescribePdnsRequestStatisticsRequest::DescribePdnsRequestStatisticsRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsRequestStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsRequestStatisticsRequest::~DescribePdnsRequestStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsRequestStatisticsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
bool DescribePdnsRequestStatisticsRequest::getNeedThreatInfo()const
|
||||
{
|
||||
return needThreatInfo_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticsRequest::setNeedThreatInfo(bool needThreatInfo)
|
||||
{
|
||||
needThreatInfo_ = needThreatInfo;
|
||||
setParameter("NeedThreatInfo", needThreatInfo ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticsRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticsRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
long DescribePdnsRequestStatisticsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticsRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticsRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
long DescribePdnsRequestStatisticsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticsRequest::getSubDomain()const
|
||||
{
|
||||
return subDomain_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticsRequest::setSubDomain(const std::string& subDomain)
|
||||
{
|
||||
subDomain_ = subDomain;
|
||||
setParameter("SubDomain", subDomain);
|
||||
}
|
||||
|
||||
std::string DescribePdnsRequestStatisticsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsRequestStatisticsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
118
alidns/src/model/DescribePdnsRequestStatisticsResult.cc
Normal file
118
alidns/src/model/DescribePdnsRequestStatisticsResult.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsRequestStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsRequestStatisticsResult::DescribePdnsRequestStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsRequestStatisticsResult::DescribePdnsRequestStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsRequestStatisticsResult::~DescribePdnsRequestStatisticsResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsRequestStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["StatisticItem"];
|
||||
for (auto valueDataStatisticItem : allDataNode)
|
||||
{
|
||||
StatisticItem dataObject;
|
||||
if(!valueDataStatisticItem["UdpTotalCount"].isNull())
|
||||
dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString());
|
||||
if(!valueDataStatisticItem["IpCount"].isNull())
|
||||
dataObject.ipCount = std::stol(valueDataStatisticItem["IpCount"].asString());
|
||||
if(!valueDataStatisticItem["DomainName"].isNull())
|
||||
dataObject.domainName = valueDataStatisticItem["DomainName"].asString();
|
||||
if(!valueDataStatisticItem["V6HttpCount"].isNull())
|
||||
dataObject.v6HttpCount = std::stol(valueDataStatisticItem["V6HttpCount"].asString());
|
||||
if(!valueDataStatisticItem["V4Count"].isNull())
|
||||
dataObject.v4Count = std::stol(valueDataStatisticItem["V4Count"].asString());
|
||||
if(!valueDataStatisticItem["HttpsCount"].isNull())
|
||||
dataObject.httpsCount = std::stol(valueDataStatisticItem["HttpsCount"].asString());
|
||||
if(!valueDataStatisticItem["V4HttpsCount"].isNull())
|
||||
dataObject.v4HttpsCount = std::stol(valueDataStatisticItem["V4HttpsCount"].asString());
|
||||
if(!valueDataStatisticItem["V6Count"].isNull())
|
||||
dataObject.v6Count = std::stol(valueDataStatisticItem["V6Count"].asString());
|
||||
if(!valueDataStatisticItem["SubDomain"].isNull())
|
||||
dataObject.subDomain = valueDataStatisticItem["SubDomain"].asString();
|
||||
if(!valueDataStatisticItem["TotalCount"].isNull())
|
||||
dataObject.totalCount = std::stol(valueDataStatisticItem["TotalCount"].asString());
|
||||
if(!valueDataStatisticItem["V4HttpCount"].isNull())
|
||||
dataObject.v4HttpCount = std::stol(valueDataStatisticItem["V4HttpCount"].asString());
|
||||
if(!valueDataStatisticItem["ThreatCount"].isNull())
|
||||
dataObject.threatCount = std::stol(valueDataStatisticItem["ThreatCount"].asString());
|
||||
if(!valueDataStatisticItem["MaxThreatLevel"].isNull())
|
||||
dataObject.maxThreatLevel = valueDataStatisticItem["MaxThreatLevel"].asString();
|
||||
if(!valueDataStatisticItem["HttpCount"].isNull())
|
||||
dataObject.httpCount = std::stol(valueDataStatisticItem["HttpCount"].asString());
|
||||
if(!valueDataStatisticItem["V6HttpsCount"].isNull())
|
||||
dataObject.v6HttpsCount = std::stol(valueDataStatisticItem["V6HttpsCount"].asString());
|
||||
if(!valueDataStatisticItem["DohTotalCount"].isNull())
|
||||
dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString());
|
||||
auto allThreatInfoNode = valueDataStatisticItem["ThreatInfo"]["ThreatItem"];
|
||||
for (auto valueDataStatisticItemThreatInfoThreatItem : allThreatInfoNode)
|
||||
{
|
||||
StatisticItem::ThreatItem threatInfoObject;
|
||||
if(!valueDataStatisticItemThreatInfoThreatItem["ThreatLevel"].isNull())
|
||||
threatInfoObject.threatLevel = valueDataStatisticItemThreatInfoThreatItem["ThreatLevel"].asString();
|
||||
if(!valueDataStatisticItemThreatInfoThreatItem["ThreatType"].isNull())
|
||||
threatInfoObject.threatType = valueDataStatisticItemThreatInfoThreatItem["ThreatType"].asString();
|
||||
dataObject.threatInfo.push_back(threatInfoObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribePdnsRequestStatisticsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribePdnsRequestStatisticsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribePdnsRequestStatisticsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribePdnsRequestStatisticsResult::StatisticItem> DescribePdnsRequestStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
128
alidns/src/model/DescribePdnsThreatLogsRequest.cc
Normal file
128
alidns/src/model/DescribePdnsThreatLogsRequest.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/alidns/model/DescribePdnsThreatLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsThreatLogsRequest;
|
||||
|
||||
DescribePdnsThreatLogsRequest::DescribePdnsThreatLogsRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsThreatLogs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsThreatLogsRequest::~DescribePdnsThreatLogsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsThreatLogsRequest::getThreatSourceIp()const
|
||||
{
|
||||
return threatSourceIp_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatLogsRequest::setThreatSourceIp(const std::string& threatSourceIp)
|
||||
{
|
||||
threatSourceIp_ = threatSourceIp;
|
||||
setParameter("ThreatSourceIp", threatSourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatLogsRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatLogsRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
long DescribePdnsThreatLogsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatLogsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatLogsRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatLogsRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
long DescribePdnsThreatLogsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatLogsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatLogsRequest::getThreatType()const
|
||||
{
|
||||
return threatType_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatLogsRequest::setThreatType(const std::string& threatType)
|
||||
{
|
||||
threatType_ = threatType;
|
||||
setParameter("ThreatType", threatType);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatLogsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatLogsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatLogsRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatLogsRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatLogsRequest::getThreatLevel()const
|
||||
{
|
||||
return threatLevel_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatLogsRequest::setThreatLevel(const std::string& threatLevel)
|
||||
{
|
||||
threatLevel_ = threatLevel;
|
||||
setParameter("ThreatLevel", threatLevel);
|
||||
}
|
||||
|
||||
86
alidns/src/model/DescribePdnsThreatLogsResult.cc
Normal file
86
alidns/src/model/DescribePdnsThreatLogsResult.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/alidns/model/DescribePdnsThreatLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsThreatLogsResult::DescribePdnsThreatLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsThreatLogsResult::DescribePdnsThreatLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsThreatLogsResult::~DescribePdnsThreatLogsResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsThreatLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLogsNode = value["Logs"]["Log"];
|
||||
for (auto valueLogsLog : allLogsNode)
|
||||
{
|
||||
Log logsObject;
|
||||
if(!valueLogsLog["SubDomain"].isNull())
|
||||
logsObject.subDomain = valueLogsLog["SubDomain"].asString();
|
||||
if(!valueLogsLog["SourceIp"].isNull())
|
||||
logsObject.sourceIp = valueLogsLog["SourceIp"].asString();
|
||||
if(!valueLogsLog["ThreatLevel"].isNull())
|
||||
logsObject.threatLevel = valueLogsLog["ThreatLevel"].asString();
|
||||
if(!valueLogsLog["ThreatTime"].isNull())
|
||||
logsObject.threatTime = valueLogsLog["ThreatTime"].asString();
|
||||
if(!valueLogsLog["ThreatType"].isNull())
|
||||
logsObject.threatType = valueLogsLog["ThreatType"].asString();
|
||||
logs_.push_back(logsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribePdnsThreatLogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribePdnsThreatLogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribePdnsThreatLogsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribePdnsThreatLogsResult::Log> DescribePdnsThreatLogsResult::getLogs()const
|
||||
{
|
||||
return logs_;
|
||||
}
|
||||
|
||||
84
alidns/src/model/DescribePdnsThreatStatisticRequest.cc
Normal file
84
alidns/src/model/DescribePdnsThreatStatisticRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsThreatStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsThreatStatisticRequest;
|
||||
|
||||
DescribePdnsThreatStatisticRequest::DescribePdnsThreatStatisticRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsThreatStatistic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsThreatStatisticRequest::~DescribePdnsThreatStatisticRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsThreatStatisticRequest::getThreatSourceIp()const
|
||||
{
|
||||
return threatSourceIp_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticRequest::setThreatSourceIp(const std::string& threatSourceIp)
|
||||
{
|
||||
threatSourceIp_ = threatSourceIp;
|
||||
setParameter("ThreatSourceIp", threatSourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
67
alidns/src/model/DescribePdnsThreatStatisticResult.cc
Normal file
67
alidns/src/model/DescribePdnsThreatStatisticResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsThreatStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsThreatStatisticResult::DescribePdnsThreatStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsThreatStatisticResult::DescribePdnsThreatStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsThreatStatisticResult::~DescribePdnsThreatStatisticResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsThreatStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["StatisticItem"];
|
||||
for (auto valueDataStatisticItem : allDataNode)
|
||||
{
|
||||
StatisticItem dataObject;
|
||||
if(!valueDataStatisticItem["UdpTotalCount"].isNull())
|
||||
dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString());
|
||||
if(!valueDataStatisticItem["TotalCount"].isNull())
|
||||
dataObject.totalCount = std::stol(valueDataStatisticItem["TotalCount"].asString());
|
||||
if(!valueDataStatisticItem["ThreatLevel"].isNull())
|
||||
dataObject.threatLevel = valueDataStatisticItem["ThreatLevel"].asString();
|
||||
if(!valueDataStatisticItem["ThreatType"].isNull())
|
||||
dataObject.threatType = valueDataStatisticItem["ThreatType"].asString();
|
||||
if(!valueDataStatisticItem["Timestamp"].isNull())
|
||||
dataObject.timestamp = std::stol(valueDataStatisticItem["Timestamp"].asString());
|
||||
if(!valueDataStatisticItem["DohTotalCount"].isNull())
|
||||
dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribePdnsThreatStatisticResult::StatisticItem> DescribePdnsThreatStatisticResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
172
alidns/src/model/DescribePdnsThreatStatisticsRequest.cc
Normal file
172
alidns/src/model/DescribePdnsThreatStatisticsRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsThreatStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsThreatStatisticsRequest;
|
||||
|
||||
DescribePdnsThreatStatisticsRequest::DescribePdnsThreatStatisticsRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsThreatStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsThreatStatisticsRequest::~DescribePdnsThreatStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
long DescribePdnsThreatStatisticsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long DescribePdnsThreatStatisticsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getThreatType()const
|
||||
{
|
||||
return threatType_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setThreatType(const std::string& threatType)
|
||||
{
|
||||
threatType_ = threatType;
|
||||
setParameter("ThreatType", threatType);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getThreatSourceIp()const
|
||||
{
|
||||
return threatSourceIp_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setThreatSourceIp(const std::string& threatSourceIp)
|
||||
{
|
||||
threatSourceIp_ = threatSourceIp;
|
||||
setParameter("ThreatSourceIp", threatSourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getSubDomain()const
|
||||
{
|
||||
return subDomain_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setSubDomain(const std::string& subDomain)
|
||||
{
|
||||
subDomain_ = subDomain;
|
||||
setParameter("SubDomain", subDomain);
|
||||
}
|
||||
|
||||
std::string DescribePdnsThreatStatisticsRequest::getThreatLevel()const
|
||||
{
|
||||
return threatLevel_;
|
||||
}
|
||||
|
||||
void DescribePdnsThreatStatisticsRequest::setThreatLevel(const std::string& threatLevel)
|
||||
{
|
||||
threatLevel_ = threatLevel;
|
||||
setParameter("ThreatLevel", threatLevel);
|
||||
}
|
||||
|
||||
98
alidns/src/model/DescribePdnsThreatStatisticsResult.cc
Normal file
98
alidns/src/model/DescribePdnsThreatStatisticsResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsThreatStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsThreatStatisticsResult::DescribePdnsThreatStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsThreatStatisticsResult::DescribePdnsThreatStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsThreatStatisticsResult::~DescribePdnsThreatStatisticsResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsThreatStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["StatisticItem"];
|
||||
for (auto valueDataStatisticItem : allDataNode)
|
||||
{
|
||||
StatisticItem dataObject;
|
||||
if(!valueDataStatisticItem["SubDomain"].isNull())
|
||||
dataObject.subDomain = valueDataStatisticItem["SubDomain"].asString();
|
||||
if(!valueDataStatisticItem["UdpTotalCount"].isNull())
|
||||
dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString());
|
||||
if(!valueDataStatisticItem["TotalCount"].isNull())
|
||||
dataObject.totalCount = std::stol(valueDataStatisticItem["TotalCount"].asString());
|
||||
if(!valueDataStatisticItem["SourceIp"].isNull())
|
||||
dataObject.sourceIp = valueDataStatisticItem["SourceIp"].asString();
|
||||
if(!valueDataStatisticItem["ThreatLevel"].isNull())
|
||||
dataObject.threatLevel = valueDataStatisticItem["ThreatLevel"].asString();
|
||||
if(!valueDataStatisticItem["DomainName"].isNull())
|
||||
dataObject.domainName = valueDataStatisticItem["DomainName"].asString();
|
||||
if(!valueDataStatisticItem["ThreatType"].isNull())
|
||||
dataObject.threatType = valueDataStatisticItem["ThreatType"].asString();
|
||||
if(!valueDataStatisticItem["MaxThreatLevel"].isNull())
|
||||
dataObject.maxThreatLevel = valueDataStatisticItem["MaxThreatLevel"].asString();
|
||||
if(!valueDataStatisticItem["LatestThreatTime"].isNull())
|
||||
dataObject.latestThreatTime = std::stol(valueDataStatisticItem["LatestThreatTime"].asString());
|
||||
if(!valueDataStatisticItem["DohTotalCount"].isNull())
|
||||
dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString());
|
||||
if(!valueDataStatisticItem["DomainCount"].isNull())
|
||||
dataObject.domainCount = std::stol(valueDataStatisticItem["DomainCount"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribePdnsThreatStatisticsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribePdnsThreatStatisticsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribePdnsThreatStatisticsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribePdnsThreatStatisticsResult::StatisticItem> DescribePdnsThreatStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
62
alidns/src/model/DescribePdnsUdpIpSegmentsRequest.cc
Normal file
62
alidns/src/model/DescribePdnsUdpIpSegmentsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsUdpIpSegmentsRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsUdpIpSegmentsRequest;
|
||||
|
||||
DescribePdnsUdpIpSegmentsRequest::DescribePdnsUdpIpSegmentsRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsUdpIpSegments")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsUdpIpSegmentsRequest::~DescribePdnsUdpIpSegmentsRequest()
|
||||
{}
|
||||
|
||||
long DescribePdnsUdpIpSegmentsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribePdnsUdpIpSegmentsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long DescribePdnsUdpIpSegmentsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePdnsUdpIpSegmentsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePdnsUdpIpSegmentsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsUdpIpSegmentsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
88
alidns/src/model/DescribePdnsUdpIpSegmentsResult.cc
Normal file
88
alidns/src/model/DescribePdnsUdpIpSegmentsResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsUdpIpSegmentsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsUdpIpSegmentsResult::DescribePdnsUdpIpSegmentsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsUdpIpSegmentsResult::DescribePdnsUdpIpSegmentsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsUdpIpSegmentsResult::~DescribePdnsUdpIpSegmentsResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsUdpIpSegmentsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIpSegmentsNode = value["IpSegments"]["IpSegment"];
|
||||
for (auto valueIpSegmentsIpSegment : allIpSegmentsNode)
|
||||
{
|
||||
IpSegment ipSegmentsObject;
|
||||
if(!valueIpSegmentsIpSegment["UpdateDate"].isNull())
|
||||
ipSegmentsObject.updateDate = valueIpSegmentsIpSegment["UpdateDate"].asString();
|
||||
if(!valueIpSegmentsIpSegment["State"].isNull())
|
||||
ipSegmentsObject.state = valueIpSegmentsIpSegment["State"].asString();
|
||||
if(!valueIpSegmentsIpSegment["Ip"].isNull())
|
||||
ipSegmentsObject.ip = valueIpSegmentsIpSegment["Ip"].asString();
|
||||
if(!valueIpSegmentsIpSegment["Mask"].isNull())
|
||||
ipSegmentsObject.mask = std::stol(valueIpSegmentsIpSegment["Mask"].asString());
|
||||
if(!valueIpSegmentsIpSegment["CreateDate"].isNull())
|
||||
ipSegmentsObject.createDate = valueIpSegmentsIpSegment["CreateDate"].asString();
|
||||
if(!valueIpSegmentsIpSegment["Name"].isNull())
|
||||
ipSegmentsObject.name = valueIpSegmentsIpSegment["Name"].asString();
|
||||
ipSegments_.push_back(ipSegmentsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribePdnsUdpIpSegmentsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribePdnsUdpIpSegmentsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribePdnsUdpIpSegmentsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribePdnsUdpIpSegmentsResult::IpSegment> DescribePdnsUdpIpSegmentsResult::getIpSegments()const
|
||||
{
|
||||
return ipSegments_;
|
||||
}
|
||||
|
||||
40
alidns/src/model/DescribePdnsUserInfoRequest.cc
Normal file
40
alidns/src/model/DescribePdnsUserInfoRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsUserInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribePdnsUserInfoRequest;
|
||||
|
||||
DescribePdnsUserInfoRequest::DescribePdnsUserInfoRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsUserInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePdnsUserInfoRequest::~DescribePdnsUserInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePdnsUserInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePdnsUserInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
60
alidns/src/model/DescribePdnsUserInfoResult.cc
Normal file
60
alidns/src/model/DescribePdnsUserInfoResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribePdnsUserInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribePdnsUserInfoResult::DescribePdnsUserInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePdnsUserInfoResult::DescribePdnsUserInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePdnsUserInfoResult::~DescribePdnsUserInfoResult()
|
||||
{}
|
||||
|
||||
void DescribePdnsUserInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userInfoNode = value["UserInfo"];
|
||||
if(!userInfoNode["AvailableService"].isNull())
|
||||
userInfo_.availableService = userInfoNode["AvailableService"].asString();
|
||||
if(!userInfoNode["ServiceType"].isNull())
|
||||
userInfo_.serviceType = userInfoNode["ServiceType"].asString();
|
||||
if(!userInfoNode["State"].isNull())
|
||||
userInfo_.state = userInfoNode["State"].asString();
|
||||
if(!userInfoNode["StoppedService"].isNull())
|
||||
userInfo_.stoppedService = userInfoNode["StoppedService"].asString();
|
||||
if(!userInfoNode["PdnsId"].isNull())
|
||||
userInfo_.pdnsId = std::stol(userInfoNode["PdnsId"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribePdnsUserInfoResult::UserInfo DescribePdnsUserInfoResult::getUserInfo()const
|
||||
{
|
||||
return userInfo_;
|
||||
}
|
||||
|
||||
51
alidns/src/model/PausePdnsServiceRequest.cc
Normal file
51
alidns/src/model/PausePdnsServiceRequest.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/alidns/model/PausePdnsServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::PausePdnsServiceRequest;
|
||||
|
||||
PausePdnsServiceRequest::PausePdnsServiceRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "PausePdnsService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PausePdnsServiceRequest::~PausePdnsServiceRequest()
|
||||
{}
|
||||
|
||||
std::string PausePdnsServiceRequest::getServiceType()const
|
||||
{
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
void PausePdnsServiceRequest::setServiceType(const std::string& serviceType)
|
||||
{
|
||||
serviceType_ = serviceType;
|
||||
setParameter("ServiceType", serviceType);
|
||||
}
|
||||
|
||||
std::string PausePdnsServiceRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void PausePdnsServiceRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
alidns/src/model/PausePdnsServiceResult.cc
Normal file
44
alidns/src/model/PausePdnsServiceResult.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/alidns/model/PausePdnsServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
PausePdnsServiceResult::PausePdnsServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PausePdnsServiceResult::PausePdnsServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PausePdnsServiceResult::~PausePdnsServiceResult()
|
||||
{}
|
||||
|
||||
void PausePdnsServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
alidns/src/model/RemovePdnsAppKeyRequest.cc
Normal file
51
alidns/src/model/RemovePdnsAppKeyRequest.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/alidns/model/RemovePdnsAppKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::RemovePdnsAppKeyRequest;
|
||||
|
||||
RemovePdnsAppKeyRequest::RemovePdnsAppKeyRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "RemovePdnsAppKey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemovePdnsAppKeyRequest::~RemovePdnsAppKeyRequest()
|
||||
{}
|
||||
|
||||
std::string RemovePdnsAppKeyRequest::getAppKeyId()const
|
||||
{
|
||||
return appKeyId_;
|
||||
}
|
||||
|
||||
void RemovePdnsAppKeyRequest::setAppKeyId(const std::string& appKeyId)
|
||||
{
|
||||
appKeyId_ = appKeyId;
|
||||
setParameter("AppKeyId", appKeyId);
|
||||
}
|
||||
|
||||
std::string RemovePdnsAppKeyRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void RemovePdnsAppKeyRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
alidns/src/model/RemovePdnsAppKeyResult.cc
Normal file
44
alidns/src/model/RemovePdnsAppKeyResult.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/alidns/model/RemovePdnsAppKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
RemovePdnsAppKeyResult::RemovePdnsAppKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemovePdnsAppKeyResult::RemovePdnsAppKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemovePdnsAppKeyResult::~RemovePdnsAppKeyResult()
|
||||
{}
|
||||
|
||||
void RemovePdnsAppKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
alidns/src/model/RemovePdnsUdpIpSegmentRequest.cc
Normal file
51
alidns/src/model/RemovePdnsUdpIpSegmentRequest.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/alidns/model/RemovePdnsUdpIpSegmentRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::RemovePdnsUdpIpSegmentRequest;
|
||||
|
||||
RemovePdnsUdpIpSegmentRequest::RemovePdnsUdpIpSegmentRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "RemovePdnsUdpIpSegment")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemovePdnsUdpIpSegmentRequest::~RemovePdnsUdpIpSegmentRequest()
|
||||
{}
|
||||
|
||||
std::string RemovePdnsUdpIpSegmentRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void RemovePdnsUdpIpSegmentRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string RemovePdnsUdpIpSegmentRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void RemovePdnsUdpIpSegmentRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
alidns/src/model/RemovePdnsUdpIpSegmentResult.cc
Normal file
44
alidns/src/model/RemovePdnsUdpIpSegmentResult.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/alidns/model/RemovePdnsUdpIpSegmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
RemovePdnsUdpIpSegmentResult::RemovePdnsUdpIpSegmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemovePdnsUdpIpSegmentResult::RemovePdnsUdpIpSegmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemovePdnsUdpIpSegmentResult::~RemovePdnsUdpIpSegmentResult()
|
||||
{}
|
||||
|
||||
void RemovePdnsUdpIpSegmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
alidns/src/model/ResumePdnsServiceRequest.cc
Normal file
51
alidns/src/model/ResumePdnsServiceRequest.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/alidns/model/ResumePdnsServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::ResumePdnsServiceRequest;
|
||||
|
||||
ResumePdnsServiceRequest::ResumePdnsServiceRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "ResumePdnsService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResumePdnsServiceRequest::~ResumePdnsServiceRequest()
|
||||
{}
|
||||
|
||||
std::string ResumePdnsServiceRequest::getServiceType()const
|
||||
{
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
void ResumePdnsServiceRequest::setServiceType(const std::string& serviceType)
|
||||
{
|
||||
serviceType_ = serviceType;
|
||||
setParameter("ServiceType", serviceType);
|
||||
}
|
||||
|
||||
std::string ResumePdnsServiceRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ResumePdnsServiceRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
alidns/src/model/ResumePdnsServiceResult.cc
Normal file
44
alidns/src/model/ResumePdnsServiceResult.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/alidns/model/ResumePdnsServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
ResumePdnsServiceResult::ResumePdnsServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResumePdnsServiceResult::ResumePdnsServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResumePdnsServiceResult::~ResumePdnsServiceResult()
|
||||
{}
|
||||
|
||||
void ResumePdnsServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
alidns/src/model/UpdateAppKeyStateRequest.cc
Normal file
62
alidns/src/model/UpdateAppKeyStateRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/UpdateAppKeyStateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::UpdateAppKeyStateRequest;
|
||||
|
||||
UpdateAppKeyStateRequest::UpdateAppKeyStateRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "UpdateAppKeyState")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAppKeyStateRequest::~UpdateAppKeyStateRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateAppKeyStateRequest::getAppKeyId()const
|
||||
{
|
||||
return appKeyId_;
|
||||
}
|
||||
|
||||
void UpdateAppKeyStateRequest::setAppKeyId(const std::string& appKeyId)
|
||||
{
|
||||
appKeyId_ = appKeyId;
|
||||
setParameter("AppKeyId", appKeyId);
|
||||
}
|
||||
|
||||
std::string UpdateAppKeyStateRequest::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
void UpdateAppKeyStateRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setParameter("State", state);
|
||||
}
|
||||
|
||||
std::string UpdateAppKeyStateRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void UpdateAppKeyStateRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
alidns/src/model/UpdateAppKeyStateResult.cc
Normal file
44
alidns/src/model/UpdateAppKeyStateResult.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/alidns/model/UpdateAppKeyStateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
UpdateAppKeyStateResult::UpdateAppKeyStateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAppKeyStateResult::UpdateAppKeyStateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAppKeyStateResult::~UpdateAppKeyStateResult()
|
||||
{}
|
||||
|
||||
void UpdateAppKeyStateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -224,3 +224,14 @@ void UpdateDnsGtmAccessStrategyRequest::setFailoverAddrPool(const std::vector<Fa
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateDnsGtmAccessStrategyRequest::getAccessMode()const
|
||||
{
|
||||
return accessMode_;
|
||||
}
|
||||
|
||||
void UpdateDnsGtmAccessStrategyRequest::setAccessMode(const std::string& accessMode)
|
||||
{
|
||||
accessMode_ = accessMode;
|
||||
setParameter("AccessMode", accessMode);
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ void UpdateDnsGtmInstanceGlobalConfigRequest::setAlertConfig(const std::vector<A
|
||||
for(int dep1 = 0; dep1!= alertConfig.size(); dep1++) {
|
||||
auto alertConfigObj = alertConfig.at(dep1);
|
||||
std::string alertConfigObjStr = "AlertConfig." + std::to_string(dep1 + 1);
|
||||
setParameter(alertConfigObjStr + ".DingtalkNotice", alertConfigObj.dingtalkNotice ? "true" : "false");
|
||||
setParameter(alertConfigObjStr + ".SmsNotice", alertConfigObj.smsNotice ? "true" : "false");
|
||||
setParameter(alertConfigObjStr + ".NoticeType", alertConfigObj.noticeType);
|
||||
setParameter(alertConfigObjStr + ".EmailNotice", alertConfigObj.emailNotice ? "true" : "false");
|
||||
@@ -110,6 +111,17 @@ void UpdateDnsGtmInstanceGlobalConfigRequest::setTtl(int ttl)
|
||||
setParameter("Ttl", std::to_string(ttl));
|
||||
}
|
||||
|
||||
bool UpdateDnsGtmInstanceGlobalConfigRequest::getForceUpdate()const
|
||||
{
|
||||
return forceUpdate_;
|
||||
}
|
||||
|
||||
void UpdateDnsGtmInstanceGlobalConfigRequest::setForceUpdate(bool forceUpdate)
|
||||
{
|
||||
forceUpdate_ = forceUpdate;
|
||||
setParameter("ForceUpdate", forceUpdate ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateDnsGtmInstanceGlobalConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
@@ -132,6 +144,17 @@ void UpdateDnsGtmInstanceGlobalConfigRequest::setInstanceName(const std::string&
|
||||
setParameter("InstanceName", instanceName);
|
||||
}
|
||||
|
||||
std::string UpdateDnsGtmInstanceGlobalConfigRequest::getPublicRr()const
|
||||
{
|
||||
return publicRr_;
|
||||
}
|
||||
|
||||
void UpdateDnsGtmInstanceGlobalConfigRequest::setPublicRr(const std::string& publicRr)
|
||||
{
|
||||
publicRr_ = publicRr;
|
||||
setParameter("PublicRr", publicRr);
|
||||
}
|
||||
|
||||
std::string UpdateDnsGtmInstanceGlobalConfigRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
|
||||
106
alidns/src/model/ValidateDnsGtmCnameRrCanUseRequest.cc
Normal file
106
alidns/src/model/ValidateDnsGtmCnameRrCanUseRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/ValidateDnsGtmCnameRrCanUseRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::ValidateDnsGtmCnameRrCanUseRequest;
|
||||
|
||||
ValidateDnsGtmCnameRrCanUseRequest::ValidateDnsGtmCnameRrCanUseRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "ValidateDnsGtmCnameRrCanUse")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ValidateDnsGtmCnameRrCanUseRequest::~ValidateDnsGtmCnameRrCanUseRequest()
|
||||
{}
|
||||
|
||||
std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameMode()const
|
||||
{
|
||||
return cnameMode_;
|
||||
}
|
||||
|
||||
void ValidateDnsGtmCnameRrCanUseRequest::setCnameMode(const std::string& cnameMode)
|
||||
{
|
||||
cnameMode_ = cnameMode;
|
||||
setParameter("CnameMode", cnameMode);
|
||||
}
|
||||
|
||||
std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameZone()const
|
||||
{
|
||||
return cnameZone_;
|
||||
}
|
||||
|
||||
void ValidateDnsGtmCnameRrCanUseRequest::setCnameZone(const std::string& cnameZone)
|
||||
{
|
||||
cnameZone_ = cnameZone;
|
||||
setParameter("CnameZone", cnameZone);
|
||||
}
|
||||
|
||||
std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameRr()const
|
||||
{
|
||||
return cnameRr_;
|
||||
}
|
||||
|
||||
void ValidateDnsGtmCnameRrCanUseRequest::setCnameRr(const std::string& cnameRr)
|
||||
{
|
||||
cnameRr_ = cnameRr;
|
||||
setParameter("CnameRr", cnameRr);
|
||||
}
|
||||
|
||||
std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameType()const
|
||||
{
|
||||
return cnameType_;
|
||||
}
|
||||
|
||||
void ValidateDnsGtmCnameRrCanUseRequest::setCnameType(const std::string& cnameType)
|
||||
{
|
||||
cnameType_ = cnameType;
|
||||
setParameter("CnameType", cnameType);
|
||||
}
|
||||
|
||||
std::string ValidateDnsGtmCnameRrCanUseRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ValidateDnsGtmCnameRrCanUseRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ValidateDnsGtmCnameRrCanUseRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void ValidateDnsGtmCnameRrCanUseRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string ValidateDnsGtmCnameRrCanUseRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ValidateDnsGtmCnameRrCanUseRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
alidns/src/model/ValidateDnsGtmCnameRrCanUseResult.cc
Normal file
44
alidns/src/model/ValidateDnsGtmCnameRrCanUseResult.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/alidns/model/ValidateDnsGtmCnameRrCanUseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
ValidateDnsGtmCnameRrCanUseResult::ValidateDnsGtmCnameRrCanUseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ValidateDnsGtmCnameRrCanUseResult::ValidateDnsGtmCnameRrCanUseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ValidateDnsGtmCnameRrCanUseResult::~ValidateDnsGtmCnameRrCanUseResult()
|
||||
{}
|
||||
|
||||
void ValidateDnsGtmCnameRrCanUseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
alidns/src/model/ValidatePdnsUdpIpSegmentRequest.cc
Normal file
51
alidns/src/model/ValidatePdnsUdpIpSegmentRequest.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/alidns/model/ValidatePdnsUdpIpSegmentRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::ValidatePdnsUdpIpSegmentRequest;
|
||||
|
||||
ValidatePdnsUdpIpSegmentRequest::ValidatePdnsUdpIpSegmentRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "ValidatePdnsUdpIpSegment")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ValidatePdnsUdpIpSegmentRequest::~ValidatePdnsUdpIpSegmentRequest()
|
||||
{}
|
||||
|
||||
std::string ValidatePdnsUdpIpSegmentRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void ValidatePdnsUdpIpSegmentRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string ValidatePdnsUdpIpSegmentRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ValidatePdnsUdpIpSegmentRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
alidns/src/model/ValidatePdnsUdpIpSegmentResult.cc
Normal file
44
alidns/src/model/ValidatePdnsUdpIpSegmentResult.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/alidns/model/ValidatePdnsUdpIpSegmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
ValidatePdnsUdpIpSegmentResult::ValidatePdnsUdpIpSegmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ValidatePdnsUdpIpSegmentResult::ValidatePdnsUdpIpSegmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ValidatePdnsUdpIpSegmentResult::~ValidatePdnsUdpIpSegmentResult()
|
||||
{}
|
||||
|
||||
void ValidatePdnsUdpIpSegmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user