diff --git a/CHANGELOG b/CHANGELOG index a14413c2d..9d19d3919 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-07-08 Version: 1.36.1169 +- Support AK Audit API. + 2022-07-04 Version: 1.36.1168 - Add API QueryEmbeddedStaus. diff --git a/VERSION b/VERSION index 76fd2cb2f..1007e0b28 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1168 \ No newline at end of file +1.36.1169 \ No newline at end of file diff --git a/actiontrail/CMakeLists.txt b/actiontrail/CMakeLists.txt index 31e6b609f..5702ea7e0 100644 --- a/actiontrail/CMakeLists.txt +++ b/actiontrail/CMakeLists.txt @@ -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 diff --git a/actiontrail/include/alibabacloud/actiontrail/ActiontrailClient.h b/actiontrail/include/alibabacloud/actiontrail/ActiontrailClient.h index 9a96f98c9..07cb464db 100644 --- a/actiontrail/include/alibabacloud/actiontrail/ActiontrailClient.h +++ b/actiontrail/include/alibabacloud/actiontrail/ActiontrailClient.h @@ -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 DescribeTrailsOutcome; typedef std::future DescribeTrailsOutcomeCallable; typedef std::function&)> DescribeTrailsAsyncHandler; + typedef Outcome GetAccessKeyLastUsedEventsOutcome; + typedef std::future GetAccessKeyLastUsedEventsOutcomeCallable; + typedef std::function&)> GetAccessKeyLastUsedEventsAsyncHandler; + typedef Outcome GetAccessKeyLastUsedInfoOutcome; + typedef std::future GetAccessKeyLastUsedInfoOutcomeCallable; + typedef std::function&)> GetAccessKeyLastUsedInfoAsyncHandler; + typedef Outcome GetAccessKeyLastUsedIpsOutcome; + typedef std::future GetAccessKeyLastUsedIpsOutcomeCallable; + typedef std::function&)> GetAccessKeyLastUsedIpsAsyncHandler; + typedef Outcome GetAccessKeyLastUsedProductsOutcome; + typedef std::future GetAccessKeyLastUsedProductsOutcomeCallable; + typedef std::function&)> GetAccessKeyLastUsedProductsAsyncHandler; + typedef Outcome GetAccessKeyLastUsedResourcesOutcome; + typedef std::future GetAccessKeyLastUsedResourcesOutcomeCallable; + typedef std::function&)> GetAccessKeyLastUsedResourcesAsyncHandler; + typedef Outcome GetDeliveryHistoryJobOutcome; + typedef std::future GetDeliveryHistoryJobOutcomeCallable; + typedef std::function&)> GetDeliveryHistoryJobAsyncHandler; typedef Outcome GetTrailStatusOutcome; typedef std::future GetTrailStatusOutcomeCallable; typedef std::function&)> 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; GetTrailStatusOutcomeCallable getTrailStatusCallable(const Model::GetTrailStatusRequest& request) const; diff --git a/actiontrail/include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h index c557d97c6..4e2cbec9b 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.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_CREATEDELIVERYHISTORYJOBREQUEST_H_ -#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/CreateTrailRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/CreateTrailRequest.h index 00ce61da4..3d2946552 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/CreateTrailRequest.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/CreateTrailRequest.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 -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/CreateTrailResult.h b/actiontrail/include/alibabacloud/actiontrail/model/CreateTrailResult.h index d1e0b5197..f86960017 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/CreateTrailResult.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/CreateTrailResult.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_; diff --git a/actiontrail/include/alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h index eebe27ff2..55964221e 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h +++ b/actiontrail/include/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_DELETEDELIVERYHISTORYJOBREQUEST_H_ -#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/DeleteTrailRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/DeleteTrailRequest.h index d67054c92..95561c459 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/DeleteTrailRequest.h +++ b/actiontrail/include/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_DELETETRAILREQUEST_H_ -#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/DescribeRegionsRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/DescribeRegionsRequest.h index d573e7b08..bfe609aa7 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/DescribeRegionsRequest.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/DescribeRegionsRequest.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 -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/DescribeTrailsRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/DescribeTrailsRequest.h index 0637c364b..d8241cb17 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/DescribeTrailsRequest.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/DescribeTrailsRequest.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 -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/DescribeTrailsResult.h b/actiontrail/include/alibabacloud/actiontrail/model/DescribeTrailsResult.h index 70c8a577e..1f3a82403 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/DescribeTrailsResult.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/DescribeTrailsResult.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; }; diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsRequest.h new file mode 100644 index 000000000..aa739a4b1 --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsRequest.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_GETACCESSKEYLASTUSEDEVENTSREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDEVENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsResult.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsResult.h new file mode 100644 index 000000000..e94a5a282 --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedEventsResult.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 +#include +#include +#include +#include + +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 getEvents()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector events_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDEVENTSRESULT_H_ \ No newline at end of file diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoRequest.h new file mode 100644 index 000000000..2154be8c7 --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoRequest.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 +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoResult.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoResult.h new file mode 100644 index 000000000..1962e61da --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedInfoResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsRequest.h new file mode 100644 index 000000000..35b8e5081 --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsRequest.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 +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsResult.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsResult.h new file mode 100644 index 000000000..1435c913e --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedIpsResult.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 +#include +#include +#include +#include + +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 getIps()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector ips_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDIPSRESULT_H_ \ No newline at end of file diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsRequest.h new file mode 100644 index 000000000..7637f6565 --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsRequest.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 +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsResult.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsResult.h new file mode 100644 index 000000000..94974ca99 --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedProductsResult.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 +#include +#include +#include +#include + +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 getProducts()const; + + protected: + void parse(const std::string &payload); + private: + std::vector products_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDPRODUCTSRESULT_H_ \ No newline at end of file diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesRequest.h new file mode 100644 index 000000000..f0a8a53fe --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesRequest.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 +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesResult.h b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesResult.h new file mode 100644 index 000000000..009ff2629 --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetAccessKeyLastUsedResourcesResult.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 +#include +#include +#include +#include + +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 getResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector resources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETACCESSKEYLASTUSEDRESOURCESRESULT_H_ \ No newline at end of file diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetDeliveryHistoryJobRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/GetDeliveryHistoryJobRequest.h new file mode 100644 index 000000000..f7152f0d9 --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetDeliveryHistoryJobRequest.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 +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetDeliveryHistoryJobResult.h b/actiontrail/include/alibabacloud/actiontrail/model/GetDeliveryHistoryJobResult.h new file mode 100644 index 000000000..c7ddd7b9b --- /dev/null +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetDeliveryHistoryJobResult.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 +#include +#include +#include +#include + +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 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 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_ \ No newline at end of file diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h index 65ac9cea2..0da68ca04 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetTrailStatusRequest.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 -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/GetTrailStatusResult.h b/actiontrail/include/alibabacloud/actiontrail/model/GetTrailStatusResult.h index 3152231ef..7f9f13764 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/GetTrailStatusResult.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/GetTrailStatusResult.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_; }; } diff --git a/actiontrail/include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h index d50156101..ed2b5d950 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.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_LISTDELIVERYHISTORYJOBSREQUEST_H_ -#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/LookupEventsRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/LookupEventsRequest.h index b2086d628..9514dc511 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/LookupEventsRequest.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/LookupEventsRequest.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 -#include -#include -#include - -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 getLookupAttribute()const; - void setLookupAttribute(const std::vector& 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_; - std::string maxResults_; - std::string direction_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +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 getLookupAttribute() const; + void setLookupAttribute(const std::vector &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_; + std::string maxResults_; + std::string direction_; +}; +} // namespace Model +} // namespace Actiontrail +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/StartLoggingRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/StartLoggingRequest.h index 7d6a33671..0b9092b8e 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/StartLoggingRequest.h +++ b/actiontrail/include/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_STARTLOGGINGREQUEST_H_ -#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/StopLoggingRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/StopLoggingRequest.h index e20939076..577ca0a3f 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/StopLoggingRequest.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/StopLoggingRequest.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 -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/UpdateTrailRequest.h b/actiontrail/include/alibabacloud/actiontrail/model/UpdateTrailRequest.h index e5cf61927..76efddcd4 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/UpdateTrailRequest.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/UpdateTrailRequest.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 -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_ +#define ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/actiontrail/include/alibabacloud/actiontrail/model/UpdateTrailResult.h b/actiontrail/include/alibabacloud/actiontrail/model/UpdateTrailResult.h index 0a2af0374..2f096bb9b 100644 --- a/actiontrail/include/alibabacloud/actiontrail/model/UpdateTrailResult.h +++ b/actiontrail/include/alibabacloud/actiontrail/model/UpdateTrailResult.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_; diff --git a/actiontrail/src/ActiontrailClient.cc b/actiontrail/src/ActiontrailClient.cc index 3290b71b0..ce44d5ac2 100644 --- a/actiontrail/src/ActiontrailClient.cc +++ b/actiontrail/src/ActiontrailClient.cc @@ -31,21 +31,21 @@ ActiontrailClient::ActiontrailClient(const Credentials &credentials, const Clien RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } ActiontrailClient::ActiontrailClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } ActiontrailClient::ActiontrailClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail"); + endpointProvider_ = std::make_shared(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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/actiontrail/src/model/CreateDeliveryHistoryJobRequest.cc b/actiontrail/src/model/CreateDeliveryHistoryJobRequest.cc index d4ab0b213..2f74032f6 100644 --- a/actiontrail/src/model/CreateDeliveryHistoryJobRequest.cc +++ b/actiontrail/src/model/CreateDeliveryHistoryJobRequest.cc @@ -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 - -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 + +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); } diff --git a/actiontrail/src/model/CreateTrailRequest.cc b/actiontrail/src/model/CreateTrailRequest.cc index e1f006d71..437bb2397 100644 --- a/actiontrail/src/model/CreateTrailRequest.cc +++ b/actiontrail/src/model/CreateTrailRequest.cc @@ -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 - -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 + +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); } diff --git a/actiontrail/src/model/CreateTrailResult.cc b/actiontrail/src/model/CreateTrailResult.cc index 3ffc2017b..b5b5877b4 100644 --- a/actiontrail/src/model/CreateTrailResult.cc +++ b/actiontrail/src/model/CreateTrailResult.cc @@ -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_; diff --git a/actiontrail/src/model/DeleteDeliveryHistoryJobRequest.cc b/actiontrail/src/model/DeleteDeliveryHistoryJobRequest.cc index 874702727..26f2a2f4e 100644 --- a/actiontrail/src/model/DeleteDeliveryHistoryJobRequest.cc +++ b/actiontrail/src/model/DeleteDeliveryHistoryJobRequest.cc @@ -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 - -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 + +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)); } diff --git a/actiontrail/src/model/DeleteTrailRequest.cc b/actiontrail/src/model/DeleteTrailRequest.cc index 21fc64edc..98a4befa1 100644 --- a/actiontrail/src/model/DeleteTrailRequest.cc +++ b/actiontrail/src/model/DeleteTrailRequest.cc @@ -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 - -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 + +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); } diff --git a/actiontrail/src/model/DescribeRegionsRequest.cc b/actiontrail/src/model/DescribeRegionsRequest.cc index 676f86da2..5efd3c9b0 100644 --- a/actiontrail/src/model/DescribeRegionsRequest.cc +++ b/actiontrail/src/model/DescribeRegionsRequest.cc @@ -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 - -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 + +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); } diff --git a/actiontrail/src/model/DescribeTrailsRequest.cc b/actiontrail/src/model/DescribeTrailsRequest.cc index 9c8e11a9e..015be3448 100644 --- a/actiontrail/src/model/DescribeTrailsRequest.cc +++ b/actiontrail/src/model/DescribeTrailsRequest.cc @@ -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 - -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 + +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); } diff --git a/actiontrail/src/model/DescribeTrailsResult.cc b/actiontrail/src/model/DescribeTrailsResult.cc index c91c268fa..e3b39f566 100644 --- a/actiontrail/src/model/DescribeTrailsResult.cc +++ b/actiontrail/src/model/DescribeTrailsResult.cc @@ -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); } diff --git a/actiontrail/src/model/GetAccessKeyLastUsedEventsRequest.cc b/actiontrail/src/model/GetAccessKeyLastUsedEventsRequest.cc new file mode 100644 index 000000000..bb15c28d5 --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedEventsRequest.cc @@ -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 + +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); +} + diff --git a/actiontrail/src/model/GetAccessKeyLastUsedEventsResult.cc b/actiontrail/src/model/GetAccessKeyLastUsedEventsResult.cc new file mode 100644 index 000000000..fd8ca001c --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedEventsResult.cc @@ -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 +#include + +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::getEvents()const +{ + return events_; +} + diff --git a/actiontrail/src/model/GetAccessKeyLastUsedInfoRequest.cc b/actiontrail/src/model/GetAccessKeyLastUsedInfoRequest.cc new file mode 100644 index 000000000..8d9c39df7 --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedInfoRequest.cc @@ -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 + +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); +} + diff --git a/actiontrail/src/model/GetAccessKeyLastUsedInfoResult.cc b/actiontrail/src/model/GetAccessKeyLastUsedInfoResult.cc new file mode 100644 index 000000000..f8d598782 --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedInfoResult.cc @@ -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 +#include + +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_; +} + diff --git a/actiontrail/src/model/GetAccessKeyLastUsedIpsRequest.cc b/actiontrail/src/model/GetAccessKeyLastUsedIpsRequest.cc new file mode 100644 index 000000000..ba4ddf2cd --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedIpsRequest.cc @@ -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 + +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); +} + diff --git a/actiontrail/src/model/GetAccessKeyLastUsedIpsResult.cc b/actiontrail/src/model/GetAccessKeyLastUsedIpsResult.cc new file mode 100644 index 000000000..c9cac9f23 --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedIpsResult.cc @@ -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 +#include + +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::getIps()const +{ + return ips_; +} + diff --git a/actiontrail/src/model/GetAccessKeyLastUsedProductsRequest.cc b/actiontrail/src/model/GetAccessKeyLastUsedProductsRequest.cc new file mode 100644 index 000000000..1a6d37735 --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedProductsRequest.cc @@ -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 + +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); +} + diff --git a/actiontrail/src/model/GetAccessKeyLastUsedProductsResult.cc b/actiontrail/src/model/GetAccessKeyLastUsedProductsResult.cc new file mode 100644 index 000000000..96745caef --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedProductsResult.cc @@ -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 +#include + +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::getProducts()const +{ + return products_; +} + diff --git a/actiontrail/src/model/GetAccessKeyLastUsedResourcesRequest.cc b/actiontrail/src/model/GetAccessKeyLastUsedResourcesRequest.cc new file mode 100644 index 000000000..a5217ae38 --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedResourcesRequest.cc @@ -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 + +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); +} + diff --git a/actiontrail/src/model/GetAccessKeyLastUsedResourcesResult.cc b/actiontrail/src/model/GetAccessKeyLastUsedResourcesResult.cc new file mode 100644 index 000000000..c788ad045 --- /dev/null +++ b/actiontrail/src/model/GetAccessKeyLastUsedResourcesResult.cc @@ -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 +#include + +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::getResources()const +{ + return resources_; +} + diff --git a/actiontrail/src/model/GetDeliveryHistoryJobRequest.cc b/actiontrail/src/model/GetDeliveryHistoryJobRequest.cc new file mode 100644 index 000000000..aa2039a0e --- /dev/null +++ b/actiontrail/src/model/GetDeliveryHistoryJobRequest.cc @@ -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 + +using AlibabaCloud::Actiontrail::Model::GetDeliveryHistoryJobRequest; + +GetDeliveryHistoryJobRequest::GetDeliveryHistoryJobRequest() + : RpcServiceRequest("actiontrail", "2020-07-06", "GetDeliveryHistoryJob") { + setMethod(HttpRequest::Method::Post); +} + +GetDeliveryHistoryJobRequest::~GetDeliveryHistoryJobRequest() {} + +long GetDeliveryHistoryJobRequest::getJobId() const { + return jobId_; +} + +void GetDeliveryHistoryJobRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + diff --git a/actiontrail/src/model/GetDeliveryHistoryJobResult.cc b/actiontrail/src/model/GetDeliveryHistoryJobResult.cc new file mode 100644 index 000000000..df18f46f2 --- /dev/null +++ b/actiontrail/src/model/GetDeliveryHistoryJobResult.cc @@ -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 +#include + +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::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_; +} + diff --git a/actiontrail/src/model/GetTrailStatusRequest.cc b/actiontrail/src/model/GetTrailStatusRequest.cc index 3e0c98587..61308a85c 100644 --- a/actiontrail/src/model/GetTrailStatusRequest.cc +++ b/actiontrail/src/model/GetTrailStatusRequest.cc @@ -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 - -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 + +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"); } diff --git a/actiontrail/src/model/GetTrailStatusResult.cc b/actiontrail/src/model/GetTrailStatusResult.cc index 8456f168a..6b178b027 100644 --- a/actiontrail/src/model/GetTrailStatusResult.cc +++ b/actiontrail/src/model/GetTrailStatusResult.cc @@ -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_; +} + diff --git a/actiontrail/src/model/ListDeliveryHistoryJobsRequest.cc b/actiontrail/src/model/ListDeliveryHistoryJobsRequest.cc index 16e98eb88..01a1092b5 100644 --- a/actiontrail/src/model/ListDeliveryHistoryJobsRequest.cc +++ b/actiontrail/src/model/ListDeliveryHistoryJobsRequest.cc @@ -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 - -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 + +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)); } diff --git a/actiontrail/src/model/ListDeliveryHistoryJobsResult.cc b/actiontrail/src/model/ListDeliveryHistoryJobsResult.cc index 89e81ee5d..561422248 100644 --- a/actiontrail/src/model/ListDeliveryHistoryJobsResult.cc +++ b/actiontrail/src/model/ListDeliveryHistoryJobsResult.cc @@ -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()); } diff --git a/actiontrail/src/model/LookupEventsRequest.cc b/actiontrail/src/model/LookupEventsRequest.cc index 42c5014c4..c760e0937 100644 --- a/actiontrail/src/model/LookupEventsRequest.cc +++ b/actiontrail/src/model/LookupEventsRequest.cc @@ -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 - -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 + +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::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; - 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::getLookupAttribute() const { + return lookupAttribute_; } -std::string LookupEventsRequest::getMaxResults()const -{ - return maxResults_; +void LookupEventsRequest::setLookupAttribute(const std::vector &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); } diff --git a/actiontrail/src/model/StartLoggingRequest.cc b/actiontrail/src/model/StartLoggingRequest.cc index 3c1977125..6b55f3f0e 100644 --- a/actiontrail/src/model/StartLoggingRequest.cc +++ b/actiontrail/src/model/StartLoggingRequest.cc @@ -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 - -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 + +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); } diff --git a/actiontrail/src/model/StopLoggingRequest.cc b/actiontrail/src/model/StopLoggingRequest.cc index f24189b24..94e062cb6 100644 --- a/actiontrail/src/model/StopLoggingRequest.cc +++ b/actiontrail/src/model/StopLoggingRequest.cc @@ -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 - -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 + +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); } diff --git a/actiontrail/src/model/UpdateTrailRequest.cc b/actiontrail/src/model/UpdateTrailRequest.cc index 3691097c3..80ca8cf16 100644 --- a/actiontrail/src/model/UpdateTrailRequest.cc +++ b/actiontrail/src/model/UpdateTrailRequest.cc @@ -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 - -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 + +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); } diff --git a/actiontrail/src/model/UpdateTrailResult.cc b/actiontrail/src/model/UpdateTrailResult.cc index 92598319c..7ba2d975c 100644 --- a/actiontrail/src/model/UpdateTrailResult.cc +++ b/actiontrail/src/model/UpdateTrailResult.cc @@ -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_;