Compare commits
40 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b03b322c96 | ||
|
|
0cdb7bfa7c | ||
|
|
4ff92e0924 | ||
|
|
acb3224329 | ||
|
|
36e644262a | ||
|
|
3f598709ce | ||
|
|
ff12aa8e1c | ||
|
|
35f5b170e3 | ||
|
|
af10d89e40 | ||
|
|
851f067179 | ||
|
|
d9c4d7f556 | ||
|
|
6b7018d7d5 | ||
|
|
de410cb26c | ||
|
|
63d1456017 | ||
|
|
53badb17c1 | ||
|
|
51c7466a7c | ||
|
|
e097e2342f | ||
|
|
21cd880292 | ||
|
|
6bb79f8a04 | ||
|
|
939eeccab4 | ||
|
|
c6fe210221 | ||
|
|
6c572378d9 | ||
|
|
6f86a0ac33 | ||
|
|
f2759cebfa | ||
|
|
e4a6e73946 | ||
|
|
f9cb2e2167 | ||
|
|
cc32a735e4 | ||
|
|
25bbb2bf65 | ||
|
|
143a7b3400 | ||
|
|
6f08307187 | ||
|
|
e915fe10cd | ||
|
|
949c6555a8 | ||
|
|
55ce8a3d14 | ||
|
|
bb602506ac | ||
|
|
bd54b5cd5c | ||
|
|
e3ea03b0b4 | ||
|
|
19317ac0ab | ||
|
|
4c13bbea82 | ||
|
|
015109df88 | ||
|
|
e18ac68719 |
121
CHANGELOG
121
CHANGELOG
@@ -1,3 +1,124 @@
|
||||
2022-07-27 Version: 1.36.1207
|
||||
- Update.
|
||||
|
||||
2022-07-26 Version: 1.36.1206
|
||||
- Change ListCheckInstanceResult Public.
|
||||
|
||||
2022-07-26 Version: 1.36.1205
|
||||
- Support API ARMInstance.
|
||||
- Support Control ARM API.
|
||||
|
||||
2022-07-26 Version: 1.36.1204
|
||||
- Add cmsGroupId parameter to CreateApplicationGroupRequest.
|
||||
|
||||
2022-07-26 Version: 1.36.1203
|
||||
- Change ListCheckInstanceResult Public.
|
||||
|
||||
2022-07-25 Version: 1.36.1202
|
||||
- Change ListCheckInstanceResult GetCheckDetail Public.
|
||||
|
||||
2022-07-25 Version: 1.36.1201
|
||||
- Update MonitorExamination.
|
||||
|
||||
2022-07-25 Version: 1.36.1200
|
||||
- Update SegmentOAR.
|
||||
|
||||
2022-07-25 Version: 1.36.1199
|
||||
- Change ListCheckInstanceResult GetCheckDetail Public.
|
||||
|
||||
2022-07-22 Version: 1.36.1198
|
||||
- Change ListCheckInstanceResult GetCheckDetail Public.
|
||||
|
||||
2022-07-22 Version: 1.36.1197
|
||||
- Update ScreenChestCT Release SegmentOAR.
|
||||
|
||||
2022-07-22 Version: 1.36.1196
|
||||
- Update ScreenChestCT - Release SegmentOAR.
|
||||
|
||||
2022-07-21 Version: 1.36.1195
|
||||
- Support PreConfigRule.
|
||||
|
||||
2022-07-21 Version: 1.36.1194
|
||||
- Add kms apis.
|
||||
|
||||
2022-07-21 Version: 1.36.1193
|
||||
- Ram action config.
|
||||
|
||||
2022-07-21 Version: 1.36.1192
|
||||
- Add Body Detection and Image Splicing API.
|
||||
|
||||
2022-07-20 Version: 1.36.1191
|
||||
- Change getFileDetectResult.
|
||||
|
||||
2022-07-20 Version: 1.36.1190
|
||||
- Support AK Audit API.
|
||||
|
||||
2022-07-20 Version: 1.36.1189
|
||||
- Add Body Detection and Image Splicing API.
|
||||
|
||||
2022-07-20 Version: 1.36.1188
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2022-07-19 Version: 1.36.1187
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2022-07-19 Version: 1.36.1186
|
||||
- Support MatchAddressType in RouteMap API.
|
||||
|
||||
2022-07-18 Version: 1.36.1185
|
||||
- Add Mutimedia Screen API Support.
|
||||
|
||||
2022-07-18 Version: 1.36.1184
|
||||
- Change cspm ListCheckResult api.
|
||||
|
||||
2022-07-18 Version: 1.36.1183
|
||||
- Support Elastic Desktop Service.
|
||||
|
||||
2022-07-18 Version: 1.36.1182
|
||||
- Test.
|
||||
|
||||
2022-07-15 Version: 1.36.1181
|
||||
- Add cspm ListCheckResult api.
|
||||
|
||||
2022-07-15 Version: 1.36.1180
|
||||
- Add open file detect api.
|
||||
|
||||
2022-07-15 Version: 1.36.1179
|
||||
- Support Security Group Batch Manager Rules.
|
||||
|
||||
2022-07-13 Version: 1.36.1178
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
2022-07-12 Version: 1.36.1177
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
2022-07-11 Version: 1.36.1176
|
||||
- Support Storage And Network Features For LaunchTemplate.
|
||||
|
||||
2022-07-11 Version: 1.36.1175
|
||||
- Add new api for rule.
|
||||
|
||||
2022-07-11 Version: 1.36.1174
|
||||
- Add open file detect api.
|
||||
|
||||
2022-07-08 Version: 1.36.1173
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
2022-07-08 Version: 1.36.1172
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
2022-07-08 Version: 1.36.1171
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
2022-07-08 Version: 1.36.1170
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
2022-07-08 Version: 1.36.1169
|
||||
- Support AK Audit API.
|
||||
|
||||
2022-07-04 Version: 1.36.1168
|
||||
- Add API QueryEmbeddedStaus.
|
||||
|
||||
2022-07-04 Version: 1.36.1167
|
||||
- Update API error codes.
|
||||
- Adjust parameters verification rules for some APIs.
|
||||
|
||||
@@ -33,6 +33,18 @@ set(actiontrail_public_header_model
|
||||
include/alibabacloud/actiontrail/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/actiontrail/model/DescribeTrailsRequest.h
|
||||
include/alibabacloud/actiontrail/model/DescribeTrailsResult.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsRequest.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsResult.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoRequest.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoResult.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsRequest.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsResult.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsRequest.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsResult.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesRequest.h
|
||||
include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesResult.h
|
||||
include/alibabacloud/actiontrail/model/GetDeliveryHistoryJobRequest.h
|
||||
include/alibabacloud/actiontrail/model/GetDeliveryHistoryJobResult.h
|
||||
include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h
|
||||
include/alibabacloud/actiontrail/model/GetTrailStatusResult.h
|
||||
include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h
|
||||
@@ -60,6 +72,18 @@ set(actiontrail_src
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeTrailsRequest.cc
|
||||
src/model/DescribeTrailsResult.cc
|
||||
src/model/GetAccessKeyLastUsedEventsRequest.cc
|
||||
src/model/GetAccessKeyLastUsedEventsResult.cc
|
||||
src/model/GetAccessKeyLastUsedInfoRequest.cc
|
||||
src/model/GetAccessKeyLastUsedInfoResult.cc
|
||||
src/model/GetAccessKeyLastUsedIpsRequest.cc
|
||||
src/model/GetAccessKeyLastUsedIpsResult.cc
|
||||
src/model/GetAccessKeyLastUsedProductsRequest.cc
|
||||
src/model/GetAccessKeyLastUsedProductsResult.cc
|
||||
src/model/GetAccessKeyLastUsedResourcesRequest.cc
|
||||
src/model/GetAccessKeyLastUsedResourcesResult.cc
|
||||
src/model/GetDeliveryHistoryJobRequest.cc
|
||||
src/model/GetDeliveryHistoryJobResult.cc
|
||||
src/model/GetTrailStatusRequest.cc
|
||||
src/model/GetTrailStatusResult.cc
|
||||
src/model/ListDeliveryHistoryJobsRequest.cc
|
||||
|
||||
@@ -34,6 +34,18 @@
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeTrailsRequest.h"
|
||||
#include "model/DescribeTrailsResult.h"
|
||||
#include "model/GetAccessKeyLastUsedEventsRequest.h"
|
||||
#include "model/GetAccessKeyLastUsedEventsResult.h"
|
||||
#include "model/GetAccessKeyLastUsedInfoRequest.h"
|
||||
#include "model/GetAccessKeyLastUsedInfoResult.h"
|
||||
#include "model/GetAccessKeyLastUsedIpsRequest.h"
|
||||
#include "model/GetAccessKeyLastUsedIpsResult.h"
|
||||
#include "model/GetAccessKeyLastUsedProductsRequest.h"
|
||||
#include "model/GetAccessKeyLastUsedProductsResult.h"
|
||||
#include "model/GetAccessKeyLastUsedResourcesRequest.h"
|
||||
#include "model/GetAccessKeyLastUsedResourcesResult.h"
|
||||
#include "model/GetDeliveryHistoryJobRequest.h"
|
||||
#include "model/GetDeliveryHistoryJobResult.h"
|
||||
#include "model/GetTrailStatusRequest.h"
|
||||
#include "model/GetTrailStatusResult.h"
|
||||
#include "model/ListDeliveryHistoryJobsRequest.h"
|
||||
@@ -73,6 +85,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTrailsResult> DescribeTrailsOutcome;
|
||||
typedef std::future<DescribeTrailsOutcome> DescribeTrailsOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::DescribeTrailsRequest&, const DescribeTrailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTrailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAccessKeyLastUsedEventsResult> GetAccessKeyLastUsedEventsOutcome;
|
||||
typedef std::future<GetAccessKeyLastUsedEventsOutcome> GetAccessKeyLastUsedEventsOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::GetAccessKeyLastUsedEventsRequest&, const GetAccessKeyLastUsedEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAccessKeyLastUsedEventsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAccessKeyLastUsedInfoResult> GetAccessKeyLastUsedInfoOutcome;
|
||||
typedef std::future<GetAccessKeyLastUsedInfoOutcome> GetAccessKeyLastUsedInfoOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::GetAccessKeyLastUsedInfoRequest&, const GetAccessKeyLastUsedInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAccessKeyLastUsedInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAccessKeyLastUsedIpsResult> GetAccessKeyLastUsedIpsOutcome;
|
||||
typedef std::future<GetAccessKeyLastUsedIpsOutcome> GetAccessKeyLastUsedIpsOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::GetAccessKeyLastUsedIpsRequest&, const GetAccessKeyLastUsedIpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAccessKeyLastUsedIpsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAccessKeyLastUsedProductsResult> GetAccessKeyLastUsedProductsOutcome;
|
||||
typedef std::future<GetAccessKeyLastUsedProductsOutcome> GetAccessKeyLastUsedProductsOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::GetAccessKeyLastUsedProductsRequest&, const GetAccessKeyLastUsedProductsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAccessKeyLastUsedProductsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAccessKeyLastUsedResourcesResult> GetAccessKeyLastUsedResourcesOutcome;
|
||||
typedef std::future<GetAccessKeyLastUsedResourcesOutcome> GetAccessKeyLastUsedResourcesOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::GetAccessKeyLastUsedResourcesRequest&, const GetAccessKeyLastUsedResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAccessKeyLastUsedResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDeliveryHistoryJobResult> GetDeliveryHistoryJobOutcome;
|
||||
typedef std::future<GetDeliveryHistoryJobOutcome> GetDeliveryHistoryJobOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::GetDeliveryHistoryJobRequest&, const GetDeliveryHistoryJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeliveryHistoryJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTrailStatusResult> GetTrailStatusOutcome;
|
||||
typedef std::future<GetTrailStatusOutcome> GetTrailStatusOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::GetTrailStatusRequest&, const GetTrailStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTrailStatusAsyncHandler;
|
||||
@@ -114,6 +144,24 @@ namespace AlibabaCloud
|
||||
DescribeTrailsOutcome describeTrails(const Model::DescribeTrailsRequest &request)const;
|
||||
void describeTrailsAsync(const Model::DescribeTrailsRequest& request, const DescribeTrailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTrailsOutcomeCallable describeTrailsCallable(const Model::DescribeTrailsRequest& request) const;
|
||||
GetAccessKeyLastUsedEventsOutcome getAccessKeyLastUsedEvents(const Model::GetAccessKeyLastUsedEventsRequest &request)const;
|
||||
void getAccessKeyLastUsedEventsAsync(const Model::GetAccessKeyLastUsedEventsRequest& request, const GetAccessKeyLastUsedEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAccessKeyLastUsedEventsOutcomeCallable getAccessKeyLastUsedEventsCallable(const Model::GetAccessKeyLastUsedEventsRequest& request) const;
|
||||
GetAccessKeyLastUsedInfoOutcome getAccessKeyLastUsedInfo(const Model::GetAccessKeyLastUsedInfoRequest &request)const;
|
||||
void getAccessKeyLastUsedInfoAsync(const Model::GetAccessKeyLastUsedInfoRequest& request, const GetAccessKeyLastUsedInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAccessKeyLastUsedInfoOutcomeCallable getAccessKeyLastUsedInfoCallable(const Model::GetAccessKeyLastUsedInfoRequest& request) const;
|
||||
GetAccessKeyLastUsedIpsOutcome getAccessKeyLastUsedIps(const Model::GetAccessKeyLastUsedIpsRequest &request)const;
|
||||
void getAccessKeyLastUsedIpsAsync(const Model::GetAccessKeyLastUsedIpsRequest& request, const GetAccessKeyLastUsedIpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAccessKeyLastUsedIpsOutcomeCallable getAccessKeyLastUsedIpsCallable(const Model::GetAccessKeyLastUsedIpsRequest& request) const;
|
||||
GetAccessKeyLastUsedProductsOutcome getAccessKeyLastUsedProducts(const Model::GetAccessKeyLastUsedProductsRequest &request)const;
|
||||
void getAccessKeyLastUsedProductsAsync(const Model::GetAccessKeyLastUsedProductsRequest& request, const GetAccessKeyLastUsedProductsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAccessKeyLastUsedProductsOutcomeCallable getAccessKeyLastUsedProductsCallable(const Model::GetAccessKeyLastUsedProductsRequest& request) const;
|
||||
GetAccessKeyLastUsedResourcesOutcome getAccessKeyLastUsedResources(const Model::GetAccessKeyLastUsedResourcesRequest &request)const;
|
||||
void getAccessKeyLastUsedResourcesAsync(const Model::GetAccessKeyLastUsedResourcesRequest& request, const GetAccessKeyLastUsedResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAccessKeyLastUsedResourcesOutcomeCallable getAccessKeyLastUsedResourcesCallable(const Model::GetAccessKeyLastUsedResourcesRequest& request) const;
|
||||
GetDeliveryHistoryJobOutcome getDeliveryHistoryJob(const Model::GetDeliveryHistoryJobRequest &request)const;
|
||||
void getDeliveryHistoryJobAsync(const Model::GetDeliveryHistoryJobRequest& request, const GetDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDeliveryHistoryJobOutcomeCallable getDeliveryHistoryJobCallable(const Model::GetDeliveryHistoryJobRequest& request) const;
|
||||
GetTrailStatusOutcome getTrailStatus(const Model::GetTrailStatusRequest &request)const;
|
||||
void getTrailStatusAsync(const Model::GetTrailStatusRequest& request, const GetTrailStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTrailStatusOutcomeCallable getTrailStatusCallable(const Model::GetTrailStatusRequest& request) const;
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateDeliveryHistoryJobRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDeliveryHistoryJobRequest();
|
||||
~CreateDeliveryHistoryJobRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getTrailName()const;
|
||||
void setTrailName(const std::string& trailName);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string trailName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateDeliveryHistoryJobRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateDeliveryHistoryJobRequest();
|
||||
~CreateDeliveryHistoryJobRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getTrailName() const;
|
||||
void setTrailName(const std::string &trailName);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string trailName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
|
||||
|
||||
@@ -1,72 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateTrailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateTrailRequest();
|
||||
~CreateTrailRequest();
|
||||
|
||||
std::string getSlsProjectArn()const;
|
||||
void setSlsProjectArn(const std::string& slsProjectArn);
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
void setSlsWriteRoleArn(const std::string& slsWriteRoleArn);
|
||||
bool getIsOrganizationTrail()const;
|
||||
void setIsOrganizationTrail(bool isOrganizationTrail);
|
||||
std::string getOssKeyPrefix()const;
|
||||
void setOssKeyPrefix(const std::string& ossKeyPrefix);
|
||||
std::string getOssWriteRoleArn()const;
|
||||
void setOssWriteRoleArn(const std::string& ossWriteRoleArn);
|
||||
std::string getEventRW()const;
|
||||
void setEventRW(const std::string& eventRW);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getTrailRegion()const;
|
||||
void setTrailRegion(const std::string& trailRegion);
|
||||
|
||||
private:
|
||||
std::string slsProjectArn_;
|
||||
std::string slsWriteRoleArn_;
|
||||
bool isOrganizationTrail_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string ossWriteRoleArn_;
|
||||
std::string eventRW_;
|
||||
std::string name_;
|
||||
std::string ossBucketName_;
|
||||
std::string trailRegion_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateTrailRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateTrailRequest();
|
||||
~CreateTrailRequest();
|
||||
std::string getSlsProjectArn() const;
|
||||
void setSlsProjectArn(const std::string &slsProjectArn);
|
||||
std::string getSlsWriteRoleArn() const;
|
||||
void setSlsWriteRoleArn(const std::string &slsWriteRoleArn);
|
||||
bool getIsOrganizationTrail() const;
|
||||
void setIsOrganizationTrail(bool isOrganizationTrail);
|
||||
std::string getOssKeyPrefix() const;
|
||||
void setOssKeyPrefix(const std::string &ossKeyPrefix);
|
||||
std::string getOssWriteRoleArn() const;
|
||||
void setOssWriteRoleArn(const std::string &ossWriteRoleArn);
|
||||
std::string getEventRW() const;
|
||||
void setEventRW(const std::string &eventRW);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string getOssBucketName() const;
|
||||
void setOssBucketName(const std::string &ossBucketName);
|
||||
std::string getTrailRegion() const;
|
||||
void setTrailRegion(const std::string &trailRegion);
|
||||
|
||||
private:
|
||||
std::string slsProjectArn_;
|
||||
std::string slsWriteRoleArn_;
|
||||
bool isOrganizationTrail_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string ossWriteRoleArn_;
|
||||
std::string eventRW_;
|
||||
std::string name_;
|
||||
std::string ossBucketName_;
|
||||
std::string trailRegion_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||
|
||||
@@ -42,8 +42,8 @@ namespace AlibabaCloud
|
||||
std::string getHomeRegion()const;
|
||||
std::string getOssKeyPrefix()const;
|
||||
std::string getOssBucketName()const;
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
std::string getOssWriteRoleArn()const;
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
std::string getTrailRegion()const;
|
||||
std::string getName()const;
|
||||
|
||||
@@ -55,8 +55,8 @@ namespace AlibabaCloud
|
||||
std::string homeRegion_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string ossBucketName_;
|
||||
std::string slsWriteRoleArn_;
|
||||
std::string ossWriteRoleArn_;
|
||||
std::string slsWriteRoleArn_;
|
||||
std::string trailRegion_;
|
||||
std::string name_;
|
||||
|
||||
|
||||
@@ -1,48 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteDeliveryHistoryJobRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDeliveryHistoryJobRequest();
|
||||
~DeleteDeliveryHistoryJobRequest();
|
||||
|
||||
int getJobId()const;
|
||||
void setJobId(int jobId);
|
||||
|
||||
private:
|
||||
int jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteDeliveryHistoryJobRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteDeliveryHistoryJobRequest();
|
||||
~DeleteDeliveryHistoryJobRequest();
|
||||
int getJobId() const;
|
||||
void setJobId(int jobId);
|
||||
|
||||
private:
|
||||
int jobId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
|
||||
|
||||
@@ -1,48 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteTrailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteTrailRequest();
|
||||
~DeleteTrailRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteTrailRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteTrailRequest();
|
||||
~DeleteTrailRequest();
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||
|
||||
@@ -1,48 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeRegionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
|
||||
std::string getAcceptLanguage()const;
|
||||
void setAcceptLanguage(const std::string& acceptLanguage);
|
||||
|
||||
private:
|
||||
std::string acceptLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeRegionsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
std::string getAcceptLanguage() const;
|
||||
void setAcceptLanguage(const std::string &acceptLanguage);
|
||||
|
||||
private:
|
||||
std::string acceptLanguage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
@@ -1,54 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeTrailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTrailsRequest();
|
||||
~DescribeTrailsRequest();
|
||||
|
||||
bool getIncludeOrganizationTrail()const;
|
||||
void setIncludeOrganizationTrail(bool includeOrganizationTrail);
|
||||
bool getIncludeShadowTrails()const;
|
||||
void setIncludeShadowTrails(bool includeShadowTrails);
|
||||
std::string getNameList()const;
|
||||
void setNameList(const std::string& nameList);
|
||||
|
||||
private:
|
||||
bool includeOrganizationTrail_;
|
||||
bool includeShadowTrails_;
|
||||
std::string nameList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeTrailsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeTrailsRequest();
|
||||
~DescribeTrailsRequest();
|
||||
bool getIncludeOrganizationTrail() const;
|
||||
void setIncludeOrganizationTrail(bool includeOrganizationTrail);
|
||||
bool getIncludeShadowTrails() const;
|
||||
void setIncludeShadowTrails(bool includeShadowTrails);
|
||||
std::string getNameList() const;
|
||||
void setNameList(const std::string &nameList);
|
||||
|
||||
private:
|
||||
bool includeOrganizationTrail_;
|
||||
bool includeShadowTrails_;
|
||||
std::string nameList_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||
|
||||
@@ -36,23 +36,24 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string status;
|
||||
std::string homeRegion;
|
||||
std::string startLoggingTime;
|
||||
std::string createTime;
|
||||
std::string startLoggingTime;
|
||||
std::string stopLoggingTime;
|
||||
std::string organizationId;
|
||||
std::string slsWriteRoleArn;
|
||||
std::string ossBucketLocation;
|
||||
std::string organizationId;
|
||||
std::string trailRegion;
|
||||
std::string name;
|
||||
std::string ossBucketLocation;
|
||||
bool isOrganizationTrail;
|
||||
std::string name;
|
||||
std::string slsProjectArn;
|
||||
std::string eventRW;
|
||||
std::string ossKeyPrefix;
|
||||
std::string updateTime;
|
||||
std::string ossKeyPrefix;
|
||||
std::string region;
|
||||
std::string ossBucketName;
|
||||
std::string ossWriteRoleArn;
|
||||
long isShadowTrail;
|
||||
std::string trailArn;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDEVENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDEVENTSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedEventsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetAccessKeyLastUsedEventsRequest();
|
||||
~GetAccessKeyLastUsedEventsRequest();
|
||||
std::string getAccessKey() const;
|
||||
void setAccessKey(const std::string &accessKey);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::string getPageSize() const;
|
||||
void setPageSize(const std::string &pageSize);
|
||||
std::string getServiceName() const;
|
||||
void setServiceName(const std::string &serviceName);
|
||||
|
||||
private:
|
||||
std::string accessKey_;
|
||||
std::string nextToken_;
|
||||
std::string pageSize_;
|
||||
std::string serviceName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDEVENTSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDEVENTSRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDEVENTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedEventsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct EventsItem
|
||||
{
|
||||
std::string eventName;
|
||||
long usedTimestamp;
|
||||
std::string detail;
|
||||
std::string source;
|
||||
};
|
||||
|
||||
|
||||
GetAccessKeyLastUsedEventsResult();
|
||||
explicit GetAccessKeyLastUsedEventsResult(const std::string &payload);
|
||||
~GetAccessKeyLastUsedEventsResult();
|
||||
std::string getNextToken()const;
|
||||
std::vector<EventsItem> getEvents()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::vector<EventsItem> events_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDEVENTSRESULT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDINFOREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedInfoRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetAccessKeyLastUsedInfoRequest();
|
||||
~GetAccessKeyLastUsedInfoRequest();
|
||||
std::string getAccessKey() const;
|
||||
void setAccessKey(const std::string &accessKey);
|
||||
|
||||
private:
|
||||
std::string accessKey_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDINFOREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDINFORESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetAccessKeyLastUsedInfoResult();
|
||||
explicit GetAccessKeyLastUsedInfoResult(const std::string &payload);
|
||||
~GetAccessKeyLastUsedInfoResult();
|
||||
std::string getAccountId()const;
|
||||
std::string getUserName()const;
|
||||
std::string getOwnerId()const;
|
||||
std::string getServiceName()const;
|
||||
std::string getAccessKeyId()const;
|
||||
std::string getServiceNameCn()const;
|
||||
std::string getServiceNameEn()const;
|
||||
std::string getAccountType()const;
|
||||
long getUsedTimestamp()const;
|
||||
std::string getDetail()const;
|
||||
std::string getSource()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string accountId_;
|
||||
std::string userName_;
|
||||
std::string ownerId_;
|
||||
std::string serviceName_;
|
||||
std::string accessKeyId_;
|
||||
std::string serviceNameCn_;
|
||||
std::string serviceNameEn_;
|
||||
std::string accountType_;
|
||||
long usedTimestamp_;
|
||||
std::string detail_;
|
||||
std::string source_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDINFORESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDIPSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDIPSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedIpsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetAccessKeyLastUsedIpsRequest();
|
||||
~GetAccessKeyLastUsedIpsRequest();
|
||||
std::string getAccessKey() const;
|
||||
void setAccessKey(const std::string &accessKey);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::string getPageSize() const;
|
||||
void setPageSize(const std::string &pageSize);
|
||||
std::string getServiceName() const;
|
||||
void setServiceName(const std::string &serviceName);
|
||||
|
||||
private:
|
||||
std::string accessKey_;
|
||||
std::string nextToken_;
|
||||
std::string pageSize_;
|
||||
std::string serviceName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDIPSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDIPSRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDIPSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedIpsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct IpsItem
|
||||
{
|
||||
std::string ip;
|
||||
long usedTimestamp;
|
||||
std::string detail;
|
||||
std::string source;
|
||||
};
|
||||
|
||||
|
||||
GetAccessKeyLastUsedIpsResult();
|
||||
explicit GetAccessKeyLastUsedIpsResult(const std::string &payload);
|
||||
~GetAccessKeyLastUsedIpsResult();
|
||||
std::string getNextToken()const;
|
||||
std::vector<IpsItem> getIps()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::vector<IpsItem> ips_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDIPSRESULT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDPRODUCTSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDPRODUCTSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedProductsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetAccessKeyLastUsedProductsRequest();
|
||||
~GetAccessKeyLastUsedProductsRequest();
|
||||
std::string getAccessKey() const;
|
||||
void setAccessKey(const std::string &accessKey);
|
||||
|
||||
private:
|
||||
std::string accessKey_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDPRODUCTSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDPRODUCTSRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDPRODUCTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedProductsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ProductsItem
|
||||
{
|
||||
std::string serviceName;
|
||||
std::string serviceNameCn;
|
||||
std::string serviceNameEn;
|
||||
long usedTimestamp;
|
||||
std::string detail;
|
||||
std::string source;
|
||||
};
|
||||
|
||||
|
||||
GetAccessKeyLastUsedProductsResult();
|
||||
explicit GetAccessKeyLastUsedProductsResult(const std::string &payload);
|
||||
~GetAccessKeyLastUsedProductsResult();
|
||||
std::vector<ProductsItem> getProducts()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ProductsItem> products_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDPRODUCTSRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDRESOURCESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedResourcesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetAccessKeyLastUsedResourcesRequest();
|
||||
~GetAccessKeyLastUsedResourcesRequest();
|
||||
std::string getAccessKey() const;
|
||||
void setAccessKey(const std::string &accessKey);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::string getPageSize() const;
|
||||
void setPageSize(const std::string &pageSize);
|
||||
std::string getServiceName() const;
|
||||
void setServiceName(const std::string &serviceName);
|
||||
|
||||
private:
|
||||
std::string accessKey_;
|
||||
std::string nextToken_;
|
||||
std::string pageSize_;
|
||||
std::string serviceName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDRESOURCESREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetAccessKeyLastUsedResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResourcesItem
|
||||
{
|
||||
std::string resourceName;
|
||||
std::string resourceType;
|
||||
long usedTimestamp;
|
||||
std::string detail;
|
||||
std::string source;
|
||||
};
|
||||
|
||||
|
||||
GetAccessKeyLastUsedResourcesResult();
|
||||
explicit GetAccessKeyLastUsedResourcesResult(const std::string &payload);
|
||||
~GetAccessKeyLastUsedResourcesResult();
|
||||
std::string getNextToken()const;
|
||||
std::vector<ResourcesItem> getResources()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::vector<ResourcesItem> resources_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDRESOURCESRESULT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETDELIVERYHISTORYJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETDELIVERYHISTORYJOBREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetDeliveryHistoryJobRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetDeliveryHistoryJobRequest();
|
||||
~GetDeliveryHistoryJobRequest();
|
||||
long getJobId() const;
|
||||
void setJobId(long jobId);
|
||||
|
||||
private:
|
||||
long jobId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETDELIVERYHISTORYJOBREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETDELIVERYHISTORYJOBRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETDELIVERYHISTORYJOBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetDeliveryHistoryJobResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct StatusItem
|
||||
{
|
||||
int status;
|
||||
std::string region;
|
||||
};
|
||||
|
||||
|
||||
GetDeliveryHistoryJobResult();
|
||||
explicit GetDeliveryHistoryJobResult(const std::string &payload);
|
||||
~GetDeliveryHistoryJobResult();
|
||||
std::vector<StatusItem> getStatus()const;
|
||||
int getJobStatus()const;
|
||||
std::string getCreatedTime()const;
|
||||
std::string getEndTime()const;
|
||||
std::string getHomeRegion()const;
|
||||
std::string getStartTime()const;
|
||||
std::string getTrailName()const;
|
||||
std::string getUpdatedTime()const;
|
||||
long getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<StatusItem> status_;
|
||||
int jobStatus_;
|
||||
std::string createdTime_;
|
||||
std::string endTime_;
|
||||
std::string homeRegion_;
|
||||
std::string startTime_;
|
||||
std::string trailName_;
|
||||
std::string updatedTime_;
|
||||
long jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETDELIVERYHISTORYJOBRESULT_H_
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetTrailStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTrailStatusRequest();
|
||||
~GetTrailStatusRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
bool getIsOrganizationTrail()const;
|
||||
void setIsOrganizationTrail(bool isOrganizationTrail);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
bool isOrganizationTrail_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetTrailStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetTrailStatusRequest();
|
||||
~GetTrailStatusRequest();
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
bool getIsOrganizationTrail() const;
|
||||
void setIsOrganizationTrail(bool isOrganizationTrail);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
bool isOrganizationTrail_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||
|
||||
@@ -44,8 +44,8 @@ namespace AlibabaCloud
|
||||
std::string getLatestDeliveryError()const;
|
||||
std::string getStopLoggingTime()const;
|
||||
bool getSlsLogStoreStatus()const;
|
||||
std::string getLatestDeliveryTime()const;
|
||||
bool getIsLogging()const;
|
||||
std::string getLatestDeliveryTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -57,8 +57,8 @@ namespace AlibabaCloud
|
||||
std::string latestDeliveryError_;
|
||||
std::string stopLoggingTime_;
|
||||
bool slsLogStoreStatus_;
|
||||
std::string latestDeliveryTime_;
|
||||
bool isLogging_;
|
||||
std::string latestDeliveryTime_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ListDeliveryHistoryJobsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDeliveryHistoryJobsRequest();
|
||||
~ListDeliveryHistoryJobsRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ListDeliveryHistoryJobsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListDeliveryHistoryJobsRequest();
|
||||
~ListDeliveryHistoryJobsRequest();
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
|
||||
|
||||
@@ -1,69 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT LookupEventsRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct LookupAttribute
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
LookupEventsRequest();
|
||||
~LookupEventsRequest();
|
||||
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::vector<LookupAttribute> getLookupAttribute()const;
|
||||
void setLookupAttribute(const std::vector<LookupAttribute>& lookupAttribute);
|
||||
std::string getMaxResults()const;
|
||||
void setMaxResults(const std::string& maxResults);
|
||||
std::string getDirection()const;
|
||||
void setDirection(const std::string& direction);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string nextToken_;
|
||||
std::vector<LookupAttribute> lookupAttribute_;
|
||||
std::string maxResults_;
|
||||
std::string direction_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT LookupEventsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct LookupAttribute {
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
LookupEventsRequest();
|
||||
~LookupEventsRequest();
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::vector<LookupAttribute> getLookupAttribute() const;
|
||||
void setLookupAttribute(const std::vector<LookupAttribute> &lookupAttribute);
|
||||
std::string getMaxResults() const;
|
||||
void setMaxResults(const std::string &maxResults);
|
||||
std::string getDirection() const;
|
||||
void setDirection(const std::string &direction);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string nextToken_;
|
||||
std::vector<LookupAttribute> lookupAttribute_;
|
||||
std::string maxResults_;
|
||||
std::string direction_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||
|
||||
@@ -1,48 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StartLoggingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StartLoggingRequest();
|
||||
~StartLoggingRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StartLoggingRequest : public RpcServiceRequest {
|
||||
public:
|
||||
StartLoggingRequest();
|
||||
~StartLoggingRequest();
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||
|
||||
@@ -1,48 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StopLoggingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StopLoggingRequest();
|
||||
~StopLoggingRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StopLoggingRequest : public RpcServiceRequest {
|
||||
public:
|
||||
StopLoggingRequest();
|
||||
~StopLoggingRequest();
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||
|
||||
@@ -1,69 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT UpdateTrailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateTrailRequest();
|
||||
~UpdateTrailRequest();
|
||||
|
||||
std::string getSlsProjectArn()const;
|
||||
void setSlsProjectArn(const std::string& slsProjectArn);
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
void setSlsWriteRoleArn(const std::string& slsWriteRoleArn);
|
||||
std::string getOssKeyPrefix()const;
|
||||
void setOssKeyPrefix(const std::string& ossKeyPrefix);
|
||||
std::string getOssWriteRoleArn()const;
|
||||
void setOssWriteRoleArn(const std::string& ossWriteRoleArn);
|
||||
std::string getEventRW()const;
|
||||
void setEventRW(const std::string& eventRW);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getTrailRegion()const;
|
||||
void setTrailRegion(const std::string& trailRegion);
|
||||
|
||||
private:
|
||||
std::string slsProjectArn_;
|
||||
std::string slsWriteRoleArn_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string ossWriteRoleArn_;
|
||||
std::string eventRW_;
|
||||
std::string name_;
|
||||
std::string ossBucketName_;
|
||||
std::string trailRegion_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Actiontrail {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT UpdateTrailRequest : public RpcServiceRequest {
|
||||
public:
|
||||
UpdateTrailRequest();
|
||||
~UpdateTrailRequest();
|
||||
std::string getSlsProjectArn() const;
|
||||
void setSlsProjectArn(const std::string &slsProjectArn);
|
||||
std::string getSlsWriteRoleArn() const;
|
||||
void setSlsWriteRoleArn(const std::string &slsWriteRoleArn);
|
||||
std::string getOssKeyPrefix() const;
|
||||
void setOssKeyPrefix(const std::string &ossKeyPrefix);
|
||||
std::string getOssWriteRoleArn() const;
|
||||
void setOssWriteRoleArn(const std::string &ossWriteRoleArn);
|
||||
std::string getEventRW() const;
|
||||
void setEventRW(const std::string &eventRW);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string getOssBucketName() const;
|
||||
void setOssBucketName(const std::string &ossBucketName);
|
||||
std::string getTrailRegion() const;
|
||||
void setTrailRegion(const std::string &trailRegion);
|
||||
|
||||
private:
|
||||
std::string slsProjectArn_;
|
||||
std::string slsWriteRoleArn_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string ossWriteRoleArn_;
|
||||
std::string eventRW_;
|
||||
std::string name_;
|
||||
std::string ossBucketName_;
|
||||
std::string trailRegion_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Actiontrail
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||
|
||||
@@ -42,8 +42,8 @@ namespace AlibabaCloud
|
||||
std::string getHomeRegion()const;
|
||||
std::string getOssKeyPrefix()const;
|
||||
std::string getOssBucketName()const;
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
std::string getOssWriteRoleArn()const;
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
std::string getTrailRegion()const;
|
||||
std::string getName()const;
|
||||
|
||||
@@ -55,8 +55,8 @@ namespace AlibabaCloud
|
||||
std::string homeRegion_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string ossBucketName_;
|
||||
std::string slsWriteRoleArn_;
|
||||
std::string ossWriteRoleArn_;
|
||||
std::string slsWriteRoleArn_;
|
||||
std::string trailRegion_;
|
||||
std::string name_;
|
||||
|
||||
|
||||
@@ -31,21 +31,21 @@ ActiontrailClient::ActiontrailClient(const Credentials &credentials, const Clien
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
ActiontrailClient::ActiontrailClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
ActiontrailClient::ActiontrailClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
ActiontrailClient::~ActiontrailClient()
|
||||
@@ -267,6 +267,222 @@ ActiontrailClient::DescribeTrailsOutcomeCallable ActiontrailClient::describeTrai
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedEventsOutcome ActiontrailClient::getAccessKeyLastUsedEvents(const GetAccessKeyLastUsedEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAccessKeyLastUsedEventsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAccessKeyLastUsedEventsOutcome(GetAccessKeyLastUsedEventsResult(outcome.result()));
|
||||
else
|
||||
return GetAccessKeyLastUsedEventsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::getAccessKeyLastUsedEventsAsync(const GetAccessKeyLastUsedEventsRequest& request, const GetAccessKeyLastUsedEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAccessKeyLastUsedEvents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedEventsOutcomeCallable ActiontrailClient::getAccessKeyLastUsedEventsCallable(const GetAccessKeyLastUsedEventsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedEventsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAccessKeyLastUsedEvents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedInfoOutcome ActiontrailClient::getAccessKeyLastUsedInfo(const GetAccessKeyLastUsedInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAccessKeyLastUsedInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAccessKeyLastUsedInfoOutcome(GetAccessKeyLastUsedInfoResult(outcome.result()));
|
||||
else
|
||||
return GetAccessKeyLastUsedInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::getAccessKeyLastUsedInfoAsync(const GetAccessKeyLastUsedInfoRequest& request, const GetAccessKeyLastUsedInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAccessKeyLastUsedInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedInfoOutcomeCallable ActiontrailClient::getAccessKeyLastUsedInfoCallable(const GetAccessKeyLastUsedInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAccessKeyLastUsedInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedIpsOutcome ActiontrailClient::getAccessKeyLastUsedIps(const GetAccessKeyLastUsedIpsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAccessKeyLastUsedIpsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAccessKeyLastUsedIpsOutcome(GetAccessKeyLastUsedIpsResult(outcome.result()));
|
||||
else
|
||||
return GetAccessKeyLastUsedIpsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::getAccessKeyLastUsedIpsAsync(const GetAccessKeyLastUsedIpsRequest& request, const GetAccessKeyLastUsedIpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAccessKeyLastUsedIps(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedIpsOutcomeCallable ActiontrailClient::getAccessKeyLastUsedIpsCallable(const GetAccessKeyLastUsedIpsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedIpsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAccessKeyLastUsedIps(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedProductsOutcome ActiontrailClient::getAccessKeyLastUsedProducts(const GetAccessKeyLastUsedProductsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAccessKeyLastUsedProductsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAccessKeyLastUsedProductsOutcome(GetAccessKeyLastUsedProductsResult(outcome.result()));
|
||||
else
|
||||
return GetAccessKeyLastUsedProductsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::getAccessKeyLastUsedProductsAsync(const GetAccessKeyLastUsedProductsRequest& request, const GetAccessKeyLastUsedProductsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAccessKeyLastUsedProducts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedProductsOutcomeCallable ActiontrailClient::getAccessKeyLastUsedProductsCallable(const GetAccessKeyLastUsedProductsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedProductsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAccessKeyLastUsedProducts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedResourcesOutcome ActiontrailClient::getAccessKeyLastUsedResources(const GetAccessKeyLastUsedResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAccessKeyLastUsedResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAccessKeyLastUsedResourcesOutcome(GetAccessKeyLastUsedResourcesResult(outcome.result()));
|
||||
else
|
||||
return GetAccessKeyLastUsedResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::getAccessKeyLastUsedResourcesAsync(const GetAccessKeyLastUsedResourcesRequest& request, const GetAccessKeyLastUsedResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAccessKeyLastUsedResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::GetAccessKeyLastUsedResourcesOutcomeCallable ActiontrailClient::getAccessKeyLastUsedResourcesCallable(const GetAccessKeyLastUsedResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAccessKeyLastUsedResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAccessKeyLastUsedResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::GetDeliveryHistoryJobOutcome ActiontrailClient::getDeliveryHistoryJob(const GetDeliveryHistoryJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDeliveryHistoryJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDeliveryHistoryJobOutcome(GetDeliveryHistoryJobResult(outcome.result()));
|
||||
else
|
||||
return GetDeliveryHistoryJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::getDeliveryHistoryJobAsync(const GetDeliveryHistoryJobRequest& request, const GetDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDeliveryHistoryJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::GetDeliveryHistoryJobOutcomeCallable ActiontrailClient::getDeliveryHistoryJobCallable(const GetDeliveryHistoryJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDeliveryHistoryJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDeliveryHistoryJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::GetTrailStatusOutcome ActiontrailClient::getTrailStatus(const GetTrailStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::CreateDeliveryHistoryJobRequest;
|
||||
|
||||
CreateDeliveryHistoryJobRequest::CreateDeliveryHistoryJobRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "CreateDeliveryHistoryJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDeliveryHistoryJobRequest::~CreateDeliveryHistoryJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDeliveryHistoryJobRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::CreateDeliveryHistoryJobRequest;
|
||||
|
||||
CreateDeliveryHistoryJobRequest::CreateDeliveryHistoryJobRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "CreateDeliveryHistoryJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDeliveryHistoryJobRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateDeliveryHistoryJobRequest::~CreateDeliveryHistoryJobRequest() {}
|
||||
|
||||
std::string CreateDeliveryHistoryJobRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateDeliveryHistoryJobRequest::getTrailName()const
|
||||
{
|
||||
return trailName_;
|
||||
void CreateDeliveryHistoryJobRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateDeliveryHistoryJobRequest::setTrailName(const std::string& trailName)
|
||||
{
|
||||
trailName_ = trailName;
|
||||
setParameter("TrailName", trailName);
|
||||
std::string CreateDeliveryHistoryJobRequest::getTrailName() const {
|
||||
return trailName_;
|
||||
}
|
||||
|
||||
void CreateDeliveryHistoryJobRequest::setTrailName(const std::string &trailName) {
|
||||
trailName_ = trailName;
|
||||
setParameter(std::string("TrailName"), trailName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,128 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/CreateTrailRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::CreateTrailRequest;
|
||||
|
||||
CreateTrailRequest::CreateTrailRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "CreateTrail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTrailRequest::~CreateTrailRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTrailRequest::getSlsProjectArn()const
|
||||
{
|
||||
return slsProjectArn_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/CreateTrailRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::CreateTrailRequest;
|
||||
|
||||
CreateTrailRequest::CreateTrailRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "CreateTrail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setSlsProjectArn(const std::string& slsProjectArn)
|
||||
{
|
||||
slsProjectArn_ = slsProjectArn;
|
||||
setParameter("SlsProjectArn", slsProjectArn);
|
||||
CreateTrailRequest::~CreateTrailRequest() {}
|
||||
|
||||
std::string CreateTrailRequest::getSlsProjectArn() const {
|
||||
return slsProjectArn_;
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
void CreateTrailRequest::setSlsProjectArn(const std::string &slsProjectArn) {
|
||||
slsProjectArn_ = slsProjectArn;
|
||||
setParameter(std::string("SlsProjectArn"), slsProjectArn);
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setSlsWriteRoleArn(const std::string& slsWriteRoleArn)
|
||||
{
|
||||
slsWriteRoleArn_ = slsWriteRoleArn;
|
||||
setParameter("SlsWriteRoleArn", slsWriteRoleArn);
|
||||
std::string CreateTrailRequest::getSlsWriteRoleArn() const {
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
bool CreateTrailRequest::getIsOrganizationTrail()const
|
||||
{
|
||||
return isOrganizationTrail_;
|
||||
void CreateTrailRequest::setSlsWriteRoleArn(const std::string &slsWriteRoleArn) {
|
||||
slsWriteRoleArn_ = slsWriteRoleArn;
|
||||
setParameter(std::string("SlsWriteRoleArn"), slsWriteRoleArn);
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setIsOrganizationTrail(bool isOrganizationTrail)
|
||||
{
|
||||
isOrganizationTrail_ = isOrganizationTrail;
|
||||
setParameter("IsOrganizationTrail", isOrganizationTrail ? "true" : "false");
|
||||
bool CreateTrailRequest::getIsOrganizationTrail() const {
|
||||
return isOrganizationTrail_;
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getOssKeyPrefix()const
|
||||
{
|
||||
return ossKeyPrefix_;
|
||||
void CreateTrailRequest::setIsOrganizationTrail(bool isOrganizationTrail) {
|
||||
isOrganizationTrail_ = isOrganizationTrail;
|
||||
setParameter(std::string("IsOrganizationTrail"), isOrganizationTrail ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setOssKeyPrefix(const std::string& ossKeyPrefix)
|
||||
{
|
||||
ossKeyPrefix_ = ossKeyPrefix;
|
||||
setParameter("OssKeyPrefix", ossKeyPrefix);
|
||||
std::string CreateTrailRequest::getOssKeyPrefix() const {
|
||||
return ossKeyPrefix_;
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getOssWriteRoleArn()const
|
||||
{
|
||||
return ossWriteRoleArn_;
|
||||
void CreateTrailRequest::setOssKeyPrefix(const std::string &ossKeyPrefix) {
|
||||
ossKeyPrefix_ = ossKeyPrefix;
|
||||
setParameter(std::string("OssKeyPrefix"), ossKeyPrefix);
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setOssWriteRoleArn(const std::string& ossWriteRoleArn)
|
||||
{
|
||||
ossWriteRoleArn_ = ossWriteRoleArn;
|
||||
setParameter("OssWriteRoleArn", ossWriteRoleArn);
|
||||
std::string CreateTrailRequest::getOssWriteRoleArn() const {
|
||||
return ossWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getEventRW()const
|
||||
{
|
||||
return eventRW_;
|
||||
void CreateTrailRequest::setOssWriteRoleArn(const std::string &ossWriteRoleArn) {
|
||||
ossWriteRoleArn_ = ossWriteRoleArn;
|
||||
setParameter(std::string("OssWriteRoleArn"), ossWriteRoleArn);
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setEventRW(const std::string& eventRW)
|
||||
{
|
||||
eventRW_ = eventRW;
|
||||
setParameter("EventRW", eventRW);
|
||||
std::string CreateTrailRequest::getEventRW() const {
|
||||
return eventRW_;
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreateTrailRequest::setEventRW(const std::string &eventRW) {
|
||||
eventRW_ = eventRW;
|
||||
setParameter(std::string("EventRW"), eventRW);
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string CreateTrailRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
void CreateTrailRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter("OssBucketName", ossBucketName);
|
||||
std::string CreateTrailRequest::getOssBucketName() const {
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getTrailRegion()const
|
||||
{
|
||||
return trailRegion_;
|
||||
void CreateTrailRequest::setOssBucketName(const std::string &ossBucketName) {
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter(std::string("OssBucketName"), ossBucketName);
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setTrailRegion(const std::string& trailRegion)
|
||||
{
|
||||
trailRegion_ = trailRegion;
|
||||
setParameter("TrailRegion", trailRegion);
|
||||
std::string CreateTrailRequest::getTrailRegion() const {
|
||||
return trailRegion_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setTrailRegion(const std::string &trailRegion) {
|
||||
trailRegion_ = trailRegion;
|
||||
setParameter(std::string("TrailRegion"), trailRegion);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,8 @@ void CreateTrailResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SlsProjectArn"].isNull())
|
||||
slsProjectArn_ = value["SlsProjectArn"].asString();
|
||||
if(!value["OssWriteRoleArn"].isNull())
|
||||
ossWriteRoleArn_ = value["OssWriteRoleArn"].asString();
|
||||
if(!value["EventRW"].isNull())
|
||||
eventRW_ = value["EventRW"].asString();
|
||||
if(!value["HomeRegion"].isNull())
|
||||
@@ -51,8 +53,6 @@ void CreateTrailResult::parse(const std::string &payload)
|
||||
ossBucketName_ = value["OssBucketName"].asString();
|
||||
if(!value["SlsWriteRoleArn"].isNull())
|
||||
slsWriteRoleArn_ = value["SlsWriteRoleArn"].asString();
|
||||
if(!value["OssWriteRoleArn"].isNull())
|
||||
ossWriteRoleArn_ = value["OssWriteRoleArn"].asString();
|
||||
if(!value["TrailRegion"].isNull())
|
||||
trailRegion_ = value["TrailRegion"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
@@ -85,16 +85,16 @@ std::string CreateTrailResult::getOssBucketName()const
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getOssWriteRoleArn()const
|
||||
{
|
||||
return ossWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getTrailRegion()const
|
||||
{
|
||||
return trailRegion_;
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DeleteDeliveryHistoryJobRequest;
|
||||
|
||||
DeleteDeliveryHistoryJobRequest::DeleteDeliveryHistoryJobRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "DeleteDeliveryHistoryJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDeliveryHistoryJobRequest::~DeleteDeliveryHistoryJobRequest()
|
||||
{}
|
||||
|
||||
int DeleteDeliveryHistoryJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DeleteDeliveryHistoryJobRequest;
|
||||
|
||||
DeleteDeliveryHistoryJobRequest::DeleteDeliveryHistoryJobRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "DeleteDeliveryHistoryJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDeliveryHistoryJobRequest::setJobId(int jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", std::to_string(jobId));
|
||||
DeleteDeliveryHistoryJobRequest::~DeleteDeliveryHistoryJobRequest() {}
|
||||
|
||||
int DeleteDeliveryHistoryJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void DeleteDeliveryHistoryJobRequest::setJobId(int jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DeleteTrailRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DeleteTrailRequest;
|
||||
|
||||
DeleteTrailRequest::DeleteTrailRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "DeleteTrail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTrailRequest::~DeleteTrailRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTrailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DeleteTrailRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DeleteTrailRequest;
|
||||
|
||||
DeleteTrailRequest::DeleteTrailRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "DeleteTrail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteTrailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
DeleteTrailRequest::~DeleteTrailRequest() {}
|
||||
|
||||
std::string DeleteTrailRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteTrailRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "DescribeRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getAcceptLanguage()const
|
||||
{
|
||||
return acceptLanguage_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "DescribeRegions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage)
|
||||
{
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter("AcceptLanguage", acceptLanguage);
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest() {}
|
||||
|
||||
std::string DescribeRegionsRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DescribeTrailsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DescribeTrailsRequest;
|
||||
|
||||
DescribeTrailsRequest::DescribeTrailsRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "DescribeTrails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTrailsRequest::~DescribeTrailsRequest()
|
||||
{}
|
||||
|
||||
bool DescribeTrailsRequest::getIncludeOrganizationTrail()const
|
||||
{
|
||||
return includeOrganizationTrail_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DescribeTrailsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DescribeTrailsRequest;
|
||||
|
||||
DescribeTrailsRequest::DescribeTrailsRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "DescribeTrails") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeTrailsRequest::setIncludeOrganizationTrail(bool includeOrganizationTrail)
|
||||
{
|
||||
includeOrganizationTrail_ = includeOrganizationTrail;
|
||||
setParameter("IncludeOrganizationTrail", includeOrganizationTrail ? "true" : "false");
|
||||
DescribeTrailsRequest::~DescribeTrailsRequest() {}
|
||||
|
||||
bool DescribeTrailsRequest::getIncludeOrganizationTrail() const {
|
||||
return includeOrganizationTrail_;
|
||||
}
|
||||
|
||||
bool DescribeTrailsRequest::getIncludeShadowTrails()const
|
||||
{
|
||||
return includeShadowTrails_;
|
||||
void DescribeTrailsRequest::setIncludeOrganizationTrail(bool includeOrganizationTrail) {
|
||||
includeOrganizationTrail_ = includeOrganizationTrail;
|
||||
setParameter(std::string("IncludeOrganizationTrail"), includeOrganizationTrail ? "true" : "false");
|
||||
}
|
||||
|
||||
void DescribeTrailsRequest::setIncludeShadowTrails(bool includeShadowTrails)
|
||||
{
|
||||
includeShadowTrails_ = includeShadowTrails;
|
||||
setParameter("IncludeShadowTrails", includeShadowTrails ? "true" : "false");
|
||||
bool DescribeTrailsRequest::getIncludeShadowTrails() const {
|
||||
return includeShadowTrails_;
|
||||
}
|
||||
|
||||
std::string DescribeTrailsRequest::getNameList()const
|
||||
{
|
||||
return nameList_;
|
||||
void DescribeTrailsRequest::setIncludeShadowTrails(bool includeShadowTrails) {
|
||||
includeShadowTrails_ = includeShadowTrails;
|
||||
setParameter(std::string("IncludeShadowTrails"), includeShadowTrails ? "true" : "false");
|
||||
}
|
||||
|
||||
void DescribeTrailsRequest::setNameList(const std::string& nameList)
|
||||
{
|
||||
nameList_ = nameList;
|
||||
setParameter("NameList", nameList);
|
||||
std::string DescribeTrailsRequest::getNameList() const {
|
||||
return nameList_;
|
||||
}
|
||||
|
||||
void DescribeTrailsRequest::setNameList(const std::string &nameList) {
|
||||
nameList_ = nameList;
|
||||
setParameter(std::string("NameList"), nameList);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,44 +43,46 @@ void DescribeTrailsResult::parse(const std::string &payload)
|
||||
for (auto valueTrailListTrail : allTrailListNode)
|
||||
{
|
||||
Trail trailListObject;
|
||||
if(!valueTrailListTrail["Status"].isNull())
|
||||
trailListObject.status = valueTrailListTrail["Status"].asString();
|
||||
if(!valueTrailListTrail["HomeRegion"].isNull())
|
||||
trailListObject.homeRegion = valueTrailListTrail["HomeRegion"].asString();
|
||||
if(!valueTrailListTrail["StartLoggingTime"].isNull())
|
||||
trailListObject.startLoggingTime = valueTrailListTrail["StartLoggingTime"].asString();
|
||||
if(!valueTrailListTrail["CreateTime"].isNull())
|
||||
trailListObject.createTime = valueTrailListTrail["CreateTime"].asString();
|
||||
if(!valueTrailListTrail["StopLoggingTime"].isNull())
|
||||
trailListObject.stopLoggingTime = valueTrailListTrail["StopLoggingTime"].asString();
|
||||
if(!valueTrailListTrail["OrganizationId"].isNull())
|
||||
trailListObject.organizationId = valueTrailListTrail["OrganizationId"].asString();
|
||||
if(!valueTrailListTrail["SlsWriteRoleArn"].isNull())
|
||||
trailListObject.slsWriteRoleArn = valueTrailListTrail["SlsWriteRoleArn"].asString();
|
||||
if(!valueTrailListTrail["OssBucketLocation"].isNull())
|
||||
trailListObject.ossBucketLocation = valueTrailListTrail["OssBucketLocation"].asString();
|
||||
if(!valueTrailListTrail["TrailRegion"].isNull())
|
||||
trailListObject.trailRegion = valueTrailListTrail["TrailRegion"].asString();
|
||||
if(!valueTrailListTrail["Name"].isNull())
|
||||
trailListObject.name = valueTrailListTrail["Name"].asString();
|
||||
if(!valueTrailListTrail["IsOrganizationTrail"].isNull())
|
||||
trailListObject.isOrganizationTrail = valueTrailListTrail["IsOrganizationTrail"].asString() == "true";
|
||||
if(!valueTrailListTrail["SlsProjectArn"].isNull())
|
||||
trailListObject.slsProjectArn = valueTrailListTrail["SlsProjectArn"].asString();
|
||||
if(!valueTrailListTrail["EventRW"].isNull())
|
||||
trailListObject.eventRW = valueTrailListTrail["EventRW"].asString();
|
||||
if(!valueTrailListTrail["OssKeyPrefix"].isNull())
|
||||
trailListObject.ossKeyPrefix = valueTrailListTrail["OssKeyPrefix"].asString();
|
||||
if(!valueTrailListTrail["Status"].isNull())
|
||||
trailListObject.status = valueTrailListTrail["Status"].asString();
|
||||
if(!valueTrailListTrail["UpdateTime"].isNull())
|
||||
trailListObject.updateTime = valueTrailListTrail["UpdateTime"].asString();
|
||||
if(!valueTrailListTrail["Region"].isNull())
|
||||
trailListObject.region = valueTrailListTrail["Region"].asString();
|
||||
if(!valueTrailListTrail["OssBucketName"].isNull())
|
||||
trailListObject.ossBucketName = valueTrailListTrail["OssBucketName"].asString();
|
||||
if(!valueTrailListTrail["HomeRegion"].isNull())
|
||||
trailListObject.homeRegion = valueTrailListTrail["HomeRegion"].asString();
|
||||
if(!valueTrailListTrail["CreateTime"].isNull())
|
||||
trailListObject.createTime = valueTrailListTrail["CreateTime"].asString();
|
||||
if(!valueTrailListTrail["OssKeyPrefix"].isNull())
|
||||
trailListObject.ossKeyPrefix = valueTrailListTrail["OssKeyPrefix"].asString();
|
||||
if(!valueTrailListTrail["EventRW"].isNull())
|
||||
trailListObject.eventRW = valueTrailListTrail["EventRW"].asString();
|
||||
if(!valueTrailListTrail["StartLoggingTime"].isNull())
|
||||
trailListObject.startLoggingTime = valueTrailListTrail["StartLoggingTime"].asString();
|
||||
if(!valueTrailListTrail["OssWriteRoleArn"].isNull())
|
||||
trailListObject.ossWriteRoleArn = valueTrailListTrail["OssWriteRoleArn"].asString();
|
||||
if(!valueTrailListTrail["SlsProjectArn"].isNull())
|
||||
trailListObject.slsProjectArn = valueTrailListTrail["SlsProjectArn"].asString();
|
||||
if(!valueTrailListTrail["IsOrganizationTrail"].isNull())
|
||||
trailListObject.isOrganizationTrail = valueTrailListTrail["IsOrganizationTrail"].asString() == "true";
|
||||
if(!valueTrailListTrail["SlsWriteRoleArn"].isNull())
|
||||
trailListObject.slsWriteRoleArn = valueTrailListTrail["SlsWriteRoleArn"].asString();
|
||||
if(!valueTrailListTrail["StopLoggingTime"].isNull())
|
||||
trailListObject.stopLoggingTime = valueTrailListTrail["StopLoggingTime"].asString();
|
||||
if(!valueTrailListTrail["Name"].isNull())
|
||||
trailListObject.name = valueTrailListTrail["Name"].asString();
|
||||
if(!valueTrailListTrail["OssBucketName"].isNull())
|
||||
trailListObject.ossBucketName = valueTrailListTrail["OssBucketName"].asString();
|
||||
if(!valueTrailListTrail["Region"].isNull())
|
||||
trailListObject.region = valueTrailListTrail["Region"].asString();
|
||||
if(!valueTrailListTrail["OrganizationId"].isNull())
|
||||
trailListObject.organizationId = valueTrailListTrail["OrganizationId"].asString();
|
||||
if(!valueTrailListTrail["OssBucketLocation"].isNull())
|
||||
trailListObject.ossBucketLocation = valueTrailListTrail["OssBucketLocation"].asString();
|
||||
if(!valueTrailListTrail["IsShadowTrail"].isNull())
|
||||
trailListObject.isShadowTrail = std::stol(valueTrailListTrail["IsShadowTrail"].asString());
|
||||
if(!valueTrailListTrail["TrailArn"].isNull())
|
||||
trailListObject.trailArn = valueTrailListTrail["TrailArn"].asString();
|
||||
trailList_.push_back(trailListObject);
|
||||
}
|
||||
|
||||
|
||||
63
actiontrail/src/model/GetAccessKeyLastUsedEventsRequest.cc
Normal file
63
actiontrail/src/model/GetAccessKeyLastUsedEventsRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::GetAccessKeyLastUsedEventsRequest;
|
||||
|
||||
GetAccessKeyLastUsedEventsRequest::GetAccessKeyLastUsedEventsRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "GetAccessKeyLastUsedEvents") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedEventsRequest::~GetAccessKeyLastUsedEventsRequest() {}
|
||||
|
||||
std::string GetAccessKeyLastUsedEventsRequest::getAccessKey() const {
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedEventsRequest::setAccessKey(const std::string &accessKey) {
|
||||
accessKey_ = accessKey;
|
||||
setParameter(std::string("AccessKey"), accessKey);
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedEventsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedEventsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedEventsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedEventsRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedEventsRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedEventsRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
70
actiontrail/src/model/GetAccessKeyLastUsedEventsResult.cc
Normal file
70
actiontrail/src/model/GetAccessKeyLastUsedEventsResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
GetAccessKeyLastUsedEventsResult::GetAccessKeyLastUsedEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAccessKeyLastUsedEventsResult::GetAccessKeyLastUsedEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedEventsResult::~GetAccessKeyLastUsedEventsResult()
|
||||
{}
|
||||
|
||||
void GetAccessKeyLastUsedEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEventsNode = value["Events"]["EventsItem"];
|
||||
for (auto valueEventsEventsItem : allEventsNode)
|
||||
{
|
||||
EventsItem eventsObject;
|
||||
if(!valueEventsEventsItem["UsedTimestamp"].isNull())
|
||||
eventsObject.usedTimestamp = std::stol(valueEventsEventsItem["UsedTimestamp"].asString());
|
||||
if(!valueEventsEventsItem["Detail"].isNull())
|
||||
eventsObject.detail = valueEventsEventsItem["Detail"].asString();
|
||||
if(!valueEventsEventsItem["EventName"].isNull())
|
||||
eventsObject.eventName = valueEventsEventsItem["EventName"].asString();
|
||||
if(!valueEventsEventsItem["Source"].isNull())
|
||||
eventsObject.source = valueEventsEventsItem["Source"].asString();
|
||||
events_.push_back(eventsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedEventsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<GetAccessKeyLastUsedEventsResult::EventsItem> GetAccessKeyLastUsedEventsResult::getEvents()const
|
||||
{
|
||||
return events_;
|
||||
}
|
||||
|
||||
36
actiontrail/src/model/GetAccessKeyLastUsedInfoRequest.cc
Normal file
36
actiontrail/src/model/GetAccessKeyLastUsedInfoRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::GetAccessKeyLastUsedInfoRequest;
|
||||
|
||||
GetAccessKeyLastUsedInfoRequest::GetAccessKeyLastUsedInfoRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "GetAccessKeyLastUsedInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedInfoRequest::~GetAccessKeyLastUsedInfoRequest() {}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoRequest::getAccessKey() const {
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedInfoRequest::setAccessKey(const std::string &accessKey) {
|
||||
accessKey_ = accessKey;
|
||||
setParameter(std::string("AccessKey"), accessKey);
|
||||
}
|
||||
|
||||
121
actiontrail/src/model/GetAccessKeyLastUsedInfoResult.cc
Normal file
121
actiontrail/src/model/GetAccessKeyLastUsedInfoResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
GetAccessKeyLastUsedInfoResult::GetAccessKeyLastUsedInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAccessKeyLastUsedInfoResult::GetAccessKeyLastUsedInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedInfoResult::~GetAccessKeyLastUsedInfoResult()
|
||||
{}
|
||||
|
||||
void GetAccessKeyLastUsedInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AccessKeyId"].isNull())
|
||||
accessKeyId_ = value["AccessKeyId"].asString();
|
||||
if(!value["AccountId"].isNull())
|
||||
accountId_ = value["AccountId"].asString();
|
||||
if(!value["OwnerId"].isNull())
|
||||
ownerId_ = value["OwnerId"].asString();
|
||||
if(!value["UserName"].isNull())
|
||||
userName_ = value["UserName"].asString();
|
||||
if(!value["AccountType"].isNull())
|
||||
accountType_ = value["AccountType"].asString();
|
||||
if(!value["UsedTimestamp"].isNull())
|
||||
usedTimestamp_ = std::stol(value["UsedTimestamp"].asString());
|
||||
if(!value["Detail"].isNull())
|
||||
detail_ = value["Detail"].asString();
|
||||
if(!value["Source"].isNull())
|
||||
source_ = value["Source"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["ServiceNameCn"].isNull())
|
||||
serviceNameCn_ = value["ServiceNameCn"].asString();
|
||||
if(!value["ServiceNameEn"].isNull())
|
||||
serviceNameEn_ = value["ServiceNameEn"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getServiceNameCn()const
|
||||
{
|
||||
return serviceNameCn_;
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getServiceNameEn()const
|
||||
{
|
||||
return serviceNameEn_;
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getAccountType()const
|
||||
{
|
||||
return accountType_;
|
||||
}
|
||||
|
||||
long GetAccessKeyLastUsedInfoResult::getUsedTimestamp()const
|
||||
{
|
||||
return usedTimestamp_;
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getDetail()const
|
||||
{
|
||||
return detail_;
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedInfoResult::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
63
actiontrail/src/model/GetAccessKeyLastUsedIpsRequest.cc
Normal file
63
actiontrail/src/model/GetAccessKeyLastUsedIpsRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::GetAccessKeyLastUsedIpsRequest;
|
||||
|
||||
GetAccessKeyLastUsedIpsRequest::GetAccessKeyLastUsedIpsRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "GetAccessKeyLastUsedIps") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedIpsRequest::~GetAccessKeyLastUsedIpsRequest() {}
|
||||
|
||||
std::string GetAccessKeyLastUsedIpsRequest::getAccessKey() const {
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedIpsRequest::setAccessKey(const std::string &accessKey) {
|
||||
accessKey_ = accessKey;
|
||||
setParameter(std::string("AccessKey"), accessKey);
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedIpsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedIpsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedIpsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedIpsRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedIpsRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedIpsRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
70
actiontrail/src/model/GetAccessKeyLastUsedIpsResult.cc
Normal file
70
actiontrail/src/model/GetAccessKeyLastUsedIpsResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
GetAccessKeyLastUsedIpsResult::GetAccessKeyLastUsedIpsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAccessKeyLastUsedIpsResult::GetAccessKeyLastUsedIpsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedIpsResult::~GetAccessKeyLastUsedIpsResult()
|
||||
{}
|
||||
|
||||
void GetAccessKeyLastUsedIpsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIpsNode = value["Ips"]["IpsItem"];
|
||||
for (auto valueIpsIpsItem : allIpsNode)
|
||||
{
|
||||
IpsItem ipsObject;
|
||||
if(!valueIpsIpsItem["UsedTimestamp"].isNull())
|
||||
ipsObject.usedTimestamp = std::stol(valueIpsIpsItem["UsedTimestamp"].asString());
|
||||
if(!valueIpsIpsItem["Detail"].isNull())
|
||||
ipsObject.detail = valueIpsIpsItem["Detail"].asString();
|
||||
if(!valueIpsIpsItem["Source"].isNull())
|
||||
ipsObject.source = valueIpsIpsItem["Source"].asString();
|
||||
if(!valueIpsIpsItem["Ip"].isNull())
|
||||
ipsObject.ip = valueIpsIpsItem["Ip"].asString();
|
||||
ips_.push_back(ipsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedIpsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<GetAccessKeyLastUsedIpsResult::IpsItem> GetAccessKeyLastUsedIpsResult::getIps()const
|
||||
{
|
||||
return ips_;
|
||||
}
|
||||
|
||||
36
actiontrail/src/model/GetAccessKeyLastUsedProductsRequest.cc
Normal file
36
actiontrail/src/model/GetAccessKeyLastUsedProductsRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::GetAccessKeyLastUsedProductsRequest;
|
||||
|
||||
GetAccessKeyLastUsedProductsRequest::GetAccessKeyLastUsedProductsRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "GetAccessKeyLastUsedProducts") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedProductsRequest::~GetAccessKeyLastUsedProductsRequest() {}
|
||||
|
||||
std::string GetAccessKeyLastUsedProductsRequest::getAccessKey() const {
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedProductsRequest::setAccessKey(const std::string &accessKey) {
|
||||
accessKey_ = accessKey;
|
||||
setParameter(std::string("AccessKey"), accessKey);
|
||||
}
|
||||
|
||||
67
actiontrail/src/model/GetAccessKeyLastUsedProductsResult.cc
Normal file
67
actiontrail/src/model/GetAccessKeyLastUsedProductsResult.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/actiontrail/model/GetAccessKeyLastUsedProductsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
GetAccessKeyLastUsedProductsResult::GetAccessKeyLastUsedProductsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAccessKeyLastUsedProductsResult::GetAccessKeyLastUsedProductsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedProductsResult::~GetAccessKeyLastUsedProductsResult()
|
||||
{}
|
||||
|
||||
void GetAccessKeyLastUsedProductsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allProductsNode = value["Products"]["ProductsItem"];
|
||||
for (auto valueProductsProductsItem : allProductsNode)
|
||||
{
|
||||
ProductsItem productsObject;
|
||||
if(!valueProductsProductsItem["UsedTimestamp"].isNull())
|
||||
productsObject.usedTimestamp = std::stol(valueProductsProductsItem["UsedTimestamp"].asString());
|
||||
if(!valueProductsProductsItem["Detail"].isNull())
|
||||
productsObject.detail = valueProductsProductsItem["Detail"].asString();
|
||||
if(!valueProductsProductsItem["Source"].isNull())
|
||||
productsObject.source = valueProductsProductsItem["Source"].asString();
|
||||
if(!valueProductsProductsItem["ServiceName"].isNull())
|
||||
productsObject.serviceName = valueProductsProductsItem["ServiceName"].asString();
|
||||
if(!valueProductsProductsItem["ServiceNameCn"].isNull())
|
||||
productsObject.serviceNameCn = valueProductsProductsItem["ServiceNameCn"].asString();
|
||||
if(!valueProductsProductsItem["ServiceNameEn"].isNull())
|
||||
productsObject.serviceNameEn = valueProductsProductsItem["ServiceNameEn"].asString();
|
||||
products_.push_back(productsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetAccessKeyLastUsedProductsResult::ProductsItem> GetAccessKeyLastUsedProductsResult::getProducts()const
|
||||
{
|
||||
return products_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::GetAccessKeyLastUsedResourcesRequest;
|
||||
|
||||
GetAccessKeyLastUsedResourcesRequest::GetAccessKeyLastUsedResourcesRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "GetAccessKeyLastUsedResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedResourcesRequest::~GetAccessKeyLastUsedResourcesRequest() {}
|
||||
|
||||
std::string GetAccessKeyLastUsedResourcesRequest::getAccessKey() const {
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedResourcesRequest::setAccessKey(const std::string &accessKey) {
|
||||
accessKey_ = accessKey;
|
||||
setParameter(std::string("AccessKey"), accessKey);
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedResourcesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedResourcesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedResourcesRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedResourcesRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetAccessKeyLastUsedResourcesRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
72
actiontrail/src/model/GetAccessKeyLastUsedResourcesResult.cc
Normal file
72
actiontrail/src/model/GetAccessKeyLastUsedResourcesResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
GetAccessKeyLastUsedResourcesResult::GetAccessKeyLastUsedResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAccessKeyLastUsedResourcesResult::GetAccessKeyLastUsedResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAccessKeyLastUsedResourcesResult::~GetAccessKeyLastUsedResourcesResult()
|
||||
{}
|
||||
|
||||
void GetAccessKeyLastUsedResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourcesNode = value["Resources"]["ResourcesItem"];
|
||||
for (auto valueResourcesResourcesItem : allResourcesNode)
|
||||
{
|
||||
ResourcesItem resourcesObject;
|
||||
if(!valueResourcesResourcesItem["UsedTimestamp"].isNull())
|
||||
resourcesObject.usedTimestamp = std::stol(valueResourcesResourcesItem["UsedTimestamp"].asString());
|
||||
if(!valueResourcesResourcesItem["Detail"].isNull())
|
||||
resourcesObject.detail = valueResourcesResourcesItem["Detail"].asString();
|
||||
if(!valueResourcesResourcesItem["ResourceName"].isNull())
|
||||
resourcesObject.resourceName = valueResourcesResourcesItem["ResourceName"].asString();
|
||||
if(!valueResourcesResourcesItem["ResourceType"].isNull())
|
||||
resourcesObject.resourceType = valueResourcesResourcesItem["ResourceType"].asString();
|
||||
if(!valueResourcesResourcesItem["Source"].isNull())
|
||||
resourcesObject.source = valueResourcesResourcesItem["Source"].asString();
|
||||
resources_.push_back(resourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAccessKeyLastUsedResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<GetAccessKeyLastUsedResourcesResult::ResourcesItem> GetAccessKeyLastUsedResourcesResult::getResources()const
|
||||
{
|
||||
return resources_;
|
||||
}
|
||||
|
||||
@@ -14,23 +14,23 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/CreateElbBuyOrderRequest.h>
|
||||
#include <alibabacloud/actiontrail/model/GetDeliveryHistoryJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateElbBuyOrderRequest;
|
||||
using AlibabaCloud::Actiontrail::Model::GetDeliveryHistoryJobRequest;
|
||||
|
||||
CreateElbBuyOrderRequest::CreateElbBuyOrderRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateElbBuyOrder") {
|
||||
GetDeliveryHistoryJobRequest::GetDeliveryHistoryJobRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "GetDeliveryHistoryJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateElbBuyOrderRequest::~CreateElbBuyOrderRequest() {}
|
||||
GetDeliveryHistoryJobRequest::~GetDeliveryHistoryJobRequest() {}
|
||||
|
||||
std::string CreateElbBuyOrderRequest::getOrderDetails() const {
|
||||
return orderDetails_;
|
||||
long GetDeliveryHistoryJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CreateElbBuyOrderRequest::setOrderDetails(const std::string &orderDetails) {
|
||||
orderDetails_ = orderDetails;
|
||||
setParameter(std::string("OrderDetails"), orderDetails);
|
||||
void GetDeliveryHistoryJobRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
115
actiontrail/src/model/GetDeliveryHistoryJobResult.cc
Normal file
115
actiontrail/src/model/GetDeliveryHistoryJobResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetDeliveryHistoryJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
GetDeliveryHistoryJobResult::GetDeliveryHistoryJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDeliveryHistoryJobResult::GetDeliveryHistoryJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDeliveryHistoryJobResult::~GetDeliveryHistoryJobResult()
|
||||
{}
|
||||
|
||||
void GetDeliveryHistoryJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStatusNode = value["Status"]["StatusItem"];
|
||||
for (auto valueStatusStatusItem : allStatusNode)
|
||||
{
|
||||
StatusItem statusObject;
|
||||
if(!valueStatusStatusItem["Status"].isNull())
|
||||
statusObject.status = std::stoi(valueStatusStatusItem["Status"].asString());
|
||||
if(!valueStatusStatusItem["Region"].isNull())
|
||||
statusObject.region = valueStatusStatusItem["Region"].asString();
|
||||
status_.push_back(statusObject);
|
||||
}
|
||||
if(!value["JobStatus"].isNull())
|
||||
jobStatus_ = std::stoi(value["JobStatus"].asString());
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["TrailName"].isNull())
|
||||
trailName_ = value["TrailName"].asString();
|
||||
if(!value["UpdatedTime"].isNull())
|
||||
updatedTime_ = value["UpdatedTime"].asString();
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = std::stol(value["JobId"].asString());
|
||||
if(!value["HomeRegion"].isNull())
|
||||
homeRegion_ = value["HomeRegion"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetDeliveryHistoryJobResult::StatusItem> GetDeliveryHistoryJobResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int GetDeliveryHistoryJobResult::getJobStatus()const
|
||||
{
|
||||
return jobStatus_;
|
||||
}
|
||||
|
||||
std::string GetDeliveryHistoryJobResult::getCreatedTime()const
|
||||
{
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::string GetDeliveryHistoryJobResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string GetDeliveryHistoryJobResult::getHomeRegion()const
|
||||
{
|
||||
return homeRegion_;
|
||||
}
|
||||
|
||||
std::string GetDeliveryHistoryJobResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string GetDeliveryHistoryJobResult::getTrailName()const
|
||||
{
|
||||
return trailName_;
|
||||
}
|
||||
|
||||
std::string GetDeliveryHistoryJobResult::getUpdatedTime()const
|
||||
{
|
||||
return updatedTime_;
|
||||
}
|
||||
|
||||
long GetDeliveryHistoryJobResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetTrailStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::GetTrailStatusRequest;
|
||||
|
||||
GetTrailStatusRequest::GetTrailStatusRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "GetTrailStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTrailStatusRequest::~GetTrailStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetTrailStatusRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetTrailStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::GetTrailStatusRequest;
|
||||
|
||||
GetTrailStatusRequest::GetTrailStatusRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "GetTrailStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTrailStatusRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
GetTrailStatusRequest::~GetTrailStatusRequest() {}
|
||||
|
||||
std::string GetTrailStatusRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
bool GetTrailStatusRequest::getIsOrganizationTrail()const
|
||||
{
|
||||
return isOrganizationTrail_;
|
||||
void GetTrailStatusRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void GetTrailStatusRequest::setIsOrganizationTrail(bool isOrganizationTrail)
|
||||
{
|
||||
isOrganizationTrail_ = isOrganizationTrail;
|
||||
setParameter("IsOrganizationTrail", isOrganizationTrail ? "true" : "false");
|
||||
bool GetTrailStatusRequest::getIsOrganizationTrail() const {
|
||||
return isOrganizationTrail_;
|
||||
}
|
||||
|
||||
void GetTrailStatusRequest::setIsOrganizationTrail(bool isOrganizationTrail) {
|
||||
isOrganizationTrail_ = isOrganizationTrail;
|
||||
setParameter(std::string("IsOrganizationTrail"), isOrganizationTrail ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -39,24 +39,24 @@ void GetTrailStatusResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LatestDeliveryLogServiceTime"].isNull())
|
||||
latestDeliveryLogServiceTime_ = value["LatestDeliveryLogServiceTime"].asString();
|
||||
if(!value["LatestDeliveryLogServiceError"].isNull())
|
||||
latestDeliveryLogServiceError_ = value["LatestDeliveryLogServiceError"].asString();
|
||||
if(!value["StartLoggingTime"].isNull())
|
||||
startLoggingTime_ = value["StartLoggingTime"].asString();
|
||||
if(!value["OssBucketStatus"].isNull())
|
||||
ossBucketStatus_ = value["OssBucketStatus"].asString() == "true";
|
||||
if(!value["LatestDeliveryError"].isNull())
|
||||
latestDeliveryError_ = value["LatestDeliveryError"].asString();
|
||||
if(!value["StopLoggingTime"].isNull())
|
||||
stopLoggingTime_ = value["StopLoggingTime"].asString();
|
||||
if(!value["SlsLogStoreStatus"].isNull())
|
||||
slsLogStoreStatus_ = value["SlsLogStoreStatus"].asString() == "true";
|
||||
if(!value["LatestDeliveryTime"].isNull())
|
||||
latestDeliveryTime_ = value["LatestDeliveryTime"].asString();
|
||||
if(!value["IsLogging"].isNull())
|
||||
isLogging_ = value["IsLogging"].asString() == "true";
|
||||
if(!value["LatestDeliveryTime"].isNull())
|
||||
latestDeliveryTime_ = value["LatestDeliveryTime"].asString();
|
||||
if(!value["LatestDeliveryLogServiceError"].isNull())
|
||||
latestDeliveryLogServiceError_ = value["LatestDeliveryLogServiceError"].asString();
|
||||
if(!value["LatestDeliveryLogServiceTime"].isNull())
|
||||
latestDeliveryLogServiceTime_ = value["LatestDeliveryLogServiceTime"].asString();
|
||||
if(!value["OssBucketStatus"].isNull())
|
||||
ossBucketStatus_ = value["OssBucketStatus"].asString() == "true";
|
||||
if(!value["SlsLogStoreStatus"].isNull())
|
||||
slsLogStoreStatus_ = value["SlsLogStoreStatus"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -95,13 +95,13 @@ bool GetTrailStatusResult::getSlsLogStoreStatus()const
|
||||
return slsLogStoreStatus_;
|
||||
}
|
||||
|
||||
std::string GetTrailStatusResult::getLatestDeliveryTime()const
|
||||
{
|
||||
return latestDeliveryTime_;
|
||||
}
|
||||
|
||||
bool GetTrailStatusResult::getIsLogging()const
|
||||
{
|
||||
return isLogging_;
|
||||
}
|
||||
|
||||
std::string GetTrailStatusResult::getLatestDeliveryTime()const
|
||||
{
|
||||
return latestDeliveryTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::ListDeliveryHistoryJobsRequest;
|
||||
|
||||
ListDeliveryHistoryJobsRequest::ListDeliveryHistoryJobsRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "ListDeliveryHistoryJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDeliveryHistoryJobsRequest::~ListDeliveryHistoryJobsRequest()
|
||||
{}
|
||||
|
||||
int ListDeliveryHistoryJobsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::ListDeliveryHistoryJobsRequest;
|
||||
|
||||
ListDeliveryHistoryJobsRequest::ListDeliveryHistoryJobsRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "ListDeliveryHistoryJobs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDeliveryHistoryJobsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
ListDeliveryHistoryJobsRequest::~ListDeliveryHistoryJobsRequest() {}
|
||||
|
||||
int ListDeliveryHistoryJobsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListDeliveryHistoryJobsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListDeliveryHistoryJobsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void ListDeliveryHistoryJobsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListDeliveryHistoryJobsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDeliveryHistoryJobsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -45,28 +45,28 @@ void ListDeliveryHistoryJobsResult::parse(const std::string &payload)
|
||||
DeliveryHistoryJob deliveryHistoryJobsObject;
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].isNull())
|
||||
deliveryHistoryJobsObject.trailName = valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].isNull())
|
||||
deliveryHistoryJobsObject.createdTime = valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].isNull())
|
||||
deliveryHistoryJobsObject.updatedTime = valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].isNull())
|
||||
deliveryHistoryJobsObject.homeRegion = valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].isNull())
|
||||
deliveryHistoryJobsObject.startTime = valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].isNull())
|
||||
deliveryHistoryJobsObject.endTime = valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].isNull())
|
||||
deliveryHistoryJobsObject.jobId = std::stol(valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].asString());
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].isNull())
|
||||
deliveryHistoryJobsObject.startTime = valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].isNull())
|
||||
deliveryHistoryJobsObject.jobStatus = std::stoi(valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].asString());
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].isNull())
|
||||
deliveryHistoryJobsObject.homeRegion = valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].isNull())
|
||||
deliveryHistoryJobsObject.updatedTime = valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].asString();
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].isNull())
|
||||
deliveryHistoryJobsObject.jobId = std::stol(valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].asString());
|
||||
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].isNull())
|
||||
deliveryHistoryJobsObject.createdTime = valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].asString();
|
||||
deliveryHistoryJobs_.push_back(deliveryHistoryJobsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,100 +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/actiontrail/model/LookupEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::LookupEventsRequest;
|
||||
|
||||
LookupEventsRequest::LookupEventsRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "LookupEvents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
LookupEventsRequest::~LookupEventsRequest()
|
||||
{}
|
||||
|
||||
std::string LookupEventsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/LookupEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::LookupEventsRequest;
|
||||
|
||||
LookupEventsRequest::LookupEventsRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "LookupEvents") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
LookupEventsRequest::~LookupEventsRequest() {}
|
||||
|
||||
std::string LookupEventsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
void LookupEventsRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
std::string LookupEventsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void LookupEventsRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string LookupEventsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<LookupEventsRequest::LookupAttribute> LookupEventsRequest::getLookupAttribute()const
|
||||
{
|
||||
return lookupAttribute_;
|
||||
void LookupEventsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setLookupAttribute(const std::vector<LookupAttribute>& lookupAttribute)
|
||||
{
|
||||
lookupAttribute_ = lookupAttribute;
|
||||
for(int dep1 = 0; dep1!= lookupAttribute.size(); dep1++) {
|
||||
auto lookupAttributeObj = lookupAttribute.at(dep1);
|
||||
std::string lookupAttributeObjStr = "LookupAttribute." + std::to_string(dep1 + 1);
|
||||
setParameter(lookupAttributeObjStr + ".Value", lookupAttributeObj.value);
|
||||
setParameter(lookupAttributeObjStr + ".Key", lookupAttributeObj.key);
|
||||
}
|
||||
std::vector<LookupEventsRequest::LookupAttribute> LookupEventsRequest::getLookupAttribute() const {
|
||||
return lookupAttribute_;
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void LookupEventsRequest::setLookupAttribute(const std::vector<LookupEventsRequest::LookupAttribute> &lookupAttribute) {
|
||||
lookupAttribute_ = lookupAttribute;
|
||||
for(int dep1 = 0; dep1 != lookupAttribute.size(); dep1++) {
|
||||
auto lookupAttributeObj = lookupAttribute.at(dep1);
|
||||
std::string lookupAttributeObjStr = std::string("LookupAttribute") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(lookupAttributeObjStr + ".Value", lookupAttributeObj.value);
|
||||
setParameter(lookupAttributeObjStr + ".Key", lookupAttributeObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setMaxResults(const std::string& maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", maxResults);
|
||||
std::string LookupEventsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
void LookupEventsRequest::setMaxResults(const std::string &maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), maxResults);
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
std::string LookupEventsRequest::getDirection() const {
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setDirection(const std::string &direction) {
|
||||
direction_ = direction;
|
||||
setParameter(std::string("Direction"), direction);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/StartLoggingRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::StartLoggingRequest;
|
||||
|
||||
StartLoggingRequest::StartLoggingRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "StartLogging")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartLoggingRequest::~StartLoggingRequest()
|
||||
{}
|
||||
|
||||
std::string StartLoggingRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/StartLoggingRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::StartLoggingRequest;
|
||||
|
||||
StartLoggingRequest::StartLoggingRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "StartLogging") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void StartLoggingRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
StartLoggingRequest::~StartLoggingRequest() {}
|
||||
|
||||
std::string StartLoggingRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void StartLoggingRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/StopLoggingRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::StopLoggingRequest;
|
||||
|
||||
StopLoggingRequest::StopLoggingRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "StopLogging")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
StopLoggingRequest::~StopLoggingRequest()
|
||||
{}
|
||||
|
||||
std::string StopLoggingRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/StopLoggingRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::StopLoggingRequest;
|
||||
|
||||
StopLoggingRequest::StopLoggingRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "StopLogging") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void StopLoggingRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
StopLoggingRequest::~StopLoggingRequest() {}
|
||||
|
||||
std::string StopLoggingRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void StopLoggingRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,117 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/UpdateTrailRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::UpdateTrailRequest;
|
||||
|
||||
UpdateTrailRequest::UpdateTrailRequest() :
|
||||
RpcServiceRequest("actiontrail", "2020-07-06", "UpdateTrail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateTrailRequest::~UpdateTrailRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateTrailRequest::getSlsProjectArn()const
|
||||
{
|
||||
return slsProjectArn_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/UpdateTrailRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::UpdateTrailRequest;
|
||||
|
||||
UpdateTrailRequest::UpdateTrailRequest()
|
||||
: RpcServiceRequest("actiontrail", "2020-07-06", "UpdateTrail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setSlsProjectArn(const std::string& slsProjectArn)
|
||||
{
|
||||
slsProjectArn_ = slsProjectArn;
|
||||
setParameter("SlsProjectArn", slsProjectArn);
|
||||
UpdateTrailRequest::~UpdateTrailRequest() {}
|
||||
|
||||
std::string UpdateTrailRequest::getSlsProjectArn() const {
|
||||
return slsProjectArn_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
void UpdateTrailRequest::setSlsProjectArn(const std::string &slsProjectArn) {
|
||||
slsProjectArn_ = slsProjectArn;
|
||||
setParameter(std::string("SlsProjectArn"), slsProjectArn);
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setSlsWriteRoleArn(const std::string& slsWriteRoleArn)
|
||||
{
|
||||
slsWriteRoleArn_ = slsWriteRoleArn;
|
||||
setParameter("SlsWriteRoleArn", slsWriteRoleArn);
|
||||
std::string UpdateTrailRequest::getSlsWriteRoleArn() const {
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getOssKeyPrefix()const
|
||||
{
|
||||
return ossKeyPrefix_;
|
||||
void UpdateTrailRequest::setSlsWriteRoleArn(const std::string &slsWriteRoleArn) {
|
||||
slsWriteRoleArn_ = slsWriteRoleArn;
|
||||
setParameter(std::string("SlsWriteRoleArn"), slsWriteRoleArn);
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setOssKeyPrefix(const std::string& ossKeyPrefix)
|
||||
{
|
||||
ossKeyPrefix_ = ossKeyPrefix;
|
||||
setParameter("OssKeyPrefix", ossKeyPrefix);
|
||||
std::string UpdateTrailRequest::getOssKeyPrefix() const {
|
||||
return ossKeyPrefix_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getOssWriteRoleArn()const
|
||||
{
|
||||
return ossWriteRoleArn_;
|
||||
void UpdateTrailRequest::setOssKeyPrefix(const std::string &ossKeyPrefix) {
|
||||
ossKeyPrefix_ = ossKeyPrefix;
|
||||
setParameter(std::string("OssKeyPrefix"), ossKeyPrefix);
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setOssWriteRoleArn(const std::string& ossWriteRoleArn)
|
||||
{
|
||||
ossWriteRoleArn_ = ossWriteRoleArn;
|
||||
setParameter("OssWriteRoleArn", ossWriteRoleArn);
|
||||
std::string UpdateTrailRequest::getOssWriteRoleArn() const {
|
||||
return ossWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getEventRW()const
|
||||
{
|
||||
return eventRW_;
|
||||
void UpdateTrailRequest::setOssWriteRoleArn(const std::string &ossWriteRoleArn) {
|
||||
ossWriteRoleArn_ = ossWriteRoleArn;
|
||||
setParameter(std::string("OssWriteRoleArn"), ossWriteRoleArn);
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setEventRW(const std::string& eventRW)
|
||||
{
|
||||
eventRW_ = eventRW;
|
||||
setParameter("EventRW", eventRW);
|
||||
std::string UpdateTrailRequest::getEventRW() const {
|
||||
return eventRW_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void UpdateTrailRequest::setEventRW(const std::string &eventRW) {
|
||||
eventRW_ = eventRW;
|
||||
setParameter(std::string("EventRW"), eventRW);
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string UpdateTrailRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
void UpdateTrailRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter("OssBucketName", ossBucketName);
|
||||
std::string UpdateTrailRequest::getOssBucketName() const {
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getTrailRegion()const
|
||||
{
|
||||
return trailRegion_;
|
||||
void UpdateTrailRequest::setOssBucketName(const std::string &ossBucketName) {
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter(std::string("OssBucketName"), ossBucketName);
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setTrailRegion(const std::string& trailRegion)
|
||||
{
|
||||
trailRegion_ = trailRegion;
|
||||
setParameter("TrailRegion", trailRegion);
|
||||
std::string UpdateTrailRequest::getTrailRegion() const {
|
||||
return trailRegion_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setTrailRegion(const std::string &trailRegion) {
|
||||
trailRegion_ = trailRegion;
|
||||
setParameter(std::string("TrailRegion"), trailRegion);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,8 @@ void UpdateTrailResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SlsProjectArn"].isNull())
|
||||
slsProjectArn_ = value["SlsProjectArn"].asString();
|
||||
if(!value["OssWriteRoleArn"].isNull())
|
||||
ossWriteRoleArn_ = value["OssWriteRoleArn"].asString();
|
||||
if(!value["EventRW"].isNull())
|
||||
eventRW_ = value["EventRW"].asString();
|
||||
if(!value["HomeRegion"].isNull())
|
||||
@@ -51,8 +53,6 @@ void UpdateTrailResult::parse(const std::string &payload)
|
||||
ossBucketName_ = value["OssBucketName"].asString();
|
||||
if(!value["SlsWriteRoleArn"].isNull())
|
||||
slsWriteRoleArn_ = value["SlsWriteRoleArn"].asString();
|
||||
if(!value["OssWriteRoleArn"].isNull())
|
||||
ossWriteRoleArn_ = value["OssWriteRoleArn"].asString();
|
||||
if(!value["TrailRegion"].isNull())
|
||||
trailRegion_ = value["TrailRegion"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
@@ -85,16 +85,16 @@ std::string UpdateTrailResult::getOssBucketName()const
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getOssWriteRoleArn()const
|
||||
{
|
||||
return ossWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getTrailRegion()const
|
||||
{
|
||||
return trailRegion_;
|
||||
|
||||
134
antiddos-public/CMakeLists.txt
Normal file
134
antiddos-public/CMakeLists.txt
Normal file
@@ -0,0 +1,134 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(antiddos-public_public_header
|
||||
include/alibabacloud/antiddos-public/Antiddos_publicClient.h
|
||||
include/alibabacloud/antiddos-public/Antiddos_publicExport.h )
|
||||
|
||||
set(antiddos-public_public_header_model
|
||||
include/alibabacloud/antiddos-public/model/DescribeBgpPackByIpRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeBgpPackByIpResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeCapRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeCapResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeDdosCountRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeDdosCountResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeDdosCreditRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeDdosCreditResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeDdosEventListRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeDdosEventListResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeDdosThresholdRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeDdosThresholdResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeInstanceRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeInstanceResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeInstanceIpAddressRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeInstanceIpAddressResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeIpDdosThresholdRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeIpDdosThresholdResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeIpLocationServiceRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeIpLocationServiceResult.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/antiddos-public/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/antiddos-public/model/ModifyDdosStatusRequest.h
|
||||
include/alibabacloud/antiddos-public/model/ModifyDdosStatusResult.h
|
||||
include/alibabacloud/antiddos-public/model/ModifyDefenseThresholdRequest.h
|
||||
include/alibabacloud/antiddos-public/model/ModifyDefenseThresholdResult.h )
|
||||
|
||||
set(antiddos-public_src
|
||||
src/Antiddos-publicClient.cc
|
||||
src/model/DescribeBgpPackByIpRequest.cc
|
||||
src/model/DescribeBgpPackByIpResult.cc
|
||||
src/model/DescribeCapRequest.cc
|
||||
src/model/DescribeCapResult.cc
|
||||
src/model/DescribeDdosCountRequest.cc
|
||||
src/model/DescribeDdosCountResult.cc
|
||||
src/model/DescribeDdosCreditRequest.cc
|
||||
src/model/DescribeDdosCreditResult.cc
|
||||
src/model/DescribeDdosEventListRequest.cc
|
||||
src/model/DescribeDdosEventListResult.cc
|
||||
src/model/DescribeDdosThresholdRequest.cc
|
||||
src/model/DescribeDdosThresholdResult.cc
|
||||
src/model/DescribeInstanceRequest.cc
|
||||
src/model/DescribeInstanceResult.cc
|
||||
src/model/DescribeInstanceIpAddressRequest.cc
|
||||
src/model/DescribeInstanceIpAddressResult.cc
|
||||
src/model/DescribeIpDdosThresholdRequest.cc
|
||||
src/model/DescribeIpDdosThresholdResult.cc
|
||||
src/model/DescribeIpLocationServiceRequest.cc
|
||||
src/model/DescribeIpLocationServiceResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/ModifyDdosStatusRequest.cc
|
||||
src/model/ModifyDdosStatusResult.cc
|
||||
src/model/ModifyDefenseThresholdRequest.cc
|
||||
src/model/ModifyDefenseThresholdResult.cc )
|
||||
|
||||
add_library(antiddos-public ${LIB_TYPE}
|
||||
${antiddos-public_public_header}
|
||||
${antiddos-public_public_header_model}
|
||||
${antiddos-public_src})
|
||||
|
||||
set_target_properties(antiddos-public
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}antiddos-public
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(antiddos-public
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ANTIDDOS_PUBLIC_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(antiddos-public
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(antiddos-public
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(antiddos-public
|
||||
jsoncpp)
|
||||
target_include_directories(antiddos-public
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(antiddos-public
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(antiddos-public
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(antiddos-public
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(antiddos-public
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${antiddos-public_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/antiddos-public)
|
||||
install(FILES ${antiddos-public_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/antiddos-public/model)
|
||||
install(TARGETS antiddos-public
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICCLIENT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Antiddos_publicExport.h"
|
||||
#include "model/DescribeBgpPackByIpRequest.h"
|
||||
#include "model/DescribeBgpPackByIpResult.h"
|
||||
#include "model/DescribeCapRequest.h"
|
||||
#include "model/DescribeCapResult.h"
|
||||
#include "model/DescribeDdosCountRequest.h"
|
||||
#include "model/DescribeDdosCountResult.h"
|
||||
#include "model/DescribeDdosCreditRequest.h"
|
||||
#include "model/DescribeDdosCreditResult.h"
|
||||
#include "model/DescribeDdosEventListRequest.h"
|
||||
#include "model/DescribeDdosEventListResult.h"
|
||||
#include "model/DescribeDdosThresholdRequest.h"
|
||||
#include "model/DescribeDdosThresholdResult.h"
|
||||
#include "model/DescribeInstanceRequest.h"
|
||||
#include "model/DescribeInstanceResult.h"
|
||||
#include "model/DescribeInstanceIpAddressRequest.h"
|
||||
#include "model/DescribeInstanceIpAddressResult.h"
|
||||
#include "model/DescribeIpDdosThresholdRequest.h"
|
||||
#include "model/DescribeIpDdosThresholdResult.h"
|
||||
#include "model/DescribeIpLocationServiceRequest.h"
|
||||
#include "model/DescribeIpLocationServiceResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/ModifyDdosStatusRequest.h"
|
||||
#include "model/ModifyDdosStatusResult.h"
|
||||
#include "model/ModifyDefenseThresholdRequest.h"
|
||||
#include "model/ModifyDefenseThresholdResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT Antiddos_publicClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeBgpPackByIpResult> DescribeBgpPackByIpOutcome;
|
||||
typedef std::future<DescribeBgpPackByIpOutcome> DescribeBgpPackByIpOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeBgpPackByIpRequest&, const DescribeBgpPackByIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBgpPackByIpAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCapResult> DescribeCapOutcome;
|
||||
typedef std::future<DescribeCapOutcome> DescribeCapOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeCapRequest&, const DescribeCapOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCapAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDdosCountResult> DescribeDdosCountOutcome;
|
||||
typedef std::future<DescribeDdosCountOutcome> DescribeDdosCountOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeDdosCountRequest&, const DescribeDdosCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDdosCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDdosCreditResult> DescribeDdosCreditOutcome;
|
||||
typedef std::future<DescribeDdosCreditOutcome> DescribeDdosCreditOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeDdosCreditRequest&, const DescribeDdosCreditOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDdosCreditAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDdosEventListResult> DescribeDdosEventListOutcome;
|
||||
typedef std::future<DescribeDdosEventListOutcome> DescribeDdosEventListOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeDdosEventListRequest&, const DescribeDdosEventListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDdosEventListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDdosThresholdResult> DescribeDdosThresholdOutcome;
|
||||
typedef std::future<DescribeDdosThresholdOutcome> DescribeDdosThresholdOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeDdosThresholdRequest&, const DescribeDdosThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDdosThresholdAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceResult> DescribeInstanceOutcome;
|
||||
typedef std::future<DescribeInstanceOutcome> DescribeInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeInstanceRequest&, const DescribeInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceIpAddressResult> DescribeInstanceIpAddressOutcome;
|
||||
typedef std::future<DescribeInstanceIpAddressOutcome> DescribeInstanceIpAddressOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeInstanceIpAddressRequest&, const DescribeInstanceIpAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceIpAddressAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIpDdosThresholdResult> DescribeIpDdosThresholdOutcome;
|
||||
typedef std::future<DescribeIpDdosThresholdOutcome> DescribeIpDdosThresholdOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeIpDdosThresholdRequest&, const DescribeIpDdosThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIpDdosThresholdAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIpLocationServiceResult> DescribeIpLocationServiceOutcome;
|
||||
typedef std::future<DescribeIpLocationServiceOutcome> DescribeIpLocationServiceOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeIpLocationServiceRequest&, const DescribeIpLocationServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIpLocationServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDdosStatusResult> ModifyDdosStatusOutcome;
|
||||
typedef std::future<ModifyDdosStatusOutcome> ModifyDdosStatusOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::ModifyDdosStatusRequest&, const ModifyDdosStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDdosStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDefenseThresholdResult> ModifyDefenseThresholdOutcome;
|
||||
typedef std::future<ModifyDefenseThresholdOutcome> ModifyDefenseThresholdOutcomeCallable;
|
||||
typedef std::function<void(const Antiddos_publicClient*, const Model::ModifyDefenseThresholdRequest&, const ModifyDefenseThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDefenseThresholdAsyncHandler;
|
||||
|
||||
Antiddos_publicClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Antiddos_publicClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Antiddos_publicClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Antiddos_publicClient();
|
||||
DescribeBgpPackByIpOutcome describeBgpPackByIp(const Model::DescribeBgpPackByIpRequest &request)const;
|
||||
void describeBgpPackByIpAsync(const Model::DescribeBgpPackByIpRequest& request, const DescribeBgpPackByIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBgpPackByIpOutcomeCallable describeBgpPackByIpCallable(const Model::DescribeBgpPackByIpRequest& request) const;
|
||||
DescribeCapOutcome describeCap(const Model::DescribeCapRequest &request)const;
|
||||
void describeCapAsync(const Model::DescribeCapRequest& request, const DescribeCapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCapOutcomeCallable describeCapCallable(const Model::DescribeCapRequest& request) const;
|
||||
DescribeDdosCountOutcome describeDdosCount(const Model::DescribeDdosCountRequest &request)const;
|
||||
void describeDdosCountAsync(const Model::DescribeDdosCountRequest& request, const DescribeDdosCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDdosCountOutcomeCallable describeDdosCountCallable(const Model::DescribeDdosCountRequest& request) const;
|
||||
DescribeDdosCreditOutcome describeDdosCredit(const Model::DescribeDdosCreditRequest &request)const;
|
||||
void describeDdosCreditAsync(const Model::DescribeDdosCreditRequest& request, const DescribeDdosCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDdosCreditOutcomeCallable describeDdosCreditCallable(const Model::DescribeDdosCreditRequest& request) const;
|
||||
DescribeDdosEventListOutcome describeDdosEventList(const Model::DescribeDdosEventListRequest &request)const;
|
||||
void describeDdosEventListAsync(const Model::DescribeDdosEventListRequest& request, const DescribeDdosEventListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDdosEventListOutcomeCallable describeDdosEventListCallable(const Model::DescribeDdosEventListRequest& request) const;
|
||||
DescribeDdosThresholdOutcome describeDdosThreshold(const Model::DescribeDdosThresholdRequest &request)const;
|
||||
void describeDdosThresholdAsync(const Model::DescribeDdosThresholdRequest& request, const DescribeDdosThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDdosThresholdOutcomeCallable describeDdosThresholdCallable(const Model::DescribeDdosThresholdRequest& request) const;
|
||||
DescribeInstanceOutcome describeInstance(const Model::DescribeInstanceRequest &request)const;
|
||||
void describeInstanceAsync(const Model::DescribeInstanceRequest& request, const DescribeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceOutcomeCallable describeInstanceCallable(const Model::DescribeInstanceRequest& request) const;
|
||||
DescribeInstanceIpAddressOutcome describeInstanceIpAddress(const Model::DescribeInstanceIpAddressRequest &request)const;
|
||||
void describeInstanceIpAddressAsync(const Model::DescribeInstanceIpAddressRequest& request, const DescribeInstanceIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceIpAddressOutcomeCallable describeInstanceIpAddressCallable(const Model::DescribeInstanceIpAddressRequest& request) const;
|
||||
DescribeIpDdosThresholdOutcome describeIpDdosThreshold(const Model::DescribeIpDdosThresholdRequest &request)const;
|
||||
void describeIpDdosThresholdAsync(const Model::DescribeIpDdosThresholdRequest& request, const DescribeIpDdosThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIpDdosThresholdOutcomeCallable describeIpDdosThresholdCallable(const Model::DescribeIpDdosThresholdRequest& request) const;
|
||||
DescribeIpLocationServiceOutcome describeIpLocationService(const Model::DescribeIpLocationServiceRequest &request)const;
|
||||
void describeIpLocationServiceAsync(const Model::DescribeIpLocationServiceRequest& request, const DescribeIpLocationServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIpLocationServiceOutcomeCallable describeIpLocationServiceCallable(const Model::DescribeIpLocationServiceRequest& request) const;
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
ModifyDdosStatusOutcome modifyDdosStatus(const Model::ModifyDdosStatusRequest &request)const;
|
||||
void modifyDdosStatusAsync(const Model::ModifyDdosStatusRequest& request, const ModifyDdosStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDdosStatusOutcomeCallable modifyDdosStatusCallable(const Model::ModifyDdosStatusRequest& request) const;
|
||||
ModifyDefenseThresholdOutcome modifyDefenseThreshold(const Model::ModifyDefenseThresholdRequest &request)const;
|
||||
void modifyDefenseThresholdAsync(const Model::ModifyDefenseThresholdRequest& request, const ModifyDefenseThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDefenseThresholdOutcomeCallable modifyDefenseThresholdCallable(const Model::ModifyDefenseThresholdRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICCLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ANTIDDOS_PUBLIC_LIBRARY)
|
||||
# define ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeBgpPackByIpRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeBgpPackByIpRequest();
|
||||
~DescribeBgpPackByIpRequest();
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getIp() const;
|
||||
void setIp(const std::string &ip);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string ddosRegionId_;
|
||||
std::string lang_;
|
||||
std::string ip_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPREQUEST_H_
|
||||
@@ -14,54 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_QUERYBIDRECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_QUERYBIDRECORDSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/domain/DomainExport.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT QueryBidRecordsResult : public ServiceResult
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeBgpPackByIpResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BidRecord
|
||||
struct DdosbgpInfo
|
||||
{
|
||||
std::string bidder;
|
||||
std::string domainName;
|
||||
std::string currency;
|
||||
long bidTime;
|
||||
float bid;
|
||||
std::string ddosbgpInstanceId;
|
||||
std::string ip;
|
||||
int elasticThreshold;
|
||||
int baseThreshold;
|
||||
long expireTime;
|
||||
};
|
||||
|
||||
|
||||
QueryBidRecordsResult();
|
||||
explicit QueryBidRecordsResult(const std::string &payload);
|
||||
~QueryBidRecordsResult();
|
||||
int getCurrentPageNum()const;
|
||||
int getPageSize()const;
|
||||
int getTotalPageNum()const;
|
||||
std::vector<BidRecord> getData()const;
|
||||
int getTotalItemNum()const;
|
||||
DescribeBgpPackByIpResult();
|
||||
explicit DescribeBgpPackByIpResult(const std::string &payload);
|
||||
~DescribeBgpPackByIpResult();
|
||||
DdosbgpInfo getDdosbgpInfo()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int currentPageNum_;
|
||||
int pageSize_;
|
||||
int totalPageNum_;
|
||||
std::vector<BidRecord> data_;
|
||||
int totalItemNum_;
|
||||
DdosbgpInfo ddosbgpInfo_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_QUERYBIDRECORDSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeCapRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeCapRequest();
|
||||
~DescribeCapRequest();
|
||||
std::string getInternetIp() const;
|
||||
void setInternetIp(const std::string &internetIp);
|
||||
long getBegTime() const;
|
||||
void setBegTime(long begTime);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string internetIp_;
|
||||
long begTime_;
|
||||
std::string sourceIp_;
|
||||
std::string ddosRegionId_;
|
||||
std::string instanceType_;
|
||||
std::string lang_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeCapResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct CapUrl
|
||||
{
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
DescribeCapResult();
|
||||
explicit DescribeCapResult(const std::string &payload);
|
||||
~DescribeCapResult();
|
||||
CapUrl getCapUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
CapUrl capUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCOUNTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosCountRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeDdosCountRequest();
|
||||
~DescribeDdosCountRequest();
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string ddosRegionId_;
|
||||
std::string instanceType_;
|
||||
std::string lang_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCOUNTREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosCountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DdosCount
|
||||
{
|
||||
int blackholeCount;
|
||||
int defenseCount;
|
||||
int instacenCount;
|
||||
};
|
||||
|
||||
|
||||
DescribeDdosCountResult();
|
||||
explicit DescribeDdosCountResult(const std::string &payload);
|
||||
~DescribeDdosCountResult();
|
||||
DdosCount getDdosCount()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DdosCount ddosCount_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCOUNTRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosCreditRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeDdosCreditRequest();
|
||||
~DescribeDdosCreditRequest();
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string ddosRegionId_;
|
||||
std::string lang_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITREQUEST_H_
|
||||
@@ -14,50 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERRESULT_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/domain/DomainExport.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT CreateFixedPriceDemandOrderResult : public ServiceResult
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosCreditResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Module
|
||||
struct DdosCredit
|
||||
{
|
||||
long price;
|
||||
std::string orderNo;
|
||||
std::string domain;
|
||||
int score;
|
||||
std::string scoreLevel;
|
||||
int blackholeTime;
|
||||
};
|
||||
|
||||
|
||||
CreateFixedPriceDemandOrderResult();
|
||||
explicit CreateFixedPriceDemandOrderResult(const std::string &payload);
|
||||
~CreateFixedPriceDemandOrderResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getErrorCode()const;
|
||||
Module getModule()const;
|
||||
DescribeDdosCreditResult();
|
||||
explicit DescribeDdosCreditResult(const std::string &payload);
|
||||
~DescribeDdosCreditResult();
|
||||
DdosCredit getDdosCredit()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::string errorCode_;
|
||||
Module module_;
|
||||
DdosCredit ddosCredit_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSEVENTLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSEVENTLISTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosEventListRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeDdosEventListRequest();
|
||||
~DescribeDdosEventListRequest();
|
||||
std::string getInternetIp() const;
|
||||
void setInternetIp(const std::string &internetIp);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string internetIp_;
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
std::string ddosRegionId_;
|
||||
std::string instanceType_;
|
||||
std::string lang_;
|
||||
int currentPage_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSEVENTLISTREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSEVENTLISTRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSEVENTLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosEventListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DdosEvent
|
||||
{
|
||||
long endTime;
|
||||
long startTime;
|
||||
std::string ddosStatus;
|
||||
long unBlackholeTime;
|
||||
std::string ddosType;
|
||||
long delayTime;
|
||||
};
|
||||
|
||||
|
||||
DescribeDdosEventListResult();
|
||||
explicit DescribeDdosEventListResult(const std::string &payload);
|
||||
~DescribeDdosEventListResult();
|
||||
std::vector<DdosEvent> getDdosEventList()const;
|
||||
int getTotal()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DdosEvent> ddosEventList_;
|
||||
int total_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSEVENTLISTRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosThresholdRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeDdosThresholdRequest();
|
||||
~DescribeDdosThresholdRequest();
|
||||
std::string getDdosType() const;
|
||||
void setDdosType(const std::string &ddosType);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::vector<std::string> getInstanceIds() const;
|
||||
void setInstanceIds(const std::vector<std::string> &instanceIds);
|
||||
|
||||
private:
|
||||
std::string ddosType_;
|
||||
std::string sourceIp_;
|
||||
std::string ddosRegionId_;
|
||||
std::string instanceType_;
|
||||
std::string lang_;
|
||||
std::vector<std::string> instanceIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDREQUEST_H_
|
||||
@@ -14,36 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSRESULT_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ens
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ENS_EXPORT ConfigureSecurityGroupPermissionsResult : public ServiceResult
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosThresholdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Threshold
|
||||
{
|
||||
int elasticBps;
|
||||
int maxBps;
|
||||
int pps;
|
||||
int bps;
|
||||
std::string internetIp;
|
||||
std::string instanceId;
|
||||
std::string ddosType;
|
||||
bool isAuto;
|
||||
int maxPps;
|
||||
};
|
||||
|
||||
|
||||
ConfigureSecurityGroupPermissionsResult();
|
||||
explicit ConfigureSecurityGroupPermissionsResult(const std::string &payload);
|
||||
~ConfigureSecurityGroupPermissionsResult();
|
||||
DescribeDdosThresholdResult();
|
||||
explicit DescribeDdosThresholdResult(const std::string &payload);
|
||||
~DescribeDdosThresholdResult();
|
||||
std::vector<Threshold> getThresholds()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Threshold> thresholds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDRESULT_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeInstanceIpAddressRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeInstanceIpAddressRequest();
|
||||
~DescribeInstanceIpAddressRequest();
|
||||
std::string getEagleEyeRpcId() const;
|
||||
void setEagleEyeRpcId(const std::string &eagleEyeRpcId);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getEagleEyeTraceId() const;
|
||||
void setEagleEyeTraceId(const std::string &eagleEyeTraceId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getDdosStatus() const;
|
||||
void setDdosStatus(const std::string &ddosStatus);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getInstanceName() const;
|
||||
void setInstanceName(const std::string &instanceName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getEagleEyeUserData() const;
|
||||
void setEagleEyeUserData(const std::string &eagleEyeUserData);
|
||||
std::string getInstanceIp() const;
|
||||
void setInstanceIp(const std::string &instanceIp);
|
||||
|
||||
private:
|
||||
std::string eagleEyeRpcId_;
|
||||
std::string sourceIp_;
|
||||
std::string eagleEyeTraceId_;
|
||||
int pageSize_;
|
||||
std::string ddosRegionId_;
|
||||
std::string instanceType_;
|
||||
std::string lang_;
|
||||
std::string ddosStatus_;
|
||||
int currentPage_;
|
||||
std::string instanceName_;
|
||||
std::string instanceId_;
|
||||
std::string eagleEyeUserData_;
|
||||
std::string instanceIp_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSREQUEST_H_
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeInstanceIpAddressResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
struct IpAddressConfigItem
|
||||
{
|
||||
int defensePpsThreshold;
|
||||
int defenseBpsThreshold;
|
||||
std::string ipVersion;
|
||||
std::string instanceIp;
|
||||
std::string ipStatus;
|
||||
std::string regionId;
|
||||
int elasticThreshold;
|
||||
bool isBgppack;
|
||||
int blackholeThreshold;
|
||||
};
|
||||
std::string instanceName;
|
||||
std::string instanceId;
|
||||
std::string instanceStatus;
|
||||
std::vector<Instance::IpAddressConfigItem> ipAddressConfig;
|
||||
std::string instanceType;
|
||||
};
|
||||
|
||||
|
||||
DescribeInstanceIpAddressResult();
|
||||
explicit DescribeInstanceIpAddressResult(const std::string &payload);
|
||||
~DescribeInstanceIpAddressResult();
|
||||
int getTotal()const;
|
||||
std::vector<Instance> getInstanceList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int total_;
|
||||
std::vector<Instance> instanceList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSRESULT_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeInstanceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeInstanceRequest();
|
||||
~DescribeInstanceRequest();
|
||||
std::string getEagleEyeRpcId() const;
|
||||
void setEagleEyeRpcId(const std::string &eagleEyeRpcId);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getEagleEyeTraceId() const;
|
||||
void setEagleEyeTraceId(const std::string &eagleEyeTraceId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getDdosStatus() const;
|
||||
void setDdosStatus(const std::string &ddosStatus);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getInstanceName() const;
|
||||
void setInstanceName(const std::string &instanceName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getEagleEyeUserData() const;
|
||||
void setEagleEyeUserData(const std::string &eagleEyeUserData);
|
||||
std::string getInstanceIp() const;
|
||||
void setInstanceIp(const std::string &instanceIp);
|
||||
|
||||
private:
|
||||
std::string eagleEyeRpcId_;
|
||||
std::string sourceIp_;
|
||||
std::string eagleEyeTraceId_;
|
||||
int pageSize_;
|
||||
std::string ddosRegionId_;
|
||||
std::string instanceType_;
|
||||
std::string lang_;
|
||||
std::string ddosStatus_;
|
||||
int currentPage_;
|
||||
std::string instanceName_;
|
||||
std::string instanceId_;
|
||||
std::string eagleEyeUserData_;
|
||||
std::string instanceIp_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
std::string instanceName;
|
||||
int defensePpsThreshold;
|
||||
int defenseBpsThreshold;
|
||||
std::string ipVersion;
|
||||
std::string instanceId;
|
||||
std::string instanceStatus;
|
||||
std::string instanceIp;
|
||||
int elasticThreshold;
|
||||
std::string instanceType;
|
||||
bool isBgppack;
|
||||
int blackholeThreshold;
|
||||
};
|
||||
|
||||
|
||||
DescribeInstanceResult();
|
||||
explicit DescribeInstanceResult(const std::string &payload);
|
||||
~DescribeInstanceResult();
|
||||
int getTotal()const;
|
||||
std::vector<Instance> getInstanceList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int total_;
|
||||
std::vector<Instance> instanceList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPDDOSTHRESHOLDREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPDDOSTHRESHOLDREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeIpDdosThresholdRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeIpDdosThresholdRequest();
|
||||
~DescribeIpDdosThresholdRequest();
|
||||
std::string getInternetIp() const;
|
||||
void setInternetIp(const std::string &internetIp);
|
||||
std::string getDdosType() const;
|
||||
void setDdosType(const std::string &ddosType);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string internetIp_;
|
||||
std::string ddosType_;
|
||||
std::string sourceIp_;
|
||||
std::string ddosRegionId_;
|
||||
std::string instanceType_;
|
||||
std::string lang_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPDDOSTHRESHOLDREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPDDOSTHRESHOLDRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPDDOSTHRESHOLDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeIpDdosThresholdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Threshold
|
||||
{
|
||||
int elasticBps;
|
||||
int maxBps;
|
||||
int pps;
|
||||
int bps;
|
||||
std::string internetIp;
|
||||
std::string instanceId;
|
||||
std::string ddosType;
|
||||
bool isAuto;
|
||||
int maxPps;
|
||||
};
|
||||
|
||||
|
||||
DescribeIpDdosThresholdResult();
|
||||
explicit DescribeIpDdosThresholdResult(const std::string &payload);
|
||||
~DescribeIpDdosThresholdResult();
|
||||
Threshold getThreshold()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Threshold threshold_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPDDOSTHRESHOLDRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeIpLocationServiceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeIpLocationServiceRequest();
|
||||
~DescribeIpLocationServiceRequest();
|
||||
std::string getInternetIp() const;
|
||||
void setInternetIp(const std::string &internetIp);
|
||||
std::string getEagleEyeRpcId() const;
|
||||
void setEagleEyeRpcId(const std::string &eagleEyeRpcId);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getEagleEyeTraceId() const;
|
||||
void setEagleEyeTraceId(const std::string &eagleEyeTraceId);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getEagleEyeUserData() const;
|
||||
void setEagleEyeUserData(const std::string &eagleEyeUserData);
|
||||
|
||||
private:
|
||||
std::string internetIp_;
|
||||
std::string eagleEyeRpcId_;
|
||||
std::string sourceIp_;
|
||||
std::string eagleEyeTraceId_;
|
||||
std::string lang_;
|
||||
std::string eagleEyeUserData_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICEREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeIpLocationServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
std::string instanceName;
|
||||
std::string internetIp;
|
||||
std::string instanceId;
|
||||
std::string region;
|
||||
std::string instanceType;
|
||||
};
|
||||
|
||||
|
||||
DescribeIpLocationServiceResult();
|
||||
explicit DescribeIpLocationServiceResult(const std::string &payload);
|
||||
~DescribeIpLocationServiceResult();
|
||||
Instance getInstance()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Instance instance_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICERESULT_H_
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeRegionsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
@@ -14,47 +14,45 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Regions
|
||||
struct Region
|
||||
{
|
||||
struct RegionItem
|
||||
{
|
||||
std::vector<std::string> projectTypes;
|
||||
std::string regionId;
|
||||
};
|
||||
std::vector<RegionItem> region;
|
||||
std::string regionNo;
|
||||
std::string regionName;
|
||||
std::string regionEnName;
|
||||
std::string regionNoAlias;
|
||||
};
|
||||
|
||||
|
||||
DescribeRegionsResult();
|
||||
explicit DescribeRegionsResult(const std::string &payload);
|
||||
~DescribeRegionsResult();
|
||||
Regions getRegions()const;
|
||||
std::vector<Region> getRegions()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Regions regions_;
|
||||
std::vector<Region> regions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ModifyDdosStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ModifyDdosStatusRequest();
|
||||
~ModifyDdosStatusRequest();
|
||||
std::string getInternetIp() const;
|
||||
void setInternetIp(const std::string &internetIp);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string internetIp_;
|
||||
std::string sourceIp_;
|
||||
std::string ddosRegionId_;
|
||||
std::string instanceType_;
|
||||
std::string lang_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ModifyDdosStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDdosStatusResult();
|
||||
explicit ModifyDdosStatusResult(const std::string &payload);
|
||||
~ModifyDdosStatusResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDEFENSETHRESHOLDREQUEST_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDEFENSETHRESHOLDREQUEST_H_
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Antiddos_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ModifyDefenseThresholdRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ModifyDefenseThresholdRequest();
|
||||
~ModifyDefenseThresholdRequest();
|
||||
std::string getInternetIp() const;
|
||||
void setInternetIp(const std::string &internetIp);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getDdosRegionId() const;
|
||||
void setDdosRegionId(const std::string &ddosRegionId);
|
||||
std::string getInstanceType() const;
|
||||
void setInstanceType(const std::string &instanceType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
int getBps() const;
|
||||
void setBps(int bps);
|
||||
int getPps() const;
|
||||
void setPps(int pps);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
bool getIsAuto() const;
|
||||
void setIsAuto(bool isAuto);
|
||||
|
||||
private:
|
||||
std::string internetIp_;
|
||||
std::string sourceIp_;
|
||||
std::string ddosRegionId_;
|
||||
std::string instanceType_;
|
||||
std::string lang_;
|
||||
int bps_;
|
||||
int pps_;
|
||||
std::string instanceId_;
|
||||
bool isAuto_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Antiddos_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDEFENSETHRESHOLDREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDEFENSETHRESHOLDRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDEFENSETHRESHOLDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ModifyDefenseThresholdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDefenseThresholdResult();
|
||||
explicit ModifyDefenseThresholdResult(const std::string &payload);
|
||||
~ModifyDefenseThresholdResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDEFENSETHRESHOLDRESULT_H_
|
||||
521
antiddos-public/src/Antiddos-publicClient.cc
Normal file
521
antiddos-public/src/Antiddos-publicClient.cc
Normal file
@@ -0,0 +1,521 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "antiddos-public";
|
||||
}
|
||||
|
||||
Antiddos_publicClient::Antiddos_publicClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Antiddos_publicClient::Antiddos_publicClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Antiddos_publicClient::Antiddos_publicClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Antiddos_publicClient::~Antiddos_publicClient()
|
||||
{}
|
||||
|
||||
Antiddos_publicClient::DescribeBgpPackByIpOutcome Antiddos_publicClient::describeBgpPackByIp(const DescribeBgpPackByIpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBgpPackByIpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBgpPackByIpOutcome(DescribeBgpPackByIpResult(outcome.result()));
|
||||
else
|
||||
return DescribeBgpPackByIpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeBgpPackByIpAsync(const DescribeBgpPackByIpRequest& request, const DescribeBgpPackByIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBgpPackByIp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeBgpPackByIpOutcomeCallable Antiddos_publicClient::describeBgpPackByIpCallable(const DescribeBgpPackByIpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBgpPackByIpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBgpPackByIp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeCapOutcome Antiddos_publicClient::describeCap(const DescribeCapRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCapOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCapOutcome(DescribeCapResult(outcome.result()));
|
||||
else
|
||||
return DescribeCapOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeCapAsync(const DescribeCapRequest& request, const DescribeCapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCap(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeCapOutcomeCallable Antiddos_publicClient::describeCapCallable(const DescribeCapRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCapOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCap(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeDdosCountOutcome Antiddos_publicClient::describeDdosCount(const DescribeDdosCountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDdosCountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDdosCountOutcome(DescribeDdosCountResult(outcome.result()));
|
||||
else
|
||||
return DescribeDdosCountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeDdosCountAsync(const DescribeDdosCountRequest& request, const DescribeDdosCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDdosCount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeDdosCountOutcomeCallable Antiddos_publicClient::describeDdosCountCallable(const DescribeDdosCountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDdosCountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDdosCount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeDdosCreditOutcome Antiddos_publicClient::describeDdosCredit(const DescribeDdosCreditRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDdosCreditOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDdosCreditOutcome(DescribeDdosCreditResult(outcome.result()));
|
||||
else
|
||||
return DescribeDdosCreditOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeDdosCreditAsync(const DescribeDdosCreditRequest& request, const DescribeDdosCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDdosCredit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeDdosCreditOutcomeCallable Antiddos_publicClient::describeDdosCreditCallable(const DescribeDdosCreditRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDdosCreditOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDdosCredit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeDdosEventListOutcome Antiddos_publicClient::describeDdosEventList(const DescribeDdosEventListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDdosEventListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDdosEventListOutcome(DescribeDdosEventListResult(outcome.result()));
|
||||
else
|
||||
return DescribeDdosEventListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeDdosEventListAsync(const DescribeDdosEventListRequest& request, const DescribeDdosEventListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDdosEventList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeDdosEventListOutcomeCallable Antiddos_publicClient::describeDdosEventListCallable(const DescribeDdosEventListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDdosEventListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDdosEventList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeDdosThresholdOutcome Antiddos_publicClient::describeDdosThreshold(const DescribeDdosThresholdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDdosThresholdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDdosThresholdOutcome(DescribeDdosThresholdResult(outcome.result()));
|
||||
else
|
||||
return DescribeDdosThresholdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeDdosThresholdAsync(const DescribeDdosThresholdRequest& request, const DescribeDdosThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDdosThreshold(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeDdosThresholdOutcomeCallable Antiddos_publicClient::describeDdosThresholdCallable(const DescribeDdosThresholdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDdosThresholdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDdosThreshold(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeInstanceOutcome Antiddos_publicClient::describeInstance(const DescribeInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeInstanceOutcome(DescribeInstanceResult(outcome.result()));
|
||||
else
|
||||
return DescribeInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeInstanceAsync(const DescribeInstanceRequest& request, const DescribeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeInstanceOutcomeCallable Antiddos_publicClient::describeInstanceCallable(const DescribeInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeInstanceIpAddressOutcome Antiddos_publicClient::describeInstanceIpAddress(const DescribeInstanceIpAddressRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeInstanceIpAddressOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeInstanceIpAddressOutcome(DescribeInstanceIpAddressResult(outcome.result()));
|
||||
else
|
||||
return DescribeInstanceIpAddressOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeInstanceIpAddressAsync(const DescribeInstanceIpAddressRequest& request, const DescribeInstanceIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeInstanceIpAddress(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeInstanceIpAddressOutcomeCallable Antiddos_publicClient::describeInstanceIpAddressCallable(const DescribeInstanceIpAddressRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeInstanceIpAddressOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeInstanceIpAddress(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeIpDdosThresholdOutcome Antiddos_publicClient::describeIpDdosThreshold(const DescribeIpDdosThresholdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeIpDdosThresholdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeIpDdosThresholdOutcome(DescribeIpDdosThresholdResult(outcome.result()));
|
||||
else
|
||||
return DescribeIpDdosThresholdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeIpDdosThresholdAsync(const DescribeIpDdosThresholdRequest& request, const DescribeIpDdosThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeIpDdosThreshold(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeIpDdosThresholdOutcomeCallable Antiddos_publicClient::describeIpDdosThresholdCallable(const DescribeIpDdosThresholdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeIpDdosThresholdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeIpDdosThreshold(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeIpLocationServiceOutcome Antiddos_publicClient::describeIpLocationService(const DescribeIpLocationServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeIpLocationServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeIpLocationServiceOutcome(DescribeIpLocationServiceResult(outcome.result()));
|
||||
else
|
||||
return DescribeIpLocationServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeIpLocationServiceAsync(const DescribeIpLocationServiceRequest& request, const DescribeIpLocationServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeIpLocationService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeIpLocationServiceOutcomeCallable Antiddos_publicClient::describeIpLocationServiceCallable(const DescribeIpLocationServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeIpLocationServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeIpLocationService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeRegionsOutcome Antiddos_publicClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRegionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRegionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRegions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::DescribeRegionsOutcomeCallable Antiddos_publicClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRegions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::ModifyDdosStatusOutcome Antiddos_publicClient::modifyDdosStatus(const ModifyDdosStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDdosStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDdosStatusOutcome(ModifyDdosStatusResult(outcome.result()));
|
||||
else
|
||||
return ModifyDdosStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::modifyDdosStatusAsync(const ModifyDdosStatusRequest& request, const ModifyDdosStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDdosStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::ModifyDdosStatusOutcomeCallable Antiddos_publicClient::modifyDdosStatusCallable(const ModifyDdosStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDdosStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDdosStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Antiddos_publicClient::ModifyDefenseThresholdOutcome Antiddos_publicClient::modifyDefenseThreshold(const ModifyDefenseThresholdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDefenseThresholdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDefenseThresholdOutcome(ModifyDefenseThresholdResult(outcome.result()));
|
||||
else
|
||||
return ModifyDefenseThresholdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Antiddos_publicClient::modifyDefenseThresholdAsync(const ModifyDefenseThresholdRequest& request, const ModifyDefenseThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDefenseThreshold(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Antiddos_publicClient::ModifyDefenseThresholdOutcomeCallable Antiddos_publicClient::modifyDefenseThresholdCallable(const ModifyDefenseThresholdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDefenseThresholdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDefenseThreshold(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
63
antiddos-public/src/model/DescribeBgpPackByIpRequest.cc
Normal file
63
antiddos-public/src/model/DescribeBgpPackByIpRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/antiddos-public/model/DescribeBgpPackByIpRequest.h>
|
||||
|
||||
using AlibabaCloud::Antiddos_public::Model::DescribeBgpPackByIpRequest;
|
||||
|
||||
DescribeBgpPackByIpRequest::DescribeBgpPackByIpRequest()
|
||||
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeBgpPackByIp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBgpPackByIpRequest::~DescribeBgpPackByIpRequest() {}
|
||||
|
||||
std::string DescribeBgpPackByIpRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeBgpPackByIpRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeBgpPackByIpRequest::getDdosRegionId() const {
|
||||
return ddosRegionId_;
|
||||
}
|
||||
|
||||
void DescribeBgpPackByIpRequest::setDdosRegionId(const std::string &ddosRegionId) {
|
||||
ddosRegionId_ = ddosRegionId;
|
||||
setParameter(std::string("DdosRegionId"), ddosRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeBgpPackByIpRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeBgpPackByIpRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string DescribeBgpPackByIpRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void DescribeBgpPackByIpRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
74
antiddos-public/src/model/DescribeBgpPackByIpResult.cc
Normal file
74
antiddos-public/src/model/DescribeBgpPackByIpResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/antiddos-public/model/DescribeBgpPackByIpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
DescribeBgpPackByIpResult::DescribeBgpPackByIpResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBgpPackByIpResult::DescribeBgpPackByIpResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBgpPackByIpResult::~DescribeBgpPackByIpResult()
|
||||
{}
|
||||
|
||||
void DescribeBgpPackByIpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto ddosbgpInfoNode = value["DdosbgpInfo"];
|
||||
if(!ddosbgpInfoNode["Ip"].isNull())
|
||||
ddosbgpInfo_.ip = ddosbgpInfoNode["Ip"].asString();
|
||||
if(!ddosbgpInfoNode["ExpireTime"].isNull())
|
||||
ddosbgpInfo_.expireTime = std::stol(ddosbgpInfoNode["ExpireTime"].asString());
|
||||
if(!ddosbgpInfoNode["ElasticThreshold"].isNull())
|
||||
ddosbgpInfo_.elasticThreshold = std::stoi(ddosbgpInfoNode["ElasticThreshold"].asString());
|
||||
if(!ddosbgpInfoNode["BaseThreshold"].isNull())
|
||||
ddosbgpInfo_.baseThreshold = std::stoi(ddosbgpInfoNode["BaseThreshold"].asString());
|
||||
if(!ddosbgpInfoNode["DdosbgpInstanceId"].isNull())
|
||||
ddosbgpInfo_.ddosbgpInstanceId = ddosbgpInfoNode["DdosbgpInstanceId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeBgpPackByIpResult::DdosbgpInfo DescribeBgpPackByIpResult::getDdosbgpInfo()const
|
||||
{
|
||||
return ddosbgpInfo_;
|
||||
}
|
||||
|
||||
int DescribeBgpPackByIpResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeBgpPackByIpResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
antiddos-public/src/model/DescribeCapRequest.cc
Normal file
90
antiddos-public/src/model/DescribeCapRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/antiddos-public/model/DescribeCapRequest.h>
|
||||
|
||||
using AlibabaCloud::Antiddos_public::Model::DescribeCapRequest;
|
||||
|
||||
DescribeCapRequest::DescribeCapRequest()
|
||||
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeCap") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCapRequest::~DescribeCapRequest() {}
|
||||
|
||||
std::string DescribeCapRequest::getInternetIp() const {
|
||||
return internetIp_;
|
||||
}
|
||||
|
||||
void DescribeCapRequest::setInternetIp(const std::string &internetIp) {
|
||||
internetIp_ = internetIp;
|
||||
setParameter(std::string("InternetIp"), internetIp);
|
||||
}
|
||||
|
||||
long DescribeCapRequest::getBegTime() const {
|
||||
return begTime_;
|
||||
}
|
||||
|
||||
void DescribeCapRequest::setBegTime(long begTime) {
|
||||
begTime_ = begTime;
|
||||
setParameter(std::string("BegTime"), std::to_string(begTime));
|
||||
}
|
||||
|
||||
std::string DescribeCapRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCapRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeCapRequest::getDdosRegionId() const {
|
||||
return ddosRegionId_;
|
||||
}
|
||||
|
||||
void DescribeCapRequest::setDdosRegionId(const std::string &ddosRegionId) {
|
||||
ddosRegionId_ = ddosRegionId;
|
||||
setParameter(std::string("DdosRegionId"), ddosRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeCapRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void DescribeCapRequest::setInstanceType(const std::string &instanceType) {
|
||||
instanceType_ = instanceType;
|
||||
setParameter(std::string("InstanceType"), instanceType);
|
||||
}
|
||||
|
||||
std::string DescribeCapRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeCapRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string DescribeCapRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeCapRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,39 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/GetReserveDomainUrlResult.h>
|
||||
#include <alibabacloud/antiddos-public/model/DescribeCapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
GetReserveDomainUrlResult::GetReserveDomainUrlResult() :
|
||||
DescribeCapResult::DescribeCapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetReserveDomainUrlResult::GetReserveDomainUrlResult(const std::string &payload) :
|
||||
DescribeCapResult::DescribeCapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetReserveDomainUrlResult::~GetReserveDomainUrlResult()
|
||||
DescribeCapResult::~DescribeCapResult()
|
||||
{}
|
||||
|
||||
void GetReserveDomainUrlResult::parse(const std::string &payload)
|
||||
void DescribeCapResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
auto capUrlNode = value["CapUrl"];
|
||||
if(!capUrlNode["Url"].isNull())
|
||||
capUrl_.url = capUrlNode["Url"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetReserveDomainUrlResult::getUrl()const
|
||||
DescribeCapResult::CapUrl DescribeCapResult::getCapUrl()const
|
||||
{
|
||||
return url_;
|
||||
return capUrl_;
|
||||
}
|
||||
|
||||
63
antiddos-public/src/model/DescribeDdosCountRequest.cc
Normal file
63
antiddos-public/src/model/DescribeDdosCountRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/antiddos-public/model/DescribeDdosCountRequest.h>
|
||||
|
||||
using AlibabaCloud::Antiddos_public::Model::DescribeDdosCountRequest;
|
||||
|
||||
DescribeDdosCountRequest::DescribeDdosCountRequest()
|
||||
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeDdosCount") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDdosCountRequest::~DescribeDdosCountRequest() {}
|
||||
|
||||
std::string DescribeDdosCountRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDdosCountRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeDdosCountRequest::getDdosRegionId() const {
|
||||
return ddosRegionId_;
|
||||
}
|
||||
|
||||
void DescribeDdosCountRequest::setDdosRegionId(const std::string &ddosRegionId) {
|
||||
ddosRegionId_ = ddosRegionId;
|
||||
setParameter(std::string("DdosRegionId"), ddosRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeDdosCountRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void DescribeDdosCountRequest::setInstanceType(const std::string &instanceType) {
|
||||
instanceType_ = instanceType;
|
||||
setParameter(std::string("InstanceType"), instanceType);
|
||||
}
|
||||
|
||||
std::string DescribeDdosCountRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeDdosCountRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
56
antiddos-public/src/model/DescribeDdosCountResult.cc
Normal file
56
antiddos-public/src/model/DescribeDdosCountResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/antiddos-public/model/DescribeDdosCountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
DescribeDdosCountResult::DescribeDdosCountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDdosCountResult::DescribeDdosCountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDdosCountResult::~DescribeDdosCountResult()
|
||||
{}
|
||||
|
||||
void DescribeDdosCountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto ddosCountNode = value["DdosCount"];
|
||||
if(!ddosCountNode["BlackholeCount"].isNull())
|
||||
ddosCount_.blackholeCount = std::stoi(ddosCountNode["BlackholeCount"].asString());
|
||||
if(!ddosCountNode["InstacenCount"].isNull())
|
||||
ddosCount_.instacenCount = std::stoi(ddosCountNode["InstacenCount"].asString());
|
||||
if(!ddosCountNode["DefenseCount"].isNull())
|
||||
ddosCount_.defenseCount = std::stoi(ddosCountNode["DefenseCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeDdosCountResult::DdosCount DescribeDdosCountResult::getDdosCount()const
|
||||
{
|
||||
return ddosCount_;
|
||||
}
|
||||
|
||||
54
antiddos-public/src/model/DescribeDdosCreditRequest.cc
Normal file
54
antiddos-public/src/model/DescribeDdosCreditRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/antiddos-public/model/DescribeDdosCreditRequest.h>
|
||||
|
||||
using AlibabaCloud::Antiddos_public::Model::DescribeDdosCreditRequest;
|
||||
|
||||
DescribeDdosCreditRequest::DescribeDdosCreditRequest()
|
||||
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeDdosCredit") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDdosCreditRequest::~DescribeDdosCreditRequest() {}
|
||||
|
||||
std::string DescribeDdosCreditRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDdosCreditRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeDdosCreditRequest::getDdosRegionId() const {
|
||||
return ddosRegionId_;
|
||||
}
|
||||
|
||||
void DescribeDdosCreditRequest::setDdosRegionId(const std::string &ddosRegionId) {
|
||||
ddosRegionId_ = ddosRegionId;
|
||||
setParameter(std::string("DdosRegionId"), ddosRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeDdosCreditRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeDdosCreditRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
63
antiddos-public/src/model/DescribeDdosCreditResult.cc
Normal file
63
antiddos-public/src/model/DescribeDdosCreditResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/antiddos-public/model/DescribeDdosCreditResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
DescribeDdosCreditResult::DescribeDdosCreditResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDdosCreditResult::DescribeDdosCreditResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDdosCreditResult::~DescribeDdosCreditResult()
|
||||
{}
|
||||
|
||||
void DescribeDdosCreditResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto ddosCreditNode = value["DdosCredit"];
|
||||
if(!ddosCreditNode["Score"].isNull())
|
||||
ddosCredit_.score = std::stoi(ddosCreditNode["Score"].asString());
|
||||
if(!ddosCreditNode["ScoreLevel"].isNull())
|
||||
ddosCredit_.scoreLevel = ddosCreditNode["ScoreLevel"].asString();
|
||||
if(!ddosCreditNode["BlackholeTime"].isNull())
|
||||
ddosCredit_.blackholeTime = std::stoi(ddosCreditNode["BlackholeTime"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeDdosCreditResult::DdosCredit DescribeDdosCreditResult::getDdosCredit()const
|
||||
{
|
||||
return ddosCredit_;
|
||||
}
|
||||
|
||||
bool DescribeDdosCreditResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user